1 2019-12-12 Tom Tromey <tromey@adacore.com>
3 * xml-support.c (xml_fetch_content_from_file): Don't call
5 * utils.h (class gdb_argv): Remove malloc_failure comment.
6 * utils.c (gdb_argv::reset): Don't call malloc_failure.
8 2019-12-12 Tom Tromey <tromey@adacore.com>
10 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
11 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
12 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
13 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
14 * riscv-ravenscar-thread.c: New file.
15 * riscv-ravenscar-thread.h: New file.
16 * riscv-tdep.c (riscv_gdbarch_init): Call
17 register_riscv_ravenscar_ops.
19 2019-12-12 Tom Tromey <tromey@adacore.com>
21 * gdbsupport/thread-pool.c (set_thread_name): Use
24 2019-12-12 Luis Machado <luis.machado@linaro.org>
26 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
27 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
30 2019-12-11 Tom Tromey <tom@tromey.com>
32 * tui/tui-win.c (tui_set_win_height_command): Call
33 tui_adjust_window_height.
34 (tui_adjust_win_heights, new_height_ok): Remove.
35 * tui/tui-layout.h (tui_adjust_window_height): Declare.
36 * tui/tui-layout.c (tui_adjust_window_height): New function.
38 2019-12-11 Tom Tromey <tom@tromey.com>
40 * tui/tui-win.c (tui_resize_all): Remove code, call
41 tui_apply_current_layout.
43 2019-12-11 Tom Tromey <tom@tromey.com>
45 * tui/tui-layout.h (tui_apply_current_layout): Declare.
46 * tui/tui-layout.c (standard_layouts, applied_layout): New
48 (tui_apply_current_layout): New function.
49 (show_layout): Set applied_layout. Call
50 tui_apply_current_layout.
51 (show_source_command, show_disasm_command)
52 (show_source_disasm_command, show_data)
53 (show_source_or_disasm_and_command): Remove.
54 (initialize_layouts): New function.
55 (_initialize_tui_layout): Call initialize_layouts.
57 2019-12-11 Tom Tromey <tom@tromey.com>
59 * tui/tui-layout.h (class tui_layout_base)
60 (class tui_layout_window, class tui_layout_split): New.
61 * tui/tui-layout.c (tui_get_window_by_name)
62 (tui_layout_window::clone, tui_layout_window::apply)
63 (tui_layout_window::get_sizes, tui_layout_window::add_split)
64 (tui_layout_split::add_window, tui_layout_split::clone)
65 (tui_layout_split::get_sizes)
66 (tui_layout_split::set_weights_from_heights)
67 (tui_layout_split::adjust_size, tui_layout_split::apply): New
69 (tui_layout_split::add_split, tui_layout_split::add_split)
70 (tui_layout_split::set_weights_from_heights)
71 (tui_layout_split::set_weights_from_heights): New functions.
73 2019-12-11 Tom Tromey <tom@tromey.com>
75 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
76 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
77 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
78 * tui/tui-data.h (struct tui_point): Remove.
79 (struct tui_gen_win_info) <origin>: Remove.
81 * tui/tui-command.c (tui_cmd_window::resize): Update.
83 2019-12-11 Tom Tromey <tom@tromey.com>
85 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
87 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
89 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
91 (struct tui_win_info) <min_height>: Implement.
93 2019-12-11 Tom Tromey <tom@tromey.com>
95 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
96 (struct tui_win_info) <can_box>: Update.
98 2019-12-11 Tom Tromey <tom@tromey.com>
100 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
102 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
104 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
106 (struct tui_win_info) <max_height>: Now override.
108 2019-12-11 Joel Brobecker <brobecker@adacore.com>
110 * NEWS: Create a new section for the next release branch.
111 Rename the section of the current branch, now that it has
114 2019-12-11 Joel Brobecker <brobecker@adacore.com>
116 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
117 * version.in: Bump version to 10.0.50.DATE-git.
119 2019-12-11 Tom Tromey <tromey@adacore.com>
122 * gdbsupport/thread-pool.c (set_thread_name): New function.
123 (thread_pool::set_thread_count): Don't call pthread_setname_np.
124 (thread_pool::thread_function): Call set_thread_name.
126 2019-12-11 Tom Tromey <tromey@adacore.com>
128 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
131 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
133 * NEWS: Document -raw-values option and the related setting commands.
134 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
135 only set it on when /r is given.
136 * valprint.c (value_print_option_defs): New element raw-values.
137 * Makefile.in: Add the new file.
139 2019-12-10 Christian Biesinger <cbiesinger@google.com>
141 * gdbsupport/safe-strerror.c: Supress the unused function warning
142 for select_strerror_r.
144 2019-12-10 Christian Biesinger <cbiesinger@google.com>
146 * config.in: Regenerate.
147 * configure: Regenerate.
148 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
149 safe_strerror instead of strerror.
150 * gdbsupport/common.m4: Don't check for strerror.
151 * gdbsupport/safe-strerror.c: Support both the glibc version
152 of strerror_r and the XSI version.
154 2019-12-10 Tom Tromey <tromey@adacore.com>
156 * ada-typeprint.c (print_choices): Use a single "?".
157 (print_variant_part): Print "?" if the discriminant name
160 2019-12-10 George Barrett <bob@bob131.so>
162 Fix scripted probe breakpoints.
163 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
165 (breakpoint_ops_for_event_location_type)
166 (breakpoint_ops_for_event_location): Add function definitions.
167 (break_command_1, trace_command): Use
168 breakpoint_ops_for_event_location.
169 * breakpoint.h (breakpoint_ops_for_event_location): Add function
171 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
172 breakpoint_ops_for_event_location.
173 * python/py-breakpoint.c (bppy_init): Use
174 breakpoint_ops_for_event_location.
176 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
178 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
179 when ranking an lvalue argument for an rvalue parameter.
181 2019-12-08 Wataru Ashihara <wataash@wataash.com>
183 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
184 template argument for scoped_restore_tmpl from bool to int.
186 2019-12-07 Keith Seitz <keiths@redhat.com>
188 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
189 (build_id_to_debug_bfd): Make static, rewriting to use
190 build_id_to_bfd_suffix.
191 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
192 adding `suffix' parameter. Append SUFFIX to file names
193 when searching for matching files.
194 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
195 (build_id_to_exec_bfd): Likewise.
196 * build-id.h (build_id_to_debug_bfd): Clarify that function
197 searches for BFD of debug info file.
198 (build_id_to_exec_bfd): Declare.
199 * corelow.c: Include build-id.h.
200 (locate_exec_from_corefile_build_id): New function.
201 (core_target_open): If no executable BFD is found,
202 search for a core file BFD using build-id.
204 2019-12-06 Christian Biesinger <cbiesinger@google.com>
206 * bcache.c: Put in namespace gdb.
207 * bcache.h: Likewise.
208 * gdbtypes.c (check_types_worklist): Update.
209 (types_deeply_equal): Update.
210 * macrotab.c (struct macro_table) <bcache>: Update.
211 (new_macro_table): Update.
212 * macrotab.h (struct bcache): Put this forward declaration
213 inside namespace gdb.
214 (new_macro_table): Update.
215 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
217 <macro_cache>: Update.
218 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
220 2019-12-06 Tom de Vries <tdevries@suse.de>
223 * block.c (best_symbol, better_symbol): New function.
224 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
227 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
229 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
230 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
231 for ranking see-through reference cases.
233 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
234 * stack.c (faas_command): Check a command is provided.
235 * thread.c (taas_command, tfaas_command): Likewise.
237 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
238 * inferior.c (prune_inferiors): Only call delete_inferior,
239 Do not modify the inferior list.
241 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
243 * c-exp.y: Update calls to lookup_typename,
244 lookup_signed_typename and lookup_unsigned_typename.
245 * c-lang.c (evaluate_subexp_c): Likewise.
246 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
248 * eval.c (binop_promote): Likewise.
249 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
250 (lookup_unsigned_typename): Likewise.
251 (lookup_signed_typename): Likewise.
252 * gdbtypes.h (lookup_unsigned_typename): Likewise.
253 (lookup_signed_typename): Likewise.
254 (lookup_typename): Likewise.
255 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
256 lookup_typename, lookup_signed_typename,
257 lookup_unsigned_typename.
258 * m2-exp.y: Likewise.
259 * printcmd.c (printf_wide_c_string): Likewise.
260 (ui_printf): Likewise.
261 * python/py-type.c (typy_lookup_typename): Likewise.
262 * python/py-xmethods.c (python_xmethod_worker::invoke):
264 * rust-exp.y: Likewise.
266 2019-12-04 Christian Biesinger <cbiesinger@google.com>
268 * configure.nat (obsd64): Add missing files x86-nat.o and
271 2019-12-04 Tom Tromey <tom@tromey.com>
273 * valprint.c (val_print_string): Use metadata_style.
274 * go-valprint.c (print_go_string): Use metadata style.
275 * p-valprint.c (pascal_object_print_static_field): Use metadata
277 * cp-valprint.c (cp_print_static_field): Use metadata style.
279 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
280 Chris January <chris.january@arm.com>
282 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
284 (typebase): New patterns for complex, single/double precision, and
285 single/double complex.
286 (f77_keywords): Change token for complex keyword, and add single,
287 double, and precision keywords.
289 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
291 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
294 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
296 * regcache.c (cooked_read_test): Initialize thread list of
299 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
301 * aarch64-linux-tdep.c: Remove includes.
303 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
305 * aarch64-tdep.c: Remove includes.
307 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
309 * filtered-iterator.h (filtered_iterator) <operator==,
310 operator!=>: Compare wrapped iterators, not wrapped pointers.
311 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
312 unittests/filtered_iterator-selftests.c.
313 * unittests/filtered_iterator-selftests.c: New file.
315 2019-12-04 Tom Tromey <tromey@adacore.com>
317 * gdbtypes.c (create_range_type): Inherit endianity
320 2019-12-04 Tom Tromey <tromey@adacore.com>
322 * ada-lang.c (decode_constrained_packed_array)
323 (ada_value_assign, value_assign_to_component): Update.
324 * dwarf2loc.c (rw_pieced_value, access_memory)
325 (dwarf2_compile_expr_to_ax): Update.
326 * dwarf2read.c (dwarf2_add_field): Update.
327 * eval.c (evaluate_subexp_standard): Update.
328 * gdbarch.c, gdbarch.h: Rebuild.
329 * gdbarch.sh (bits_big_endian): Remove.
330 * gdbtypes.h (union field_location): Update comment.
331 * target-descriptions.c (make_gdb_type): Update.
332 * valarith.c (value_bit_index): Update.
333 * value.c (struct value) <bitpos>: Update comment.
334 (unpack_bits_as_long, modify_field): Update.
335 * value.h (value_bitpos): Update comment.
337 2019-12-04 Tom Tromey <tromey@adacore.com>
339 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
342 2019-12-04 Tom Tromey <tromey@adacore.com>
344 * dwarf2read.c (dwarf2_init_float_type)
345 (dwarf2_init_complex_target_type): Add byte_order parameter.
346 (read_base_type): Compute byte order earlier.
347 * gdbtypes.c (init_float_type): Add byte_order parameter.
348 * gdbtypes.h (init_float_type): Add byte_order parameter.
350 2019-12-04 Tom Tromey <tromey@adacore.com>
352 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
354 2019-12-04 Tom Tromey <tromey@adacore.com>
356 * dwarf2read.c (process_structure_scope): Initialize
359 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
361 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
362 add it into the search spec.
363 (parse_max_results_option): New function.
364 (mi_info_functions_or_variables): Parse -max-results flag and pass
365 it to mi_symbol_info.
366 (mi_cmd_symbol_info_modules): Likewise.
367 (mi_cmd_symbol_info_types): Likewise.
368 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
369 return type to bool, change result container into a set, and don't
370 add new results if we have enough already.
371 (global_symbol_searcher::add_matching_msymbols): Change return
372 type to bool, and don't add new results if we have enough already.
373 (sort_search_symbols_remove_dups): Delete.
374 (global_symbol_searcher::search): Early exit from search loop when
375 we have enough results. Use a std::set to collect the results
376 from calling add_matching_symbols.
377 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
379 (global_symbol_searcher) <m_max_search_results>: New member
381 (global_symbol_searcher) <add_matching_symbols>: Update header
382 comment and change return type to bool.
383 (global_symbol_searcher) <add_matching_msymbols>: Update header
384 comment and change return type to bool.
386 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
388 * symtab.c (symbol_search::compare_search_syms): Update header
390 (global_symbol_searcher::is_suitable_msymbol): New function.
391 (global_symbol_searcher::expand_symtabs): New function.
392 (global_symbol_searcher::add_matching_symbols): New function.
393 (global_symbol_searcher::add_matching_msymbols): New function.
394 (global_symbol_searcher::search): Move most of the content
395 into the new functions above, and call them as needed.
396 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
398 (global_symbol_searcher) <add_matching_symbols>: New member
400 (global_symbol_searcher) <add_matching_msymbols>: New member
402 (global_symbol_searcher) <is_suitable_msymbol>: New member
405 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
407 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
408 -symbol-info-module-variables entries.
409 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
410 (mi_cmd_symbol_info_module_variables): Declare.
411 * mi/mi-symbol-cmds.c
412 (module_symbol_search_iterator): New typedef.
413 (output_module_symbols_in_single_module_and_file): New function.
414 (output_module_symbols_in_single_module): New function.
415 (mi_info_module_functions_or_variables): New function.
416 (mi_cmd_symbol_info_module_functions): New function.
417 (mi_cmd_symbol_info_module_variables): New function.
418 * NEWS: Mention new MI command.
420 2019-12-03 Christian Biesinger <cbiesinger@google.com>
422 * bcache.c (hash): Remove.
423 (hash_continue): Remove.
424 * bcache.h (hash): Remove.
425 (hash_continue): Remove.
426 (struct bcache) <ctor>: Update.
427 * psymtab.c (psymbol_hash): Update.
428 * stabsread.c (hashname): Update.
429 * utils.h (fast_hash): Add an argument for a start value,
432 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
433 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
434 (destroy_block_symbol_cache): New function.
435 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
436 (resize_symbol_cache): Likewise.
438 2019-12-02 Tom Tromey <tom@tromey.com>
440 * unittests/tui-selftests.c (run_tests): Make conditional.
441 (_initialize_tui_selftest): Make conditional.
443 2019-12-02 Christian Biesinger <cbiesinger@google.com>
445 * aix-thread.c (debug_aix_thread): Change type to bool.
447 2019-12-02 Luis Machado <luis.machado@linaro.org>
449 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
451 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
453 * dwarf2read.c (read_tag_string_type): Read the fields required to
454 make a dynamic string, and possibly create a dynamic range for the
456 (attr_to_dynamic_prop): Setup is_reference based on the type of
457 attribute being processed.
458 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
459 (resolve_dynamic_array): Rename to...
460 (resolve_dynamic_array_or_string): ...this, update header comment,
461 and accept TYPE_CODE_STRING.
462 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
464 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
466 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
467 of its implementation from...
468 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
471 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
473 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
474 create a range with stride where appropriate.
475 * f-valprint.c: Include 'gdbarch.h'.
476 (f77_print_array_1): Take the stride into account when walking the
477 array. Also convert the stride into addressable units.
478 * gdbtypes.c (create_range_type): Initialise the stride to
480 (create_range_type_with_stride): New function, initialise the
481 range as normal, and then setup the stride.
482 (has_static_range): Include the stride here. Also change the
484 (create_array_type_with_stride): Consider the range stride if the
485 array isn't given its own stride.
486 (resolve_dynamic_range): Resolve the stride if needed.
487 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
488 (struct range_bounds) <flag_is_byte_stride>: New member variable.
489 (TYPE_BIT_STRIDE): Define.
490 (TYPE_ARRAY_BIT_STRIDE): Define.
491 (create_range_type_with_stride): Declare.
492 * valarith.c (value_subscripted_rvalue): Take range stride into
493 account when walking the array.
495 2019-12-01 Tom Tromey <tom@tromey.com>
497 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
500 2019-12-01 Tom Tromey <tom@tromey.com>
502 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
504 * unittests/tui-selftests.c: New file.
505 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
507 2019-12-01 Tom Tromey <tom@tromey.com>
509 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
511 2019-12-01 Tom Tromey <tom@tromey.com>
513 * NEWS: Document new settings.
514 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
515 * tui/tui-win.c (_initialize_tui_win): Add border style
517 * tui/tui-io.h (tui_apply_style): Declare.
518 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
520 (apply_ansi_escape, tui_set_reverse_mode): Update.
521 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
522 Add "skip_intensity" parameter.
523 <changed>: New member.
524 <do_set_value>: Declare.
525 (tui_border_style, tui_active_border_style): Declare.
526 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
528 (cli_style_option): Initialize "changed".
529 (cli_style_option::do_set_value): New function.
530 (cli_style_option::add_setshow_commands): Add "skip_intensity"
532 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
533 (_initialize_cli_style): Update. Create TUI border style
536 2019-12-01 Tom Tromey <tom@tromey.com>
538 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
540 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
542 * tui/tui-win.h (compact_source): Declare.
543 * tui/tui-win.c (compact_source): New global.
544 (tui_set_compact_source, tui_show_compact_source): New functions.
545 (_initialize_tui_win): Add "compact-source" setting.
546 * tui/tui-source.c (tui_source_window::set_contents): Handle
547 compact_source setting.
548 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
549 * NEWS: Document new setting.
551 2019-11-30 Tom Tromey <tom@tromey.com>
553 * dwarf2read.c (dwarf2_add_field): Include field offset when
554 computing variant part length.
556 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
557 * NEWS: Mention define-prefix. Tell that command names can now
558 contain a . character.
560 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
562 * command.h (valid_cmd_char_p): Declare.
563 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
564 the check of valid command char.
565 (find_command_name_length, valid_user_defined_cmd_name_p): Use
567 * cli/cli-script.c (validate_comname): Likewise.
568 * completer.c (gdb_completer_command_word_break_characters):
569 Do not remove . from the word break char, update comments.
570 (complete_line_internal_1): Use valid_cmd_char_p.
571 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
572 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
574 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
576 * cli/cli-script.c (do_define_command): Ensure a redefined
577 prefix command is kept as a prefix command.
578 (define_prefix_command): New function.
579 (show_user_1): Report user defined prefixes.
580 (_initialize_cli_script): Create the new 'define-prefix' command.
581 Add completers for 'define' and 'document'.
582 * top.c (execute_command): If command is a user-defined prefix only
583 command, report the list of commands for this prefix command.
585 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587 * valops.c (find_oload_champ): Improve debug output.
589 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
591 * valops.c (find_oload_champ): Print part of debug messages
592 before the badness vector is std::move'd.
594 2019-11-28 Tom Tromey <tom@tromey.com>
596 * value.c (creal_internal_fn): Fix comment.
598 2019-11-28 Tom Tromey <tom@tromey.com>
600 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
601 flag_bound_evaluated>: Now unsigned.
603 2019-11-28 Tom Tromey <tom@tromey.com>
605 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
608 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
610 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
612 * jit.c (jit_unregister_code): Add debug print to match
615 2019-11-27 Christian Biesinger <cbiesinger@google.com>
617 * NEWS: Mention the new multithreaded symbol loading.
619 2019-11-27 Christian Biesinger <cbiesinger@google.com>
621 * maint.c (n_worker_threads): Default to 0.
622 (worker_threads_disabled): New function.
623 * maint.h (worker_threads_disabled): New function.
624 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
625 here if worker_threads_disabled () is true.
626 (minimal_symbol_reader::install): Skip all threading if
627 worker_threads_disabled () is true.
629 2019-11-27 Christian Biesinger <cbiesinger@google.com>
631 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
632 hash code if possible.
633 (add_minsym_to_demangled_hash_table): Likewise.
634 (minimal_symbol_reader::install): Compute the hash codes for msymbol
635 on the background thread.
636 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
639 2019-11-27 Christian Biesinger <cbiesinger@google.com>
641 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
642 of the mangled name on the background thread.
643 * symtab.c (symbol_set_names): Allow passing in the hash of the
645 * symtab.h (symbol_set_names): Likewise.
647 2019-11-27 Kevin Buettner <kevinb@redhat.com>
649 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
650 physnames are computed for inherited DIEs.
652 2019-11-27 Tom Tromey <tromey@adacore.com>
654 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
656 * cp-support.c: Remove unnecessary backslashes.
658 2019-11-27 Christian Biesinger <cbiesinger@google.com>
660 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
661 with sym->set_linkage_name.
662 * coffread.c (coff_read_enum_type): Likewise.
663 * mdebugread.c (parse_symbol): Likewise.
664 * stabsread.c (patch_block_stabs): Likewise.
665 (define_symbol): Likewise.
666 (read_enum_type): Likewise.
667 (common_block_end): Likewise.
668 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
670 (SYMBOL_SET_LINKAGE_NAME): Remove.
671 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
672 with sym->set_linkage_name.
674 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
676 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
677 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
678 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
679 * NEWS: Mention new MI command.
681 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
683 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
684 '-symbol-info-types', and '-symbol-info-variables'.
685 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
686 (mi_cmd_symbol_info_types): Declare.
687 (mi_cmd_symbol_info_variables): Declare.
688 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
689 (output_debug_symbol): New function.
690 (output_nondebug_symbol): New function.
691 (mi_symbol_info): New function.
692 (mi_info_functions_or_variables): New function.
693 (mi_cmd_symbol_info_functions): New function.
694 (mi_cmd_symbol_info_types): New function.
695 (mi_cmd_symbol_info_variables): New function.
696 * NEWS: Mention new commands.
698 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
700 * symtab.c (symbol_to_info_string): New function, most content
701 moved from print_symbol_info, but updated to return a std::string.
702 (print_symbol_info): Update to use symbol_to_info_string and print
704 * symtab.h (symbol_to_info_string): Declare new function.
706 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
708 * python/python.c (gdbpy_rbreak): Convert to using
709 global_symbol_searcher.
710 * symtab.c (file_matches): Convert return type to bool, change
711 file list to std::vector, update header comment.
712 (search_symbols): Rename to...
713 (global_symbol_searcher::search): ...this and update now its
714 a member function of global_symbol_searcher. Take account of the
715 changes to file_matches.
716 (symtab_symbol_info): Convert to using global_symbol_searcher.
717 (rbreak_command): Likewise.
718 (search_module_symbols): Likewise.
719 * symtab.h (enum symbol_search): Update comment.
720 (search_symbols): Remove declaration.
721 (class global_symbol_searcher): New class.
723 2019-11-26 Tom Tromey <tromey@adacore.com>
725 * cp-support.c (_initialize_cp_support): Conditionally initialize
726 gdb_demangle_attempt_core_dump.
728 2019-11-26 Tom Tromey <tom@tromey.com>
730 * python/py-function.c (fnpy_init): Update.
731 * value.h (add_internal_function): Adjust declaration.
732 * value.c (function_destroyer): Remove.
733 (do_add_internal_function): Don't set destroyer or copy name.
734 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
736 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
737 (cmdpy_init): Set name_allocated.
738 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
740 (~cmd_list_element): Free "name" if needed.
742 2019-11-26 Tom Tromey <tom@tromey.com>
744 * value.h (add_internal_function): Add new overload. Move
745 documentation from value.h.
746 * value.c (do_add_internal_function): New function.
747 (add_internal_function): Use it. Add new overload.
748 (function_destroyer): Don't free doc.
749 * python/py-function.c (fnpy_init): Update.
751 2019-11-26 Tom Tromey <tom@tromey.com>
753 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
754 (cmdpy_init): Set "doc_allocated".
756 2019-11-26 Tom Tromey <tom@tromey.com>
758 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
759 name of worker thread.
760 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
762 * configure, config.in: Rebuild.
764 2019-11-26 Tom Tromey <tom@tromey.com>
766 * python/python.c (class gdbpy_gil): New.
767 (struct gdbpy_event): Add constructor, destructor, operator().
768 (gdbpy_post_event): Use run_on_main_thread.
769 (gdbpy_initialize_events): Remove.
770 (do_start_initialization): Update.
772 2019-11-26 Tom Tromey <tom@tromey.com>
775 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
776 commands. Call update_thread_pool_size.
777 (update_thread_pool_size, maintenance_set_worker_threads): New
779 (n_worker_threads): New global.
781 2019-11-26 Christian Biesinger <cbiesinger@google.com>
782 Tom Tromey <tom@tromey.com>
784 * minsyms.c (minimal_symbol_reader::install): Use
786 * gdbsupport/parallel-for.h: New file.
787 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
789 2019-11-26 Christian Biesinger <cbiesinger@google.com>
790 Tom Tromey <tom@tromey.com>
792 * gdbsupport/thread-pool.h: New file.
793 * gdbsupport/thread-pool.c: New file.
794 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
795 (HFILES_NO_SRCDIR): Add thread-pool.h.
797 2019-11-26 Tom Tromey <tom@tromey.com>
799 * event-top.h (thread_local_segv_handler): Declare.
800 * event-top.c (thread_local_segv_handler): New global.
801 (install_handle_sigsegv, handle_sigsegv): New functions.
802 (async_init_signals): Install SIGSEGV handler.
803 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
805 (report_failed_demangle): New function.
806 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
807 handler-setting code, instead use segv_handler. Run warning code
810 2019-11-26 Tom Tromey <tom@tromey.com>
812 * run-on-main-thread.c: New file.
813 * run-on-main-thread.h: New file.
814 * unittests/main-thread-selftests.c: New file.
815 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
816 main-thread-selftests.c.
817 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
818 (COMMON_SFILES): Add run-on-main-thread.c.
820 2019-11-26 Tom Tromey <tom@tromey.com>
822 * main.c (setup_alternate_signal_stack): Remove.
823 (captured_main_1): Use gdb::alternate_signal_stack.
824 * gdbsupport/alt-stack.h: New file.
826 2019-11-26 Tom Tromey <tom@tromey.com>
828 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
830 (save_original_signals_state, restore_original_signals_state): Use
832 * linux-nat.c (block_child_signals, restore_child_signals_mask)
833 (_initialize_linux_nat): Use gdb_sigmask.
834 * guile/guile.c (_initialize_guile): Use block_signals.
835 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
836 * gdbsupport/gdb-sigmask.h: New file.
837 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
838 * cp-support.c (gdb_demangle): Use gdb_sigmask.
839 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
841 * configure, config.in: Rebuild.
842 * gdbsupport/block-signals.h: New file.
844 2019-11-26 Tom Tromey <tom@tromey.com>
846 * acinclude.m4: Include ax_pthread.m4.
847 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
848 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
849 (CLIBS): Use PTHREAD_LIBS.
850 (aclocal_m4_deps): Add ax_pthread.m4.
851 * config.in, configure: Rebuild.
852 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
854 2019-11-26 Tom Tromey <tom@tromey.com>
856 * symtab.h (struct minimal_symbol) <name_set>: New member.
857 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
858 Don't call symbol_set_names.
859 (minimal_symbol_reader::install): Call symbol_set_names.
861 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
863 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
864 restore_active_ext_lang, as GIL is needed for (indirectly)
865 called PyOS_InterruptOccurred.
867 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
869 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
872 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
874 * remote-sim.c (simulator_command): Make static, remove
877 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
879 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
881 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
882 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
884 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
886 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
888 * unittests/basic_string_view/element_access/char/1.cc (test01):
891 * unittests/basic_string_view/element_access/char/empty.cc (main):
893 * unittests/basic_string_view/element_access/char/front_back.cc
896 * unittests/basic_string_view/inserters/char/2.cc (test05):
899 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
902 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
905 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
907 * unittests/basic_string_view/operations/compare/char/1.cc
910 * unittests/basic_string_view/operations/compare/char/13650.cc
912 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
915 * unittests/basic_string_view/operations/data/char/1.cc (test01):
918 * unittests/basic_string_view/operations/find/char/1.cc (test01):
921 * unittests/basic_string_view/operations/find/char/2.cc (test02):
924 * unittests/basic_string_view/operations/find/char/3.cc (test03):
927 * unittests/basic_string_view/operations/find/char/4.cc (main):
929 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
932 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
935 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
938 * unittests/basic_string_view/operations/substr/char/1.cc
941 * unittests/basic_string_view/operators/char/2.cc (main):
943 * unittests/optional/assignment/1.cc (test): Likewise.
944 * unittests/optional/assignment/2.cc (test): Likewise.
945 * unittests/optional/assignment/3.cc (test): Likewise.
946 * unittests/optional/assignment/4.cc (test): Likewise.
947 * unittests/optional/assignment/5.cc (test): Likewise.
948 * unittests/optional/assignment/6.cc (test): Likewise.
949 * unittests/optional/assignment/7.cc (test): Likewise.
950 * unittests/optional/cons/copy.cc (test): Likewise.
951 * unittests/optional/cons/default.cc (test): Likewise.
952 * unittests/optional/cons/move.cc (test): Likewise.
953 * unittests/optional/cons/value.cc (test): Likewise.
954 * unittests/optional/in_place.cc (test): Likewise.
955 * unittests/optional/observers/1.cc (test): Likewise.
956 * unittests/optional/observers/2.cc (test): Likewise.
958 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
960 * tui-win.h (tui_set_var_cmd): Remove.
961 * tui-win.c (tui_set_var_cmd): Make static.
963 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
965 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
966 rbreak_command_wrapper): Remove.
967 * symtab.c (rbreak_command_wrapper): Remove.
969 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
971 * inferior.h (info_terminal_command): Remove declaration.
972 * inflow.c (info_terminal_command): Make static.
974 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
976 * inferior.c (exit_inferior_silent): Remove.
978 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
980 * dictionary.c (dict_empty, mdict_empty): Remove.
981 * dictionary.c (mdict_empty): Remove.
983 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
985 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
986 (arc_insn_get_memory_offset): Likewise.
987 (arc_insn_dump): Likewise.
988 * cp-support.c (test_cp_symbol_name_matches): Likewise.
989 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
990 * dictionary.c (dict_iterator_next): Likewise.
991 (dict_iter_match_first): Likewise.
992 (dict_iter_match_next): Likewise.
993 * f-lang.c (evaluate_subexp_f): Likewise.
994 * hppa-tdep.c (hppa_read_pc): Likewise.
995 * i386-tdep.c (i386_floatformat_for_type): Likewise.
996 * parse.c (write_exp_elt_msym): Likewise.
997 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
998 * remote.c (remote_packet_size): Likewise.
999 (remote_notif_stop_parse): Likewise.
1000 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1001 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1002 * source.c (prepare_path_for_appending): Likewise.
1003 * sparc64-linux-tdep.c
1004 (sparc64_linux_handle_segmentation_fault); Likewise.
1005 * stack.c (frame_selection_by_function_completer): Likewise.
1007 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1009 * completer.c (set_gdb_completion_word_break_characters):
1012 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1014 * dwarf-index-write.c: Include dwarf-index-write.h.
1015 * mi/mi-interp.c: Include mi/mi-interp.h.
1017 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1019 * aarch32-tdep.c: Include aarch32-tdep.h.
1020 * aarch32-tdep.h: Forward-declare struct target_desc.
1022 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1024 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1026 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1027 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1029 2019-11-25 Tom de Vries <tdevries@suse.de>
1031 * contrib/words.sh: Add -c option.
1033 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1035 * solib.c (solib_find_1): Change int to bool.
1036 (exec_file_find): Change int to bool.
1037 (solib_find): Change int to bool.
1038 (solib_read_symbols): Change int to bool.
1039 (solib_used): Change int to bool.
1040 (solib_add): Change int to bool.
1041 (info_sharedlibrary_command): Change int to bool.
1042 (solib_contains_address_p): Change int to bool.
1043 (solib_keep_data_in_core): Change int to bool.
1044 (in_solib_dynsym_resolve_code): Change int to bool.
1045 (reload_shared_libraries_1): Change int to bool.
1046 (gdb_sysroot_changed): Change int to bool.
1047 * solib.h (solib_read_symbols): Change int to bool.
1048 (solib_contains_address_p): Change int to bool.
1049 (solib_keep_data_in_core): Change int to bool.
1050 (in_solib_dynsym_resolve_code): Change int to bool.
1051 (libpthread_name_p): Change int to bool.
1053 2019-11-25 Luis Machado <luis.machado@linaro.org>
1055 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1056 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1057 (remote_packet_max_chars): New static global.
1058 (show_remote_packet_max_chars): New function.
1059 (remote_target::putpkt_binary): Adjust to use new
1060 remote_packet_max_chars option.
1061 (remote_target::getpkt_or_notif_sane_1): Likewise.
1062 (_initialize_remote): Register new remote-packet-max-chars option.
1064 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1066 * m68k-linux-nat.c: Include gdbarch.h.
1068 2019-11-24 Tom Tromey <tom@tromey.com>
1070 * symfile.c (read_symbols): Update.
1071 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1073 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1074 (psym_lookup_symbol, psym_find_last_source_symtab)
1075 (psym_forget_cached_source_info, psym_print_stats)
1076 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1077 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1078 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1079 (psym_find_compunit_symtab_by_address)
1080 (maintenance_print_psymbols, maintenance_info_psymtabs)
1081 (maintenance_check_psymtabs): Update.
1082 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1085 2019-11-22 Tom Tromey <tom@tromey.com>
1087 * observable.h: Update comments.
1089 2019-11-22 Tom Tromey <tromey@adacore.com>
1091 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1092 (print_ada_task_info): Don't try to fetch thread id if task is not
1095 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1097 * ada-exp.y: Update.
1098 * ada-lang.c (sort_choices): Update.
1099 (ada_print_symbol_signature): Update.
1100 (resolve_subexp): Update.
1101 (ada_parse_renaming): Update.
1102 (ada_read_renaming_var_value): Update.
1103 (lesseq_defined_than): Update.
1104 (remove_extra_symbols): Update.
1105 (remove_irrelevant_renamings): Update.
1106 (ada_add_block_symbols): Update.
1107 (ada_collect_symbol_completion_matches): Update.
1108 (ada_is_renaming_symbol): Update.
1109 (aggregate_assign_from_choices): Update.
1110 (ada_evaluate_subexp): Update.
1111 (ada_has_this_exception_support): Update.
1112 (ada_is_non_standard_exception_sym): Update.
1113 (ada_add_exceptions_from_frame): Update.
1114 (ada_add_global_exceptions): Update.
1115 (ada_print_subexp): Update.
1116 * ax-gdb.c (gen_var_ref): Update.
1117 (gen_maybe_namespace_elt): Update.
1118 (gen_expr_for_cast): Update.
1121 * blockframe.c (find_pc_partial_function): Update.
1122 * breakpoint.c (print_breakpoint_location): Update.
1123 (update_static_tracepoint): Update.
1124 * btrace.c (ftrace_print_function_name): Update.
1125 (ftrace_function_switched): Update.
1126 * buildsym.c (find_symbol_in_list): Update.
1128 * c-typeprint.c (c_print_typedef): Update.
1129 (c_type_print_template_args): Update.
1130 * cli/cli-cmds.c (edit_command): Update.
1131 (list_command): Update.
1132 (print_sal_location): Update.
1133 * coffread.c (patch_opaque_types): Update.
1134 (process_coff_symbol): Update.
1135 (coff_read_enum_type): Update.
1136 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1137 (convert_one_symbol): Update.
1138 (hash_symname): Update.
1139 (eq_symname): Update.
1140 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1141 * compile/compile-cplus-types.c (debug_print_scope): Update.
1142 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1143 * compile/compile-object-load.c (get_out_value_type): Update.
1144 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1145 (search_symbol_list): Update.
1146 (cp_lookup_symbol_imports_or_template): Update.
1147 * cp-support.c (overload_list_add_symbol): Update.
1148 * ctfread.c (psymtab_to_symtab): Update.
1149 * dbxread.c (cp_set_block_scope): Update.
1150 * dictionary.c (iter_match_first_hashed): Update.
1151 (iter_match_next_hashed): Update.
1152 (insert_symbol_hashed): Update.
1153 (iter_match_next_linear): Update.
1154 * dictionary.h: Update.
1155 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1156 (locexpr_describe_location_piece): Update.
1157 (locexpr_describe_location_1): Update.
1158 (locexpr_generate_c_location): Update.
1159 (loclist_describe_location): Update.
1160 (loclist_generate_c_location): Update.
1161 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1162 (read_func_scope): Update.
1163 (process_enumeration_scope): Update.
1164 (new_symbol): Update.
1165 (dwarf2_const_value): Update.
1166 (dwarf2_symbol_mark_computed): Update.
1167 * eval.c (evaluate_funcall): Update.
1168 (evaluate_subexp_standard): Update.
1169 * expprint.c (print_subexp_standard): Update.
1170 (dump_subexp_body_standard): Update.
1171 * f-valprint.c (info_common_command_for_block): Update.
1172 * findvar.c (get_hosting_frame): Update.
1173 (default_read_var_value): Update.
1174 * go-lang.c (go_symbol_package_name): Update.
1175 * guile/scm-block.c (bkscm_print_block_smob): Update.
1176 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1177 (gdbscm_symbol_name): Update.
1178 (gdbscm_symbol_linkage_name): Update.
1179 (gdbscm_symbol_print_name): Update.
1180 * infcall.c (get_function_name): Update.
1181 * infcmd.c (jump_command): Update.
1182 (finish_command): Update.
1183 * infrun.c (insert_exception_resume_breakpoint): Update.
1184 * linespec.c (canonicalize_linespec): Update.
1185 (create_sals_line_offset): Update.
1186 (convert_linespec_to_sals): Update.
1187 (complete_label): Update.
1188 (find_label_symbols_in_block): Update.
1189 * m2-typeprint.c (m2_print_typedef): Update.
1190 * mdebugread.c (mdebug_reg_to_regnum): Update.
1191 (parse_symbol): Update.
1192 (mylookup_symbol): Update.
1193 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1194 (list_args_or_locals): Update.
1195 * objc-lang.c (compare_selectors): Update.
1196 (info_selectors_command): Update.
1197 (compare_classes): Update.
1198 (info_classes_command): Update.
1199 (find_imps): Update.
1200 * p-typeprint.c (pascal_print_typedef): Update.
1201 * printcmd.c (build_address_symbolic): Update.
1202 (info_address_command): Update.
1203 (print_variable_and_value): Update.
1204 * python/py-framefilter.c (extract_sym): Update.
1205 (py_print_single_arg): Update.
1206 * python/py-symbol.c (sympy_str): Update.
1207 (sympy_get_name): Update.
1208 (sympy_get_linkage_name): Update.
1209 * python/python.c (gdbpy_rbreak): Update.
1210 * record-btrace.c (btrace_get_bfun_name): Update.
1211 (btrace_call_history): Update.
1212 * rust-lang.c (rust_print_typedef): Update.
1213 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1214 * stabsread.c (stab_reg_to_regnum): Update.
1215 (define_symbol): Update.
1216 (read_enum_type): Update.
1217 (common_block_end): Update.
1218 (cleanup_undefined_types_1): Update.
1219 (scan_file_globals): Update.
1220 * stack.c (print_frame_arg): Update.
1221 (print_frame_args): Update.
1222 (find_frame_funname): Update.
1223 (info_frame_command_core): Update.
1224 (iterate_over_block_locals): Update.
1225 (print_block_frame_labels): Update.
1226 (do_print_variable_and_value): Update.
1227 (iterate_over_block_arg_vars): Update.
1228 (return_command): Update.
1229 * symmisc.c (dump_symtab_1): Update.
1230 (print_symbol): Update.
1231 * symtab.c (eq_symbol_entry): Update.
1232 (symbol_cache_dump): Update.
1233 (lookup_language_this): Update.
1234 (find_pc_sect_line): Update.
1235 (skip_prologue_sal): Update.
1236 (symbol_search::compare_search_syms): Update.
1237 (treg_matches_sym_type_name): Update.
1238 (search_symbols): Update.
1239 (print_symbol_info): Update.
1240 (rbreak_command): Update.
1241 (completion_list_add_symbol): Update.
1242 (find_gnu_ifunc): Update.
1243 (get_symbol_address): Update.
1244 (search_module_symbols): Update.
1245 (info_module_subcommand): Update.
1246 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1247 (SYMBOL_LINKAGE_NAME): Remove.
1248 (SYMBOL_DEMANGLED_NAME): Remove.
1249 (SYMBOL_PRINT_NAME): Remove.
1250 (SYMBOL_SEARCH_NAME): Remove.
1251 * tracepoint.c (set_traceframe_context): Update.
1252 (validate_actionline): Update.
1253 (collection_list::collect_symbol): Update.
1254 (encode_actions_1): Update.
1255 (info_scope_command): Update.
1256 (print_one_static_tracepoint_marker): Update.
1257 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1258 * valops.c (address_of_variable): Update.
1259 (find_overload_match): Update.
1260 (find_oload_champ): Update.
1262 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1264 * ada-lang.c (ada_lookup_simple_minsym): Update.
1265 (ada_collect_symbol_completion_matches): Update.
1266 * ada-tasks.c (read_atcb): Update.
1267 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1268 (amd64_windows_skip_trampoline_code): Update.
1269 * arm-tdep.c (skip_prologue_function): Update.
1270 (arm_skip_stack_protector): Update.
1271 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1272 (arm_wince_skip_main_prologue): Update.
1273 * ax-gdb.c (gen_expr): Update.
1274 * block.c (call_site_for_pc): Update.
1275 * blockframe.c (find_pc_partial_function): Update.
1276 * breakpoint.c (set_breakpoint_location_function): Update.
1277 * btrace.c (ftrace_print_function_name): Update.
1278 (ftrace_function_switched): Update.
1279 * c-valprint.c (print_unpacked_pointer): Update.
1280 * coffread.c (coff_symfile_read): Update.
1281 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1282 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1283 * dwarf-index-write.c (write_psymbols): Update.
1284 * dwarf2loc.c (call_site_to_target_addr): Update.
1285 (func_verify_no_selftailcall): Update.
1286 (tailcall_dump): Update.
1287 (call_site_find_chain_1): Update.
1288 (dwarf_expr_reg_to_entry_parameter): Update.
1289 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1290 * eval.c (evaluate_funcall): Update.
1291 (evaluate_subexp_standard): Update.
1292 (evaluate_subexp_for_sizeof): Update.
1293 * expprint.c (print_subexp_standard): Update.
1294 (dump_subexp_body_standard): Update.
1295 * frame.c (get_prev_frame_always_1): Update.
1296 * frv-tdep.c (frv_skip_main_prologue): Update.
1297 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1298 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1299 (gnuv3_get_typename_from_type_info): Update.
1300 (gnuv3_skip_trampoline): Update.
1301 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1302 * i386-tdep.c (i386_skip_main_prologue): Update.
1303 (i386_pe_skip_trampoline_code): Update.
1304 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1305 * infcall.c (get_function_name): Update.
1306 * linespec.c (minsym_found): Update.
1307 * linux-fork.c (info_checkpoints_command): Update.
1308 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1309 (m32c_m16c_pointer_to_address): Update.
1310 * maint.c (maintenance_translate_address): Update.
1311 * minsyms.c (add_minsym_to_hash_table): Update.
1312 (add_minsym_to_demangled_hash_table): Update.
1313 (lookup_minimal_symbol_mangled): Update.
1314 (lookup_minimal_symbol_demangled): Update.
1315 (lookup_minimal_symbol_linkage): Update.
1316 (lookup_minimal_symbol_text): Update.
1317 (lookup_minimal_symbol_by_pc_name): Update.
1318 (minimal_symbol_is_less_than): Update.
1319 (compact_minimal_symbols): Update.
1320 (build_minimal_symbol_hash_tables): Update.
1321 (find_solib_trampoline_target): Update.
1322 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1323 (mips_skip_pic_trampoline_code): Update.
1324 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1325 * objc-lang.c (info_selectors_command): Update.
1326 (info_classes_command): Update.
1327 (find_methods): Update.
1328 (find_imps): Update.
1329 * p-valprint.c (pascal_val_print): Update.
1330 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1331 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1332 * printcmd.c (build_address_symbolic): Update.
1333 (info_symbol_command): Update.
1334 * psymtab.c (psymbol_name_matches): Update.
1335 (match_partial_symbol): Update.
1336 (lookup_partial_symbol): Update.
1337 (print_partial_symbols): Update.
1338 (sort_pst_symbols): Update.
1339 (maintenance_check_psymtabs): Update.
1340 * python/py-framefilter.c (py_print_frame): Update.
1341 * python/python.c (gdbpy_rbreak): Update.
1342 * record-btrace.c (btrace_get_bfun_name): Update.
1343 (btrace_call_history): Update.
1344 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1345 (rs6000_skip_trampoline_code): Update.
1346 * sol-thread.c (info_cb): Update.
1347 * stabsread.c (scan_file_globals): Update.
1348 * stack.c (find_frame_funname): Update.
1349 (info_frame_command_core): Update.
1350 * symmisc.c (dump_msymbols): Update.
1351 * symtab.c (symbol_natural_name): Rename to..,
1352 (general_symbol_info::natural_name): ...this.
1353 (symbol_demangled_name): Rename to...
1354 (general_symbol_info::demangled_name): ...this.
1355 (symbol_search_name): Rename to...
1356 (general_symbol_info::search_name): ...this.
1357 (symbol_matches_search_name): Update.
1358 (find_pc_sect_line): Update.
1359 (skip_prologue_sal): Update.
1360 (search_symbols): Update.
1361 (print_msymbol_info): Update.
1362 (rbreak_command): Update.
1363 (completion_list_add_msymbol): Update.
1364 (completion_list_objc_symbol): Update.
1365 (get_msymbol_address): Update.
1366 * symtab.h (struct general_symbol_info): Add member functions
1367 natural_name (), linkage_name (), print_name (), demangled_name (),
1369 (SYMBOL_NATURAL_NAME): Update.
1370 (symbol_natural_name): Move to a member function on general_symbol_info.
1371 (SYMBOL_DEMANGLED_NAME): Update.
1372 (symbol_demangled_name): Move to a member function on
1373 general_symbol_info.
1374 (SYMBOL_SEARCH_NAME): Update.
1375 (symbol_search_name): Move to a member function on general_symbol_info.
1376 (MSYMBOL_NATURAL_NAME): Remove.
1377 (MSYMBOL_LINKAGE_NAME): Remove.
1378 (MSYMBOL_PRINT_NAME): Remove.
1379 (MSYMBOL_DEMANGLED_NAME): Remove.
1380 (MSYMBOL_SEARCH_NAME): Remove.
1381 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1383 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1385 * symtab.c (create_demangled_names_hash): Use per_bfd->
1386 minimal_symbol_count for computing the initial size, if greater
1387 than our default size.
1389 2019-11-22 Tom de Vries <tdevries@suse.de>
1391 * contrib/words.sh: Improve words extraction.
1393 2019-11-22 Tom de Vries <tdevries@suse.de>
1395 * contrib/words.sh: Combine sed invocations.
1397 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1399 * Makefile.in: Update.
1400 * demangle.c: Rename to...
1401 * gdb-demangle.c: ..this.
1402 (is_cplus_marker): Change return type to bool.
1403 (_initialize_demangler): Rename to...
1404 (_initialize_gdb_demangle): ...this.
1405 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1406 * symtab.h (demangle): Remove declaration; instead include
1409 2019-11-21 Tom Tromey <tromey@adacore.com>
1411 * gdbsupport/format.c (format_pieces): Parse %I64d.
1412 * unittests/format_pieces-selftests.c (test_windows_formats): New
1414 (run_tests): Call it.
1416 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1418 Byte reverse display of variables with DW_END_big, DW_END_little
1419 (DW_AT_endianity) dwarf attributes if different than the native
1421 * ada-lang.c (ada_value_binop):
1422 Use type_byte_order instead of gdbarch_byte_order.
1423 * ada-valprint.c (printstr):
1424 (ada_val_print_string):
1425 * ada-lang.c (value_pointer):
1427 Use type_byte_order instead of gdbarch_byte_order.
1428 * c-lang.c (c_get_string):
1429 Use type_byte_order instead of gdbarch_byte_order.
1430 * c-valprint.c (c_val_print_array):
1431 Use type_byte_order instead of gdbarch_byte_order.
1432 * cp-valprint.c (cp_print_class_member):
1433 Use type_byte_order instead of gdbarch_byte_order.
1434 * dwarf2loc.c (rw_pieced_value):
1435 Use type_byte_order instead of gdbarch_byte_order.
1436 * dwarf2read.c (read_base_type): Handle DW_END_big,
1438 * f-lang.c (f_get_encoding):
1439 Use type_byte_order instead of gdbarch_byte_order.
1440 * findvar.c (default_read_var_value):
1441 Use type_byte_order instead of gdbarch_byte_order.
1442 * gdbtypes.c (check_types_equal):
1443 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1444 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1445 and TYPE_ENDIANITY_LITTLE if set.
1446 (type_byte_order): new function.
1447 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1448 (struct main_type) <flag_endianity_not_default>:
1450 (type_byte_order): New function.
1451 * infcmd.c (default_print_one_register_info):
1452 Use type_byte_order instead of gdbarch_byte_order.
1453 * p-lang.c (pascal_printstr):
1454 Use type_byte_order instead of gdbarch_byte_order.
1455 * p-valprint.c (pascal_val_print):
1456 Use type_byte_order instead of gdbarch_byte_order.
1457 * printcmd.c (print_scalar_formatted):
1458 Use type_byte_order instead of gdbarch_byte_order.
1459 * solib-darwin.c (darwin_current_sos):
1460 Use type_byte_order instead of gdbarch_byte_order.
1461 * solib-svr4.c (solib_svr4_r_ldsomap):
1462 Use type_byte_order instead of gdbarch_byte_order.
1463 * stap-probe.c (stap_modify_semaphore):
1464 Use type_byte_order instead of gdbarch_byte_order.
1465 * target-float.c (target_float_same_format_p):
1466 Use type_byte_order instead of gdbarch_byte_order.
1467 * valarith.c (scalar_binop):
1469 Use type_byte_order instead of gdbarch_byte_order.
1470 * valops.c (value_cast):
1471 Use type_byte_order instead of gdbarch_byte_order.
1472 * valprint.c (generic_emit_char):
1475 Use type_byte_order instead of gdbarch_byte_order.
1476 * value.c (unpack_long):
1477 (unpack_bits_as_long):
1478 (unpack_value_bitfield):
1481 (pack_unsigned_long):
1482 Use type_byte_order instead of gdbarch_byte_order.
1483 * findvar.c (unsigned_pointer_to_address):
1484 (signed_pointer_to_address):
1485 (unsigned_address_to_pointer):
1486 (address_to_signed_pointer):
1487 (default_read_var_value):
1488 (default_value_from_register):
1489 Use type_byte_order instead of gdbarch_byte_order.
1490 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1491 Use type_byte_order instead of gdbarch_byte_order.
1492 * riscv-tdep.c (riscv_print_one_register_info):
1493 Use type_byte_order instead of gdbarch_byte_order.
1495 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1497 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1498 (current_ui_gdb_stdin_ptr): Likewise.
1499 (current_ui_gdb_stderr_ptr): Likewise.
1500 (current_ui_gdb_stdlog_ptr): Likewise.
1501 (current_ui_current_uiout_ptr): Likewise.
1502 (gen_ret_current_ui_field_ptr): Remove.
1504 2019-11-21 Tom de Vries <tdevries@suse.de>
1507 * cli/cli-script.c (execute_control_command): Only switch to
1508 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1510 2019-11-19 Tom Tromey <tom@tromey.com>
1512 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1513 Now static. Change type of "name".
1514 (tui_set_win_height_command): Don't copy "arg".
1515 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1516 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1518 2019-11-19 Ali Tamur <tamur@google.com>
1520 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1521 "if (attr != nullptr)".
1522 (dwarf2_find_base_address): Likewise.
1523 (dwarf2_build_include_psymtabs): Likewise.
1524 (read_cutu_die_from_dwo): Likewise.
1525 (read_func_scope): Likewise.
1526 (read_call_site_scope): Likewise.
1527 (dwarf2_get_pc_bounds): Likewise.
1528 (dwarf2_record_block_ranges): Likewise.
1529 (dwarf2_add_field): Likewise.
1530 (dwarf2_add_member_fn): Likewise.
1531 (read_structure_type): Likewise.
1532 (read_enumeration_type): Likewise.
1533 (read_array_type): Likewise.
1534 (read_array_order): Likewise.
1535 (read_set_type): Likewise.
1536 (read_common_block): Likewise.
1537 (read_tag_reference_type): Likewise.
1538 (read_tag_string_type): Likewise.
1539 (read_subroutine_type): Likewise.
1540 (read_base_type): Likewise.
1541 (read_subrange_type): Likewise.
1542 (new_symbol): Likewise.
1543 (prepare_one_comp_unit): Likewise.
1545 2019-11-19 Tom Tromey <tromey@adacore.com>
1547 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1548 result in error when DebugActiveProcess fails.
1550 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1551 Pedro Alves <palves@redhat.com>
1553 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1554 * target.c (target_stack::push): Call 'unpush' if there's a
1555 target on top of the stack.
1557 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1559 * python/py-block.c (blpy_dealloc): Call tp_free.
1560 (blpy_block_syms_dealloc): Likewise.
1561 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1562 * python/py-inferior.c (infpy_dealloc): Likewise.
1563 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1564 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1565 * python/py-symbol.c (sympy_dealloc): Likewise.
1566 * python/py-symtab.c (stpy_dealloc): Likewise.
1567 * python/py-type.c (typy_iterator_dealloc): Likewise.
1569 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1571 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1572 constructor instead of using a class initializer.
1574 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1576 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1577 * configure: Regenerate.
1578 * configure.ac: Don't source common.host.
1579 * gdbsupport/common.host: Remove.
1580 * gdbsupport/mingw-strerror.c: Remove.
1581 * gdbsupport/posix-strerror.c: Rename to...
1582 * gdbsupport/safe-strerror.c: ...this.
1584 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1586 * maint.c (scoped_command_stats::print_time): Use localtime_r
1587 instead of localtime (provided through gnulib if necessary).
1588 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1591 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1593 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1594 avoid compile errors.
1596 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1598 * config.in: Regenerate.
1599 * configure: Regenerate.
1600 * gdbsupport/common.m4: No longer check for strerror_r.
1601 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1602 POSIX version of strerror_r, now that gnulib provides it if
1605 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1607 * README (`configure' options): Update.
1609 2019-11-14 Tom Tromey <tromey@adacore.com>
1611 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1612 expected type for the RHS if the LHS is a convenience variable.
1614 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1616 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1617 Provide explicit default and copy constructor.
1619 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1621 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1622 only call Py_INCREF (newbp) in the bppy_pending_object case.
1624 2019-11-13 Tom Tromey <tromey@adacore.com>
1627 * psympriv.h (partial_symbol): Remove static assert.
1628 * symtab.h (general_symbol_info, symbol): Remove static assert.
1630 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1632 * gdbsupport/format.c (format_pieces::format_pieces): Support
1633 printf 'z' size modifier.
1634 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1635 * printcmd.c (ui_printf): Handle size_t_arg.
1636 * ui-out.c (ui_out::vmessage): Likewise.
1637 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1639 (run_tests): Call test_format_int_sizes.
1641 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1643 * ada-exp.y (write_ambiguous_var): Update.
1644 * buildsym.c (add_symbol_to_list): Update.
1645 * dwarf2read.c (read_variable): Update.
1646 (new_symbol): Update.
1647 * jit.c (finalize_symtab): Update.
1648 * language.c (language_alloc_type_symbol): Update.
1649 * symtab.c (fixup_symbol_section): Update.
1650 (initialize_objfile_symbol_1): Move code to...
1651 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1652 (allocate_symbol): Update.
1653 (allocate_template_symbol): Update.
1654 (get_symbol_address): Update.
1655 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1656 of having as a field, and add a constructor.
1657 (SYMBOL_VALUE): Update.
1658 (SYMBOL_VALUE_ADDRESS): Update.
1659 (SET_SYMBOL_VALUE_ADDRESS): Update.
1660 (SYMBOL_VALUE_BYTES): Update.
1661 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1662 (SYMBOL_BLOCK_VALUE): Update.
1663 (SYMBOL_VALUE_CHAIN): Update.
1664 (SYMBOL_LANGUAGE): Update.
1665 (SYMBOL_SECTION): Update.
1666 (SYMBOL_OBJ_SECTION): Update.
1667 (SYMBOL_SET_LANGUAGE): Update.
1668 (SYMBOL_SET_LINKAGE_NAME): Update.
1669 (SYMBOL_SET_NAMES): Update.
1670 (SYMBOL_NATURAL_NAME): Update.
1671 (SYMBOL_LINKAGE_NAME): Update.
1672 (SYMBOL_DEMANGLED_NAME): Update.
1673 (SYMBOL_SEARCH_NAME): Update.
1674 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1675 (struct symbol): Update.
1676 (struct template_symbol): Update.
1677 (struct rust_vtable_symbol): Update.
1678 * xcoffread.c (SYMBOL_DUP): Update.
1680 2019-11-12 Tom Tromey <tom@tromey.com>
1682 * tui/tui-layout.c (show_layout): Set current_layout.
1683 (show_source_disasm_command, show_data)
1684 (show_source_or_disasm_and_command): Don't set current_layout.
1686 2019-11-12 Tom Tromey <tom@tromey.com>
1688 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1690 2019-11-12 Tom Tromey <tom@tromey.com>
1692 * tui/tui-win.c (resize_message): New global.
1693 (show_tui_resize_message): New function.
1694 (tui_async_resize_screen): Print message if requested.
1695 (_initialize_tui_win): Add tui-resize-message setting.
1696 * NEWS: Add entry for new commands.
1698 2019-11-11 Tom Tromey <tom@tromey.com>
1700 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1703 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1705 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1707 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1709 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1711 * python/python-internal.h (gdbpy_lookup_static_symbols):
1712 Declare new function.
1713 * python/python.c (python_GdbMethods): Add
1714 gdb.lookup_static_symbols method.
1715 * NEWS: Mention gdb.lookup_static_symbols.
1717 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1719 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1720 static block of current object file first. Also fix typo in
1723 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1725 * stack.c (set_last_displayed_sal): Delete.
1726 (last_displayed_sal_valid): Delete.
1727 (last_displayed_pspace): Delete.
1728 (last_displayed_addr): Delete.
1729 (last_displayed_symtab): Delete.
1730 (last_displayed_line): Delete.
1731 (class last_displayed_symtab_info_type): New.
1732 (last_displayed_symtab_info): New static global variable.
1733 (print_frame_info): Call methods on last_displayed_symtab_info.
1734 (clear_last_displayed_sal): Update header comment, and make use of
1735 last_displayed_symtab_info.
1736 (last_displayed_sal_is_valid): Likewise.
1737 (get_last_displayed_pspace): Likewise.
1738 (get_last_displayed_addr): Likewise.
1739 (get_last_displayed_symtab): Likewise.
1740 (get_last_displayed_line): Likewise.
1741 (get_last_displayed_sal): Likewise.
1742 * stack.h (clear_last_displayed_sal): Update header comment.
1743 (last_displayed_sal_is_valid): Likewise.
1744 (get_last_displayed_pspace): Likewise.
1745 (get_last_displayed_addr): Likewise.
1746 (get_last_displayed_symtab): Likewise.
1747 (get_last_displayed_line): Likewise.
1748 (get_last_displayed_sal): Likewise.
1750 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1752 * stack.c (frame_show_address): Convert return type to bool.
1753 * stack.h (frame_show_address): Likewise, and update header
1756 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1758 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1759 * unittests/vec-utils-selftests.c: New file.
1760 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1762 2019-11-10 Tom Tromey <tom@tromey.com>
1764 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1765 (tui_highlight_win): Likewise.
1766 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1767 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1768 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1769 Don't set can_highlight.
1771 2019-11-10 Tom Tromey <tom@tromey.com>
1773 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1774 Remove unused declaration.
1776 2019-11-08 Tom Tromey <tromey@adacore.com>
1778 * top.c (read_command_file): Update.
1779 (command_line_input): Make return type const.
1780 * python/py-gdb-readline.c: Update.
1781 * linespec.c (decode_line_2): Update.
1782 * defs.h (command_line_input): Make return type const.
1783 * cli/cli-script.c (read_next_line): Make return type const.
1784 * ada-lang.c (get_selections): Update.
1786 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1788 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1789 * mi/mi-main.c (output_cores): Likewise.
1790 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1791 (linux_xfer_osdata_modules): Likewise.
1792 * remote.c (register_remote_support_xml): Likewise.
1793 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1794 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1796 2019-11-06 Tom Tromey <tom@tromey.com>
1798 * tui/tui-interp.c: Don't include readline.h.
1799 * tui/tui-hooks.c: Don't include readline.h.
1800 * symmisc.c: Include tilde.h, not readline.h.
1801 * symfile.c: Include tilde.h, not readline.h.
1802 * source.c: Include tilde.h, not readline.h.
1803 * solib.c: Include tilde.h, not readline.h.
1804 * psymtab.c: Include tilde.h, not readline.h.
1805 * exec.c: Include tilde.h, not readline.h.
1806 * corelow.c: Include tilde.h, not readline.h.
1807 * cli/cli-dump.c: Include tilde.h, not readline.h.
1808 * cli/cli-cmds.c: Don't include readline.h.
1810 2019-11-05 Tom Tromey <tom@tromey.com>
1812 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1813 (tui_disassemble): Set addr_size.
1814 (tui_disasm_window::set_contents): Use addr_size.
1816 2019-11-05 Tom Tromey <tom@tromey.com>
1818 * rust-lang.c (rust_language_defn): Update.
1819 * python/py-value.c (valpy_string): Call c_get_string.
1820 * p-lang.c (pascal_language_defn): Update.
1821 * opencl-lang.c (opencl_language_defn): Update.
1822 * objc-lang.c (objc_language_defn): Update.
1823 * m2-lang.c (m2_language_defn): Update.
1824 * language.c (unknown_language_defn, auto_language_defn): Update.
1825 (default_get_string): Remove.
1826 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1827 * go-lang.c (go_language_defn): Update.
1828 * f-lang.c (f_language_defn): Update.
1829 * d-lang.c (d_language_defn): Update.
1830 * c-lang.c (c_language_defn, cplus_language_defn)
1831 (asm_language_defn, minimal_language_defn): Update.
1832 * ada-lang.c (ada_language_defn): Update.
1833 * language.h (struct language_defn) <la_get_string>: Remove.
1834 (LA_GET_STRING): Remove.
1835 (default_get_string): Don't declare.
1837 2019-11-05 Tom Tromey <tom@tromey.com>
1839 * tui/tui-source.h (struct tui_source_window): Inline
1840 constructor. Remove destructor.
1841 <style_changed, m_observable>: Move to superclass.
1842 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1843 (struct tui_source_window_base): Move private members to end.
1844 <style_changed, m_observable>: Move from tui_source_window.
1845 * tui/tui-winsource.c (tui_copy_source_line): Move from
1846 tui-source.c. Rename from copy_source_line. Add special handling
1847 for negative line number.
1848 (tui_source_window_base::style_changed): Move from
1850 (tui_source_window_base): Register observer.
1851 (~tui_source_window_base): New.
1852 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1854 (tui_source_window::set_contents): Use tui_copy_source_line.
1855 (tui_source_window::tui_source_window): Move to tui-source.h.
1856 (tui_source_window::~tui_source_window): Remove.
1857 (tui_source_window::style_changed): Move to superclass.
1858 * tui/tui-disasm.c (tui_disassemble): Create string file with
1859 styling, when possible. Add "addr_size" parameter.
1860 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1861 Don't compute maximum size.
1862 (len_without_escapes): New function
1864 2019-11-05 Tom Tromey <tom@tromey.com>
1866 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1868 * tui/tui-winsource.c (tui_show_source_line): Update.
1869 * tui/tui-source.c (tui_source_window::set_contents): Update.
1870 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1872 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1874 * symtab.h (gdb_static_assert): Put && operator at the beginning
1875 of the line instead of the end.
1877 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1879 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1880 and sizeof (symbol).
1881 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1883 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1885 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1886 * configure.host: Mark *-*-solaris2.10* obsolete.
1887 * configure.tgt: Mark Solaris < 11 obsolete.
1888 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1889 Update target triplet.
1891 2019-11-01 Tom Tromey <tromey@adacore.com>
1893 * utils.c (print_sys_errmsg): Simplify.
1895 2019-11-01 Tom Tromey <tromey@adacore.com>
1897 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1899 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1901 * configure: Regenerate.
1902 * configure.ac: Remove check for strerror_r.
1903 * gdbsupport/common.m4: Check for strerror_r.
1905 2019-11-01 Luis Machado <luis.machado@linaro.org>
1909 * arm-tdep.c (arm_per_objfile): Rename to ...
1910 (arm_per_bfd): ... this.
1911 (arm_objfile_data_key): Rename to ...
1912 (arm_bfd_data_key): ... this.
1913 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1915 (arm_record_special_symbol): Likewise.
1917 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1919 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1921 * c-typeprint.c (c_print_typedef): Likewise.
1922 * f-typeprint.c (f_print_typedef): Likewise.
1923 * m2-typeprint.c (m2_print_typedef): Likewise.
1924 * p-typeprint.c (pascal_print_typedef): Likewise.
1925 * rust-lang.c (rust_print_typedef): Likewise.
1926 * symtab.c (print_symbol_info): Print a newline after calling
1929 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1931 * symtab.c (info_module_cmdlist): New variable.
1932 (info_module_command): New function.
1933 (search_module_symbols): New function.
1934 (info_module_subcommand): New function.
1935 (struct info_modules_var_func_options): New struct.
1936 (info_modules_var_func_options_defs): New variable.
1937 (make_info_modules_var_func_options_def_group): New function.
1938 (info_module_functions_command): New function.
1939 (info_module_variables_command): New function.
1940 (info_module_var_func_command_completer): New function.
1941 (_initialize_symtab): Register new 'info module functions' and
1942 'info module variables' commands.
1943 * symtab.h (typedef symbol_search_in_module): New typedef.
1944 (search_module_symbols): Declare new function.
1945 * NEWS: Mention new commands.
1947 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1949 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1950 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1951 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1953 (scan_partial_symbols): Only create partial module symbols for non
1955 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1957 * symtab.c (search_domain_name): Likewise.
1958 (search_symbols): Likewise.
1959 (print_symbol_info): Likewise.
1960 (symtab_symbol_info): Likewise.
1961 (info_modules_command): New function.
1962 (_initialize_symtab): Register 'info modules' command.
1963 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1964 * NEWS: Mention new 'info modules' command.
1966 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1968 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1969 and $_gdb_maint_setting_str.
1971 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1973 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1974 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1975 (str_value_from_setting, gdb_setting_str_internal_fn)
1976 (gdb_maint_setting_str_internal_fn): New functions.
1977 (_initialize_cli_cmds): Define the new convenience functions.
1978 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1979 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1981 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1983 * agent.c (set_can_use_agent): When the setting is turned on,
1984 look up agent symbols if we don't have them yet.
1985 (agent_new_objfile): Don't look up agent symbols when the agent
1988 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1990 * config.in: Regenerate.
1992 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1994 * configure: Regenerate.
1995 * configure.ac: Check for strerror_r.
1996 * gdbsupport/common-utils.h (safe_strerror): Change return value
1997 to const char * and document that this function is now threadsafe.
1998 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1999 thread_local and call strerror_r, if available.
2000 * utils.c (perror_string): Update.
2001 (print_sys_errmsg): Update.
2003 2019-10-31 Luis Machado <luis.machado@linaro.org>
2005 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2007 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2008 objfile to fetch per-bfd data.
2009 (arm_find_exidx_entry): Likewise.
2011 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2013 * gdbsupport/agent.c (debug_agent): Change type to bool.
2014 (use_agent): Likewise.
2015 (all_agent_symbols_look_up): Likewise.
2016 (agent_loaded_p): Change return value to bool.
2017 (agent_look_up_symbols): Update.
2018 (agent_capability_check): Change return value to bool.
2019 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2020 (debug_agent): Change type to bool.
2021 (use_agent): Likewise.
2022 (agent_capability_check): Change return value to bool.
2024 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2026 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2027 (build_minimal_symbol_hash_tables): Code to clear the table moved
2028 to clear_minimal_symbol_hash_tables.
2029 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2032 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2034 * infcmd.c: Remove includes.
2035 * infrun.c: Remove includes.
2037 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2039 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2040 (grow_vect): Remove declaration.
2041 (ada_type_of_array): Remove declaration.
2042 (ada_update_initial_language): Remove declaration.
2043 (ada_fold_name): Remove declaration.
2044 (ada_fill_in_ada_prototype): Remove declaration.
2045 (user_select_syms): Remove declaration.
2046 (get_selections): Remove declaration.
2047 (ada_tag_type): Remove declaration.
2048 (ada_value_tag): Remove declaration.
2049 (ada_is_others_clause): Remove declaration.
2050 (ada_in_variant): Remove declaration.
2051 (ada_value_struct_elt): Remove declaration.
2052 (ada_attribute_name): Remove declaration.
2053 (ada_system_address_type): Remove declaration.
2054 * ada-lang.c (ada_watch_location_expression): Make static.
2055 (GROW_VECT): Move here from ada-lang.h.
2056 (grow_vect): Make static.
2057 (ada_update_initial_language): Make static.
2058 (ada_fold_name): Make static.
2059 (ada_type_of_array): Make static.
2060 (encoded_ordered_before): Move up.
2061 (sort_choices): Move up.
2062 (print_signatures): Move up.
2063 (ada_print_symbol_signature): Move up.
2064 (get_selections): Move up and make static.
2065 (user_select_syms): Move up and make static.
2066 (ada_value_struct_elt): Move up and make static.
2067 (ada_tag_type): Make static.
2068 (ada_value_tag): Make static.
2069 (ada_is_others_clause): Make static.
2070 (ada_in_variant): Make static.
2071 (ada_attribute_name): Make static.
2073 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2075 * ada-lang.c: Remove includes.
2076 * ada-typeprint.c: Remove includes.
2077 * ada-valprint.c: Remove includes.
2079 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2081 * addrmap.c: Add static assertions of type size, moved from
2082 _initialize_addrmap.
2083 (_initialize_addrmap): Remove.
2085 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2087 * coffread.c (record_minimal_symbol): Update.
2088 (process_coff_symbol): Update.
2089 * dbxread.c (read_dbx_symtab): Update.
2090 * dwarf2read.c (add_partial_symbol): Update.
2091 (fixup_go_packaging): Update.
2092 (load_partial_dies): Update.
2093 (new_symbol): Update.
2094 * elfread.c (record_minimal_symbol): Change signature to use
2095 gdb::string_view instead of name+len.
2096 (elf_symtab_read): Update.
2097 (elf_rel_plt_read): Update.
2098 * mdebugread.c (parse_partial_symbols): Update.
2099 (handle_psymbol_enumerators): Update.
2100 (new_symbol): Update.
2101 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2102 to use gdb::string_view instead of name+len.
2103 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2104 * psympriv.h (add_psymbol_to_list): Likewise.
2105 * psymtab.c (add_psymbol_to_bcache): Likewise.
2106 (add_psymbol_to_list): Likewise.
2107 * stabsread.c (define_symbol): Update.
2108 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2109 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2110 (symbol_set_names): Likewise.
2111 * xcoffread.c (scan_xcoff_symtab): Update.
2113 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2115 * symtab.h (symbol_set_names): Document that copy_name must be
2116 set to true for non-nullterminated strings.
2117 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2118 linkage_name if the entry was not found and we need to demangle.
2120 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2122 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2123 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2124 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2125 * gdbsupport/gdb_binary_search.h: New file.
2127 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2129 * NEWS: Mention new --with-system-gdbinit-dir option.
2130 * config.in: Regenerate.
2131 * configure: Regenerate.
2132 * configure.ac: Add new option --with-system-gdbinit-dir.
2133 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2134 for a ".gdb" suffix.
2135 * main.c (get_init_files): Change system_gdbinit argument to
2136 a vector and return the files in SYSTEM_GDBINIT_DIR in
2137 addition to SYSTEM_GDBINIT.
2138 (captured_main_1): Update.
2139 (print_gdb_help): Update.
2140 * top.c (print_gdb_configuration): Also print the value of
2143 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2145 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2146 that takes gdb::string_view arguments.
2148 2019-10-26 Tom de Vries <tdevries@suse.de>
2150 * aarch64-linux-tdep.c: Fix typos in comments.
2151 * aarch64-tdep.c: Same.
2153 * amd64-nat.c: Same.
2155 * arch/aarch64-insn.c: Same.
2157 * breakpoint.h: Same.
2160 * cli/cli-decode.c: Same.
2161 * cli/cli-script.c: Same.
2162 * cli/cli-utils.h: Same.
2163 * coff-pe-read.c: Same.
2165 * compile/compile-cplus-symbols.c: Same.
2166 * compile/compile-object-run.c: Same.
2167 * completer.c: Same.
2169 * cp-support.c: Same.
2171 * dwarf-index-write.c: Same.
2172 * dwarf2-frame.c: Same.
2173 * dwarf2-frame.h: Same.
2175 * frame-base.h: Same.
2180 * guile/scm-objfile.c: Same.
2181 * i386-tdep.c: Same.
2182 * i386-tdep.h: Same.
2185 * linux-nat.c: Same.
2186 * m68k-tdep.c: Same.
2189 * mi/mi-cmd-disas.c: Same.
2190 * mi/mi-getopt.h: Same.
2191 * mi/mi-main.c: Same.
2193 * nat/aarch64-sve-linux-sigcontext.h: Same.
2195 * ppc-linux-nat.c: Same.
2196 * ppc-linux-tdep.c: Same.
2198 * progspace.h: Same.
2199 * prologue-value.h: Same.
2200 * python/py-evtregistry.c: Same.
2201 * python/py-instruction.h: Same.
2202 * record-btrace.c: Same.
2203 * record-full.c: Same.
2205 * rs6000-tdep.c: Same.
2207 * sol-thread.c: Same.
2208 * sparc-sol2-tdep.c: Same.
2209 * sparc64-tdep.c: Same.
2210 * stabsread.c: Same.
2214 * tracepoint.c: Same.
2215 * tui/tui-data.h: Same.
2216 * tui/tui-io.c: Same.
2217 * tui/tui-win.c: Same.
2219 * unittests/rsp-low-selftests.c: Same.
2220 * user-regs.h: Same.
2231 * xtensa-tdep.c: Same.
2233 2019-10-25 Ali Tamur <tamur@google.com>
2235 * charset.c (find_charset_names): Reflect API change.
2237 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2239 * symtab.c (struct demangled_name_entry): Change demangled name
2240 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2241 part of the struct anymore.
2242 (symbol_set_names): No longer obstack allocate + copy the demangled
2243 name, just store the allocated name from bfd.
2245 2019-10-25 Tom Tromey <tromey@adacore.com>
2247 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2248 (bsearch_cie_cmp, add_cie): Remove.
2249 (find_cie): Reimplement.
2250 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2251 (dwarf2_build_frame_info): Update.
2253 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2256 * symfile.c (reread_symbols): Call forget_cached_source_info to
2257 clear the stale source cache.
2259 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2261 * configure: Regenerate.
2262 * configure.ac: Remove code that sets python_has_threads.
2264 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2266 * config.in: Regenerate.
2267 * configure: Regenerate.
2268 * configure.ac: Remove the code that uses sed to get the python
2269 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2271 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2273 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2276 2019-10-23 Tom Tromey <tom@tromey.com>
2278 * arc-tdep.c: Remove ".." from include.
2279 * frv-tdep.c: Remove ".." from include.
2280 * lm32-tdep.c: Remove ".." from include.
2281 * microblaze-tdep.c: Remove ".." from include.
2282 * or1k-tdep.h: Remove ".." from include.
2283 * s12z-tdep.c: Remove ".." from include.
2284 * Makefile.in (OPCODES_CFLAGS): Add comment.
2285 (TOP_CFLAGS): New variable.
2286 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2288 2019-10-23 Tom Tromey <tom@tromey.com>
2290 * Makefile.in (READLINE_DIR): Update.
2292 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2294 * infcall.c (call_function_by_hand_dummy): Fix the function
2295 comment. And extract out a code section into...
2296 (reserve_stack_space): ...this new function.
2298 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2300 * infcall.c (value_arg_coerce): Remove an unused parameter.
2301 (call_function_by_hand_dummy): Update the call to
2304 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2306 * infcall.c (call_function_by_hand_dummy): Refactor.
2308 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2310 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2312 2019-10-23 Tom Tromey <tom@tromey.com>
2314 * configure: Rebuild.
2315 * configure.ac: Don't check for sigprocmask.
2316 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2318 2019-10-23 Tom Tromey <tom@tromey.com>
2320 * configure: Rebuild.
2321 * acinclude.m4: Use m4_include, not sinclude.
2323 2019-10-23 Tom de Vries <tdevries@suse.de>
2325 PR breakpoints/24687
2326 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2328 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2330 * symtab.c (struct demangled_name_entry) <language>: Change from
2331 bitfield to regular variable.
2333 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2335 * symtab.c (struct demangled_name_entry): Add a constructor.
2336 (free_demangled_name_entry): New function to call the destructor
2337 for demangled_name_entry.
2338 (create_demangled_names_hash): Pass free_demangled_name_entry to
2340 (symbol_set_names): Call placement new for demangled_name_entry.
2341 * utils.c: No longer include xxhash.h here, now that fast_hash
2342 is inlined in the header.
2343 * utils.h: Instead, include it here.
2345 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2347 * Makefile.in: Link with libxxhash.
2348 * config.in: Regenerate.
2349 * configure: Regenerate.
2350 * configure.ac: Search for libxxhash.
2351 * utils.c (fast_hash): Use xxhash if present.
2353 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2355 * utils.h (fast_hash): New function.
2356 * symtab.c (hash_demangled_name_entry): Call new function
2359 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2361 * symtab.c (struct demangled_name_entry): Change type of mangled
2362 to gdb::string_view. Also adds a constructor that takes the
2364 (hash_demangled_name_entry): Update.
2365 (eq_demangled_name_entry): Update.
2366 (free_demangled_name_entry): New function to call the destructor
2367 now that this is not a POD anymore.
2368 (create_demangled_names_hash): Pass free_demangled_name_entry to
2370 (symbol_set_names): Update.
2372 2019-10-21 Ali Tamur <tamu@google.com>
2374 * dwarf2read.c (dir_index): Change type.
2375 (file_name_index): Likewise.
2376 (line_header::include_dir_at): Change comment and implementation on
2377 whether it is DWARF 5.
2378 (line_header::is_valid_file_index): New function.
2379 (line_header::file_name_at): Change comment and implementation on
2380 whether it is DWARF 5.
2381 (line_header::file_names): Change to private field renamed as
2382 m_file_names and introduce a new accessor method.
2383 (line_header::file_names_size): New method.
2384 (line_header::include_dirs): Change to private field and rename as
2386 (dw2_get_file_names_reader): Define local var at a smaller scope and
2388 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2389 (process_structure_scope): Likewise.
2390 (line_header::add_include_dir): Change message and reflect renaming.
2391 (line_header::add_file_name): Likewise.
2392 (read_formatted_entries): Handle DW_FORM_data16.
2393 (dwarf_decode_line_header): Fix line header length calculation.
2394 (psymtab_include_file_name): Change comment and API.
2395 (lnp_state_machine::m_file): Update comment and reflect type change.
2396 (lnp_state_machine::record_line): Reflect type change.
2397 (dwarf_decode_lines): Reflect API change.
2398 (file_file_name): Likewise.
2399 (file_full_name): Likewise.
2401 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2403 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2405 2019-10-21 Tom Tromey <tom@tromey.com>
2407 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2409 2019-10-21 Tom Tromey <tom@tromey.com>
2411 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2412 NM_H. Use AC_CONFIG_LINKS.
2413 * configure: Rebuild.
2414 * Makefile.in (NM_H): New variable.
2415 (generated_files): Add NM_H. Remove gcore.
2416 (nm.h, stamp-nmh): New targets.
2418 2019-10-20 Tom Tromey <tom@tromey.com>
2420 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2421 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2423 (put_objfile_before): Now static.
2425 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2427 * gdbsupport/common-utils.h (startswith): Change return type to
2430 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2432 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2433 * breakpoint.c (bp_locations_compare): Rename to...
2434 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2435 (update_global_location_list): Use std::sort instead of qsort.
2436 * buildsym.c (compare_line_numbers): Rename to...
2437 (lte_is_less_than): ...this, and change to std::sort semantics.
2438 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2440 * disasm.c (compare_lines): Rename to...
2441 (line_is_less_than): ...this, and change to std::sort semantics.
2442 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2444 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2445 (fde_is_less_than): ...this, and change to std::sort semantics.
2446 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2447 * mdebugread.c (compare_blocks):
2448 (block_is_less_than): ...this, and change to std::sort semantics.
2449 (sort_blocks): Call std::sort instead of qsort.
2450 * objfiles.c (qsort_cmp): Rename to...
2451 (sort_cmp): ...this, and change to std::sort semantics.
2452 (update_section_map): Call std::sort instead of qsort.
2453 * remote.c (compare_pnums): Remove.
2454 (map_regcache_remote_table): Call std::sort instead of qsort.
2455 * utils.c (compare_positive_ints): Remove.
2456 * utils.h (compare_positive_ints): Remove.
2457 * xcoffread.c (compare_lte): Remove.
2458 (arrange_linetable): Call std::sort instead of qsort.
2460 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2462 * symfile.c (init_entry_point_info): Fix typo.
2463 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2465 2019-10-18 Tom de Vries <tdevries@suse.de>
2467 * aarch64-tdep.c: Fix typos in comments.
2469 * ada-tasks.c: Same.
2470 * alpha-tdep.c: Same.
2471 * alpha-tdep.h: Same.
2472 * amd64-nat.c: Same.
2473 * amd64-windows-tdep.c: Same.
2476 * arch-utils.c: Same.
2477 * arm-nbsd-tdep.c: Same.
2480 * blockframe.c: Same.
2483 * coff-pe-read.c: Same.
2485 * cris-tdep.c: Same.
2486 * darwin-nat.c: Same.
2490 * dtrace-probe.c: Same.
2491 * dwarf-index-write.c: Same.
2492 * dwarf2-frame-tailcall.c: Same.
2493 * dwarf2-frame.c: Same.
2494 * dwarf2read.c: Same.
2496 * exceptions.c: Same.
2497 * fbsd-tdep.c: Same.
2501 * gnu-v3-abi.c: Same.
2503 * h8300-tdep.c: Same.
2504 * hppa-tdep.c: Same.
2505 * i386-linux-tdep.c: Same.
2506 * i386-tdep.c: Same.
2507 * ia64-libunwind-tdep.c: Same.
2508 * ia64-tdep.c: Same.
2512 * linux-nat.c: Same.
2513 * linux-thread-db.c: Same.
2514 * machoread.c: Same.
2515 * mdebugread.c: Same.
2517 * mn10300-tdep.c: Same.
2518 * namespace.c: Same.
2520 * opencl-lang.c: Same.
2521 * or1k-tdep.c: Same.
2523 * ppc-linux-nat.c: Same.
2524 * ppc-linux-tdep.c: Same.
2525 * ppc-sysv-tdep.c: Same.
2528 * record-btrace.c: Same.
2529 * record-full.c: Same.
2530 * remote-fileio.c: Same.
2532 * rs6000-tdep.c: Same.
2533 * s12z-tdep.c: Same.
2534 * score-tdep.c: Same.
2538 * sol-thread.c: Same.
2539 * solib-svr4.c: Same.
2542 * sparc-nat.c: Same.
2543 * sparc-sol2-tdep.c: Same.
2544 * sparc-tdep.c: Same.
2545 * sparc64-tdep.c: Same.
2546 * stabsread.c: Same.
2550 * target-descriptions.c: Same.
2551 * target-float.c: Same.
2558 * windows-nat.c: Same.
2559 * xcoffread.c: Same.
2560 * xstormy16-tdep.c: Same.
2561 * xtensa-tdep.c: Same.
2563 2019-10-17 Tom Tromey <tromey@adacore.com>
2565 * configure: Rebuild.
2566 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2567 in AC_CONFIG_FILES invocation.
2568 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2569 new-style config.status invocation.
2571 2019-10-17 Tom de Vries <tdevries@suse.de>
2573 * arm-nbsd-nat.c: Fix typos in comments.
2575 * darwin-nat-info.c: Same.
2576 * dwarf2read.c: Same.
2578 * event-top.c: Same.
2581 * hppa-tdep.c: Same.
2582 * i386-tdep.c: Same.
2585 * mdebugread.c: Same.
2586 * moxie-tdep.c: Same.
2587 * nto-procfs.c: Same.
2589 * ppc-linux-tdep.c: Same.
2591 * riscv-tdep.c: Same.
2592 * s390-tdep.c: Same.
2594 * sparc-linux-tdep.c: Same.
2595 * sparc-nat.c: Same.
2597 * target-descriptions.c: Same.
2601 2019-10-16 Tom Tromey <tom@tromey.com>
2603 * objfiles.h (struct objfile) <original_name>: Now const.
2605 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2607 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2608 pass on to sigsetjmp's second argument.
2609 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2611 2019-10-16 Keith Seitz <keiths@redhat.com>
2614 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2615 sections whose size is greater than the file size.
2617 2019-10-16 Jim Wilson <jimw@sifive.com>
2619 * riscv-tdep.c (riscv_gcc_target_options): New.
2620 (riscv_gnu_triplet_regexp): New.
2621 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2622 set_gdbarch_gnu_triplet_regexp.
2624 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2626 * Makefile.in: Add xml-builtin.h.
2627 * features/feature_to_c.sh: Add an include for xml-builtin.h
2628 to ensure that the compiler checks that the types match.
2629 * xml-builtin.h: New file.
2630 * xml-support.c (fetch_xml_builtin): Add missing const.
2631 * xml-support.h: Remove declaration of xml_builtins.
2633 2019-10-16 Tom de Vries <tdevries@suse.de>
2636 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2637 (amd64_classify_aggregate): ... here.
2638 (amd64_classify_aggregate_field): Handled fiels of nested structs
2641 2019-10-16 Tom de Vries <tdevries@suse.de>
2644 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2645 that handles 'theclass'.
2647 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2649 * linespec.c (decode_digits_ordinary): Update comment.
2650 * make-target-delegates: No longer need to handle VEC case.
2651 * memrange.c (normalize_mem_ranges): Update comment.
2652 * namespace.c (add_using_directive): Update comment.
2653 * objc-lang.c (uniquify_strings): Update comment.
2654 * ppc-linux-nat.c (struct thread_points): Update comment.
2655 * probe.h (find_probes_in_objfile): Update comment.
2656 * target.h (enum flash_preserve_mode): Update comment.
2657 * varobj.c (varobj_restrict_range): Update comment.
2658 * varobj.h (varobj_list_children): Update comment.
2660 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2662 * Makefile.in: Remove references to vec.h and vec.c.
2663 * aarch64-tdep.c: No longer include vec.h.
2664 * ada-lang.c: Likewise.
2665 * ada-lang.h: Likewise.
2666 * arm-tdep.c: Likewise.
2668 * breakpoint.h: Likewise.
2669 * charset.c: Likewise.
2670 * cp-support.h: Likewise.
2671 * dtrace-probe.c: Likewise.
2672 * dwarf2read.c: Likewise.
2673 * extension.h: Likewise.
2674 * gdb_bfd.c: Likewise.
2675 * gdbsupport/gdb_vecs.h: Likewise.
2676 * gdbsupport/vec.c: Remove.
2677 * gdbsupport/vec.h: Remove.
2678 * gdbthread.h: Likewise.
2679 * guile/scm-type.c: Likewise.
2680 * inline-frame.c: Likewise.
2681 * machoread.c: Likewise.
2682 * memattr.c: Likewise.
2683 * memrange.h: Likewise.
2684 * namespace.h: Likewise.
2685 * nat/linux-btrace.h: Likewise.
2686 * osdata.c: Likewise.
2687 * parser-defs.h: Likewise.
2688 * progspace.h: Likewise.
2689 * python/py-type.c: Likewise.
2690 * record-btrace.c: Likewise.
2691 * rust-exp.y: Likewise.
2692 * solib-target.c: Likewise.
2693 * stap-probe.c: Likewise.
2694 * target-descriptions.c: Likewise.
2695 * target-memory.c: Likewise.
2696 * target.h: Likewise.
2697 * varobj.c: Likewise.
2698 * varobj.h: Likewise.
2699 * xml-support.h: Likewise.
2701 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2703 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2704 Update for new std::vector based implementation.
2705 (process_psymtab_comp_unit_reader): Likewise.
2706 (scan_partial_symbols): Likewise.
2707 (recursively_compute_inclusions): Likewise.
2708 (compute_compunit_symtab_includes): Likewise.
2709 (process_imported_unit_die): Likewise.
2710 (queue_and_load_dwo_tu): Likewise.
2711 (follow_die_sig_1): Likewise.
2712 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2713 (typedef dwarf2_per_cu_ptr): Remove.
2714 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2716 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2717 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2718 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2719 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2722 2019-10-15 Tom Tromey <tromey@adacore.com>
2724 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2727 2019-10-15 Tom Tromey <tromey@adacore.com>
2729 * windows-nat.c (windows_nat_target::fetch_registers)
2730 (windows_nat_target::store_registers): Rename "pid" to "tid".
2732 2019-10-15 Tom Tromey <tromey@adacore.com>
2734 * gdbarch.h, gdbarch.c: Rebuild.
2735 * gdbarch.sh (gcc_target_options): Change return type to
2737 * compile/compile.c (get_args): Update.
2738 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2739 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2741 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2743 * arch-utils.c (default_gcc_target_options): Return std::string.
2744 * arch-utils.h (default_gcc_target_options): Return std::string.
2745 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2747 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2749 * breakpoint.c (breakpoint_chain): Make static.
2750 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2751 of accessing breakpoint_chain.
2753 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2755 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2756 to a gdb::function_view and return value to bool.
2757 * breakpoint.h (iterate_over_breakpoints): Likewise.
2758 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2759 (pop_dummy_frame): Update.
2760 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2761 (gdbscm_breakpoints): Update.
2762 * python/py-breakpoint.c (build_bp_list): Update.
2763 (gdbpy_breakpoints): Update.
2764 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2766 (bpfinishpy_handle_stop): Update.
2767 (bpfinishpy_handle_exit): Update.
2768 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2769 (svr4_update_solib_event_breakpoints): Update.
2771 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2773 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2774 when unwrapping single-field structs.
2776 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2778 * dwarf2read.c: Remove includes.
2780 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2782 * ui-out.c (ui_out::call_do_message): Silence
2783 -Wformat-nonliteral warning.
2785 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2787 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2788 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2789 include: readline/tilde.h.
2791 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2793 * remote.c (remote_target::get_trace_status): Remove declaration of
2794 trace_regblock_size.
2796 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2798 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2799 (show_user): Remove declaration of cmdlist.
2800 * cli/cli-cmds.h (max_user_call_depth): Declare.
2801 * cli/cli-script.c (execute_user_command): Remove declaration
2802 of max_user_call_depth.
2804 2019-10-11 Jim Wilson <jimw@sifive.com>
2806 * gdbsupport/print-utils.h (pulongest): Fix comment.
2807 (plongest): Likewise.
2808 (phex): Add missing comment, mention leading zeros.
2809 (phex_nz): Add mention of no leading zeros to comment.
2811 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2812 plongest instead of unsigned long long cast.
2814 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2816 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2817 for external_editor_command and gdbtk_test.
2819 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2821 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2822 * varobj.c (varobjdebug): Move comment to...
2823 * varobj.h (varobjdebug): ...here, and declare.
2825 2019-10-09 Tom Tromey <tom@tromey.com>
2827 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2830 2019-10-09 Tom Tromey <tom@tromey.com>
2832 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2833 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2834 * tui/tui-command.c (tui_cmd_window::resize)
2835 (tui_refresh_cmd_win): Update.
2836 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2837 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2838 * tui/tui-data.c (~tui_gen_win_info): Remove.
2839 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2840 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2841 (tui_redisplay_readline, tui_mld_flush)
2842 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2843 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2844 (tui_data_window::erase_data_content)
2845 (tui_data_item_window::rerender)
2846 (tui_data_item_window::refresh_window): Update.
2847 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2848 (box_win, tui_gen_win_info::make_window)
2849 (tui_gen_win_info::make_visible): Update.
2850 (tui_delete_win): Remove.
2851 * tui/tui-winsource.c
2852 (tui_source_window_base::do_erase_source_content): Update.
2853 (tui_show_source_line, tui_source_window_base::update_tab_width)
2854 (tui_source_window_base::update_exec_info): Update.
2855 * tui/tui-data.h (struct curses_deleter): New.
2856 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2857 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2859 2019-10-09 Tom Tromey <tom@tromey.com>
2861 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2863 2019-10-09 Tom Tromey <tom@tromey.com>
2865 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2866 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2868 2019-10-09 Tom Tromey <tom@tromey.com>
2870 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2871 window height directly.
2872 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2874 * tui/tui-layout.c (tui_default_win_height): Remove.
2875 (tui_default_win_viewport_height): Remove.
2877 2019-10-09 Tom Tromey <tom@tromey.com>
2879 * tui/tui.h: Remove comments.
2881 2019-10-09 Tom de Vries <tdevries@suse.de>
2883 * python/lib/gdb/printer/bound_registers.py: Use
2884 '^builtin_type_bound128' as regexp argument for
2885 add_builtin_pretty_printer.
2887 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2889 * guile/guile.c (guile_extension_script_ops): Remove forward
2890 declaration and mark as static.
2891 (guile_script_ops): Likewise.
2892 (extension_language_guile): Move further down in the file so
2893 it can reference the definitions for guile_{extension_,}script_ops.
2895 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2897 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2898 except SORTL, DFLTCC, and KDSA.
2900 2019-10-08 Tom Tromey <tromey@adacore.com>
2902 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2903 (struct safe_symbol_file_add_args): Remove.
2905 2019-10-08 Tom Tromey <tromey@adacore.com>
2907 * windows-nat.c: Don't include buildsym-legacy.h.
2909 2019-10-08 Tom Tromey <tromey@adacore.com>
2911 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2913 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2915 * gdbtypes.c (overload_debug): Move comment to header.
2916 * gdbtypes.h (overload_debug): Declare.
2917 * valops.c: Remove declaration of overload_debug, instead
2920 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2922 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2924 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2926 * language.h (lang_frame_mismatch_warn): ... here. Also add
2928 * top.c (lang_frame_mismatch_warn): Remove declaration.
2929 (check_frame_language_change): Pass lang_frame_mismatch_warn
2932 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2934 * c-lang.h (vtbl_ptr_name): Declare.
2935 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2937 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2939 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2941 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2944 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2946 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2947 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2948 * ctfread.c: New file.
2949 * ctfread.h: New file.
2950 * elfread.c: Include ctfread.h.
2951 (struct elfinfo text_p): New member ctfsect.
2952 (elf_locate_sections): Mark CTF section.
2953 (elf_symfile_read): Call elfctf_build_psymtabs.
2954 * Makefile.in (LIBCTF): Add.
2957 (DIST): Add ctfread.c.
2959 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2961 * ctfread.c (struct nextfield): Renamed to ...
2962 (struct ctf_nextfield): ... this.
2963 (struct field_info): Renamed to ...
2964 (strut ctf_field_info): ... this.
2965 (attach_fields_to_type): Update for renamed structures.
2966 (ctf_add_member_cb): Likewise.
2967 (ctf_add_enum_member_cb): Likewise.
2968 (process_struct_members): Likewise.
2969 (process_enum_type): Likewise.
2971 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2973 * tracectf.h: Rename, was ctf.h.
2974 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2975 * tracefile.c: Likewise.
2976 * tracepoint.c: Remove unused include ctf.h.
2977 * mi/mi-main.c: Likewise.
2978 * Makefile.in Replace ctf.c with tracectf.c.
2980 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2982 * version.in: Change version number to "9.0.50.DATE-git".
2984 2019-10-03 Tom Tromey <tom@tromey.com>
2987 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2989 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2991 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2992 cp_search_name_hash.
2993 * NEWS: Add entry about nested function support.
2995 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2996 Andrew Burgess <andrew.burgess@embecosm.com>
2998 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2999 for nested static variables when searchin VAR_DOMAIN.
3000 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3001 global scope, update comment.
3002 (add_partial_subprogram): Call add_partial_subprogram recursively
3003 for nested subroutines when processinng Fortran.
3004 (load_partial_dies): Process the child entities of a subprogram
3005 when processing Fortran.
3006 (partial_die_parent_scope): Handle building scope
3007 for Fortran nested functions.
3008 (process_die): Record that nested functions have a scope.
3009 (new_symbol): Always record Fortran subprograms on the global
3011 (determine_prefix): How to build the prefix for Fortran
3014 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3016 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3017 have just sent the thread a SIGSTOP and are waiting for it to
3020 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3022 * btrace.c (btrace_add_pc): Remove whitespace before the template
3023 parameter in 'std::vector <...>'.
3024 (parse_xml_btrace_block): Likewise.
3025 (btrace_maint_decode_pt): Likewise.
3026 (btrace_maint_update_packets): Likewise.
3027 (btrace_maint_print_packets): Likewise.
3028 * btrace.h (struct btrace_maint_info): Likewise.
3029 * dwarf2read.c (struct type_unit_group): Likewise.
3030 (build_type_psymtabs_reader): Likewise.
3031 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3032 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3033 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3035 2019-10-03 Tom de Vries <tdevries@suse.de>
3037 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3038 the first line of the help text for set/show style metadata.
3040 2019-10-02 Tom Tromey <tromey@adacore.com>
3042 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3043 * gdbsupport/common-inferior.c: New file.
3044 * infcmd.c (startup_with_shell): Don't define.
3045 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3046 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3047 * inferior.h (startup_with_shell): Don't declare.
3049 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3051 * gdbsupport/gdb_assert.h: Include errors.h.
3052 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3054 2019-10-02 Tom Tromey <tromey@adacore.com>
3056 * NEWS: Add $_ada_exception entry.
3057 * ada-lang.c (struct ada_catchpoint): Add constructor.
3058 <m_kind>: New member.
3059 (allocate_location_exception, re_set_exception): Remove
3061 (should_stop_exception): Compute $_ada_exception.
3062 (check_status_exception, print_it_exception)
3063 (print_one_exception, print_mention_exception): Remove
3065 (allocate_location_catch_exception, re_set_catch_exception)
3066 (check_status_exception, print_it_catch_exception)
3067 (print_one_catch_exception, print_mention_catch_exception)
3068 (print_recreate_catch_exception)
3069 (allocate_location_catch_exception_unhandled)
3070 (re_set_catch_exception_unhandled)
3071 (check_status_exception, print_it_catch_exception_unhandled)
3072 (print_one_catch_exception_unhandled)
3073 (print_mention_catch_exception_unhandled)
3074 (print_recreate_catch_exception_unhandled)
3075 (allocate_location_catch_assert, re_set_catch_assert)
3076 (check_status_assert, print_it_catch_assert)
3077 (print_one_catch_assert, print_mention_catch_assert)
3078 (print_recreate_catch_assert)
3079 (allocate_location_catch_handlers, re_set_catch_handlers)
3080 (check_status_handlers, print_it_catch_handlers)
3081 (print_one_catch_handlers, print_mention_catch_handlers)
3082 (print_recreate_catch_handlers): Remove.
3083 (create_ada_exception_catchpoint): Update.
3084 (initialize_ada_catchpoint_ops): Update.
3086 2019-10-02 Tom Tromey <tromey@adacore.com>
3088 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3089 (create_excep_cond_exprs): Simplify exception string computation.
3090 (ada_exception_catchpoint_cond_string): Likewise.
3092 2019-10-02 Tom Tromey <tromey@adacore.com>
3094 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3095 * ada-lang.c (lesseq_defined_than): Handle
3097 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3099 (dwarf2_has_info): Likewise.
3100 (new_symbol): Set maybe_copied on symbol when
3102 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3104 <can_copy>: New member.
3105 * elfread.c (record_minimal_symbol): Set maybe_copied
3106 on symbol when appropriate.
3107 (elf_symfile_read): Update call to dwarf2_has_info.
3108 * minsyms.c (lookup_minimal_symbol_linkage): New
3110 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3111 * symtab.c (get_symbol_address, get_msymbol_address):
3113 * symtab.h (get_symbol_address, get_msymbol_address):
3115 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3117 (struct symbol, struct minimal_symbol) <maybe_copied>:
3120 2019-10-02 Tom Tromey <tromey@adacore.com>
3122 * source.c (struct current_source_location): New.
3123 (current_source_key): New global.
3124 (current_source_symtab, current_source_line)
3125 (current_source_pspace): Remove.
3126 (get_source_location): New function.
3127 (get_current_source_symtab_and_line)
3128 (set_default_source_symtab_and_line)
3129 (set_current_source_symtab_and_line)
3130 (clear_current_source_symtab_and_line, select_source_symtab)
3131 (info_source_command, print_source_lines_base)
3132 (info_line_command, search_command_helper, _initialize_source):
3135 2019-10-02 Tom Tromey <tromey@adacore.com>
3137 * source.c (select_source_symtab): Don't call
3138 decode_line_with_current_source.
3140 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3142 * symtab.c (lookup_global_symbol): Search global block.
3144 2019-10-02 Tom Tromey <tromey@adacore.com>
3146 * coffread.c (process_coff_symbol): Update.
3147 * dwarf2read.c (var_decode_location, new_symbol): Update.
3148 * mdebugread.c (parse_symbol): Update.
3149 * objfiles.c (relocate_one_symbol): Update.
3150 * stabsread.c (define_symbol, fix_common_block)
3151 (scan_file_globals): Update.
3152 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3153 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3154 * xcoffread.c (process_xcoff_symbol): Update.
3156 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3158 * MAINTAINERS: Update my email address.
3160 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3162 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3164 (build_type_psymtabs_reader): Update for std::vector.
3165 (build_type_psymtab_dependencies): Likewise.
3166 * dwarf2read.h: Remove use of DEF_VEC_P.
3167 (typedef sig_type_ptr): Delete.
3169 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3171 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3173 (btrace_maint_decode_pt): Likewise, and move allocation of the
3174 vector outside of the loop.
3175 (btrace_maint_update_packets): Update to handle change from VEC to
3177 (btrace_maint_print_packets): Likewise.
3178 (maint_info_btrace_cmd): Likewise.
3179 * btrace.h: Remove use of DEF_VEC_O.
3180 (typedef btrace_pt_packet_s): Delete.
3181 (struct btrace_maint_info) <packets>: Change fromm VEC to
3183 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3185 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3187 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3188 make accesses into the vector constant references.
3189 (btrace_add_pc): Update for std::vector.
3190 (btrace_stitch_bts): Likewise.
3191 (parse_xml_btrace_block): Likewise.
3192 (btrace_maint_update_packets): Likewise.
3193 (btrace_maint_print_packets): Likewise.
3194 (maint_info_btrace_cmd): Likewise.
3195 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3197 (btrace_data::empty): Likewise.
3198 (btrace_data_append): Likewise.
3199 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3200 (typedef btrace_block_s): Delete.
3201 (struct btrace_block): Add constructor.
3202 (struct btrace_data_bts) <blocks>: Change to std::vector.
3203 * nat/linux-btrace.c (perf_event_read_bts): Update for
3205 (linux_read_bts): Likewise.
3207 2019-10-01 Tom Tromey <tom@tromey.com>
3209 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3211 2019-10-01 Tom Tromey <tom@tromey.com>
3213 * stack.c (print_frame, info_frame_command_core): Use
3215 * linux-thread-db.c (try_thread_db_load_1)
3216 (try_thread_db_load_from_pdir_1): Use styled_string.
3217 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3218 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3219 (maybe_print_unsupported_script_warning)
3220 (maybe_print_script_not_found_warning): Use styled_string.
3221 * ada-lang.c (user_select_syms): Use styled_string.
3223 2019-10-01 Tom Tromey <tom@tromey.com>
3225 * p-lang.c (pascal_printstr): Use metadata style.
3226 * value.c (show_convenience): Use metadata style.
3227 * valprint.c (valprint_check_validity, val_print_optimized_out)
3228 (val_print_not_saved, val_print_unavailable)
3229 (val_print_invalid_address, generic_val_print, val_print)
3230 (value_check_printable, val_print_array_elements): Use metadata
3232 * ui-out.h (class ui_out) <field_fmt>: New overload.
3233 <do_field_fmt>: Add style parameter.
3234 * ui-out.c (ui_out::field_fmt): New overload.
3235 * typeprint.c (type_print_unknown_return_type)
3236 (val_print_not_allocated, val_print_not_associated): Use metadata
3238 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3240 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3241 * tracepoint.c (tvariables_info_1): Use metadata style.
3242 * stack.c (print_frame_arg, print_frame_info, print_frame)
3243 (info_frame_command_core): Use metadata style.
3244 * skip.c (info_skip_command): Use metadata style.
3245 * rust-lang.c (rust_print_enum): Use metadata style.
3246 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3248 * python/py-framefilter.c (py_print_single_arg): Use metadata
3250 * printcmd.c (do_one_display, print_variable_and_value): Use
3252 * p-valprint.c (pascal_val_print)
3253 (pascal_object_print_value_fields): Use metadata style.
3254 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3255 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3257 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3258 * m2-valprint.c (m2_print_long_set): Use metadata style.
3259 * m2-typeprint.c (m2_print_type): Use metadata style.
3260 * infcmd.c (print_return_value_1): Use metadata style.
3261 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3262 * f-valprint.c (info_common_command_for_block): Use metadata
3264 * f-typeprint.c (f_type_print_base): Use metadata style.
3265 * expprint.c (print_subexp_standard): Use metadata style.
3266 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3267 * cli/cli-style.h (class cli_style_option): Add constructor.
3268 (metadata_style): Declare.
3269 * cli/cli-style.c (metadata_style): New global.
3270 (_initialize_cli_style): Register metadata style.
3271 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3273 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3274 * c-typeprint.c (c_type_print_base_struct_union)
3275 (c_type_print_base_1): Use metadata style.
3276 * breakpoint.c (watchpoint_value_print)
3277 (print_one_breakpoint_location): Use metadata style.
3278 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3280 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3282 * ada-valprint.c (val_print_packed_array_elements, printstr)
3283 (print_field_values, ada_val_print_ref, ada_val_print): Use
3285 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3287 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3289 * ada-lang.c (user_select_syms): Use metadata style.
3291 2019-10-01 Tom Tromey <tom@tromey.com>
3293 * cli/cli-cmds.c (pwd_command): Style output.
3295 2019-10-01 Pedro Alves <palves@redhat.com>
3296 Tom Tromey <tom@tromey.com>
3298 * symtab.c (print_symbol_info): Use %ps.
3299 (print_msymbol_info): Use %ps.
3300 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3301 * printcmd.c (print_variable_and_value): Use %ps.
3302 * macrocmd.c (show_pp_source_pos): Use %ps.
3303 * infrun.c (print_exited_reason): Use ui_out::message.
3304 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3305 (describe_other_breakpoints): Use ui_out::message and new
3307 (say_where): Use new formats.
3308 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3311 2019-10-01 Pedro Alves <palves@redhat.com>
3312 Tom Tromey <tom@tromey.com>
3314 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3315 (test_gdb_formats): New function.
3316 (run_tests): Call it.
3317 (test_format_specifier): Update.
3318 * utils.h (fputs_filtered): Update comment.
3319 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3320 (fputs_styled_unfiltered): Declare.
3321 * utils.c (fputs_styled_unfiltered): New function.
3322 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3323 (vfprintf_filtered): Update.
3324 (vfprintf_unfiltered, vprintf_filtered): Update.
3325 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3326 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3327 disallow_ui_out_field>: New constants.
3328 (enum class field_kind): New.
3329 (struct base_field_s, struct signed_field_s): New.
3330 (signed_field): New function.
3331 (struct string_field_s): New.
3332 (string_field): New function.
3333 (struct styled_string_s): New.
3334 (styled_string): New function.
3335 (class ui_out) <message>: Add comment.
3336 <vmessage, call_do_message>: New methods.
3337 <do_message>: Add style parameter.
3338 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3340 (ui_out::message): Rewrite.
3341 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3343 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3344 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3345 gdb_extensions parameter.
3346 (class format_piece): Add parameter to constructor.
3347 (n_int_args): New field.
3348 * gdbsupport/format.c (format_pieces::format_pieces): Add
3349 gdb_extensions parameter. Handle '*'.
3350 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3351 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3352 vfprintf_styled_no_gdbfmt.
3353 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3354 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3356 * ui-style.h (struct ui_file_style) <ptr>: New method.
3358 2019-10-01 Tom Tromey <tom@tromey.com>
3360 * unittests/format_pieces-selftests.c: Update. Add final format.
3361 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3362 empty literal pieces.
3364 2019-10-01 Tom Tromey <tom@tromey.com>
3366 * ui-out.h (enum class ui_out_style_kind): Remove.
3367 (class ui_out) <field_string, field_stsream, do_field_string>:
3368 Change type of "style".
3369 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3370 (ui_out::field_string): Update.
3371 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3373 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3374 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3375 * stack.c (print_frame_arg, print_frame_info, print_frame):
3377 * source.c (print_source_lines_base): Update.
3378 * solib.c (info_sharedlibrary_command): Update.
3379 * skip.c (info_skip_command): Update.
3380 * record-btrace.c (btrace_call_history_src_line)
3381 (btrace_call_history): Update.
3382 * python/py-framefilter.c (py_print_frame): Update.
3383 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3385 * mi/mi-out.c (mi_ui_out::do_table_header)
3386 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3387 (mi_ui_out::do_field_string): Update.
3388 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3390 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3392 * cli-out.c (cli_ui_out::do_table_header)
3393 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3394 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3395 (cli_ui_out::do_field_fmt): Update.
3396 * breakpoint.c (print_breakpoint_location): Update.
3397 (update_static_tracepoint): Update.
3399 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3401 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3402 conversion of gdb_datadir.
3403 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3404 remove not needed c_str ().
3406 2019-09-30 Ali Tamur <tamur@google.com>
3408 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3409 (dwarf2_string_attr): Likewise.
3411 2019-09-30 Ali Tamur <tamur@google.com>
3413 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3414 (process_full_type_unit): Likewise.
3415 (dump_die_shallow): Likewise.
3416 (cu_debug_loc_section): Likewise.
3418 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3420 * minsyms.c (compare_minimal_symbols): Rename to...
3421 (minimal_symbol_is_less_than): ...this, and adjust to STL
3422 conventions (return bool, take arguments as references)
3423 (minimal_symbol_reader::install): Call std::sort instead
3426 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3428 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3430 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3431 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3433 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3435 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3436 * psympriv.h (add_psymbol_to_list): Move comment here and update
3439 2019-09-29 Tom de Vries <tdevries@suse.de>
3441 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3442 Use $tmpdir/$(basename "$output_file").dwz instead of
3443 "${output_file}.dwz".
3445 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3448 * hppa-linux-nat.c: Include gdbarch.h.
3450 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3452 * blockframe.c (find_pc_partial_function): Change return type to bool.
3453 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3454 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3455 (stub_gnu_ifunc_resolve_name): Likewise.
3456 * symtab.c (compare_filenames_for_search): Likewise.
3457 (compare_glob_filenames_for_search): Likewise.
3458 (matching_obj_sections): Likewise.
3459 (symbol_matches_domain): Likewise.
3460 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3461 (find_line_pc): Change return type to bool.
3462 (find_line_pc_range): Likewise.
3463 (producer_is_realview): Likewise.
3464 * symtab.h (symbol_matches_domain): Likewise.
3465 (find_pc_partial_function): Likewise.
3466 (find_pc_line_pc_range): Likewise.
3467 (in_gnu_ifunc_stub): Likewise.
3468 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3469 (find_line_pc): Likewise.
3470 (find_line_pc_range): Likewise.
3471 (matching_obj_sections): Likewise.
3472 (find_line_symtab): Change out parameter to bool.
3473 (producer_is_realview): Change return type to bool.
3474 (compare_filenames_for_search): Likewise.
3475 (compare_glob_filenames_for_search): Likewise.
3477 2019-09-26 Tom Tromey <tom@tromey.com>
3479 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3480 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3481 * gdb_usleep.h: Remove.
3482 * gdb_usleep.c: Remove.
3483 * utils.c: Don't include gdb_usleep.h.
3485 2019-09-26 Tom Tromey <tromey@adacore.com>
3487 * python/py-type.c (type_to_type_object): Call check_typedef
3490 2019-09-26 Tom Tromey <tom@tromey.com>
3492 * utils.h (initialize_utils): Don't declare.
3493 * top.c (gdb_init): Don't call initialize_utils.
3494 * utils.c (initialize_utils): Remove. Move contents...
3495 (_initialize_utils): ... here.
3497 2019-09-25 Tom Tromey <tom@tromey.com>
3499 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3500 * utils.h (make_hex_string): Don't declare.
3501 * utils.c (make_hex_string): Remove.
3503 2019-09-24 Tom de Vries <tdevries@suse.de>
3506 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3507 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3509 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3511 * NEWS: Mention new simulator port for PRU.
3513 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3515 * ada-exp.y (write_object_remaining): Update.
3516 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3517 and eliminate the static buffer.
3518 (ada_decode_symbol): Update.
3519 (ada_la_decode): Update.
3520 (ada_sniff_from_mangled_name): Update.
3521 (is_valid_name_for_wild_match): Update.
3522 (ada_lookup_name_info::matches): Update and simplify.
3523 (name_matches_regex): Update.
3524 (ada_add_global_exceptions): Update.
3525 * ada-lang.h (ada_decode): Update signature.
3526 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3527 * dwarf-index-write.c (debug_names::insert): Update.
3529 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3531 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3534 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3536 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3537 Change "nonzero" to "true" in documentation.
3539 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3541 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3542 (_initialize_darwin_solib): Don't set
3543 darwin_so_ops.lookup_lib_global_symbol.
3544 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3545 set_gdbarch_iterate_over_objfiles_in_search_order.
3546 (elf_lookup_lib_symbol): Rename to...
3547 (svr4_iterate_over_objfiles_in_search_order): this, and update
3548 to iterate semantics.
3549 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3550 * solib.c (solib_global_lookup): Remove.
3551 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3552 (solib_global_lookup): Remove.
3553 * symtab.c (lookup_global_or_static_symbol): Remove call to
3554 solib_global_lookup.
3556 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3558 * NEWS: Move entries about default MI version now being
3559 version 3, and about the GDB/MI fix for multi-location
3560 breakpoints to the "since GDB 8.3" section.
3562 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3566 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3568 * NEWS: Mention that Cell/B.E. debugging support was removed.
3569 * MAINTAINERS: Remove spu target.
3571 * config/djgpp/fnchange.lst: Remove entries for removed files.
3573 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3574 spu-multiarch.o, and spu-tdep.o.
3575 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3576 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3577 spu-multiarch.c, and spu-tdep.c.
3578 * spu-linux-nat.c: Remove file.
3579 * spu-multiarch.c: Remove file.
3580 * spu-tdep.c: Remove file.
3581 * spu-tdep.h: Remove file.
3582 * solib-spu.c: Remove file.
3583 * solib-spu.h: Remove file.
3585 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3586 * configure.nat (spu-linux): Remove.
3587 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3588 solib-multiarch.o from gdb_target_obs.
3591 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3593 (ppc_linux_no_features): Update.
3594 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3596 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3597 (tdesc_powerpc_cell64l): Likewise.
3598 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3599 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3601 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3602 Do not include "features/rs6000/powerpc-cell32l.c" or
3603 "features/rs6000/powerpc-cell64l.c".
3604 (ppc_linux_spu_section): Remove.
3605 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3606 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3607 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3608 (ppc_linux_spe_context_lookup): Remove.
3609 (ppc_linux_spe_context_inferior_created): Remove.
3610 (ppc_linux_spe_context_solib_loaded): Remove.
3611 (ppc_linux_spe_context_solib_unloaded): Remove.
3612 (ppc_linux_spe_context): Remove.
3613 (struct ppu2spu_cache): Remove.
3614 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3615 (struct ppu2spu_data): Remove.
3616 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3617 ppu2spu_unwind): Remove.
3618 (ppc_linux_init_abi): Remove Cell/B.E. support.
3619 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3621 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3622 (rs6000/powerpc-cell64l-expedite): Likewise
3623 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3624 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3625 rs6000/powerpc-cell64l.xml.
3626 * features/rs6000/powerpc-cell32l.xml: Remove.
3627 * features/rs6000/powerpc-cell64l.xml: Likewise.
3628 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3629 * features/rs6000/powerpc-cell64l.c: Likewise.
3630 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3631 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3632 * regformats/reg-spu.dat: Remove.
3634 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3635 * corelow.c (struct spuid_list): Remove.
3636 (add_to_spuid_list): Remove.
3637 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3638 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3639 (remote_protocol_features): Remove associated entries.
3640 (_initialize_remote): No longer initialize them.
3641 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3642 * linux-nat.c (SPUFS_MAGIC): Remove.
3643 (linux_proc_xfer_spu): Remove.
3644 (spu_enumerate_spu_ids): Remove.
3645 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3646 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3647 (linux_make_corefile_notes): No longer call it.
3649 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3650 (cooked_write_test): Likewise.
3652 2019-09-20 Tom Tromey <tom@tromey.com>
3654 * NEWS: Mention case-sensitivity of TUI commands.
3655 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3656 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3657 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3659 2019-09-20 Tom Tromey <tom@tromey.com>
3661 * tui/tui-source.c (tui_source_window::set_contents): Use
3662 make_unique_xstrdup.
3663 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3664 make_unique_xstrdup.
3666 2019-09-20 Tom Tromey <tom@tromey.com>
3668 * tui/tui-data.c: Remove separator comments.
3669 * tui/tui-layout.c: Remove separator comments.
3670 * tui/tui-win.c: Remove separator comments.
3671 * tui/tui-wingeneral.c: Remove separator comments.
3673 2019-09-20 Tom Tromey <tom@tromey.com>
3675 * tui/tui.h (strcat_to_buf): Don't declare.
3676 * tui/tui.c (strcat_to_buf): Remove.
3678 2019-09-20 Tom Tromey <tom@tromey.com>
3680 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3682 * tui/tui-source.c (tui_source_window::set_contents)
3683 (tui_source_window::location_matches_p)
3684 (tui_source_window::maybe_update): Update.
3686 2019-09-20 Tom Tromey <tom@tromey.com>
3688 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3690 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3692 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3693 (tui_data_window::line_from_reg_element_no)
3694 (tui_data_window::first_reg_element_no_inline)
3695 (tui_data_window::show_registers)
3696 (tui_data_window::show_register_group)
3697 (tui_data_window::display_registers_from)
3698 (tui_data_window::display_registers_from_line)
3699 (tui_data_window::first_data_item_displayed)
3700 (tui_data_window::delete_data_content_windows)
3701 (tui_data_window::erase_data_content)
3702 (tui_data_window::do_scroll_vertical)
3703 (tui_data_window::refresh_window)
3704 (tui_data_window::check_register_values): Update.
3706 2019-09-20 Tom Tromey <tom@tromey.com>
3708 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3709 (struct tui_locator_window) <full_name, proc_name>: Now
3711 * tui/tui-stack.c (tui_locator_window::make_status_line)
3712 (tui_locator_window::set_locator_fullname)
3713 (tui_locator_window::set_locator_info): Update.
3714 * tui/tui-source.c (tui_source_window::set_contents)
3715 (tui_source_window::showing_source_p): Update.
3717 2019-09-20 Tom Tromey <tom@tromey.com>
3719 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3720 Don't call tui_locator_win_info_ptr.
3722 2019-09-20 Tom Tromey <tom@tromey.com>
3724 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3726 2019-09-20 Tom Tromey <tom@tromey.com>
3728 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3730 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3731 * tui/tui-layout.c (show_source_disasm_command, show_data)
3732 (show_source_or_disasm_and_command): Use 1 as height for locator.
3734 2019-09-20 Tom Tromey <tom@tromey.com>
3736 * tui/tui.c (tui_enable): Update.
3737 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3739 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3741 * tui/tui-data.c (win_resized): Now bool.
3742 (tui_win_resized): Return bool.
3743 (tui_set_win_resized_to): Accept a bool.
3745 2019-09-20 Tom Tromey <tom@tromey.com>
3747 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3748 Change type of "refresh_values_only".
3749 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3750 type of "refresh_values_only".
3752 2019-09-20 Tom Tromey <tom@tromey.com>
3754 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3756 (tui_disassemble): Add "pos" parameter.
3757 (tui_disasm_window::set_contents): Simplify.
3759 2019-09-20 Tom Tromey <tom@tromey.com>
3761 * tui/tui-winsource.h (struct tui_source_window_base)
3762 <show_source_content>: Now private.
3763 * tui/tui-winsource.c
3764 (tui_source_window_base::show_source_content): Don't handle empty
3767 2019-09-20 Tom Tromey <tom@tromey.com>
3769 * tui/tui-layout.c (show_source_disasm_command)
3770 (show_source_or_disasm_and_command): Don't call
3771 show_source_content.
3773 2019-09-20 Tom Tromey <tom@tromey.com>
3775 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3777 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3778 from tui_make_status_line.
3779 (tui_locator_window::rerender): Update.
3781 2019-09-20 Tom Tromey <tom@tromey.com>
3783 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3784 (tui_locator_window::rerender): Update.
3786 2019-09-20 Tom Tromey <tom@tromey.com>
3788 * tui/tui-winsource.h (struct tui_source_window_base)
3789 <~tui_source_window_base>: Don't declare.
3791 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3792 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3794 * tui/tui-source.c (tui_source_window::set_contents): Update.
3795 (tui_source_window::location_matches_p)
3796 (tui_source_window::maybe_update): Update.
3798 2019-09-20 Tom Tromey <tom@tromey.com>
3800 * tui/tui-winsource.h (~tui_source_element): Remove.
3801 (tui_source_element): Update.
3802 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3803 * tui/tui-winsource.c (tui_show_source_line): Update.
3804 * tui/tui-source.c (tui_source_window::set_contents): Update.
3805 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3807 2019-09-20 Tom Tromey <tom@tromey.com>
3809 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3811 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3812 tui_clear_source_windows_detail.
3813 * tui/tui-winsource.h (struct tui_source_window_base)
3814 <clear_detail>: Don't declare.
3815 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3817 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3819 2019-09-20 Tom Tromey <tromey@adacore.com>
3822 * block.c (contained_in): Fix final return value.
3824 2019-09-20 Alan Modra <amodra@gmail.com>
3826 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3827 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3828 (read_indirect_string_from_dwz): Use bfd accessor.
3829 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3830 * machoread.c (macho_symfile_read_all_oso): Likewise.
3831 * solib.c (solib_bfd_open): Likewise.
3833 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3835 * eval.c: Move declaration of overload_resolution to...
3838 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3840 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3841 * arm-linux-tdep.c: Likewise.
3842 * arm-nbsd-nat.c: Likewise.
3843 * arm-tdep.h: Declare arm_apcs_32.
3844 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3846 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3848 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3849 * dwarf2read.h: Declare dwarf_always_disassemble.
3851 2019-09-19 Tom de Vries <tdevries@suse.de>
3854 * source-cache.c (source_cache::ensure): Catch exception thrown during
3855 construction of the highlighter.
3857 2019-09-18 Alan Modra <amodra@gmail.com>
3859 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3860 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3861 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3862 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3863 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3864 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3865 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3866 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3867 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3868 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3869 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3870 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3871 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3872 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3873 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3874 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3875 * mi/mi-interp.c: Update throughout for bfd section macro and
3877 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3878 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3880 2019-09-18 Tom Tromey <tom@tromey.com>
3883 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3885 (tui_enable): Do not call rl_initialize.
3887 2019-09-18 Christian Groessler <chris@groessler.org>
3889 * alpha-linux-nat.c: Include gdbarch.h.
3891 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3893 * ui-file.c: Include cli/cli-style.h.
3894 (term_cli_styling): Remove cli_styling declaration.
3896 2019-09-18 Alan Modra <amodra@gmail.com>
3898 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3899 to bfd_asymbol_section.
3901 2019-09-18 Alan Modra <amodra@gmail.com>
3903 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3904 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3905 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3907 2019-09-18 Alan Modra <amodra@gmail.com>
3909 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3910 * spu-linux-nat.c (spu_bfd_open): Likewise.
3912 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3914 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3915 to bool to match definition in dwarf2read.c.
3917 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3919 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3920 (print_signatures): Likewise.
3921 (trust_pad_over_xvs): Likewise.
3922 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3923 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3924 * arm-linux-nat.c (arm_apcs_32): Likewise.
3925 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3926 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3927 * arm-tdep.c (arm_debug): Likewise.
3928 (arm_apcs_32): Likewise.
3929 * auto-load.c (debug_auto_load): Likewise.
3930 (auto_load_gdb_scripts): Likewise.
3931 (global_auto_load): Likewise.
3932 (auto_load_local_gdbinit): Likewise.
3933 (auto_load_local_gdbinit_loaded): Likewise.
3934 * auto-load.h (global_auto_load): Likewise.
3935 (auto_load_local_gdbinit): Likewise.
3936 (auto_load_local_gdbinit_loaded): Likewise.
3937 * breakpoint.c (disconnected_dprintf): Likewise.
3938 (breakpoint_proceeded): Likewise.
3939 (automatic_hardware_breakpoints): Likewise.
3940 (always_inserted_mode): Likewise.
3941 (target_exact_watchpoints): Likewise.
3942 (_initialize_breakpoint): Update.
3943 * breakpoint.h (target_exact_watchpoints): Change to bool.
3944 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3945 * cli/cli-cmds.c (trace_commands): Likewise.
3946 * cli/cli-cmds.h (trace_commands): Likewise.
3947 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3949 * cli/cli-logging.c (logging_overwrite): Change to bool.
3950 (logging_redirect): Likewise.
3951 (debug_redirect): Likewise.
3952 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3953 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3955 <boolean_option_def>: Update.
3956 (struct flag_option_def): Change default type of Context to bool
3958 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3959 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3960 (get_setshow_command_value_string): Likewise.
3961 * cli/cli-style.c (cli_styling): Change to bool.
3962 (source_styling): Likewise.
3963 * cli/cli-style.h (source_styling): Likewise.
3964 (cli_styling): Likewise.
3965 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3967 * command.h (var_types): Update comment.
3968 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3969 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3971 (debug_compile_cplus_scopes): Likewise.
3972 * compile/compile-internal.h (compile_debug): Likewise.
3973 * compile/compile.c (compile_debug): Likewise.
3974 (struct compile_options) <raw>: Likewise.
3975 * cp-support.c (catch_demangler_crashes): Likewise.
3976 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3977 (usr_cmd_cris_dwarf2_cfi): Likewise.
3978 * csky-tdep.c (csky_debug): Likewise.
3979 * darwin-nat.c (enable_mach_exceptions): Likewise.
3980 * dcache.c (dcache_enabled_p): Likewise.
3981 * defs.h (info_verbose): Likewise.
3982 * demangle.c (demangle): Likewise.
3983 (asm_demangle): Likewise.
3984 * dwarf-index-cache.c (debug_index_cache): Likewise.
3985 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3986 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3987 * dwarf2read.c (check_physname): Likewise.
3988 (use_deprecated_index_sections): Likewise.
3989 (dwarf_always_disassemble): Likewise.
3990 * eval.c (overload_resolution): Likewise.
3991 * event-top.c (set_editing_cmd_var): Likewise.
3992 (exec_done_display_p): Likewise.
3993 * event-top.h (set_editing_cmd_var): Likewise.
3994 (exec_done_display_p): Likewise.
3995 * exec.c (write_files): Likewise.
3996 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3997 (debug_fbsd_nat): Likewise.
3998 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4000 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4001 <backtrace_past_entry> Likewise.
4002 * gdb-demangle.h (demangle): Likewise.
4003 (asm_demangle): Likewise.
4004 * gdb_bfd.c (bfd_sharing): Likewise.
4005 * gdbcore.h (write_files): Likewise.
4006 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4007 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4008 * gdbthread.h (print_thread_events): Likewise.
4009 * gdbtypes.c (opaque_type_resolution): Likewise.
4010 (strict_type_checking): Likewise.
4011 * gnu-nat.c (gnu_debug_flag): Likewise.
4012 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4013 * guile/scm-param.c (pascm_variable): Add boolval.
4014 (add_setshow_generic): Update.
4015 (pascm_param_value): Update.
4016 (pascm_set_param_value_x): Update.
4017 * hppa-tdep.c (hppa_debug): Change to bool..
4018 * infcall.c (may_call_functions_p): Likewise.
4019 (coerce_float_to_double_p): Likewise.
4020 (unwind_on_signal_p): Likewise.
4021 (unwind_on_terminating_exception_p): Likewise.
4022 * infcmd.c (startup_with_shell): Likewise.
4023 * inferior.c (print_inferior_events): Likewise.
4024 * inferior.h (startup_with_shell): Likewise.
4025 (print_inferior_events): Likewise.
4026 * infrun.c (step_stop_if_no_debug): Likewise.
4027 (detach_fork): Likewise.
4028 (debug_displaced): Likewise.
4029 (disable_randomization): Likewise.
4030 (non_stop): Likewise.
4031 (non_stop_1): Likewise.
4032 (observer_mode): Likewise.
4033 (observer_mode_1): Likewise.
4034 (set_observer_mode): Update.
4035 (sched_multi): Change to bool.
4036 * infrun.h (debug_displaced): Likewise.
4037 (sched_multi): Likewise.
4038 (step_stop_if_no_debug): Likewise.
4039 (non_stop): Likewise.
4040 (disable_randomization): Likewise.
4041 * linux-tdep.c (use_coredump_filter): Likewise.
4042 (dump_excluded_mappings): Likewise.
4043 * linux-thread-db.c (auto_load_thread_db): Likewise.
4044 (check_thread_db_on_load): Likewise.
4045 * main.c (captured_main_1): Update.
4046 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4047 xx2_opt, boolean_opt>: Change to bool.
4048 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4049 * maint.c (maintenance_profile_p): Likewise.
4050 (per_command_time): Likewise.
4051 (per_command_space): Likewise.
4052 (per_command_symtab): Likewise.
4053 * memattr.c (inaccessible_by_default): Likewise.
4054 * mi/mi-main.c (mi_async): Likewise.
4055 (mi_async_1): Likewise.
4056 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4057 * nat/fork-inferior.h (startup_with_shell): Likewise.
4058 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4059 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4060 * nios2-tdep.c (nios2_debug): Likewise.
4061 * or1k-tdep.c (or1k_debug): Likewise.
4062 * parse.c (parser_debug): Likewise.
4063 * parser-defs.h (parser_debug): Likewise.
4064 * printcmd.c (print_symbol_filename): Likewise.
4065 * proc-api.c (procfs_trace): Likewise.
4066 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4067 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4068 (set_parameter_value): Update.
4069 (add_setshow_generic): Update.
4070 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4072 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4074 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4075 * record-btrace.c (record_btrace_target::store_registers): Update.
4076 * record-full.c (record_full_memory_query): Change to bool.
4077 (record_full_stop_at_limit): Likewise.
4078 * record-full.h (record_full_memory_query): Likewise.
4079 * remote-notif.c (notif_debug): Likewise.
4080 * remote-notif.h (notif_debug): Likewise.
4081 * remote.c (use_range_stepping): Likewise.
4082 (interrupt_on_connect): Likewise.
4083 (remote_break): Likewise.
4084 * ser-tcp.c (tcp_auto_retry): Likewise.
4085 * ser-unix.c (serial_hwflow): Likewise.
4086 * skip.c (debug_skip): Likewise.
4087 * solib-aix.c (solib_aix_debug): Likewise.
4088 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4089 (spu_auto_flush_cache_p): Likewise.
4090 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4092 (struct info_print_options) <quiet>: Likewise.
4093 * symfile-debug.c (debug_symfile): Likewise.
4094 * symfile.c (auto_solib_add): Likewise.
4095 (separate_debug_file_debug): Likewise.
4096 * symfile.h (auto_solib_add): Likewise.
4097 (separate_debug_file_debug): Likewise.
4098 * symtab.c (basenames_may_differ): Likewise.
4099 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4100 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4101 (struct info_types_options) <quiet>: Likewise.
4102 * symtab.h (demangle): Likewise.
4103 (basenames_may_differ): Likewise.
4104 * target-dcache.c (stack_cache_enabled_1): Likewise.
4105 (code_cache_enabled_1): Likewise.
4106 * target.c (trust_readonly): Likewise.
4107 (may_write_registers): Likewise.
4108 (may_write_memory): Likewise.
4109 (may_insert_breakpoints): Likewise.
4110 (may_insert_tracepoints): Likewise.
4111 (may_insert_fast_tracepoints): Likewise.
4112 (may_stop): Likewise.
4113 (auto_connect_native_target): Likewise.
4114 (target_stop_and_wait): Update.
4115 (target_async_permitted): Change to bool.
4116 (target_async_permitted_1): Likewise.
4117 (may_write_registers_1): Likewise.
4118 (may_write_memory_1): Likewise.
4119 (may_insert_breakpoints_1): Likewise.
4120 (may_insert_tracepoints_1): Likewise.
4121 (may_insert_fast_tracepoints_1): Likewise.
4122 (may_stop_1): Likewise.
4123 * target.h (target_async_permitted): Likewise.
4124 (may_write_registers): Likewise.
4125 (may_write_memory): Likewise.
4126 (may_insert_breakpoints): Likewise.
4127 (may_insert_tracepoints): Likewise.
4128 (may_insert_fast_tracepoints): Likewise.
4129 (may_stop): Likewise.
4130 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4131 (make_thread_apply_all_options_def_group): Change argument from int*
4133 (thread_apply_all_command): Update.
4134 (print_thread_events): Change to bool.
4135 * top.c (confirm): Likewise.
4136 (command_editing_p): Likewise.
4137 (history_expansion_p): Likewise.
4138 (write_history_p): Likewise.
4139 (info_verbose): Likewise.
4140 * top.h (confirm): Likewise.
4141 (history_expansion_p): Likewise.
4142 * tracepoint.c (disconnected_tracing): Likewise.
4143 (circular_trace_buffer): Likewise.
4144 * typeprint.c (print_methods): Likewise.
4145 (print_typedefs): Likewise.
4146 * utils.c (debug_timestamp): Likewise.
4147 (sevenbit_strings): Likewise.
4148 (pagination_enabled): Likewise.
4149 * utils.h (sevenbit_strings): Likewise.
4150 (pagination_enabled): Likewise.
4151 * valops.c (overload_resolution): Likewise.
4152 * valprint.h (struct value_print_options) <prettyformat_arrays,
4153 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4154 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4155 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4157 * windows-nat.c (new_console): Likewise.
4158 (cygwin_exceptions): Likewise.
4159 (new_group): Likewise.
4160 (debug_exec): Likewise.
4161 (debug_events): Likewise.
4162 (debug_memory): Likewise.
4163 (debug_exceptions): Likewise.
4164 (useshell): Likewise.
4165 * windows-tdep.c (maint_display_all_tib): Likewise.
4166 * xml-support.c (debug_xml): Likewise.
4168 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4170 * source.c (prepare_path_for_appending): New function.
4171 (openp): Make use of new function.
4172 (find_and_open_source): Search for the compilation directory and
4173 source file as a relative path beneath the directory search path.
4175 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4177 * source-cache.c (source_cache::get_line_charpos): Catch
4178 exceptions and return false, this matches the behaviour documented
4181 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4183 * ada-tasks.c (info_task): Remove quoting of the task's name.
4185 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4187 * symfile.c (auto_solib_add): Replace comment with a reference
4190 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4192 * NEWS: Mention that gdb can now be compiled with Python 3
4195 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4197 * maint.c (maint_print_section_data::maint_print_section_data):
4198 Force use of 'float log10 (float)' by casting the argument to
4201 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4203 * maint.c: Add 'cmath' include.
4204 (struct maint_print_section_data): New structure.
4205 (print_section_index): New function.
4206 (print_bfd_section_info): Add header comment, small whitespace
4207 cleanup, and update to call new print_section_index function.
4208 (print_objfile_section_info): Likewise.
4209 (maint_obj_section_from_bfd_section): New function.
4210 (print_bfd_section_info_maybe_relocated): New function.
4211 (maintenance_info_sections): Add header comment, always use
4212 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4214 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4216 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4217 inner scope, add check that the objfile has psymtabs before
4218 checking psymtabs_addrmap.
4219 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4221 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4223 * NEWS: Announce that Ada task names are now shown at more places,
4224 and between quotes (except in info task output).
4225 * gdb/ada-tasks.c (task_to_str): New function.
4226 (display_current_task_id): Call task_to_str.
4227 (task_command_1): Likewise.
4228 (print_ada_task_info): In non-mi mode, Properly align headers and data
4229 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4231 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4233 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4234 prstatus.pr_lwp.pr_info instead of making it up.
4236 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4238 * auto-load.c (auto_load_expand_dir_vars): Update.
4239 * defs.h (gdb_datadir): Change to std::string.
4240 (python_libdir): Likewise.
4241 (relocate_gdb_directory): Change return type to std::string.
4242 * guile/guile.c (gdbscm_data_directory): Update.
4243 (initialize_scheme_side): Update.
4244 * jit.c (jit_reader_dir): Change to std::string.
4245 (jit_reader_load_command): Update.
4246 * main.c (gdb_datadir): Change to std::string.
4247 (python_libdir): Likewise.
4248 (set_gdb_data_directory): Update.
4249 (relocate_path): Change to return std::string.
4250 (relocate_gdb_directory): Change to return std::string.
4251 (relocate_gdbinit_path_maybe_in_datadir): Update.
4252 (captured_main_1): Update.
4253 * python/python.c (do_start_initialization): Update.
4254 * top.c (show_gdb_datadir): Update.
4255 * xml-syscall.c (xml_init_syscalls_info): Update.
4256 (init_syscalls_info): Update.
4258 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4260 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4261 out of get_init_files.
4262 (get_init_files): Update.
4264 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4266 * main.c (get_init_files): Change to use std::string.
4267 (captured_main_1): Update.
4268 (print_gdb_help): Update.
4270 2019-09-11 Ali Tamur <tamur@google.com>
4272 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4275 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4277 * dbxread.c (read_dbx_symtab): Update.
4278 * dwarf2read.c (load_partial_dies): Update.
4279 * mdebugread.c (parse_partial_symbols): Update.
4280 (handle_psymbol_enumerators): Update.
4281 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4282 * psymtab.c (add_psymbol_to_bcache): Likewise.
4283 (add_psymbol_to_list): Likewise.
4284 * symtab.c (symbol_set_names): Likewise.
4285 * symtab.h (symbol_set_names): Likewise.
4286 * xcoffread.c (scan_xcoff_symtab): Update.
4288 2019-09-11 Tom Tromey <tom@tromey.com>
4290 * symfile-mem.c (symbol_file_add_from_memory): Use
4292 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4293 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4295 2019-09-10 Tom Tromey <tromey@adacore.com>
4297 * dwarf-index-write.c (write_psymbols): Extend error message.
4298 (debug_names::insert): Add Ada code.
4299 (debug_names::write_psymbols): Remove Ada check.
4300 (debug_names) <m_string_obstack>: New member.
4301 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4302 (gdb_index_symbol_name_matcher::matches): Remove.
4303 (mapped_index_base::find_name_components_bounds): Add "lang"
4305 (mapped_index_base::build_name_components): Also split names
4306 according to Ada syntax.
4307 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4308 type of "match_callback".
4309 (check_match, check_find_bounds_finds)
4310 (dw2_expand_symtabs_matching): Update.
4311 (dw2_debug_names_iterator): Add new constructor.
4312 (dw2_debug_names_map_matching_symbols): New function.
4313 (dw2_debug_names_expand_symtabs_matching): Update.
4314 (dwarf2_debug_names_functions): Use
4315 dw2_debug_names_map_matching_symbols.
4317 2019-09-10 Tom Tromey <tromey@adacore.com>
4319 * dwarf2read.c (dw2_get_file_names_reader): Add the
4320 CU's file name to the results.
4322 2019-09-10 Tom Tromey <tromey@adacore.com>
4324 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4325 map_matching_symbols. Update.
4326 * dwarf2read.c (dw2_map_matching_symbols): Update.
4327 * psymtab.c (match_partial_symbol): Change type; update.
4328 (psym_map_matching_symbols): Likewise.
4329 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4331 * symfile.h (struct quick_symbol_functions)
4332 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4335 2019-09-10 Tom Tromey <tromey@adacore.com>
4337 * psymtab.c (map_block): Remove.
4338 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4339 * symtab.c (iterate_over_symbols_terminated): New function.
4340 * symtab.c (iterate_over_symbols_terminated): Declare.
4342 2019-09-10 Tom Tromey <tromey@adacore.com>
4344 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4345 * language.h (struct language_defn) <la_iterate_over_symbols>:
4347 * symtab.c (iterate_over_symbols): Return bool.
4348 * symtab.h (iterate_over_symbols): Return bool.
4350 2019-09-10 Tom Tromey <tromey@adacore.com>
4352 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4353 (add_nonlocal_symbols): Update.
4354 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4355 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4356 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4357 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4358 Change type of "callback". Remove "data".
4361 2019-09-09 Ali Tamur <tamur@google.com>
4363 * dwarf2read.c (comp_unit_head): Update comment.
4364 (dwarf2_dwo_name): New function declaration.
4365 (dwarf_unit_type_name): New function declaration.
4366 (read_comp_unit_head): Add support for new compilation units,
4367 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4368 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4369 (currently named as "signature") in their header. Also clarify error
4371 (lookup_dwo_id): New function. Returns the dwo id of the given
4373 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4374 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4376 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4377 (dwarf2_dwo_name): Get the dwo name if present.
4378 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4381 2019-09-09 Tom Tromey <tom@tromey.com>
4383 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4385 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4387 * python/python.c (do_start_initialization): Make progname_copy static,
4388 to avoid a leak report.
4390 2019-09-08 Tom Tromey <tom@tromey.com>
4392 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4394 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4396 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4397 Change type to gdb::optional<block_enum>.
4398 (dw2_symtab_iter_init): Change block_index parameter type
4399 to gdb::optional<block_enum>.
4400 (dw2_lookup_symbol): Change block_index parameter
4401 type to block_enum.c
4402 (dw2_debug_names_lookup_symbol): Likewise.
4403 * psymtab.c (psym_lookup_symbol): Likewise.
4404 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4405 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4408 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4410 * defs.h (relocate_gdb_directory): Change int to bool in
4411 signature and rename flag to relocatable.
4412 * main.c (relocate_path): Likewise.
4413 (relocate_gdb_directory): Likewise.
4415 2019-09-06 Alan Modra <amodra@gmail.com>
4417 * coffread.c (coff_symfile_read): Constify filename variable.
4418 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4419 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4420 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4421 * solib.c (reload_shared_libraries_1): Likewise.
4422 * symfile.c (reread_symbols): Likewise.
4423 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4424 * solib-darwin.c (darwin_bfd_open): Likewise.
4425 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4427 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4429 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4430 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4432 2019-09-03 Tom Tromey <tromey@adacore.com>
4434 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4436 (has_negatives): Unbias a range type bound.
4437 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4438 * gdbtypes.c (operator==): Handle new field.
4439 (create_range_type): Add "bias" parameter.
4440 (create_static_range_type, resolve_dynamic_range): Update.
4441 * gdbtypes.h (struct range_bounds) <bias>: New member.
4442 (create_range_type): Add bias parameter.
4443 * printcmd.c (print_scalar_formatted): Unbias range types.
4444 * value.c (unpack_long): Unbias range types.
4445 (pack_long): Bias range types.
4447 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4449 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4452 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4454 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4455 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4456 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4457 (compile_probe_arg): Likewise.
4458 * probe.h (get_argument_count): Likewise.
4459 * solib-svr4.c (solib_event_probe_action): Likewise.
4460 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4462 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4464 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4466 (svr4_create_solib_event_breakpoints): ...from here.
4468 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4470 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4471 suffix from warning message.
4473 2019-08-30 Tom Tromey <tom@tromey.com>
4475 * tui/tui-winsource.h (struct tui_source_window_base)
4476 <refresh_all>: Don't declare.
4477 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4479 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4480 tui_show_locator_content.
4481 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4483 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4484 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4487 2019-08-30 Tom Tromey <tom@tromey.com>
4489 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4491 2019-08-30 Tom Tromey <tom@tromey.com>
4493 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4494 Remove unnecessary forward declarations.
4496 2019-08-30 Tom Tromey <tom@tromey.com>
4498 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4500 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4501 tui_show_locator_content.
4503 2019-08-30 Tom Tromey <tom@tromey.com>
4505 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4506 (tui_locator_window::rerender): Rewrite using body of previous
4507 tui_show_locator_content.
4509 2019-08-30 Tom Tromey <tom@tromey.com>
4511 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4512 set_locator_fullname>: New methods.
4513 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4514 Rename from tui_set_locator_fullname.
4515 (tui_locator_window::set_locator_info): Rename from
4516 tui_set_locator_info. Return bool.
4517 (tui_update_locator_fullname, tui_show_frame_info): Update.
4519 2019-08-30 Tom Tromey <tom@tromey.com>
4521 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4523 2019-08-30 Tom Tromey <tom@tromey.com>
4525 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4528 2019-08-30 Tom Tromey <tom@tromey.com>
4530 * tui/tui-wingeneral.c (box_win): Assume win_info and
4531 win_info->handle cannot be NULL.
4533 2019-08-30 Tom Tromey <tom@tromey.com>
4535 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4536 refresh_window>: Declare.
4537 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4539 (tui_data_item_window::rerender): Rename from
4540 tui_display_register.
4541 (tui_data_item_window::refresh_window): New method.
4542 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4545 2019-08-30 Tom Tromey <tom@tromey.com>
4547 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4548 regs_column_count, current_group>: Move later. Now private.
4549 <get_current_group>: New method.
4550 * tui/tui-regs.c (tui_reg_command): Update.
4551 * tui/tui-layout.c (tui_set_layout): Update.
4553 2019-08-30 Tom Tromey <tom@tromey.com>
4555 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4556 (tui_data_window::rerender): Don't call
4557 check_and_display_highlight_if_needed.
4558 (tui_data_window::refresh_all): Remove call to
4561 2019-08-30 Tom Tromey <tom@tromey.com>
4563 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4564 (tui_data_window::display_registers_from)
4565 (tui_data_window::display_reg_element_at_line)
4566 (tui_data_window::display_registers_from_line): Remove checks of
4569 2019-08-30 Tom Tromey <tom@tromey.com>
4571 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4573 * tui/tui-regs.c (tui_data_window::show_registers): Call
4575 (tui_data_window::rerender): Rename from display_all_data.
4576 (tui_data_window::rerender): Remove old implementation.
4578 2019-08-30 Tom Tromey <tom@tromey.com>
4580 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4582 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4584 2019-08-29 Bernhard Wodok <barto@gmx.net>
4585 Sergio Durigan Junior <sergiodj@redhat.com>
4588 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4590 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4593 when searching for types.
4595 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4597 * f-lang.c (f_language_defn): Use f_print_typedef.
4598 * f-lang.h (f_print_typedef): Declare.
4599 * f-typeprint.c (f_print_typedef): Define.
4601 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4603 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4605 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4607 * cli/cli-utils.c (info_print_options_defs): Delete.
4608 (make_info_print_options_def_group): Delete.
4609 (extract_info_print_options): Delete.
4610 (info_print_command_completer): Delete.
4611 (info_print_args_help): Add extra parameter, and optionally
4612 include text about -n flag.
4613 * cli/cli-utils.h (struct info_print_options): Delete.
4614 (extract_info_print_options): Delete declaration.
4615 (info_print_command_completer): Delete declaration.
4616 (info_print_args_help): Add extra parameter, extend header
4618 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4620 * stack.c (struct info_print_options): New type.
4621 (info_print_options_defs): New file scoped variable.
4622 (make_info_print_options_def_group): New static function.
4623 (info_print_command_completer): New static function.
4624 (info_locals_command): Update to use new local functions.
4625 (info_args_command): Likewise.
4626 (_initialize_stack): Add extra parameter to calls to
4627 info_print_args_help.
4628 * symtab.c (search_symbols): Add extra parameter, use this to
4629 possibly excluse non-debug symbols.
4630 (symtab_symbol_info): Add extra parameter, which is passed on to
4632 (struct info_print_options): New type.
4633 (info_print_options_defs): New file scoped variable.
4634 (make_info_print_options_def_group): New static function.
4635 (info_print_command_completer): New static function.
4636 (info_variables_command): Update to use local functions, and pass
4637 extra parameter through to symtab_symbol_info.
4638 (info_functions_command): Likewise.
4639 (info_types_command): Pass additional argument through to
4641 (rbreak_command): Pass extra argument to search_symbols.
4642 (_initialize_symtab): Add extra arguments for calls to
4643 info_print_args_help, and update help text for 'info variables',
4644 'whereis', and 'info functions' commands.
4645 * symtab.h (search_symbols): Add extra argument to declaration.
4646 * NEWS: Mention new flags.
4648 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4650 * symtab.c (lookup_static_symbol): Call the new function (and move
4651 it down to be next to lookup_global_symbol).
4652 (struct global_sym_lookup_data): Add block_enum member and rename to...
4653 (struct global_or_static_sym_lookup_data): ...this.
4654 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4655 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4656 (lookup_symbol_global_or_static_iterator_cb): ...this.
4657 (lookup_global_or_static_symbol): New function.
4658 (lookup_global_symbol): Call new function.
4660 2019-08-26 Tom de Vries <tdevries@suse.de>
4663 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4664 when pc_probe.prob == NULL.
4666 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4668 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4669 variable symbol_linkage to symbol_linkage_.
4671 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4673 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4674 represent whether the symbol is static, dynamic, or we don't
4677 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4679 * gdb/rx-tdep.c (rx_register_names): New.
4680 (rx_register_name): Delete.
4681 (rx_psw_type): Delete.
4682 (rx_fpsw_type): Delete.
4683 (rx_register_type): Delete.
4684 (rx_gdbarch_init): Convert target-descriptions.
4685 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4686 * gdb/features/Makefile: Add rx.xml.
4687 * gdb/features/rx.xml: New.
4688 * gdb/features/rx.c: Generated.
4689 * gdb/NEWS: Mention target description support.
4691 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4693 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4696 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4698 * configure.ac: Don't check for 'dlfcn.h' (moved to
4699 gdbsupport/common.m4).
4700 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4702 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4703 * compile/compile-c-support.c: Include
4704 'gdbsupport/gdb-dlfcn.h'.
4705 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4706 * gdb-dlfcn.c: Move to...
4707 * gdbsupport/gdb-dlfcn.c: ... here.
4708 * gdb-dlfcn.h: Move to...
4709 * gdbsupport/gdb-dlfcn.h: ... here.
4711 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4713 * nios2-tdep.c (struct reg_value): Improve comments. Make
4714 the offset field signed.
4716 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4718 * python/lib/gdb/__init__.py (_execute_file): New function.
4719 * python/python.c (python_run_simple_file): Call gdb._execute_file
4722 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4724 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4725 all uses as this was never set to anything but a zero value.
4727 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4729 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4731 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4733 * tui/tui-data.h (tui_gen_win_info): Add an =default
4734 move constructor, required by some GCC versions.
4736 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4738 * go32-nat.c (go32_sysinfo): Add hygon_p.
4740 2019-08-20 Tom Tromey <tom@tromey.com>
4742 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4743 line_from_reg_element_no, first_reg_element_no_inline,
4744 display_all_data, delete_data_content_windows,
4745 erase_data_content>: Now private.
4747 2019-08-20 Tom Tromey <tom@tromey.com>
4749 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4750 (tui_unhighlight_win, tui_highlight_win)
4751 (tui_win_info::make_window): Update.
4752 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4754 2019-08-20 Tom Tromey <tom@tromey.com>
4756 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4757 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4758 (MAX_PID_WIDTH): Move to tui-stack.c.
4759 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4760 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4761 (MAX_PID_WIDTH): Move from tui-data.h.
4763 2019-08-20 Tom Tromey <tom@tromey.com>
4765 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4766 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4768 (tui_gen_win_info::make_window): Rename from tui_make_window.
4769 (tui_win_info::make_window): New method.
4770 (tui_gen_win_info::make_visible): Update.
4771 * tui/tui-source.c (tui_source_window::set_contents): Update.
4772 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4773 (tui_data_window::display_registers_from): Update.
4774 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4775 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4779 (struct tui_win_info) <make_window>: Declare.
4780 <can_box>: Now virtual.
4781 <title>: New member.
4782 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4783 * tui/tui-command.c (tui_cmd_window::resize): Update.
4785 2019-08-20 Tom Tromey <tom@tromey.com>
4787 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4788 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4789 (tui_data_window::check_register_values): Update.
4791 2019-08-20 Tom Tromey <tom@tromey.com>
4793 * tui/tui-regs.h (struct tui_data_window): Use
4794 DISABLE_COPY_AND_ASSIGN.
4795 <regs_content>: Change type, removing unique_ptr.
4796 <tui_data_window>: Add move constructor.
4797 * tui/tui-regs.c (tui_data_window::show_registers)
4798 (tui_data_window::show_register_group)
4799 (tui_data_window::display_registers_from)
4800 (tui_data_window::display_registers_from)
4801 (tui_data_window::first_data_item_displayed)
4802 (tui_data_window::delete_data_content_windows)
4803 (tui_data_window::rerender, tui_data_window::refresh_window)
4804 (tui_data_window::check_register_values): Update.
4806 2019-08-20 Tom Tromey <tom@tromey.com>
4808 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4809 show_register_group>: Declare.
4810 (tui_show_register_group): Don't declare.
4811 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4813 (tui_data_window::show_register_group): Rename from
4814 tui_show_register_group.
4815 (tui_data_window::check_register_values, tui_reg_command):
4817 * tui/tui-layout.c (tui_set_layout): Update.
4819 2019-08-20 Tom Tromey <tom@tromey.com>
4821 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4823 (tui_check_register_values): Don't declare.
4824 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4825 from tui_check_register_values.
4826 * tui/tui-hooks.c (tui_register_changed): Update.
4828 2019-08-20 Tom Tromey <tom@tromey.com>
4830 * tui/tui-regs.c (tui_reg_layout): Move later.
4831 (tui_show_registers): Don't enable TUI mode or change layout.
4833 2019-08-20 Tom Tromey <tom@tromey.com>
4835 * tui/tui-regs.h (struct tui_data_item_window)
4836 <~tui_data_item_window>: Remove.
4837 <content>: Now a unique_xmalloc_ptr.
4838 * tui/tui-regs.c (tui_register_format): Return a
4840 (tui_get_register): Update.
4841 (~tui_data_item_window): Remove.
4842 (tui_data_window::display_registers_from, tui_display_register):
4844 * tui/tui-io.h (tui_expand_tabs): Update.
4845 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4846 Remove "col" parameter.
4848 2019-08-20 Tom Tromey <tom@tromey.com>
4850 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4852 * tui/tui-regs.c (~tui_data_item_window): Update.
4854 2019-08-20 Tom Tromey <tom@tromey.com>
4856 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4859 2019-08-20 Tom Tromey <tom@tromey.com>
4861 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4863 2019-08-20 Tom Tromey <tom@tromey.com>
4865 * tui/tui-source.h (struct tui_source_window): Update.
4866 * tui/tui-regs.c (tui_show_registers): Update.
4867 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4868 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4869 (NO_REGS_STRING): Remove defines.
4871 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4873 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4874 unnecessary thread walk if remote doesn't support the packet.
4876 2019-08-19 Tom Tromey <tromey@adacore.com>
4878 * python/py-value.c (value_has_field): Fix indentation.
4880 2019-08-19 Tom Tromey <tromey@adacore.com>
4882 * printcmd.c (do_one_display, info_display_command): Update.
4883 * block.h (contained_in): Return bool. Add allow_nested
4885 * block.c (contained_in): Return bool. Add allow_nested
4888 2019-08-19 Tom Tromey <tom@tromey.com>
4890 * configure: Rebuild.
4891 * configure.ac: Disallow the combination of -static-libstdc++ and
4893 * source-cache.c (get_language_name): Handle rust.
4894 (source_cache::get_source_lines): Ignore highlighting exceptions.
4896 2019-08-16 Tom Tromey <tom@tromey.com>
4898 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4899 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4900 (struct tui_source_window_base) <make_visible, refresh_window,
4901 resize>: Remove methods.
4902 <execution_info>: Remove field.
4903 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4904 (tui_show_source_line, tui_source_window_base)
4905 (~tui_source_window_base): Update.
4906 (tui_source_window_base::resize)
4907 (tui_source_window_base::make_visible)
4908 (tui_source_window_base::refresh_window): Remove.
4909 (tui_source_window_base::update_exec_info): Update.
4910 * tui/tui-source.c (tui_source_window::set_contents): Update.
4911 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4913 2019-08-16 Tom Tromey <tom@tromey.com>
4915 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4916 deprecated_query_hook.
4918 2019-08-16 Tom Tromey <tom@tromey.com>
4920 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4921 (tui_update_source_windows_with_line): Update.
4922 * tui/tui-source.h (struct tui_source_window)
4923 <show_symtab_source>: Declare.
4924 (tui_show_symtab_source): Don't declare.
4925 * tui/tui-source.c (tui_show_symtab_source): Rename from
4926 tui_show_symtab_source.
4928 2019-08-16 Tom Tromey <tom@tromey.com>
4930 * tui/tui-winsource.h (struct tui_source_window_base)
4931 <set_contents>: Declare.
4932 * tui/tui-winsource.c
4933 (tui_source_window_base::update_source_window_as_is): Update.
4934 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4936 (tui_set_source_content): Don't declare.
4937 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4938 tui_set_source_content.
4939 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4941 (tui_set_disassem_content): Don't declare.
4942 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4943 tui_set_disassem_content.
4945 2019-08-16 Tom Tromey <tom@tromey.com>
4947 * tui/tui-winsource.h (struct tui_source_window_base)
4948 <update_breakpoint_info>: Declare.
4949 (tui_update_breakpoint_info): Don't declare.
4950 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4951 (tui_update_all_breakpoint_info): Update.
4952 (tui_source_window_base::update_breakpoint_info): Rename from
4953 tui_update_breakpoint_info.
4954 (tui_source_window_base::update_exec_info): Update.
4956 2019-08-16 Tom Tromey <tom@tromey.com>
4958 * tui/tui-winsource.h (struct tui_source_window_base)
4959 <update_source_window>: Declare.
4960 (tui_update_source_window): Don't declare.
4961 * tui/tui-winsource.c
4962 (tui_source_window_base::update_source_window): Rename from
4963 tui_update_source_window.
4964 (tui_source_window_base::rerender): Update.
4965 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4966 * tui/tui-disasm.c (tui_show_disassem)
4967 (tui_show_disassem_and_update_source)
4968 (tui_disasm_window::maybe_update): Update.
4970 2019-08-16 Tom Tromey <tom@tromey.com>
4972 * tui/tui-winsource.h (struct tui_source_window_base)
4973 <update_source_window_as_is>: Declare.
4974 (tui_update_source_window_as_is): Don't declare.
4975 * tui/tui-winsource.c (tui_update_source_window): Update
4976 (tui_source_window_base::update_source_window_as_is): Rename from
4977 tui_update_source_window_as_is.
4978 (tui_source_window_base::refill): Update.
4979 * tui/tui-source.c (tui_show_symtab_source): Update.
4980 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4983 2019-08-16 Tom Tromey <tom@tromey.com>
4985 * tui/tui-winsource.h (tui_update_source_window)
4986 (tui_update_source_window_as_is): Remove "noerror" parameter.
4987 * tui/tui-winsource.c (tui_update_source_window)
4988 (tui_update_source_window_as_is): Remove "noerror" parameter.
4989 (tui_update_source_windows_with_addr)
4990 (tui_update_source_windows_with_line)
4991 (tui_source_window_base::rerender)
4992 (tui_source_window_base::refill): Update.
4993 * tui/tui-source.h (tui_set_source_content)
4994 (tui_show_symtab_source): Remove "noerror" parameter.
4995 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4997 (tui_show_symtab_source): Likewise.
4998 (tui_source_window::maybe_update): Update.
4999 * tui/tui-disasm.c (tui_show_disassem)
5000 (tui_show_disassem_and_update_source)
5001 (tui_disasm_window::do_scroll_vertical)
5002 (tui_disasm_window::maybe_update): Update.
5004 2019-08-16 Tom Tromey <tom@tromey.com>
5006 * tui/tui.c (tui_is_window_visible): Update.
5007 * tui/tui-wingeneral.c (tui_make_window)
5008 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5009 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5010 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5011 (tui_set_win_height_command, parse_scrolling_args): Update.
5012 * tui/tui-source.c (tui_source_window::style_changed): Update.
5013 * tui/tui-regs.c (tui_show_registers)
5014 (tui_data_window::first_data_item_displayed)
5015 (tui_data_window::delete_data_content_windows)
5016 (tui_check_register_values, tui_reg_command): Update.
5017 * tui/tui-disasm.c (tui_show_disassem): Update.
5018 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5020 <is_visible>: Remove field.
5021 * tui/tui-data.c (tui_next_win, tui_prev_win)
5022 (tui_delete_invisible_windows): Update.
5024 2019-08-16 Tom Tromey <tom@tromey.com>
5026 * tui/tui-winsource.h (struct tui_source_window_base)
5027 <m_has_locator>: Remove.
5028 * tui/tui-layout.c (show_source_disasm_command, show_data)
5029 (show_source_or_disasm_and_command): Update.
5031 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5033 * NEWS (Other MI changes): New subsection.
5034 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5035 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5036 * arch-utils.c (default_get_pc_address_flags): New function.
5037 * arch-utils.h (default_get_pc_address_flags): New declaration.
5038 * gdbarch.sh: Add get_pc_address_flags.
5039 * gdbarch.c: Regenerate.
5040 * gdbarch.h: Likewise.
5041 * stack.c (print_pc): New function.
5042 (print_frame_info) (print_frame): Call print_pc.
5044 2019-08-16 Tom de Vries <tdevries@suse.de>
5046 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5047 print_objfile_section_info.
5049 2019-08-15 Tom Tromey <tom@tromey.com>
5051 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5052 calling update_cmdwin_start_line.
5053 * tui/tui-winsource.h (struct tui_source_window_base)
5054 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5055 <rerender>: Declare.
5056 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5058 (tui_source_window_base::set_new_height): Remove.
5059 (tui_source_window_base::rerender): Rename from
5060 do_make_visible_with_new_height.
5061 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5063 (tui_win_info::make_invisible_and_set_new_height)
5064 (tui_win_info::make_visible_with_new_height): Remove.
5065 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5067 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5068 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5069 do_make_visible_with_new_height>: Don't declare.
5070 <rerender>: Declare.
5071 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5073 (tui_data_window::do_make_visible_with_new_height): Remove.
5074 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5075 call tui_show_locator_content.
5076 (tui_gen_win_info::resize): Call rerender.
5077 (show_source_or_disasm_and_command): Don't call
5078 tui_show_locator_content.
5079 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5081 (struct tui_win_info) <rerender>: Declare.
5082 <set_new_height, make_invisible_and_set_new_height,
5083 make_visible_with_new_height>: Don't declare.
5084 * tui/tui-data.c (tui_win_list::rerender): New method.
5085 * tui/tui-command.h (struct tui_cmd_window)
5086 <do_make_visible_with_new_height>: Don't declare.
5088 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5090 2019-08-15 Tom Tromey <tromey@adacore.com>
5092 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5093 * ada-lang.c (ada_enum_name): Likewise.
5095 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5097 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5099 (GdbOutputErrorFile): Likewise.
5100 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5102 (execute_unwinders): Rename to have a leading underscore.
5103 (auto_load_packages): Likewise.
5104 (global scope): Adjust call to auto_load_packages accordingly.
5105 (GdbSetPythonDirectory): Likewise.
5106 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5107 instead of execute_unwinders.
5109 2019-08-15 Tom Tromey <tom@tromey.com>
5111 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5112 (show_data): Don't change window visibility.
5113 (tui_gen_win_info::resize): Remove special case for command
5114 window. Use wresize, when available.
5115 (show_source_or_disasm_and_command): Don't change window
5117 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5118 <make_visible>: New method.
5119 * tui/tui-command.c (tui_cmd_window::resize): New method.
5121 2019-08-15 Tom Tromey <tom@tromey.com>
5123 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5124 (struct tui_source_windows): New.
5125 * tui/tui-winsource.c (tui_display_main): Update.
5126 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5127 (new_height_ok, parse_scrolling_args): Update.
5128 * tui/tui-layout.c (show_layout, show_data): Update.
5129 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5130 (tui_add_to_source_windows): Don't declare.
5131 * tui/tui-data.c (source_windows, tui_source_windows)
5132 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5134 2019-08-15 Tom Tromey <tom@tromey.com>
5136 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5138 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5139 * tui/tui-layout.c (show_source_disasm_command, show_data):
5141 (tui_gen_win_info::resize): Rename.
5142 (show_source_or_disasm_and_command): Update.
5143 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5146 2019-08-15 Tom Tromey <tom@tromey.com>
5148 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5149 * tui/tui-interp.c (tui_interp::init): Don't call
5150 tui_initialize_static_data.
5151 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5153 2019-08-15 Tom Tromey <tom@tromey.com>
5155 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5156 examine tui_win_list.
5158 2019-08-15 Tom Tromey <tom@tromey.com>
5160 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5161 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5162 tui_clear_source_content.
5163 (tui_clear_source_content): Remove.
5164 (tui_source_window_base::do_erase_source_content): Hoist call to
5166 * tui/tui-stack.c (tui_show_frame_info): Don't call
5167 tui_clear_source_content.
5169 2019-08-15 Tom Tromey <tom@tromey.com>
5171 * tui/tui-winsource.h (struct tui_source_window_base)
5172 <do_erase_source_content>: New method.
5173 <erase_source_content>: New method.
5174 (tui_erase_source_content): Don't declare.
5175 * tui/tui-winsource.c (tui_clear_source_content): Update.
5176 (tui_source_window_base::do_erase_source_content): Rename from
5177 tui_erase_source_content.
5178 (tui_source_window_base::show_source_content): Update.
5179 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5180 * tui/tui-source.h (struct tui_source_window)
5181 <erase_source_content>: New method.
5182 * tui/tui-disasm.h (struct tui_disasm_window)
5183 <erase_source_content>: New method.
5185 2019-08-15 Tom Tromey <tom@tromey.com>
5187 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5188 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5190 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5191 * tui/tui-source.c (tui_set_source_content): Update.
5192 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5194 2019-08-15 Tom Tromey <tom@tromey.com>
5196 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5197 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5199 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5201 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5203 (tui_source_window::maybe_update): Update.
5205 2019-08-15 Tom Tromey <tom@tromey.com>
5207 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5208 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5210 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5212 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5214 (tui_disasm_window::maybe_update): Update.
5216 2019-08-15 Tom Tromey <tom@tromey.com>
5218 * tui/tui-winsource.h (struct tui_source_window_base)
5219 <maybe_update>: Declare.
5220 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5222 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5224 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5225 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5227 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5229 2019-08-15 Tom Tromey <tom@tromey.com>
5231 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5233 2019-08-15 Tom Tromey <tom@tromey.com>
5235 * tui/tui-wingeneral.c: Include tui-stack.h.
5236 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5237 (struct tui_locator_window): Move from tui-data.h.
5238 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5239 (tui_initialize_static_data): Move from tui-data.c.
5240 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5241 (struct tui_locator_window): Move to tui-stack.c.
5242 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5243 (tui_initialize_static_data): Move to tui-stack.c.
5245 2019-08-15 Tom Tromey <tom@tromey.com>
5247 * tui/tui-layout.c (show_source_disasm_command)
5248 (show_source_or_disasm_and_command): Use make_visible method, not
5250 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5253 2019-08-15 Tom Tromey <tom@tromey.com>
5255 * tui/tui-wingeneral.h (tui_make_window): Update.
5256 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5258 (tui_gen_win_info::make_visible): Update.
5259 * tui/tui-regs.c (tui_data_window::display_registers_from):
5261 * tui/tui-layout.c (show_source_disasm_command)
5262 (show_source_or_disasm_and_command): Update.
5263 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5264 (enum tui_box): Remove.
5265 (struct tui_win_info) <can_box>: New method.
5266 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5269 2019-08-15 Tom de Vries <tdevries@suse.de>
5271 * linux-nat-trad.c: Include gdbarch.h.
5273 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5275 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5278 2019-08-14 Tom Tromey <tromey@adacore.com>
5280 * darwin-nat.c: Include gdbarch.h.
5281 * darwin-nat-info.c: Include gdbarch.h.
5283 2019-08-13 Tom Tromey <tom@tromey.com>
5285 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5287 * tui/tui-data.c (tui_initialize_static_data): Update.
5289 2019-08-13 Tom Tromey <tom@tromey.com>
5291 * tui/tui-winsource.h (struct tui_exec_info_window)
5292 <~tui_exec_info_window, maybe_allocate_content, get_content,
5294 (struct tui_source_window_base) <set_exec_info_content,
5295 show_exec_info_content>: Don't declare.
5296 * tui/tui-winsource.c
5297 (tui_exec_info_window::maybe_allocate_content): Remove.
5298 (tui_source_window_base::update_exec_info): Rename from
5299 set_exec_info_content.
5300 (tui_source_window_base::show_exec_info_content)
5301 (tui_source_window_base::update_exec_info): Remove.
5303 2019-08-13 Tom Tromey <tom@tromey.com>
5305 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5307 * tui/tui-winsource.c (tui_update_source_window_as_is)
5308 (tui_update_source_windows_with_addr, tui_erase_source_content):
5310 (tui_clear_exec_info_content): Remove.
5312 2019-08-13 Tom Tromey <tom@tromey.com>
5314 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5316 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5317 call tui_erase_exec_info_content.
5318 (tui_clear_exec_info_content): Rename from
5319 tui_erase_exec_info_content.
5320 (tui_clear_exec_info_content): Delete.
5322 2019-08-13 Tom Tromey <tom@tromey.com>
5324 * tui/tui-winsource.h (struct tui_source_window_base)
5325 <show_exec_info_content>: Declare.
5326 (tui_show_exec_info_content): Don't declare.
5327 * tui/tui-winsource.c
5328 (tui_source_window_base::show_exec_info_content): Rename from
5329 tui_show_exec_info_content.
5330 (tui_source_window_base::update_exec_info): Update.
5332 2019-08-13 Tom Tromey <tom@tromey.com>
5334 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5335 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5336 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5337 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5338 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5339 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5342 2019-08-13 Tom Tromey <tom@tromey.com>
5344 * tui/tui-winsource.h (struct tui_source_window_base)
5345 <update_exec_info>: Declare.
5346 (tui_update_exec_info): Don't declare.
5347 * tui/tui-winsource.c (tui_update_source_window_as_is)
5348 (tui_source_window_base::refresh_all)
5349 (tui_update_all_breakpoint_info): Update.
5350 (tui_source_window_base::update_exec_info): Rename from
5351 tui_update_exec_info.
5352 * tui/tui-stack.c (tui_show_frame_info): Update.
5354 2019-08-13 Tom Tromey <tom@tromey.com>
5356 * tui/tui-winsource.h (struct tui_source_window_base)
5357 <set_exec_info_content>: Declare.
5358 (tui_set_exec_info_content): Don't declare.
5359 * tui/tui-winsource.c
5360 (tui_source_window_base::set_exec_info_content): Rename from
5361 tui_set_exec_info_content.
5362 (tui_update_exec_info): Update.
5364 2019-08-13 Tom Tromey <tom@tromey.com>
5366 * tui/tui-winsource.h (struct tui_source_window_base)
5367 <show_source_content>: Declare.
5368 (tui_show_source_content): Don't declare.
5369 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5370 (tui_source_window_base::show_source_content): Rename from
5371 tui_show_source_content.
5372 (tui_source_window_base::refresh_all): Update.
5373 * tui/tui-layout.c (show_source_disasm_command)
5374 (show_source_or_disasm_and_command): Update.
5376 2019-08-13 Tom Tromey <tom@tromey.com>
5378 * tui/tui-winsource.c (tui_erase_source_content)
5379 (tui_show_source_content, tui_source_window_base::refresh_all):
5381 * tui/tui-wingeneral.h
5382 (tui_check_and_display_highlight_if_needed): Don't declare.
5383 * tui/tui-wingeneral.c
5384 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5385 check_and_display_highlight_if_needed.
5386 * tui/tui-win.c (tui_rehighlight_all)
5387 (tui_win_info::make_visible_with_new_height): Update.
5388 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5389 (tui_data_window::erase_data_content)
5390 (tui_data_window::display_all_data): Update.
5391 * tui/tui-data.h (struct tui_win_info)
5392 <check_and_display_highlight_if_needed>: Declare.
5394 2019-08-13 Tom Tromey <tom@tromey.com>
5396 * tui/tui-win.c (tui_resize_all): Call
5397 tui_delete_invisible_windows.
5398 * tui/tui-layout.c (show_layout): Call
5399 tui_delete_invisible_windows.
5400 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5401 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5403 2019-08-13 Tom Tromey <tom@tromey.com>
5405 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5406 tui_add_win_to_layout.
5408 2019-08-13 Tom Tromey <tom@tromey.com>
5410 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5411 * tui/tui-layout.c (tui_default_win_height): Now static.
5413 2019-08-13 Tom Tromey <tom@tromey.com>
5415 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5417 (show_source_disasm_command, show_source_or_disasm_and_command):
5418 Don't check current layout.
5420 2019-08-13 Tom Tromey <tom@tromey.com>
5422 * tui/tui-wingeneral.c (make_all_visible): Remove.
5423 (tui_make_all_invisible): Simplify.
5424 * tui/tui-layout.c (tui_make_all_invisible): Move from
5425 tui-wingeneral.c; simplify.
5426 (show_layout): Hoist call to tui_make_all_invisible.
5427 (show_data): Don't call tui_make_all_invisible.
5429 2019-08-13 Tom Tromey <tom@tromey.com>
5431 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5432 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5434 2019-08-13 Tom Tromey <tom@tromey.com>
5436 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5438 (show_source_disasm_command, show_data)
5439 (show_source_or_disasm_and_command): Don't use
5440 tui_set_current_layout_to.
5441 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5442 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5444 (tui_set_current_layout_to): Remove.
5446 2019-08-13 Tom Tromey <tom@tromey.com>
5448 * tui/tui-layout.c (tui_set_layout): Update.
5449 * tui/tui-data.h (struct tui_layout_def): Remove.
5450 (tui_layout_def): Don't declare.
5451 * tui/tui-data.c (layout_def): Remove.
5452 (tui_layout_def): Remove.
5454 2019-08-13 Tom Tromey <tom@tromey.com>
5456 * tui/tui-winsource.h (struct tui_source_window_base)
5457 <clear_detail>: No longer "override".
5458 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5459 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5460 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5461 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5463 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5465 2019-08-13 Tom Tromey <tromey@adacore.com>
5467 * tracepoint.c: Don't include readline.h or history.h.
5469 2019-08-12 Tom Tromey <tom@tromey.com>
5471 * configure: Rebuild.
5472 * configure.ac: Check for readline 7.
5473 * NEWS: Mention readline 7 requirement.
5476 2019-08-12 Tom Tromey <tom@tromey.com>
5478 * mingw-hdep.c (gdb_select): Remove readline hack.
5480 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5482 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5483 when the function fails.
5485 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5487 * s390-tdep.c (s390_type_align): New function.
5488 (s390_gdbarch_init): Set it as type_align gdbarch method.
5490 2019-08-09 Tom de Vries <tdevries@suse.de>
5493 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5494 pc_low with relocation offset.
5496 2019-08-07 Tom Tromey <tromey@adacore.com>
5498 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5499 (print_frame_args): Update.
5500 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5502 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5503 * frame.h (struct frame_arg): Add initializers.
5504 <error>: Now a unique_xmalloc_ptr.
5506 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5508 * NEWS: Expand the Pointer Authentication entry.
5509 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5510 (aarch64_frame_unmask_lr): ... to this.
5511 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5512 Call aarch64_frame_unmask_lr.
5513 * frame.c (struct frame_info): Add "masked" variable.
5514 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5515 (fprint_frame): Check for masked pc.
5516 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5518 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5519 * stack.c (print_frame): Check for masked pc.
5521 2019-08-06 Tom Tromey <tom@tromey.com>
5523 * stabsread.c (patch_block_stabs, read_one_struct_field)
5524 (read_enum_type): Use obstack_strndup.
5525 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5526 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5527 * dwarf2read.c (guess_full_die_structure_name)
5528 (anonymous_struct_prefix): Use obstack_strndup.
5529 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5530 * c-exp.y (yylex): Use obstack_strndup.
5531 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5532 (write_var_or_type): Use obstack_strndup.
5534 2019-08-06 Tom Tromey <tom@tromey.com>
5536 * symfile.c (reread_symbols): Use obstack_strdup.
5537 * stabsread.c (read_type): Use obstack_strdup.
5538 * gdb_obstack.h (obstack_strdup): New overload.
5539 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5540 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5541 (dwarf2_canonicalize_name): Use obstack_strdup.
5542 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5543 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5546 2019-08-06 Tom Tromey <tom@tromey.com>
5548 * gdb_obstack.h (obstack_strdup): Define.
5549 * gdb_obstack.c (obstack_strdup): Don't define.
5551 2019-08-06 Tom Tromey <tom@tromey.com>
5553 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5555 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5557 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5558 * stabsread.c (common_block_start): Use obstack_strdup.
5559 * objfiles.c (set_objfile_main_name, objfile): Use
5561 * namespace.c (add_using_directive): Use obstack_strdup.
5562 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5563 * jit.c (finalize_symtab): Use obstack_strdup.
5564 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5565 (guess_partial_die_structure_name, partial_die_info::fixup)
5566 (dwarf2_name): Use obstack_strdup.
5567 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5569 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5570 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5572 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5574 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5576 * unittests/help-doc-selftests.c: New file.
5577 * Makefile.in: Add the new file.
5579 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5581 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5582 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5583 the full first line, except when FOR_VALUE_PREFIX. In this case,
5584 the trailing '.' is not output, and the first character is uppercased.
5585 (print_help_for_command): Update call to print_doc_line.
5586 (print_doc_of_command): Likewise.
5587 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5588 * cli/cli-option.c (append_indented_doc): Do not append newline.
5589 (build_help_option): Append newline after first appended_indented_doc
5590 only if a second call is done.
5591 (build_help): Append 2 new lines before each option, except the first
5593 * compile/compile.c (_initialize_compile): Add new lines after
5594 %OPTIONS%, when not at the end of the help.
5595 Change help doc or code
5596 producing the help doc to respect the invariants.
5597 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5598 Also removed the new line after 'Options:', as all other commands
5599 do not put an empty line between 'Options:' and the first option.
5600 * printcmd.c (_initialize_printcmd): Likewise.
5601 * stack.c (_initialize_stack): Likewise.
5602 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5603 incorrectly telling COMMAND is optional.
5604 * ada-lang.c (_initialize_ada_language): Change help doc or code
5605 producing the help doc to respect the invariants.
5606 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5607 * breakpoint.c (_initialize_breakpoint): Likewise.
5608 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5609 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5610 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5611 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5612 _initialize_cli_style): Likewise.
5613 * corelow.c (core_target_info): Likewise.
5614 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5615 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5616 * filesystem.c (_initialize_filesystem): Likewise.
5617 * frame.c (_initialize_frame): Likewise.
5618 * gnu-nat.c (add_task_commands): Likewise.
5619 * infcall.c (_initialize_infcall): Likewise.
5620 * infcmd.c (_initialize_infcmd): Likewise.
5621 * interps.c (_initialize_interpreter): Likewise.
5622 * language.c (_initialize_language): Likewise.
5623 * linux-fork.c (_initialize_linux_fork): Likewise.
5624 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5625 * maint.c (_initialize_maint_cmds): Likewise.
5626 * memattr.c (_initialize_mem): Likewise.
5627 * printcmd.c (_initialize_printcmd): Likewise.
5628 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5630 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5631 * record-btrace.c (_initialize_record_btrace): Likewise.
5632 * record-full.c (_initialize_record_full): Likewise.
5633 * record.c (_initialize_record): Likewise.
5634 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5635 * regcache.c (_initialize_regcache): Likewise.
5636 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5637 _initialize_remote): Likewise.
5638 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5639 * serial.c (_initialize_serial): Likewise.
5640 * skip.c (_initialize_step_skip): Likewise.
5641 * source.c (_initialize_source): Likewise.
5642 * stack.c (_initialize_stack): Likewise.
5643 * symfile.c (_initialize_symfile): Likewise.
5644 * symtab.c (_initialize_symtab): Likewise.
5645 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5646 * top.c (init_main): Likewise.
5647 * tracefile-tfile.c (tfile_target_info): Likewise.
5648 * tracepoint.c (_initialize_tracepoint): Likewise.
5649 * tui/tui-win.c (_initialize_tui_win): Likewise.
5650 * utils.c (add_internal_problem_command): Likewise.
5651 * valprint.c (value_print_option_defs): Likewise.
5653 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5656 * configure.ac: Drop enable-libmcheck support.
5657 * configure, config.in: Rebuild.
5658 * libmcheck.m4: Remove.
5659 * acinclude.m4: Don't include it.
5660 * Makefile.in: Don't distribute it.
5661 * top.c (print_gdb_configuration): Don't mention it.
5663 2019-08-06 Tom Tromey <tom@tromey.com>
5665 * utils.c (set_output_style): Sometimes pass stream to
5667 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5668 * record-btrace.c (btrace_insn_history): Update.
5669 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5671 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5672 Update initializers.
5673 <m_uiout>: New field.
5675 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5676 Remove "uiout" parameter.
5677 (dump_insns): Update.
5678 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5679 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5681 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5683 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5684 (error_in_psymtab_expansion): Likewise.
5685 (lookup_symbol_via_quick_fns): Likewise.
5686 (basic_lookup_transparent_type_quick): Likewise.
5687 (basic_lookup_transparent_type_1): Likewise.
5689 2019-08-06 Tom Tromey <tromey@adacore.com>
5691 * source.c (last_source_error): Now bool.
5692 (print_source_lines_base): Make "noprint" bool. Only open
5693 source file when last_source_visited changes.
5695 2019-08-06 Tom Tromey <tromey@adacore.com>
5697 * annotate.c (annotate_source_line): Use g_source_cache.
5698 * source-cache.c (source_cache::get_plain_source_lines): Change
5699 parameters. Populate m_offset_cache.
5700 (source_cache::ensure): New method.
5701 (source_cache::get_line_charpos): New method.
5702 (extract_lines): Move lower. Change parameters.
5703 (source_cache::get_source_lines): Move lower.
5704 * source-cache.h (class source_cache): Update comment.
5705 <get_line_charpos>: New method.
5706 <get_source_lines>: Update comment.
5707 <clear>: Clear m_offset_cache.
5708 <get_plain_source_lines>: Change parameters.
5709 <ensure>: New method
5710 <m_offset_cache>: New member.
5711 * source.c (forget_cached_source_info_for_objfile): Update.
5712 (info_source_command): Use g_source_cache.
5713 (find_source_lines, open_source_file_with_line_charpos): Remove.
5714 (print_source_lines_base, search_command_helper): Use g_source_cache.
5715 * source.h (open_source_file_with_line_charpos): Don't declare.
5716 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5717 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5720 2019-08-06 Tom Tromey <tromey@adacore.com>
5722 * source-cache.c (source_cache::get_plain_source_lines):
5723 Remove "first_line" and "last_line" parameters.
5724 (source_cache::get_source_lines): Cache plain text.
5725 * source-cache.h (class source_cache)
5726 <get_plain_source_lines>: Update.
5728 2019-08-06 Tom Tromey <tromey@adacore.com>
5730 * source-cache.c (extract_lines): No longer a method.
5731 Changed type of parameter. Include final newline.
5732 (selftests::extract_lines_test): New function.
5733 (_initialize_source_cache): Likewise.
5734 * source-cache.h (class source_cache)
5735 <extract_lines>: Don't declare.
5737 2019-08-06 Tom Tromey <tromey@adacore.com>
5739 * breakpoint.c (init_breakpoint_sal): Update.
5740 (breakpoint): Update.
5741 * breakpoint.h (struct breakpoint) <filter>: Now a
5744 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5746 * NEWS: Mention dictionary access on blocks.
5747 * python/py-block.c (blpy_getitem): New function.
5748 (block_object_as_mapping): New struct.
5749 (block_object_type): Use new struct for tp_as_mapping field.
5751 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5753 * objfiles.h (objfile): Add a comment describing partial symbols.
5755 2019-08-05 Tom Tromey <tromey@adacore.com>
5757 * compile/compile.c (_initialize_compile): Use _(), not N_().
5758 * thread.c (_initialize_thread): Use _(), not N_().
5759 * stack.c (_initialize_stack): Use _(), not N_().
5760 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5762 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5764 * dwarf2read.c (struct dw2_symtab_iterator):
5765 <want_specific_block>: Remove.
5766 <block_index>: Change type to gdb::optional.
5767 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5768 change type of BLOCK_INDEX parameter to gdb::optional.
5769 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5770 (dw2_lookup_symbol): Don't pass argument for
5771 WANT_SPECIFIC_BLOCK.
5772 (dw2_expand_symtabs_for_function): Don't pass argument for
5773 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5774 (class dw2_debug_names_iterator)
5775 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5776 parameter, change BLOCK_INDEX type to gdb::optional.
5777 <m_want_specific_block>: Remove.
5778 <m_block_index>: Change type to gdb::optional.
5779 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5780 gdb::optional. Re-write in function of gdb::optional.
5781 (dw2_debug_names_lookup_symbol): Don't pass argument for
5782 WANT_SPECIFIC_BLOCK.
5783 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5784 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5787 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5789 * NEWS: Mention changes to "info sources" command.
5791 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793 * symtab.c (filename_partial_match_opts): New struct type.
5794 (struct output_source_filename_data): New members
5795 regexp, c_regexp, partial_match.
5796 (output_source_filename): Use new members to decide to print file.
5797 (info_sources_option_defs): New variable.
5798 (make_info_sources_options_def_group, print_info_sources_header,
5799 info_sources_command_completer):
5801 (info_sources_command): Read new optional arguments.
5802 (_initialize_symtab): Update info sources help.
5804 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5806 * ada-lang.c (exception_support_info_v0): Renamed from...
5807 (default_exception_support_info): ... this. Create new
5809 (ada_has_this_exception_support): Look up catch_handlers_sym.
5810 (ada_exception_support_info_sniffer): Try v0 after default.
5812 2019-08-01 Tom Tromey <tromey@adacore.com>
5814 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5817 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5819 * s12z-tdep.c: Fix include path for s12z-opc.h.
5821 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5823 * NEWS: Require GNU make 3.82.
5825 2019-07-16 Tom Tromey <tom@tromey.com>
5827 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5830 2019-07-30 Tom Tromey <tromey@adacore.com>
5832 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5834 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5836 * printcmd.c (print_address_symbolic): Print negative offsets.
5837 (build_address_symbolic): Force signed arithmetic when computing
5840 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5842 PR/24474: Add a function to lookup static variables.
5843 * NEWS: Mention this new function.
5844 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5845 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5846 * python/python.c (python_GdbMethods): Add new function.
5848 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5850 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5851 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5852 (objfpy_lookup_static_symbol): New function.
5853 (objfile_object_methods): Add new functions.
5855 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5857 * NEWS: Mention 'set|show print frame-info'. Mention new
5858 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5859 backtrace argument. Mention that python frame filtering code
5860 is now consistent with what 'backtrace' command prints.
5862 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5864 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5866 (print_frame_info_auto, print_frame_info_source_line,
5867 print_frame_info_location, print_frame_info_source_and_location,
5868 print_frame_info_location_and_address, print_frame_info_short_location):
5870 (struct frame_print_options): New member print_frame_info.
5871 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5872 * stack.h (get_user_print_what_frame_info): New declaration.
5873 (frame_show_address): New declaration.
5874 * stack.c (print_frame_arguments_choices): New value 'presence'.
5875 (print_frame_info_auto, print_frame_info_source_line,
5876 print_frame_info_location, print_frame_info_source_and_location,
5877 print_frame_info_location_and_address, print_frame_info_short_location,
5878 print_frame_info_choices, print_frame_info_print_what): New definitions.
5879 (print_frame_args): Only print dots for args if print frame-arguments
5881 (frame_print_option_defs): New element for "frame-info".
5882 (get_user_print_what_frame_info): New function.
5883 (frame_show_address): Make non static. Move comment to stack.h.
5884 (print_frame_info_to_print_what): New function.
5885 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5886 to decide what to print.
5887 (backtrace_command_1): Handle the new print_frame_arguments_presence
5889 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5890 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5891 (py_print_frame): In non-mi mode, use LOCATION as default for
5892 print_what, similarly to frame information printed directly by
5893 backtrace command. Handle frame-info user option in non MI mode.
5895 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5897 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5898 Add case for debugging 32-bit target on 64-bit host. Revise
5901 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5903 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5904 instead of find_function_entry_range_from_pc.
5906 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5908 * stack.c (find_frame_funname): Remove code which preferred
5909 minsym over symtab sym in "certain pathological cases".
5911 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5912 parameter. Change type of "do_demangle" to bool.
5913 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5914 Pass suitable "prefer_sym_over_minsym" flag to
5915 build_address_symbolic(). Don't output "+" for negative offsets.
5916 * printcmd.c (print_address_symbolic): Update invocation of
5917 build_address_symbolic to include a "prefer_sym_over_minsym"
5919 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5920 Restrict cases in which use of minimal symbol is preferred to that
5921 of a found symbol. Update comments.
5923 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5924 for entry pc when entry pc is out of range for that FDE.
5926 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5929 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5932 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5934 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5935 this function's Python signature.
5938 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5940 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5941 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5942 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5943 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5944 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5947 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5949 * h8300-tdep.c (h8300_register_name_common): New.
5950 h8300_register_name): Use h8300_register_name_common.
5951 (h8300s_register_name): Likewise.
5952 (h8300sx_register_name): Likewise.
5953 (h8300h_register_nam): New.
5954 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5957 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5959 * arm-tdep.c (arm_skip_cmse_entry): New function.
5960 (arm_is_sgstubs_section): New function.
5961 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5963 2019-07-22 Tom Tromey <tom@tromey.com>
5965 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5968 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5970 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5973 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5975 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5976 so that GDB doesn't match any msymbols when searching in the
5978 (print_symbol_info): Print using typedef_print or type_print based
5979 on the type of the symbol. Add updated FIXME comment moved from...
5980 (_initialize_symtab): ... move and update FIXME comment to above.
5982 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5984 * NEWS: Mention adding -q option to "info types".
5985 * symtab.c (struct info_types_options): New struct.
5986 (info_types_options_defs): New variable.
5987 (make_info_types_options_def_group): New function.
5988 (info_types_command): Use gdb::option framework to parse options.
5989 (info_types_command_completer): New function.
5990 (_initialize_symtab): Extend the help text on "info types" and
5991 register command completer.
5993 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5995 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5996 (lookup_symbol_in_objfile): Change int to block_enum and add a
5997 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5999 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6001 * MAINTAINERS (Write After Approval): Add self.
6003 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6005 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6006 instruction to the dummy code region.
6008 2019-07-19 Tom Tromey <tromey@adacore.com>
6010 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6011 (ARGSUSED, PARAMS, __func__): Remove rules.
6013 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6015 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6016 * features/arm/arm-with-iwmmxt.c: Remove.
6017 * features/arm/arm-with-iwmmxt.xml: Remove.
6018 * features/arm/arm-with-m-fpa-layout.c: Remove.
6019 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6020 * features/arm/arm-with-m-vfp-d16.c: Remove.
6021 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6022 * features/arm/arm-with-m.c: Remove.
6023 * features/arm/arm-with-m.xml: Remove.
6024 * features/arm/arm-with-neon.c: Remove.
6025 * features/arm/arm-with-neon.xml: Remove.
6026 * features/arm/arm-with-vfpv2.c: Remove.
6027 * features/arm/arm-with-vfpv2.xml: Remove.
6028 * features/arm/arm-with-vfpv3.c: Remove.
6029 * features/arm/arm-with-vfpv3.xml: Remove.
6031 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6033 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6035 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6037 * arch/aarch32.c (aarch32_create_target_description): Create
6038 target descriptions using features.
6039 * arch/arm.c (arm_create_target_description)
6040 (arm_create_mprofile_target_description): Likewise.
6041 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6043 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6045 * Makefile.in: Add new files.
6046 * aarch32-tdep.c: New file.
6047 * aarch32-tdep.h: New file.
6048 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6049 Call aarch32_read_description.
6050 * arch/aarch32.c: New file.
6051 * arch/aarch32.h: New file.
6052 * arch/arm.c (arm_create_target_description)
6053 (arm_create_mprofile_target_description): New function.
6054 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6055 (arm_create_target_description)
6056 (arm_create_mprofile_target_description): New declaration.
6057 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6058 read_description functions.
6059 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6061 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6062 * arm-tdep.c (tdesc_arm_list): New variable.
6063 (arm_register_g_packet_guesses): Call create description functions.
6064 (arm_read_description) (arm_read_mprofile_description): New
6066 * arm-tdep.h (arm_read_description)
6067 (arm_read_mprofile_description): Add declaration.
6068 * configure.tgt: Add new files.
6070 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6072 * top.c (new_ui_command): Open specified terminal just once.
6074 2019-07-18 Tom Tromey <tromey@adacore.com>
6076 * symtab.c (main_name): Constify return type.
6077 * symfile.c (set_initial_language): Update.
6078 * symtab.h (main_name): Constify return type.
6080 2019-07-17 Tom Tromey <tom@tromey.com>
6082 * tui/tui-winsource.c (tui_update_source_window)
6083 (tui_update_source_window_as_is)
6084 (tui_update_source_windows_with_line): Remove return.
6085 * tui/tui-disasm.c (tui_show_disassem)
6086 (tui_show_disassem_and_update_source): Remove return.
6087 * tui/tui.c (tui_reset): Remove return.
6088 * tui/tui-wingeneral.c
6089 (tui_check_and_display_highlight_if_needed): Remove return.
6091 2019-07-17 Tom Tromey <tom@tromey.com>
6093 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6095 2019-07-17 Tom Tromey <tom@tromey.com>
6097 * tui/tui-winsource.h (struct tui_exec_info_window)
6098 (struct tui_source_window_base): Move from tui-data.h.
6099 * tui/tui-winsource.c: Move many method definitions from
6100 elsewhere. Remove "structuring" comments.
6101 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6102 (tui_source_window_base::refresh_window): Move to
6104 * tui/tui-win.c (tui_source_window_base::refresh_all)
6105 (tui_source_window_base::update_tab_width)
6106 (tui_source_window_base::set_new_height)
6107 (tui_source_window_base::do_make_visible_with_new_height): Move to
6109 * tui/tui-source.h: Update.
6110 * tui/tui-source.c (tui_source_window_base::reset): Move to
6112 * tui/tui-disasm.h: Update.
6113 * tui/tui-data.h (struct tui_exec_info_window): Move to
6115 (struct tui_source_window_base): Likewise.
6116 * tui/tui-data.c (tui_source_window_base::clear_detail)
6117 (tui_source_window_base, ~tui_source_window_base): Move to
6120 2019-07-17 Tom Tromey <tom@tromey.com>
6122 * tui/tui-win.c (tui_resize_all)
6123 (tui_source_window_base::update_tab_width)
6124 (tui_adjust_win_heights): Update.
6125 (tui_win_info::make_invisible_and_set_new_height): Rename from
6126 make_invisible_and_set_new_height.
6127 * tui/tui-data.h (struct tui_win_info)
6128 <make_invisible_and_set_new_height>: New method.
6130 2019-07-17 Tom Tromey <tom@tromey.com>
6132 * tui/tui.c: Update.
6133 * tui/tui-source.h (struct tui_source_window): Move from
6135 * tui/tui-layout.c: Update.
6136 * tui/tui-disasm.c: Update.
6137 * tui/tui-data.h (struct tui_source_window): Move to
6140 2019-07-17 Tom Tromey <tom@tromey.com>
6142 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6144 * tui/tui-data.h (struct tui_disasm_window): Move to
6147 2019-07-17 Tom Tromey <tom@tromey.com>
6149 * tui/tui-regs.h (struct tui_data_item_window): Move from
6151 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6152 * tui/tui-data.h (struct tui_data_item_window): Move to
6154 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6156 2019-07-17 Tom Tromey <tom@tromey.com>
6158 * tui/tui.c: Update.
6159 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6160 (tui_cmd_window::max_height): Move to tui-command.c.
6161 * tui/tui-layout.c: Update.
6162 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6163 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6165 * tui/tui-command.h (struct tui_cmd_window): Move from
6167 * tui/tui-command.c: Remove "structuring" comments.
6168 (tui_cmd_window::clear_detail)
6169 (tui_cmd_window::do_make_visible_with_new_height)
6170 (tui_cmd_window::max_height): Move from elsewhere.
6172 2019-07-17 Tom Tromey <tom@tromey.com>
6174 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6176 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6177 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6179 2019-07-17 Tom Tromey <tom@tromey.com>
6181 * tui/tui.c: Update.
6182 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6184 * tui/tui-windata.h: Remove file.
6185 * tui/tui-windata.c: Remove file.
6186 * tui/tui-win.c (tui_data_window::set_new_height)
6187 (tui_data_window::do_make_visible_with_new_height): Move to
6189 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6190 * tui/tui-regs.c: Remove "structuring" comments.
6191 (tui_data_window::first_data_item_displayed)
6192 (tui_data_window::delete_data_content_windows)
6193 (tui_data_window::erase_data_content)
6194 (tui_data_window::display_all_data)
6195 (tui_data_window::refresh_all)
6196 (tui_data_window::do_scroll_vertical)
6197 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6198 (tui_data_window::do_make_visible_with_new_height)
6199 (tui_data_window::refresh_window): Move from elsewhere.
6200 (_initialize_tui_regs): Move to end of file.
6201 * tui/tui-layout.c: Update.
6202 * tui/tui-hooks.c: Update.
6203 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6204 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6206 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6208 2019-07-17 Tom Tromey <tom@tromey.com>
6210 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6213 2019-07-17 Tom Tromey <tom@tromey.com>
6215 * tui/tui-win.c (tui_source_window_base::set_new_height)
6216 (tui_source_window_base::do_make_visible_with_new_height): Use
6217 m_has_locator field directly.
6218 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6220 (struct tui_source_window_base) <has_locator>: Likewise.
6222 2019-07-17 Tom Tromey <tom@tromey.com>
6224 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6226 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6228 * tui/tui-win.c (tui_source_window_base::set_new_height)
6229 (tui_source_window_base::set_new_height)
6230 (make_invisible_and_set_new_height)
6231 (tui_source_window_base::do_make_visible_with_new_height)
6232 (tui_source_window_base::do_make_visible_with_new_height):
6234 * tui/tui-layout.c (show_source_disasm_command, show_data)
6235 (show_source_or_disasm_and_command): Update.
6236 * tui/tui-layout.c (show_layout): Update.
6238 2019-07-17 Tom Tromey <tom@tromey.com>
6240 * tui/tui-layout.c (make_data_window): Remove.
6241 (show_data): Unify creation and re-initialization cases.
6243 2019-07-17 Tom Tromey <tom@tromey.com>
6245 * tui/tui-layout.c (make_source_window, make_disasm_window):
6247 (show_data): Unify creation and re-initialization cases.
6249 2019-07-17 Tom Tromey <tom@tromey.com>
6251 * tui/tui-layout.c (make_command_window): Remove.
6252 (show_source_disasm_command, show_source_or_disasm_and_command):
6253 Unify creation and re-initialization cases.
6255 2019-07-17 Tom Tromey <tom@tromey.com>
6257 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6258 creation and re-initialization cases.
6260 2019-07-17 Tom Tromey <tom@tromey.com>
6262 * tui/tui-regs.c (tui_get_register): Return void.
6264 2019-07-17 Tom Tromey <tom@tromey.com>
6266 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6269 2019-07-17 Tom Tromey <tom@tromey.com>
6271 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6274 2019-07-17 Tom Tromey <tom@tromey.com>
6276 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6277 * tui/tui-regs.c (tui_reg_layout): New function.
6278 (tui_show_registers, tui_reg_command): Use it.
6279 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6280 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6282 (tui_layout_command): Remove.
6284 2019-07-17 Tom Tromey <tom@tromey.com>
6286 * tui/tui-layout.h (tui/tui-layout): Return void.
6287 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6289 2019-07-17 Tom Tromey <tom@tromey.com>
6291 * tui/tui-layout.c (show_source_disasm_command, show_data):
6293 (reset_locator): Remove.
6294 (show_source_or_disasm_and_command): Update.
6296 2019-07-17 Tom Tromey <tom@tromey.com>
6298 * tui/tui-source.c (tui_source_window_base::reset): Remove
6300 * tui/tui-layout.c (make_command_window, make_source_window)
6301 (make_disasm_window, make_data_window)
6302 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6303 (reset_locator, show_source_or_disasm_and_command): Update.
6304 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6306 (struct tui_source_window_base) <reset>: Likewise.
6308 2019-07-17 Tom Tromey <tom@tromey.com>
6310 * tui/tui-layout.c (show_source_disasm_command): Use
6312 (reset_locator): New function.
6313 (init_and_make_win): Remove.
6314 (show_source_or_disasm_and_command): Use reset_locator.
6316 2019-07-17 Tom Tromey <tom@tromey.com>
6318 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6320 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6322 * tui/tui-source.c (tui_source_window_base::reset): New method.
6323 * tui/tui-layout.c (make_command_window): Don't call
6325 (make_source_window, make_disasm_window): Don't call
6326 make_source_or_disasm_window.
6327 (make_data_window): Don't call init_and_make_win. Change calling
6329 (show_source_disasm_command, show_data): Simplify.
6330 (make_source_or_disasm_window): Remove.
6331 (show_source_or_disasm_and_command): Simplify.
6332 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6333 (struct tui_source_window_base) <reset>: Likewise.
6334 <execution_info>: Remove initializer.
6335 * tui/tui-data.c (tui_source_window_base): Initialize
6338 2019-07-17 Tom Tromey <tom@tromey.com>
6340 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6343 2019-07-17 Tom Tromey <tom@tromey.com>
6345 * tui/tui.c (tui_rl_other_window): Update.
6346 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6347 superclass method first. Always iterate over regs_content.
6348 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6350 * tui/tui-win.c (tui_set_focus_command): Update.
6352 2019-07-17 Tom Tromey <tom@tromey.com>
6354 * tui/tui-win.c (tui_set_focus_command): Rename from
6355 tui_set_focus. Call tui_enable.
6356 (tui_set_focus_command): Remove.
6358 2019-07-17 Tom Tromey <tom@tromey.com>
6360 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6362 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6364 (tui_data_window::refresh_window): Call refresh_window on data
6365 items. Always call superclass refresh_window.
6366 (tui_win_info::refresh): Remove.
6367 (tui_source_window_base::refresh_window): Update.
6368 (tui_refresh_all): Update.
6369 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6371 (show_source_or_disasm_and_command): Likewise.
6372 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6373 (struct tui_source_window_base) <refresh>: Likewise.
6375 2019-07-17 Tom Tromey <tom@tromey.com>
6377 * tui/tui-winsource.c (tui_clear_source_content)
6378 (tui_show_source_content): Update.
6379 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6380 whether content is empty.
6381 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6384 2019-07-17 Tom Tromey <tom@tromey.com>
6386 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6388 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6389 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6391 2019-07-17 Tom Tromey <tom@tromey.com>
6393 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6394 (struct tui_data_item_window): Update.
6396 2019-07-17 Tom Tromey <tom@tromey.com>
6398 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6399 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6402 2019-07-17 Tom Tromey <tom@tromey.com>
6404 * tui/tui-winsource.h (tui_erase_source_content)
6405 (tui_clear_source_content): Remove "display_prompt" parameter.
6406 * tui/tui-winsource.c (tui_update_source_window_as_is)
6407 (tui_update_source_windows_with_addr): Update.
6408 (tui_clear_source_content): Remove "display_prompt" parameter.
6409 (tui_erase_source_content): Likewise. Simplify.
6410 (tui_show_source_content): Update.
6411 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6412 * tui/tui-stack.c (tui_show_frame_info): Update.
6413 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6416 2019-07-17 Tom Tromey <tom@tromey.com>
6418 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6419 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6421 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6424 2019-07-17 Tom Tromey <tom@tromey.com>
6426 * tui/tui-winsource.c (tui_clear_source_content)
6427 (tui_show_source_content, tui_show_exec_info_content)
6428 (tui_clear_exec_info_content): Update.
6429 * tui/tui-stack.c (tui_show_locator_content): Update.
6430 (tui_show_frame_info): Update.
6431 * tui/tui-source.h (tui_source_window): Don't declare.
6432 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6433 from tui_source_is_displayed.
6434 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6436 (struct tui_source_window_base) <content_in_use>: New field. Now
6438 (struct tui_source_window) <showing_source_p>: New method.
6439 (TUI_SRC_WIN): Change cast.
6440 * tui/tui-data.c (tui_initialize_static_data): Update.
6442 2019-07-17 Tom Tromey <tom@tromey.com>
6444 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6446 * tui/tui-source.c (tui_source_window::location_matches_p): New
6448 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6450 * tui/tui-data.h (struct tui_source_window_base)
6451 <location_matches_p>: New method.
6452 (struct tui_source_window, struct tui_disasm_window)
6453 <location_matches_p>: Likewise.
6455 2019-07-17 Tom Tromey <tom@tromey.com>
6457 * tui/tui-win.c (tui_set_win_height_command): Rename from
6459 (tui_set_win_height_command): Remove.
6461 2019-07-17 Tom Tromey <tom@tromey.com>
6463 * tui/tui-source.c (tui_source_window): New constructor. Add
6465 (~tui_source_window): New destructor.
6466 (tui_source_window::style_changed): New method.
6467 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6468 (tui_attach_detach_observers): Update.
6469 * tui/tui-data.h (struct tui_source_window): Make constructor not
6470 inline. Add destructor.
6471 (struct tui_source_window) <style_changed>: New method.
6472 <m_observable>: New member.
6474 2019-07-17 Tom Tromey <tom@tromey.com>
6476 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6477 * tui/tui-win.c (tui_resize_all): Fix typo.
6479 2019-07-17 Tom Tromey <tom@tromey.com>
6481 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6482 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6483 (tui_refresh_all): Remove "list" parameter. Use foreach.
6484 * tui/tui-win.c (window_name_completer): Use foreach.
6485 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6486 (update_tab_width): Likewise.
6487 * tui/tui-layout.c (show_layout): Update.
6488 * tui/tui-data.h (class tui_window_iterator): New.
6489 (struct all_tui_windows): New.
6490 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6492 2019-07-17 Tom Tromey <tom@tromey.com>
6494 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6495 parameter. Don't reference globals.
6496 (tui_reg_command): Update.
6498 2019-07-17 Tom Tromey <tom@tromey.com>
6500 * tui/tui-regs.c (tui_show_registers): Simplify.
6502 2019-07-17 Tom Tromey <tom@tromey.com>
6504 * tui/tui-regs.c (tui_show_registers): Update.
6505 (tui_show_register_group): Add win_info parameter.
6507 2019-07-17 Tom Tromey <tom@tromey.com>
6509 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6510 Rename from tui_display_reg_element_at_line.
6511 (tui_data_window::display_registers_from_line): Update.
6512 * tui/tui-data.h (struct tui_data_window)
6513 <display_reg_element_at_line>: New method.
6515 2019-07-17 Tom Tromey <tom@tromey.com>
6517 * tui/tui-regs.h (tui_display_registers_from)
6518 (tui_display_registers_from_line): Don't declare.
6519 * tui/tui-windata.c (tui_data_window::display_all_data)
6520 (tui_data_window::refresh_all)
6521 (tui_data_window::do_scroll_vertical): Update.
6522 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6523 from tui_display_registers_from.
6524 (tui_display_reg_element_at_line): Update.
6525 (tui_data_window::display_registers_from_line): Rename from
6526 tui_display_registers_from_line.
6527 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6528 display_registers_from_line>: New methods.
6530 2019-07-17 Tom Tromey <tom@tromey.com>
6532 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6533 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6534 from tui_erase_data_content.
6535 (tui_data_window::display_all_data)
6536 (tui_data_window::refresh_all)
6537 (tui_data_window::do_scroll_vertical): Update.
6538 * tui/tui-regs.c (tui_show_registers): Update.
6539 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6542 2019-07-17 Tom Tromey <tom@tromey.com>
6544 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6547 (tui_data_window::delete_data_content_windows): Rename from
6548 tui_delete_data_content_windows.
6549 (tui_data_window::display_all_data)
6550 (tui_data_window::do_scroll_vertical): Update.
6551 * tui/tui-data.h (struct tui_data_window)
6552 <delete_data_content_windows>: New method.
6554 2019-07-17 Tom Tromey <tom@tromey.com>
6556 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6557 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6559 2019-07-17 Tom Tromey <tom@tromey.com>
6561 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6562 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6563 from tui_display_all_data.
6565 (tui_data_window::do_make_visible_with_new_height): Update.
6566 * tui/tui-regs.c (tui_show_registers): Update.
6567 * tui/tui-layout.c (tui_set_layout): Update.
6568 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6571 2019-07-17 Tom Tromey <tom@tromey.com>
6573 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6574 * tui/tui-windata.c (tui_display_data_from): Remove.
6575 (tui_data_window::refresh_all): Update.
6577 2019-07-17 Tom Tromey <tom@tromey.com>
6579 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6580 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6581 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6582 tui_display_registers_from_line.
6583 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6584 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6585 "force_display" parameter.
6587 2019-07-17 Tom Tromey <tom@tromey.com>
6589 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6591 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6592 Rename from tui_first_reg_element_no_inline.
6593 (tui_display_reg_element_at_line)
6594 (tui_display_registers_from_line): Update.
6595 * tui/tui-data.h (struct tui_data_window)
6596 <first_reg_element_no_inline>: New method.
6598 2019-07-17 Tom Tromey <tom@tromey.com>
6600 * tui/tui-windata.c (tui_display_data_from)
6601 (tui_data_window::do_scroll_vertical): Update.
6602 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6603 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6604 Rename from tui_line_from_reg_element_no.
6605 (tui_display_registers_from_line): Update.
6606 * tui/tui-data.h (struct tui_data_window)
6607 <line_from_reg_element_no>: New method.
6609 2019-07-17 Tom Tromey <tom@tromey.com>
6611 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6612 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6613 tui_last_regs_line_no.
6614 (tui_display_reg_element_at_line)
6615 (tui_display_registers_from_line): Update.
6616 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6619 2019-07-17 Tom Tromey <tom@tromey.com>
6622 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6623 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6624 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6625 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6626 (tui_update_breakpoint_info): Likewise.
6627 * tui/tui-hooks.c (tui_event_create_breakpoint)
6628 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6631 2019-07-17 Tom Tromey <tom@tromey.com>
6633 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6635 2019-07-17 Tom Tromey <tom@tromey.com>
6637 * tui/tui-winsource.c (tui_update_source_window_as_is)
6638 (tui_update_source_windows_with_addr): Update.
6639 * tui/tui-source.h (tui_set_source_content)
6640 (tui_show_symtab_source): Add "win_info" parameter.
6641 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6643 (tui_show_symtab_source): Likewise.
6645 2019-07-17 Tom Tromey <tom@tromey.com>
6647 * tui/tui-wingeneral.c
6648 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6650 2019-07-17 Tom Tromey <tom@tromey.com>
6652 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6653 (struct tui_cmd_window) <can_scroll>: New method.
6654 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6657 2019-07-17 Tom Tromey <tromey@adacore.com>
6659 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6660 do_field_signed>: Rename. Change type of "value".
6661 * ui-out.c (ui_out::field_signed): Rename from field_int.
6662 Change type of "value".
6663 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6665 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6666 do_field_int. Change type of "value".
6667 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6668 do_field_int. Change type of "value".
6669 * tracepoint.c (trace_status_mi, tfind_1)
6670 (print_one_static_tracepoint_marker): Update.
6671 * thread.c (print_thread_info_1, print_selected_thread_frame):
6673 * stack.c (print_frame, print_frame_info): Update.
6674 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6676 * source.c (print_source_lines_base): Update.
6677 * skip.c (info_skip_command): Update.
6678 * record-btrace.c (btrace_ui_out_decode_error)
6679 (btrace_call_history_src_line): Update.
6680 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6682 * progspace.c (print_program_space): Update.
6683 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6684 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6685 do_field_int. Change type of "value".
6686 * mi/mi-out.c (mi_ui_out::do_table_begin)
6687 (mi_ui_out::do_table_header): Update.
6688 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6690 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6691 (mi_cmd_data_list_changed_registers, output_register)
6692 (mi_cmd_data_read_memory, mi_load_progress)
6693 (mi_cmd_trace_frame_collected): Update.
6694 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6696 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6697 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6698 (mi_cmd_var_list_children, varobj_update_one): Update.
6699 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6700 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6701 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6702 * inferior.c (print_inferior): Update.
6703 * gdb_bfd.c (print_one_bfd): Update.
6704 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6706 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6707 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6708 do_field_int. Change type of "value".
6709 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6710 do_field_int. Change type of "value".
6711 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6712 (print_one_breakpoint_location, print_it_catch_fork)
6713 (print_one_catch_fork, print_it_catch_vfork)
6714 (print_one_catch_vfork, print_it_catch_solib)
6715 (print_it_catch_exec, print_it_ranged_breakpoint)
6716 (print_mention_watchpoint, print_mention_masked_watchpoint)
6717 (bkpt_print_it, update_static_tracepoint): Update.
6718 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6719 * break-catch-syscall.c (print_it_catch_syscall): Update.
6720 * ada-tasks.c (print_ada_task_info): Update.
6721 * ada-lang.c (print_it_exception, print_mention_exception):
6724 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6726 PR breakpoints/24541
6727 * gdbarch.c: Regenerate.
6728 * gdbarch.h: Regenerate.
6729 * gdbarch.sh: Adjust return type and parameter types for
6730 'stap_adjust_register'.
6731 (i386_stap_adjust_register): Adjust signature and return new
6733 * stap-probe.c (stap_parse_register_operand): Adjust use of
6734 'gdbarch_stap_adjust_register'.
6736 2019-07-17 Tom Tromey <tromey@adacore.com>
6738 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6740 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6742 (struct s390_process_info): Add initializers.
6743 (s390_add_process): Use new.
6744 (s390_linux_nat_target::low_forget_process): Use delete.
6745 (s390_linux_nat_target::low_new_fork)
6746 (s390_linux_nat_target::stopped_by_watchpoint)
6747 (s390_linux_nat_target::low_prepare_to_resume)
6748 (s390_linux_nat_target::insert_watchpoint)
6749 (s390_linux_nat_target::insert_hw_breakpoint)
6750 (s390_linux_nat_target::remove_watchpoint)
6751 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6753 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6755 * aarch64-fbsd-nat.c: Include regcache.h.
6756 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6758 (aarch64_fbsd_nat_target::fetch_registers)
6759 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6761 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6763 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6765 * fbsd-nat.c: Include gdbarch.h.
6767 2019-07-15 Tom Tromey <tromey@adacore.com>
6769 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6771 2019-07-15 Tom Tromey <tromey@adacore.com>
6773 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6774 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6775 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6776 * cli-out.c (cli_ui_out::do_field_int): New method.
6777 * ui-out.c (ui_out::field_unsigned): New method.
6778 * symfile.c (generic_load): Use field_unsigned.
6779 (print_transfer_performance): Likewise.
6780 * record-btrace.c (ui_out_field_uint): Remove.
6781 (btrace_call_history_insn_range, btrace_call_history): Use
6783 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6785 * ui-out.h (class ui_out) <field_unsigned>: New method.
6786 <do_field_unsigned>: Likewise.
6788 2019-07-15 Tom Tromey <tromey@adacore.com>
6790 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6791 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6792 * target.c (flash_erase_command): Use field_string.
6793 * infrun.c (print_signal_received_reason): Use field_string.
6794 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6795 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6797 * ada-tasks.c (print_ada_task_info): Use field_string.
6799 2019-07-15 Tom Tromey <tromey@adacore.com>
6801 * target.c (flash_erase_command): Use field_core_addr.
6802 * symfile.c (generic_load): Use field_core_addr.
6803 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6804 Use field_core_addr.
6805 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6808 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6810 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6811 value if its desired type is smaller than a CORE_ADDR and signed.
6813 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6815 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6816 of changes to field names, and use new is_reference field to
6817 decide if a property is a reference or not.
6818 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6820 (struct dwarf2_property_baton): Update header comment, rename
6821 'referenced_type' to 'property_type' and update comments.
6822 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6823 default property type, store in property baton, update to take
6824 accound of renamed field.
6825 (read_func_scope): Update call to attr_to_dynamic_prop.
6826 (read_array_type): Likewise.
6827 (dwarf2_per_cu_addr_sized_int_type): New function.
6828 (read_subrange_index_type): Move type finding code to
6829 dwarf2_per_cu_addr_sized_int_type.
6830 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6831 (dwarf2_per_cu_addr_type): New function.
6832 (set_die_type): Update calls to attr_to_dynamic_prop.
6834 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6836 * dwarf2read.c (read_subrange_index_type): New function.
6837 (read_subrange_type): Move code into new function and call it.
6838 * gdbtypes.c (create_range_type): Add some asserts.
6840 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6842 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6843 update return statements.
6844 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6845 declaration, and update comment to match.
6846 * gdbtypes.c (resolve_dynamic_array): Update call to
6847 dwarf2_evaluate_property to match new return type.
6849 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6851 * valarith.c (value_subscripted_rvalue): Change lowerbound
6852 parameter type from int to LONGEST.
6853 * value.h (value_subscripted_rvalue): Likewise in declaration.
6855 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6857 * cli/cli-utils.c (info_print_command_completer): New function.
6858 * cli/cli-utils.h: Add 'completer.h' include, and forward
6859 declaration for 'struct cmd_list_element'.
6860 (info_print_command_completer): Declare.
6861 * stack.c (_initialize_stack): Add completer for 'info locals' and
6863 * symtab.c (_initialize_symtab): Add completer for 'info
6864 variables' and 'info functions'.
6865 * NEWS: Mention completion for additional info commands.
6867 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6869 * cli/cli-utils.c (extract_info_print_args): Delete.
6870 (extract_arg_maybe_quoted): Delete.
6871 (info_print_options_defs): New variable.
6872 (make_info_print_options_def_group): New function.
6873 (extract_info_print_options): Define new function.
6874 * cli/cli-utils.h (extract_info_print_args): Delete.
6875 (struct info_print_options): New structure.
6876 (extract_info_print_options): Declare new function.
6877 * stack.c (info_locals_command): Update to use new
6878 extract_info_print_options, also add a header comment.
6879 (info_args_command): Likewise.
6880 * symtab.c (info_variables_command): Likewise.
6881 (info_functions_command): Likewise.
6883 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6885 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6886 to extract string arguments.
6887 * common/common-utils.c (extract_string_maybe_quoted): New function.
6888 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6890 2019-07-11 Tom Tromey <tromey@adacore.com>
6892 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6893 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6894 * top.h (gdbinit): Don't declare.
6895 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6897 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6898 * top.c (gdb_init): Don't call init_cli_cmds.
6900 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6902 2019-07-11 Tom Tromey <tromey@adacore.com>
6904 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6905 after it has been moved.
6907 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6909 * valops.c (value_must_coerce_to_target): Change return type to
6911 * value.h (value_must_coerce_to_target): Likewise.
6913 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6915 * breakpoint.c (is_hardware_watchpoint): Remove
6916 forward-declaration.
6917 (is_masked_watchpoint): Change return type to bool.
6918 (is_tracepoint): Likewise.
6919 (is_breakpoint): Likewise.
6920 (is_hardware_watchpoint): Likewise.
6921 (is_watchpoint): Likewise.
6922 (is_no_memory_software_watchpoint): Likewise.
6923 (is_catchpoint): Likewise.
6924 (breakpoint_1): Make FILTER parameter's return type bool.
6925 is_masked_watchpoint): Change return type to bool.
6926 (save_breakpoints): Make FILTER parameter's return type bool.
6927 * breakpoint.h (is_breakpoint): Change return type to bool.
6928 (is_watchpoint): Likewise.
6929 (is_catchpoint): Likewise.
6930 (is_tracepoint): Likewise.
6932 2019-07-10 Tom Tromey <tom@tromey.com>
6934 * defs.h: Don't include gdbarch.h.
6935 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6936 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6937 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6938 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6939 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6940 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6941 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6942 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6943 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6944 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6945 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6946 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6947 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6948 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6949 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6950 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6951 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6952 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6953 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6954 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6955 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6956 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6957 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6958 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6959 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6960 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6961 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6963 2019-07-10 Tom Tromey <tromey@adacore.com>
6965 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6966 * breakpoint.c (init_ada_exception_breakpoint): Register as
6968 (print_one_breakpoint_location, print_one_breakpoint): Use
6969 is_ada_exception_catchpoint.
6970 * ada-lang.c (class ada_catchpoint_location): Pass
6971 bp_loc_software_breakpoint to bp_location constructor.
6972 (is_ada_exception_catchpoint): New function.
6974 2019-07-10 Tom Tromey <tromey@adacore.com>
6976 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6978 (struct arm_exidx_entry): New method operator<.
6979 (struct arm_exidx_data) <section_maps>: Change type.
6980 (arm_exidx_data_free): Remove.
6981 (arm_exidx_data_key): Change type. Move lower.
6982 (arm_exidx_new_objfile): Update.
6983 (arm_compare_exidx_entries): Remove.
6984 (arm_find_exidx_entry, _initialize_arm_tdep)
6986 2019-07-10 Tom Tromey <tromey@adacore.com>
6988 * solib-spu.c (ocl_program_data_key): Change type.
6989 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6992 2019-07-10 Tom Tromey <tromey@adacore.com>
6994 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6995 (struct solib_aix_inferior_data) <library_list>: Change type.
6996 (solib_aix_inferior_data_handle): Change type.
6997 (get_solib_aix_inferior_data): Update.
6998 (solib_aix_free_library_list): Remove.
6999 (library_list_start_library): Update.
7000 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7002 (solib_aix_get_library_list)
7003 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7004 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7006 2019-07-10 Tom Tromey <tromey@adacore.com>
7008 * solib-dsbt.c (struct dsbt_info): Add initializers.
7009 (solib_dsbt_pspace_data): Change type.
7010 (dsbt_pspace_data_cleanup): Remove.
7011 (get_dsbt_info, _initialize_dsbt_solib): Update.
7013 2019-07-10 Tom Tromey <tromey@adacore.com>
7015 * spu-tdep.c (spu_overlay_data): Change type.
7016 (spu_get_overlay_table, spu_overlay_new_objfile)
7017 (_initialize_spu_tdep): Update.
7019 2019-07-10 Tom Tromey <tromey@adacore.com>
7021 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7023 (dbx_objfile_data_key): Change type and declare later.
7024 (DBX_SYMFILE_INFO): Rewrite.
7025 * dbxread.c (dbx_objfile_data_key): Change type.
7026 (dbx_symfile_init): Update.
7027 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7028 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7029 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7031 2019-07-10 Tom Tromey <tromey@adacore.com>
7033 * jit.c (jit_program_space_key): Change type. Move lower.
7034 (get_jit_program_space_data): Update.
7035 (jit_program_space_data_cleanup): Remove.
7036 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7038 (struct jit_program_space_data): Add initializers.
7040 2019-07-10 Tom Tromey <tromey@adacore.com>
7042 * solib-darwin.c (struct darwin_info): Add initializers.
7043 (solib_darwin_pspace_data): Change type.
7044 (darwin_pspace_data_cleanup): Remove.
7045 (get_darwin_info, _initialize_darwin_solib): Update.
7047 2019-07-10 Tom Tromey <tromey@adacore.com>
7049 * remote-sim.c (struct sim_inferior_data): Add initializers,
7050 constructor, and destructor.
7051 (sim_inferior_data_key): Change type. Move lower.
7052 (check_for_duplicate_sim_descriptor): Update.
7053 (get_sim_inferior_data): Use new. Update.
7054 (~sim_inferior_data_cleanup): Rename from
7055 sim_inferior_data_cleanup. Simplify.
7056 (gdbsim_close_inferior, simulator_command)
7057 (sim_command_completer, _initialize_remote_sim): Update.
7058 (next_pid, INITIAL_PID): Move earlier.
7060 2019-07-10 Tom Tromey <tromey@adacore.com>
7062 * python/python-internal.h (create_thread_object): Return
7064 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7065 * python/py-inferior.c (struct threadlist_entry): Add
7067 <thread_obj>: Now a gdbpy_ref.
7068 (thread_to_thread_object): Update.
7069 (add_thread_object): Use new.
7070 (delete_thread_object): Use delete.
7071 (infpy_threads): Update.
7072 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7075 2019-07-10 Tom Tromey <tromey@adacore.com>
7077 * valops.c (value_cast): Specialize error message for Ada.
7079 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7081 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7083 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7085 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7086 bpstat_should_step): Return bool, adjust comments.
7087 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7088 bpstat_should_step): Likewise.
7090 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7092 * features/Makefile: Use feature target descriptions for Arm.
7093 * features/arm/arm-core.c: Generate new file.
7094 * features/arm/arm-fpa.c: Likewise.
7095 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7096 * features/arm/arm-m-profile.c: Likewise.
7097 * features/arm/arm-vfpv2.c: Likewise.
7098 * features/arm/arm-vfpv3.c: Likewise.
7099 * features/arm/xscale-iwmmxt.c: Likewise.
7100 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7102 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7104 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7107 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7109 * features/aarch64-pauth.c: Regenerate.
7111 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7113 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7115 (bpstat_what): Use false instead of 0.
7117 2019-07-09 Pedro Alves <palves@redhat.com>
7119 * break-catch-throw.c (is_exception_catchpoint): New.
7120 * breakpoint.c (print_one_breakpoint_location): New parameter
7121 'raw_loc'. Handle it. Use
7122 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7123 looking at the breakpoint's type.
7124 (print_one_breakpoint): If handling "maint info breakpoints", also
7125 print locations of exception catchpoints.
7126 * breakpoint.h (is_exception_catchpoint): Declare.
7128 2019-07-09 Pedro Alves <palves@redhat.com>
7130 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7132 (allocate_location_exception_catchpoint): New.
7133 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7134 (initialize_throw_catchpoint_ops): Install
7135 allocate_location_exception_catchpoint as allocate_location
7137 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7138 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7140 (breakpoint_address_is_meaningful): Delete.
7141 (bl_address_is_meaningful): New.
7142 (breakpoint_locations_match): Adjust comment.
7143 (bp_location_from_bp_type): New, factored out of...
7144 (bp_location::bp_location(breakpoint *)): ... this.
7145 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7147 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7148 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7149 breakpoint_address_is_meaningful.
7150 (bp_locations_compare): Adjust comment.
7151 (update_global_location_list): Use bl_address_is_meaningful
7152 instead of breakpoint_address_is_meaningful.
7153 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7155 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7156 * python/py-breakpoint.c (bppy_get_location): No longer check
7157 whether location is null.
7159 2019-07-09 Pedro Alves <palves@redhat.com>
7162 * breakpoint.c (print_one_breakpoint_location): Remove
7163 single-location assert.
7165 2019-07-09 Tom Tromey <tom@tromey.com>
7167 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7168 * configure: Rebuild.
7169 * configure.ac: Change common to gdbsupport.
7170 * gdbsupport: Rename from common.
7171 * acinclude.m4: Change common to gdbsupport.
7172 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7173 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7175 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7176 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7177 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7178 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7179 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7180 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7181 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7182 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7183 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7184 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7185 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7186 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7187 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7188 coff-pe-read.c, command.h, compile/compile-c-support.c,
7189 compile/compile-c.h, compile/compile-cplus-symbols.c,
7190 compile/compile-cplus-types.c, compile/compile-cplus.h,
7191 compile/compile-loc2c.c, compile/compile.c, completer.c,
7192 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7193 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7194 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7195 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7196 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7197 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7198 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7199 features/aarch64-core.c, features/aarch64-fpu.c,
7200 features/aarch64-pauth.c, features/aarch64-sve.c,
7201 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7202 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7203 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7204 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7205 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7206 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7207 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7208 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7209 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7210 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7211 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7212 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7213 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7214 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7215 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7216 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7217 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7218 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7219 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7220 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7221 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7222 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7223 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7224 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7225 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7226 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7227 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7228 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7229 minsyms.c, mips-linux-tdep.c, namespace.h,
7230 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7231 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7232 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7233 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7234 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7235 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7236 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7237 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7238 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7239 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7240 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7241 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7242 procfs.c, producer.c, progspace.h, psymtab.h,
7243 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7244 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7245 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7246 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7247 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7248 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7249 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7250 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7251 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7252 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7253 target-memory.c, target.c, target.h, target/waitstatus.c,
7254 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7255 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7256 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7257 unittests/array-view-selftests.c,
7258 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7259 unittests/common-utils-selftests.c,
7260 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7261 unittests/format_pieces-selftests.c,
7262 unittests/function-view-selftests.c,
7263 unittests/lookup_name_info-selftests.c,
7264 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7265 unittests/mkdir-recursive-selftests.c,
7266 unittests/observable-selftests.c,
7267 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7268 unittests/parse-connection-spec-selftests.c,
7269 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7270 unittests/scoped_fd-selftests.c,
7271 unittests/scoped_mmap-selftests.c,
7272 unittests/scoped_restore-selftests.c,
7273 unittests/string_view-selftests.c, unittests/style-selftests.c,
7274 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7275 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7276 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7277 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7278 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7279 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7281 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7283 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7285 (decode_digits_ordinary): Set explicit_line field in sal.
7286 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7287 symtab_and_line that was set on an explicit line number in
7288 assembler code. Do always update the recorded symtab and line if
7289 we do skip the prologue.
7291 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7293 * breakpoint.c (set_breakpoint_location_function): Remove
7294 explicit_loc parameter.
7295 (momentary_breakpoint_from_master): Update call to
7296 set_breakpoint_location_function.
7297 (add_location_to_breakpoint): Likewise.
7299 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7301 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7302 required features based on default bfd type when no specific bfd
7305 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7307 * NEWS: Mention that GDB printf and eval commands can now print
7308 C-style and Ada-style convenience var strings without
7309 calling the inferior.
7310 * printcmd.c (printf_c_string): Locally print GDB internal var
7311 instead of transiting via the inferior.
7312 (printf_wide_c_string): Likewise.
7314 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7316 PR breakpoints/25011
7317 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7319 2019-07-04 Tom Tromey <tom@tromey.com>
7322 * tui/tui-winsource.c (tui_clear_source_content): Update.
7323 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7324 (tui_update_breakpoint_info): Update.
7325 (tui_set_exec_info_content): Update.
7326 * tui/tui-source.c (tui_set_source_content_nil): Update.
7327 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7329 * tui/tui-data.h (enum tui_bp_flag): New.
7330 (tui_bp_flags): New enum flags type.
7331 (struct tui_source_element) <break_mode>: Change type. Rename
7333 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7334 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7336 * tui/tui-winsource.h: Fix comment.
7338 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7340 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7341 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7342 (store_fpregs_to_thread)
7343 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7344 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7345 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7346 (IWMMXT_REGS_SIZE): Add define.
7347 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7348 (fetch_vfp_regs, store_vfp_regs)
7349 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7350 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7352 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7354 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7356 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7357 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7358 (ARM_INT_REGISTER_SIZE): ...to this.
7359 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7360 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7361 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7362 (arm_linux_collect_gregset, supply_nwfpe_register)
7363 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7365 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7366 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7367 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7368 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7369 (arm_return_in_memory, arm_store_return_value)
7370 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7371 (arm_record_ld_st_multiple): Likewise.
7372 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7373 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7375 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7377 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7378 AARCH64_DISPLACED_MODIFIED_INSNS.
7379 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7380 (aarch64_displaced_step_copy_insn): Likewise.
7381 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7382 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7383 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7384 ARM_DISPLACED_MODIFIED_INSNS.
7385 * arm-tdep.c (arm_gdbarch_init): Likewise.
7386 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7387 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7388 (struct arm_displaced_step_closure): Use
7389 ARM_DISPLACED_MODIFIED_INSNS.
7391 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7393 * features/Makefile: Remove unused xml files.
7394 * features/aarch64.xml: Remove.
7395 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7396 * features/i386/amd64-avx-avx512.xml: Remove.
7397 * features/i386/amd64-avx-linux.xml: Remove.
7398 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7399 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7400 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7401 * features/i386/amd64-avx-mpx.xml: Remove.
7402 * features/i386/amd64-avx.xml: Remove.
7403 * features/i386/amd64-linux.xml: Remove.
7404 * features/i386/amd64-mpx-linux.xml: Remove.
7405 * features/i386/amd64-mpx.xml: Remove.
7406 * features/i386/amd64.xml: Remove.
7407 * features/i386/i386-avx-avx512-linux.xml: Remove.
7408 * features/i386/i386-avx-avx512.xml: Remove.
7409 * features/i386/i386-avx-linux.xml: Remove.
7410 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7411 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7412 * features/i386/i386-avx-mpx-linux.xml: Remove.
7413 * features/i386/i386-avx-mpx.xml: Remove.
7414 * features/i386/i386-avx.xml: Remove.
7415 * features/i386/i386-linux.xml: Remove.
7416 * features/i386/i386-mmx-linux.xml: Remove.
7417 * features/i386/i386-mmx.xml: Remove.
7418 * features/i386/i386-mpx-linux.xml: Remove.
7419 * features/i386/i386-mpx.xml: Remove.
7420 * features/i386/i386.xml: Remove.
7421 * features/i386/x32-avx-avx512-linux.xml: Remove.
7422 * features/i386/x32-avx-linux.xml: Remove.
7423 * features/i386/x32-linux.xml: Remove.
7425 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7427 * regformats/aarch64.dat: Remove.
7428 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7429 * regformats/i386/amd64-avx-linux.dat: Remove.
7430 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7431 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7432 * regformats/i386/amd64-linux.dat: Remove.
7433 * regformats/i386/amd64-mpx-linux.dat: Remove.
7434 * regformats/i386/amd64.dat: Remove.
7435 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7436 * regformats/i386/i386-avx-linux.dat: Remove.
7437 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7438 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7439 * regformats/i386/i386-linux.dat: Remove.
7440 * regformats/i386/i386-mmx-linux.dat: Remove.
7441 * regformats/i386/i386-mpx-linux.dat: Remove.
7442 * regformats/i386/i386.dat: Remove.
7443 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7444 * regformats/i386/x32-avx-linux.dat: Remove.
7445 * regformats/i386/x32-linux.dat: Remove.
7447 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7449 * aarch64-tdep.c: Remove xml self tests.
7450 * amd64-linux-tdep.c: Likewise.
7451 * amd64-tdep.c: Likewise.
7452 * i386-linux-tdep.c: Likewise.
7453 * i386-tdep.c: Likewise.
7455 2019-07-03 Pedro Alves <palves@redhat.com>
7458 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7459 (pipe_cmd_option_defs): New.
7460 (make_pipe_cmd_options_def_group): New.
7461 (pipe_command): Use gdb::option::process_options.
7462 (pipe_command_completer): New function.
7463 (_initialize_cli_cmds): Install completer for "pipe" command.
7465 2019-07-03 Pedro Alves <palves@redhat.com>
7467 * cli/cli-option.c (union option_value) <string>: New field.
7468 (struct option_def_and_value): Add ctor, move ctor, dtor and
7469 use DISABLE_COPY_AND_ASSIGN.
7470 (option_def_and_value::clear_value): New.
7471 (parse_option, save_option_value_in_ctx, get_val_type_str)
7472 (add_setshow_cmds_for_options): Handle var_string.
7473 * cli-option.h (union option_def::var_address) <string>: New
7475 (struct string_option_def): New.
7476 * maint-test-options.c (struct test_options_opts): Add default
7477 ctor and use DISABLE_COPY_AND_ASSIGN.
7478 <string_opt>: New field.
7479 (test_options_opts::~test_options_opts): New.
7480 (test_options_opts::dump): Also dump "-string".
7481 (test_options_option_defs): Install "string.
7483 2019-07-03 Pedro Alves <palves@redhat.com>
7485 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7486 option_value with a null enumeration.
7487 (complete_options): Save the option values in the context.
7488 (save_option_value_in_ctx): New, factored out from ...
7489 (process_options): ... here.
7490 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7492 * maint-test-options.c (test_options_opts::dump): New, factored
7494 (maintenance_test_options_command_mode): ... here.
7495 (maintenance_test_options_command_completion_result): Delete.
7496 (maintenance_test_options_command_completion_text): Update
7498 (maintenance_show_test_options_completion_result): Change
7499 prototype. Just print
7500 maintenance_test_options_command_completion_text.
7501 (save_completion_result): New.
7502 (maintenance_test_options_completer_mode): Pass options context to
7503 complete_options, and then save a dump.
7504 (_initialize_maint_test_options): Use add_cmd to install "maint
7505 show test-options-completion-result".
7507 2019-07-03 Pedro Alves <palves@redhat.com>
7509 * NEWS (New commands): Mention "with" and "maint with".
7510 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7511 (with_command, with_command_completer): New.
7512 (pipe_command): Adjust to new repeat_previous
7514 (_initialize_cli_cmds): Install the "with" command and its "w"
7516 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7518 * cli/cli-setshow.c (parse_cli_var_uinteger)
7519 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7520 argument strings for all var_types.
7521 (get_setshow_command_value_string): New, factored out from ...
7522 (do_show_command): ... this.
7523 * cli/cli-setshow.h: Include <string>.
7524 (get_setshow_command_value_string): Declare.
7525 * command.h (repeat_previous): Now returns const char *. Adjust
7527 * maint.c: Include "cli/cli-cmds.h".
7528 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7529 (_initialize_maint_cmds): Register the "maintenance with" command.
7530 * top.c (repeat_previous): Move bits from pipe_command here:
7531 Return the saved command line, if any; error out if there's no
7532 command to relaunch.
7534 2019-07-03 Pedro Alves <palves@redhat.com>
7536 * NEWS (New commands): Mention "maint set/show test-settings"
7537 instead of "maint test-settings".
7538 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7539 (maintenance_test_settings_set_list): Rename to ...
7540 (maintenance_set_test_settings_list): ... this.
7541 (maintenance_test_settings_show_list): Rename to ...
7542 (maintenance_show_test_settings_list): ... this.
7543 (maintenance_test_settings_cmd): Delete.
7544 (maintenance_test_settings_set_cmd): ...
7545 (maintenance_set_test_settings_cmd): ... this.
7546 (maintenance_test_settings_show_cmd): ...
7547 (maintenance_show_test_settings_cmd): ... this.
7548 (maintenance_test_settings_show_value_cmd):
7549 (maintenance_show_test_settings_value_cmd): ... this.
7550 (_initialize_maint_test_settings): No longer install the "maint
7551 test-settings" prefix command. Rename "maint test-settings set"
7552 to "maint set test-settings", and "maint test-settings show" to
7553 "maint show test-settings". Adjust all subcommands.
7555 2019-07-03 Pedro Alves <palves@redhat.com>
7557 * maint-test-settings.c: Fix file's intro comment. Replace all
7558 references to "test-options" with references to "test-settings",
7561 2019-07-03 Pedro Alves <palves@redhat.com>
7563 * maint-test-settings.c (maintenance_test_settings_xxx)
7564 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7566 (maintenance_test_settings_enums): Use them.
7567 (maintenance_test_settings_enum): Default to
7568 maintenance_test_settings_xxx.
7569 (_initialize_maint_test_settings): Initialize
7570 MAINTENANCE_TEST_SETTINGS_FILENAME.
7572 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7574 * breakpoint.h (remove_breakpoints_inf): Change return type to
7575 void, move function documentation here.
7576 * breakpoint.c (remove_breakpoints_inf): Change return type to
7577 void, move function documentation to header.
7579 2019-07-02 Pedro Alves <palves@redhat.com>
7581 * NEWS (Completion improvements): Mention "info threads".
7582 * thread.c (struct info_threads_opts, info_threads_option_defs)
7583 (make_info_threads_options_def_group): New.
7584 (info_threads_command): Use gdb::option::process_options.
7585 (info_threads_command_completer): New.
7586 (_initialize_thread): Use gdb::option::build_help to build the
7587 help text for "info threads".
7589 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7591 * defs.h (generic_load): Move from here...
7592 * symfile.h (generic_load): ... to here. Rename name parameter
7594 * symfile.c (generic_load): Add comment.
7596 2019-07-01 Tom Tromey <tromey@adacore.com>
7599 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7600 declaration of without_params. Fix formatting.
7602 2019-07-01 Tom Tromey <tromey@adacore.com>
7604 * ada-exp.y (find_primitive_type): Update.
7605 * ada-lang.h (ada_lookup_symbol): Update.
7606 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7608 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7610 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7612 PR breakpoints/24541
7613 * gdbarch.c: Regenerate.
7614 * gdbarch.h: Regenerate.
7615 * gdbarch.sh: Add 'stap_adjust_register'.
7616 * i386-tdep.c: Include '<unordered_set>'.
7617 (i386_stap_adjust_register): New function.
7618 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7619 * stap-probe.c (stap_parse_register_operand): Call
7620 'gdbarch_stap_adjust_register'.
7622 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7625 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7626 * python/python.c (do_start_initialization): Use 'xmalloc'
7627 instead of 'PyMem_Malloc'.
7629 2019-06-28 Tom Tromey <tromey@adacore.com>
7631 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7634 2019-06-27 Tom Tromey <tromey@adacore.com>
7636 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7638 (arm_find_mapping_symbol, arm_record_special_symbol)
7639 (_initialize_arm_tdep): Update.
7640 (arm_objfile_data_free): Remove.
7642 2019-06-27 Tom Tromey <tromey@adacore.com>
7644 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7645 to cp_print_static_field.
7647 2019-06-26 Tom Tromey <tromey@adacore.com>
7649 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7650 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7653 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7655 * features/aarch64-core.c (create_feature_aarch64_core):
7657 * features/aarch64-core.xml: Add cpsr flags.
7659 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7661 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7662 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7664 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7666 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7668 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7670 (arm_record_special_symbol): Don't insert new symbol in sorted
7671 position, push it at the end.
7673 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7675 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7676 (arm_mapping_symbol_s): Remove.
7677 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7678 (arm_mapping_symbol_vec): New typedef.
7679 (struct arm_per_objfile): Add constructor.
7680 <section_maps>: Change type to
7681 std::unique_ptr<arm_mapping_symbol_vec[]>.
7682 (arm_compare_mapping_symbols): Remove.
7683 (arm_find_mapping_symbol): Adjust to section_maps type change.
7684 (arm_objfile_data_free): Call delete on arm_per_objfile.
7685 (arm_record_special_symbol): Adjust to section_maps type change.
7686 Allocate arm_per_objfile with new.
7688 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7690 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7691 with the command prefix.
7693 2019-06-25 Tom Tromey <tom@tromey.com>
7695 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7696 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7698 2019-06-25 Tom Tromey <tom@tromey.com>
7700 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7702 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7705 2019-06-25 Tom Tromey <tom@tromey.com>
7707 * tui/tui-winsource.c
7708 (tui_source_window_base::set_is_exec_point_at): Add check against
7711 2019-06-25 Tom Tromey <tom@tromey.com>
7713 * tui/tui-source.c (tui_set_source_content): Don't check before
7715 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7717 2019-06-25 Tom Tromey <tom@tromey.com>
7719 * tui/tui-winsource.h (tui_update_source_window_as_is)
7720 (tui_alloc_source_buffer, tui_line_is_displayed)
7721 (tui_addr_is_displayed): Change type of win_info.
7722 * tui/tui-winsource.c (tui_update_source_window_as_is)
7723 (tui_clear_source_content, tui_show_source_line)
7724 (tui_show_source_content, tui_source_window_base::refill)
7725 (tui_source_window_base::set_is_exec_point_at)
7726 (tui_source_window_base::set_is_exec_point_at)
7727 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7728 (tui_alloc_source_buffer, tui_line_is_displayed)
7729 (tui_addr_is_displayed): Change type of win_info. Update.
7730 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7731 (tui_source_window_base::do_make_visible_with_new_height):
7733 * tui/tui-source.c (tui_set_source_content)
7734 (tui_set_source_content_nil)
7735 (tui_source_window::do_scroll_vertical): Update.
7736 * tui/tui-layout.c (show_layout): Update.
7737 * tui/tui-disasm.c (tui_set_disassem_content)
7738 (tui_disasm_window::do_scroll_vertical): Update.
7739 * tui/tui-data.h (tui_win_content): Remove.
7740 (struct tui_gen_win_info) <content, content_size>: Remove.
7741 (struct tui_source_element): Add initializers and destructor.
7742 (union tui_which_element, struct tui_win_element): Remove.
7743 (struct tui_source_window_base) <content>: New field.
7744 (struct tui_data_window): Remove destructor.
7745 (tui_alloc_content, tui_free_win_content)
7746 (tui_free_all_source_wins_content): Don't declare.
7747 * tui/tui-data.c (tui_initialize_static_data): Update.
7748 (init_content_element, tui_alloc_content): Remove.
7749 (~tui_gen_win_info): Update.
7750 (~tui_data_window, tui_free_all_source_wins_content)
7751 (tui_free_win_content, free_content, free_content_elements):
7754 2019-06-25 Tom Tromey <tom@tromey.com>
7756 * tui/tui-winsource.h (tui_clear_source_content)
7757 (tui_erase_source_content, tui_show_source_content): Change type
7759 * tui/tui-winsource.c (tui_clear_source_content)
7760 (tui_erase_source_content, tui_show_source_content): Change type
7762 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7763 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7765 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7767 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7769 2019-06-25 Tom Tromey <tom@tromey.com>
7771 * tui/tui-winsource.c (tui_clear_source_content)
7772 (tui_source_window_base::set_is_exec_point_at): Update.
7773 * tui/tui-source.c (tui_set_source_content_nil): Update.
7774 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7776 * tui/tui-data.c (init_content_element): Update.
7778 2019-06-25 Tom Tromey <tom@tromey.com>
7780 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7781 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7782 * tui/tui-layout.c (init_and_make_win): Update.
7783 * tui/tui.h (enum tui_win_type): Update.
7784 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7785 tui_win_is_auxillary.
7786 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7787 tui_win_is_auxillary.
7789 2019-06-25 Tom Tromey <tom@tromey.com>
7791 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7792 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7793 (tui_delete_data_content_windows, tui_display_all_data)
7794 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7796 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7797 * tui/tui-regs.c (tui_last_regs_line_no)
7798 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7799 (tui_show_registers): Update.
7800 (tui_show_register_group): Return void. Update.
7801 (tui_display_registers_from, tui_display_reg_element_at_line)
7802 (tui_display_registers_from_line, tui_check_register_values):
7804 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7806 (struct tui_data_window) <regs_content>: Now a std::vector.
7807 <regs_content_count>: Remove.
7808 (tui_add_content_elements, tui_free_data_content): Don't declare.
7809 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7810 (init_content_element): Remove DATA_WIN case. Add assert.
7811 (tui_add_content_elements): Remove.
7812 (tui_data_window): Update.
7813 (tui_free_data_content): Remove.
7814 (free_content_elements): Remove DATA_WIN case.
7816 2019-06-25 Tom Tromey <tom@tromey.com>
7818 * tui/tui-data.c (tui_data_item_window): Update.
7819 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7820 * tui/tui-windata.c (tui_display_all_data)
7821 (tui_display_data_from_line): Update.
7822 (tui_check_data_values): Remove.
7823 * tui/tui-regs.c (tui_show_register_group)
7824 (tui_display_reg_element_at_line): Update.
7825 * tui/tui-hooks.c (tui_register_changed)
7826 (tui_refresh_frame_and_register_information): Call
7827 tui_check_register_values.
7828 * tui/tui-data.h (struct tui_data_window) <data_content,
7829 data_content_count, data_type>: Remove.
7830 (enum tui_data_type): Remove.
7832 * tui/tui-data.c (tui_data_window::clear_detail)
7833 (~tui_data_window): Update.
7835 2019-06-25 Tom Tromey <tom@tromey.com>
7837 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7839 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7840 Rename from tui_first_data_item_displayed. Update.
7841 (tui_data_window::refresh_all)
7842 (tui_data_window::do_scroll_vertical): Update.
7843 * tui/tui-data.h (struct tui_data_window)
7844 <first_data_item_displayed>: Declare new method.
7846 2019-06-25 Tom Tromey <tom@tromey.com>
7848 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7849 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7851 (tui_initialize_static_data): ...here.
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7855 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7856 (tui_display_registers_from, tui_check_register_values): Update.
7857 (tui_display_register): Remove win_info parameter; update.
7858 (tui_get_register): Change type of parameters.
7859 * tui/tui-data.h (struct tui_data_element): Remove.
7860 (union tui_which_element) <data>: Remove.
7861 <data_window>: Change type.
7862 (struct tui_data_item_window): New.
7863 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7865 (~tui_data_item_window): New destructor.
7866 (free_content_elements): Remove DATA_ITEM_WIN case.
7868 2019-06-25 Tom Tromey <tom@tromey.com>
7870 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7873 2019-06-25 Tom Tromey <tom@tromey.com>
7875 * tui/tui-data.h (struct tui_command_element): Remove.
7876 (union tui_which_element) <command>: Remove.
7877 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7879 (free_content_elements): Remove CMD_WIN case.
7881 2019-06-25 Tom Tromey <tom@tromey.com>
7883 * tui/tui-layout.c (tui_set_layout): Update.
7884 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7885 * tui/tui-data.c (layout_def): Update.
7887 2019-06-25 Tom Tromey <tom@tromey.com>
7889 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7890 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7891 (tui_source_window_base::set_new_height): Update.
7892 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7894 (tui_set_locator_fullname, tui_set_locator_info)
7895 (tui_show_frame_info): Update.
7896 * tui/tui-source.c (tui_set_source_content)
7897 (tui_source_is_displayed): Update.
7898 * tui/tui-layout.c (show_source_disasm_command, show_data)
7899 (show_source_or_disasm_and_command): Update.
7900 * tui/tui-disasm.c (tui_set_disassem_content)
7901 (tui_get_begin_asm_address): Update.
7902 * tui/tui-data.h (struct tui_locator_element): Remove.
7903 (union tui_which_element) <locator>: Remove.
7904 (struct tui_locator_window): New.
7905 (tui_locator_win_info_ptr): Change return type.
7906 * tui/tui-data.c (_locator): Change type.
7907 (tui_locator_win_info_ptr): Change return type.
7908 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7909 (tui_alloc_content): Add assert.
7911 2019-06-25 Tom Tromey <tom@tromey.com>
7913 * tui/tui-winsource.c
7914 (tui_exec_info_window::maybe_allocate_content): New method.
7915 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7916 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7917 (make_source_or_disasm_window): Add cast.
7918 * tui/tui-data.h (union tui_which_element) <simple_string>:
7920 (struct tui_source_info): New.
7921 (struct tui_source_window_base) <execution_info>: Change type.
7922 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7923 case, and add assert.
7924 (tui_alloc_content): Add assert.
7926 2019-06-25 Tom Tromey <tom@tromey.com>
7928 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7929 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7930 * tui/tui-data.c (tui_alloc_win_info): Remove.
7932 2019-06-25 Tom Tromey <tom@tromey.com>
7934 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7935 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7938 2019-06-25 Tom Tromey <tom@tromey.com>
7940 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7941 make_visible_with_new_height method.
7942 (tui_win_info::make_visible_with_new_height): New method.
7943 (tui_source_window_base::do_make_visible_with_new_height)
7944 (tui_data_window::do_make_visible_with_new_height)
7945 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7946 (make_visible_with_new_height): Remove.
7947 (tui_resize_all, tui_adjust_win_heights): Use
7948 make_visible_with_new_height method.
7949 * tui/tui-data.h (struct tui_win_info)
7950 <do_make_visible_with_new_height, make_visible_with_new_height>:
7952 (struct tui_source_window_base, struct tui_data_window)
7953 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7956 2019-06-25 Tom Tromey <tom@tromey.com>
7958 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7960 (update_tab_width): Call update_tab_width method.
7961 * tui/tui-data.h (struct tui_win_info)
7962 (struct tui_source_window_base) <update_tab_width>: New methods.
7964 2019-06-25 Tom Tromey <tom@tromey.com>
7966 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7968 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7970 (tui_gen_win_info::make_visible): Update.
7971 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7973 * tui/tui-data.h (enum tui_box): New enum.
7974 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7976 2019-06-25 Tom Tromey <tom@tromey.com>
7978 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7979 init_and_make_win for EXEC_INFO_WIN.
7980 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7982 (struct tui_win_info) <~tui_win_info>: Inline.
7983 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7985 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7986 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7988 (tui_initialize_static_data): Update.
7989 (~tui_gen_win_info): Handle more cleanup here.
7990 (~tui_source_window_base): Delete "execution_info".
7991 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7993 2019-06-25 Tom Tromey <tom@tromey.com>
7995 * tui/tui-layout.c (make_command_window): Don't set
7997 (show_source_disasm_command): Call the reset method.
7998 (show_data): Don't set can_highlight. Call the reset method.
7999 (tui_gen_win_info::reset): Rename from init_gen_win_info
8000 (init_and_make_win): Simplify. Return tui_gen_win_info.
8001 (show_source_or_disasm_and_command): Call the reset method.
8002 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8003 (struct tui_cmd_window): Set can_highlight.
8005 2019-06-25 Tom Tromey <tom@tromey.com>
8007 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8009 (tui_make_visible, tui_make_invisible): Rewrite.
8010 (tui_win_info::make_visible): Remove.
8011 (tui_source_window_base::make_visible): Update.
8012 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8013 method. Moved from...
8014 (struct tui_win_info) <make_visible>: ...here.
8016 2019-06-25 Tom Tromey <tom@tromey.com>
8018 * tui/tui-winsource.c
8019 (tui_source_window_base::do_scroll_horizontal): Remove direction
8021 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8022 direction parameter.
8023 * tui/tui-win.c (tui_win_info::forward_scroll)
8024 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8025 (tui_win_info::right_scroll): Update.
8026 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8027 direction parameter.
8028 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8029 direction parameter.
8030 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8031 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8032 Remove direction parameter.
8033 (struct tui_source_window_base, struct tui_source_window)
8034 (struct tui_disasm_window, struct tui_data_window)
8035 (struct tui_cmd_window): Update.
8037 2019-06-25 Tom Tromey <tom@tromey.com>
8039 * tui/tui-winsource.h (tui_set_exec_info_content)
8040 (tui_show_exec_info_content, tui_erase_exec_info_content)
8041 (tui_clear_exec_info_content, tui_update_exec_info): Change
8042 argument to tui_source_window_base.
8043 * tui/tui-winsource.c (tui_set_exec_info_content)
8044 (tui_show_exec_info_content, tui_erase_exec_info_content)
8045 (tui_clear_exec_info_content, tui_update_exec_info): Change
8046 argument to tui_source_window_base.
8048 2019-06-25 Tom Tromey <tom@tromey.com>
8050 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8051 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8053 2019-06-25 Tom Tromey <tom@tromey.com>
8055 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8058 2019-06-25 Tom Tromey <tom@tromey.com>
8060 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8062 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8064 * tui/tui-source.c (tui_set_source_content): Update.
8065 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8069 * tui/tui-win.c (window_name_completer, tui_set_focus)
8070 (tui_all_windows_info): Use name method.
8071 * tui/tui-data.h (struct tui_gen_win_info)
8072 (struct tui_source_window, struct tui_disasm_window)
8073 (struct tui_data_window, struct tui_cmd_window) <name>: New
8075 (tui_win_name): Don't declare.
8076 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8077 (tui_win_name): Remove.
8079 2019-06-25 Tom Tromey <tom@tromey.com>
8081 * tui/tui-winsource.h (tui_update_source_window)
8082 (tui_update_source_window_as_is): Change parameter type.
8083 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8084 to be a tui_source_window_base.
8085 (tui_update_source_window_as_is): Likewise.
8086 * tui/tui-win.c (make_visible_with_new_height): Update.
8088 2019-06-25 Tom Tromey <tom@tromey.com>
8090 * tui/tui-winsource.c (tui_erase_source_content)
8091 (tui_show_source_content, tui_show_exec_info_content)
8092 (tui_erase_exec_info_content): Use refresh_window method.
8093 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8094 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8095 from tui_refresh_win.
8096 (tui_data_window::refresh_window): New method.
8097 (tui_win_info::refresh, tui_source_window_base::refresh)
8098 (tui_refresh_all): Use refresh_window method.
8099 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8101 * tui/tui-regs.c (tui_display_register): Call refresh_window
8103 * tui/tui-layout.c (show_source_disasm_command)
8104 (show_source_or_disasm_and_command): Call refresh_window method.
8105 * tui/tui-data.h (struct tui_gen_win_info)
8106 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8109 2019-06-25 Tom Tromey <tom@tromey.com>
8111 * tui/tui.c (tui_rl_other_window, tui_enable)
8112 (tui_is_window_visible, tui_get_command_dimension): Update.
8113 * tui/tui-winsource.c (tui_update_source_window_as_is)
8114 (tui_clear_source_content, tui_erase_source_content)
8115 (tui_show_source_line, tui_source_window_base::refill)
8116 (tui_source_window_base::do_scroll_horizontal)
8117 (tui_source_window_base::set_is_exec_point_at)
8118 (tui_update_breakpoint_info, tui_set_exec_info_content)
8119 (tui_alloc_source_buffer, tui_line_is_displayed)
8120 (tui_addr_is_displayed): Update.
8121 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8122 (tui_check_and_display_highlight_if_needed)
8123 (tui_win_info::make_visible, tui_win_info::refresh)
8124 (tui_refresh_all): Update.
8125 * tui/tui-windata.c (tui_first_data_item_displayed)
8126 (tui_delete_data_content_windows, tui_erase_data_content)
8127 (tui_display_all_data, tui_data_window::refresh_all)
8128 (tui_check_data_values): Update.
8129 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8130 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8131 (tui_win_info::backward_scroll, tui_refresh_all_win)
8132 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8133 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8134 (tui_source_window_base::set_new_height)
8135 (tui_data_window::set_new_height)
8136 (make_invisible_and_set_new_height)
8137 (make_visible_with_new_height, new_height_ok)
8138 (parse_scrolling_args): Update.
8139 * tui/tui-stack.c (tui_show_frame_info): Update.
8140 * tui/tui-source.c (tui_set_source_content)
8141 (tui_set_source_content_nil, tui_source_is_displayed)
8142 (tui_source_window::do_scroll_vertical): Update.
8143 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8144 (tui_display_registers_from, tui_display_reg_element_at_line)
8145 (tui_check_register_values, tui_reg_command): Update.
8146 * tui/tui-layout.c (tui_default_win_height)
8147 (show_source_disasm_command, show_data, init_and_make_win)
8148 (show_source_or_disasm_and_command): Update.
8149 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8150 (tui_redisplay_readline, tui_mld_flush)
8151 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8153 * tui/tui-disasm.c (tui_set_disassem_content)
8154 (tui_disasm_window::do_scroll_vertical): Update.
8155 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8157 (struct tui_win_info): Derive from tui_gen_win_info.
8158 <~tui_win_info>: Mark as override.
8159 <generic>: Remove member.
8160 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8161 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8162 (~tui_data_window, ~tui_win_info)
8163 (tui_free_all_source_wins_content): Update.
8164 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8168 * tui/tui-layout.c (init_and_make_win): Use new.
8169 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8170 destructor, initializers.
8171 (tui_alloc_generic_win_info): Don't declare.
8172 * tui/tui-data.c (_locator): Add argument to constructor.
8173 (source_win, disasm_win): New globals.
8174 (exec_info): Remove.
8175 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8177 (tui_alloc_generic_win_info): Remove.
8178 (init_content_element): Use new.
8179 (tui_win_info::tui_win_info): Update.
8180 (free_content_elements) <case DATA_WIN>: Use delete.
8182 2019-06-25 Tom Tromey <tom@tromey.com>
8184 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8185 * tui/tui-windata.c (tui_first_data_item_displayed)
8186 (tui_delete_data_content_windows): Update.
8187 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8188 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8189 (tui_display_registers_from, tui_check_register_values): Update.
8190 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8192 * tui/tui-data.c (init_content_element): Update. Allocate the new
8194 (tui_free_data_content): Update.
8195 (free_content_elements) <case DATA_WIN>: Free the window.
8197 2019-06-25 Tom Tromey <tom@tromey.com>
8199 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8201 * tui/tui-layout.c (make_command_window)
8202 (show_source_disasm_command, show_data, init_and_make_win)
8203 (show_source_or_disasm_and_command): Update.
8204 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8206 <can_highight, is_highlighted>: Now bool.
8207 (tui_set_win_highlight): Don't declare.
8208 * tui/tui-data.c (tui_set_win_highlight): Remove.
8210 2019-06-25 Tom Tromey <tom@tromey.com>
8212 * tui/tui-wingeneral.c (make_visible): Remove check of window
8215 2019-06-25 Tom Tromey <tom@tromey.com>
8217 * tui/tui-win.c (tui_win_info::max_height)
8218 (tui_cmd_window::max_height): New methods.
8219 (new_height_ok): Call max_height.
8220 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8221 <max_height>: New method.
8223 2019-06-25 Tom Tromey <tom@tromey.com>
8225 * tui/tui-win.c (tui_source_window_base::set_new_height)
8226 (tui_data_window::set_new_height): New methods.
8227 (make_invisible_and_set_new_height): Call set_new_height method.
8228 * tui/tui-data.h (struct tui_win_info)
8229 (struct tui_source_window_base, struct tui_data_window)
8230 <set_new_height>: New method.
8232 2019-06-25 Tom Tromey <tom@tromey.com>
8234 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8235 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8236 tui_refresh_data_win.
8237 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8239 (tui_refresh_all_win): Call the refresh_all method.
8240 (tui_set_focus): Likewise.
8241 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8242 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8247 * tui/tui-winsource.h (tui_refill_source_window)
8248 (tui_set_is_exec_point_at): Don't declare.
8249 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8250 (tui_source_window_base::refill): Rename from
8251 tui_refill_source_window.
8252 (tui_source_window_base::do_scroll_horizontal): Update.
8253 (tui_source_window_base::set_is_exec_point_at): Rename from
8254 tui_set_is_exec_point_at.
8255 (tui_update_all_breakpoint_info): Update.
8256 * tui/tui-stack.c (tui_show_frame_info): Update.
8257 * tui/tui-layout.c (show_data): Add cast.
8258 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8259 * tui/tui-data.h (struct tui_source_window_base) <refill,
8260 set_is_exec_point_at>: New methods.
8261 (tui_source_windows, tui_add_to_source_windows): Update types.
8262 (tui_add_to_source_windows): Remove redundant declaration.
8263 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8264 (tui_source_windows): Change return type.
8265 (tui_clear_source_windows_detail): Update.
8266 (tui_add_to_source_windows): Change type of parameter.
8267 (tui_free_all_source_wins_content): Update.
8269 2019-06-25 Tom Tromey <tom@tromey.com>
8271 * tui/tui-wingeneral.c (tui_win_info::refresh)
8272 (tui_source_window_base::refresh): New methods.
8273 (tui_refresh_all): Call the refresh method.
8274 * tui/tui-data.h (struct tui_win_info)
8275 (struct tui_source_window_base) <refresh>: New method.
8277 2019-06-25 Tom Tromey <tom@tromey.com>
8279 * tui/tui.h (tui_is_window_visible): Return bool.
8280 * tui/tui.c (tui_is_window_visible): Return bool.
8281 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8282 (tui_make_visible, tui_make_invisible)
8283 (tui_win_info::make_visible)
8284 (tui_source_window_base::make_visible, make_all_visible)
8285 (tui_make_all_visible, tui_make_all_invisible): Update.
8286 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8287 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8289 (struct tui_win_info, struct tui_source_window_base)
8290 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8291 * tui/tui-data.c (tui_init_generic_part): Update.
8293 2019-06-25 Tom Tromey <tom@tromey.com>
8295 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8296 (tui_source_window_base::make_visible): New methods.
8297 (make_all_visible): Make method call.
8298 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8299 (struct tui_source_window_base, struct tui_cmd_window): Override
8301 (tui_win_is_source_type): Don't declare.
8302 * tui/tui-data.c (tui_win_is_source_type): Remove.
8304 2019-06-25 Tom Tromey <tom@tromey.com>
8306 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8309 2019-06-25 Tom Tromey <tom@tromey.com>
8311 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8312 Inline constructor. Add initializers for members.
8313 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8314 constructors; now inline in class.
8316 2019-06-25 Tom Tromey <tom@tromey.com>
8318 * tui/tui-regs.c (tui_show_registers): Update.
8319 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8321 * tui/tui-data.c (tui_data_window::clear_detail)
8322 (tui_data_window): Update.
8324 2019-06-25 Tom Tromey <tom@tromey.com>
8326 * tui/tui-windata.c (tui_display_all_data)
8327 (tui_display_data_from_line, tui_display_data_from)
8328 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8330 * tui/tui-regs.c (tui_last_regs_line_no)
8331 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8332 (tui_show_registers, tui_show_register_group)
8333 (tui_display_registers_from, tui_display_reg_element_at_line)
8334 (tui_display_registers_from_line, tui_check_register_values)
8335 (tui_reg_next, tui_reg_prev): Update.
8336 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8337 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8339 (struct tui_win_info) <detail>: Remove. Add new fields from
8341 (TUI_DATA_WIN): Add cast.
8342 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8343 (~tui_data_window): Simplify.
8345 2019-06-25 Tom Tromey <tom@tromey.com>
8347 * tui/tui-layout.c (show_source_disasm_command)
8348 (show_source_or_disasm_and_command): Update.
8349 * tui/tui-io.c (update_cmdwin_start_line)
8350 (tui_redisplay_readline): Update.
8351 * tui/tui-data.h (struct tui_command_info): Remove.
8352 (struct tui_win_info) <detail>: Remove command_info member.
8353 (struct tui_data_window) <start_line>: New member, from
8355 (TUI_CMD_WIN): Add casts.
8357 2019-06-25 Tom Tromey <tom@tromey.com>
8359 * tui/tui-winsource.c (tui_update_source_window)
8360 (tui_refill_source_window)
8361 (tui_source_window_base::do_scroll_horizontal)
8362 (tui_update_breakpoint_info, tui_set_exec_info_content)
8363 (tui_show_exec_info_content, tui_erase_exec_info_content)
8364 (tui_clear_exec_info_content): Update.
8365 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8367 * tui/tui-win.c (make_invisible_and_set_new_height)
8368 (make_visible_with_new_height): Update.
8369 * tui/tui-source.c (tui_set_source_content)
8370 (tui_show_symtab_source): Update.
8371 * tui/tui-layout.c (extract_display_start_addr)
8372 (show_source_disasm_command, show_data)
8373 (make_source_or_disasm_window)
8374 (show_source_or_disasm_and_command): Update.
8375 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8376 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8378 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8379 to tui_source_window_base.
8380 (struct tui_win_info) <detail>: Remove source_info member.
8381 (struct tui_source_window_base) <has_locator>: Inline.
8382 Move contents from tui_source_info; rename has_locator member to
8384 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8385 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8387 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8389 (tui_free_all_source_wins_content): Cast to
8390 tui_source_window_base.
8392 2019-06-25 Tom Tromey <tom@tromey.com>
8394 * tui/tui-win.c (make_invisible_and_set_new_height)
8395 (make_visible_with_new_height): Call has_locator method.
8396 * tui/tui-layout.c (show_source_disasm_command, show_data)
8397 (show_source_or_disasm_and_command): Update for bool change.
8398 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8399 (tui_win_info) <has_locator>: New method.
8400 (struct tui_source_window_base) <has_locator>: New method.
8401 (tui_win_has_locator): Don't declare.
8402 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8403 from tui_win_has_locator.
8404 (tui_source_window_base): Use false, not FALSE.
8406 2019-06-25 Tom Tromey <tom@tromey.com>
8408 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8409 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8410 clear_detail method directly.
8411 (tui_clear_win_detail): Remove.
8413 2019-06-25 Tom Tromey <tom@tromey.com>
8415 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8416 "this", not TUI_DISASM_WIN.
8418 2019-06-25 Tom Tromey <tom@tromey.com>
8420 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8422 * tui/tui-winsource.c
8423 (tui_source_window_base::do_scroll_horizontal): Rename from
8424 tui_horizontal_source_scroll.
8425 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8426 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8427 from tui_vertical_data_scroll.
8428 * tui/tui-win.h (tui_scroll): Don't declare.
8429 * tui/tui-win.c (tui_win_info::forward_scroll)
8430 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8431 (tui_win_info::right_scroll): Rename and update.
8432 (tui_scroll_forward_command, tui_scroll_backward_command)
8433 (tui_scroll_left_command, tui_scroll_right_command): Update.
8434 (tui_scroll): Remove.
8435 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8436 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8437 from tui_vertical_source_scroll.
8438 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8439 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8440 from tui_vertical_disassem_scroll.
8441 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8442 do_scroll_horizontal>: New methods.
8443 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8445 (struct tui_source_window_base): Add do_scroll_horizontal.
8446 (struct tui_source_window, struct tui_disasm_window): Add
8448 (struct tui_data_window, struct tui_cmd_window): Add
8449 do_scroll_horizontal and do_scroll_vertical.
8450 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8452 2019-06-25 Tom Tromey <tom@tromey.com>
8454 * tui/tui-data.h (struct tui_source_window_base): New struct.
8455 (struct tui_source_window): Derive from tui_source_window_base.
8456 (struct tui_disasm_window): New struct.
8457 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8458 from tui_source_window::clear_detail.
8459 (tui_source_window_base): Rename from tui_source_window.
8460 (~tui_source_window_base): Rename from ~tui_source_window.
8461 (tui_alloc_win_info): Create a tui_disasm_window.
8463 2019-06-25 Tom Tromey <tom@tromey.com>
8465 * tui/tui-data.h (struct tui_source_window)
8466 (struct tui_data_window): Declare destructors.
8467 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8469 (tui_win_info): Simplify.
8471 2019-06-25 Tom Tromey <tom@tromey.com>
8473 * tui/tui-winsource.c (tui_display_main)
8474 (tui_update_source_windows_with_addr)
8475 (tui_update_all_breakpoint_info): Update.
8476 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8477 (new_height_ok, parse_scrolling_args): Update.
8478 * tui/tui-stack.c (tui_show_frame_info): Update.
8479 * tui/tui-data.h (struct tui_list): Remove.
8480 (tui_source_windows): Return a reference to a std::vector.
8481 * tui/tui-data.c (source_windows): Now a std::vector.
8482 (tui_source_windows): Change return type.
8483 (tui_clear_source_windows): Rewrite.
8484 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8485 (tui_free_all_source_wins_content): Rewrite.
8487 2019-06-25 Tom Tromey <tom@tromey.com>
8489 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8490 (struct tui_data_window, struct tui_cmd_window): Declare
8491 clear_detail method.
8492 * tui/tui-data.c (tui_source_window::clear_detail)
8493 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8495 (tui_clear_win_detail): Simplify.
8497 2019-06-25 Tom Tromey <tom@tromey.com>
8499 * tui/tui-layout.c (make_source_window, make_disasm_window)
8500 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8501 Return the new window.
8502 (show_source_disasm_command, show_data)
8503 (show_source_or_disasm_and_command): Update.
8505 2019-06-25 Tom Tromey <tom@tromey.com>
8507 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8508 parameter. Return the new window.
8509 (show_source_disasm_command): Update and remove NULL check.
8510 (show_source_or_disasm_and_command): Update.
8512 2019-06-25 Tom Tromey <tom@tromey.com>
8514 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8516 2019-06-25 Tom Tromey <tom@tromey.com>
8518 * tui/tui-data.h (struct tui_win_info): Make constructor
8519 protected. Make destructor virtual. Add initializers.
8520 (tui_source_window, tui_data_window, tui_cmd_window): New
8522 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8523 constructor. Add "type" parameter.
8524 (tui_source_window, tui_data_window, tui_cmd_window): New
8526 (tui_alloc_win_info): Instantiate the appropriate subclass.
8528 2019-06-25 Tom Tromey <tom@tromey.com>
8530 * tui/tui-win.c (tui_resize_all): Use delete.
8531 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8533 (tui_free_window): Don't declare.
8534 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8537 2019-06-25 Tom Tromey <tom@tromey.com>
8539 * tui/tui-data.h (struct tui_win_info): Add constructor.
8540 * tui/tui-data.c (tui_alloc_win_info): Use new.
8541 (tui_free_window): Use delete.
8543 2019-06-22 Tom Tromey <tom@tromey.com>
8545 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8547 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8549 2019-06-22 Tom Tromey <tom@tromey.com>
8551 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8553 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8555 2019-06-22 Tom de Vries <tdevries@suse.de>
8557 * dwarf2read.c (create_addrmap_from_aranges)
8558 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8561 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8563 * dwarf2read.h (dwarf2_section_info_def): Remove.
8564 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8565 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8566 std::vector<dwarf2_section_info>.
8567 (struct dwo_file) <~dwo_file>: Remove.
8568 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8570 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8571 (dwarf2_read_debug_names): Likewise.
8572 (create_debug_types_hash_table): Change parameter type to
8573 array_view, adjust code accordingly.
8574 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8575 (partial_die_info::fixup): Likewise.
8576 (determine_prefix): Likewise.
8577 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8579 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8581 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8583 <~dwo_file>: Remove call to gdb_bfd_unref.
8584 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8585 gdb_bfd_ref_ptr::get.
8587 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8589 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8591 * dwarf2read.c (struct dwo_file): Initialize fields.
8593 (free_dwo_file): Remove, move content to ~dwo_file.
8594 (struct dwo_file_deleter): Remove.
8595 (dwo_file_up>: Remove custom deleter.
8596 (free_dwo_files): Remove.
8597 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8599 (process_skeletonless_type_units): Call unique_ptr::get.
8600 (allocate_dwo_file_hash_table): Add deleter to created hash
8601 table. Change return type to htab_up.
8602 (lookup_dwo_file_slot): Don't memset dwo_file, call
8604 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8605 (create_dwo_unit_in_dwp_v2): Likewise.
8606 (open_and_init_dwo_file): Likewise.
8607 (free_dwo_file_from_slot): Remove.
8609 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8611 * dwarf2read.h (struct dwarf2_section_info) <readin,
8612 is_virtual>: Change type to bool.
8613 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8616 2019-06-19 Tom Tromey <tom@tromey.com>
8618 * tui/tui-data.h (tui_init_content_element): Don't declare.
8620 2019-06-19 Tom Tromey <tom@tromey.com>
8622 * tui/tui-data.h (tui_init_win_info): Don't declare.
8624 2019-06-19 Tom de Vries <tdevries@suse.de>
8626 * dwarf2read.h (abstract_to_concrete): Change type to
8627 std::unordered_map<sect_offset, std::vector<sect_offset>,
8628 gdb::hash_enum<sect_offset>>.
8630 2019-06-19 Tom Tromey <tromey@adacore.com>
8632 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8633 EVAL_AVOID_SIDE_EFFECTS specially.
8635 2019-06-19 Tom Tromey <tromey@adacore.com>
8637 * source-cache.c (highlighter): New global.
8638 (source_cache::get_source_lines): Create a highlighter on demand.
8640 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8642 * defs.h (deprecated_interactive_hook): Delete declaration.
8643 * interps.c (clear_interpreter_hooks): Remove use of
8644 deprecated_interactive_hook.
8645 * top.c (deprecated_interactive_hook): Delete definition.
8646 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8648 2019-06-18 Tom de Vries <tdevries@suse.de>
8651 * dwarf2read.h (abstract_to_concrete): Change type from
8652 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8653 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8654 * dwarf2read.c (read_variable): Update.
8655 (dwarf2_fetch_die_loc_sect_off): Update.
8657 2019-06-17 Tom de Vries <tdevries@suse.de>
8660 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8661 accessing parent[parent_len - 1].
8663 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8666 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8667 call dtrace_process_dof with NULL dof.
8669 2019-06-16 Tom de Vries <tdevries@suse.de>
8672 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8674 2019-06-16 Tom Tromey <tom@tromey.com>
8676 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8677 (make_all_visible): Use address of member.
8679 2019-06-16 Tom Tromey <tom@tromey.com>
8681 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8682 (tui_free_window, free_content, free_content_elements): Remove
8684 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8686 * tui/tui-regs.c (tui_show_register_group)
8687 (tui_display_registers_from, tui_display_reg_element_at_line):
8688 Remove unnecessary cast.
8690 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8692 * linux-nat.c (normal_mask): Delete.
8693 (_initialize_linux_nat): Don't initialise normal_mask.
8695 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8698 * dwarf-index-write.h (write_psymtabs_to_index): Add
8699 dwz_basename parameter.
8700 * dwarf-index-write.c (write_gdbindex): Move file writing to
8701 write_gdbindex_1. Change return type void.
8702 (assert_file_size): Move up, remove filename parameter.
8703 (write_gdbindex_1): New function.
8704 (write_debug_names): Change return type to void, call
8706 (struct index_wip_file): New struct.
8707 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8708 file logic to index_wip_file. Write index for dwz file if
8710 (save_gdb_index_command): Pass basename of dwz file, if present.
8711 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8712 build-id of dwz file, if present.
8713 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8714 (dwarf2_get_dwz_file): Likewise.
8715 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8716 (dwarf2_get_dwz_file): Likewise.
8718 2019-06-16 Tom Tromey <tom@tromey.com>
8720 * coffread.c (process_coff_symbol): Use xstrdup.
8721 * value.c (create_internalvar): Use xstrdup.
8723 2019-06-16 Tom Tromey <tom@tromey.com>
8725 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8726 * breakpoint.c (stopin_command, stopat_command)
8727 (until_break_command, decode_location_default): Remove unnecessary
8729 * utils.c (subset_compare): Remove unnecessary cast.
8730 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8732 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8734 * infcmd.c (path_command): Remove unnecessary cast.
8735 * coffread.c (decode_type): Remove unnecessary cast.
8736 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8737 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8738 * tui/tui-stack.c (tui_show_locator_content)
8739 (tui_show_frame_info): Remove unnecessary cast.
8740 * tui/tui-win.c (tui_scroll_forward_command)
8741 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8742 (parse_scrolling_args): Remove unnecessary cast.
8743 * tui/tui-data.c (init_win_info, tui_del_window)
8744 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8745 (free_content_elements): Remove unnecessary cast.
8746 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8748 * tui/tui-source.c (tui_set_source_content)
8749 (tui_vertical_source_scroll): Remove unnecessary cast.
8750 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8752 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8753 * tui/tui-regs.c (tui_display_registers_from)
8754 (tui_display_register): Remove unnecessary cast.
8755 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8756 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8757 (make_visible): Remove unnecessary cast.
8758 * tui/tui-winsource.c (tui_erase_source_content)
8759 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8761 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8762 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8763 * stabsread.c (read_type, read_array_type, read_range_type):
8764 Remove unnecessary cast.
8765 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8766 (parse_symbol, parse_type, upgrade_type, parse_external)
8767 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8769 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8771 2019-06-16 Tom Tromey <tom@tromey.com>
8773 * tui/tui-data.c (tui_alloc_generic_win_info)
8774 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8777 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8778 Andrew Burgess <andrew.burgess@embecosm.com>
8780 * f-typeprint.c (f_print_type): Don't return early for not
8781 associated or not allocated types.
8782 (f_type_print_varspec_suffix): Add print_rank parameter and print
8783 ranks of array types in case they dangling.
8784 (f_type_print_base): Add print_rank parameter.
8786 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8788 * NEWS: Mention new MI commands.
8789 * break-catch-throw.c (enum exception_event_kind): Move to
8791 (print_mention_exception_catchpoint): Output text as a single
8793 (catch_exception_command_1): Rename to...
8794 (catch_exception_event): ...this, make non-static, update header
8795 command, and change some parameter types.
8796 (catch_catch_command): Update for changes to
8797 catch_exception_command_1.
8798 (catch_throw_command): Likewise.
8799 (catch_rethrow_command): Likewise.
8800 * breakpoint.c (enum exception_event_kind): Delete.
8801 * breakpoint.h (enum exception_event_kind): Moved here from
8802 break-catch-throw.c.
8803 (catch_exception_event): Declare.
8804 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8805 (mi_cmd_catch_throw): New function.
8806 (mi_cmd_catch_rethrow): New function.
8807 (mi_cmd_catch_catch): New function.
8808 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8809 'catch-catch' entries.
8810 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8811 (mi_cmd_catch_rethrow): Declare.
8812 (mi_cmd_catch_catch): Declare.
8814 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8816 * annotate.c (annotate_source_line): Change return type to void,
8817 update implementation to match.
8818 * annotate.h (annotate_source_line): Change return type to void,
8819 update header comment.
8820 * stack.c (print_frame_info): Don't change what frame information
8821 is printed based on whether annotations are on or not.
8823 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8825 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8826 (annotate_source): Make static.
8827 (annotate_source_line): Moved from source.c and renamed from
8828 identify_source_line. Update the return type.
8829 * annotate.h (annotate_source): Delete declaration.
8830 (annotate_source_line): Declaration moved from source.h, and
8831 renamed from identify_source_line. Return type updated.
8832 * source.c (identify_source_line): Moved to annotate.c and renamed
8833 to annotate_source_line.
8834 (info_line_command): Remove check of annotation_level.
8835 * source.h (identify_source_line): Move declaration to annotate.h
8836 and rename to annotate_source_line.
8837 * stack.c: Add 'annotate.h' include.
8838 (print_frame_info): Remove check of annotation_level before
8839 calling annotate_source_line.
8841 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8843 * source-cache.c (source_cache::get_plain_source_lines): Use
8844 open_source_file_with_line_charpos instead of just
8845 open_source_file, remove call to find_source_lines.
8846 (source_cache::get_source_lines): Likewise.
8847 * source.c (find_source_lines): Make static.
8848 (get_filename_and_charpos): Renamed into...
8849 (open_source_file_with_line_charpos): ..this along with changes to
8850 return a scoped_fd, and some other minor clean ups.
8851 (identify_source_line): Use open_source_file_with_line_charpos.
8852 (search_command_helper): Use open_source_file_with_line_charpos
8853 instead of just open_source_file, remove call to
8855 * source.h (open_source_file_with_line_charpos): Declare new
8857 (find_source_lines): Delete declaration.
8859 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8861 * source.c (get_filename_and_charpos): Remove fullname
8863 (identify_source_line): Update call to get_filename_and_charpos.
8865 2019-06-14 Tom Tromey <tromey@adacore.com>
8868 * ui-style.h (skip_ansi_escape): Update comment.
8869 * ui-file.h (class no_terminal_escape_file): New class.
8870 * ui-file.c (no_terminal_escape_file::write)
8871 (no_terminal_escape_file::puts): New methods.
8872 * cli/cli-logging.c (handle_redirections): Use
8873 no_terminal_escape_file.
8875 2019-06-14 Tom Tromey <tromey@adacore.com>
8877 * NEWS: Move convenience variable news above Python news.
8879 2019-06-14 Tom Tromey <tom@tromey.com>
8881 * gnulib: Move directory to top-level.
8882 * configure.ac: Don't configure gnulib.
8883 * configure: Rebuild.
8884 * common/common-defs.h: Use new path to gnulib.
8885 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8887 (INCGNU): Look in new gnulib location.
8888 (HFILES_NO_SRCDIR): Remove gnulib files.
8889 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8890 (generated_files): Remove GNULIB_H.
8891 ($(LIBGNU), all-lib): Remove targets.
8892 (distclean): Don't mention GNULIB_BUILDDIR.
8893 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8895 2019-06-14 Tom Tromey <tromey@adacore.com>
8897 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8898 Warn if symbol file does not provide any symbols.
8900 2019-06-14 Tom Tromey <tromey@adacore.com>
8902 * source.c (find_and_open_source): Respect basenames_may_differ.
8904 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8906 * annotate.c (annotate_breakpoints_invalid): Make use of
8907 scoped_restore_terminal_state.
8908 (annotate_frames_invalid): Likewise.
8910 2019-06-14 Tom Tromey <tromey@adacore.com>
8912 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8913 allow assignment to an internalvar.
8915 2019-06-14 Tom Tromey <tromey@adacore.com>
8917 * ada-lex.l: Allow "_" in attribute names.
8919 2019-06-14 Tom Tromey <tromey@adacore.com>
8922 * regcache.c (registers_changed): Don't call alloca.
8923 * top.c (execute_command): Don't call alloca.
8925 2019-06-13 Pedro Alves <palves@redhat.com>
8927 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8928 'expression'. When parsing an expression, error out if there's
8929 junk after "unlimited".
8930 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8931 (do_set_command): Adjust calls to is_unlimited_literal.
8933 2019-06-13 Pedro Alves <palves@redhat.com>
8935 * compile/compile.c (make_compile_options_def_group): Add braces
8936 around array_view initializer.
8937 * thread.c (make_thread_apply_all_options_def_group)
8938 (make_thread_apply_all_options_def_group): Likewise.
8940 2019-06-13 Pedro Alves <palves@redhat.com>
8942 * NEWS (New commands): Mention "maint test-options
8943 require-delimiter", "maint test-options unknown-is-error", "maint
8944 test-options unknown-is-operand" and "maint show
8945 test-options-completion-result".
8946 (New command options, command completion): New section.
8947 (Completion improvements): New section.
8948 Mention that you can abbreviate "unlimited".
8950 2019-06-13 Pedro Alves <palves@redhat.com>
8952 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8953 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8954 * unittests/cli-utils-selftests.c (test_parse_flags)
8955 (test_parse_flags_qcs): Delete.
8956 (test_cli_utils): Don't call deleted functions.
8958 2019-06-13 Pedro Alves <palves@redhat.com>
8960 * thread.c: Include "cli/cli-option.h".
8961 (tp_array_compar_ascending): Global.
8962 (tp_array_compar): Delete function.
8963 (tp_array_compar_ascending, tp_array_compar_descending): New
8965 (ascending_option_def, qcs_flag_option_def)
8966 (thr_qcs_flags_option_defs)
8967 (make_thread_apply_all_options_def_group)
8968 (make_thread_apply_options_def_group): New.
8969 (thread_apply_all_command): Use gdb::option::process_options.
8970 (thread_apply_command_completer)
8971 (thread_apply_all_command_completer): New.
8972 (thread_apply_command): Use gdb::option::process_options.
8973 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8974 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8975 to generate help text of "thread apply". Adjust "taas"'s help.
8976 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8977 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8979 2019-06-13 Pedro Alves <palves@redhat.com>
8981 * thread.c (thread_apply_command): Check for invalid TID with
8982 isdigit instead of !isalpha.
8984 2019-06-13 Pedro Alves <palves@redhat.com>
8986 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8987 (validate_flags_qcs): New.
8988 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8989 (validate_flags_qcs): Declare.
8990 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8991 (make_frame_apply_options_def_group): New.
8992 (frame_apply_command_count): Process options with
8993 gdb::option::process_options.
8994 (frame_apply_completer): New.
8995 (frame_apply_level_completer, frame_apply_all_completer)
8996 (frame_apply_completer): New.
8997 (_initialize_stack): Update help of "frame apply", "frame apply
8998 level", "frame apply all" and "faas" to mention supported options
8999 and install command completers.
9000 * stack.h (frame_apply_all_completer): Declare.
9001 * thread.c: Include "stack.h".
9002 (tfaas_command): Add "--".
9003 (_initialize_thread): Update help "tfaas" to mention supported
9004 options and install command completer.
9006 2019-06-13 Pedro Alves <palves@redhat.com>
9008 * completer.c (complete_nested_command_line): New.
9009 (gdb_completion_word_break_characters_throw): Add assertion.
9010 * completer.h (complete_nested_command_line): Declare.
9012 2019-06-13 Pedro Alves <palves@redhat.com>
9014 * stack.c (parse_backtrace_qualifiers): New.
9015 (backtrace_command): Use it.
9016 (backtrace_command_completer): Complete on qualifiers.
9018 2019-06-13 Pedro Alves <palves@redhat.com>
9020 * frame.c: Include "cli/cli-option.h.
9021 (user_set_backtrace_options): New.
9022 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9024 (get_prev_frame): Adjust.
9025 (boolean_option_def, uinteger_option_def)
9026 (set_backtrace_option_defs): New.
9027 (_initialize_frame): Adjust and use
9028 gdb::option::add_setshow_cmds_for_options to install "set
9029 backtrace past-main" and "set backtrace past-entry".
9030 * frame.h: Include "cli/cli-option.h".
9031 (struct frame_print_options): Forward declare.
9032 (print_frame_arguments_all, print_frame_arguments_scalars)
9033 (print_frame_arguments_none): Declare.
9034 (print_entry_values): Delete declaration.
9035 (struct frame_print_options, user_frame_print_options): New.
9036 (struct set_backtrace_options): New.
9037 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9038 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9039 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9040 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9041 (list_args_or_locals): Add frame_print_options parameter.
9042 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9043 * python/py-framefilter.c (enumerate_args): Pass down
9044 USER_FRAME_PRINT_OPTIONS.
9045 * stack.c: Include "cli/cli-option.h".
9046 (print_frame_arguments_all, print_frame_arguments_scalars)
9047 (print_frame_arguments_none): Declare.
9048 (print_raw_frame_arguments, print_entry_values): Delete.
9049 (user_frame_print_options): New.
9050 (boolean_option_def, enum_option_def, frame_print_option_defs):
9052 (struct backtrace_cmd_options): New.
9053 (bt_flag_option_def): New.
9054 (backtrace_command_option_defs): New.
9055 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9056 (print_frame_arg, read_frame_arg, print_frame_args)
9057 (print_frame_info, print_frame): Add frame_print_options parameter
9059 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9060 (backtrace_command_1): Add frame_print_options and
9061 backtrace_cmd_options parameters and use them.
9062 (make_backtrace_options_def_group): New.
9063 (backtrace_command): Process command options with
9064 gdb::option::process_options.
9065 (backtrace_command_completer): New.
9066 (_initialize_stack): Extend "backtrace"'s help to mention
9067 supported options. Install completer for "backtrace".
9068 Install some settings commands with add_setshow_cmds_for_options.
9070 2019-06-13 Pedro Alves <palves@redhat.com>
9072 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9073 and that "set/show print raw frame-arguments" are now deprecated.
9075 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9077 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9078 * stack.c (_initialize_stack): Install "set/show print
9079 raw-frame-arguments", and deprecate "set/show print raw
9081 * valprint.c (_initialize_valprint): Deprecate "set/show print
9084 2019-06-13 Pedro Alves <palves@redhat.com>
9086 * compile/compile.c (struct compile_options): New.
9087 (compile_flag_option_def, compile_command_option_defs)
9088 (make_compile_options_def_group): New.
9089 (compile_file_command): Handle options with
9090 gdb::option::process_options.
9091 (compile_file_command_completer): New function.
9092 (compile_code_command): Handle options with
9093 gdb::option::process_options.
9094 (compile_code_command_completer): New function.
9095 (_initialize_compiler): Install completers for "compile code" and
9096 "compile file". Mention available options in "compile code" and
9097 "compile code"'s help.
9098 * completer.c (advance_to_completion_word): New, factored out from
9100 (advance_to_expression_complete_word_point): ... this.
9101 (advance_to_filename_complete_word_point): New.
9102 * completer.h (advance_to_filename_complete_word_point): New
9105 2019-06-13 Pedro Alves <palves@redhat.com>
9107 * compile/compile.c: Include "cli/cli-option.h".
9108 (compile_print_value): Scope data pointer is now a
9109 value_print_options pointer; adjust.
9110 (compile_print_command): Process options. Scope data pointer is
9111 now a value_print_options pointer; adjust.
9112 (_initialize_compile): Update "compile print"'s help to include
9113 supported options. Install a completer for "compile print".
9114 * cp-valprint.c (show_vtblprint, show_objectprint)
9115 (show_static_field_print): Delete.
9116 (_initialize_cp_valprint): Don't install "set print
9117 static-members", "set print vtbl", "set print object" here.
9118 * printcmd.c: Include "cli/cli-option.h" and
9119 "common/gdb_optional.h".
9120 (print_command_parse_format): Rework to fill in a
9121 value_print_options instead of a format_data.
9122 (print_value): Change parameter type from format_data pointer to
9123 value_print_options reference. Adjust.
9124 (print_command_1): Process options. Adjust to pass down a
9125 value_print_options.
9126 (print_command_completer): New.
9127 (_initialize_printcmd): Install print_command_completer as
9128 handle_brkchars completer for the "print" command. Update
9129 "print"'s help to include supported options.
9130 * valprint.c: Include "cli/cli-option.h".
9131 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9132 here from cp-valprint.c.
9133 (boolean_option_def, uinteger_option_def)
9134 (value_print_option_defs, make_value_print_options_def_group):
9135 New. Use gdb::option::add_setshow_cmds_for_options to install
9136 "set print elements", "set print null-stop", "set print repeats",
9137 "set print pretty", "set print union", "set print array", "set
9138 print address", "set print symbol", "set print array-indexes".
9139 * valprint.h: Include <string> and "cli/cli-option.h".
9140 (make_value_print_options_def_group): Declare.
9141 (print_value): Change parameter type from format_data pointer to
9142 value_print_options reference.
9143 (print_command_completer): Declare.
9145 2019-06-13 Pedro Alves <palves@redhat.com>
9147 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9148 (COMMON_SFILES): Add maint-test-settings.c.
9149 * cli/cli-decode.c (boolean_enums): New global, factored out from
9151 (add_setshow_boolean_cmd): ... here.
9152 * cli/cli-decode.h (boolean_enums): Declare.
9153 * cli/cli-option.c: New file.
9154 * cli/cli-option.h: New file.
9155 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9156 factored out from ...
9157 (parse_cli_boolean_value(const char *)): ... this.
9158 (is_unlimited_literal): Change parameter type to pointer to
9159 pointer. Adjust and advance ARG pointer.
9160 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9161 (parse_cli_var_enum): New, factored out from ...
9162 (do_set_command): ... this. Adjust.
9163 * cli/cli-setshow.h (parse_cli_boolean_value)
9164 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9165 (parse_cli_var_enum): Declare.
9166 * cli/cli-utils.c: Include "cli/cli-option.h".
9167 (get_ulongest): New.
9168 * cli/cli-utils.h (get_ulongest): Declare.
9169 (check_for_argument): New overloads.
9170 * maint-test-options.c: New file.
9172 2019-06-13 Pedro Alves <palves@redhat.com>
9174 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9175 parse a range if "-" is at the end of the string.
9177 2019-06-13 Pedro Alves <palves@redhat.com>
9179 * cli/cli-setshow.c (parse_auto_binary_operation)
9180 (parse_cli_boolean_value): Don't allow "o".
9182 2019-06-13 Pedro Alves <palves@redhat.com>
9184 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9185 * NEWS: Mention maint test-settings KIND.
9186 * maint-test-settings.c: New file.
9188 2019-06-13 Pedro Alves <palves@redhat.com>
9190 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9192 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9195 2019-06-13 Pedro Alves <palves@redhat.com>
9197 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9200 2019-06-13 Pedro Alves <palves@redhat.com>
9202 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9204 2019-06-13 Pedro Alves <palves@redhat.com>
9206 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9207 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9209 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9210 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9212 (check_for_argument): Skip spaces after argument.
9214 2019-06-13 Pedro Alves <palves@redhat.com>
9216 * thread.c (thread_apply_command): Adjust TID parsing.
9217 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9218 detected before end of string.
9219 (tid_is_in_list): Error out if LIST is invalid.
9221 2019-06-13 Pedro Alves <palves@redhat.com>
9223 * completer.c (complete_line_internal_1): Rewind completion word
9225 (completion_tracker::advance_custom_word_point_by): Change
9226 parameter type to int.
9227 * completer.h (completion_tracker::advance_custom_word_point_by):
9230 2019-06-13 Pedro Alves <palves@redhat.com>
9232 * completer.c (advance_to_completion_word): Handle delimiters.
9234 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9236 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9238 2019-06-11 Tom Tromey <tom@tromey.com>
9240 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9241 (xmalloc_failed): Move to alloc.c.
9242 * alloc.c: New file.
9243 * Makefile.in (COMMON_SFILES): Add alloc.c.
9245 2019-06-11 Tom Tromey <tom@tromey.com>
9247 * nat/linux-waitpid.c: Don't include server.h.
9248 (linux_debug): Remove.
9249 (my_waitpid): Update.
9251 2019-06-11 Tom Tromey <tromey@adacore.com>
9253 * infcall.c (_initialize_infcall): Remove trailing newline from
9255 * user-regs.c (_initialize_user_regs): Remove trailing newline
9257 * typeprint.c (_initialize_typeprint): Remove trailing newline
9259 * reverse.c (_initialize_reverse): Remove trailing newlines from
9261 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9263 * language.c (add_set_language_command): Remove trailing newline
9265 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9267 * disasm.c (_initialize_disasm): Remove trailing newline from
9269 * top.c (init_main): Remove trailing newline from help.
9270 * interps.c (_initialize_interpreter): Remove trailing newline
9272 * btrace.c (_initialize_btrace): Remove trailing newlines from
9274 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9276 * python/python.c (_initialize_python): Remove trailing newline
9278 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9280 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9281 from help. Reformat some text.
9282 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9284 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9287 2019-06-11 Tom Tromey <tromey@adacore.com>
9289 * darwin-nat.c (darwin_decode_exception_message)
9290 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9292 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9294 * valops.c (value_slice): Check for not allocated or not
9297 2019-06-10 Tom de Vries <tdevries@suse.de>
9300 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9301 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9304 2019-06-10 Tom de Vries <tdevries@suse.de>
9307 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9308 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9310 2019-06-10 Tom de Vries <tdevries@suse.de>
9313 * symtab.c (struct demangled_name_entry): Add language field.
9314 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9315 static minimal symbol". Set and use language field.
9317 2019-06-10 Tom Tromey <tromey@adacore.com>
9319 * ada-lang.c (_initialize_ada_language): Update help text.
9321 2019-06-10 Tom Tromey <tromey@adacore.com>
9323 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9325 * guile/guile.c (handle_boot_error): Don't end warning with a
9327 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9328 warning with a newline.
9329 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9331 (s12z_frame_cache): Likewise.
9332 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9334 * solib-svr4.c (disable_probes_interface): Don't end warning with
9336 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9338 * python/python.c (do_finish_initialization): Don't end warning
9341 2019-06-10 Tom Tromey <tom@tromey.com>
9343 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9344 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9347 2019-06-10 Tom Tromey <tromey@adacore.com>
9349 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9351 (elf_new_init): Don't call stabsread_new_init.
9352 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9353 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9354 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9356 2019-06-10 Tom de Vries <tdevries@suse.de>
9360 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9362 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9364 * source.c (find_and_open_source): Also rewrite relative file
9367 2019-04-26 Amos Bird <amosbird@gmail.com>
9369 * annotate.c (annotate_thread_exited): Add "thread-exited"
9372 2019-06-06 Tom Tromey <tromey@adacore.com>
9374 * maint.h (class scoped_command_stats): Use
9375 DISABLE_COPY_AND_ASSIGN.
9376 <print_time>: New method.
9377 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9379 (scoped_command_stats::print_time): New method.
9381 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9383 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9384 instructions of lengths 6 or 8 bytes.
9386 2019-06-04 Pedro Alves <palves@redhat.com>
9388 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9390 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9391 * breakpoint.c (condition_completer): Likewise.
9392 * cli/cli-dump.c (scan_expression): Likewise.
9393 * common/filestuff.c (mkdir_recursive): Likewise.
9394 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9395 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9396 (gdb_abspath): Likewise.
9397 * compile/compile-cplus-types.c
9398 (compile_cplus_instance::decl_name): Likewise.
9399 * completer.c (complete_explicit_location):
9400 (signal_completer, reg_or_group_completer_1): Likewise.
9401 * cp-support.c (cp_remove_params_if_any): Likewise.
9402 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9403 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9404 * infcmd.c (strip_bg_char): Likewise.
9405 * linespec.c (copy_token_string): Likewise.
9406 * mi/mi-main.c (output_cores): Likewise.
9407 * psymtab.c (psymtab_search_name):
9408 * symfile.c (test_set_ext_lang_command): Likewise.
9409 * target.c (target_fileio_read_stralloc): Likewise.
9410 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9411 * value.c (complete_internalvar): Likewise.
9413 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9415 Add objfile property to gdb.Type.
9416 * NEWS: Mention Python API addition.
9417 * python/py-type.c (typy_get_objfile): New method.
9419 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9421 * NEWS: Mention the new set|show style [title|highlight].
9422 Mention changes to "show style", "help" and "apropos".
9424 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9426 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9427 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9428 instead of print_help_for_command.
9429 (print_doc_of_command): New function.
9430 (help_list): Add 'apropos -v word' suggestion.
9431 (print_help_for_command): Style the command name using title style.
9432 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9433 (_initialize_cli_cmds): Describe -v in apropos_command help.
9435 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9437 * cli/cli-style.h (cli_style_option): Add name in constructor,
9438 add m_name class member, add constructor with intensity,
9439 add name class function.
9440 (cli_style_option::add_setshow_commands): Remove name argument.
9441 (highlight_style, title_style): New styles.
9442 * cli/cli-style.c (do_show): New function that shows a style
9443 characteristic styling the style name with itself.
9444 (set_style_name): New function.
9445 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9446 Update all callers according to the changes in cli/cli-style.h.
9447 * utils.h (fputs_highlighted): New function.
9448 * utils.c (fputs_highlighted): Likewise.
9450 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9452 * NEWS: Mention new pipe command and new convenience variables.
9454 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9456 * cli/cli-cmds.c (pipe_command): New function.
9457 (_initialize_cli_cmds): Call add_com for pipe_command.
9458 Define | as an alias for pipe.
9459 (exit_status_set_internal_vars): New function.
9460 (shell_escape): Call exit_status_set_internal_vars.
9461 cli/cli-decode.c (find_command_name_length): Recognize | as
9462 a single character command.
9464 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9467 top.c (execute_command_to_ui_file): New function, mostly a copy
9468 of execute_command_to_string.
9469 (execute_command_to_string): Implement by calling
9470 execute_command_to_ui_file.
9472 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9474 * top.h (saved_command_line): Remove declaration.
9475 * top.c (previous_saved_command_line, previous_repeat_arguments):
9477 (saved_command_line): Make static, define together with other
9479 (dont_repeat): Clear repeat_arguments.
9480 (repeat_previous, get_saved_command_line, save_command_line):
9482 (gdb_init): Initialize saved_command_line
9483 and previous_saved_command_line.
9484 * main.c (captured_main_1): Remove saved_command_line initialization.
9485 * event-top.c (handle_line_of_input): Update to use
9486 the new 'repeat' related functions instead of direct access to
9488 * command.h (repeat_previous, get_saved_command_line,
9489 save_command_line): New declarations.
9490 (dont_repeat): Add comment.
9492 2019-05-30 Tom Tromey <tromey@adacore.com>
9494 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9496 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9498 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9501 * completer.c (complete): Initialize variable word.
9503 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9505 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9506 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9507 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9508 'body' is NULL to the outter 'if', protecting the '!is_define'
9511 2019-05-29 Tom Tromey <tromey@adacore.com>
9513 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9514 (dwarf_unknown): New function.
9515 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9516 (dwarf_type_encoding_name): Use dwarf_unknown.
9518 2019-05-29 Tom Tromey <tromey@adacore.com>
9521 * cp-valprint.c (cp_print_value_fields): Call
9522 cp_print_static_field inside "try".
9524 2019-05-29 Tom Tromey <tromey@adacore.com>
9526 * inflow.c (struct terminal_info): Add default operator=.
9527 * configure: Rebuild.
9528 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9529 -Wdeprecated-copy-dtor, -Wredundant-move.
9531 2019-05-29 Tom Tromey <tromey@adacore.com>
9534 * infcmd.c (print_return_value_1): Handle finish_print
9536 (show_print_finish): New function.
9537 (_initialize_infcmd): Add "set/show print finish" commands.
9538 * valprint.c (user_print_options): Initialize new member.
9539 * valprint.h (struct value_print_options) <finish_print>: New
9542 2019-05-28 Tom Tromey <tromey@adacore.com>
9544 * ada-lang.c (ada_remove_Xbn_suffix)
9545 (find_old_style_renaming_symbol)
9546 (parse_old_style_renaming): Remove.
9547 (ada_find_renaming_symbol): Don't call
9548 find_old_style_renaming_symbol.
9549 (ada_is_renaming_symbol): Rename from
9550 ada_find_renaming_symbol. Remove "block" parameter. Return
9552 (ada_read_var_value): Update and simplify.
9553 * ada-exp.y (write_var_or_type): Remove old code.
9555 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9558 * event-top.c: Remove include comment.
9559 * inflow.c (class scoped_ignore_sigttou): Move from here...
9560 * inflow.h (class scoped_ignore_sigttou): ...to here.
9561 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9562 * top.c: Remove include comment.
9564 2019-05-27 Tom Tromey <tom@tromey.com>
9568 2019-05-22 Tom Tromey <tromey@adacore.com>
9570 * target.c (target_follow_exec): Constify parameter.
9571 * target-delegates.c: Rebuild.
9572 * remote.c (remote_target::follow_exec): Constify parameter.
9573 * infrun.c (follow_exec): Constify parameter.
9574 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9575 (target_follow_exec): Likewise.
9577 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9579 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9580 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9582 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9584 * NEWS: Add debugredirect and testsuite sections.
9586 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9588 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9589 target descriptions using exclusively floating point register name
9592 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9595 * f-lang.c (build_fortran_types): Handle the case where
9596 gdbarch_floatformat_for_type returns a nullptr.
9598 2019-05-21 Tom de Vries <tdevries@suse.de>
9601 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9603 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9606 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9608 * i386-tdep.c (i386_floatformat_for_type): Use
9609 floatformats_ia64_quad for the 16-byte floating point component
9610 within a fortran 32-byte complex number.
9612 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9614 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9615 delete default constructor.
9616 (find_partial_die): Update to return const struct.
9617 (partial_die_parent_scope): Move variable declaration into scope
9618 of its use and change its type to auto.
9619 (guess_partial_die_structure_name): Likewise.
9620 (partial_die_info::fixup): Likewise.
9622 2019-05-17 Tom Tromey <tromey@adacore.com>
9624 * source.c (find_and_open_source): Remove cast.
9626 2019-05-17 Tom Tromey <tromey@adacore.com>
9628 * annotate.c (annotate_source): Make "filename" const.
9629 * annotate.h (annotate_source): Use const.
9631 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9633 * disasm.c (set_disassembler_options): Send errors to stderr.
9635 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9637 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9638 (cli_interp_base::set_logging): Check debug_redirect.
9639 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9640 * cli/cli-logging.c (debug_redirect): Add static variable.
9641 (pop_output_files): Add default param.
9642 (handle_redirections): Print debug setting.
9643 (show_logging_command): Likewise.
9644 (_initialize_cli_logging): Add debugredirect command.
9645 * interps.c (current_interp_set_logging): Add debug_redirect
9647 * interps.h (set_logging): Add debug_redirect parameter.
9648 (current_interp_set_logging): Likewise.
9649 * mi/mi-common.h: Likewise.
9650 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9652 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9653 Tom Tromey <tromey@adacore.com>
9655 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9657 * cli/cli-interp.h (make_logging_output): Remove declaration.
9658 * cli/cli-logging.c (make_logging_output): Remove function.
9659 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9661 * ui-file.c (tee_file::tee_file): Remove bools.
9662 (tee_file::~tee_file): Remove deletes.
9663 * ui-file.h (tee_file): Remove bools.
9665 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9667 * mi/mi-cmds.h (mi_cmd_complete): New function.
9668 * mi/mi-main.c (mi_cmd_complete): Likewise.
9669 * mi/mi-cmds.c: Define new MI command -complete.
9670 * NEWS: Mention new -complete command.
9672 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9674 * completer.h (complete): New function.
9675 * completer.c (complete): Likewise.
9676 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9677 function defined in completer.h.
9679 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9681 * MAINTAINERS (Write After Approval): Add myself.
9683 2019-05-17 Tom de Vries <tdevries@suse.de>
9686 * dwarf2read.c (struct cu_partial_die_info): New struct.
9687 (find_partial_die): Return cu_partial_die_info.
9688 (partial_die_parent_scope, guess_partial_die_structure_name)
9689 (partial_die_info::fixup): Handle new return type of find_partial_die.
9691 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9693 PR breakpoints/24541
9694 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9695 "std::string", simplifying the algorithm.
9697 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9699 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9700 (stap_static_probe_ops::get_probes): Likewise.
9702 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9704 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9705 '-')" and "else if".
9706 (stap_parse_single_operand): Join checks for
9707 "gdbarch_stap_parse_special_token_p" and
9708 "gdbarch_stap_parse_special_token" in the same "if" statement.
9709 Invert check when verifying for operation on register
9712 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9714 * stap-probe.c (stap_get_opcode): Update comment.
9715 (stap_get_expected_argument_type): Likewise.
9716 (handle_stap_probe): Likewise.
9718 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9720 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9721 return type to 'bool'. Adjust comment. Use 'bool' when
9723 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9724 * stap-probe.c (stap_parse_argument_1): Likewise.
9725 (stap_is_operator): Likewise.
9726 (stap_is_generic_prefix): Likewise.
9727 (stap_is_register_prefix): Likewise.
9728 (stap_is_register_indirection_prefix): Likewise.
9729 (stap_is_integer_prefix): Likewise.
9730 (stap_generic_check_suffix): Likewise.
9731 (stap_check_integer_suffix): Likewise.
9732 (stap_check_register_suffix): Likewise.
9733 (stap_check_register_indirection_suffix): Likewise.
9734 (stap_parse_register_operand): Likewise.
9735 (stap_parse_single_operand): Likewise.
9736 (stap_parse_argument_1): Likewise.
9737 (stap_probe::get_argument_count): Likewise.
9738 (stap_is_operator): Likewise.
9740 2019-05-16 Tom Tromey <tromey@adacore.com>
9742 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9745 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9747 * linux-thread-db.c (try_thread_db_load_1): Change return type
9749 (try_thread_db_load): Likewise.
9750 (try_thread_db_load_from_pdir_1): Likewise.
9751 (try_thread_db_load_from_pdir): Likewise.
9752 (try_thread_db_load_from_sdir): Likewise.
9753 (try_thread_db_load_from_dir): Likewise.
9754 (thread_db_load_search): Likewise.
9755 (has_libpthread): Likewise.
9756 (thread_db_load): Likewise.
9758 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9760 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9761 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9762 NULL, and complain/return if that's the case.
9764 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9766 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9767 (advance, posn, abstract_read_memory): New functions.
9768 [struct mem_read_abstraction]: New struct.
9769 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9771 2019-05-14 Tom Tromey <tromey@adacore.com>
9773 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9774 value is not lval_memory.
9776 2019-05-14 Tom Tromey <tromey@adacore.com>
9778 * solib.c (info_sharedlibrary_command): Style the file name.
9780 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9782 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9783 (aarch64_vnv_type): Likewise.
9784 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9785 * common/tdesc.c: Likewise.
9786 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9787 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9788 * features/aarch64-fpu.xml: Add ieee half view.
9789 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9790 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9791 * gdbtypes.h (struct builtin_type): Likewise.
9792 (struct objfile_type): Likewise.
9794 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9796 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9798 * location.h (string_to_event_location): Likewise.
9800 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9804 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9806 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9807 New variable declaration.
9808 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9810 (print_one_breakpoint): Use ui_out::test_flags and new global
9811 variable to compute use_fixed_output.
9812 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9814 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9815 (mi_multi_location_breakpoint_output_fixed): Remove.
9816 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9818 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9819 fix_multi_location_breakpoint_output flag if version >= 3.
9820 * ui-out.h (enum ui_out_flag)
9821 <fix_multi_location_breakpoint_output>: New enumerator.
9823 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9825 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9827 2019-05-10 Tom Tromey <tromey@adacore.com>
9829 * ada-lang.c (catch_ada_completer): New function.
9830 (_initialize_ada_language): Use it.
9832 2019-05-10 Tom Tromey <tromey@adacore.com>
9834 * thread.c (print_thread_info): Make "requested_threads" const.
9835 * gdbthread.h (print_thread_info): Make "requested_threads"
9837 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9838 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9840 2019-05-08 Tom Tromey <tom@tromey.com>
9842 * gdbtypes.c (objfile_type_data): Change type.
9843 (objfile_type, _initialize_gdbtypes): Update.
9845 2019-05-08 Tom Tromey <tom@tromey.com>
9847 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9848 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9849 (_initialize_dwarf2_frame): Update.
9851 2019-05-08 Tom Tromey <tom@tromey.com>
9853 * objc-lang.c (objc_objfile_data): Change type.
9854 (find_methods): Update.
9855 (_initialize_objc_lang): Remove.
9857 2019-05-08 Tom Tromey <tom@tromey.com>
9859 * stabsread.c (rs6000_builtin_type_data): Change type.
9860 (rs6000_builtin_type, _initialize_stabsread): Update.
9862 2019-05-08 Tom Tromey <tom@tromey.com>
9864 * mips-tdep.c (mips_pdr_data): Remove.
9865 (_initialize_mips_tdep): Update.
9867 2019-05-08 Tom Tromey <tom@tromey.com>
9869 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9870 (hppa_init_objfile_priv_data, read_unwind_info)
9871 (find_unwind_entry, _initialize_hppa_tdep): Update.
9873 2019-05-08 Tom Tromey <tom@tromey.com>
9875 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9876 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9878 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9880 2019-05-08 Tom Tromey <tom@tromey.com>
9882 * mdebugread.c (basic_type_data): Change type.
9883 (basic_type, _initialize_mdebugread): Update.
9885 2019-05-08 Tom Tromey <tom@tromey.com>
9887 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9889 2019-05-08 Tom Tromey <tom@tromey.com>
9891 * nto-tdep.c (nto_inferior_data_reg): Change type.
9892 (nto_inferior_data): Update.
9893 (nto_inferior_data_cleanup, nto_new_inferior_data)
9894 (_initialize_nto_tdep): Remove.
9895 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9897 2019-05-08 Tom Tromey <tom@tromey.com>
9899 * ada-lang.c (struct ada_inferior_data): Add initializers.
9900 (ada_inferior_data): Change type.
9901 (ada_inferior_data_cleanup): Remove.
9902 (get_ada_inferior_data, ada_inferior_exit)
9903 (struct ada_pspace_data): Add initializers, destructor.
9904 (ada_pspace_data_handle): Change type.
9905 (get_ada_pspace_data): Update.
9906 (ada_pspace_data_cleanup): Remove.
9908 2019-05-08 Tom Tromey <tom@tromey.com>
9910 * coffread.c (struct coff_symfile_info): Add initializers.
9911 (coff_objfile_data_key): Move lower. Change type.
9912 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9914 (coff_free_info): Remove.
9916 2019-05-08 Tom Tromey <tom@tromey.com>
9918 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9919 (fbsd_pspace_data_handle): Move lower. Change type.
9920 (get_fbsd_pspace_data): Update.
9921 (fbsd_pspace_data_cleanup): Remove.
9922 (_initialize_fbsd_tdep): Update.
9924 2019-05-08 Tom Tromey <tom@tromey.com>
9926 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9927 (get_ada_tasks_pspace_data): Update.
9928 (ada_tasks_pspace_data_cleanup): Remove.
9929 (_initialize_tasks): Update.
9930 (ada_tasks_inferior_data_handle): Change type.
9931 (get_ada_tasks_inferior_data): Update.
9932 (ada_tasks_inferior_data_cleanup): Remove.
9933 (struct ada_tasks_pspace_data): Add initializers.
9935 2019-05-08 Tom Tromey <tom@tromey.com>
9937 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9938 * symfile-debug.c (debug_sym_get_probes): Change type.
9939 * stap-probe.c (handle_stap_probe):
9940 (stap_static_probe_ops::get_probes): Change type.
9941 * probe.h (class static_probe_ops) <get_probes>: Change type.
9942 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9943 (parse_probes_in_pspace): Update.
9944 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9946 (any_static_probe_ops::get_probes): Change type.
9947 * elfread.c (elfread_data): New typedef.
9948 (probe_key): Change type.
9949 (elf_get_probes): Likewise. Update.
9950 (probe_key_free): Remove.
9951 (_initialize_elfread): Update.
9952 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9954 (dtrace_process_dof_probe, dtrace_process_dof)
9955 (dtrace_static_probe_ops::get_probe): Change type.
9957 2019-05-08 Tom Tromey <tom@tromey.com>
9959 * xcoffread.c (struct xcoff_symfile_info): Rename from
9960 coff_symfile_info. Add initializers.
9961 (xcoff_objfile_data_key): Move lower. Change type.
9962 (XCOFF_DATA): Rewrite.
9963 (xcoff_free_info): Remove.
9964 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9965 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9966 (xcoff_initial_scan): Update.
9968 2019-05-08 Tom Tromey <tom@tromey.com>
9970 * solib-svr4.c (struct svr4_info): Add initializers and
9972 <probes_table>: Now an htab_up.
9973 (solib_svr4_pspace_data): Change type.
9974 (free_probes_table): Simplify.
9975 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9976 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9977 (probes_table_remove_objfile_probes, register_solib_event_probe)
9978 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9979 (_initialize_svr4_solib): Update.
9981 2019-05-08 Tom Tromey <tom@tromey.com>
9983 * remote.c (remote_pspace_data): Change type.
9984 (remote_pspace_data_cleanup): Remove.
9985 (get_remote_exec_file, set_pspace_remote_exec_file)
9986 (_initialize_remote): Update.
9988 2019-05-08 Tom Tromey <tom@tromey.com>
9990 * breakpoint.c (breakpoint_objfile_key): Change type.
9991 (get_breakpoint_objfile_data): Update.
9992 (free_breakpoint_objfile_data): Remove.
9993 (_initialize_breakpoint): Update.
9995 2019-05-08 Tom Tromey <tom@tromey.com>
9997 * linux-tdep.c (struct linux_info): Add initializers.
9998 (linux_inferior_data): Move. Change type.
9999 (invalidate_linux_cache_inf): Update.
10000 (linux_inferior_data_cleanup): Remove.
10001 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10003 2019-05-08 Tom Tromey <tom@tromey.com>
10005 * auxv.c (auxv_inferior_data): Move. Change type.
10006 (auxv_inferior_data_cleanup): Remove.
10007 (invalidate_auxv_cache_inf): Rewrite.
10008 (get_auxv_inferior_data, _initialize_auxv): Update.
10010 2019-05-08 Tom Tromey <tom@tromey.com>
10012 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10013 (symfile_debug_objfile_data_key): Change type.
10014 (symfile_debug_installed, debug_qf_has_symbols)
10015 (debug_qf_find_last_source_symtab)
10016 (debug_qf_forget_cached_source_info)
10017 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10018 (debug_qf_print_stats, debug_qf_dump)
10019 (debug_qf_expand_symtabs_for_function)
10020 (debug_qf_expand_all_symtabs)
10021 (debug_qf_expand_symtabs_with_fullname)
10022 (debug_qf_map_matching_symbols)
10023 (debug_qf_expand_symtabs_matching)
10024 (debug_qf_find_pc_sect_compunit_symtab)
10025 (debug_qf_map_symbol_filenames)
10026 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10027 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10028 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10029 (debug_sym_read_linetable, debug_sym_relocate): Update.
10030 (symfile_debug_free_objfile): Remove.
10031 (install_symfile_debug_logging, _initialize_symfile_debug):
10034 2019-05-08 Tom Tromey <tom@tromey.com>
10036 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10037 allocate_on_obstack.
10038 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10039 (get_dwarf2_per_objfile): Update.
10040 (set_dwarf2_per_objfile): Remove.
10041 (dwarf2_has_info, dwarf2_get_section_info): Update.
10042 (dwarf2_free_objfile): Remove.
10043 (_initialize_dwarf2_read): Update.
10045 2019-05-08 Tom Tromey <tom@tromey.com>
10047 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10049 <unsupported_script_warning_printed,
10050 script_not_found_warning_printed>: Now bool.
10051 (auto_load_pspace_data): Change type.
10052 (~auto_load_pspace_info): Rename from
10053 auto_load_pspace_data_cleanup.
10054 (get_auto_load_pspace_data, init_loaded_scripts_info)
10055 (clear_section_scripts, maybe_print_unsupported_script_warning)
10056 (maybe_print_script_not_found_warning, _initialize_auto_load):
10059 2019-05-08 Tom Tromey <tom@tromey.com>
10061 * objfiles.c (objfile_pspace_info): Add destructor and
10063 (objfiles_pspace_data): Change type.
10064 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10065 (get_objfile_pspace_data): Update.
10066 (objfiles_bfd_data): Change type.
10067 (get_objfile_bfd_data): Update.
10068 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10070 2019-05-08 Tom Tromey <tom@tromey.com>
10072 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10074 (get_catch_syscall_inferior_data): Update.
10075 (catch_syscall_inferior_data_cleanup): Remove.
10076 (_initialize_break_catch_syscall): Update.
10078 2019-05-08 Tom Tromey <tom@tromey.com>
10080 * inflow.c (struct terminal_info): Add destructor and
10082 (inflow_inferior_data): Change type.
10083 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10084 (get_inflow_inferior_data, inflow_inferior_exit)
10085 (swap_terminal_info, _initialize_inflow): Update.
10087 2019-05-08 Tom Tromey <tom@tromey.com>
10089 * target-dcache.c (target_dcache_cleanup): Remove.
10090 (target_dcache_aspace_key): Change type.
10091 (target_dcache_init_p, target_dcache_invalidate)
10092 (target_dcache_get, target_dcache_get_or_init)
10093 (_initialize_target_dcache): Update.
10094 * dcache.h (struct dcache_deleter): New.
10096 2019-05-08 Tom Tromey <tom@tromey.com>
10098 * symtab.c (struct symbol_cache): Add destructor and
10100 (symbol_cache_key): Move. Change type.
10101 (make_symbol_cache, free_symbol_cache): Remove.
10102 (get_symbol_cache): Update.
10103 (symbol_cache_cleanup): Remove.
10104 (ALL_PSPACES, symbol_cache_flush)
10105 (maintenance_print_symbol_cache)
10106 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10109 2019-05-08 Tom Tromey <tom@tromey.com>
10111 * symtab.c (struct main_info): Add destructor and initializers.
10112 (main_progspace_key): Move. Change type.
10113 (get_main_info): Update.
10114 (main_info_cleanup): Remove.
10115 (_initialize_symtab): Update.
10117 2019-05-08 Tom Tromey <tom@tromey.com>
10119 * registry.h (DECLARE_REGISTRY): Define the _key class.
10121 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10123 * NEWS: Merge two 'New commands' sections.
10125 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10127 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10128 parameter and use Ada language definition instead.
10129 (ada_val_print_ptr): Remove unused language parameter.
10130 (ada_val_print_num): Remove language parameter and use Ada language
10131 definition instead.
10132 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10134 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10135 parameter and use Ada language definition instead.
10136 (ada_val_print_1): Update all ada_val_print_xxx calls.
10137 Remove language parameter.
10138 (ada_val_print): Update ada_val_print_1 call.
10140 2019-05-08 Tom Tromey <tromey@adacore.com>
10142 * remote.c (remote_hw_watchpoint_limit)
10143 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10146 2019-05-08 Tom Tromey <tromey@adacore.com>
10148 * maint.c (_initialize_maint_cmds): Move initialization code to
10150 (watchdog, show_watchdog): Move to remote.c.
10151 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10153 (_initialize_remote): Move initialization code from maint.c.
10154 * defs.h (watchdog): Don't declare.
10156 2019-05-08 Tom Tromey <tromey@adacore.com>
10158 * tui/tui-interp.c: Include main.h.
10159 * interps.c: Include main.h.
10160 * main.h (interpreter_p): Declare.
10161 * defs.h (interpreter_p): Don't declare.
10163 2019-05-08 Tom Tromey <tromey@adacore.com>
10165 * dwarf2loc.c: Include dwarf2read.h.
10166 * defs.h (read_unsigned_leb128): Don't declare.
10167 * dwarf2read.h (read_unsigned_leb128): Declare.
10169 2019-05-08 Tom Tromey <tromey@adacore.com>
10171 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10174 2019-05-08 Tom Tromey <tromey@adacore.com>
10176 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10177 when no wrap column is set.
10179 2019-05-08 Tom Tromey <tromey@adacore.com>
10181 * c-lang.c (c_get_string): Handle non-C-style arrays.
10183 2019-05-08 Tom Tromey <tromey@adacore.com>
10185 * typeprint.c (print_offset_data::update): Print the bit offset,
10186 not the number of bits remaining.
10188 2019-05-08 Tom Tromey <tromey@adacore.com>
10190 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10191 padding at end of comment.
10193 2019-05-08 Tom Tromey <tromey@adacore.com>
10195 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10196 Compare main types.
10198 2019-05-06 Tom Tromey <tom@tromey.com>
10200 * common/scoped_mmap.c: Include common-defs.h.
10201 * common/scoped_mmap.h: Don't include config.h.
10203 2019-05-04 Tom Tromey <tom@tromey.com>
10205 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10206 (struct aarch64_call_info): Add initializers.
10207 <si>: Now a std::vector.
10208 (pass_on_stack, aarch64_push_dummy_call): Update.
10210 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10211 Tom Tromey <tom@tromey.com>
10213 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10214 (ppc_threads): Now a std::vector. Now static.
10215 (hwdebug_find_thread_points_by_tid)
10216 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10219 2019-05-04 Tom Tromey <tom@tromey.com>
10221 * arc-tdep.c (arc_tdesc_init): Return bool.
10223 2019-05-04 Tom Tromey <tom@tromey.com>
10225 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10226 Use gdb_assert_not_reached.
10228 2019-05-04 Tom Tromey <tom@tromey.com>
10230 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10233 2019-05-04 Tom Tromey <tom@tromey.com>
10235 * arc-tdep.c (arc_tdesc_init): Use bool.
10237 2019-05-04 Tom Tromey <tom@tromey.com>
10239 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10241 2019-05-04 Tom Tromey <tom@tromey.com>
10243 * cli/cli-cmds.c (valid_command_p): Return bool.
10245 2019-05-04 Tom Tromey <tom@tromey.com>
10247 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10248 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10250 2019-05-04 Raul Tambre <raul@tambre.ee>
10252 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10253 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10254 operator for comparison.
10256 2019-05-04 Tom Tromey <tom@tromey.com>
10258 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10259 (lookup_partial_symbol, print_partial_symbols)
10260 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10261 (psymbol_compare): Update.
10262 (add_psymbol_to_bcache): Clear the entire psymbol.
10263 (maintenance_check_psymtabs): Update.
10264 * psympriv.h (struct partial_symbol): Don't derive from
10265 general_symbol_info.
10266 <obj_section, unrelocated_address, address,
10267 set_unrelocated_address>: Update.
10268 <ginfo>: New member.
10269 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10270 (debug_names::write_psymbols): Update.
10272 2019-05-04 Tom de Vries <tdevries@suse.de>
10274 * contrib/cc-with-tweaks.sh: Support -n arg.
10276 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10278 * corelow.c (core_target::detach): Ensure frame cache and
10279 register caches are cleared.
10280 inferior.c (exit_inferior_1): Likewise.
10282 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10283 Tom Tromey <tom@tromey.com>
10285 * dictionary.c (collate_pending_symbols_by_language): Remove
10286 "struct" from foreach.
10287 * symtab.c (lookup_global_symbol_from_objfile)
10288 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10290 * ser-tcp.c (net_open): Remove "struct" from foreach.
10291 * objfiles.c (objfile_relocate, objfile_rebase)
10292 (objfile_has_symbols): Remove "struct" from foreach.
10293 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10295 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10297 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10298 "struct" from foreach.
10299 * ada-lang.c (create_excep_cond_exprs)
10300 (ada_exception_catchpoint_cond_string): Remove "struct" from
10303 2019-05-03 Tom Tromey <tromey@adacore.com>
10305 * ada-exp.y (convert_char_literal): Check suffix of each
10308 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10311 * ada-exp.y (yywrap): Don't define.
10312 * ada-lex.l (%option): Add noyywrap
10315 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10317 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10318 _WIN32_WINNT to the XP level, unless already defined to a higher
10321 * unittests/parse-connection-spec-selftests.c:
10323 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10326 * symfile.c (find_separate_debug_file): Remove colon from the
10327 drive spec of DOS/Windows file names of the target, so that the
10328 file name produced from DEBUGDIR and the target's directory will
10329 be valid on DOS/Windows systems.
10331 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10333 * rust-lang.c (val_print_struct): Handle printing structures
10334 containing strings.
10336 2019-05-02 Tom Tromey <tromey@adacore.com>
10338 * valarith.c (_initialize_valarith): Remove.
10340 2019-05-01 Tom Tromey <tromey@adacore.com>
10342 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10345 2019-05-01 Tom Tromey <tromey@adacore.com>
10347 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10348 for big-endian copies.
10350 2019-04-30 Ali Tamur <tamur@google.com>
10351 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10352 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10353 (read_3_bytes): New function.
10355 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10357 * windows-nat.c (main_thread_id): Delete.
10358 (handle_output_debug_string): Replace main_thread_id by
10359 current_event.dwThreadId.
10360 (fake_create_process): Likewise.
10361 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10362 Do not set main_thread_id.
10363 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10364 current_event.dwThreadId.
10365 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10367 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10369 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10370 Use current_event.dwThreadId instead of main_thread_id.
10372 2019-04-30 Tom Tromey <tromey@adacore.com>
10374 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10375 (create_excep_cond_exprs): Iterate over program spaces.
10376 (ada_exception_catchpoint_cond_string): Examine all minimal
10377 symbols for exception types.
10379 2019-04-30 Tom Tromey <tromey@adacore.com>
10382 * dwarf2read.c (process_structure_scope): Handle case where type
10383 has template parameters but no symbol was created.
10385 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10386 Chris January <chris.january@arm.com>
10388 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10390 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10392 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10394 * f-typeprint.c (f_print_type): Update rules for printing
10396 (f_type_print_varspec_suffix): Likewise.
10398 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10399 Chris January <chris.january@arm.com>
10401 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10402 function arguments.
10404 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10406 * f-lang.c (build_fortran_types): Change name of void type to
10408 * f-typeprint.c (f_type_print_base): Print the name of the void
10409 type, rather than a fixed string.
10410 * f-valprint.c (f_decorations): Use lower case void string.
10412 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10413 Chris January <chris.january@arm.com>
10415 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10418 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10419 Chris January <chris.january@arm.com>
10420 David Lecomber <david.lecomber@arm.com>
10422 * f-exp.y (BINOP_INTRINSIC): New token.
10423 (exp): New parser rule handling BINOP_INTRINSIC.
10424 (f77_keywords): Add new builtin procedures.
10425 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10426 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10427 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10428 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10429 (print_unop_subexp_f): New function.
10430 (print_binop_subexp_f): New function.
10431 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10432 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10433 (dump_subexp_body_f): Likewise.
10434 (operator_check_f): Likewise.
10435 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10436 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10438 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10440 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10442 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10443 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10444 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10445 (operator_length_f): New fuction.
10446 (print_subexp_f): New function.
10447 (op_name_f): New function.
10448 (dump_subexp_body_f): New function.
10449 (operator_check_f): New function.
10450 (exp_descriptor_f): Replace standard expression handling functions
10451 with new functions.
10452 * gdb/fortran-operator.def: New file.
10453 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10454 * gdb/std-operator.def: Remove UNOP_KIND.
10456 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10458 * std-operator.def: Remove unbalanced, stray double quote
10461 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10462 Chris January <chris.january@arm.com>
10463 Daniel Everett <daniel.everett@arm.com>
10464 Nick Forrington <nick.forrington@arm.com>
10465 Richard Bunt <richard.bunt@arm.com>
10467 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10468 of depth when printing anonymous structs or unions.
10469 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10470 Don't print either the top-level value, or the children if the
10471 max-depth is exceeded.
10472 (ppscm_print_children): When printing the key of a map, allow one
10473 extra level of depth.
10474 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10475 print either the top-level value, or the children if the max-depth
10477 (print_children): When printing the key of a map, allow one extra
10479 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10480 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10481 (user_print_options): Initialise max_depth field.
10482 (val_print_scalar_or_string_type_p): New function.
10483 (val_print): Check to see if the max depth has been reached.
10484 (val_print_check_max_depth): Define new function.
10485 (show_print_max_depth): New function.
10486 (_initialize_valprint): Add 'print max-depth' option.
10487 * valprint.h (struct value_print_options) <max_depth>: New field.
10488 (val_print_check_max_depth): Declare new function.
10489 * NEWS: Document new feature.
10491 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10493 * ada-lang.c (ada_language_defn): Initialise new field.
10494 * c-lang.c (c_is_string_type_p): New function.
10495 (c_language_defn): Initialise new field.
10496 (cplus_language_defn): Initialise new field.
10497 (asm_language_defn): Initialise new field.
10498 (minimal_language_defn): Initialise new field.
10499 * c-lang.h (c_is_string_type_p): Declare new function.
10500 * d-lang.c (d_language_defn): Initialise new field.
10501 * f-lang.c (f_is_string_type_p): New function.
10502 (f_language_defn): Initialise new field.
10503 * go-lang.c (go_is_string_type_p): New function.
10504 (go_language_defn): Initialise new field.
10505 * language.c (default_is_string_type_p): New function.
10506 (unknown_language_defn): Initialise new field.
10507 (auto_language_defn): Initialise new field.
10508 * language.h (struct language_defn) <la_is_string_type_p>: New
10510 (default_is_string_type_p): Declare new function.
10511 * m2-lang.c (m2_language_defn): Initialise new field.
10512 * objc-lang.c (objc_language_defn): Initialise new field.
10513 * opencl-lang.c (opencl_language_defn): Initialise new field.
10514 * p-lang.c (pascal_is_string_type_p): New function.
10515 (pascal_language_defn): Initialise new field.
10516 * rust-lang.c (rust_is_string_type_p): New function.
10517 (rust_language_defn): Initialise new field.
10519 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10521 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10523 * ada-lang.c (ada_language_defn): Initialise new field.
10524 * c-lang.c (c_language_defn): Likewise.
10525 (cplus_language_defn): Likewise.
10526 (asm_language_defn): Likewise.
10527 (minimal_language_defn): Likewise.
10528 * d-lang.c (d_language_defn): Likewise.
10529 * f-lang.c (f_language_defn): Likewise.
10530 * go-lang.c (go_language_defn): Likewise.
10531 * language.c (unknown_language_defn): Likewise.
10532 (auto_language_defn): Likewise.
10533 * m2-lang.c (m2_language_defn): Likewise.
10534 * objc-lang.c (objc_language_defn): Likewise.
10535 * opencl-lang.c (opencl_language_defn): Likewise.
10536 * p-lang.c (pascal_language_defn): Likewise.
10537 * rust-lang.c (rust_language_defn): Likewise.
10539 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10541 * ada-lang.c (ada_is_character_type): Change return type to bool.
10542 (ada_is_string_type): Likewise.
10543 * ada-lang.h (ada_is_character_type): Update declaration
10544 (ada_is_string_type): Likewise.
10546 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10548 Support style in 'frame|thread apply'
10550 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10551 * record.c (record_start, record_stop): Update callers of
10552 execute_command_to_string with false.
10553 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10554 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10556 (class string_file): New constructor with term_out parameter.
10557 Override methods term_out and can_emit_style_escape. New member
10559 (class stdio_file): Override can_emit_style_escape.
10560 (class tee_file): Override term_out and can_emit_style_escape.
10561 * utils.h (can_emit_style_escape): Remove.
10562 * utils.c (can_emit_style_escape): Likewise.
10563 Update all callers of can_emit_style_escape (SOMESTREAM) to
10564 SOMESTREAM->can_emit_style_escape.
10565 * source-cache.c (source_cache::get_source_lines): Likewise.
10566 * stack.c (frame_apply_command_count): Call execute_command_to_string
10567 passing the term_out characteristic of the current gdb_stdout.
10568 * thread.c (thr_try_catch_cmd): Likewise.
10569 * top.c (execute_command_to_string): pass term_out parameter
10570 to construct the string_file for the command output.
10571 * ui-file.c (term_cli_styling): New function (most code moved
10572 from utils.c can_emit_style_escape).
10573 (string_file::string_file, string_file::can_emit_style_escape,
10574 stdio_file::can_emit_style_escape, tee_file::term_out,
10575 tee_file::can_emit_style_escape): New functions.
10577 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10579 * NEWS: Mention the new set|show may-call-functions.
10580 * infcall.c (may_call_functions_p): New variable.
10581 (show_may_call_functions_p): New function.
10582 (call_function_by_hand_dummy): Throws an error if not
10583 may-call-functions.
10584 (_initialize_infcall): Call add_setshow_boolean_cmd for
10585 may-call-functions.
10587 2019-04-25 Keith Seitz <keiths@redhat.com>
10590 * cp-support.c (inspect_type): Don't attempt substitutions
10591 of symbol with the same name.
10593 2019-04-25 Tom Tromey <tromey@adacore.com>
10596 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10599 2019-04-25 Tom Tromey <tromey@adacore.com>
10601 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10603 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10604 (gdb_xml_parser::parse): Use std::move.
10605 * python/python-internal.h (gdbpy_convert_exception): Take a const
10607 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10609 * python/py-utils.c (gdbpy_convert_exception): Take a const
10611 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10613 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10615 * mi/mi-main.c (mi_print_exception): Take a const reference.
10616 * main.c (handle_command_errors): Take a const reference.
10617 * linespec.c (parse_linespec): Use std::move.
10618 * infcall.c (run_inferior_call): Use std::move.
10619 (call_function_by_hand_dummy): Use std::move.
10620 * exec.c (try_open_exec_file): Use std::move.
10621 * exceptions.h (exception_print, exception_fprintf)
10622 (exception_print_same): Update.
10623 * exceptions.c (print_exception, exception_print)
10624 (exception_fprintf, exception_print_same): Change parameters to
10626 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10627 * common/new-op.c: Use std::move.
10628 * common/common-exceptions.h (struct gdb_exception): Add move
10630 (struct gdb_exception_error, struct gdb_exception_quit, struct
10631 gdb_quit_bad_alloc): Change constructor to move constructor.
10632 (throw_exception): Change parameter to rvalue reference.
10633 * common/common-exceptions.c (throw_exception): Take rvalue
10635 * cli/cli-interp.c (safe_execute_command): Use std::move.
10636 * breakpoint.c (insert_bp_location, location_to_sals): Use
10639 2019-04-25 Tom Tromey <tromey@adacore.com>
10641 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10642 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10643 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10644 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10645 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10646 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10647 guile/scm-value.c: Use unpack.
10648 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10649 gdbscm_gdb_exception.
10650 (gdbscm_throw_gdb_exception): Likewise.
10651 (struct gdbscm_gdb_exception): New.
10652 (unpack): New function.
10653 (gdbscm_wrap): Use unpack.
10655 2019-04-25 Tom Tromey <tromey@adacore.com>
10657 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10658 (gdb_rl_callback_handler): Use std::move.
10659 * common/common-exceptions.h (struct gdb_exception): Add move
10660 assignment operator.
10661 (throw_exception_sjlj): Change "exception" to const reference.
10662 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10663 (throw_exception_sjlj): Change "exception" to const reference.
10665 2019-04-25 Tom Tromey <tromey@adacore.com>
10667 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10668 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10669 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10671 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10673 * mi/mi-interp.c (mi_interp::exec): Update.
10674 * linespec.c (parse_linespec): Update.
10675 * infcall.c (run_inferior_call): Update.
10676 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10677 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10678 (gdbscm_lookup_global_symbol): Update.
10679 * guile/scm-param.c (gdbscm_parameter_value): Update.
10680 * guile/scm-frame.c (gdbscm_frame_read_register)
10681 (gdbscm_frame_read_var): Update.
10682 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10683 * exec.c (try_open_exec_file): Update.
10684 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10685 (gdb_rl_callback_handler): Update.
10686 * common/common-exceptions.h (exception_none): Don't declare.
10687 * common/common-exceptions.c (exception_none): Don't define.
10688 (struct catcher) <exception>: Update.
10689 * cli/cli-interp.c (safe_execute_command): Update.
10690 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10692 2019-04-25 Ali Tamur <tamur@google.com>
10694 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10695 (read_attribute_value): Likewise.
10696 (dwarf2_read_addr_index): Update comment.
10697 (read_str_index): Add DW_FORM_strx.
10698 (dwarf2_string_attr): Likewise.
10699 (dwarf2_const_value_attr): Likewise.
10700 (dump_die_shallow): Likewise.
10701 (dwarf2_fetch_constant_bytes): Likewise.
10702 (skip_form_bytes): Likewise.
10703 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10705 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10709 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10710 OFFSET. Verify if current mapping contains an ELF header.
10711 (linux_find_memory_regions_full): Adjust call to
10714 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10715 Kang Li <kanglictf@gmail.com>
10719 * dwarf2-frame.c (read_initial_length): Be consistent about using
10720 unsigned representation of length.
10721 (decode_frame_entry_1): Likewise. Check for wraparound of
10722 end pointer as well as buffer overflow.
10724 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10726 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10729 2019-04-24 Tom Tromey <tromey@adacore.com>
10731 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10733 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10735 * s12z-tdep.c (s12z_unwind_pc): Delete.
10736 (s12z_unwind_sp): Delete.
10737 (s12z_gdbarch_init): Don't register deleted functions with
10740 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10742 * rl78-tdep.c (rl78_unwind_sp): Delete.
10743 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10747 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10748 (xstormy16_unwind_pc): Delete.
10749 (xstormy16_dummy_id): Delete.
10750 (xstormy16_gdbarch_init): Don't register deleted functions with
10753 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10755 * vax-tdep.c (vax_unwind_pc): Delete.
10756 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10758 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10760 * v850-tdep.c (v850_unwind_sp): Delete.
10761 (v850_unwind_pc): Delete.
10762 (v850_dummy_id): Delete.
10763 (v850_gdbarch_init): Don't register deleted functions with
10766 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10768 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10769 (tilegx_unwind_pc): Delete.
10770 (tilegx_unwind_dummy_id): Delete.
10771 (tilegx_gdbarch_init): Don't register deleted functions with
10774 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10776 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10777 (tic6x_dummy_id): Delete.
10778 (tic6x_gdbarch_init): Don't register deleted functions with
10781 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10783 * sparc-tdep.c (sparc_unwind_pc): Delete.
10784 (sparc32_gdbarch_init): Don't register deleted function with
10787 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10789 * sh-tdep.c (sh_unwind_sp): Delete.
10790 (sh_unwind_pc): Delete.
10791 (sh_dummy_id): Delete.
10792 (sh_gdbarch_init): Don't register deleted functions with
10795 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797 * score-tdep.c (score_unwind_sp): Delete.
10798 (score_unwind_pc): Delete.
10799 (score_dummy_id): Delete.
10800 (score_gdbarch_init): Don't register deleted functions with
10803 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10805 * rx-tdep.c (rx_unwind_pc): Delete.
10806 (rx_unwind_sp): Delete.
10807 (rx_dummy_id): Delete.
10808 (rx_gdbarch_init): Don't register deleted functions with
10809 gdbarch. Update comment.
10811 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10813 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10814 (rs6000_dummy_id): Delete.
10815 (rs6000_gdbarch_init): Don't register deleted functions with
10818 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10820 * or1k-tdep.c (or1k_dummy_id): Delete.
10821 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10823 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10825 * nios2-tdep.c (nios2_dummy_id): Delete.
10826 (nios2_unwind_sp): Delete.
10827 (nios2_gdbarch_init): Don't register deleted functions with
10830 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10832 * nds32-tdep.c (nds32_dummy_id): Delete.
10833 (nds32_unwind_pc): Delete.
10834 (nds32_unwind_sp): Delete.
10835 (nds32_gdbarch_init): Don't register deleted functions with
10838 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10840 * msp430-tdep.c (msp430_unwind_pc): Delete.
10841 (msp430_unwind_sp): Delete.
10842 (msp430_dummy_id): Delete.
10843 (msp430_gdbarch_init): Don't register deleted functions with
10846 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10848 * moxie-tdep.c (moxie_unwind_sp): Delete.
10849 (moxie_unwind_pc): Delete.
10850 (moxie_dummy_id): Delete.
10851 (moxie_gdbarch_init): Don't register deleted functions with
10854 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10856 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10857 (mn10300_unwind_pc): Delete.
10858 (mn10300_unwind_sp): Delete.
10859 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10861 (mn10300_frame_unwind_init): Don't register deleted functions with
10864 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10866 * mep-tdep.c (mep_unwind_pc): Delete.
10867 (mep_unwind_sp): Delete.
10868 (mep_dummy_id): Delete.
10869 (mep_gdbarch_init): Don't register deleted functions with
10872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10874 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10875 (m68hc11_unwind_sp): Delete.
10876 (m68hc11_gdbarch_init): Don't register deleted functions with
10879 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10881 * m32r-tdep.c (m32r_unwind_sp): Delete.
10882 (m32r_unwind_pc): Delete.
10883 (m32r_dummy_id): Delete.
10884 (m32r_gdbarch_init): Don't register deleted functions with
10887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10889 * m32c-tdep.c (m32c_unwind_pc): Delete.
10890 (m32c_unwind_sp): Delete.
10891 (m32c_dummy_id): Delete.
10892 (m32c_gdbarch_init): Don't register deleted functions with
10895 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10897 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10898 (lm32_unwind_pc): Delete.
10899 (lm32_dummy_id): Delete.
10900 (lm32_gdbarch_init): Don't register deleted functions with
10903 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10905 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10906 (iq2000_unwind_pc): Delete.
10907 (iq2000_dummy_id): Delete.
10908 (iq2000_gdbarch_init): Don't register deleted functions with
10911 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10913 * nds32-tdep.c (nds32_type_align): Delete.
10914 (nds32_push_dummy_call): Use type_align instead.
10916 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10918 * arm-tdep.c (arm_type_align): Only handle vector override case.
10919 (arm_push_dummy_call): Use type_align.
10920 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10922 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10924 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10926 (pass_on_stack): Use type_align.
10927 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10930 2019-04-23 Tom Tromey <tromey@adacore.com>
10932 * dwarf2read.c (line_header::file_name_at): Remove unused
10935 2019-04-23 Tom de Vries <tdevries@suse.de>
10938 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10942 2019-03-27 Ali Tamur <tamur@google.com>
10944 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10945 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10946 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10947 (dwarf_expr_context::get_addr_index): Likewise
10948 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10949 (symbol_needs_eval_context::get_addr_index): Likewise
10950 (disassemble_dwarf_expression): Add DW_OP_addrx
10951 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10952 (read_cutu_die_from_dwo): Update comment
10953 (skip_one_die): Add DW_FORM_addrx
10954 (read_attribute_value): Likewise
10955 (var_decode_location): Add DW_OP_addrx
10956 (dwarf2_const_value_attr): Add DW_FORM_addrx
10957 (dump_die_shallow): Likewise
10958 (dwarf2_fetch_constant_bytes): Likewise
10959 (decode_locdesc): Add DW_OP_addrx
10960 (skip_form_bytes): Add DW_FORM_addrx
10962 2019-04-22 Ali Tamur <tamur@google.com>
10964 * MAINTAINERS (Write After Approval): Add self.
10966 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10968 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10969 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10970 (open_symbol_file_object): Likewise.
10971 (svr4_default_sos): Add info parameter.
10972 (svr4_read_so_list): Likewise.
10973 (svr4_current_sos_direct): Adjust functions calls to pass down
10975 (svr4_current_sos_1): Add info parameter.
10976 (svr4_current_sos): Call get_svr4_info, pass info down to
10977 svr4_current_sos_1.
10978 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10980 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10982 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10984 (probes_table_remove_objfile_probes): Likewise.
10985 (register_solib_event_probe): Add info parameter.
10986 (solist_update_incremental): Pass info parameter down to
10988 (disable_probes_interface): Add info parameter.
10989 (svr4_handle_solib_event): Pass current_program_space to
10990 get_svr4_info. Adjust disable_probes_interface cleanup.
10991 (svr4_create_probe_breakpoints): Add info parameter, pass it
10992 down to register_solib_event_probe.
10993 (svr4_create_solib_event_breakpoints): Add info parameter,
10994 pass it down to svr4_create_probe_breakpoints.
10995 (enable_break): Pass info down to
10996 svr4_create_solib_event_breakpoints.
10997 (svr4_solib_create_inferior_hook): Pass current_program_space to
10999 (svr4_clear_solib): Likewise.
11001 2019-04-22 Pedro Alves <palves@redhat.com>
11003 * solib-svr4.c (svr4_free_objfile_observer): New.
11004 (probe_and_action::objfile): New field.
11005 (probes_table_htab_remove_objfile_probes)
11006 (probes_table_remove_objfile_probes): New functions.
11007 (register_solib_event_probe): Add 'objfile' parameter. Store it
11008 in the new probe_and_action. Don't store the probe in 'lookup'.
11009 (svr4_create_probe_breakpoints): Pass objfile to
11010 register_solib_event_probe.
11011 (_initialize_svr4_solib): Register a free_objfile observer.
11013 2019-04-19 Tom Tromey <tom@tromey.com>
11015 * common/queue.h: Remove.
11017 2019-04-19 Tom Tromey <tom@tromey.com>
11019 * event-loop.c: Don't include "common/queue.h".
11021 2019-04-19 Tom Tromey <tom@tromey.com>
11023 * remote.c (remote_target): Use delete.
11024 * remote-notif.h: Include <list>, not "common/queue.h".
11025 (notif_client_p): Remove typedef.
11026 (remote_notif_state): Add constructor, destructor, initializer.
11027 <notif_queue>: Now a std::list.
11028 (remote_notif_state_xfree): Don't declare.
11029 * remote-notif.c (remote_notif_process, handle_notification)
11030 (remote_notif_state_allocate): Update.
11031 (~remote_notif_state): Rename from remote_notif_state_xfree.
11033 2019-04-19 Tom Tromey <tom@tromey.com>
11035 * symfile.c (reread_symbols): Update.
11036 * objfiles.c (objfile_register_static_link)
11037 (objfile_lookup_static_link): Update
11038 (~objfile) Don't delete static_links.
11039 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11041 2019-04-19 Tom Tromey <tom@tromey.com>
11043 * type-stack.h (struct type_stack) <insert>: Constify string.
11044 * type-stack.c (type_stack::insert): Constify string.
11045 * gdbtypes.h (lookup_template_type): Update.
11046 (address_space_name_to_int): Update.
11047 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11049 (lookup_template_type): Make name const.
11050 * c-exp.y: Update rules.
11051 (lex_one_token, classify_name, classify_inner_name)
11052 (c_print_token): Update.
11053 * p-exp.y: Update rules.
11055 * f-exp.y: Update rules.
11057 * d-exp.y: Update rules.
11058 (lex_one_token, classify_name, classify_inner_name): Update.
11059 * parse.c (write_dollar_variable, copy_name): Return std::string.
11060 * parser-defs.h (copy_name): Change return type.
11061 * m2-exp.y: Update rules.
11063 * go-exp.y (lex_one_token): Update.
11065 (classify_unsafe_function, classify_packaged_name)
11066 (classify_name, yylex): Update.
11068 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11070 * configure.ac: add --enable-source-highlight switch.
11071 * configure: Regenerate.
11072 * top.c (print_gdb_version): plumb --enable-source-highlight
11073 status to "show configuration".
11075 2019-04-19 Tom Tromey <tromey@adacore.com>
11077 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11079 (empty_record, ada_template_to_fixed_record_type_1)
11080 (template_to_static_fixed_type)
11081 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11082 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11083 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11086 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11089 * source.c (print_source_lines_base): Advance "iter" when a
11090 control character is seen.
11092 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11094 * inferior.h (struct infcall_suspend_state_deleter):
11095 Catch exception in destructor to avoid crash.
11097 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11099 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11100 close to the add_com "shell".
11102 2019-04-18 Tom Tromey <tromey@adacore.com>
11104 * process-stratum-target.h (class process_stratum_target)
11105 <stratum>: Add "final".
11107 2019-04-17 Tom Tromey <tromey@adacore.com>
11109 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11110 against nullptr before use.
11112 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11114 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11116 2019-04-17 Jim Wilson <jimw@sifive.com>
11117 Andrew Burgess <andrew.burgess@embecosm.com>
11119 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11120 code read might fail, assume 4-byte breakpoint in that case.
11122 2019-04-15 Leszek Swirski <leszeks@google.com>
11124 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11125 rather than a hand-rolled POD check when checking for forced MEMORY
11128 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11130 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11131 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11133 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11134 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11135 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11138 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11140 * aarch64-linux-nat.c
11141 (aarch64_linux_nat_target::thread_architecture): Add override.
11142 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11145 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11147 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11149 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11151 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11152 target types of size 96-bits, add some additional comments, and
11153 check that the builtin type we found was the correct size.
11155 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11157 * utils.c (prompt_for_continue): Don't restore the styling at the
11158 end, as applied_style has the wrong value. This fixes styling in
11159 long lists of file names that are interrupted by the "Continue?"
11162 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11164 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11165 * c-lang.c (c_language_defn): Likewise.
11166 (cplus_language_defn): Likewise.
11167 (asm_language_defn): Likewise.
11168 (minimal_language_defn): Likewise.
11169 * d-lang.c (d_language_defn): Likewise.
11170 * f-lang.c (f_language_defn): Likewise.
11171 * go-lang.c (go_language_defn): Likewise.
11172 * language.c (unknown_language_defn): Likewise.
11173 (auto_language_defn): Likewise.
11174 * language.h (struct language_defn): Remove la_magic field.
11175 (LANG_MAGIC): Delete.
11176 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11177 * objc-lang.c (objc_language_defn): Likewise.
11178 * opencl-lang.c (opencl_language_defn): Likewise.
11179 * p-lang.c (pascal_language_defn): Likewise.
11180 * rust-lang.c (rust_language_defn): Likewise.
11182 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11184 * riscv-tdep.c (riscv_type_align): New function.
11185 (riscv_type_alignment): Delete.
11186 (riscv_arg_location): Use 'type_align'.
11187 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11189 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11191 * gdbtypes.c (type_align): A struct with no non-static fields also
11192 has alignment of 1.
11194 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11196 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11198 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11200 (riscv_struct_info::analyse): New implementation using new
11201 analyse_inner member function.
11202 (riscv_struct_info::field_offset): New member function.
11203 (riscv_struct_info::m_offsets): New member variable.
11204 (riscv_struct_info::analyse_inner): New private member function,
11205 takes the old implementation of riscv_struct_info::analyse but
11206 extended to track field offsets.
11207 (riscv_call_arg_struct): Update the struct folding special cases
11208 to handle cases where empty C++ structs, which are non-zero
11210 (riscv_arg_location): Initialise the length of each location, a
11211 non-zero length now indicates the location is in use.
11212 (riscv_push_dummy_call): Allow for the first location having a
11213 non-zero offset when setting up arguments.
11214 (riscv_return_value): Likewise, but for return values.
11216 2019-04-11 Tom Tromey <tromey@adacore.com>
11218 * utils.c (internal_vproblem): Make "msg" const.
11220 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11222 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11223 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11224 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11225 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11227 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11229 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11231 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11232 of amd64_collect_native_gregset.
11233 (amd64_linux_nat_target::store_registers): Likewise.
11235 2019-04-10 Tom Tromey <tom@tromey.com>
11237 * symtab.c (lookup_global_symbol_from_objfile)
11238 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11239 * objfiles.h (class separate_debug_iterator): New.
11240 (class separate_debug_range): New.
11241 (struct objfile) <separate_debug_objfiles>: New method.
11242 (objfile_separate_debug_iterate): Don't declare.
11243 * objfiles.c (separate_debug_iterator::operator++): Rename from
11244 objfile_separate_debug_iterate.
11245 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11247 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11250 2019-04-10 Tom Tromey <tom@tromey.com>
11252 * symfile.c (reread_symbols): Remove old comment.
11253 * objfiles.c (free_all_objfiles): Fix a typo.
11255 2019-04-10 Tom Tromey <tom@tromey.com>
11257 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11258 * minsyms.c (lookup_minimal_symbol): Use foreach.
11259 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11260 (lookup_minimal_symbol_solib_trampoline): Likewise.
11261 * symfile.c (reread_symbols): Use foreach.
11263 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11264 Tom Tromey <tromey@adacore.com>
11267 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11268 (rust_lex_int_test): Change "value" to be LONGEST.
11269 (rust_lex_tests): Add test for long integer literal.
11271 2019-04-09 Tom Tromey <tromey@adacore.com>
11273 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11275 (extended_remote_target::attach): Update.
11276 (remote_target::remote_notice_new_inferior): Update.
11277 (remote_target::add_current_inferior_and_thread): Update.
11278 * inferior.c (exit_inferior_1): Use "false".
11279 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11281 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11283 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11284 the "start" command.
11286 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11288 * python/py-inferior.c (infpy_thread_from_thread_handle):
11289 Adjust comments to reflect renaming of thread_from_thread_handle
11290 to thread_from_handle. Adjust keywords. Fix type error message.
11291 (inferior_object_methods): Add thread_from_handle. Retain
11292 thread_from_thread_handle, but mark it as deprecated.
11294 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11296 * gdbthread.h (find_thread_by_handle): Revise declaration.
11297 * thread.c (find_thread_by_handle): Likewise. Adjust
11298 implementation too.
11299 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11300 support for buffer objects as handles.
11302 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11304 * python/py-infthread.c (thpy_thread_handle): New function.
11305 (thread_object_methods): Register thpy_thread_handle.
11307 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11309 * gdbthread.h (thread_to_thread_handle): Declare.
11310 * thread.c (gdbtypes.h): Include.
11311 (thread_to_thread_handle): New function.
11313 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11314 (target_thread_info_to_thread_handle): Declare.
11315 * target.c (target_thread_info_to_thread_handle): New function.
11316 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11317 * target-delegates.c: Regenerate.
11319 * linux-thread-db.c (class thread_db_target): Add method
11320 thread_info_to_thread_handle.
11321 (thread_db_target::thread_info_to_thread_handle): Define.
11322 * remote.c (class remote_target): Add new method
11323 thread_info_to_thread_handle.
11324 (remote_target::thread_info_to_thread_handle): Define.
11326 2019-04-08 Pedro Alves <palves@redhat.com>
11328 * common/common-exceptions.c (throw_exception): Don't create
11329 named object to throw; throw directly.
11330 (throw_it): Likewise. Don't initialize gdb_exception::message
11331 here, with new; pass FMT and AP to the ctor instead.
11332 * common/common-exceptions.h: Include <string>.
11333 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11334 const char *, va_list)): New ctor. Use std::make_shared.
11335 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11337 (gdb_exception_error::gdb_exception_error(enum errors, const char
11339 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11341 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11343 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11344 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11347 2019-04-08 Tom Tromey <tom@tromey.com>
11349 * valops.c (value_rtti_indirect_type): Replace throw_exception
11351 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11353 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11355 * target.c (target_translate_tls_address): Replace throw_exception
11357 * stack.c (frame_apply_command_count): Replace throw_exception
11359 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11361 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11363 * rs6000-tdep.c (rs6000_frame_cache)
11364 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11365 * remote.c: Replace throw_exception with throw.
11366 * record-full.c (record_full_message, record_full_wait_1)
11367 (record_full_restore): Replace throw_exception with throw.
11369 (get_thread_current_frame_id, record_btrace_start_replaying)
11370 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11371 (cmd_record_btrace_start): Replace throw_exception with throw.
11372 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11374 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11375 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11377 (find_linespec_symbols): Replace throw_exception with throw.
11378 * infrun.c (displaced_step_prepare, resume): Replace
11379 throw_exception with throw.
11380 * infcmd.c (post_create_inferior): Replace throw_exception with
11382 * inf-loop.c (inferior_event_handler): Replace throw_exception
11384 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11385 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11386 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11387 (get_prev_frame_always, get_frame_pc_if_available)
11388 (get_frame_address_in_block_if_available, get_frame_language):
11389 Replace throw_exception with throw.
11390 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11391 throw_exception with throw.
11392 * eval.c (fetch_subexp_value, evaluate_var_value)
11393 (evaluate_funcall, evaluate_subexp_standard): Replace
11394 throw_exception with throw.
11395 * dwarf2loc.c (call_site_find_chain)
11396 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11397 Replace throw_exception with throw.
11398 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11400 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11402 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11403 * completer.c (complete_line_internal): Replace throw_exception
11405 * compile/compile-object-run.c (compile_object_run): Replace
11406 throw_exception with throw.
11407 * cli/cli-script.c (process_next_line): Replace throw_exception
11409 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11410 (btrace_enable, btrace_maint_update_pt_packets): Replace
11411 throw_exception with throw.
11412 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11413 throw_exception with throw.
11414 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11415 throw_exception with throw.
11416 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11417 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11418 * aarch64-tdep.c (aarch64_make_prologue_cache)
11419 (aarch64_make_stub_cache): Replace throw_exception with throw.
11421 2019-04-08 Tom Tromey <tom@tromey.com>
11423 * common/common-exceptions.c (throw_exception): Rename from
11424 throw_exception_cxx. Remove old copy. Make argument const.
11425 (throw_it): Create and throw exception objects directly.
11426 * common/common-exceptions.h (throw_exception): Make argument
11428 (struct gdb_exception_error): Add constructor.
11429 (struct gdb_exception_quit): Add constructor.
11431 2019-04-08 Tom Tromey <tom@tromey.com>
11433 * common/common-exceptions.h (exception_rethrow): Don't declare.
11434 (TRY_SJLJ): Update comment.
11435 (TRY, CATCH, END_CATCH): Remove.
11436 * common/common-exceptions.c (exception_rethrow): Remove.
11438 2019-04-08 Tom Tromey <tom@tromey.com>
11440 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11442 (gdb_exception_error): Rename from
11443 gdb_exception_RETURN_MASK_ERROR.
11444 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11445 (gdb_quit_bad_alloc): Update.
11446 * aarch64-tdep.c: Update.
11447 * ada-lang.c: Update.
11448 * ada-typeprint.c: Update.
11449 * ada-valprint.c: Update.
11450 * amd64-tdep.c: Update.
11451 * arch-utils.c: Update.
11452 * break-catch-throw.c: Update.
11453 * breakpoint.c: Update.
11454 * btrace.c: Update.
11455 * c-varobj.c: Update.
11456 * cli/cli-cmds.c: Update.
11457 * cli/cli-interp.c: Update.
11458 * cli/cli-script.c: Update.
11459 * common/common-exceptions.c: Update.
11460 * common/new-op.c: Update.
11461 * common/selftest.c: Update.
11462 * compile/compile-c-symbols.c: Update.
11463 * compile/compile-cplus-symbols.c: Update.
11464 * compile/compile-object-load.c: Update.
11465 * compile/compile-object-run.c: Update.
11466 * completer.c: Update.
11467 * corelow.c: Update.
11468 * cp-abi.c: Update.
11469 * cp-support.c: Update.
11470 * cp-valprint.c: Update.
11471 * darwin-nat.c: Update.
11472 * disasm-selftests.c: Update.
11473 * dtrace-probe.c: Update.
11474 * dwarf-index-cache.c: Update.
11475 * dwarf-index-write.c: Update.
11476 * dwarf2-frame-tailcall.c: Update.
11477 * dwarf2-frame.c: Update.
11478 * dwarf2loc.c: Update.
11479 * dwarf2read.c: Update.
11481 * event-loop.c: Update.
11482 * event-top.c: Update.
11484 * f-valprint.c: Update.
11485 * fbsd-tdep.c: Update.
11486 * frame-unwind.c: Update.
11488 * gdbtypes.c: Update.
11489 * gnu-v3-abi.c: Update.
11490 * guile/guile-internal.h: Update.
11491 * guile/scm-block.c: Update.
11492 * guile/scm-breakpoint.c: Update.
11493 * guile/scm-cmd.c: Update.
11494 * guile/scm-disasm.c: Update.
11495 * guile/scm-frame.c: Update.
11496 * guile/scm-lazy-string.c: Update.
11497 * guile/scm-math.c: Update.
11498 * guile/scm-param.c: Update.
11499 * guile/scm-ports.c: Update.
11500 * guile/scm-pretty-print.c: Update.
11501 * guile/scm-symbol.c: Update.
11502 * guile/scm-symtab.c: Update.
11503 * guile/scm-type.c: Update.
11504 * guile/scm-value.c: Update.
11505 * i386-linux-tdep.c: Update.
11506 * i386-tdep.c: Update.
11507 * inf-loop.c: Update.
11508 * infcall.c: Update.
11509 * infcmd.c: Update.
11510 * infrun.c: Update.
11512 * language.c: Update.
11513 * linespec.c: Update.
11514 * linux-fork.c: Update.
11515 * linux-nat.c: Update.
11516 * linux-tdep.c: Update.
11517 * linux-thread-db.c: Update.
11519 * mi/mi-cmd-break.c: Update.
11520 * mi/mi-cmd-stack.c: Update.
11521 * mi/mi-interp.c: Update.
11522 * mi/mi-main.c: Update.
11523 * objc-lang.c: Update.
11524 * p-valprint.c: Update.
11526 * ppc-linux-tdep.c: Update.
11527 * printcmd.c: Update.
11528 * python/py-arch.c: Update.
11529 * python/py-breakpoint.c: Update.
11530 * python/py-cmd.c: Update.
11531 * python/py-finishbreakpoint.c: Update.
11532 * python/py-frame.c: Update.
11533 * python/py-framefilter.c: Update.
11534 * python/py-gdb-readline.c: Update.
11535 * python/py-inferior.c: Update.
11536 * python/py-infthread.c: Update.
11537 * python/py-lazy-string.c: Update.
11538 * python/py-linetable.c: Update.
11539 * python/py-objfile.c: Update.
11540 * python/py-param.c: Update.
11541 * python/py-prettyprint.c: Update.
11542 * python/py-progspace.c: Update.
11543 * python/py-record-btrace.c: Update.
11544 * python/py-record.c: Update.
11545 * python/py-symbol.c: Update.
11546 * python/py-type.c: Update.
11547 * python/py-unwind.c: Update.
11548 * python/py-utils.c: Update.
11549 * python/py-value.c: Update.
11550 * python/python.c: Update.
11551 * record-btrace.c: Update.
11552 * record-full.c: Update.
11553 * remote-fileio.c: Update.
11554 * remote.c: Update.
11555 * riscv-tdep.c: Update.
11556 * rs6000-aix-tdep.c: Update.
11557 * rs6000-tdep.c: Update.
11558 * rust-exp.y: Update.
11559 * rust-lang.c: Update.
11560 * s390-tdep.c: Update.
11561 * selftest-arch.c: Update.
11562 * solib-dsbt.c: Update.
11563 * solib-frv.c: Update.
11564 * solib-spu.c: Update.
11565 * solib-svr4.c: Update.
11567 * sparc64-linux-tdep.c: Update.
11569 * symfile-mem.c: Update.
11570 * symmisc.c: Update.
11571 * target.c: Update.
11572 * thread.c: Update.
11574 * tracefile-tfile.c: Update.
11575 * tui/tui.c: Update.
11576 * typeprint.c: Update.
11577 * unittests/cli-utils-selftests.c: Update.
11578 * unittests/parse-connection-spec-selftests.c: Update.
11579 * valops.c: Update.
11580 * valprint.c: Update.
11582 * varobj.c: Update.
11583 * windows-nat.c: Update.
11584 * x86-linux-nat.c: Update.
11585 * xml-support.c: Update.
11587 2019-04-08 Tom Tromey <tom@tromey.com>
11589 * xml-support.c: Use C++ exception handling.
11590 * x86-linux-nat.c: Use C++ exception handling.
11591 * windows-nat.c: Use C++ exception handling.
11592 * varobj.c: Use C++ exception handling.
11593 * value.c: Use C++ exception handling.
11594 * valprint.c: Use C++ exception handling.
11595 * valops.c: Use C++ exception handling.
11596 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11598 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11599 * typeprint.c: Use C++ exception handling.
11600 * tui/tui.c: Use C++ exception handling.
11601 * tracefile-tfile.c: Use C++ exception handling.
11602 * top.c: Use C++ exception handling.
11603 * thread.c: Use C++ exception handling.
11604 * target.c: Use C++ exception handling.
11605 * symmisc.c: Use C++ exception handling.
11606 * symfile-mem.c: Use C++ exception handling.
11607 * stack.c: Use C++ exception handling.
11608 * sparc64-linux-tdep.c: Use C++ exception handling.
11609 * solib.c: Use C++ exception handling.
11610 * solib-svr4.c: Use C++ exception handling.
11611 * solib-spu.c: Use C++ exception handling.
11612 * solib-frv.c: Use C++ exception handling.
11613 * solib-dsbt.c: Use C++ exception handling.
11614 * selftest-arch.c: Use C++ exception handling.
11615 * s390-tdep.c: Use C++ exception handling.
11616 * rust-lang.c: Use C++ exception handling.
11617 * rust-exp.y: Use C++ exception handling.
11618 * rs6000-tdep.c: Use C++ exception handling.
11619 * rs6000-aix-tdep.c: Use C++ exception handling.
11620 * riscv-tdep.c: Use C++ exception handling.
11621 * remote.c: Use C++ exception handling.
11622 * remote-fileio.c: Use C++ exception handling.
11623 * record-full.c: Use C++ exception handling.
11624 * record-btrace.c: Use C++ exception handling.
11625 * python/python.c: Use C++ exception handling.
11626 * python/py-value.c: Use C++ exception handling.
11627 * python/py-utils.c: Use C++ exception handling.
11628 * python/py-unwind.c: Use C++ exception handling.
11629 * python/py-type.c: Use C++ exception handling.
11630 * python/py-symbol.c: Use C++ exception handling.
11631 * python/py-record.c: Use C++ exception handling.
11632 * python/py-record-btrace.c: Use C++ exception handling.
11633 * python/py-progspace.c: Use C++ exception handling.
11634 * python/py-prettyprint.c: Use C++ exception handling.
11635 * python/py-param.c: Use C++ exception handling.
11636 * python/py-objfile.c: Use C++ exception handling.
11637 * python/py-linetable.c: Use C++ exception handling.
11638 * python/py-lazy-string.c: Use C++ exception handling.
11639 * python/py-infthread.c: Use C++ exception handling.
11640 * python/py-inferior.c: Use C++ exception handling.
11641 * python/py-gdb-readline.c: Use C++ exception handling.
11642 * python/py-framefilter.c: Use C++ exception handling.
11643 * python/py-frame.c: Use C++ exception handling.
11644 * python/py-finishbreakpoint.c: Use C++ exception handling.
11645 * python/py-cmd.c: Use C++ exception handling.
11646 * python/py-breakpoint.c: Use C++ exception handling.
11647 * python/py-arch.c: Use C++ exception handling.
11648 * printcmd.c: Use C++ exception handling.
11649 * ppc-linux-tdep.c: Use C++ exception handling.
11650 * parse.c: Use C++ exception handling.
11651 * p-valprint.c: Use C++ exception handling.
11652 * objc-lang.c: Use C++ exception handling.
11653 * mi/mi-main.c: Use C++ exception handling.
11654 * mi/mi-interp.c: Use C++ exception handling.
11655 * mi/mi-cmd-stack.c: Use C++ exception handling.
11656 * mi/mi-cmd-break.c: Use C++ exception handling.
11657 * main.c: Use C++ exception handling.
11658 * linux-thread-db.c: Use C++ exception handling.
11659 * linux-tdep.c: Use C++ exception handling.
11660 * linux-nat.c: Use C++ exception handling.
11661 * linux-fork.c: Use C++ exception handling.
11662 * linespec.c: Use C++ exception handling.
11663 * language.c: Use C++ exception handling.
11664 * jit.c: Use C++ exception handling.
11665 * infrun.c: Use C++ exception handling.
11666 * infcmd.c: Use C++ exception handling.
11667 * infcall.c: Use C++ exception handling.
11668 * inf-loop.c: Use C++ exception handling.
11669 * i386-tdep.c: Use C++ exception handling.
11670 * i386-linux-tdep.c: Use C++ exception handling.
11671 * guile/scm-value.c: Use C++ exception handling.
11672 * guile/scm-type.c: Use C++ exception handling.
11673 * guile/scm-symtab.c: Use C++ exception handling.
11674 * guile/scm-symbol.c: Use C++ exception handling.
11675 * guile/scm-pretty-print.c: Use C++ exception handling.
11676 * guile/scm-ports.c: Use C++ exception handling.
11677 * guile/scm-param.c: Use C++ exception handling.
11678 * guile/scm-math.c: Use C++ exception handling.
11679 * guile/scm-lazy-string.c: Use C++ exception handling.
11680 * guile/scm-frame.c: Use C++ exception handling.
11681 * guile/scm-disasm.c: Use C++ exception handling.
11682 * guile/scm-cmd.c: Use C++ exception handling.
11683 * guile/scm-breakpoint.c: Use C++ exception handling.
11684 * guile/scm-block.c: Use C++ exception handling.
11685 * guile/guile-internal.h: Use C++ exception handling.
11686 * gnu-v3-abi.c: Use C++ exception handling.
11687 * gdbtypes.c: Use C++ exception handling.
11688 * frame.c: Use C++ exception handling.
11689 * frame-unwind.c: Use C++ exception handling.
11690 * fbsd-tdep.c: Use C++ exception handling.
11691 * f-valprint.c: Use C++ exception handling.
11692 * exec.c: Use C++ exception handling.
11693 * event-top.c: Use C++ exception handling.
11694 * event-loop.c: Use C++ exception handling.
11695 * eval.c: Use C++ exception handling.
11696 * dwarf2read.c: Use C++ exception handling.
11697 * dwarf2loc.c: Use C++ exception handling.
11698 * dwarf2-frame.c: Use C++ exception handling.
11699 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11700 * dwarf-index-write.c: Use C++ exception handling.
11701 * dwarf-index-cache.c: Use C++ exception handling.
11702 * dtrace-probe.c: Use C++ exception handling.
11703 * disasm-selftests.c: Use C++ exception handling.
11704 * darwin-nat.c: Use C++ exception handling.
11705 * cp-valprint.c: Use C++ exception handling.
11706 * cp-support.c: Use C++ exception handling.
11707 * cp-abi.c: Use C++ exception handling.
11708 * corelow.c: Use C++ exception handling.
11709 * completer.c: Use C++ exception handling.
11710 * compile/compile-object-run.c: Use C++ exception handling.
11711 * compile/compile-object-load.c: Use C++ exception handling.
11712 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11713 * compile/compile-c-symbols.c: Use C++ exception handling.
11714 * common/selftest.c: Use C++ exception handling.
11715 * common/new-op.c: Use C++ exception handling.
11716 * cli/cli-script.c: Use C++ exception handling.
11717 * cli/cli-interp.c: Use C++ exception handling.
11718 * cli/cli-cmds.c: Use C++ exception handling.
11719 * c-varobj.c: Use C++ exception handling.
11720 * btrace.c: Use C++ exception handling.
11721 * breakpoint.c: Use C++ exception handling.
11722 * break-catch-throw.c: Use C++ exception handling.
11723 * arch-utils.c: Use C++ exception handling.
11724 * amd64-tdep.c: Use C++ exception handling.
11725 * ada-valprint.c: Use C++ exception handling.
11726 * ada-typeprint.c: Use C++ exception handling.
11727 * ada-lang.c: Use C++ exception handling.
11728 * aarch64-tdep.c: Use C++ exception handling.
11730 2019-04-08 Tom Tromey <tom@tromey.com>
11732 * xml-support.c (gdb_xml_parser::parse): Update.
11733 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11734 * value.c (show_convenience): Update.
11735 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11736 (test_parse_flags_qcs): Update.
11737 * thread.c (thr_try_catch_cmd): Update.
11738 * target.c (target_translate_tls_address): Update.
11739 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11740 (info_frame_command_core, frame_apply_command_count): Update.
11741 * rust-exp.y (rust_lex_exception_test): Update.
11742 * riscv-tdep.c (riscv_print_one_register_info): Update.
11743 * remote.c (remote_target::enable_btrace): Update.
11744 * record-btrace.c (record_btrace_enable_warn): Update.
11745 * python/py-utils.c (gdbpy_convert_exception): Update.
11746 * printcmd.c (do_one_display, print_variable_and_value): Update.
11747 * mi/mi-main.c (mi_print_exception): Update.
11748 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11749 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11750 * linux-nat.c (linux_nat_target::attach): Update.
11751 * linux-fork.c (class scoped_switch_fork_info): Update.
11752 * infrun.c (displaced_step_prepare): Update.
11753 * infcall.c (call_function_by_hand_dummy): Update.
11754 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11755 * gnu-v3-abi.c (print_one_vtable): Update.
11756 * frame.c (get_prev_frame_always): Update.
11757 * f-valprint.c (info_common_command_for_block): Update.
11758 * exec.c (try_open_exec_file): Update.
11759 * exceptions.c (print_exception, exception_print)
11760 (exception_fprintf, exception_print_same): Update.
11761 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11762 * dwarf-index-cache.c (index_cache::store)
11763 (index_cache::lookup_gdb_index): Update.
11764 * darwin-nat.c (maybe_cache_shell): Update.
11765 * cp-valprint.c (cp_print_value_fields): Update.
11766 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11767 (gcc_cplus_symbol_address): Update.
11768 * compile/compile-c-symbols.c (gcc_convert_symbol)
11769 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11770 * common/selftest.c: Update.
11771 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11773 (exception_try_scope_entry, exception_try_scope_exit): Don't
11775 (struct exception_try_scope): Remove.
11776 (TRY): Don't use exception_try_scope.
11777 (struct gdb_exception): Add constructor, operator=.
11778 <what>: New method.
11779 (struct gdb_exception_RETURN_MASK_ALL)
11780 (struct gdb_exception_RETURN_MASK_ERROR)
11781 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11782 (struct gdb_quit_bad_alloc): Update.
11783 * common/common-exceptions.c (exception_none): Change
11785 (struct catcher) <state, exception>: Initialize inline.
11786 <prev>: Remove member.
11787 (current_catcher): Remove.
11788 (catchers): New global.
11789 (exceptions_state_mc_init): Simplify.
11790 (catcher_pop): Remove.
11791 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11792 (try_scope_depth, exception_try_scope_entry)
11793 (exception_try_scope_exit): Remove.
11794 (throw_exception_sjlj): Update.
11795 (exception_messages, exception_messages_size): Remove.
11796 (throw_it): Simplify.
11797 (gdb_exception_sliced_copy): Remove.
11798 (throw_exception_cxx): Update.
11799 * cli/cli-script.c (script_from_file): Update.
11800 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11802 * ada-valprint.c (ada_val_print): Update.
11803 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11804 (create_excep_cond_exprs): Update.
11806 2019-04-08 Tom Tromey <tom@tromey.com>
11808 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11809 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11810 (TRY, CATCH, END_CATCH): Remove some definitions.
11811 * common/common-exceptions.c: Don't use GDB_XCPT.
11812 (catcher_list_size): Remove.
11813 (throw_exception, throw_it): Simplify.
11815 2019-04-05 Tom Tromey <tom@tromey.com>
11817 Revert the header-sorting patch.
11818 * ft32-tdep.c: Revert.
11819 * frv-tdep.c: Revert.
11820 * frv-linux-tdep.c: Revert.
11822 * frame-unwind.c: Revert.
11823 * frame-base.c: Revert.
11824 * fork-child.c: Revert.
11825 * findvar.c: Revert.
11826 * findcmd.c: Revert.
11827 * filesystem.c: Revert.
11828 * filename-seen-cache.h: Revert.
11829 * filename-seen-cache.c: Revert.
11830 * fbsd-tdep.c: Revert.
11831 * fbsd-nat.h: Revert.
11832 * fbsd-nat.c: Revert.
11833 * f-valprint.c: Revert.
11834 * f-typeprint.c: Revert.
11835 * f-lang.c: Revert.
11836 * extension.h: Revert.
11837 * extension.c: Revert.
11838 * extension-priv.h: Revert.
11839 * expprint.c: Revert.
11842 * exceptions.c: Revert.
11843 * event-top.c: Revert.
11844 * event-loop.c: Revert.
11846 * elfread.c: Revert.
11847 * dwarf2read.h: Revert.
11848 * dwarf2read.c: Revert.
11849 * dwarf2loc.c: Revert.
11850 * dwarf2expr.h: Revert.
11851 * dwarf2expr.c: Revert.
11852 * dwarf2-frame.c: Revert.
11853 * dwarf2-frame-tailcall.c: Revert.
11854 * dwarf-index-write.h: Revert.
11855 * dwarf-index-write.c: Revert.
11856 * dwarf-index-common.c: Revert.
11857 * dwarf-index-cache.h: Revert.
11858 * dwarf-index-cache.c: Revert.
11859 * dummy-frame.c: Revert.
11860 * dtrace-probe.c: Revert.
11861 * disasm.h: Revert.
11862 * disasm.c: Revert.
11863 * disasm-selftests.c: Revert.
11864 * dictionary.c: Revert.
11865 * dicos-tdep.c: Revert.
11866 * demangle.c: Revert.
11867 * dcache.h: Revert.
11868 * dcache.c: Revert.
11869 * darwin-nat.h: Revert.
11870 * darwin-nat.c: Revert.
11871 * darwin-nat-info.c: Revert.
11872 * d-valprint.c: Revert.
11873 * d-namespace.c: Revert.
11874 * d-lang.c: Revert.
11876 * csky-tdep.c: Revert.
11877 * csky-linux-tdep.c: Revert.
11878 * cris-tdep.c: Revert.
11879 * cris-linux-tdep.c: Revert.
11880 * cp-valprint.c: Revert.
11881 * cp-support.c: Revert.
11882 * cp-namespace.c: Revert.
11883 * cp-abi.c: Revert.
11884 * corelow.c: Revert.
11885 * corefile.c: Revert.
11886 * continuations.c: Revert.
11887 * completer.h: Revert.
11888 * completer.c: Revert.
11889 * complaints.c: Revert.
11890 * coffread.c: Revert.
11891 * coff-pe-read.c: Revert.
11892 * cli-out.h: Revert.
11893 * cli-out.c: Revert.
11894 * charset.c: Revert.
11895 * c-varobj.c: Revert.
11896 * c-valprint.c: Revert.
11897 * c-typeprint.c: Revert.
11898 * c-lang.c: Revert.
11899 * buildsym.c: Revert.
11900 * buildsym-legacy.c: Revert.
11901 * build-id.h: Revert.
11902 * build-id.c: Revert.
11903 * btrace.c: Revert.
11904 * bsd-uthread.c: Revert.
11905 * breakpoint.h: Revert.
11906 * breakpoint.c: Revert.
11907 * break-catch-throw.c: Revert.
11908 * break-catch-syscall.c: Revert.
11909 * break-catch-sig.c: Revert.
11910 * blockframe.c: Revert.
11912 * bfin-tdep.c: Revert.
11913 * bfin-linux-tdep.c: Revert.
11914 * bfd-target.c: Revert.
11915 * bcache.c: Revert.
11916 * ax-general.c: Revert.
11917 * ax-gdb.h: Revert.
11918 * ax-gdb.c: Revert.
11919 * avr-tdep.c: Revert.
11921 * auto-load.c: Revert.
11922 * arm-wince-tdep.c: Revert.
11923 * arm-tdep.c: Revert.
11924 * arm-symbian-tdep.c: Revert.
11925 * arm-pikeos-tdep.c: Revert.
11926 * arm-obsd-tdep.c: Revert.
11927 * arm-nbsd-tdep.c: Revert.
11928 * arm-nbsd-nat.c: Revert.
11929 * arm-linux-tdep.c: Revert.
11930 * arm-linux-nat.c: Revert.
11931 * arm-fbsd-tdep.c: Revert.
11932 * arm-fbsd-nat.c: Revert.
11933 * arm-bsd-tdep.c: Revert.
11934 * arch-utils.c: Revert.
11935 * arc-tdep.c: Revert.
11936 * arc-newlib-tdep.c: Revert.
11937 * annotate.h: Revert.
11938 * annotate.c: Revert.
11939 * amd64-windows-tdep.c: Revert.
11940 * amd64-windows-nat.c: Revert.
11941 * amd64-tdep.c: Revert.
11942 * amd64-sol2-tdep.c: Revert.
11943 * amd64-obsd-tdep.c: Revert.
11944 * amd64-obsd-nat.c: Revert.
11945 * amd64-nbsd-tdep.c: Revert.
11946 * amd64-nbsd-nat.c: Revert.
11947 * amd64-nat.c: Revert.
11948 * amd64-linux-tdep.c: Revert.
11949 * amd64-linux-nat.c: Revert.
11950 * amd64-fbsd-tdep.c: Revert.
11951 * amd64-fbsd-nat.c: Revert.
11952 * amd64-dicos-tdep.c: Revert.
11953 * amd64-darwin-tdep.c: Revert.
11954 * amd64-bsd-nat.c: Revert.
11955 * alpha-tdep.c: Revert.
11956 * alpha-obsd-tdep.c: Revert.
11957 * alpha-nbsd-tdep.c: Revert.
11958 * alpha-mdebug-tdep.c: Revert.
11959 * alpha-linux-tdep.c: Revert.
11960 * alpha-linux-nat.c: Revert.
11961 * alpha-bsd-tdep.c: Revert.
11962 * alpha-bsd-nat.c: Revert.
11963 * aix-thread.c: Revert.
11965 * addrmap.c: Revert.
11966 * ada-varobj.c: Revert.
11967 * ada-valprint.c: Revert.
11968 * ada-typeprint.c: Revert.
11969 * ada-tasks.c: Revert.
11970 * ada-lang.c: Revert.
11971 * aarch64-tdep.c: Revert.
11972 * aarch64-ravenscar-thread.c: Revert.
11973 * aarch64-newlib-tdep.c: Revert.
11974 * aarch64-linux-tdep.c: Revert.
11975 * aarch64-linux-nat.c: Revert.
11976 * aarch64-fbsd-tdep.c: Revert.
11977 * aarch64-fbsd-nat.c: Revert.
11978 * aarch32-linux-nat.c: Revert.
11980 2019-04-05 Tom Tromey <tom@tromey.com>
11982 * ft32-tdep.c: Sort headers.
11983 * frv-tdep.c: Sort headers.
11984 * frv-linux-tdep.c: Sort headers.
11985 * frame.c: Sort headers.
11986 * frame-unwind.c: Sort headers.
11987 * frame-base.c: Sort headers.
11988 * fork-child.c: Sort headers.
11989 * findvar.c: Sort headers.
11990 * findcmd.c: Sort headers.
11991 * filesystem.c: Sort headers.
11992 * filename-seen-cache.h: Sort headers.
11993 * filename-seen-cache.c: Sort headers.
11994 * fbsd-tdep.c: Sort headers.
11995 * fbsd-nat.h: Sort headers.
11996 * fbsd-nat.c: Sort headers.
11997 * f-valprint.c: Sort headers.
11998 * f-typeprint.c: Sort headers.
11999 * f-lang.c: Sort headers.
12000 * extension.h: Sort headers.
12001 * extension.c: Sort headers.
12002 * extension-priv.h: Sort headers.
12003 * expprint.c: Sort headers.
12004 * exec.h: Sort headers.
12005 * exec.c: Sort headers.
12006 * exceptions.c: Sort headers.
12007 * event-top.c: Sort headers.
12008 * event-loop.c: Sort headers.
12009 * eval.c: Sort headers.
12010 * elfread.c: Sort headers.
12011 * dwarf2read.h: Sort headers.
12012 * dwarf2read.c: Sort headers.
12013 * dwarf2loc.c: Sort headers.
12014 * dwarf2expr.h: Sort headers.
12015 * dwarf2expr.c: Sort headers.
12016 * dwarf2-frame.c: Sort headers.
12017 * dwarf2-frame-tailcall.c: Sort headers.
12018 * dwarf-index-write.h: Sort headers.
12019 * dwarf-index-write.c: Sort headers.
12020 * dwarf-index-common.c: Sort headers.
12021 * dwarf-index-cache.h: Sort headers.
12022 * dwarf-index-cache.c: Sort headers.
12023 * dummy-frame.c: Sort headers.
12024 * dtrace-probe.c: Sort headers.
12025 * disasm.h: Sort headers.
12026 * disasm.c: Sort headers.
12027 * disasm-selftests.c: Sort headers.
12028 * dictionary.c: Sort headers.
12029 * dicos-tdep.c: Sort headers.
12030 * demangle.c: Sort headers.
12031 * dcache.h: Sort headers.
12032 * dcache.c: Sort headers.
12033 * darwin-nat.h: Sort headers.
12034 * darwin-nat.c: Sort headers.
12035 * darwin-nat-info.c: Sort headers.
12036 * d-valprint.c: Sort headers.
12037 * d-namespace.c: Sort headers.
12038 * d-lang.c: Sort headers.
12039 * ctf.c: Sort headers.
12040 * csky-tdep.c: Sort headers.
12041 * csky-linux-tdep.c: Sort headers.
12042 * cris-tdep.c: Sort headers.
12043 * cris-linux-tdep.c: Sort headers.
12044 * cp-valprint.c: Sort headers.
12045 * cp-support.c: Sort headers.
12046 * cp-namespace.c: Sort headers.
12047 * cp-abi.c: Sort headers.
12048 * corelow.c: Sort headers.
12049 * corefile.c: Sort headers.
12050 * continuations.c: Sort headers.
12051 * completer.h: Sort headers.
12052 * completer.c: Sort headers.
12053 * complaints.c: Sort headers.
12054 * coffread.c: Sort headers.
12055 * coff-pe-read.c: Sort headers.
12056 * cli-out.h: Sort headers.
12057 * cli-out.c: Sort headers.
12058 * charset.c: Sort headers.
12059 * c-varobj.c: Sort headers.
12060 * c-valprint.c: Sort headers.
12061 * c-typeprint.c: Sort headers.
12062 * c-lang.c: Sort headers.
12063 * buildsym.c: Sort headers.
12064 * buildsym-legacy.c: Sort headers.
12065 * build-id.h: Sort headers.
12066 * build-id.c: Sort headers.
12067 * btrace.c: Sort headers.
12068 * bsd-uthread.c: Sort headers.
12069 * breakpoint.h: Sort headers.
12070 * breakpoint.c: Sort headers.
12071 * break-catch-throw.c: Sort headers.
12072 * break-catch-syscall.c: Sort headers.
12073 * break-catch-sig.c: Sort headers.
12074 * blockframe.c: Sort headers.
12075 * block.c: Sort headers.
12076 * bfin-tdep.c: Sort headers.
12077 * bfin-linux-tdep.c: Sort headers.
12078 * bfd-target.c: Sort headers.
12079 * bcache.c: Sort headers.
12080 * ax-general.c: Sort headers.
12081 * ax-gdb.h: Sort headers.
12082 * ax-gdb.c: Sort headers.
12083 * avr-tdep.c: Sort headers.
12084 * auxv.c: Sort headers.
12085 * auto-load.c: Sort headers.
12086 * arm-wince-tdep.c: Sort headers.
12087 * arm-tdep.c: Sort headers.
12088 * arm-symbian-tdep.c: Sort headers.
12089 * arm-pikeos-tdep.c: Sort headers.
12090 * arm-obsd-tdep.c: Sort headers.
12091 * arm-nbsd-tdep.c: Sort headers.
12092 * arm-nbsd-nat.c: Sort headers.
12093 * arm-linux-tdep.c: Sort headers.
12094 * arm-linux-nat.c: Sort headers.
12095 * arm-fbsd-tdep.c: Sort headers.
12096 * arm-fbsd-nat.c: Sort headers.
12097 * arm-bsd-tdep.c: Sort headers.
12098 * arch-utils.c: Sort headers.
12099 * arc-tdep.c: Sort headers.
12100 * arc-newlib-tdep.c: Sort headers.
12101 * annotate.h: Sort headers.
12102 * annotate.c: Sort headers.
12103 * amd64-windows-tdep.c: Sort headers.
12104 * amd64-windows-nat.c: Sort headers.
12105 * amd64-tdep.c: Sort headers.
12106 * amd64-sol2-tdep.c: Sort headers.
12107 * amd64-obsd-tdep.c: Sort headers.
12108 * amd64-obsd-nat.c: Sort headers.
12109 * amd64-nbsd-tdep.c: Sort headers.
12110 * amd64-nbsd-nat.c: Sort headers.
12111 * amd64-nat.c: Sort headers.
12112 * amd64-linux-tdep.c: Sort headers.
12113 * amd64-linux-nat.c: Sort headers.
12114 * amd64-fbsd-tdep.c: Sort headers.
12115 * amd64-fbsd-nat.c: Sort headers.
12116 * amd64-dicos-tdep.c: Sort headers.
12117 * amd64-darwin-tdep.c: Sort headers.
12118 * amd64-bsd-nat.c: Sort headers.
12119 * alpha-tdep.c: Sort headers.
12120 * alpha-obsd-tdep.c: Sort headers.
12121 * alpha-nbsd-tdep.c: Sort headers.
12122 * alpha-mdebug-tdep.c: Sort headers.
12123 * alpha-linux-tdep.c: Sort headers.
12124 * alpha-linux-nat.c: Sort headers.
12125 * alpha-bsd-tdep.c: Sort headers.
12126 * alpha-bsd-nat.c: Sort headers.
12127 * aix-thread.c: Sort headers.
12128 * agent.c: Sort headers.
12129 * addrmap.c: Sort headers.
12130 * ada-varobj.c: Sort headers.
12131 * ada-valprint.c: Sort headers.
12132 * ada-typeprint.c: Sort headers.
12133 * ada-tasks.c: Sort headers.
12134 * ada-lang.c: Sort headers.
12135 * aarch64-tdep.c: Sort headers.
12136 * aarch64-ravenscar-thread.c: Sort headers.
12137 * aarch64-newlib-tdep.c: Sort headers.
12138 * aarch64-linux-tdep.c: Sort headers.
12139 * aarch64-linux-nat.c: Sort headers.
12140 * aarch64-fbsd-tdep.c: Sort headers.
12141 * aarch64-fbsd-nat.c: Sort headers.
12142 * aarch32-linux-nat.c: Sort headers.
12144 2019-04-04 Tom Tromey <tom@tromey.com>
12146 * varobj.c (varobj_create): Update.
12147 * rust-exp.y (struct rust_parser) <update_innermost_block,
12148 lookup_symbol>: New methods.
12149 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12151 (rust_parser::rust_lookup_type)
12152 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12153 * printcmd.c (display_command, do_one_display): Update.
12154 * parser-defs.h (struct parser_state) <parser_state>: Add
12155 "tracker" parameter.
12156 (block_tracker): New member.
12157 (class innermost_block_tracker) <innermost_block_tracker>: Add
12159 <reset>: Remove method.
12160 (innermost_block): Don't declare.
12161 (null_post_parser): Update.
12162 * parse.c (innermost_block): Remove global.
12163 (write_dollar_variable): Update.
12164 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12165 Remove "tracker_types" parameter.
12166 (parse_expression): Add "tracker" parameter.
12167 (parse_expression_for_completion): Update.
12168 (null_post_parser): Add "tracker" parameter.
12169 * p-exp.y: Update rules.
12170 * m2-exp.y: Update rules.
12171 * language.h (struct language_defn) <la_post_parser>: Add
12172 "tracker" parameter.
12173 * go-exp.y: Update rules.
12174 * f-exp.y: Update rules.
12175 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12177 * d-exp.y: Update rules.
12178 * c-exp.y: Update rules.
12179 * breakpoint.c (set_breakpoint_condition): Create an
12180 innermost_block_tracker.
12181 (watch_command_1): Likewise.
12182 * ada-lang.c (resolve): Add "tracker" parameter.
12183 (resolve_subexp): Likewise.
12184 * ada-exp.y (write_var_from_sym): Update.
12186 2019-04-04 Tom Tromey <tom@tromey.com>
12188 * type-stack.h: New file.
12189 * type-stack.c: New file.
12190 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12192 (insert_into_type_stack, insert_type, push_type, push_type_int)
12193 (insert_type_address_space, pop_type, pop_type_int)
12194 (pop_typelist, pop_type_stack, append_type_stack)
12195 (push_type_stack, get_type_stack, push_typelist)
12196 (follow_type_instance_flags, follow_types): Don't declare.
12197 * parse.c (type_stack): Remove global.
12198 (parse_exp_in_context): Update.
12199 (insert_into_type_stack, insert_type, push_type, push_type_int)
12200 (insert_type_address_space, pop_type, pop_type_int)
12201 (pop_typelist, pop_type_stack, append_type_stack)
12202 (push_type_stack, get_type_stack, push_typelist)
12203 (follow_type_instance_flags, follow_types): Remove (moved to
12205 * f-exp.y (type_stack): New global.
12207 (push_kind_type, f_parse): Update.
12208 * d-exp.y (type_stack): New global.
12211 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12213 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12214 (HFILES_NO_SRCDIR): Add type-stack.h.
12216 2019-04-04 Tom Tromey <tom@tromey.com>
12218 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12219 (rust_parser::convert_ast_to_expression, rust_parse)
12220 (rust_lex_test_completion, rust_lex_tests): Update.
12221 * parser-defs.h (struct expr_completion_state): New.
12222 (struct parser_state) <parser_state>: Add completion parameter.
12223 <mark_struct_expression, mark_completion_tag>: New methods.
12224 <parse_completion, m_completion_state>: New members.
12225 (prefixify_expression, null_post_parser): Update.
12226 (mark_struct_expression, mark_completion_tag): Don't declare.
12227 * parse.c (parse_completion, expout_last_struct)
12228 (expout_tag_completion_type, expout_completion_name): Remove
12230 (parser_state::mark_struct_expression)
12231 (parser_state::mark_completion_tag): Now methods.
12232 (prefixify_expression): Add last_struct parameter.
12233 (prefixify_subexp): Likewise.
12234 (parse_exp_1): Update.
12235 (parse_exp_in_context): Add cstate parameter. Update.
12236 (parse_expression_for_completion): Create an
12237 expr_completion_state.
12238 (null_post_parser): Add "completion" parameter.
12239 * p-exp.y: Update rules.
12241 * language.h (struct language_defn) <la_post_parser>: Add
12242 "completing" parameter.
12243 * go-exp.y: Update rules.
12244 (lex_one_token): Update.
12245 * expression.h (parse_completion): Don't declare.
12246 * d-exp.y: Update rules.
12247 (lex_one_token): Update rules.
12248 * c-exp.y: Update rules.
12249 (lex_one_token): Update.
12250 * ada-lang.c (resolve): Add "parse_completion" parameter.
12251 (resolve_subexp): Likewise.
12252 (ada_resolve_function): Likewise.
12254 2019-04-04 Tom Tromey <tom@tromey.com>
12256 * parser-defs.h (struct parser_state) <start_arglist,
12257 end_arglist>: New methods.
12258 <arglist_len, m_funcall_chain>: New members.
12259 (arglist_len, start_arglist, end_arglist): Don't declare.
12260 * parse.c (arglist_len, funcall_chain): Remove global.
12261 (start_arglist, end_arglist): Remove functions.
12262 (parse_exp_in_context): Update.
12263 * p-exp.y: Update rules.
12264 * m2-exp.y: Update rules.
12265 * go-exp.y: Update rules.
12266 * f-exp.y: Update rules.
12267 * d-exp.y: Update rules.
12268 * c-exp.y: Update rules.
12270 2019-04-04 Tom Tromey <tom@tromey.com>
12272 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12273 lex_operator, push_back>: New methods.
12275 (rust_parser::lex_hex, lex_escape): Rename and update.
12276 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12277 (rust_parser::lex_operator): Rename and update.
12278 (rust_parser::lex_number, rustyylex, rustyyerror)
12279 (rust_lex_test_init, rust_lex_test_sequence)
12280 (rust_lex_test_push_back, rust_lex_tests): Update.
12281 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12283 <lexptr, prev_lexptr>: New members.
12284 (lexptr, prev_lexptr): Don't declare.
12285 * parse.c (lexptr, prev_lexptr): Remove globals.
12286 (parse_exp_in_context): Update.
12287 * p-exp.y (yylex, yyerror): Update.
12288 * m2-exp.y (parse_number, yylex, yyerror): Update.
12289 * go-exp.y (lex_one_token, yyerror): Update.
12290 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12291 * d-exp.y (lex_one_token, yyerror): Update.
12292 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12293 (lex_one_token, yyerror): Update.
12294 * ada-lex.l (YY_INPUT): Update.
12295 (rewind_to_char): Update.
12296 * ada-exp.y (yyerror): Update.
12298 2019-04-04 Tom Tromey <tom@tromey.com>
12300 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12301 * parser-defs.h (struct parser_state) <parser_state>: Add new
12303 <comma_terminates>: New member.
12304 (comma_terminates): Don't declare global.
12305 * parse.c (comma_terminates): Remove global.
12306 (parse_exp_in_context): Update.
12307 * p-exp.y (yylex): Update.
12308 * m2-exp.y (yylex): Update.
12309 * go-exp.y (lex_one_token): Update.
12310 * f-exp.y (yylex): Update.
12311 * d-exp.y (lex_one_token): Update.
12312 * c-exp.y (lex_one_token): Update.
12313 * ada-lex.l: Update.
12315 2019-04-04 Tom Tromey <tom@tromey.com>
12317 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12318 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12319 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12320 * parser-defs.h (paren_depth): Don't declare.
12321 * parse.c (paren_depth): Remove global.
12322 (parse_exp_in_context): Update.
12323 * p-exp.y (paren_depth): New global.
12324 (pascal_parse): Initialize it.
12325 * m2-exp.y (paren_depth): New global.
12326 (m2_parse): Initialize it.
12327 * go-exp.y (paren_depth): New global.
12328 (go_parse): Initialize it.
12329 * f-exp.y (paren_depth): New global.
12330 (f_parse): Initialize it.
12331 * d-exp.y (paren_depth): New global.
12332 (d_parse): Initialize it.
12333 * c-exp.y (paren_depth): New global.
12334 (c_parse): Initialize it.
12335 * ada-lex.l (paren_depth): New global.
12336 (lexer_init): Initialize it.
12338 2019-04-04 Tom Tromey <tom@tromey.com>
12340 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12341 (rust_parser::convert_ast_to_type)
12342 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12343 * parser-defs.h (struct parser_state) <parser_state>: Add
12344 parameters. Initialize new members.
12345 <expression_context_block, expression_context_pc>: New members.
12346 * parse.c (expression_context_block, expression_context_pc):
12348 (parse_exp_in_context): Update.
12349 * p-exp.y: Update all rules.
12351 * m2-exp.y: Update all rules.
12353 * go-exp.y (yylex): Update.
12354 * f-exp.y (yylex): Update.
12355 * d-exp.y: Update all rules.
12357 * c-exp.y: Update all rules.
12358 (lex_one_token, classify_name, yylex, c_parse): Update.
12359 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12361 2019-04-04 Tom Tromey <tom@tromey.com>
12363 * gdbarch.h, gdbarch.c: Rebuild.
12364 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12366 (struct stap_parse_info): Replace "parser_state" with
12368 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12369 (parser_state): New class.
12370 * parse.c (expr_builder): Rename.
12371 (expr_builder::release): Rename.
12372 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12373 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12374 (write_exp_elt_longcst, write_exp_elt_floatcst)
12375 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12376 (write_exp_string_vector, write_exp_bitstring)
12377 (write_exp_msymbol, mark_struct_expression)
12378 (write_dollar_variable)
12379 (insert_type_address_space, increase_expout_size): Replace
12380 "parser_state" with "expr_builder".
12381 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12382 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12383 "parser_state" with "expr_builder".
12385 2019-04-04 Tom Tromey <tom@tromey.com>
12387 * rust-exp.y: Replace "parse_language" with method call.
12389 (yylex): Replace "parse_language" with method call.
12391 (yylex): Replace "parse_language" with method call.
12392 * go-exp.y (classify_name): Replace "parse_language" with method
12394 * f-exp.y (yylex): Replace "parse_language" with method call.
12395 * d-exp.y (lex_one_token): Replace "parse_language" with method
12398 (lex_one_token, classify_name, yylex): Replace "parse_language"
12400 * ada-exp.y (find_primitive_type, type_char)
12401 (type_system_address): Replace "parse_language" with method call.
12403 2019-04-04 Tom Tromey <tom@tromey.com>
12405 * rust-exp.y: Replace "parse_gdbarch" with method call.
12406 * parse.c (write_dollar_variable, insert_type_address_space):
12407 Replace "parse_gdbarch" with method call.
12408 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12410 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12412 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12413 "parse_gdbarch" with method call.
12414 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12416 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12417 "parse_gdbarch" with method call.
12418 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12419 "parse_gdbarch" with method call.
12420 * c-exp.y (parse_type, parse_number, classify_name): Replace
12421 "parse_gdbarch" with method call.
12422 * ada-lex.l: Replace "parse_gdbarch" with method call.
12423 * ada-exp.y (parse_type, find_primitive_type, type_char)
12424 (type_system_address): Replace "parse_gdbarch" with method call.
12426 2019-04-04 Tom Tromey <tom@tromey.com>
12428 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12429 * stap-probe.c (stap_parse_argument): Update.
12430 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12431 initial_size parameter.
12432 * rust-exp.y (rust_lex_tests): Update.
12433 * parse.c (parser_state): Update.
12434 (parse_exp_in_context): Update.
12435 * parser-defs.h (struct parser_state) <parser_state>: Remove
12436 "initial_size" parameter.
12438 2019-04-04 Tom Tromey <tom@tromey.com>
12440 * parser-defs.h (increase_expout_size): Don't declare.
12441 * parse.c (increase_expout_size): Now static.
12443 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12445 * gnu-nat.c (gnu_nat_target::wait): Fix
12446 target_waitstatus_to_string call.
12448 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12450 * eval.c (evaluate_subexp_standard): Handle internal functions
12451 during Fortran function call handling.
12453 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12455 * NEWS: Mention new internal functions.
12456 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12457 (read_base_type): Use dwarf2_init_complex_target_type.
12458 * value.c (creal_internal_fn): New function.
12459 (cimag_internal_fn): New function.
12460 (_initialize_values): Register new internal functions.
12462 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12464 * infrun.c (stop_all_threads): If debug_infrun, always
12465 trace the wait status after wait_one, using
12466 target_waitstatus_to_string and target_pid_to_str.
12467 (handle_inferior_event): Replace various trace of
12468 wait status kind by a single trace.
12469 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12470 wait status kind image by target_waitstatus_to_string.
12471 * target/waitstatus.c (target_waitstatus_to_string): Fix
12474 2019-04-01 Tom Tromey <tromey@adacore.com>
12477 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12479 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12480 Pedro Alves <palves@redhat.com>
12482 * top.c (quit_force): Call 'finalize_values'.
12483 * value.c (finalize_values): New function.
12484 * value.h (finalize_values): Declare.
12486 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12488 * NEWS: Announce $_gdb_major and $_gdb_minor.
12490 * top.c (init_gdb_version_vars): New function.
12491 (gdb_init): Call init_gdb_version_vars.
12493 2019-03-29 Tom Tromey <tromey@adacore.com>
12495 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12496 help text. Remove dead code.
12498 2019-03-29 Keith Seitz <keiths@redhat.com>
12500 From Siddhesh Poyarekar:
12501 * f-lang.h (f77_get_upperbound): Return LONGEST.
12502 (f77_get_lowerbound): Likewise.
12503 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12504 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12506 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12507 plongest to format print it.
12508 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12509 (f77_get_upperbound): Likewise.
12510 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12511 LOWER_BOUND to LONGEST.
12512 (f77_create_arrayprint_offset_tbl): Likewise.
12514 2019-03-29 Keith Seitz <keiths@redhat.com>
12516 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12517 %s/pulongest for TYPE_LENGTH instead of %d in format
12519 * ada-typerint.c (ada_print_type): Likewise.
12520 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12521 * compile/compile-c-support.c (generate_register_struct): Likewise.
12522 * gdbtypes.c (recursive_dump_type): Likewise.
12523 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12524 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12525 instead of %d in format strings.
12526 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12527 to std::min to ULONGEST.
12528 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12529 instead of %d in format strings.
12530 * tracepoint.c (info_scope_command): Likewise.
12531 * typeprint.c (print_offset_data::update)
12532 (print_offset_data::finish): Likewise.
12533 * xtensa-tdep.c (xtensa_store_return_value)
12534 (xtensa_push_dummy_call): Likewise.
12536 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12538 * windows-nat.c (display_selector): Fixed format specifications
12541 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12543 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12545 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12547 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12548 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12549 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12550 (nios2_linux_init_abi): Install it.
12552 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12554 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12556 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12558 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12560 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12561 Tom Tromey <tromey@adacore.com>
12563 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12565 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12567 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12568 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12569 method to compute the bounds of range types. Also print "[evaluated]"
12570 if the bounds' values come from a dynamic evaluation.
12572 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12574 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12575 whitespace when pretty printing is on.
12577 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12579 * ppc-linux-nat.c: Add include.
12581 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12583 * NEWS: Mention AArch64 Pointer Authentication.
12585 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12587 * arm-linux-nat.c: Add include.
12589 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12591 * source-cache.c (source_cache::get_source_lines): Re-read
12592 fullname after calling open_source_file.
12594 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12596 * NEWS: Mention TLS support for FreeBSD.
12598 2019-03-25 Tom Tromey <tromey@adacore.com>
12600 * minsyms.c (BUNCH_SIZE): Update comment.
12601 (~minimal_symbol_reader): Remove old comment.
12602 (compact_minimal_symbols): Update comment.
12603 (minimal_symbol_reader::install): Remove old comment. Update
12606 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12608 * s390-linux-nat.c: Add include.
12610 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12612 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12613 Call linux_get_hwcap.
12614 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12616 (aarch64_linux_get_hwcap): Remove function.
12617 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12619 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12621 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12622 * linux-tdep.c (linux_get_hwcap): Add function.
12623 (linux_get_hwcap2): Likewise.
12624 * linux-tdep.h (linux_get_hwcap): Add declaration.
12625 (linux_get_hwcap2): Likewise.
12626 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12627 (ppc_linux_get_hwcap2): Likewise.
12628 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12630 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12631 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12632 (ppc_linux_nat_target::read_description): Likewise.
12633 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12634 * s390-linux-nat.c: Likewise.
12635 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12637 2019-03-24 Tom Tromey <tom@tromey.com>
12639 * ada-lang.c (standard_lookup): Simplify initialization.
12640 (ada_lookup_symbol_nonlocal): Simplify return.
12641 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12642 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12643 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12644 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12646 * solib.c (solib_global_lookup): Simplify.
12647 * symtab.c (null_block_symbol): Remove.
12648 (symbol_cache_lookup): Simplify returns.
12649 (lookup_language_this): Simplify returns.
12650 (lookup_symbol_aux): Simplify return.
12651 (lookup_local_symbol): Simplify returns.
12652 (lookup_global_symbol_from_objfile): Simplify return.
12653 (lookup_symbol_in_objfile_symtabs)
12654 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12655 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12656 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12657 * cp-namespace.c (cp_lookup_bare_symbol)
12658 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12659 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12660 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12661 (cp_lookup_symbol_via_imports): Simplify initialization.
12662 (find_symbol_in_baseclass): Likewise.
12663 * symtab.h (null_block_symbol): Remove.
12664 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12665 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12666 (d_lookup_symbol_module): Likewise.
12667 (find_symbol_in_baseclass): Simplify initialization.
12669 2019-03-24 Tom Tromey <tom@tromey.com>
12671 * expression.h: Don't include symtab.h.
12672 (struct block): Forward declare.
12674 2019-03-24 Tom Tromey <tom@tromey.com>
12676 * c-exp.y (typebase): Remove casts.
12677 * gdbtypes.c (lookup_unsigned_typename, )
12678 (lookup_signed_typename): Remove cast.
12679 * eval.c (parse_to_comma_and_eval): Remove cast.
12680 * parse.c (write_dollar_variable): Remove cast.
12681 * block.h (struct block) <superblock>: Now const.
12682 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12683 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12684 (map_block): Make "block" const.
12685 * symfile.h (struct quick_symbol_functions)
12686 <map_matching_symbols>: Constify block argument to "callback".
12687 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12689 (find_pc_sect_compunit_symtab): Make "b" const.
12690 (find_symbol_at_address): Likewise.
12691 (search_symbols): Likewise.
12692 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12693 (dw2_debug_names_lookup_symbol): Likewise.
12694 (dw2_map_matching_symbols): Update.
12695 * p-valprint.c (pascal_val_print): Remove "block".
12696 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12697 (aux_add_nonlocal_symbols): Make "block" const.
12698 (resolve_subexp): Remove cast.
12699 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12701 (iterate_over_file_blocks): Likewise.
12702 * f-exp.y (%union) <bval>: Remove.
12703 * coffread.c (patch_opaque_types): Make "b" const.
12704 * spu-tdep.c (spu_catch_start): Make "block" const.
12705 * c-valprint.c (print_unpacked_pointer): Remove "block".
12706 * symmisc.c (dump_symtab_1): Make "b" const.
12707 (block_depth): Make "block" const.
12708 * d-exp.y (%union) <bval>: Remove.
12709 * cp-support.h (cp_lookup_rtti_type): Update.
12710 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12711 * psymtab.c (psym_lookup_symbol): Make "block" const.
12712 (maintenance_check_psymtabs): Make "b" const.
12713 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12714 (enumerate_locals, enumerate_args): Update.
12715 * python/py-symtab.c (stpy_global_block): Make "block" const.
12716 (stpy_static_block): Likewise.
12717 * inline-frame.c (block_starting_point_at): Make "new_block"
12719 * block.c (find_block_in_blockvector): Make return type const.
12720 (blockvector_for_pc_sect): Make "b" const.
12721 (find_block_in_blockvector): Make "b" const.
12723 2019-03-23 Tom Tromey <tom@tromey.com>
12725 * varobj.c (varobj_create): Update.
12726 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12727 * printcmd.c (display_command, do_one_display): Don't reset
12729 * parser-defs.h (enum innermost_block_tracker_type): Move to
12731 (innermost_block): Update comment.
12732 * parse.c (parse_exp_1): Add tracker_types parameter.
12733 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12734 tracker_types parameter. Reset innermost_block.
12735 (parse_exp_in_context): Remove.
12736 (parse_expression_for_completion): Update.
12737 * objfiles.c (~objfile): Don't reset expression_context_block or
12739 * expression.h (enum innermost_block_tracker_type): Move from
12741 (parse_exp_1): Add tracker_types parameter.
12742 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12743 reset innermost_block.
12745 2019-03-23 Tom Tromey <tom@tromey.com>
12747 * objfiles.h: Include bcache.h.
12749 2019-03-23 Tom Tromey <tom@tromey.com>
12751 * linespec.c (get_current_search_block): Use
12752 scoped_restore_current_language.
12753 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12755 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12756 Jiong Wang <jiong.wang@arm.com>
12758 * aarch64-linux-tdep.c
12759 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12761 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12763 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12764 Jiong Wang <jiong.wang@arm.com>
12766 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12768 (aarch64_analyze_prologue_test): Add PACIASP test.
12769 (aarch64_prologue_prev_register): Unmask PC value.
12771 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12772 Jiong Wang <jiong.wang@arm.com>
12774 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12775 (aarch64_dwarf2_prev_register): Unmask PC value.
12776 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12777 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12778 DW_CFA_AARCH64_negate_ra_state.
12779 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12781 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12782 Jiong Wang <jiong.wang@arm.com>
12784 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12786 (aarch64_pseudo_register_name): Likewise.
12787 (aarch64_pseudo_register_type): Likewise.
12788 (aarch64_pseudo_register_reggroup_p): Likewise.
12789 (aarch64_gdbarch_init): Add pauth registers.
12790 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12791 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12792 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12793 (struct gdbarch_tdep): Add regnum for ra_state.
12795 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12796 Jiong Wang <jiong.wang@arm.com>
12798 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12800 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12801 Jiong Wang <jiong.wang@arm.com>
12803 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12805 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12806 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12807 (aarch64_gdbarch_init): Add puth registers.
12808 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12809 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12810 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12812 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12813 Jiong Wang <jiong.wang@arm.com>
12815 * aarch64-linux-nat.c
12816 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12817 * aarch64-linux-tdep.c
12818 (aarch64_linux_core_read_description): Likewise.
12819 (aarch64_linux_get_hwcap): New function.
12820 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12821 (aarch64_linux_get_hwcap): New declaration.
12823 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12824 Jiong Wang <jiong.wang@arm.com>
12826 * aarch64-linux-nat.c
12827 (aarch64_linux_nat_target::read_description): Add pauth param.
12828 * aarch64-linux-tdep.c
12829 (aarch64_linux_core_read_description): Likewise.
12830 * aarch64-tdep.c (struct target_desc): Add in pauth.
12831 (aarch64_read_description): Add pauth param.
12832 (aarch64_gdbarch_init): Likewise.
12833 * aarch64-tdep.h (aarch64_read_description): Likewise.
12834 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12835 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12836 * features/Makefile: Add new files.
12837 * features/aarch64-pauth.c: New file.
12838 * features/aarch64-pauth.xml: New file.
12840 2019-03-20 Tom Tromey <tromey@adacore.com>
12842 * infrun.c (handle_inferior_event): Rename from
12843 handle_inferior_event_1. Create a scoped_value_mark.
12844 (handle_inferior_event): Remove.
12846 2019-03-19 Tom Tromey <tromey@adacore.com>
12848 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12849 * infrun.h (print_stop_event): Add "displays" parameter.
12850 * infrun.c (print_stop_event): Add "displays" parameter.
12852 2019-03-19 Pedro Alves <palves@redhat.com>
12854 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12855 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12856 to -1. Fix TABs vs spaces.
12857 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12858 * tui/tui-out.h (tui_ui_out) Add intro comments.
12859 <m_line, m_start_of_line>: In-class initialize, and add describing
12862 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12864 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12866 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12868 2019-03-18 Pedro Alves <palves@redhat.com>
12869 Eli Zaretskii <eliz@gnu.org>
12871 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12872 m_line and m_start_of_line.
12874 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12876 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12877 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12878 it returns a newline. This fixes a regression in TU mode, whereby
12879 the next line is output on the same screen line as the user input.
12881 2019-03-18 Tom Tromey <tromey@adacore.com>
12883 * minsyms.c (minimal_symbol_reader::install): Remove call to
12886 2019-03-18 Pedro Alves <palves@redhat.com>
12888 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12890 (apply_style): New, factored out from ...
12891 (apply_ansi_escape): ... this. Handle reverse video mode.
12892 (tui_set_reverse_mode): New function.
12893 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12894 * tui/tui-winsource.c (tui_show_source_line): Use
12895 tui_set_reverse_mode instead of setting A_STANDOUT.
12896 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12897 New setter methods.
12899 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12901 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12904 2019-03-18 Tom Tromey <tromey@adacore.com>
12906 * ada-lang.c (empty_array): Add "high" parameter.
12907 (ada_evaluate_subexp): Update.
12909 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12911 * unittests/string_view-selftests.c: Define
12912 _initialize_string_view_selftests unconditionally.
12914 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12917 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12919 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12922 * windows-nat.c (display_selector): Fix format specifiers.
12924 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12926 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12927 tui_refill_source_window instead of tui_refresh_win, to update the
12928 current execution line. This fixes redisplay of the current line
12929 when stepping through the code with "next" or "step".
12931 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12933 * source-cache.c (source_cache::get_source_lines): Call
12934 find_source_lines to initialize s->nlines. This fixes vertical
12935 scrolling of TUI source window when the DOWN arrow is pressed.
12937 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12939 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12940 linux-thread-db.c (_initialize_thread_db): Likewise.
12942 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12944 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12945 wclrtoeol in tui_show_source_line". This reverts changes made in
12946 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12948 2019-03-15 Tom Tromey <tom@tromey.com>
12950 * symtab.h (struct minimal_symbol): Derive from
12951 general_symbol_info.
12952 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12953 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12954 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12955 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12956 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12957 (MSYMBOL_SEARCH_NAME): Update.
12958 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12959 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12960 * minsyms.c (minimal_symbol_reader::record_full): Update.
12962 2019-03-15 Tom Tromey <tom@tromey.com>
12964 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12966 2019-03-15 Tom Tromey <tom@tromey.com>
12968 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12969 unique_xmalloc_ptr.
12970 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12972 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12973 (build_minimal_symbol_hash_tables)
12974 (minimal_symbol_reader::install): Update.
12976 2019-03-15 Tom Tromey <tom@tromey.com>
12978 * symtab.c (create_demangled_names_hash): Update.
12979 (symbol_set_names): Update.
12980 * objfiles.h (struct objfile_per_bfd_storage)
12981 <demangled_names_hash>: Now an htab_up.
12982 * objfiles.c (objfile_per_bfd_storage): Simplify.
12984 2019-03-15 Tom Tromey <tom@tromey.com>
12986 * objfiles.h (struct objfile_per_bfd_storage): Declare
12988 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12990 (get_objfile_bfd_data): Use new. Don't initialize
12992 (free_objfile_per_bfd_storage): Remove.
12993 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12995 2019-03-15 Tom Tromey <tom@tromey.com>
12997 * symfile.c (reread_symbols): Update.
12998 * objfiles.c (objfile::objfile): Update.
12999 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13000 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13002 (minimal_symbol_reader::install): Update.
13003 (terminate_minimal_symbol_table): Remove.
13004 * jit.c (jit_object_close_impl): Update.
13006 2019-03-15 Tom Tromey <tom@tromey.com>
13008 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13011 2019-03-15 Tom Tromey <tom@tromey.com>
13013 * objfiles.h (struct objfile_per_bfd_storage)
13014 <demangled_hash_languages>: Now a bitset.
13015 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13016 (lookup_minimal_symbol): Update.
13018 2019-03-15 Tom Tromey <tom@tromey.com>
13020 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13021 Don't return the symbol.
13022 * coffread.c (record_minimal_symbol): Use record_full.
13024 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13026 The MS-Windows port of ncurses fails to switch to a color pair if
13027 one or both of the colors are the implicit default colors. This
13028 change records the default colors when TUI is initialized, and
13029 then specifies them explicitly when a color pair uses the default
13030 colors. This allows color styling in TUI mode on MS-Windows.
13032 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13034 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13035 colors in ncurses_norm_attr.
13036 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13037 "none", replace it with the default color recorded in
13040 2019-03-14 Tom Tromey <tromey@adacore.com>
13042 * source-cache.h (class source_cache) <get_source_lines>: Return
13044 * source-cache.c (source_cache::extract_lines): Handle case where
13045 first_pos==npos. Return std::string.
13046 (source_cache::get_source_lines): Update.
13048 2019-03-14 Tom Tromey <tromey@adacore.com>
13050 * NEWS: Add item for "style sources" commands.
13051 * source-cache.c (source_cache::get_source_lines): Check
13053 * cli/cli-style.c (source_styling): New global.
13054 (_initialize_cli_style): Add "style sources" commands.
13055 (show_style_sources): New function.
13056 * cli/cli-style.h (source_styling): Declare.
13058 2019-03-14 Pedro Alves <palves@redhat.com>
13059 Tom Tromey <tromey@adacore.com>
13061 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13062 * tui/tui-winsource.c (tui_refill_source_window): New function,
13064 (tui_horizontal_source_scroll): ... here. Move some logic.
13065 * cli/cli-style.c (set_style_enabled): Notify new observable.
13066 * tui/tui-hooks.c (tui_redisplay_source): New function.
13067 (tui_attach_detach_observers): Attach or detach
13068 tui_redisplay_source.
13069 * observable.h (source_styling_changed): New observable.
13070 * observable.c: Define source_styling_changed observable.
13072 2019-03-13 Tom Tromey <tromey@adacore.com>
13074 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13075 (i386_gnu_nat_target::store_registers): Update.
13076 * target-debug.h (target_debug_print_std_string): New macro.
13077 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13078 * windows-tdep.c (display_one_tib): Update.
13079 * tui/tui-stack.c (tui_make_status_line): Update.
13080 * top.c (print_inferior_quit_action): Update.
13081 * thread.c (thr_try_catch_cmd): Update.
13082 (add_thread_with_info): Update.
13083 (thread_target_id_str): Update.
13084 (thr_try_catch_cmd): Update.
13085 (thread_command): Update.
13086 (thread_find_command): Update.
13087 * record-btrace.c (record_btrace_target::info_record)
13088 (record_btrace_resume_thread, record_btrace_target::resume)
13089 (record_btrace_cancel_resume, record_btrace_step_thread)
13090 (record_btrace_target::wait, record_btrace_target::wait)
13091 (record_btrace_target::wait, record_btrace_target::stop): Update.
13092 * progspace.c (print_program_space): Update.
13093 * process-stratum-target.c
13094 (process_stratum_target::thread_address_space): Update.
13095 * linux-fork.c (linux_fork_mourn_inferior)
13096 (detach_checkpoint_command, info_checkpoints_command)
13097 (linux_fork_context): Update.
13098 (linux_fork_detach): Update.
13099 (class scoped_switch_fork_info): Update.
13100 (delete_checkpoint_command): Update.
13101 * infrun.c (follow_fork_inferior): Update.
13102 (follow_fork_inferior): Update.
13103 (proceed_after_vfork_done): Update.
13104 (handle_vfork_child_exec_or_exit): Update.
13105 (follow_exec): Update.
13106 (displaced_step_prepare_throw): Update.
13107 (displaced_step_restore): Update.
13108 (start_step_over): Update.
13109 (resume_1): Update.
13110 (clear_proceed_status_thread): Update.
13112 (print_target_wait_results): Update.
13113 (do_target_wait): Update.
13114 (context_switch): Update.
13115 (stop_all_threads): Update.
13116 (restart_threads): Update.
13117 (finish_step_over): Update.
13118 (handle_signal_stop): Update.
13119 (switch_back_to_stepped_thread): Update.
13120 (keep_going_pass_signal): Update.
13121 (print_exited_reason): Update.
13122 (normal_stop): Update.
13123 * inferior.c (inferior_pid_to_str): Change return type.
13124 (print_selected_inferior): Update.
13125 (add_inferior): Update.
13126 (detach_inferior): Update.
13127 * dummy-frame.c (fprint_dummy_frames): Update.
13128 * dcache.c (dcache_info_1): Update.
13129 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13130 (btrace_fetch, btrace_clear): Update.
13131 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13132 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13134 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13135 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13136 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13137 * gdbarch.c, gdbarch.h: Rebuild.
13138 * gdbarch.sh (core_pid_to_str): Change return type.
13139 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13141 (windows_nat_target::pid_to_str): Change return type.
13142 (windows_delete_thread): Update.
13143 (windows_nat_target::attach): Update.
13144 (windows_nat_target::files_info): Update.
13145 * target-delegates.c: Rebuild.
13146 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13148 (sol_thread_target::pid_to_str): Change return type.
13149 * remote.c (class remote_target) <pid_to_str>: Change return
13151 (remote_target::pid_to_str): Change return type.
13152 (extended_remote_target::attach, remote_target::remote_stop_ns)
13153 (remote_target::remote_notif_remove_queued_reply)
13154 (remote_target::push_stop_reply, remote_target::disable_btrace):
13156 (extended_remote_target::attach): Update.
13157 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13159 (gdbsim_target::pid_to_str): Change return type.
13160 * ravenscar-thread.c (struct ravenscar_thread_target)
13161 <pid_to_str>: Change return type.
13162 (ravenscar_thread_target::pid_to_str): Change return type.
13163 * procfs.c (class procfs_target) <pid_to_str>: Change return
13165 (procfs_target::pid_to_str): Change return type.
13166 (procfs_target::attach): Update.
13167 (procfs_target::detach): Update.
13168 (procfs_target::fetch_registers): Update.
13169 (procfs_target::store_registers): Update.
13170 (procfs_target::wait): Update.
13171 (procfs_target::files_info): Update.
13172 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13173 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13175 (nto_procfs_target::pid_to_str): Change return type.
13176 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13177 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13179 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13180 (exit_lwp): Update.
13181 (attach_proc_task_lwp_callback, get_detach_signal)
13182 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13183 (linux_nat_target::resume, wait_lwp, stop_callback)
13184 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13185 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13186 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13187 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13188 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13190 (inf_ptrace_target::attach): Update.
13191 (inf_ptrace_target::files_info): Update.
13192 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13194 (go32_nat_target::pid_to_str): Change return type.
13195 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13196 (gnu_nat_target::wait): Update.
13197 (gnu_nat_target::wait): Update.
13198 (gnu_nat_target::resume): Update.
13199 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13200 (fbsd_nat_target::wait): Update.
13201 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13203 (darwin_nat_target::attach): Update.
13204 * corelow.c (class core_target) <pid_to_str>: Change return type.
13205 (core_target::pid_to_str): Change return type.
13206 * target.c (normal_pid_to_str): Change return type.
13207 (default_pid_to_str): Likewise.
13208 (target_pid_to_str): Change return type.
13209 (target_translate_tls_address): Update.
13210 (target_announce_detach): Update.
13211 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13213 (bsd_uthread_target::pid_to_str): Change return type.
13214 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13216 (bsd_kvm_target::pid_to_str): Change return type.
13217 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13219 (aix_thread_target::pid_to_str): Change return type.
13220 * target.h (struct target_ops) <pid_to_str>: Change return type.
13221 (target_pid_to_str, normal_pid_to_str): Likewise.
13222 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13224 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13226 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13228 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13230 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13232 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13235 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13237 * NEWS: Mention that the new default MI version is 3. Mention
13238 changes to the output of commands and events that deal with
13239 multi-location breakpoints.
13240 * breakpoint.c: Include "mi/mi-out.h".
13241 (print_one_breakpoint): Change output syntax if using MI version
13243 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13245 (mi_multi_location_breakpoint_output_fixed): New.
13246 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13247 (mi_cmd_fix_multi_location_breakpoint_output): New.
13248 (mi_multi_location_breakpoint_output_fixed): New.
13249 * mi/mi-cmds.c (mi_cmds): Register command
13250 -fix-multi-location-breakpoint-output.
13251 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13254 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13256 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13257 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13258 instantiate mi_ui_out based on interpreter name.
13259 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13260 * mi/mi-main.c (mi_load_progress): Likewise.
13262 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13264 * NEWS: Combine separate "New targets" sections for 8.3.
13266 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13268 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13269 (ppcfbsd_init_abi): Install gdbarch
13270 "fetch_tls_load_module_address" and "get_thread_local_address"
13273 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13275 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13276 (riscv_fbsd_init_abi): Install gdbarch
13277 "fetch_tls_load_module_address" and "get_thread_local_address"
13280 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13282 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13283 (i386fbsd_init_abi): Install gdbarch
13284 "fetch_tls_load_module_address" and "get_thread_local_address"
13287 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13289 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13290 (amd64fbsd_init_abi): Install gdbarch
13291 "fetch_tls_load_module_address" and "get_thread_local_address"
13294 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13296 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13297 (struct fbsd_pspace_data): New type.
13298 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13299 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13300 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13301 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13302 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13304 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13306 * gdbtypes.c (lookup_struct_elt): New function.
13307 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13308 * gdbtypes.h (struct struct_elt): New type.
13309 (lookup_struct_elt): New prototype.
13311 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13313 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13314 remove disabled code block.
13316 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13318 * gdbarch.sh (get_thread_local_address): New method.
13319 * gdbarch.h, gdbarch.c: Regenerate.
13320 * target.c (target_translate_tls_address): Use
13321 gdbarch_get_thread_local_address if present instead of
13322 target::get_thread_local_address.
13324 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13326 * target.h (target::get_thread_local_address): Update comment.
13328 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13330 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13331 objfile->separate_debug_objfile_backlink if not NULL.
13333 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13335 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13336 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13337 (amd64bsd_store_inferior_registers): Likewise.
13338 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13339 Enable segment base registers.
13340 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13341 PT_GETFSBASE and PT_GETGSBASE.
13342 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13344 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13345 segment base registers.
13346 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13348 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13350 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13351 Update calls to i386_target_description to add 'segments'
13353 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13354 add segment base registers.
13355 * arch/i386.c (i386_create_target_description): Add 'segments'
13356 parameter to enable segment base registers.
13357 * arch/i386.h (i386_create_target_description): Likewise.
13358 * features/i386/32bit-segments.xml: New file.
13359 * features/i386/32bit-segments.c: Generate.
13360 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13361 call to i386_target_description to add 'segments' parameter.
13362 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13363 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13364 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13365 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13366 if feature is present.
13367 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13368 Add 'segments' parameter to call to i386_target_description.
13369 (i386_target_description): Add 'segments' parameter to enable
13370 segment base registers.
13371 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13372 to call to i386_target_description.
13373 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13374 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13375 Define I386_NUM_REGS.
13376 (i386_target_description): Add 'segments' parameter to enable
13377 segment base registers.
13379 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13382 * source-cache.c: #undef open and close, to avoid unresolved
13383 externals during linking.
13385 2019-03-12 Tom Tromey <tromey@adacore.com>
13387 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13388 const. Add initializers.
13389 (_initialize_remote): Don't initialize ptid globals.
13391 2019-03-12 Pedro Alves <palves@redhat.com>
13393 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13395 2019-03-12 Pedro Alves <palves@redhat.com>
13397 * cp-name-parser.y (main): Remove unused 'len' variable.
13399 2019-03-12 Tom Tromey <tromey@adacore.com>
13401 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13402 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13404 2019-03-12 Tom Tromey <tromey@adacore.com>
13406 * linux-nat.c (iterate_over_lwps): Update.
13407 (stop_callback): Remove parameter.
13408 (stop_wait_callback, detach_callback, resume_set_callback)
13409 (select_singlestep_lwp_callback, set_ignore_sigint)
13410 (status_callback, resumed_callback, resume_clear_callback)
13411 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13413 (linux_nat_target::detach, linux_nat_target::resume)
13414 (linux_stop_and_wait_all_lwps, select_event_lwp)
13415 (linux_nat_filter_event, linux_nat_wait_1)
13416 (linux_nat_target::kill, linux_nat_target::stop)
13417 (linux_nat_target::stop): Update.
13418 (linux_nat_resume_callback): Change type.
13419 (resume_stopped_resumed_lwps, count_events_callback)
13420 (select_event_lwp_callback): Likewise.
13421 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13422 * arm-linux-nat.c (struct update_registers_data): Remove.
13423 (update_registers_callback): Change type.
13424 (arm_linux_insert_hw_breakpoint1): Update.
13425 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13427 (x86_linux_dr_set_addr): Update.
13428 (x86_linux_dr_set_control): Update.
13429 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13430 (iterate_over_lwps): Use gdb::function_view.
13431 * nat/aarch64-linux-hw-point.c (struct
13432 aarch64_dr_update_callback_param): Remove.
13433 (debug_reg_change_callback): Change type.
13434 (aarch64_notify_debug_reg_change): Update.
13435 * s390-linux-nat.c (s390_refresh_per_info): Update.
13437 2019-03-11 Tom Tromey <tromey@adacore.com>
13439 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13440 redundant assignment to "this_cu".
13442 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13444 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13446 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13448 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13450 (rank_one_type): ... this.
13452 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13454 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13456 (rank_one_type): ... this.
13458 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13460 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13462 (rank_one_type): ... this.
13464 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13466 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13468 (rank_one_type): ... this.
13470 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13472 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13474 (rank_one_type): ... this.
13476 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13478 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13480 (rank_one_type): ... this.
13482 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13484 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13486 (rank_one_type): ... this.
13488 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13490 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13492 (rank_one_type): ... this.
13494 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13496 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13498 (rank_one_type): ... this.
13500 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13502 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13504 (rank_one_type): ... this.
13506 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13508 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13510 (rank_one_type): ... this.
13512 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13514 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13516 (rank_one_type): ... this.
13518 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13520 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13521 inferior-events' shows the example events.
13523 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13525 Support styling on native MS-Windows console
13528 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13529 on MS-Windows if $TERM is not defined.
13531 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13533 * posix-hdep.c (gdb_console_fputs):
13534 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13536 * ui-file.h (gdb_console_fputs): Add prototype.
13538 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13539 back to fputs only if the former returns zero.
13541 2019-03-07 Tom Tromey <tom@tromey.com>
13543 * symmisc.c (print_symbol_bcache_statistics): Update.
13544 (print_objfile_statistics): Update.
13545 * symfile.c (allocate_symtab): Update.
13546 * stabsread.c: Don't include bcache.h.
13547 * psymtab.h (struct psymbol_bcache): Don't declare.
13548 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13549 (psymbol_bcache_init, psymbol_bcache_free)
13550 (psymbol_bcache_get_bcache): Don't declare.
13551 * psymtab.c (struct psymbol_bcache): Remove.
13552 (psymtab_storage::psymtab_storage): Update.
13553 (psymtab_storage::~psymtab_storage): Update.
13554 (psymbol_bcache_init, psymbol_bcache_free)
13555 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13556 (add_psymbol_to_bcache): Update.
13557 (allocate_psymtab): Update.
13558 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13559 macro_cache>: No longer pointers.
13560 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13561 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13562 * macrotab.c (macro_bcache): Update.
13563 * macroexp.c: Don't include bcache.h.
13564 * gdbtypes.c (check_types_worklist): Update.
13565 (types_deeply_equal): Remove TRY/CATCH. Update.
13566 * elfread.c (elf_symtab_read): Update.
13567 * dwarf2read.c: Don't include bcache.h.
13568 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13569 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13570 (print_bcache_statistics, bcache_memory_used): Don't declare.
13571 (struct bcache): Move from bcache.c. Add constructor, destructor,
13572 methods. Rename all data members.
13573 * bcache.c (struct bcache): Move to bcache.h.
13574 (bcache::expand_hash_table): Rename from expand_hash_table.
13576 (bcache::insert): Rename from bcache_full.
13577 (bcache::compare): Rename from bcache_compare.
13578 (bcache_xmalloc): Remove.
13579 (bcache::~bcache): Rename from bcache_xfree.
13580 (bcache::print_statistics): Rename from print_bcache_statistics.
13581 (bcache::memory_used): Rename from bcache_memory_used.
13583 2019-03-07 Pedro Alves <palves@redhat.com>
13585 * infrun.c (normal_stop): Also check for
13586 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13588 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13590 * f-lang.c (value_from_host_double): Moved to...
13591 * value.c (value_from_host_double): ...here.
13592 * value.h (value_from_host_double): Declare.
13593 * guile/scm-math.c (vlscm_convert_typed_number): Use
13594 value_from_host_double.
13595 (vlscm_convert_number): Likewise.
13596 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13597 * python/py-value.c (convert_value_from_python): Likewise.
13599 2019-03-06 Tom Tromey <tom@tromey.com>
13601 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13603 2019-03-06 Tom Tromey <tom@tromey.com>
13605 * utils.h (free_current_contents): Don't declare.
13606 * utils.c (free_current_contents): Remove.
13608 2019-03-06 Tom Tromey <tom@tromey.com>
13610 * top.c (quit_force): Update.
13611 * main.c (captured_command_loop): Update.
13612 * common/new-op.c (operator new): Update.
13613 * common/common-exceptions.c (struct catcher)
13614 <save_cleanup_chain>: Remove member.
13615 (exceptions_state_mc_init): Update.
13616 (exception_try_scope_entry): Return nullptr.
13617 (exception_try_scope_exit, exception_rethrow)
13618 (throw_exception_sjlj, throw_exception_cxx): Update.
13619 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13620 (all_cleanups, do_cleanups, discard_cleanups)
13621 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13622 (restore_cleanups, restore_final_cleanups): Don't declare.
13623 (do_final_cleanups): Remove parameter.
13624 * common/cleanups.c (cleanup_chain, make_cleanup)
13625 (make_cleanup_dtor, all_cleanups, do_cleanups)
13626 (discard_my_cleanups, discard_cleanups)
13627 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13628 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13629 (null_cleanup): Remove.
13630 (do_final_cleanups): Remove parameter.
13632 2019-03-06 Tom Tromey <tom@tromey.com>
13634 * remote.c (remote_target::remote_parse_stop_reply): Use
13635 unique_xmalloc_ptr.
13637 2019-03-06 Tom Tromey <tom@tromey.com>
13639 * stabsread.c (struct stabs_field_info): Rename from field_info.
13640 <list, fnlist>: Add initializers.
13641 <obstack>: New member.
13642 (read_member_functions, read_struct_fields, read_baseclasses):
13643 Allocate on obstack. Don't use cleanups.
13644 (read_one_struct_field, read_member_functions, read_struct_fields)
13645 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13646 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13647 (read_struct_type): Update.
13649 2019-03-06 Tom Tromey <tom@tromey.com>
13651 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13652 * common/filestuff.h (make_cleanup_close): Don't declare.
13653 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13656 2019-03-06 Tom Tromey <tom@tromey.com>
13658 * solib-aix.c: Use make_scope_exit.
13660 2019-03-06 Tom Tromey <tom@tromey.com>
13662 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13663 Use make_scope_exit.
13665 2019-03-06 Tom Tromey <tom@tromey.com>
13667 * solib-svr4.c (disable_probes_interface): Remove parameter.
13668 (svr4_handle_solib_event): Use make_scope_exit.
13670 2019-03-06 Tom Tromey <tom@tromey.com>
13672 * remote.c (struct stop_reply_deleter): Remove.
13673 (stop_reply_up): Update.
13674 (struct stop_reply): Derive from notif_event. Don't typedef.
13675 <regcache>: Now a std::vector.
13676 (stop_reply_xfree): Remove.
13677 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13678 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13679 (remote_target::discard_pending_stop_replies): Use delete.
13680 (remote_target::remote_parse_stop_reply): Update.
13681 (remote_target::process_stop_reply): Update.
13682 * remote-notif.h (struct notif_event): Add virtual destructor.
13683 Remove "dtr" member.
13684 (struct notif_client) <alloc_event>: Return a unique_ptr.
13685 (notif_event_xfree): Don't declare.
13686 (notif_event_up): New typedef.
13687 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13688 (notif_event_xfree, do_notif_event_xfree): Remove.
13689 (remote_notif_state_xfree): Update.
13691 2019-03-06 Tom Tromey <tom@tromey.com>
13693 * infrun.c (displaced_step_clear_cleanup): Now a
13694 forward_scope_exit type.
13695 (displaced_step_prepare_throw): Update.
13696 (displaced_step_fixup): Update.
13698 2019-03-06 Tom Tromey <tom@tromey.com>
13700 * inferior.h (class inferior): Update comment.
13701 * gdbthread.h (class thread_info): Update comment.
13703 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13704 Tom Tromey <tom@tromey.com>
13706 * stabsread.h (struct stab_section_list): Remove.
13707 (coffstab_build_psymtabs): Update.
13708 * dbxread.c (symbuf_sections): Now a std::vector.
13709 (sect_idx): New global.
13710 (fill_symbuf): Update.
13711 (coffstab_build_psymtabs): Change type of stabsects parameter.
13713 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13715 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13716 (coff_locate_sections): Update.
13717 (coff_symfile_read): Remove cleanups. Update.
13718 (init_stringtab): Add storage parameter.
13719 (free_stringtab, free_stringtab_cleanup): Remove.
13720 (init_lineno): Add storage parameter.
13721 (free_linetab, free_linetab_cleanup): Remove.
13723 2019-03-06 Pedro Alves <palves@redhat.com>
13725 * linux-fork.c (fork_info::clobber_regs): Delete.
13726 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13727 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13729 (scoped_switch_fork_info::scoped_switch_fork_info)
13730 (checkpoint_command, linux_fork_context): Adjust
13731 fork_save_infrun_state calls.
13733 2019-03-06 Pedro Alves <palves@redhat.com>
13735 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13736 (inf_has_multiple_threads): Return 'bool' and rewrite using
13737 inferior_info::threads().
13739 2019-03-06 Pedro Alves <palves@redhat.com>
13741 * linux-fork.c: Include <list>.
13742 (fork_list): Now a std::list instance.
13743 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13744 (forks_exist_p, find_last_fork): Adjust.
13745 (new_fork): Delete.
13747 (add_fork): Adjust.
13748 (free_fork): Delete, folded into fork_info::~fork_info().
13749 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13751 (init_fork_list): Delete.
13752 (linux_fork_killall, linux_fork_mourn_inferior)
13753 (linux_fork_detach, info_checkpoints_command): Adjust.
13754 (_initialize_linux_fork): No longer call init_fork_list.
13756 2019-03-06 Pedro Alves <palves@redhat.com>
13758 * linux-fork.c (new_fork): New, split out of ...
13759 (add_fork): ... this. Return void. Move "first fork" special
13760 case from here, to ...
13761 (checkpoint_command): ... here.
13762 * linux-linux.h (add_fork): Return void.
13764 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13766 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13768 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13769 Chris January <chris.january@arm.com>
13770 David Lecomber <david.lecomber@arm.com>
13772 * f-exp.y: New token, UNOP_INTRINSIC.
13773 (exp): New pattern using UNOP_INTRINSIC token.
13774 (f77_keywords): Add 'abs' keyword.
13775 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13776 (value_from_host_double): New function.
13777 (evaluate_subexp_f): Support UNOP_ABS.
13779 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13781 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13784 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13786 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13787 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13788 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13790 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13792 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13794 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13795 Chris January <chris.january@arm.com>
13797 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13798 * f-exp.y: Define 'KIND' token.
13799 (exp): New pattern for KIND expressions.
13800 (ptype): Handle types with a kind extension.
13801 (direct_abs_decl): Extend to spot kind extensions.
13802 (f77_keywords): Add 'kind' to the list.
13803 (push_kind_type): New function.
13804 (convert_to_kind_type): New function.
13805 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13806 * parse.c (operator_length_standard): Likewise.
13807 * parser-defs.h (enum type_pieces): Add tp_kind.
13808 * std-operator.def: Add UNOP_KIND.
13810 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13812 * f-exp.y (f_parse): Set yydebug.
13814 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13816 * f-lang.c (evaluate_subexp_f): New function.
13817 (exp_descriptor_f): New global.
13818 (f_language_defn): Use exp_descriptor_f instead of
13819 exp_descriptor_standard.
13821 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13823 * f-exp.y (struct token): Add comments.
13824 (dot_ops): Remove uppercase versions and the end marker.
13825 (f77_keywords): Likewise.
13826 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13827 entries in the dot_ops array are case insensitive, and use
13828 strncasecmp to compare strings. Also some whitespace cleanup in
13829 this area. Similar for the f77_keywords array, except entries in
13830 this list might be case sensitive.
13832 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13834 * f-exp.y (struct f77_boolean_val): Add comments.
13835 (boolean_values): Remove uppercase versions, and end marker.
13836 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13837 and use strncasecmp to achieve case insensitivity. Additionally,
13838 perform whitespace cleanup around this code.
13840 2019-03-06 Tom Tromey <tromey@adacore.com>
13842 * remote-sim.c (gdbsim_target_open): Use result of
13845 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13846 Dirk Schubert <dirk.schubert@arm.com>
13847 Chris January <chris.january@arm.com>
13849 * eval.c (evaluate_subexp_standard): Call Fortran argument
13851 * f-lang.c (struct value): A value which can be passed into a
13852 Fortran function call.
13853 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13855 (struct type): Value ready for a Fortran function call.
13856 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13858 * f-lang.h (fortran_argument_convert): Declaration.
13859 (fortran_preserve_arg_pointer): Declaration.
13860 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13862 2019-03-05 Tom Tromey <tromey@adacore.com>
13864 * python/py-prettyprint.c (print_string_repr): Remove #if.
13865 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13867 2019-03-05 Tom Tromey <tromey@adacore.com>
13869 * target.c (the_dummy_target): Move later. Change type to
13871 (initialize_targets): Don't initialize the_dummy_target.
13873 2019-03-05 Tom Tromey <tromey@adacore.com>
13875 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13876 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13878 2019-03-05 Tom Tromey <tromey@adacore.com>
13880 * windows-nat.c (windows_nat_target::attach)
13881 (windows_nat_target::detach): Don't call gdb_flush.
13882 * valprint.c (generic_val_print, val_print, val_print_string):
13883 Don't call gdb_flush.
13884 * utils.c (defaulted_query): Don't call gdb_flush.
13885 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13886 * target.c (target_announce_detach): Don't call gdb_flush.
13887 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13888 * remote.c (extended_remote_target::attach): Don't call
13890 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13891 * printcmd.c (do_examine): Don't call gdb_flush.
13892 (info_display_command): Don't call gdb_flush.
13893 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13894 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13895 * memattr.c (info_mem_command): Don't call gdb_flush.
13896 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13897 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13898 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13899 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13900 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13901 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13902 (gnu_nat_target::detach): Don't call gdb_flush.
13903 * f-valprint.c (f_val_print): Don't call gdb_flush.
13904 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13905 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13906 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13908 * c-valprint.c (c_val_print): Don't call gdb_flush.
13909 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13911 2019-03-05 Tom Tromey <tromey@adacore.com>
13913 * varobj.c (update_dynamic_varobj_children): Update.
13914 (install_default_visualizer): Use reset, not release.
13915 * value.c (set_internalvar): Update.
13916 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13917 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13918 ATTRIBUTE_UNUSED_RESULT.
13920 2019-03-05 Tom Tromey <tromey@adacore.com>
13922 * remote.c (class scoped_remote_fd) <release>: Add
13923 ATTRIBUTE_UNUSED_RESULT.
13925 2019-03-05 Tom Tromey <tromey@adacore.com>
13927 * macroexp.c (struct macro_buffer) <release>: Add
13928 ATTRIBUTE_UNUSED_RESULT.
13930 2019-03-05 Tom Tromey <tromey@adacore.com>
13932 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13933 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13934 ATTRIBUTE_UNUSED_RESULT.
13936 2019-03-05 Tom Tromey <tromey@adacore.com>
13938 * common/scoped_fd.h (class scoped_fd) <release>: Add
13939 ATTRIBUTE_UNUSED_RESULT.
13941 2019-03-05 Tom Tromey <tromey@adacore.com>
13943 * parser-defs.h (struct parser_state) <release>: Add
13944 ATTRIBUTE_UNUSED_RESULT.
13946 2019-03-05 Tom Tromey <tromey@adacore.com>
13948 * utils.h (class gdb_argv) <release>: Add
13949 ATTRIBUTE_UNUSED_RESULT.
13950 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13952 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13954 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13955 for-loop range, to avoid compiler warnings.
13957 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13958 avoid compiler warnings about unused variables.
13960 * NEWS: Mention end of support for native debugging on MS-Windows
13964 * common/netstuff.c:
13965 * gdbserver/gdbreplay.c
13966 * gdbserver/remote-utils.c:
13968 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13969 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13970 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13971 'getaddrinfo' and 'freeaddrinfo' were not available before
13972 Windows XP, and mingw.org's MinGW headers by default define
13973 _WIN32_WINNT to 0x500.
13975 2019-03-01 Gary Benson <gbenson@redhat.com>
13977 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13979 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13980 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13983 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13984 set_sigint_trap, clear_sigint_trap.
13986 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13988 * target.c (target_detach): Clear the regcache and the
13991 2019-02-27 Pedro Alves <palves@redhat.com>
13993 * utils.c (set_screen_size): When we cap the height/width sizes,
13994 tweak the corresponding command variable to show "unlimited":
13996 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13997 Pedro Alves <palves@redhat.com>
13999 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14000 before calling rl_set_screen_size.
14002 2019-02-27 Tom Tromey <tromey@adacore.com>
14004 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14006 * python/py-value.c: Remove Python 2.4 workaround.
14007 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14009 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14010 Python 2.4 workaround.
14011 * python/python-internal.h: Remove Python 2.4 comment.
14012 (Py_ssize_t): Don't define.
14013 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14014 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14015 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14016 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14017 * python/python.c (do_start_initialization): Remove Python 2.4
14019 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14020 (print_children): Remove Python 2.4 workaround.
14021 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14023 (CHARBUFFERPROC_NAME): Remove.
14024 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14025 Python 2.4 workaround.
14027 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14029 * NEWS: Note minimum Python version.
14031 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14033 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14034 code from these functions. Remove corresponding ifdefs. Use
14035 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14036 Remove gotos and target of gotos.
14037 (infpy_search_memory): Likewise.
14039 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14041 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14042 (hppa_gdbarch_init): Don't register deleted functions with
14045 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14047 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14048 (h8300_unwind_sp): Delete.
14049 (h8300_dummy_id): Delete.
14050 (h8300_gdbarch_init): Don't register deleted functions with
14053 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14055 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14056 (ft32_unwind_pc): Delete.
14057 (ft32_unwind_sp): Delete.
14058 (ft32_gdbarch_init): Don't register deleted functions with
14061 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14063 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14064 (frv_unwind_pc): Delete.
14065 (frv_unwind_sp): Delete.
14066 (frv_gdbarch_init): Don't register deleted functions with
14069 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14071 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14072 (riscv_unwind_pc): Delete.
14073 (riscv_unwind_sp): Delete.
14074 (riscv_gdbarch_init): Don't register deleted functions with
14077 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14079 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14080 (csky_unwind_pc): Delete.
14081 (csky_unwind_sp): Delete.
14082 (csky_gdbarch_init): Don't register deleted functions with
14085 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14087 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14088 (cris_unwind_pc): Delete.
14089 (cris_unwind_sp): Delete.
14090 (cris_gdbarch_init): Don't register deleted functions with
14093 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14095 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14096 (bfin_unwind_pc): Delete.
14097 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14099 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14101 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14102 (arm_unwind_pc): Delete.
14103 (arm_unwind_sp): Delete.
14104 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14106 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14108 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14109 (arc_unwind_pc): Delete.
14110 (arc_unwind_sp): Delete.
14111 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14113 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14115 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14116 (alpha_unwind_pc): Delete.
14117 (alpha_gdbarch_init): Don't register deleted functions with
14120 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14122 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14123 (aarch64_unwind_pc): Delete.
14124 (aarch64_unwind_sp): Delete.
14125 (aarch64_gdbarch_init): Don't register deleted functions with
14128 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14130 * gdbtypes.c (type_align): Don't consider static members when
14131 computing structure alignment.
14133 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14135 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14136 return 0 for other types.
14137 * arch-utils.c (default_type_align): Always return 0.
14138 * gdbarch.h: Regenerate.
14139 * gdbarch.sh (type_align): Extend comment.
14140 * gdbtypes.c (type_align): Add additional comments, always call
14141 gdbarch_type_align before applying the default rules.
14142 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14143 generic code will then apply a suitable default.
14144 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14145 types, return 0 for other types.
14147 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14149 * NEWS: Create a new section for the next release branch.
14150 Rename the section of the current branch, now that it has
14153 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14155 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14156 * version.in: Bump version to 8.3.50.DATE-git.
14158 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14160 * aix-thread.c (ptid_cmp): Remove unused variable.
14161 (get_signaled_thread): Likewise.
14162 (store_regs_user_thread): Likewise.
14163 (store_regs_kernel_thread): Likewise.
14164 (fetch_regs_kernel_thread): Remove shadowed variable.
14166 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14168 * features/riscv/32bit-cpu.xml: Add register numbers.
14169 * features/riscv/32bit-fpu.c: Regenerate.
14170 * features/riscv/32bit-fpu.xml: Add register numbers.
14171 * features/riscv/64bit-cpu.xml: Add register numbers.
14172 * features/riscv/64bit-fpu.c: Regenerate.
14173 * features/riscv/64bit-fpu.xml: Add register numbers.
14175 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14177 * NEWS: Mention two argument form of gdb.Value constructor.
14178 * python/py-value.c (convert_buffer_and_type_to_value): New
14180 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14181 Add support for handling an optional second argument. Call
14182 convert_buffer_and_type_to_value as appropriate.
14183 * python/python-internal.h (Py_buffer_deleter): New struct.
14184 (Py_buffer_up): New typedef.
14186 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14188 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14189 instead of releasing ownership.
14191 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14193 * dwarf2read.c (open_and_init_dwp_file): Call
14194 elf_numsections instead of bfd_count_sections to initialize
14195 dwp_file->num_sections.
14197 2019-02-25 Tom Tromey <tromey@adacore.com>
14199 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14201 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14203 * gcore.in: Add '--readnever' option when invoking GDB.
14205 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14207 * MAINTAINERS: Update my email address.
14209 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14211 * build-id.c (build_id_to_debug_bfd_1): New function.
14212 (build_id_to_debug_bfd): Look for separate debug file in
14215 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14217 * gdbarch.sh: Update the copyright year range that is placed into
14220 2019-02-22 Keith Seitz <keiths@redhat.com>
14223 * linespec.c (create_sals_line_offset): Search for the default
14224 symtab's filename instead of its fullname.
14226 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14228 * NEWS: Update style defaults.
14230 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14232 * main.c (captured_main_1): Disable styling in batch mode.
14234 2019-02-20 Tom Tromey <tom@tromey.com>
14236 * symtab.c (symtab_symbol_info): Fix typos.
14238 2019-02-20 Tom Tromey <tromey@adacore.com>
14240 * findcmd.c (_initialize_mem_search): Use upper case for
14241 metasyntactic variables.
14243 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14245 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14246 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14248 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14250 * top.h (source_file_name): Change to std::string.
14251 * top.c (source_file_name): Likewise.
14252 (command_line_input): Adjust.
14253 * cli/cli-script.c (script_from_file): Adjust.
14255 2019-02-19 Tom Tromey <tromey@adacore.com>
14257 * ravenscar-thread.c
14258 (ravenscar_thread_target::update_thread_list): Don't call
14259 ada_build_task_list.
14260 * ada-lang.h (ada_build_task_list): Don't declare.
14261 * ada-tasks.c (struct ada_tasks_inferior_data)
14262 <task_list_valid_p>: Now bool.
14263 (read_known_tasks, ada_task_list_changed)
14264 (ada_tasks_invalidate_inferior_data): Update.
14265 (read_known_tasks_array): Return bool.
14266 (read_known_tasks_list): Likewise.
14267 (read_known_tasks): Return void.
14268 (ada_build_task_list): Now static.
14270 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14272 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14273 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14275 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14277 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14278 variant for ada_tasks_pspace_data_handle and
14279 ada_tasks_inferior_data_handle.
14280 (ada_tasks_pspace_data_cleanup): New function.
14281 (ada_tasks_inferior_data_cleanup): New function.
14283 2019-02-17 Tom Tromey <tom@tromey.com>
14285 * macrotab.h (macro_source_fullname): Return a std::string.
14286 * macrotab.c (macro_include, check_for_redefinition)
14287 (macro_undef, macro_lookup_definition, foreach_macro)
14288 (foreach_macro_in_scope): Update.
14289 (macro_source_fullname): Return a std::string.
14290 * macrocmd.c (show_pp_source_pos): Update.
14292 2019-02-17 Tom Tromey <tom@tromey.com>
14294 * macrocmd.c (show_pp_source_pos): Style the file names.
14296 2019-02-17 Tom Tromey <tom@tromey.com>
14299 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14301 2019-02-17 Tom Tromey <tom@tromey.com>
14303 * ada-lang.c (user_select_syms): Use filtered printing.
14304 * utils.c (wrap_style): New global.
14305 (desired_style): Remove.
14306 (emit_style_escape): Add stream parameter.
14307 (set_output_style, reset_terminal_style, prompt_for_continue):
14309 (flush_wrap_buffer): Only flush gdb_stdout.
14310 (wrap_here): Set wrap_style.
14311 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14312 treat escape sequences as a character. Change when wrap buffer is
14314 (fputs_styled): Do not set the output style when the default is
14316 * ui-style.h (struct ui_file_style) <is_default>: New method.
14317 * source.c (print_source_lines_base): Emit escape sequences in one
14320 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14322 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14323 integers and enumeration types.
14325 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14327 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14328 instead of lookup_symbol_in_language
14329 (do_exact_match): New function.
14330 (ada_get_symbol_name_matcher): Return do_exact_match when
14331 doing a verbatim match.
14333 2019-02-15 Tom Tromey <tromey@adacore.com>
14335 * ravenscar-thread.c (ravenscar_thread_target::resume)
14336 (ravenscar_thread_target::wait): Special case wildcard requests.
14338 2019-02-15 Tom Tromey <tromey@adacore.com>
14340 * ravenscar-thread.c (base_ptid): Remove.
14341 (struct ravenscar_thread_target) <close>: New method.
14342 <m_base_ptid>: New member.
14343 <update_inferior_ptid, active_task, task_is_currently_active,
14344 runtime_initialized>: Declare methods.
14345 <ravenscar_thread_target>: Add constructor.
14346 (ravenscar_thread_target::task_is_currently_active)
14347 (ravenscar_thread_target::update_inferior_ptid)
14348 (ravenscar_runtime_initialized): Rename. Now methods.
14349 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14350 (ravenscar_thread_target::update_thread_list): Update.
14351 (ravenscar_thread_target::active_task): Now method.
14352 (ravenscar_thread_target::store_registers)
14353 (ravenscar_thread_target::prepare_to_store)
14354 (ravenscar_thread_target::prepare_to_store)
14355 (ravenscar_thread_target::mourn_inferior): Update.
14356 (ravenscar_inferior_created): Use "new" to create target.
14357 (ravenscar_thread_target::get_ada_task_ptid): Update.
14358 (_initialize_ravenscar): Don't initialize base_ptid.
14359 (ravenscar_ops): Remove global.
14361 2019-02-15 Tom Tromey <tromey@adacore.com>
14363 * target.h (push_target): Declare new overload.
14364 * target.c (push_target): New overload, taking an rvalue reference.
14365 * remote.c (remote_target::open_1): Use push_target overload.
14366 * corelow.c (core_target_open): Use push_target overload.
14368 2019-02-15 Tom Tromey <tromey@adacore.com>
14370 * ravenscar-thread.c (is_ravenscar_task)
14371 (ravenscar_task_is_currently_active): Return bool.
14372 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14373 (_initialize_ravenscar): Remove "(void)".
14374 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14377 2019-02-15 Tom Tromey <tromey@adacore.com>
14379 * ravenscar-thread.c (ravenscar_runtime_initializer)
14380 (has_ravenscar_runtime, get_running_thread_id)
14381 (ravenscar_thread_target::resume): Fix indentation.
14383 2019-02-15 Tom Tromey <tromey@adacore.com>
14385 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14386 from ravenscar_arch_ops.
14387 (sparc_ravenscar_ops::fetch_registers)
14388 (sparc_ravenscar_ops::store_registers): Now methods.
14389 (sparc_ravenscar_prepare_to_store): Remove.
14390 (sparc_ravenscar_ops): Redefine.
14391 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14392 methods and destructor. Remove members.
14393 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14394 (ravenscar_thread_target::store_registers)
14395 (ravenscar_thread_target::prepare_to_store): Update.
14396 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14398 (struct ppc_ravenscar_powerpc_ops): Derive from
14399 ravenscar_arch_ops.
14400 (ppc_ravenscar_powerpc_ops::fetch_registers)
14401 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14402 (ppc_ravenscar_powerpc_ops): Redefine.
14403 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14404 (ppc_ravenscar_e500_ops::fetch_registers)
14405 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14406 (ppc_ravenscar_e500_ops): Redefine.
14407 * aarch64-ravenscar-thread.c
14408 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14409 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14410 (aarch64_ravenscar_fetch_registers)
14411 (aarch64_ravenscar_store_registers): Now methods.
14412 (aarch64_ravenscar_ops): Redefine.
14414 2019-02-15 Tom Tromey <tromey@adacore.com>
14416 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14417 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14418 (ravenscar_thread_target::stopped_by_watchpoint)
14419 (ravenscar_thread_target::stopped_data_address)
14420 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14422 2019-02-15 Tom Tromey <tromey@adacore.com>
14424 * ravenscar-thread.c: Fix some typos.
14426 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14427 Tom Tromey <tromey@adacore.com>
14429 * ada-lang.c (ada_exception_sal): Change addr_string to a
14431 (create_ada_exception_catchpoint): Update.
14433 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14434 Tom Tromey <tromey@adacore.com>
14436 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14437 (bp_location_ops): Remove.
14438 (base_breakpoint_allocate_location): Update.
14439 (free_bp_location): Update.
14440 * ada-lang.c (class ada_catchpoint_location)
14441 <ada_catchpoint_location>: Remove ops parameter.
14442 (ada_catchpoint_location_dtor): Remove.
14443 (ada_catchpoint_location_ops): Remove.
14444 (allocate_location_exception): Update.
14445 * breakpoint.h (struct bp_location_ops): Remove.
14446 (class bp_location) <bp_location>: Remove bp_location_ops
14448 <~bp_location>: Add destructor.
14451 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14452 Pedro Alves <palves@redhat.com>
14454 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14457 2019-02-14 David Michael <fedora.dm0@gmail.com>
14458 Samuel Thibault <samuel.thibault@gnu.org>
14459 Thomas Schwinge <thomas@codesourcery.com>
14461 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14462 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14464 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14466 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14467 (check_empty): Use "const char *".
14469 * gnu-nat.c (gnu_nat_target::detach): Instead of
14470 'detach_inferior (pid)' call
14471 'detach_inferior (find_inferior_pid (pid))'.
14473 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14474 'nat/fork-inferior.o'.
14475 * gnu-nat.c: #include "nat/fork-inferior.h".
14477 * gnu-nat.c (gnu_nat_target::detach): Instead of
14478 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14479 * gnu-nat.h: #include "inf-child.h".
14480 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14481 'i386_gnu_nat_target::fetch_registers'.
14482 (gnu_store_registers): Rename/move to
14483 'i386_gnu_nat_target::store_registers'.
14485 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14486 * gnu-nat.h (mach_thread_info): New function.
14487 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14489 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14491 2019-02-14 Frederic Konrad <konrad@adacore.com>
14493 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14495 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14497 * windows-nat.c (windows_add_thread): Add new parameter
14498 "main_thread_p" with default value set to false. Update
14499 function documentation as well as all callers.
14500 (windows_delete_thread): Likewise.
14501 (fake_create_process): Update call to windows_add_thread.
14502 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14503 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14504 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14505 call to windows_delete_thread.
14507 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14509 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14511 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14513 * symfile.c (find_separate_debug_file): Use canonical path of
14514 sysroot with child_path instead of gdb_sysroot if it is valid.
14516 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14518 * symfile.c (find_separate_debug_file): Use child_path to
14519 determine if an object file is under a sysroot.
14521 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14523 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14524 unittests/child-path-selftests.c.
14525 * common/pathstuff.c (child_path): New function.
14526 * common/pathstuff.h (child_path): New prototype.
14527 * unittests/child-path-selftests.c: New file.
14529 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14531 * symfile.c (find_separate_debug_file): Look for separate debug
14532 files in debug directories under the sysroot.
14534 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14536 * symtab.h (struct minimal_symbol data_p): New const method.
14537 (struct minimal_symbol text_p): Likewise.
14538 * symtab.c (output_source_filename): Use file name style
14539 to print file name.
14540 (print_symbol_info): Likewise.
14541 (print_msymbol_info): Use address style to print addresses.
14542 Use function name style to print executable text symbols.
14543 (expand_symtab_containing_pc): Use data_p.
14544 (find_pc_sect_compunit_symtab): Likewise.
14546 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14548 * breakpoint.c (describe_other_breakpoints): Use address style
14549 to print addresses.
14550 (say_where): Likewise.
14552 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14554 * ada-typeprint.c (print_func_type): Print function name
14555 style to print function name.
14556 * c-typeprint.c (c_print_type_1): Likewise.
14558 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14560 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14563 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14565 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14568 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14570 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14571 TYPE_CODE_REF types.
14573 2019-02-08 Jim Wilson <jimw@sifive.com>
14575 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14576 (riscv_linux_fregset): New.
14577 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14579 2019-02-07 Tom Tromey <tom@tromey.com>
14581 * thread.c (thread_cancel_execution_command): Update.
14582 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14584 (struct thread_fsm_ops): Remove.
14585 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14586 (thread_fsm_should_stop, thread_fsm_return_value)
14587 (thread_fsm_set_finished, thread_fsm_finished_p)
14588 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14590 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14591 * infrun.c (clear_proceed_status_thread)
14592 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14593 (print_stop_event): Update.
14594 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14596 (step_command_fsm_ops): Remove.
14597 (new_step_command_fsm): Remove.
14599 (step_command_fsm::should_stop): Rename from
14600 step_command_fsm_should_stop.
14601 (step_command_fsm::clean_up): Rename from
14602 step_command_fsm_clean_up.
14603 (step_command_fsm::do_async_reply_reason): Rename from
14604 step_command_fsm_async_reply_reason.
14605 (struct until_next_fsm): Inherit from thread_fsm. Add
14607 (until_next_fsm_ops): Remove.
14608 (new_until_next_fsm): Remove.
14609 (until_next_fsm::should_stop): Rename from
14610 until_next_fsm_should_stop.
14611 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14612 (until_next_fsm::do_async_reply_reason): Rename from
14613 until_next_fsm_async_reply_reason.
14614 (struct finish_command_fsm): Inherit from thread_fsm. Add
14615 constructor. Change type of breakpoint.
14616 (finish_command_fsm_ops): Remove.
14617 (new_finish_command_fsm): Remove.
14618 (finish_command_fsm::should_stop): Rename from
14619 finish_command_fsm_should_stop.
14620 (finish_command_fsm::clean_up): Rename from
14621 finish_command_fsm_clean_up.
14622 (finish_command_fsm::return_value): Rename from
14623 finish_command_fsm_return_value.
14624 (finish_command_fsm::do_async_reply_reason): Rename from
14625 finish_command_fsm_async_reply_reason.
14626 (finish_command): Update.
14627 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14629 (call_thread_fsm_ops): Remove.
14630 (call_thread_fsm::call_thread_fsm): Rename from
14631 new_call_thread_fsm.
14632 (call_thread_fsm::should_stop): Rename from
14633 call_thread_fsm_should_stop.
14634 (call_thread_fsm::should_notify_stop): Rename from
14635 call_thread_fsm_should_notify_stop.
14636 (run_inferior_call, call_function_by_hand_dummy): Update.
14637 * cli/cli-interp.c (should_print_stop_to_console): Update.
14638 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14639 Add constructor. Change type of location_breakpoint,
14641 (until_break_fsm_ops): Remove.
14642 (new_until_break_fsm): Remove.
14643 (until_break_fsm::should_stop): Rename from
14644 until_break_fsm_should_stop.
14645 (until_break_fsm::clean_up): Rename from
14646 until_break_fsm_clean_up.
14647 (until_break_fsm::do_async_reply_reason): Rename from
14648 until_break_fsm_async_reply_reason.
14649 (until_break_command): Update.
14650 * thread-fsm.c: Remove.
14651 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14653 2019-02-07 Tom Tromey <tom@tromey.com>
14655 * yy-remap.h: Add include guard.
14656 * xtensa-tdep.h: Add include guard.
14657 * xcoffread.h: Rename include guard.
14658 * varobj-iter.h: Add include guard.
14659 * tui/tui.h: Rename include guard.
14660 * tui/tui-winsource.h: Rename include guard.
14661 * tui/tui-wingeneral.h: Rename include guard.
14662 * tui/tui-windata.h: Rename include guard.
14663 * tui/tui-win.h: Rename include guard.
14664 * tui/tui-stack.h: Rename include guard.
14665 * tui/tui-source.h: Rename include guard.
14666 * tui/tui-regs.h: Rename include guard.
14667 * tui/tui-out.h: Rename include guard.
14668 * tui/tui-layout.h: Rename include guard.
14669 * tui/tui-io.h: Rename include guard.
14670 * tui/tui-hooks.h: Rename include guard.
14671 * tui/tui-file.h: Rename include guard.
14672 * tui/tui-disasm.h: Rename include guard.
14673 * tui/tui-data.h: Rename include guard.
14674 * tui/tui-command.h: Rename include guard.
14675 * tic6x-tdep.h: Add include guard.
14676 * target/waitstatus.h: Rename include guard.
14677 * target/wait.h: Rename include guard.
14678 * target/target.h: Rename include guard.
14679 * target/resume.h: Rename include guard.
14680 * target-float.h: Rename include guard.
14681 * stabsread.h: Add include guard.
14682 * rs6000-tdep.h: Add include guard.
14683 * riscv-fbsd-tdep.h: Add include guard.
14684 * regformats/regdef.h: Rename include guard.
14685 * record.h: Rename include guard.
14686 * python/python.h: Rename include guard.
14687 * python/python-internal.h: Rename include guard.
14688 * python/py-stopevent.h: Rename include guard.
14689 * python/py-ref.h: Rename include guard.
14690 * python/py-record.h: Rename include guard.
14691 * python/py-record-full.h: Rename include guard.
14692 * python/py-record-btrace.h: Rename include guard.
14693 * python/py-instruction.h: Rename include guard.
14694 * python/py-events.h: Rename include guard.
14695 * python/py-event.h: Rename include guard.
14696 * procfs.h: Add include guard.
14697 * proc-utils.h: Add include guard.
14698 * p-lang.h: Add include guard.
14699 * or1k-tdep.h: Rename include guard.
14700 * observable.h: Rename include guard.
14701 * nto-tdep.h: Rename include guard.
14702 * nat/x86-linux.h: Rename include guard.
14703 * nat/x86-linux-dregs.h: Rename include guard.
14704 * nat/x86-gcc-cpuid.h: Add include guard.
14705 * nat/x86-dregs.h: Rename include guard.
14706 * nat/x86-cpuid.h: Rename include guard.
14707 * nat/ppc-linux.h: Rename include guard.
14708 * nat/mips-linux-watch.h: Rename include guard.
14709 * nat/linux-waitpid.h: Rename include guard.
14710 * nat/linux-ptrace.h: Rename include guard.
14711 * nat/linux-procfs.h: Rename include guard.
14712 * nat/linux-osdata.h: Rename include guard.
14713 * nat/linux-nat.h: Rename include guard.
14714 * nat/linux-namespaces.h: Rename include guard.
14715 * nat/linux-btrace.h: Rename include guard.
14716 * nat/glibc_thread_db.h: Rename include guard.
14717 * nat/gdb_thread_db.h: Rename include guard.
14718 * nat/gdb_ptrace.h: Rename include guard.
14719 * nat/fork-inferior.h: Rename include guard.
14720 * nat/amd64-linux-siginfo.h: Rename include guard.
14721 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14722 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14723 * nat/aarch64-linux.h: Rename include guard.
14724 * nat/aarch64-linux-hw-point.h: Rename include guard.
14725 * mn10300-tdep.h: Add include guard.
14726 * mips-linux-tdep.h: Add include guard.
14727 * mi/mi-parse.h: Rename include guard.
14728 * mi/mi-out.h: Rename include guard.
14729 * mi/mi-main.h: Rename include guard.
14730 * mi/mi-interp.h: Rename include guard.
14731 * mi/mi-getopt.h: Rename include guard.
14732 * mi/mi-console.h: Rename include guard.
14733 * mi/mi-common.h: Rename include guard.
14734 * mi/mi-cmds.h: Rename include guard.
14735 * mi/mi-cmd-break.h: Rename include guard.
14736 * m2-lang.h: Add include guard.
14737 * location.h: Rename include guard.
14738 * linux-record.h: Rename include guard.
14739 * linux-nat.h: Add include guard.
14740 * linux-fork.h: Add include guard.
14741 * i386-darwin-tdep.h: Rename include guard.
14742 * hppa-linux-offsets.h: Add include guard.
14743 * guile/guile.h: Rename include guard.
14744 * guile/guile-internal.h: Rename include guard.
14745 * gnu-nat.h: Rename include guard.
14746 * gdb-stabs.h: Rename include guard.
14747 * frv-tdep.h: Add include guard.
14748 * f-lang.h: Add include guard.
14749 * event-loop.h: Add include guard.
14750 * darwin-nat.h: Rename include guard.
14751 * cp-abi.h: Rename include guard.
14752 * config/sparc/nm-sol2.h: Rename include guard.
14753 * config/nm-nto.h: Rename include guard.
14754 * config/nm-linux.h: Add include guard.
14755 * config/i386/nm-i386gnu.h: Rename include guard.
14756 * config/djgpp/nl_types.h: Rename include guard.
14757 * config/djgpp/langinfo.h: Rename include guard.
14758 * compile/gcc-cp-plugin.h: Add include guard.
14759 * compile/gcc-c-plugin.h: Add include guard.
14760 * compile/compile.h: Rename include guard.
14761 * compile/compile-object-run.h: Rename include guard.
14762 * compile/compile-object-load.h: Rename include guard.
14763 * compile/compile-internal.h: Rename include guard.
14764 * compile/compile-cplus.h: Rename include guard.
14765 * compile/compile-c.h: Rename include guard.
14766 * common/xml-utils.h: Rename include guard.
14767 * common/x86-xstate.h: Rename include guard.
14768 * common/version.h: Rename include guard.
14769 * common/vec.h: Rename include guard.
14770 * common/tdesc.h: Rename include guard.
14771 * common/selftest.h: Rename include guard.
14772 * common/scoped_restore.h: Rename include guard.
14773 * common/scoped_mmap.h: Rename include guard.
14774 * common/scoped_fd.h: Rename include guard.
14775 * common/safe-iterator.h: Rename include guard.
14776 * common/run-time-clock.h: Rename include guard.
14777 * common/refcounted-object.h: Rename include guard.
14778 * common/queue.h: Rename include guard.
14779 * common/ptid.h: Rename include guard.
14780 * common/print-utils.h: Rename include guard.
14781 * common/preprocessor.h: Rename include guard.
14782 * common/pathstuff.h: Rename include guard.
14783 * common/observable.h: Rename include guard.
14784 * common/netstuff.h: Rename include guard.
14785 * common/job-control.h: Rename include guard.
14786 * common/host-defs.h: Rename include guard.
14787 * common/gdb_wait.h: Rename include guard.
14788 * common/gdb_vecs.h: Rename include guard.
14789 * common/gdb_unlinker.h: Rename include guard.
14790 * common/gdb_unique_ptr.h: Rename include guard.
14791 * common/gdb_tilde_expand.h: Rename include guard.
14792 * common/gdb_sys_time.h: Rename include guard.
14793 * common/gdb_string_view.h: Rename include guard.
14794 * common/gdb_splay_tree.h: Rename include guard.
14795 * common/gdb_setjmp.h: Rename include guard.
14796 * common/gdb_ref_ptr.h: Rename include guard.
14797 * common/gdb_optional.h: Rename include guard.
14798 * common/gdb_locale.h: Rename include guard.
14799 * common/gdb_assert.h: Rename include guard.
14800 * common/filtered-iterator.h: Rename include guard.
14801 * common/filestuff.h: Rename include guard.
14802 * common/fileio.h: Rename include guard.
14803 * common/environ.h: Rename include guard.
14804 * common/common-utils.h: Rename include guard.
14805 * common/common-types.h: Rename include guard.
14806 * common/common-regcache.h: Rename include guard.
14807 * common/common-inferior.h: Rename include guard.
14808 * common/common-gdbthread.h: Rename include guard.
14809 * common/common-exceptions.h: Rename include guard.
14810 * common/common-defs.h: Rename include guard.
14811 * common/common-debug.h: Rename include guard.
14812 * common/cleanups.h: Rename include guard.
14813 * common/buffer.h: Rename include guard.
14814 * common/btrace-common.h: Rename include guard.
14815 * common/break-common.h: Rename include guard.
14816 * cli/cli-utils.h: Rename include guard.
14817 * cli/cli-style.h: Rename include guard.
14818 * cli/cli-setshow.h: Rename include guard.
14819 * cli/cli-script.h: Rename include guard.
14820 * cli/cli-interp.h: Rename include guard.
14821 * cli/cli-decode.h: Rename include guard.
14822 * cli/cli-cmds.h: Rename include guard.
14823 * charset-list.h: Add include guard.
14824 * buildsym-legacy.h: Rename include guard.
14825 * bfin-tdep.h: Add include guard.
14826 * ax.h: Rename include guard.
14827 * arm-linux-tdep.h: Add include guard.
14828 * arm-fbsd-tdep.h: Add include guard.
14829 * arch/xtensa.h: Rename include guard.
14830 * arch/tic6x.h: Add include guard.
14831 * arch/i386.h: Add include guard.
14832 * arch/arm.h: Rename include guard.
14833 * arch/arm-linux.h: Rename include guard.
14834 * arch/arm-get-next-pcs.h: Rename include guard.
14835 * arch/amd64.h: Add include guard.
14836 * arch/aarch64-insn.h: Rename include guard.
14837 * arch-utils.h: Rename include guard.
14838 * annotate.h: Add include guard.
14839 * amd64-darwin-tdep.h: Rename include guard.
14840 * aarch64-linux-tdep.h: Add include guard.
14841 * aarch64-fbsd-tdep.h: Add include guard.
14842 * aarch32-linux-nat.h: Add include guard.
14844 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14846 * macrotab.c (macro_define_internal): New function that
14847 factorizes macro_define_object_internal and macro_define_function
14849 (macro_define_object_internal): Use macro_define_internal.
14850 (macro_define_function): Likewise.
14852 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14854 * macrocmd.c (extract_identifier): Return
14855 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14858 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14860 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14862 2019-02-05 Tom Tromey <tom@tromey.com>
14864 * target.c (target_stack::unpush): Move assertion earlier.
14866 2019-01-30 Tom Tromey <tom@tromey.com>
14869 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14870 (gdbpy_parse_and_eval): Likewise.
14871 * python/python-internal.h (gdbpy_allow_threads): New class.
14873 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14875 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14876 (aarch64_fbsd_fpregmap): Move earlier.
14877 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14878 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14879 instead of individual calls to trad_frame_set_reg_addr.
14880 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14882 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14883 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14884 instead of individual calls to trad_frame_set_reg_addr.
14886 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14888 * CONTRIBUTE: Replace contribution list with wiki link.
14890 2019-01-25 Tom Tromey <tom@tromey.com>
14892 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14894 2019-01-25 Tom Tromey <tom@tromey.com>
14896 * xtensa-linux-nat.c: Fix common/ includes.
14897 * xml-support.h: Fix common/ includes.
14898 * xml-support.c: Fix common/ includes.
14899 * x86-linux-nat.c: Fix common/ includes.
14900 * windows-nat.c: Fix common/ includes.
14901 * varobj.h: Fix common/ includes.
14902 * varobj.c: Fix common/ includes.
14903 * value.c: Fix common/ includes.
14904 * valops.c: Fix common/ includes.
14905 * utils.c: Fix common/ includes.
14906 * unittests/xml-utils-selftests.c: Fix common/ includes.
14907 * unittests/utils-selftests.c: Fix common/ includes.
14908 * unittests/unpack-selftests.c: Fix common/ includes.
14909 * unittests/tracepoint-selftests.c: Fix common/ includes.
14910 * unittests/style-selftests.c: Fix common/ includes.
14911 * unittests/string_view-selftests.c: Fix common/ includes.
14912 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14913 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14914 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14915 * unittests/rsp-low-selftests.c: Fix common/ includes.
14916 * unittests/parse-connection-spec-selftests.c: Fix common/
14918 * unittests/optional-selftests.c: Fix common/ includes.
14919 * unittests/offset-type-selftests.c: Fix common/ includes.
14920 * unittests/observable-selftests.c: Fix common/ includes.
14921 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14922 * unittests/memrange-selftests.c: Fix common/ includes.
14923 * unittests/memory-map-selftests.c: Fix common/ includes.
14924 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14925 * unittests/function-view-selftests.c: Fix common/ includes.
14926 * unittests/environ-selftests.c: Fix common/ includes.
14927 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14928 * unittests/common-utils-selftests.c: Fix common/ includes.
14929 * unittests/cli-utils-selftests.c: Fix common/ includes.
14930 * unittests/array-view-selftests.c: Fix common/ includes.
14931 * ui-file.c: Fix common/ includes.
14932 * tui/tui-io.c: Fix common/ includes.
14933 * tracepoint.h: Fix common/ includes.
14934 * tracepoint.c: Fix common/ includes.
14935 * tracefile-tfile.c: Fix common/ includes.
14936 * top.h: Fix common/ includes.
14937 * top.c: Fix common/ includes.
14938 * thread.c: Fix common/ includes.
14939 * target/waitstatus.h: Fix common/ includes.
14940 * target/waitstatus.c: Fix common/ includes.
14941 * target.h: Fix common/ includes.
14942 * target.c: Fix common/ includes.
14943 * target-memory.c: Fix common/ includes.
14944 * target-descriptions.c: Fix common/ includes.
14945 * symtab.h: Fix common/ includes.
14946 * symfile.c: Fix common/ includes.
14947 * stap-probe.c: Fix common/ includes.
14948 * spu-linux-nat.c: Fix common/ includes.
14949 * sparc-nat.c: Fix common/ includes.
14950 * source.c: Fix common/ includes.
14951 * solib.c: Fix common/ includes.
14952 * solib-target.c: Fix common/ includes.
14953 * ser-unix.c: Fix common/ includes.
14954 * ser-tcp.c: Fix common/ includes.
14955 * ser-pipe.c: Fix common/ includes.
14956 * ser-base.c: Fix common/ includes.
14957 * selftest-arch.c: Fix common/ includes.
14958 * s12z-tdep.c: Fix common/ includes.
14959 * rust-exp.y: Fix common/ includes.
14960 * rs6000-aix-tdep.c: Fix common/ includes.
14961 * riscv-tdep.c: Fix common/ includes.
14962 * remote.c: Fix common/ includes.
14963 * remote-notif.h: Fix common/ includes.
14964 * remote-fileio.h: Fix common/ includes.
14965 * remote-fileio.c: Fix common/ includes.
14966 * regcache.h: Fix common/ includes.
14967 * regcache.c: Fix common/ includes.
14968 * record-btrace.c: Fix common/ includes.
14969 * python/python.c: Fix common/ includes.
14970 * python/py-type.c: Fix common/ includes.
14971 * python/py-inferior.c: Fix common/ includes.
14972 * progspace.h: Fix common/ includes.
14973 * producer.c: Fix common/ includes.
14974 * procfs.c: Fix common/ includes.
14975 * proc-api.c: Fix common/ includes.
14976 * printcmd.c: Fix common/ includes.
14977 * ppc-linux-nat.c: Fix common/ includes.
14978 * parser-defs.h: Fix common/ includes.
14979 * osdata.c: Fix common/ includes.
14980 * obsd-nat.c: Fix common/ includes.
14981 * nat/x86-linux.c: Fix common/ includes.
14982 * nat/x86-linux-dregs.c: Fix common/ includes.
14983 * nat/x86-dregs.h: Fix common/ includes.
14984 * nat/x86-dregs.c: Fix common/ includes.
14985 * nat/ppc-linux.c: Fix common/ includes.
14986 * nat/mips-linux-watch.h: Fix common/ includes.
14987 * nat/mips-linux-watch.c: Fix common/ includes.
14988 * nat/linux-waitpid.c: Fix common/ includes.
14989 * nat/linux-ptrace.h: Fix common/ includes.
14990 * nat/linux-ptrace.c: Fix common/ includes.
14991 * nat/linux-procfs.c: Fix common/ includes.
14992 * nat/linux-personality.c: Fix common/ includes.
14993 * nat/linux-osdata.c: Fix common/ includes.
14994 * nat/linux-namespaces.c: Fix common/ includes.
14995 * nat/linux-btrace.h: Fix common/ includes.
14996 * nat/linux-btrace.c: Fix common/ includes.
14997 * nat/fork-inferior.c: Fix common/ includes.
14998 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14999 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15000 * nat/aarch64-linux.c: Fix common/ includes.
15001 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15002 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15003 * namespace.h: Fix common/ includes.
15004 * mips-linux-tdep.c: Fix common/ includes.
15005 * minsyms.c: Fix common/ includes.
15006 * mi/mi-parse.h: Fix common/ includes.
15007 * mi/mi-main.c: Fix common/ includes.
15008 * mi/mi-cmd-env.c: Fix common/ includes.
15009 * memrange.h: Fix common/ includes.
15010 * memattr.c: Fix common/ includes.
15011 * maint.h: Fix common/ includes.
15012 * maint.c: Fix common/ includes.
15013 * main.c: Fix common/ includes.
15014 * machoread.c: Fix common/ includes.
15015 * location.c: Fix common/ includes.
15016 * linux-thread-db.c: Fix common/ includes.
15017 * linux-nat.c: Fix common/ includes.
15018 * linux-fork.c: Fix common/ includes.
15019 * inline-frame.c: Fix common/ includes.
15020 * infrun.c: Fix common/ includes.
15021 * inflow.c: Fix common/ includes.
15022 * inferior.h: Fix common/ includes.
15023 * inferior.c: Fix common/ includes.
15024 * infcmd.c: Fix common/ includes.
15025 * inf-ptrace.c: Fix common/ includes.
15026 * inf-child.c: Fix common/ includes.
15027 * ia64-linux-nat.c: Fix common/ includes.
15028 * i387-tdep.c: Fix common/ includes.
15029 * i386-tdep.c: Fix common/ includes.
15030 * i386-linux-tdep.c: Fix common/ includes.
15031 * i386-linux-nat.c: Fix common/ includes.
15032 * i386-go32-tdep.c: Fix common/ includes.
15033 * i386-fbsd-tdep.c: Fix common/ includes.
15034 * i386-fbsd-nat.c: Fix common/ includes.
15035 * guile/scm-type.c: Fix common/ includes.
15036 * guile/guile.c: Fix common/ includes.
15037 * go32-nat.c: Fix common/ includes.
15038 * gnu-nat.c: Fix common/ includes.
15039 * gdbthread.h: Fix common/ includes.
15040 * gdbarch-selftests.c: Fix common/ includes.
15041 * gdb_usleep.c: Fix common/ includes.
15042 * gdb_select.h: Fix common/ includes.
15043 * gdb_bfd.c: Fix common/ includes.
15044 * gcore.c: Fix common/ includes.
15045 * fork-child.c: Fix common/ includes.
15046 * findvar.c: Fix common/ includes.
15047 * fbsd-nat.c: Fix common/ includes.
15048 * event-top.c: Fix common/ includes.
15049 * event-loop.c: Fix common/ includes.
15050 * dwarf2read.c: Fix common/ includes.
15051 * dwarf2loc.c: Fix common/ includes.
15052 * dwarf2-frame.c: Fix common/ includes.
15053 * dwarf-index-cache.c: Fix common/ includes.
15054 * dtrace-probe.c: Fix common/ includes.
15055 * disasm-selftests.c: Fix common/ includes.
15056 * defs.h: Fix common/ includes.
15057 * csky-tdep.c: Fix common/ includes.
15058 * cp-valprint.c: Fix common/ includes.
15059 * cp-support.h: Fix common/ includes.
15060 * cp-support.c: Fix common/ includes.
15061 * corelow.c: Fix common/ includes.
15062 * completer.h: Fix common/ includes.
15063 * completer.c: Fix common/ includes.
15064 * compile/compile.c: Fix common/ includes.
15065 * compile/compile-loc2c.c: Fix common/ includes.
15066 * compile/compile-cplus-types.c: Fix common/ includes.
15067 * compile/compile-cplus-symbols.c: Fix common/ includes.
15068 * command.h: Fix common/ includes.
15069 * cli/cli-dump.c: Fix common/ includes.
15070 * cli/cli-cmds.c: Fix common/ includes.
15071 * charset.c: Fix common/ includes.
15072 * build-id.c: Fix common/ includes.
15073 * btrace.h: Fix common/ includes.
15074 * btrace.c: Fix common/ includes.
15075 * breakpoint.h: Fix common/ includes.
15076 * breakpoint.c: Fix common/ includes.
15078 (enum agent_op): Fix common/ includes.
15079 * ax-general.c (struct aop_map): Fix common/ includes.
15080 * ax-gdb.c: Fix common/ includes.
15081 * auxv.c: Fix common/ includes.
15082 * auto-load.c: Fix common/ includes.
15083 * arm-tdep.c: Fix common/ includes.
15084 * arch/riscv.c: Fix common/ includes.
15085 * arch/ppc-linux-common.c: Fix common/ includes.
15086 * arch/i386.c: Fix common/ includes.
15087 * arch/arm.c: Fix common/ includes.
15088 * arch/arm-linux.c: Fix common/ includes.
15089 * arch/arm-get-next-pcs.c: Fix common/ includes.
15090 * arch/amd64.c: Fix common/ includes.
15091 * arch/aarch64.c: Fix common/ includes.
15092 * arch/aarch64-insn.c: Fix common/ includes.
15093 * arch-utils.c: Fix common/ includes.
15094 * amd64-windows-tdep.c: Fix common/ includes.
15095 * amd64-tdep.c: Fix common/ includes.
15096 * amd64-sol2-tdep.c: Fix common/ includes.
15097 * amd64-obsd-tdep.c: Fix common/ includes.
15098 * amd64-nbsd-tdep.c: Fix common/ includes.
15099 * amd64-linux-tdep.c: Fix common/ includes.
15100 * amd64-linux-nat.c: Fix common/ includes.
15101 * amd64-fbsd-tdep.c: Fix common/ includes.
15102 * amd64-fbsd-nat.c: Fix common/ includes.
15103 * amd64-dicos-tdep.c: Fix common/ includes.
15104 * amd64-darwin-tdep.c: Fix common/ includes.
15105 * agent.c: Fix common/ includes.
15106 * ada-lang.h: Fix common/ includes.
15107 * ada-lang.c: Fix common/ includes.
15108 * aarch64-tdep.c: Fix common/ includes.
15110 2019-01-25 Tom Tromey <tom@tromey.com>
15112 * common/create-version.sh: Use common/version.h.
15114 2019-01-24 Pedro Alves <palves@redhat.com>
15116 * infrun.c (signal_stop, signal_print, signal_program)
15117 (signal_catch, signal_pass): Now arrays instead of pointers.
15118 (update_signals_program_target, do_target_resume)
15119 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15120 * linux-nat.c (linux_nat_target::pass_signals)
15121 (linux_nat_target::create_inferior, linux_nat_target::attach):
15123 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15124 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15125 * procfs.c (procfs_target::pass_signals): Adjust.
15126 * record-full.c (record_full_target::resume): Adjust.
15127 * remote.c (remote_target::pass_signals)
15128 (remote_target::program_signals): Adjust.
15129 * target-debug.h (target_debug_print_signals): Now takes a
15130 gdb::array_view as parameter. Adjust.
15131 * target.h (target_ops) <pass_signals, program_signals>: Replace
15132 pointer and length parameters with gdb::array_view.
15133 (target_pass_signals, target_program_signals): Likewise.
15134 * target-delegates.c: Regenerate.
15136 2019-01-24 Pedro Alves <palves@redhat.com>
15138 * common/forward-scope-exit.h
15139 (forward_scope_exit::forward_scope_exit): Pass arguments to
15140 m_bind_function directly, instead of creating a std::bind and
15143 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15145 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15146 for static members.
15147 (pass_in_v_vfp_candidate): Likewise.
15149 2019-01-23 Tom Tromey <tom@tromey.com>
15150 Pedro Alves <palves@redhat.com>
15152 * regcache.c (class regcache_invalidator): Remove.
15153 (regcache::raw_write): Use make_scope_exit.
15155 2019-01-23 Tom Tromey <tom@tromey.com>
15157 * ui-out.h (class ui_out_emit_type): Update comment.
15159 2019-01-23 Tom Tromey <tom@tromey.com>
15161 * infrun.c (fetch_inferior_event): Update comment.
15163 2019-01-23 Tom Tromey <tom@tromey.com>
15164 Pedro Alves <palves@redhat.com>
15166 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15168 (fetch_inferior_event): Use SCOPE_EXIT.
15171 2019-01-23 Tom Tromey <tom@tromey.com>
15172 Pedro Alves <palves@redhat.com>
15174 * infrun.c (disable_thread_events): Delete.
15175 (stop_all_threads): Use SCOPE_EXIT.
15177 2019-01-23 Tom Tromey <tom@tromey.com>
15178 Pedro Alves <palves@redhat.com>
15180 * symfile.c: Include forward-scope-exit.h.
15181 (clear_symtab_users_cleanup): Replace forward declaration with
15182 a FORWARD_SCOPE_EXIT.
15183 (syms_from_objfile_1): Use the forward_scope_exit and
15184 gdb::optional instead of cleanup_function.
15185 (reread_symbols): Use the forward_scope_exit instead of
15187 (clear_symtab_users_cleanup): Remove function.
15189 2019-01-23 Tom Tromey <tom@tromey.com>
15190 Pedro Alves <palves@redhat.com>
15192 * linux-nat.c: Include scope-exit.h.
15193 (cleanup_target_stop): Remove.
15194 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15197 2019-01-23 Tom Tromey <tom@tromey.com>
15198 Pedro Alves <palves@redhat.com>
15200 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15201 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15203 2019-01-23 Tom Tromey <tom@tromey.com>
15204 Andrew Burgess <andrew.burgess@embecosm.com>
15205 Pedro Alves <palves@redhat.com>
15207 * infrun.c (fetch_inferior_event): Use scope_exit.
15208 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15209 * top.c (execute_command): Use scope_exit.
15210 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15211 * utils.c (do_bpstat_clear_actions_cleanup)
15212 (make_bpstat_clear_actions_cleanup): Remove.
15214 2019-01-23 Tom Tromey <tom@tromey.com>
15215 Pedro Alves <palves@redhat.com>
15217 * infrun.c: Include "common/scope-exit.h"
15218 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15219 (wait_for_inferior): Use SCOPE_EXIT.
15220 (fetch_inferior_event): Use scope_exit.
15222 2019-01-23 Tom Tromey <tom@tromey.com>
15223 Pedro Alves <palves@redhat.com>
15225 * breakpoint.c (create_breakpoint): Remove cleanup.
15227 2019-01-23 Tom Tromey <tom@tromey.com>
15228 Andrew Burgess <andrew.burgess@embecosm.com>
15229 Pedro Alves <palves@redhat.com>
15231 2019-01-23 Pedro Alves <palves@redhat.com>
15233 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15235 2019-01-23 Pedro Alves <palves@redhat.com>
15236 Andrew Burgess <andrew.burgess@embecosm.com>
15238 * gdbthread.h: Include "common/forward-scope-exit.h".
15239 (scoped_finish_thread_state): Redefine custom class in terms of
15240 forward_scope_exit.
15242 2019-01-23 Pedro Alves <palves@redhat.com>
15243 Andrew Burgess <andrew.burgess@embecosm.com>
15245 * common/forward-scope-exit.h: New file.
15247 2019-01-23 Pedro Alves <palves@redhat.com>
15248 Andrew Burgess <andrew.burgess@embecosm.com>
15249 Tom Tromey <tom@tromey.com>
15251 * common/scope-exit.h: New file.
15253 2019-01-23 Pedro Alves <palves@redhat.com>
15255 * common/preprocessor.h (ESC): Rename to ...
15256 (ESC_PARENS): ... this.
15257 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15258 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15260 2019-01-23 Tom Tromey <tom@tromey.com>
15262 * language.h (class scoped_switch_to_sym_language_if_auto):
15263 Initialize m_lang in both cases.
15265 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15267 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15270 2019-01-22 Tom Tromey <tom@tromey.com>
15272 * corelow.c: Do not include sys/file.h.
15274 2019-01-22 Tom Tromey <tom@tromey.com>
15276 * tui/tui-wingeneral.h: Include gdb_curses.h.
15278 2019-01-22 Tom Tromey <tom@tromey.com>
15280 * source-cache.h (class source_cache) <get_source_lines,
15281 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15283 2019-01-22 Tom Tromey <tom@tromey.com>
15285 * remote-fileio.h (struct remote_target): Declare.
15287 2019-01-22 Tom Tromey <tom@tromey.com>
15289 * python/py-arch.c: Do not include py-ref.h.
15290 * python/py-bpevent.c: Do not include py-ref.h.
15291 * python/py-cmd.c: Do not include py-ref.h.
15292 * python/py-continueevent.c: Do not include py-ref.h.
15293 * python/py-event.h: Do not include py-ref.h.
15294 * python/py-evtregistry.c: Do not include py-ref.h.
15295 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15296 * python/py-frame.c: Do not include py-ref.h.
15297 * python/py-framefilter.c: Do not include py-ref.h.
15298 * python/py-function.c: Do not include py-ref.h.
15299 * python/py-infevents.c: Do not include py-ref.h.
15300 * python/py-linetable.c: Do not include py-ref.h.
15301 * python/py-objfile.c: Do not include py-ref.h.
15302 * python/py-param.c: Do not include py-ref.h.
15303 * python/py-prettyprint.c: Do not include py-ref.h.
15304 * python/py-progspace.c: Do not include py-ref.h.
15305 * python/py-symbol.c: Do not include py-ref.h.
15306 * python/py-symtab.c: Do not include py-ref.h.
15307 * python/py-type.c: Do not include py-ref.h.
15308 * python/py-unwind.c: Do not include py-ref.h.
15309 * python/py-utils.c: Do not include py-ref.h.
15310 * python/py-value.c: Do not include py-ref.h.
15311 * python/py-varobj.c: Do not include py-ref.h.
15312 * python/py-xmethods.c: Do not include py-ref.h.
15313 * python/python.c: Do not include py-ref.h.
15314 * varobj.c: Do not include py-ref.h.
15316 2019-01-22 Tom Tromey <tom@tromey.com>
15318 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15319 keyword for bcache.
15321 2019-01-22 Tom Tromey <tom@tromey.com>
15323 * compile/compile-cplus-types.c: Remove a comment by #include.
15325 2019-01-22 Tom Tromey <tom@tromey.com>
15327 * compile/gcc-c-plugin.h: Include compile-internal.h.
15329 2019-01-22 Tom Tromey <tom@tromey.com>
15331 * stabsread.c (EXTERN): Do not define.
15332 (symnum, next_symbol_text_func, processing_gcc_compilation)
15333 (within_function, global_sym_chain, global_stabs)
15334 (previous_stab_code, this_object_header_files)
15335 (n_this_object_header_files)
15336 (n_allocated_this_object_header_files): Define.
15337 * stabsread.h (EXTERN): Never define. Use "extern".
15339 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15341 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15344 2019-01-21 Tom Tromey <tom@tromey.com>
15346 * ui-out.c: Fix includes.
15347 * tui/tui-source.c: Fix includes.
15348 * target.c: Fix includes.
15349 * remote.c: Fix includes.
15350 * regcache.c: Fix includes.
15351 * python/py-block.c: Fix includes.
15352 * printcmd.c: Fix includes.
15353 * or1k-tdep.c: Fix includes.
15354 * mi/mi-main.c: Fix includes.
15355 * m32r-tdep.c: Fix includes.
15356 * csky-tdep.c: Fix includes.
15357 * compile/compile-cplus-types.c: Fix includes.
15358 * cli/cli-interp.c: Fix includes.
15360 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15362 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15365 2019-01-16 Tom Tromey <tom@tromey.com>
15367 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15369 (struct objfile) <msymbols_range>: Move from top level.
15370 <msymbols>: New method.
15371 (class objfile_msymbols): Remove.
15372 * symtab.c (default_collect_symbol_completion_matches_break_on):
15374 * symmisc.c (dump_msymbols): Update.
15375 * stabsread.c (scan_file_globals): Update.
15376 * objc-lang.c (info_selectors_command, info_classes_command)
15377 (find_methods): Update.
15378 * minsyms.c (find_solib_trampoline_target): Update.
15379 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15380 * coffread.c (coff_symfile_read): Update.
15381 * ada-lang.c (ada_lookup_simple_minsym)
15382 (ada_collect_symbol_completion_matches): Update.
15384 2019-01-16 Tom Tromey <tom@tromey.com>
15386 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15387 type. Remove no-argument constructor.
15388 <iterator::operator++>: Simplify.
15390 <end>: Use minimal_symbol_count.
15392 2019-01-16 Tom Tromey <tom@tromey.com>
15394 * objfiles.h (struct objfile) <psymtabs>: New method.
15395 (class objfile_psymtabs): Remove.
15396 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15398 <range>: New method.
15399 (require_partial_symbols): Change return type.
15400 * psymtab.c (require_partial_symbols)
15401 (psym_expand_symtabs_matching): Update.
15402 * mdebugread.c (parse_partial_symbols): Update.
15403 * dbxread.c (dbx_end_psymtab): Update.
15405 2019-01-15 Tom Tromey <tom@tromey.com>
15407 * symtab.c (lookup_objfile_from_block)
15408 (lookup_symbol_in_objfile_symtabs)
15409 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15410 (find_line_symtab, info_sources_command)
15411 (default_collect_symbol_completion_matches_break_on)
15412 (make_source_files_completion_list): Update.
15413 * symmisc.c (print_objfile_statistics, dump_objfile)
15414 (maintenance_print_symbols, maintenance_info_symtabs)
15415 (maintenance_check_symtabs, maintenance_info_line_tables):
15417 * source.c (select_source_symtab)
15418 (forget_cached_source_info_for_objfile): Update.
15419 * objfiles.h (class objfile_compunits): Remove.
15420 (struct objfile) <compunits_range>: New typedef.
15421 (compunits): New method.
15422 * objfiles.c (objfile_relocate1): Update.
15423 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15424 * maint.c (count_symtabs_and_blocks): Update.
15425 * linespec.c (iterate_over_all_matching_symtabs): Update.
15426 * cp-support.c (add_symbol_overload_list_qualified): Update.
15427 * coffread.c (coff_symtab_read): Update.
15428 * ada-lang.c (add_nonlocal_symbols)
15429 (ada_collect_symbol_completion_matches)
15430 (ada_add_global_exceptions): Update.
15432 2019-01-15 Tom Tromey <tom@tromey.com>
15434 * progspace.h (program_space) <objfiles_safe_range>: New
15436 <objfiles_safe>: New method.
15437 * objfiles.h (class all_objfiles_safe): Remove.
15438 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15439 * jit.c (jit_inferior_exit_hook): Update.
15441 2019-01-17 Tom Tromey <tom@tromey.com>
15443 * progspace.h (program_space) <objfiles_range>: New typedef.
15444 <objfiles>: New method.
15445 <objfiles_head>: Rename from objfiles.
15446 (object_files): Update.
15447 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15448 * guile/scm-pretty-print.c
15449 (ppscm_find_pretty_printer_from_objfiles): Update.
15450 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15451 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15453 * python/py-progspace.c (pspy_get_objfiles): Update.
15454 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15456 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15457 (objfpy_lookup_objfile_by_build_id): Update.
15458 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15459 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15461 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15462 (expand_symtab_containing_pc, lookup_objfile_from_block)
15463 (lookup_static_symbol, basic_lookup_transparent_type)
15464 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15465 (find_line_symtab, info_sources_command)
15466 (default_collect_symbol_completion_matches_break_on)
15467 (make_source_files_completion_list, find_main_name): Update.
15468 * symmisc.c (print_symbol_bcache_statistics)
15469 (print_objfile_statistics, maintenance_print_symbols)
15470 (maintenance_print_msymbols, maintenance_print_objfiles)
15471 (maintenance_info_symtabs, maintenance_check_symtabs)
15472 (maintenance_expand_symtabs, maintenance_info_line_tables):
15474 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15475 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15476 (map_overlay_command, unmap_overlay_command)
15477 (simple_overlay_update, expand_symtabs_matching)
15478 (map_symbol_filenames): Update.
15479 * symfile-debug.c (set_debug_symfile): Update.
15480 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15482 * source.c (select_source_symtab, forget_cached_source_info):
15484 * solib.c (solib_read_symbols): Update.
15485 * solib-spu.c (append_ocl_sos): Update.
15486 * psymtab.c (maintenance_print_psymbols)
15487 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15488 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15489 * printcmd.c (info_symbol_command): Update.
15490 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15492 * objfiles.h (class all_objfiles): Remove.
15493 * objfiles.c (have_partial_symbols, have_full_symbols)
15494 (have_minimal_symbols, qsort_cmp, update_section_map)
15495 (shared_objfile_contains_address_p)
15496 (default_iterate_over_objfiles_in_search_order): Update.
15497 * objc-lang.c (info_selectors_command, info_classes_command)
15498 (find_methods): Update.
15499 * minsyms.c (find_solib_trampoline_target): Update.
15500 * maint.c (maintenance_info_sections)
15501 (maintenance_translate_address, count_symtabs_and_blocks):
15503 * main.c (captured_main_1): Update.
15504 * linux-thread-db.c (try_thread_db_load_from_pdir)
15505 (has_libpthread): Update.
15506 * linespec.c (iterate_over_all_matching_symtabs)
15507 (search_minsyms_for_name): Update.
15508 * jit.c (jit_find_objf_with_entry_addr): Update.
15509 * hppa-tdep.c (find_unwind_entry)
15510 (hppa_lookup_stub_minimal_symbol): Update.
15511 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15513 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15514 (elf_gnu_ifunc_resolve_by_got): Update.
15515 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15516 * dwarf-index-write.c (save_gdb_index_command): Update.
15517 * cp-support.c (add_symbol_overload_list_qualified): Update.
15518 * breakpoint.c (create_overlay_event_breakpoint)
15519 (create_longjmp_master_breakpoint)
15520 (create_std_terminate_master_breakpoint)
15521 (create_exception_master_breakpoint): Update.
15522 * blockframe.c (find_pc_partial_function): Update.
15523 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15524 (ada_collect_symbol_completion_matches)
15525 (ada_add_global_exceptions): Update.
15527 2019-01-17 Tom Tromey <tom@tromey.com>
15529 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15531 (solib_target_parse_libraries): Change return type.
15532 (library_list_start_segment, library_list_start_section)
15533 (library_list_end_library, library_list_start_library); Update.
15534 (solib_target_free_library_list): Remove.
15535 (solib_target_parse_libraries): Remove cleanup. Change return
15537 (solib_target_current_sos): Update.
15539 2019-01-17 Tom Tromey <tromey@bapiya>
15541 * valprint.c: Replace "the the" with "the".
15542 * symtab.c: Replace "the the" with "the".
15543 * solib.c: Replace "the the" with "the".
15544 * solib-dsbt.c: Replace "the the" with "the".
15545 * linespec.c: Replace "the the" with "the".
15546 * dwarf2loc.h: Replace "the the" with "the".
15547 * amd64-windows-tdep.c: Replace "the the" with "the".
15548 * aarch64-tdep.c: Replace "the the" with "the".
15550 2019-01-16 Keith Seitz <keiths@redhat.com>
15553 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15554 <builder>: Rename to ..
15555 <m_builder>: ... this and make private.
15556 (dwarf2_cu::get_builder): New method. Change all users of
15557 `builder' to use this method.
15558 (dwarf2_start_symtab): Move to ...
15559 (dwarf2_cu::start_symtab): ... here. Update all callers
15560 (setup_type_unit_groups): Move to ...
15561 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15563 (dwarf2_cu::reset_builder): New method.
15564 (process_full_compunit, process_full_type_unit): Use
15565 dwarf2_cu::reset_builder.
15566 (follow_die_offset): Record the ancestor CU if it is different
15567 from the followed DIE's CU.
15568 (follow_die_sig_1): Likewise.
15570 2019-01-15 Tom Tromey <tom@tromey.com>
15572 * remote.c (class remote_state) <buf>: Now a char_vector.
15573 <buf_size>: Remove.
15574 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15576 (remote_target::getpkt_or_notif_sane_1)
15577 (remote_target::getpkt_sane)
15578 (remote_target::getpkt_or_notif_sane): Likewise.
15579 (class remote_target) <putpkt>: New overload.
15580 (remote_target::read_frame): Change type of "buf_p". Remove
15581 sizeof_p parameter.
15582 (packet_ok): New overload.
15583 (packet_check_result): New overload.
15586 2019-01-14 Tom Tromey <tom@tromey.com>
15588 * remote-notif.c (handle_notification, remote_notif_ack)
15589 (remote_notif_parse): Make "buf" const.
15590 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15592 (remote_notif_parse, remote_notif_ack, handle_notification):
15594 * remote.c (remote_notif_stop_parse): Make "buf" const.
15595 (remote_target::remote_parse_stop_reply): Make "buf" const.
15596 (remote_notif_stop_ack): Make "buf" const.
15598 2019-01-14 Tom Tromey <tom@tromey.com>
15600 * remote.c (remote_console_output): Make parameter const.
15602 2019-01-14 Tom Tromey <tom@tromey.com>
15604 * target-debug.h (target_debug_print_signals): Constify.
15605 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15606 * procfs.c (procfs_target::pass_signals): Update.
15607 * linux-nat.c (linux_nat_target::pass_signals): Update.
15608 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15609 * target-delegates.c: Rebuild.
15610 * remote.c (remote_target::program_signals): Update.
15611 (remote_target::pass_signals): Update.
15612 * target.c (target_pass_signals): Constify argument.
15613 (target_program_signals): Likewise.
15614 * target.h (struct target_ops) <pass_signals, program_signals>:
15616 (target_pass_signals, target_program_signals): Constify argument.
15618 2019-01-14 Tom Tromey <tom@tromey.com>
15621 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15623 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15625 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15627 * rs6000-tdep.c: Include reggroups.h.
15628 (IS_V_ALIAS_PSEUDOREG): Define.
15629 (rs6000_register_name): Return names for the "vX" aliases.
15630 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15631 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15632 aliases. Call default_register_reggroup_p for all other
15634 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15636 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15637 Handle "vX" aliases.
15638 (v_alias_pseudo_register_collect): New function.
15639 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15640 (rs6000_gdbarch_init): Initialize "vX" aliases as
15641 pseudo-registers. Restore registration of
15642 rs6000_pseudo_register_reggroup_p with
15643 set_tdesc_pseudo_register_reggroup_p.
15645 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15647 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15648 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15649 set_gdbarch_num_pseudo_regs.
15651 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15653 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15654 Remove arg prefixname, add do_set and do_show.
15655 Add member functions set_list and show_list.
15656 * cli/cli-style.c (class cli_style_option): Update accordingly.
15657 (style_set_list): Move to file scope.
15658 (style_show_list): Likewise.
15659 (set_style): Call help_list.
15660 (show_style): Call cmd_show_list.
15661 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15662 Update to use the new macro.
15664 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15666 * ada-lang.c (_initialize_ada_language): Expand the help text
15667 for the "catch exception" command.
15669 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15671 * symtab.c (matching_obj_sections): Initialize obj,
15672 declare it closer to its usage.
15674 2019-01-10 Tom Tromey <tom@tromey.com>
15676 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15677 (basic_inf_threads_range): Remove.
15678 (inf_threads_range, inf_non_exited_threads_range)
15679 (safe_inf_threads_range): Use next_adapter.
15681 2019-01-10 Keith Seitz <keiths@redhat.com>
15685 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15686 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15688 2019-01-10 Keith Seitz <keiths@redhat.com>
15692 * dictionary.c (pending_to_vector): Remove.
15693 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15694 Remove _1 suffix, replacing functions of the same name. Update
15696 (dict_create_hashed, dict_create_hashed_expandable)
15697 (dict_create_linear, dict_create_linear_expandable, dict_free)
15698 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15699 Make functions static.
15701 2019-01-10 Keith Seitz <keiths@redhat.com>
15705 * dictionary.h (struct dictionary): Replace declaration with
15707 (dict_create_hashed, dict_create_hashed_expandable)
15708 (dict_create_linear, dict_create_linear_expandable)
15709 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15710 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15711 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15712 taking multidictionary argument.
15713 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15714 * block.h (struct block) <dict>: Change to multidictionary
15715 and rename `multidict'.
15716 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15717 symmisc.c: Update all dictionary references to multidictionary.
15719 2019-01-10 Keith Seitz <keiths@redhat.com>
15723 * dictionary.c: Include unordered_map.
15724 (pending_to_vector): New function.
15725 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15726 Rewrite the non-"_1" functions to take vector instead
15728 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15729 "new" _1 versions of the same name.
15730 (multidictionary): Define.
15731 (std::hash<enum language): New definition.
15732 (collate_pending_symbols_by_language, mdict_create_hashed)
15733 (mdict_create_hashed_expandable, mdict_create_linear)
15734 (mdict_create_linear_expandable, mdict_free)
15735 (find_language_dictionary, create_new_language_dictionary)
15736 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15737 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15738 (mdict_size, mdict_empty): New functions.
15739 * dictionary.h (mdict_iterator): Define.
15741 2019-01-10 Pedro Alves <palves@redhat.com>
15743 * breakpoint.c (read_uploaded_action)
15744 (create_tracepoint_from_upload): Adjust to use
15745 gdb::unique_xmalloc_ptr.
15746 * ctf.c (ctf_write_uploaded_tp):
15747 (SET_ARRAY_FIELD): Use emplace_back.
15748 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15749 * tracefile-tfile.c (tfile_write_uploaded_tp):
15750 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15751 gdb::unique_xmalloc_ptr.
15752 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15753 at_string, cond_string, cmd_strings>: Replace char pointers
15754 with gdb::unique_xmalloc_ptr.
15756 2019-01-10 Pedro Alves <palves@redhat.com>
15758 * solib-target.c (library_list_start_library): Don't xstrdup name.
15760 2019-01-10 Pedro Alves <palves@redhat.com>
15762 * mdebugread.c (parse_partial_symbols): Use
15763 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15765 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15767 * linux-fork.c (scoped_switch_fork_info)
15768 <~scoped_switch_fork_info>: Fix incorrect variable name.
15770 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15772 * linux-fork.c (scoped_switch_fork_info)
15773 <scoped_switch_fork_info>: Make explicit.
15774 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15776 2019-01-10 Tom Tromey <tom@tromey.com>
15778 * objfiles.h (objfile::reset_psymtabs): Update.
15779 * objfiles.c (objfile::objfile): Update.
15780 * psymtab.h (psymtab_storage::obstack): Update.
15781 (psymtab_storage::m_obstack): Use gdb::optional.
15782 (class psymtab_storage): Update comment. Remove objfile
15784 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15786 2019-01-10 Tom Tromey <tom@tromey.com>
15788 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15789 <free_psymtabs>: Now private.
15790 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15791 (allocate_psymtab): Use new method.
15793 2019-01-10 Tom Tromey <tom@tromey.com>
15795 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15796 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15797 * mdebugread.c (parse_partial_symbols): Use
15798 allocate_dependencies.
15799 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15800 allocate_dependencies.
15801 (process_psymtab_comp_unit_reader)
15802 (build_type_psymtab_dependencies): Likewise.
15803 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15805 2019-01-10 Tom Tromey <tom@tromey.com>
15807 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15808 PSYMBOL_SET_LANGUAGE.
15809 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15811 2019-01-10 Tom Tromey <tom@tromey.com>
15813 * psymtab.h (psymtab_storage::obstack): New method.
15814 <m_obstack>: Rename from obstack; now private.
15815 * psymtab.c (psymtab_storage): Update.
15816 * dwarf2read.c (create_addrmap_from_index)
15817 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15820 2019-01-10 Tom Tromey <tom@tromey.com>
15822 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15823 * objfiles.h (objfile::reset_psymtabs): New method.
15825 2019-01-10 Tom Tromey <tom@tromey.com>
15827 * symmisc.c (print_symbol_bcache_statistics): Update.
15828 (print_objfile_statistics): Update.
15829 * symfile.c (reread_symbols): Update.
15830 * psymtab.h (class psymtab_storage): New.
15831 * psymtab.c (psymtab_storage): New constructor.
15832 (~psymtab_storage): New destructor.
15833 (require_partial_symbols): Update.
15834 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15835 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15836 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15837 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15838 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15839 (start_psymtab_common, end_psymtab_common)
15840 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15841 (allocate_psymtab): Update.
15842 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15844 (dump_psymtab_addrmap, maintenance_print_psymbols)
15845 (maintenance_check_psymtabs): Update.
15846 (class objfile_psymtabs): Move to objfiles.h.
15847 * psympriv.h (discard_psymtab): Now inline.
15848 (psymtab_discarder::psymtab_discarder): Update.
15849 (psymtab_discarder::~psymtab_discarder): Update.
15850 (ALL_OBJFILE_PSYMTABS): Rewrite.
15851 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15852 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15854 <partial_symtabs>: New field.
15855 (class objfile_psymtabs): Move from psymtab.h. Update.
15856 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15858 (objfile::~objfile): Don't destroy psymbol_cache.
15859 * mdebugread.c (parse_partial_symbols): Update.
15860 * dwarf2read.c (create_addrmap_from_index)
15861 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15862 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15863 (add_partial_subprogram, dwarf2_ranges_read): Update.
15864 * dwarf-index-write.c (write_address_map)
15865 (write_one_signatured_type, recursively_write_psymbols)
15866 (class debug_names, class debug_names, write_psymtabs_to_index):
15869 2019-01-10 Tom Tromey <tom@tromey.com>
15871 * symtab.h (SYMBOL_SET_NAMES): Update.
15872 (symbol_set_names): Update.
15873 (MSYMBOL_SET_NAMES): Update.
15874 * symtab.c (symbol_set_names): Change argument to be an
15875 objfile_per_bfd_storage.
15876 * psymtab.c (add_psymbol_to_bcache): Update.
15877 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15879 2019-01-10 Tom Tromey <tom@tromey.com>
15881 * symtab.c (create_demangled_names_hash): Change argument to be an
15882 objfile_per_bfd_storage.
15883 (symbol_set_names): Update.
15885 2019-01-10 Tom Tromey <tom@tromey.com>
15887 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15889 * psymtab.c (init_psymbol_list): Do nothing if already called.
15890 * psympriv.h (init_psymbol_list): Add comment.
15891 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15893 * dbxread.c (dbx_symfile_read): Unconditionally call
15896 2019-01-10 Tom Tromey <tom@tromey.com>
15898 * xcoffread.c (scan_xcoff_symtab): Update.
15899 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15901 * mdebugread.c (parse_partial_symbols)
15902 (handle_psymbol_enumerators): Update.
15903 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15904 * dbxread.c (read_dbx_symtab): Update.
15905 * psympriv.h (psymbol_placement): New enum.
15906 (add_psymbol_to_list): Update.
15908 2019-01-10 Tom Tromey <tom@tromey.com>
15910 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15911 static_psymbols parameters.
15912 (scan_xcoff_symtab): Update.
15913 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15914 static_psymbols parameters.
15915 * psympriv.h (start_psymtab_common): Update.
15916 * mdebugread.c (parse_partial_symbols): Update.
15917 * dwarf2read.c (create_partial_symtab): Update.
15918 * dbxread.c (read_dbx_symtab): Update.
15919 (start_psymtab): Remove global_psymbols and static_psymbols
15922 2019-01-10 Tom Tromey <tom@tromey.com>
15924 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15925 * psymtab.c (allocate_psymtab): Add comment.
15926 * psympriv.h (allocate_psymtab): Add comment.
15927 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15929 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15931 2019-01-10 Tom Tromey <tom@tromey.com>
15933 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15935 * mipsread.c: Include mdebugread.h.
15936 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15938 * elfread.c: Include mdebugread.h.
15940 2019-01-09 Tom Tromey <tom@tromey.com>
15942 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15943 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15944 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15945 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15946 (psym_lookup_symbol, psym_find_last_source_symtab)
15947 (psym_forget_cached_source_info, psym_print_stats)
15948 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15949 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15950 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15951 (psym_find_compunit_symtab_by_address)
15952 (maintenance_print_psymbols, maintenance_info_psymtabs)
15953 (maintenance_check_psymtabs): Use ranged for.
15954 * psymtab.h (class objfile_psymtabs): New.
15955 (require_partial_symbols): Return objfile_psymtabs.
15956 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15958 2019-01-09 Tom Tromey <tom@tromey.com>
15960 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15961 (find_pc_mapped_section, list_overlays_command)
15962 (map_overlay_command, unmap_overlay_command)
15963 (simple_overlay_update): Use all_objfiles.
15964 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15965 * printcmd.c (info_symbol_command): Use all_objfiles.
15966 * objfiles.h (ALL_OBJSECTIONS): Remove.
15967 * maint.c (maintenance_translate_address): Use all_objfiles.
15968 * gcore.c (gcore_create_callback): Use all_objfiles.
15969 (objfile_find_memory_regions): Likewise.
15971 2019-01-09 Tom Tromey <tom@tromey.com>
15973 * symtab.c (find_line_symtab, info_sources_command)
15974 (make_source_files_completion_list): Use objfile_compunits.
15975 * source.c (select_source_symtab): Use objfile_compunits.
15976 * objfiles.h (struct objfile): Update comment.
15977 (ALL_OBJFILES): Remove.
15978 (ALL_FILETABS): Remove.
15979 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15982 2019-01-09 Tom Tromey <tom@tromey.com>
15984 * symmisc.c (print_objfile_statistics, dump_objfile)
15985 (maintenance_print_symbols): Use compunit_filetabs.
15986 * source.c (forget_cached_source_info_for_objfile): Use
15988 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15989 (ALL_FILETABS): Use compunit_filetabs.
15990 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15991 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15993 2019-01-09 Tom Tromey <tom@tromey.com>
15995 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15996 (compunit_filetabs): New.
15997 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15999 (info_sources_command, make_source_files_completion_list): Remove
16001 * symmisc.c (print_objfile_statistics, dump_objfile)
16002 (maintenance_print_symbols): Remove declaration.
16003 (maintenance_info_symtabs): Use compunit_filetabs.
16004 (maintenance_info_line_tables): Likewise.
16005 * source.c (select_source_symtab): Change local variable name.
16006 (forget_cached_source_info_for_objfile): Remove declaration.
16007 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16008 * objfiles.c (objfile_relocate1): Remove declaration.
16009 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16011 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16012 * coffread.c (coff_symtab_read): Remove declaration.
16013 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16016 2019-01-09 Tom Tromey <tom@tromey.com>
16018 * symtab.c (lookup_objfile_from_block)
16019 (find_pc_sect_compunit_symtab, search_symbols)
16020 (default_collect_symbol_completion_matches_break_on): Use
16022 * objfiles.h (ALL_COMPUNITS): Remove.
16023 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16024 * cp-support.c (add_symbol_overload_list_qualified): Use
16026 * ada-lang.c (ada_collect_symbol_completion_matches)
16027 (ada_add_global_exceptions): Use objfile_compunits.
16029 2019-01-09 Tom Tromey <tom@tromey.com>
16031 * source.c (select_source_symtab)
16032 (forget_cached_source_info_for_objfile): Remove declaration.
16033 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16035 * maint.c (count_symtabs_and_blocks): Remove declaration.
16036 * cp-support.c (add_symbol_overload_list_qualified): Remove
16038 * coffread.c (coff_symtab_read): Remove declaration.
16039 * symtab.c (lookup_symbol_in_objfile_symtabs)
16040 (basic_lookup_transparent_type_1): Use objfile_compunits.
16041 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16042 (info_sources_command, search_symbols)
16043 (default_collect_symbol_completion_matches_break_on)
16044 (make_source_files_completion_list): Remove declaration.
16045 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16046 (ada_collect_symbol_completion_matches)
16047 (ada_add_global_exceptions): Remove declaration.
16048 * linespec.c (iterate_over_all_matching_symtabs): Use
16050 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16051 (class objfile_compunits): New.
16052 (ALL_COMPUNITS): Use objfile_compunits.
16053 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16054 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16056 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16058 2019-01-09 Tom Tromey <tom@tromey.com>
16060 * symtab.c (search_symbols)
16061 (default_collect_symbol_completion_matches_break_on): Use
16063 * ada-lang.c (ada_lookup_simple_minsym)
16064 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16065 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16066 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16068 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16069 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16070 * objc-lang.c (find_methods): Use objfile_msymbols.
16071 (info_selectors_command, info_classes_command): Likewise.
16072 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16073 * objfiles.h (class objfile_msymbols): New.
16074 (ALL_OBJFILE_MSYMBOLS): Remove.
16075 (ALL_MSYMBOLS): Remove.
16077 2019-01-09 Tom Tromey <tom@tromey.com>
16079 * common/next-iterator.h (next_adapter): Add Iterator template
16081 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16082 (class all_objfiles_safe): New.
16083 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16084 * objfiles.c (put_objfile_before): Update comment.
16085 (add_separate_debug_objfile): Likewise.
16086 (free_all_objfiles): Use all_objfiles_safe.
16087 (objfile_purge_solibs): Likewise.
16089 2019-01-09 Tom Tromey <tom@tromey.com>
16091 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16092 (expand_symtab_containing_pc, lookup_static_symbol)
16093 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16094 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16096 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16097 * breakpoint.c (create_overlay_event_breakpoint)
16098 (create_longjmp_master_breakpoint)
16099 (create_std_terminate_master_breakpoint)
16100 (create_exception_master_breakpoint): Use all_objfiles.
16101 * linux-thread-db.c (try_thread_db_load_from_pdir)
16102 (has_libpthread): Use all_objfiles.
16103 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16104 * linespec.c (iterate_over_all_matching_symtabs)
16105 (search_minsyms_for_name): Use all_objfiles.
16106 * maint.c (maintenance_info_sections): Use all_objfiles.
16107 * main.c (captured_main_1): Use all_objfiles.
16108 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16109 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16110 * guile/scm-pretty-print.c
16111 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16112 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16113 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16114 (maintenance_print_msymbols): Use all_objfiles.
16115 * source.c (select_source_symtab): Use all_objfiles.
16116 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16117 * symfile.c (remove_symbol_file_command)
16118 (expand_symtabs_matching, map_symbol_filenames): Use
16120 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16122 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16123 * objc-lang.c (find_methods): Use all_objfiles.
16124 * objfiles.c (have_partial_symbols, have_full_symbols)
16125 (have_minimal_symbols, qsort_cmp)
16126 (default_iterate_over_objfiles_in_search_order): Use
16128 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16129 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16130 (maintenance_check_psymtabs): Use all_objfiles.
16131 (ALL_PSYMTABS): Remove.
16132 * compile/compile-object-run.c (do_module_cleanup): Use
16134 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16135 * cp-support.c (add_symbol_overload_list_qualified): Use
16137 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16139 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16140 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16142 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16143 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16144 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16146 * solib.c (solib_read_symbols): Use all_objfiles
16148 2019-01-09 Tom Tromey <tom@tromey.com>
16150 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16151 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16153 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16154 * symmisc.c (print_symbol_bcache_statistics)
16155 (print_objfile_statistics, maintenance_print_objfiles)
16156 (maintenance_info_symtabs, maintenance_check_symtabs)
16157 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16159 * source.c (forget_cached_source_info): Use all_objfiles.
16160 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16161 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16162 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16163 * objfiles.c (update_section_map): Use all_objfiles.
16164 (shared_objfile_contains_address_p): Likewise.
16165 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16166 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16168 2019-01-09 Tom Tromey <tom@tromey.com>
16170 * common/next-iterator.h: New file.
16171 * objfiles.h (class all_objfiles): New.
16172 (struct objfile_iterator): New.
16174 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16176 * NEWS: Move the description of the changed "frame", "select-frame",
16177 and "info frame" commands to the Changed commands section.
16179 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16181 * gdbtypes.c (check_stub_method_group): Remove handling of old
16183 * linespec.c (find_methods): Likewise.
16184 * stabsread.c (read_member_functions): Likewise.
16185 * valops.c (search_struct_method): Likewise.
16186 (value_struct_elt_for_reference): Likewise.
16187 * NEWS: Mention this change.
16189 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16191 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16192 print_source_lines.
16193 * source.c (print_source_lines_base): Update line number check.
16194 (print_source_lines): New function.
16195 (source_lines_range::source_lines_range): New function.
16196 * source.h (class source_lines_range): New class.
16197 (print_source_lines): New declaration.
16199 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16201 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16203 2019-01-08 Tom Tromey <tom@tromey.com>
16204 Simon Marchi <simon.marchi@ericsson.com>
16207 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16208 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16209 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16210 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16211 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16212 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16214 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16216 * source.c (select_source_symtab): Move header comment to
16217 declaration in source.h.
16218 (forget_cached_source_info_for_objfile): Likewise.
16219 (forget_cached_source_info): Likewise.
16220 (identify_source_line): Likewise.
16221 * source.h (identify_source_line): Move declaration from symtab.h
16222 and add comment from source.c
16223 (print_source_lines): Likewise.
16224 (forget_cached_source_info_for_objfile): Likewise.
16225 (forget_cached_source_info): Likewise.
16226 (select_source_symtab): Likewise.
16227 (enum print_source_lines_flag): Move definition from symtab.h.
16228 * symtab.h (identify_source_line): Move declaration to source.h.
16229 (print_source_lines): Likewise.
16230 (forget_cached_source_info_for_objfile): Likewise.
16231 (forget_cached_source_info): Likewise.
16232 (select_source_symtab): Likewise.
16233 (enum print_source_lines_flag): Move definition to source.h.
16234 * tui/tui-hooks.c: Add 'source.h' include.
16236 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16238 * source.c (print_source_lines_base): Handle requests to print
16239 reverse line number sequences, and guard against empty lines
16242 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16244 * source.c (print_source_lines_base): Fix skip of '\r' if next
16247 2019-01-06 Tom Tromey <tom@tromey.com>
16249 * c-exp.y (struct c_parse_state) <macro_original_text,
16250 expansion_obstack>: New member.
16251 (macro_original_text, expansion_obstack): Remove globals.
16252 (scan_macro_expansion, scanning_macro_expansion)
16253 (finished_macro_expansion): Update.
16254 (scan_macro_cleanup): Remove.
16255 (yylex, c_parse): Update.
16257 2019-01-06 Tom Tromey <tom@tromey.com>
16259 * c-exp.y (struct c_parse_state) <strings>: New member.
16260 (operator_stoken): Update.
16262 2019-01-06 Tom Tromey <tom@tromey.com>
16264 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16265 (union type_stack_elt) <typelist_val>: Now a pointer to
16267 (type_stack_cleanup): Don't declare.
16268 (push_typelist): Update.
16269 * parse.c (pop_typelist): Return a std::vector.
16270 (push_typelist): Take a std::vector.
16271 (follow_types): Update. Do not free args.
16272 (type_stack_cleanup): Remove.
16273 * c-exp.y (struct c_parse_state): New.
16274 (cpstate): New global.
16275 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16276 (nonempty_typelist): Update.
16277 (func_mod): Create a new vector.
16278 (c_parse): Create a c_parse_state.
16279 (check_parameter_typelist): Do not delete params.
16280 (function_method): Update. Do not delete type_list.
16282 2019-01-06 Tom Tromey <tom@tromey.com>
16285 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16287 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16288 (print_return_value): Likewise.
16290 2019-01-05 Tom Tromey <tom@tromey.com>
16292 * contrib/cleanup_check.py: Remove.
16293 * contrib/gcc-with-excheck: Remove.
16294 * contrib/exsummary.py: Remove.
16295 * contrib/excheck.py: Remove.
16297 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16299 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16300 NULL. Initialize tpprev to NULL instead of assigning it
16301 to NULL on the next statement.
16302 * windows-nat.c (windows_delete_thread): Remove check for
16303 main_thread_id before printing thread exit notifications.
16304 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16305 Remove thread ID check against main_thread_id.
16306 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16307 windows_delete_thread.
16308 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16310 2019-01-04 Tom Tromey <tom@tromey.com>
16312 * compile/compile.c (_initialize_compile): Use upper case for
16313 metasyntactic variables.
16314 * symmisc.c (_initialize_symmisc): Use upper case for
16315 metasyntactic variables.
16316 * psymtab.c (_initialize_psymtab): Use upper case for
16317 metasyntactic variables.
16318 * demangle.c (demangle_command): Use upper case for metasyntactic
16320 (_initialize_demangler): Likewise.
16321 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16324 2019-01-03 Tom Tromey <tom@tromey.com>
16326 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16328 2019-01-03 Tom Tromey <tom@tromey.com>
16330 * python/py-symtab.c (salpy_str): Update.
16331 (struct salpy_sal_object) <symtab>: Now a PyObject.
16332 (salpy_dealloc): Update.
16333 (del_objfile_sal): Use gdbpy_ref.
16335 2019-01-03 Tom Tromey <tom@tromey.com>
16337 * python/py-type.c (convert_field): Use new_reference. Return
16339 (make_fielditem): Return gdbpy_ref.
16340 (typy_fields): Update.
16341 (typy_getitem): Update.
16342 (field_name): Return gdbpy_ref. Use new_reference.
16343 (typy_iterator_iternext): Update.
16345 2019-01-03 Tom Tromey <tom@tromey.com>
16347 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16349 2019-01-03 Tom Tromey <tom@tromey.com>
16351 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16352 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16353 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16354 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16355 (pspy_set_type_printers): Likewise.
16356 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16357 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16358 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16359 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16360 (objfpy_set_type_printers): Likewise.
16362 2019-01-03 Tom Tromey <tom@tromey.com>
16364 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16365 (gdbpy_print_stack): Use gdbpy_err_fetch.
16366 * python/python-internal.h (class gdbpy_err_fetch): New class.
16367 (class gdbpy_enter) <m_error_type, m_error_value,
16368 m_error_traceback>: Remove.
16369 <m_error>: New member.
16370 (gdbpy_exception_to_string): Don't declare.
16371 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16372 * python/py-value.c (convert_value_from_python): Use
16374 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16375 gdbpy_exception_to_string.
16376 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16377 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16380 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16382 * linux-nat.c (delete_lwp_cleanup): Delete.
16383 (struct lwp_deleter): New struct.
16384 (lwp_info_up): New typedef.
16385 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16388 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16390 * linux-fork.c (class scoped_switch_fork_info): New class.
16391 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16393 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16395 * valops.c (find_overload_match): Remove use of null_cleanup, and
16396 calls to do_cleanups.
16398 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16400 * compile/compile-cplus-types.c
16401 (compile_cplus_instance::decl_name): Handle changes to
16403 * cp-support.c (cp_func_name): Update header comment, update
16405 * cp-support.h (cp_func_name): Update return type in declaration.
16406 * valops.c (find_overload_match): Move temp_func local to top
16407 level of function and change its type. Use temp_func to hold and
16408 delete temporary string obtained from cp_func_name.
16410 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16412 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16413 gdb::char_vector, remove cleanup, and update uses of `msg`.
16415 2019-01-03 Jim Wilson <jimw@sifive.com>
16417 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16419 2019-01-02 Tom Tromey <tom@tromey.com>
16421 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16422 (tdesc_parse_xml): Remove cleanups.
16423 * target-descriptions.h (make_cleanup_free_target_description):
16425 (target_desc_deleter): New struct.
16426 (target_desc_up): New typedef.
16427 * target-descriptions.c (target_desc_deleter::operator()): Rename
16428 from free_target_description.
16429 (make_cleanup_free_target_description): Remove.
16431 2019-01-02 Tom Tromey <tom@tromey.com>
16433 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16434 constructor, destructor.
16435 (linespec_parser): Remove typedef.
16436 (~linespec_parser): Rename from linespec_parser_delete.
16437 (linespec_lex_to_end, linespec_complete_label)
16438 (linespec_complete): Update.
16439 (decode_line_full): Remove cleanups.
16440 (decode_line_1): Update.
16442 2019-01-02 Tom Tromey <tom@tromey.com>
16444 * python/python-internal.h (inferior_to_inferior_object): Change
16446 * python/py-exitedevent.c (create_exited_event_object): Update.
16447 * python/py-inferior.c (inferior_to_inferior_object): Return
16449 (python_new_inferior, python_inferior_deleted)
16450 (thread_to_thread_object, delete_thread_object)
16451 (build_inferior_list, gdbpy_selected_inferior): Update.
16452 * python/py-infthread.c (create_thread_object): Update. Also fail
16453 if inferior_to_inferior_object fails.
16455 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16457 * inferior.h (class inferior) <displaced_step_state>: New field.
16458 * infrun.h (struct displaced_step_state): Move here from
16459 infrun.c. Initialize fields, add constructor.
16460 <inf>: Remove field.
16461 <reset>: New method.
16462 * infrun.c (struct displaced_step_inferior_state): Move to
16464 (displaced_step_inferior_states): Remove.
16465 (get_displaced_stepping_state): Adust.
16466 (displaced_step_in_progress_any_inferior): Adjust.
16467 (displaced_step_in_progress_thread): Adjust.
16468 (displaced_step_in_progress): Adjust.
16469 (add_displaced_stepping_state): Remove.
16470 (get_displaced_step_closure_by_addr): Adjust.
16471 (remove_displaced_stepping_state): Remove.
16472 (infrun_inferior_exit): Call displaced_step_state.reset.
16473 (use_displaced_stepping): Don't check for NULL.
16474 (displaced_step_prepare_throw): Call
16475 get_displaced_stepping_state.
16476 (displaced_step_fixup): Don't check for NULL.
16477 (prepare_for_detach): Don't check for NULL.
16479 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16481 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16482 in case of call that did not complete.
16484 2019-01-02 Andrey Utkin <autkin@undo.io>
16486 * symfile.c (find_separate_debug_file): Fix search of debug files for
16489 2019-01-02 Tom Tromey <tom@tromey.com>
16491 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16493 * python/py-frame.c (frapy_older): Remove cast.
16494 (frapy_newer): Likewise.
16495 * python/py-breakpoint.c (local_setattro): Remove cast.
16496 * python/py-arch.c (archpy_name): Remove local variable.
16497 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16499 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16501 * unittests/basic_string_view/element_access/char/empty.cc:
16502 Fix year range in copyright header.
16504 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16506 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16508 <operator==>: Update with for removed field.
16510 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16511 <isa_features>: ...this.
16512 <abi_features>: New field.
16513 (riscv_isa_flen): Update comment.
16514 (riscv_abi_xlen): New declaration.
16515 (riscv_abi_flen): New declaration.
16516 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16518 (riscv_abi_xlen): New function.
16519 (riscv_isa_flen): Update to get answer from isa_features.
16520 (riscv_abi_flen): New function.
16521 (riscv_has_fp_abi): Update to get answer from abi_features.
16522 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16524 (riscv_call_info) <xlen, flen>: Update comment.
16525 (riscv_call_arg_struct): Remove invalid assertions
16526 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16528 (riscv_gdbarch_init): Gather isa features and abi features
16529 separately, ensure both match on the gdbarch when reusing an old
16530 gdbarch. Relax an error check to allow 32-bit abi float to run on
16531 a target with 64-bit float hardware.
16533 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16535 * source.c (search_command_helper): Stop reverse search
16536 when line 1 has been searched.
16538 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16540 * record-full.c (record_full_base_target::close): Rewrite
16541 record_full_core_buf_list free logic.
16543 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16545 * break-catch-syscall.c (print_one_catch_syscall): xfree
16548 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16550 * top.c (print_gdb_version): Update Copyright year in version
16553 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16555 Update copyright year range in all GDB files.
16557 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16559 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16561 For older changes see ChangeLog-2018.
16567 version-control: never