1 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3 * gdbsupport/safe-strerror.c: Supress the unused function warning
6 2019-12-10 Christian Biesinger <cbiesinger@google.com>
8 * config.in: Regenerate.
9 * configure: Regenerate.
10 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
11 safe_strerror instead of strerror.
12 * gdbsupport/common.m4: Don't check for strerror.
13 * gdbsupport/safe-strerror.c: Support both the glibc version
14 of strerror_r and the XSI version.
16 2019-12-10 Tom Tromey <tromey@adacore.com>
18 * ada-typeprint.c (print_choices): Use a single "?".
19 (print_variant_part): Print "?" if the discriminant name
22 2019-12-10 George Barrett <bob@bob131.so>
24 Fix scripted probe breakpoints.
25 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
27 (breakpoint_ops_for_event_location_type)
28 (breakpoint_ops_for_event_location): Add function definitions.
29 (break_command_1, trace_command): Use
30 breakpoint_ops_for_event_location.
31 * breakpoint.h (breakpoint_ops_for_event_location): Add function
33 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
34 breakpoint_ops_for_event_location.
35 * python/py-breakpoint.c (bppy_init): Use
36 breakpoint_ops_for_event_location.
38 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
40 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
41 when ranking an lvalue argument for an rvalue parameter.
43 2019-12-08 Wataru Ashihara <wataash@wataash.com>
45 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
46 template argument for scoped_restore_tmpl from bool to int.
48 2019-12-07 Keith Seitz <keiths@redhat.com>
50 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
51 (build_id_to_debug_bfd): Make static, rewriting to use
52 build_id_to_bfd_suffix.
53 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
54 adding `suffix' parameter. Append SUFFIX to file names
55 when searching for matching files.
56 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
57 (build_id_to_exec_bfd): Likewise.
58 * build-id.h (build_id_to_debug_bfd): Clarify that function
59 searches for BFD of debug info file.
60 (build_id_to_exec_bfd): Declare.
61 * corelow.c: Include build-id.h.
62 (locate_exec_from_corefile_build_id): New function.
63 (core_target_open): If no executable BFD is found,
64 search for a core file BFD using build-id.
66 2019-12-06 Christian Biesinger <cbiesinger@google.com>
68 * bcache.c: Put in namespace gdb.
70 * gdbtypes.c (check_types_worklist): Update.
71 (types_deeply_equal): Update.
72 * macrotab.c (struct macro_table) <bcache>: Update.
73 (new_macro_table): Update.
74 * macrotab.h (struct bcache): Put this forward declaration
76 (new_macro_table): Update.
77 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
79 <macro_cache>: Update.
80 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
82 2019-12-06 Tom de Vries <tdevries@suse.de>
85 * block.c (best_symbol, better_symbol): New function.
86 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
89 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
91 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
92 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
93 for ranking see-through reference cases.
95 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96 * stack.c (faas_command): Check a command is provided.
97 * thread.c (taas_command, tfaas_command): Likewise.
99 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
100 * inferior.c (prune_inferiors): Only call delete_inferior,
101 Do not modify the inferior list.
103 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
105 * c-exp.y: Update calls to lookup_typename,
106 lookup_signed_typename and lookup_unsigned_typename.
107 * c-lang.c (evaluate_subexp_c): Likewise.
108 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
110 * eval.c (binop_promote): Likewise.
111 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
112 (lookup_unsigned_typename): Likewise.
113 (lookup_signed_typename): Likewise.
114 * gdbtypes.h (lookup_unsigned_typename): Likewise.
115 (lookup_signed_typename): Likewise.
116 (lookup_typename): Likewise.
117 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
118 lookup_typename, lookup_signed_typename,
119 lookup_unsigned_typename.
120 * m2-exp.y: Likewise.
121 * printcmd.c (printf_wide_c_string): Likewise.
122 (ui_printf): Likewise.
123 * python/py-type.c (typy_lookup_typename): Likewise.
124 * python/py-xmethods.c (python_xmethod_worker::invoke):
126 * rust-exp.y: Likewise.
128 2019-12-04 Christian Biesinger <cbiesinger@google.com>
130 * configure.nat (obsd64): Add missing files x86-nat.o and
133 2019-12-04 Tom Tromey <tom@tromey.com>
135 * valprint.c (val_print_string): Use metadata_style.
136 * go-valprint.c (print_go_string): Use metadata style.
137 * p-valprint.c (pascal_object_print_static_field): Use metadata
139 * cp-valprint.c (cp_print_static_field): Use metadata style.
141 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
142 Chris January <chris.january@arm.com>
144 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
146 (typebase): New patterns for complex, single/double precision, and
147 single/double complex.
148 (f77_keywords): Change token for complex keyword, and add single,
149 double, and precision keywords.
151 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
153 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
156 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
158 * regcache.c (cooked_read_test): Initialize thread list of
161 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
163 * aarch64-linux-tdep.c: Remove includes.
165 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
167 * aarch64-tdep.c: Remove includes.
169 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
171 * filtered-iterator.h (filtered_iterator) <operator==,
172 operator!=>: Compare wrapped iterators, not wrapped pointers.
173 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
174 unittests/filtered_iterator-selftests.c.
175 * unittests/filtered_iterator-selftests.c: New file.
177 2019-12-04 Tom Tromey <tromey@adacore.com>
179 * gdbtypes.c (create_range_type): Inherit endianity
182 2019-12-04 Tom Tromey <tromey@adacore.com>
184 * ada-lang.c (decode_constrained_packed_array)
185 (ada_value_assign, value_assign_to_component): Update.
186 * dwarf2loc.c (rw_pieced_value, access_memory)
187 (dwarf2_compile_expr_to_ax): Update.
188 * dwarf2read.c (dwarf2_add_field): Update.
189 * eval.c (evaluate_subexp_standard): Update.
190 * gdbarch.c, gdbarch.h: Rebuild.
191 * gdbarch.sh (bits_big_endian): Remove.
192 * gdbtypes.h (union field_location): Update comment.
193 * target-descriptions.c (make_gdb_type): Update.
194 * valarith.c (value_bit_index): Update.
195 * value.c (struct value) <bitpos>: Update comment.
196 (unpack_bits_as_long, modify_field): Update.
197 * value.h (value_bitpos): Update comment.
199 2019-12-04 Tom Tromey <tromey@adacore.com>
201 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
204 2019-12-04 Tom Tromey <tromey@adacore.com>
206 * dwarf2read.c (dwarf2_init_float_type)
207 (dwarf2_init_complex_target_type): Add byte_order parameter.
208 (read_base_type): Compute byte order earlier.
209 * gdbtypes.c (init_float_type): Add byte_order parameter.
210 * gdbtypes.h (init_float_type): Add byte_order parameter.
212 2019-12-04 Tom Tromey <tromey@adacore.com>
214 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
216 2019-12-04 Tom Tromey <tromey@adacore.com>
218 * dwarf2read.c (process_structure_scope): Initialize
221 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
223 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
224 add it into the search spec.
225 (parse_max_results_option): New function.
226 (mi_info_functions_or_variables): Parse -max-results flag and pass
227 it to mi_symbol_info.
228 (mi_cmd_symbol_info_modules): Likewise.
229 (mi_cmd_symbol_info_types): Likewise.
230 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
231 return type to bool, change result container into a set, and don't
232 add new results if we have enough already.
233 (global_symbol_searcher::add_matching_msymbols): Change return
234 type to bool, and don't add new results if we have enough already.
235 (sort_search_symbols_remove_dups): Delete.
236 (global_symbol_searcher::search): Early exit from search loop when
237 we have enough results. Use a std::set to collect the results
238 from calling add_matching_symbols.
239 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
241 (global_symbol_searcher) <m_max_search_results>: New member
243 (global_symbol_searcher) <add_matching_symbols>: Update header
244 comment and change return type to bool.
245 (global_symbol_searcher) <add_matching_msymbols>: Update header
246 comment and change return type to bool.
248 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
250 * symtab.c (symbol_search::compare_search_syms): Update header
252 (global_symbol_searcher::is_suitable_msymbol): New function.
253 (global_symbol_searcher::expand_symtabs): New function.
254 (global_symbol_searcher::add_matching_symbols): New function.
255 (global_symbol_searcher::add_matching_msymbols): New function.
256 (global_symbol_searcher::search): Move most of the content
257 into the new functions above, and call them as needed.
258 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
260 (global_symbol_searcher) <add_matching_symbols>: New member
262 (global_symbol_searcher) <add_matching_msymbols>: New member
264 (global_symbol_searcher) <is_suitable_msymbol>: New member
267 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
269 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
270 -symbol-info-module-variables entries.
271 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
272 (mi_cmd_symbol_info_module_variables): Declare.
273 * mi/mi-symbol-cmds.c
274 (module_symbol_search_iterator): New typedef.
275 (output_module_symbols_in_single_module_and_file): New function.
276 (output_module_symbols_in_single_module): New function.
277 (mi_info_module_functions_or_variables): New function.
278 (mi_cmd_symbol_info_module_functions): New function.
279 (mi_cmd_symbol_info_module_variables): New function.
280 * NEWS: Mention new MI command.
282 2019-12-03 Christian Biesinger <cbiesinger@google.com>
284 * bcache.c (hash): Remove.
285 (hash_continue): Remove.
286 * bcache.h (hash): Remove.
287 (hash_continue): Remove.
288 (struct bcache) <ctor>: Update.
289 * psymtab.c (psymbol_hash): Update.
290 * stabsread.c (hashname): Update.
291 * utils.h (fast_hash): Add an argument for a start value,
294 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
295 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
296 (destroy_block_symbol_cache): New function.
297 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
298 (resize_symbol_cache): Likewise.
300 2019-12-02 Tom Tromey <tom@tromey.com>
302 * unittests/tui-selftests.c (run_tests): Make conditional.
303 (_initialize_tui_selftest): Make conditional.
305 2019-12-02 Christian Biesinger <cbiesinger@google.com>
307 * aix-thread.c (debug_aix_thread): Change type to bool.
309 2019-12-02 Luis Machado <luis.machado@linaro.org>
311 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
313 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
315 * dwarf2read.c (read_tag_string_type): Read the fields required to
316 make a dynamic string, and possibly create a dynamic range for the
318 (attr_to_dynamic_prop): Setup is_reference based on the type of
319 attribute being processed.
320 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
321 (resolve_dynamic_array): Rename to...
322 (resolve_dynamic_array_or_string): ...this, update header comment,
323 and accept TYPE_CODE_STRING.
324 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
326 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
328 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
329 of its implementation from...
330 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
333 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
335 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
336 create a range with stride where appropriate.
337 * f-valprint.c: Include 'gdbarch.h'.
338 (f77_print_array_1): Take the stride into account when walking the
339 array. Also convert the stride into addressable units.
340 * gdbtypes.c (create_range_type): Initialise the stride to
342 (create_range_type_with_stride): New function, initialise the
343 range as normal, and then setup the stride.
344 (has_static_range): Include the stride here. Also change the
346 (create_array_type_with_stride): Consider the range stride if the
347 array isn't given its own stride.
348 (resolve_dynamic_range): Resolve the stride if needed.
349 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
350 (struct range_bounds) <flag_is_byte_stride>: New member variable.
351 (TYPE_BIT_STRIDE): Define.
352 (TYPE_ARRAY_BIT_STRIDE): Define.
353 (create_range_type_with_stride): Declare.
354 * valarith.c (value_subscripted_rvalue): Take range stride into
355 account when walking the array.
357 2019-12-01 Tom Tromey <tom@tromey.com>
359 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
362 2019-12-01 Tom Tromey <tom@tromey.com>
364 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
366 * unittests/tui-selftests.c: New file.
367 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
369 2019-12-01 Tom Tromey <tom@tromey.com>
371 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
373 2019-12-01 Tom Tromey <tom@tromey.com>
375 * NEWS: Document new settings.
376 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
377 * tui/tui-win.c (_initialize_tui_win): Add border style
379 * tui/tui-io.h (tui_apply_style): Declare.
380 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
382 (apply_ansi_escape, tui_set_reverse_mode): Update.
383 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
384 Add "skip_intensity" parameter.
385 <changed>: New member.
386 <do_set_value>: Declare.
387 (tui_border_style, tui_active_border_style): Declare.
388 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
390 (cli_style_option): Initialize "changed".
391 (cli_style_option::do_set_value): New function.
392 (cli_style_option::add_setshow_commands): Add "skip_intensity"
394 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
395 (_initialize_cli_style): Update. Create TUI border style
398 2019-12-01 Tom Tromey <tom@tromey.com>
400 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
402 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
404 * tui/tui-win.h (compact_source): Declare.
405 * tui/tui-win.c (compact_source): New global.
406 (tui_set_compact_source, tui_show_compact_source): New functions.
407 (_initialize_tui_win): Add "compact-source" setting.
408 * tui/tui-source.c (tui_source_window::set_contents): Handle
409 compact_source setting.
410 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
411 * NEWS: Document new setting.
413 2019-11-30 Tom Tromey <tom@tromey.com>
415 * dwarf2read.c (dwarf2_add_field): Include field offset when
416 computing variant part length.
418 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
419 * NEWS: Mention define-prefix. Tell that command names can now
420 contain a . character.
422 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
424 * command.h (valid_cmd_char_p): Declare.
425 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
426 the check of valid command char.
427 (find_command_name_length, valid_user_defined_cmd_name_p): Use
429 * cli/cli-script.c (validate_comname): Likewise.
430 * completer.c (gdb_completer_command_word_break_characters):
431 Do not remove . from the word break char, update comments.
432 (complete_line_internal_1): Use valid_cmd_char_p.
433 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
434 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
436 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
438 * cli/cli-script.c (do_define_command): Ensure a redefined
439 prefix command is kept as a prefix command.
440 (define_prefix_command): New function.
441 (show_user_1): Report user defined prefixes.
442 (_initialize_cli_script): Create the new 'define-prefix' command.
443 Add completers for 'define' and 'document'.
444 * top.c (execute_command): If command is a user-defined prefix only
445 command, report the list of commands for this prefix command.
447 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
449 * valops.c (find_oload_champ): Improve debug output.
451 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
453 * valops.c (find_oload_champ): Print part of debug messages
454 before the badness vector is std::move'd.
456 2019-11-28 Tom Tromey <tom@tromey.com>
458 * value.c (creal_internal_fn): Fix comment.
460 2019-11-28 Tom Tromey <tom@tromey.com>
462 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
463 flag_bound_evaluated>: Now unsigned.
465 2019-11-28 Tom Tromey <tom@tromey.com>
467 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
470 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
472 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
474 * jit.c (jit_unregister_code): Add debug print to match
477 2019-11-27 Christian Biesinger <cbiesinger@google.com>
479 * NEWS: Mention the new multithreaded symbol loading.
481 2019-11-27 Christian Biesinger <cbiesinger@google.com>
483 * maint.c (n_worker_threads): Default to 0.
484 (worker_threads_disabled): New function.
485 * maint.h (worker_threads_disabled): New function.
486 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
487 here if worker_threads_disabled () is true.
488 (minimal_symbol_reader::install): Skip all threading if
489 worker_threads_disabled () is true.
491 2019-11-27 Christian Biesinger <cbiesinger@google.com>
493 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
494 hash code if possible.
495 (add_minsym_to_demangled_hash_table): Likewise.
496 (minimal_symbol_reader::install): Compute the hash codes for msymbol
497 on the background thread.
498 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
501 2019-11-27 Christian Biesinger <cbiesinger@google.com>
503 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
504 of the mangled name on the background thread.
505 * symtab.c (symbol_set_names): Allow passing in the hash of the
507 * symtab.h (symbol_set_names): Likewise.
509 2019-11-27 Kevin Buettner <kevinb@redhat.com>
511 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
512 physnames are computed for inherited DIEs.
514 2019-11-27 Tom Tromey <tromey@adacore.com>
516 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
518 * cp-support.c: Remove unnecessary backslashes.
520 2019-11-27 Christian Biesinger <cbiesinger@google.com>
522 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
523 with sym->set_linkage_name.
524 * coffread.c (coff_read_enum_type): Likewise.
525 * mdebugread.c (parse_symbol): Likewise.
526 * stabsread.c (patch_block_stabs): Likewise.
527 (define_symbol): Likewise.
528 (read_enum_type): Likewise.
529 (common_block_end): Likewise.
530 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
532 (SYMBOL_SET_LINKAGE_NAME): Remove.
533 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
534 with sym->set_linkage_name.
536 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
538 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
539 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
540 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
541 * NEWS: Mention new MI command.
543 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
545 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
546 '-symbol-info-types', and '-symbol-info-variables'.
547 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
548 (mi_cmd_symbol_info_types): Declare.
549 (mi_cmd_symbol_info_variables): Declare.
550 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
551 (output_debug_symbol): New function.
552 (output_nondebug_symbol): New function.
553 (mi_symbol_info): New function.
554 (mi_info_functions_or_variables): New function.
555 (mi_cmd_symbol_info_functions): New function.
556 (mi_cmd_symbol_info_types): New function.
557 (mi_cmd_symbol_info_variables): New function.
558 * NEWS: Mention new commands.
560 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
562 * symtab.c (symbol_to_info_string): New function, most content
563 moved from print_symbol_info, but updated to return a std::string.
564 (print_symbol_info): Update to use symbol_to_info_string and print
566 * symtab.h (symbol_to_info_string): Declare new function.
568 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
570 * python/python.c (gdbpy_rbreak): Convert to using
571 global_symbol_searcher.
572 * symtab.c (file_matches): Convert return type to bool, change
573 file list to std::vector, update header comment.
574 (search_symbols): Rename to...
575 (global_symbol_searcher::search): ...this and update now its
576 a member function of global_symbol_searcher. Take account of the
577 changes to file_matches.
578 (symtab_symbol_info): Convert to using global_symbol_searcher.
579 (rbreak_command): Likewise.
580 (search_module_symbols): Likewise.
581 * symtab.h (enum symbol_search): Update comment.
582 (search_symbols): Remove declaration.
583 (class global_symbol_searcher): New class.
585 2019-11-26 Tom Tromey <tromey@adacore.com>
587 * cp-support.c (_initialize_cp_support): Conditionally initialize
588 gdb_demangle_attempt_core_dump.
590 2019-11-26 Tom Tromey <tom@tromey.com>
592 * python/py-function.c (fnpy_init): Update.
593 * value.h (add_internal_function): Adjust declaration.
594 * value.c (function_destroyer): Remove.
595 (do_add_internal_function): Don't set destroyer or copy name.
596 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
598 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
599 (cmdpy_init): Set name_allocated.
600 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
602 (~cmd_list_element): Free "name" if needed.
604 2019-11-26 Tom Tromey <tom@tromey.com>
606 * value.h (add_internal_function): Add new overload. Move
607 documentation from value.h.
608 * value.c (do_add_internal_function): New function.
609 (add_internal_function): Use it. Add new overload.
610 (function_destroyer): Don't free doc.
611 * python/py-function.c (fnpy_init): Update.
613 2019-11-26 Tom Tromey <tom@tromey.com>
615 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
616 (cmdpy_init): Set "doc_allocated".
618 2019-11-26 Tom Tromey <tom@tromey.com>
620 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
621 name of worker thread.
622 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
624 * configure, config.in: Rebuild.
626 2019-11-26 Tom Tromey <tom@tromey.com>
628 * python/python.c (class gdbpy_gil): New.
629 (struct gdbpy_event): Add constructor, destructor, operator().
630 (gdbpy_post_event): Use run_on_main_thread.
631 (gdbpy_initialize_events): Remove.
632 (do_start_initialization): Update.
634 2019-11-26 Tom Tromey <tom@tromey.com>
637 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
638 commands. Call update_thread_pool_size.
639 (update_thread_pool_size, maintenance_set_worker_threads): New
641 (n_worker_threads): New global.
643 2019-11-26 Christian Biesinger <cbiesinger@google.com>
644 Tom Tromey <tom@tromey.com>
646 * minsyms.c (minimal_symbol_reader::install): Use
648 * gdbsupport/parallel-for.h: New file.
649 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
651 2019-11-26 Christian Biesinger <cbiesinger@google.com>
652 Tom Tromey <tom@tromey.com>
654 * gdbsupport/thread-pool.h: New file.
655 * gdbsupport/thread-pool.c: New file.
656 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
657 (HFILES_NO_SRCDIR): Add thread-pool.h.
659 2019-11-26 Tom Tromey <tom@tromey.com>
661 * event-top.h (thread_local_segv_handler): Declare.
662 * event-top.c (thread_local_segv_handler): New global.
663 (install_handle_sigsegv, handle_sigsegv): New functions.
664 (async_init_signals): Install SIGSEGV handler.
665 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
667 (report_failed_demangle): New function.
668 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
669 handler-setting code, instead use segv_handler. Run warning code
672 2019-11-26 Tom Tromey <tom@tromey.com>
674 * run-on-main-thread.c: New file.
675 * run-on-main-thread.h: New file.
676 * unittests/main-thread-selftests.c: New file.
677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
678 main-thread-selftests.c.
679 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
680 (COMMON_SFILES): Add run-on-main-thread.c.
682 2019-11-26 Tom Tromey <tom@tromey.com>
684 * main.c (setup_alternate_signal_stack): Remove.
685 (captured_main_1): Use gdb::alternate_signal_stack.
686 * gdbsupport/alt-stack.h: New file.
688 2019-11-26 Tom Tromey <tom@tromey.com>
690 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
692 (save_original_signals_state, restore_original_signals_state): Use
694 * linux-nat.c (block_child_signals, restore_child_signals_mask)
695 (_initialize_linux_nat): Use gdb_sigmask.
696 * guile/guile.c (_initialize_guile): Use block_signals.
697 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
698 * gdbsupport/gdb-sigmask.h: New file.
699 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
700 * cp-support.c (gdb_demangle): Use gdb_sigmask.
701 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
703 * configure, config.in: Rebuild.
704 * gdbsupport/block-signals.h: New file.
706 2019-11-26 Tom Tromey <tom@tromey.com>
708 * acinclude.m4: Include ax_pthread.m4.
709 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
710 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
711 (CLIBS): Use PTHREAD_LIBS.
712 (aclocal_m4_deps): Add ax_pthread.m4.
713 * config.in, configure: Rebuild.
714 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
716 2019-11-26 Tom Tromey <tom@tromey.com>
718 * symtab.h (struct minimal_symbol) <name_set>: New member.
719 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
720 Don't call symbol_set_names.
721 (minimal_symbol_reader::install): Call symbol_set_names.
723 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
726 restore_active_ext_lang, as GIL is needed for (indirectly)
727 called PyOS_InterruptOccurred.
729 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
731 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
734 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
736 * remote-sim.c (simulator_command): Make static, remove
739 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
741 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
743 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
744 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
746 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
748 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
750 * unittests/basic_string_view/element_access/char/1.cc (test01):
753 * unittests/basic_string_view/element_access/char/empty.cc (main):
755 * unittests/basic_string_view/element_access/char/front_back.cc
758 * unittests/basic_string_view/inserters/char/2.cc (test05):
761 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
764 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
767 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
769 * unittests/basic_string_view/operations/compare/char/1.cc
772 * unittests/basic_string_view/operations/compare/char/13650.cc
774 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
777 * unittests/basic_string_view/operations/data/char/1.cc (test01):
780 * unittests/basic_string_view/operations/find/char/1.cc (test01):
783 * unittests/basic_string_view/operations/find/char/2.cc (test02):
786 * unittests/basic_string_view/operations/find/char/3.cc (test03):
789 * unittests/basic_string_view/operations/find/char/4.cc (main):
791 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
794 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
797 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
800 * unittests/basic_string_view/operations/substr/char/1.cc
803 * unittests/basic_string_view/operators/char/2.cc (main):
805 * unittests/optional/assignment/1.cc (test): Likewise.
806 * unittests/optional/assignment/2.cc (test): Likewise.
807 * unittests/optional/assignment/3.cc (test): Likewise.
808 * unittests/optional/assignment/4.cc (test): Likewise.
809 * unittests/optional/assignment/5.cc (test): Likewise.
810 * unittests/optional/assignment/6.cc (test): Likewise.
811 * unittests/optional/assignment/7.cc (test): Likewise.
812 * unittests/optional/cons/copy.cc (test): Likewise.
813 * unittests/optional/cons/default.cc (test): Likewise.
814 * unittests/optional/cons/move.cc (test): Likewise.
815 * unittests/optional/cons/value.cc (test): Likewise.
816 * unittests/optional/in_place.cc (test): Likewise.
817 * unittests/optional/observers/1.cc (test): Likewise.
818 * unittests/optional/observers/2.cc (test): Likewise.
820 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
822 * tui-win.h (tui_set_var_cmd): Remove.
823 * tui-win.c (tui_set_var_cmd): Make static.
825 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
827 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
828 rbreak_command_wrapper): Remove.
829 * symtab.c (rbreak_command_wrapper): Remove.
831 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
833 * inferior.h (info_terminal_command): Remove declaration.
834 * inflow.c (info_terminal_command): Make static.
836 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
838 * inferior.c (exit_inferior_silent): Remove.
840 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
842 * dictionary.c (dict_empty, mdict_empty): Remove.
843 * dictionary.c (mdict_empty): Remove.
845 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
847 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
848 (arc_insn_get_memory_offset): Likewise.
849 (arc_insn_dump): Likewise.
850 * cp-support.c (test_cp_symbol_name_matches): Likewise.
851 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
852 * dictionary.c (dict_iterator_next): Likewise.
853 (dict_iter_match_first): Likewise.
854 (dict_iter_match_next): Likewise.
855 * f-lang.c (evaluate_subexp_f): Likewise.
856 * hppa-tdep.c (hppa_read_pc): Likewise.
857 * i386-tdep.c (i386_floatformat_for_type): Likewise.
858 * parse.c (write_exp_elt_msym): Likewise.
859 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
860 * remote.c (remote_packet_size): Likewise.
861 (remote_notif_stop_parse): Likewise.
862 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
863 * s12z-tdep.c (s12z_disassemble_info): Likewise.
864 * source.c (prepare_path_for_appending): Likewise.
865 * sparc64-linux-tdep.c
866 (sparc64_linux_handle_segmentation_fault); Likewise.
867 * stack.c (frame_selection_by_function_completer): Likewise.
869 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
871 * completer.c (set_gdb_completion_word_break_characters):
874 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
876 * dwarf-index-write.c: Include dwarf-index-write.h.
877 * mi/mi-interp.c: Include mi/mi-interp.h.
879 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
881 * aarch32-tdep.c: Include aarch32-tdep.h.
882 * aarch32-tdep.h: Forward-declare struct target_desc.
884 2019-11-26 Christian Biesinger <cbiesinger@google.com>
886 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
888 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
889 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
891 2019-11-25 Tom de Vries <tdevries@suse.de>
893 * contrib/words.sh: Add -c option.
895 2019-11-25 Christian Biesinger <cbiesinger@google.com>
897 * solib.c (solib_find_1): Change int to bool.
898 (exec_file_find): Change int to bool.
899 (solib_find): Change int to bool.
900 (solib_read_symbols): Change int to bool.
901 (solib_used): Change int to bool.
902 (solib_add): Change int to bool.
903 (info_sharedlibrary_command): Change int to bool.
904 (solib_contains_address_p): Change int to bool.
905 (solib_keep_data_in_core): Change int to bool.
906 (in_solib_dynsym_resolve_code): Change int to bool.
907 (reload_shared_libraries_1): Change int to bool.
908 (gdb_sysroot_changed): Change int to bool.
909 * solib.h (solib_read_symbols): Change int to bool.
910 (solib_contains_address_p): Change int to bool.
911 (solib_keep_data_in_core): Change int to bool.
912 (in_solib_dynsym_resolve_code): Change int to bool.
913 (libpthread_name_p): Change int to bool.
915 2019-11-25 Luis Machado <luis.machado@linaro.org>
917 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
918 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
919 (remote_packet_max_chars): New static global.
920 (show_remote_packet_max_chars): New function.
921 (remote_target::putpkt_binary): Adjust to use new
922 remote_packet_max_chars option.
923 (remote_target::getpkt_or_notif_sane_1): Likewise.
924 (_initialize_remote): Register new remote-packet-max-chars option.
926 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
928 * m68k-linux-nat.c: Include gdbarch.h.
930 2019-11-24 Tom Tromey <tom@tromey.com>
932 * symfile.c (read_symbols): Update.
933 * psymtab.c (require_partial_symbols): Change type of "verbose" to
935 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
936 (psym_lookup_symbol, psym_find_last_source_symtab)
937 (psym_forget_cached_source_info, psym_print_stats)
938 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
939 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
940 (psym_map_matching_symbols, psym_expand_symtabs_matching)
941 (psym_find_compunit_symtab_by_address)
942 (maintenance_print_psymbols, maintenance_info_psymtabs)
943 (maintenance_check_psymtabs): Update.
944 * psymtab.h (require_partial_symbols): Change type of "verbose" to
947 2019-11-22 Tom Tromey <tom@tromey.com>
949 * observable.h: Update comments.
951 2019-11-22 Tom Tromey <tromey@adacore.com>
953 * ada-tasks.c (ada_task_is_alive): Make parameter const.
954 (print_ada_task_info): Don't try to fetch thread id if task is not
957 2019-11-22 Christian Biesinger <cbiesinger@google.com>
960 * ada-lang.c (sort_choices): Update.
961 (ada_print_symbol_signature): Update.
962 (resolve_subexp): Update.
963 (ada_parse_renaming): Update.
964 (ada_read_renaming_var_value): Update.
965 (lesseq_defined_than): Update.
966 (remove_extra_symbols): Update.
967 (remove_irrelevant_renamings): Update.
968 (ada_add_block_symbols): Update.
969 (ada_collect_symbol_completion_matches): Update.
970 (ada_is_renaming_symbol): Update.
971 (aggregate_assign_from_choices): Update.
972 (ada_evaluate_subexp): Update.
973 (ada_has_this_exception_support): Update.
974 (ada_is_non_standard_exception_sym): Update.
975 (ada_add_exceptions_from_frame): Update.
976 (ada_add_global_exceptions): Update.
977 (ada_print_subexp): Update.
978 * ax-gdb.c (gen_var_ref): Update.
979 (gen_maybe_namespace_elt): Update.
980 (gen_expr_for_cast): Update.
983 * blockframe.c (find_pc_partial_function): Update.
984 * breakpoint.c (print_breakpoint_location): Update.
985 (update_static_tracepoint): Update.
986 * btrace.c (ftrace_print_function_name): Update.
987 (ftrace_function_switched): Update.
988 * buildsym.c (find_symbol_in_list): Update.
990 * c-typeprint.c (c_print_typedef): Update.
991 (c_type_print_template_args): Update.
992 * cli/cli-cmds.c (edit_command): Update.
993 (list_command): Update.
994 (print_sal_location): Update.
995 * coffread.c (patch_opaque_types): Update.
996 (process_coff_symbol): Update.
997 (coff_read_enum_type): Update.
998 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
999 (convert_one_symbol): Update.
1000 (hash_symname): Update.
1001 (eq_symname): Update.
1002 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1003 * compile/compile-cplus-types.c (debug_print_scope): Update.
1004 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1005 * compile/compile-object-load.c (get_out_value_type): Update.
1006 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1007 (search_symbol_list): Update.
1008 (cp_lookup_symbol_imports_or_template): Update.
1009 * cp-support.c (overload_list_add_symbol): Update.
1010 * ctfread.c (psymtab_to_symtab): Update.
1011 * dbxread.c (cp_set_block_scope): Update.
1012 * dictionary.c (iter_match_first_hashed): Update.
1013 (iter_match_next_hashed): Update.
1014 (insert_symbol_hashed): Update.
1015 (iter_match_next_linear): Update.
1016 * dictionary.h: Update.
1017 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1018 (locexpr_describe_location_piece): Update.
1019 (locexpr_describe_location_1): Update.
1020 (locexpr_generate_c_location): Update.
1021 (loclist_describe_location): Update.
1022 (loclist_generate_c_location): Update.
1023 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1024 (read_func_scope): Update.
1025 (process_enumeration_scope): Update.
1026 (new_symbol): Update.
1027 (dwarf2_const_value): Update.
1028 (dwarf2_symbol_mark_computed): Update.
1029 * eval.c (evaluate_funcall): Update.
1030 (evaluate_subexp_standard): Update.
1031 * expprint.c (print_subexp_standard): Update.
1032 (dump_subexp_body_standard): Update.
1033 * f-valprint.c (info_common_command_for_block): Update.
1034 * findvar.c (get_hosting_frame): Update.
1035 (default_read_var_value): Update.
1036 * go-lang.c (go_symbol_package_name): Update.
1037 * guile/scm-block.c (bkscm_print_block_smob): Update.
1038 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1039 (gdbscm_symbol_name): Update.
1040 (gdbscm_symbol_linkage_name): Update.
1041 (gdbscm_symbol_print_name): Update.
1042 * infcall.c (get_function_name): Update.
1043 * infcmd.c (jump_command): Update.
1044 (finish_command): Update.
1045 * infrun.c (insert_exception_resume_breakpoint): Update.
1046 * linespec.c (canonicalize_linespec): Update.
1047 (create_sals_line_offset): Update.
1048 (convert_linespec_to_sals): Update.
1049 (complete_label): Update.
1050 (find_label_symbols_in_block): Update.
1051 * m2-typeprint.c (m2_print_typedef): Update.
1052 * mdebugread.c (mdebug_reg_to_regnum): Update.
1053 (parse_symbol): Update.
1054 (mylookup_symbol): Update.
1055 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1056 (list_args_or_locals): Update.
1057 * objc-lang.c (compare_selectors): Update.
1058 (info_selectors_command): Update.
1059 (compare_classes): Update.
1060 (info_classes_command): Update.
1061 (find_imps): Update.
1062 * p-typeprint.c (pascal_print_typedef): Update.
1063 * printcmd.c (build_address_symbolic): Update.
1064 (info_address_command): Update.
1065 (print_variable_and_value): Update.
1066 * python/py-framefilter.c (extract_sym): Update.
1067 (py_print_single_arg): Update.
1068 * python/py-symbol.c (sympy_str): Update.
1069 (sympy_get_name): Update.
1070 (sympy_get_linkage_name): Update.
1071 * python/python.c (gdbpy_rbreak): Update.
1072 * record-btrace.c (btrace_get_bfun_name): Update.
1073 (btrace_call_history): Update.
1074 * rust-lang.c (rust_print_typedef): Update.
1075 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1076 * stabsread.c (stab_reg_to_regnum): Update.
1077 (define_symbol): Update.
1078 (read_enum_type): Update.
1079 (common_block_end): Update.
1080 (cleanup_undefined_types_1): Update.
1081 (scan_file_globals): Update.
1082 * stack.c (print_frame_arg): Update.
1083 (print_frame_args): Update.
1084 (find_frame_funname): Update.
1085 (info_frame_command_core): Update.
1086 (iterate_over_block_locals): Update.
1087 (print_block_frame_labels): Update.
1088 (do_print_variable_and_value): Update.
1089 (iterate_over_block_arg_vars): Update.
1090 (return_command): Update.
1091 * symmisc.c (dump_symtab_1): Update.
1092 (print_symbol): Update.
1093 * symtab.c (eq_symbol_entry): Update.
1094 (symbol_cache_dump): Update.
1095 (lookup_language_this): Update.
1096 (find_pc_sect_line): Update.
1097 (skip_prologue_sal): Update.
1098 (symbol_search::compare_search_syms): Update.
1099 (treg_matches_sym_type_name): Update.
1100 (search_symbols): Update.
1101 (print_symbol_info): Update.
1102 (rbreak_command): Update.
1103 (completion_list_add_symbol): Update.
1104 (find_gnu_ifunc): Update.
1105 (get_symbol_address): Update.
1106 (search_module_symbols): Update.
1107 (info_module_subcommand): Update.
1108 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1109 (SYMBOL_LINKAGE_NAME): Remove.
1110 (SYMBOL_DEMANGLED_NAME): Remove.
1111 (SYMBOL_PRINT_NAME): Remove.
1112 (SYMBOL_SEARCH_NAME): Remove.
1113 * tracepoint.c (set_traceframe_context): Update.
1114 (validate_actionline): Update.
1115 (collection_list::collect_symbol): Update.
1116 (encode_actions_1): Update.
1117 (info_scope_command): Update.
1118 (print_one_static_tracepoint_marker): Update.
1119 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1120 * valops.c (address_of_variable): Update.
1121 (find_overload_match): Update.
1122 (find_oload_champ): Update.
1124 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1126 * ada-lang.c (ada_lookup_simple_minsym): Update.
1127 (ada_collect_symbol_completion_matches): Update.
1128 * ada-tasks.c (read_atcb): Update.
1129 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1130 (amd64_windows_skip_trampoline_code): Update.
1131 * arm-tdep.c (skip_prologue_function): Update.
1132 (arm_skip_stack_protector): Update.
1133 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1134 (arm_wince_skip_main_prologue): Update.
1135 * ax-gdb.c (gen_expr): Update.
1136 * block.c (call_site_for_pc): Update.
1137 * blockframe.c (find_pc_partial_function): Update.
1138 * breakpoint.c (set_breakpoint_location_function): Update.
1139 * btrace.c (ftrace_print_function_name): Update.
1140 (ftrace_function_switched): Update.
1141 * c-valprint.c (print_unpacked_pointer): Update.
1142 * coffread.c (coff_symfile_read): Update.
1143 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1144 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1145 * dwarf-index-write.c (write_psymbols): Update.
1146 * dwarf2loc.c (call_site_to_target_addr): Update.
1147 (func_verify_no_selftailcall): Update.
1148 (tailcall_dump): Update.
1149 (call_site_find_chain_1): Update.
1150 (dwarf_expr_reg_to_entry_parameter): Update.
1151 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1152 * eval.c (evaluate_funcall): Update.
1153 (evaluate_subexp_standard): Update.
1154 (evaluate_subexp_for_sizeof): Update.
1155 * expprint.c (print_subexp_standard): Update.
1156 (dump_subexp_body_standard): Update.
1157 * frame.c (get_prev_frame_always_1): Update.
1158 * frv-tdep.c (frv_skip_main_prologue): Update.
1159 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1160 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1161 (gnuv3_get_typename_from_type_info): Update.
1162 (gnuv3_skip_trampoline): Update.
1163 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1164 * i386-tdep.c (i386_skip_main_prologue): Update.
1165 (i386_pe_skip_trampoline_code): Update.
1166 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1167 * infcall.c (get_function_name): Update.
1168 * linespec.c (minsym_found): Update.
1169 * linux-fork.c (info_checkpoints_command): Update.
1170 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1171 (m32c_m16c_pointer_to_address): Update.
1172 * maint.c (maintenance_translate_address): Update.
1173 * minsyms.c (add_minsym_to_hash_table): Update.
1174 (add_minsym_to_demangled_hash_table): Update.
1175 (lookup_minimal_symbol_mangled): Update.
1176 (lookup_minimal_symbol_demangled): Update.
1177 (lookup_minimal_symbol_linkage): Update.
1178 (lookup_minimal_symbol_text): Update.
1179 (lookup_minimal_symbol_by_pc_name): Update.
1180 (minimal_symbol_is_less_than): Update.
1181 (compact_minimal_symbols): Update.
1182 (build_minimal_symbol_hash_tables): Update.
1183 (find_solib_trampoline_target): Update.
1184 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1185 (mips_skip_pic_trampoline_code): Update.
1186 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1187 * objc-lang.c (info_selectors_command): Update.
1188 (info_classes_command): Update.
1189 (find_methods): Update.
1190 (find_imps): Update.
1191 * p-valprint.c (pascal_val_print): Update.
1192 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1193 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1194 * printcmd.c (build_address_symbolic): Update.
1195 (info_symbol_command): Update.
1196 * psymtab.c (psymbol_name_matches): Update.
1197 (match_partial_symbol): Update.
1198 (lookup_partial_symbol): Update.
1199 (print_partial_symbols): Update.
1200 (sort_pst_symbols): Update.
1201 (maintenance_check_psymtabs): Update.
1202 * python/py-framefilter.c (py_print_frame): Update.
1203 * python/python.c (gdbpy_rbreak): Update.
1204 * record-btrace.c (btrace_get_bfun_name): Update.
1205 (btrace_call_history): Update.
1206 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1207 (rs6000_skip_trampoline_code): Update.
1208 * sol-thread.c (info_cb): Update.
1209 * stabsread.c (scan_file_globals): Update.
1210 * stack.c (find_frame_funname): Update.
1211 (info_frame_command_core): Update.
1212 * symmisc.c (dump_msymbols): Update.
1213 * symtab.c (symbol_natural_name): Rename to..,
1214 (general_symbol_info::natural_name): ...this.
1215 (symbol_demangled_name): Rename to...
1216 (general_symbol_info::demangled_name): ...this.
1217 (symbol_search_name): Rename to...
1218 (general_symbol_info::search_name): ...this.
1219 (symbol_matches_search_name): Update.
1220 (find_pc_sect_line): Update.
1221 (skip_prologue_sal): Update.
1222 (search_symbols): Update.
1223 (print_msymbol_info): Update.
1224 (rbreak_command): Update.
1225 (completion_list_add_msymbol): Update.
1226 (completion_list_objc_symbol): Update.
1227 (get_msymbol_address): Update.
1228 * symtab.h (struct general_symbol_info): Add member functions
1229 natural_name (), linkage_name (), print_name (), demangled_name (),
1231 (SYMBOL_NATURAL_NAME): Update.
1232 (symbol_natural_name): Move to a member function on general_symbol_info.
1233 (SYMBOL_DEMANGLED_NAME): Update.
1234 (symbol_demangled_name): Move to a member function on
1235 general_symbol_info.
1236 (SYMBOL_SEARCH_NAME): Update.
1237 (symbol_search_name): Move to a member function on general_symbol_info.
1238 (MSYMBOL_NATURAL_NAME): Remove.
1239 (MSYMBOL_LINKAGE_NAME): Remove.
1240 (MSYMBOL_PRINT_NAME): Remove.
1241 (MSYMBOL_DEMANGLED_NAME): Remove.
1242 (MSYMBOL_SEARCH_NAME): Remove.
1243 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1245 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1247 * symtab.c (create_demangled_names_hash): Use per_bfd->
1248 minimal_symbol_count for computing the initial size, if greater
1249 than our default size.
1251 2019-11-22 Tom de Vries <tdevries@suse.de>
1253 * contrib/words.sh: Improve words extraction.
1255 2019-11-22 Tom de Vries <tdevries@suse.de>
1257 * contrib/words.sh: Combine sed invocations.
1259 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1261 * Makefile.in: Update.
1262 * demangle.c: Rename to...
1263 * gdb-demangle.c: ..this.
1264 (is_cplus_marker): Change return type to bool.
1265 (_initialize_demangler): Rename to...
1266 (_initialize_gdb_demangle): ...this.
1267 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1268 * symtab.h (demangle): Remove declaration; instead include
1271 2019-11-21 Tom Tromey <tromey@adacore.com>
1273 * gdbsupport/format.c (format_pieces): Parse %I64d.
1274 * unittests/format_pieces-selftests.c (test_windows_formats): New
1276 (run_tests): Call it.
1278 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1280 Byte reverse display of variables with DW_END_big, DW_END_little
1281 (DW_AT_endianity) dwarf attributes if different than the native
1283 * ada-lang.c (ada_value_binop):
1284 Use type_byte_order instead of gdbarch_byte_order.
1285 * ada-valprint.c (printstr):
1286 (ada_val_print_string):
1287 * ada-lang.c (value_pointer):
1289 Use type_byte_order instead of gdbarch_byte_order.
1290 * c-lang.c (c_get_string):
1291 Use type_byte_order instead of gdbarch_byte_order.
1292 * c-valprint.c (c_val_print_array):
1293 Use type_byte_order instead of gdbarch_byte_order.
1294 * cp-valprint.c (cp_print_class_member):
1295 Use type_byte_order instead of gdbarch_byte_order.
1296 * dwarf2loc.c (rw_pieced_value):
1297 Use type_byte_order instead of gdbarch_byte_order.
1298 * dwarf2read.c (read_base_type): Handle DW_END_big,
1300 * f-lang.c (f_get_encoding):
1301 Use type_byte_order instead of gdbarch_byte_order.
1302 * findvar.c (default_read_var_value):
1303 Use type_byte_order instead of gdbarch_byte_order.
1304 * gdbtypes.c (check_types_equal):
1305 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1306 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1307 and TYPE_ENDIANITY_LITTLE if set.
1308 (type_byte_order): new function.
1309 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1310 (struct main_type) <flag_endianity_not_default>:
1312 (type_byte_order): New function.
1313 * infcmd.c (default_print_one_register_info):
1314 Use type_byte_order instead of gdbarch_byte_order.
1315 * p-lang.c (pascal_printstr):
1316 Use type_byte_order instead of gdbarch_byte_order.
1317 * p-valprint.c (pascal_val_print):
1318 Use type_byte_order instead of gdbarch_byte_order.
1319 * printcmd.c (print_scalar_formatted):
1320 Use type_byte_order instead of gdbarch_byte_order.
1321 * solib-darwin.c (darwin_current_sos):
1322 Use type_byte_order instead of gdbarch_byte_order.
1323 * solib-svr4.c (solib_svr4_r_ldsomap):
1324 Use type_byte_order instead of gdbarch_byte_order.
1325 * stap-probe.c (stap_modify_semaphore):
1326 Use type_byte_order instead of gdbarch_byte_order.
1327 * target-float.c (target_float_same_format_p):
1328 Use type_byte_order instead of gdbarch_byte_order.
1329 * valarith.c (scalar_binop):
1331 Use type_byte_order instead of gdbarch_byte_order.
1332 * valops.c (value_cast):
1333 Use type_byte_order instead of gdbarch_byte_order.
1334 * valprint.c (generic_emit_char):
1337 Use type_byte_order instead of gdbarch_byte_order.
1338 * value.c (unpack_long):
1339 (unpack_bits_as_long):
1340 (unpack_value_bitfield):
1343 (pack_unsigned_long):
1344 Use type_byte_order instead of gdbarch_byte_order.
1345 * findvar.c (unsigned_pointer_to_address):
1346 (signed_pointer_to_address):
1347 (unsigned_address_to_pointer):
1348 (address_to_signed_pointer):
1349 (default_read_var_value):
1350 (default_value_from_register):
1351 Use type_byte_order instead of gdbarch_byte_order.
1352 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1353 Use type_byte_order instead of gdbarch_byte_order.
1354 * riscv-tdep.c (riscv_print_one_register_info):
1355 Use type_byte_order instead of gdbarch_byte_order.
1357 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1359 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1360 (current_ui_gdb_stdin_ptr): Likewise.
1361 (current_ui_gdb_stderr_ptr): Likewise.
1362 (current_ui_gdb_stdlog_ptr): Likewise.
1363 (current_ui_current_uiout_ptr): Likewise.
1364 (gen_ret_current_ui_field_ptr): Remove.
1366 2019-11-21 Tom de Vries <tdevries@suse.de>
1369 * cli/cli-script.c (execute_control_command): Only switch to
1370 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1372 2019-11-19 Tom Tromey <tom@tromey.com>
1374 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1375 Now static. Change type of "name".
1376 (tui_set_win_height_command): Don't copy "arg".
1377 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1378 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1380 2019-11-19 Ali Tamur <tamur@google.com>
1382 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1383 "if (attr != nullptr)".
1384 (dwarf2_find_base_address): Likewise.
1385 (dwarf2_build_include_psymtabs): Likewise.
1386 (read_cutu_die_from_dwo): Likewise.
1387 (read_func_scope): Likewise.
1388 (read_call_site_scope): Likewise.
1389 (dwarf2_get_pc_bounds): Likewise.
1390 (dwarf2_record_block_ranges): Likewise.
1391 (dwarf2_add_field): Likewise.
1392 (dwarf2_add_member_fn): Likewise.
1393 (read_structure_type): Likewise.
1394 (read_enumeration_type): Likewise.
1395 (read_array_type): Likewise.
1396 (read_array_order): Likewise.
1397 (read_set_type): Likewise.
1398 (read_common_block): Likewise.
1399 (read_tag_reference_type): Likewise.
1400 (read_tag_string_type): Likewise.
1401 (read_subroutine_type): Likewise.
1402 (read_base_type): Likewise.
1403 (read_subrange_type): Likewise.
1404 (new_symbol): Likewise.
1405 (prepare_one_comp_unit): Likewise.
1407 2019-11-19 Tom Tromey <tromey@adacore.com>
1409 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1410 result in error when DebugActiveProcess fails.
1412 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1413 Pedro Alves <palves@redhat.com>
1415 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1416 * target.c (target_stack::push): Call 'unpush' if there's a
1417 target on top of the stack.
1419 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1421 * python/py-block.c (blpy_dealloc): Call tp_free.
1422 (blpy_block_syms_dealloc): Likewise.
1423 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1424 * python/py-inferior.c (infpy_dealloc): Likewise.
1425 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1426 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1427 * python/py-symbol.c (sympy_dealloc): Likewise.
1428 * python/py-symtab.c (stpy_dealloc): Likewise.
1429 * python/py-type.c (typy_iterator_dealloc): Likewise.
1431 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1433 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1434 constructor instead of using a class initializer.
1436 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1438 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1439 * configure: Regenerate.
1440 * configure.ac: Don't source common.host.
1441 * gdbsupport/common.host: Remove.
1442 * gdbsupport/mingw-strerror.c: Remove.
1443 * gdbsupport/posix-strerror.c: Rename to...
1444 * gdbsupport/safe-strerror.c: ...this.
1446 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1448 * maint.c (scoped_command_stats::print_time): Use localtime_r
1449 instead of localtime (provided through gnulib if necessary).
1450 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1453 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1455 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1456 avoid compile errors.
1458 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1460 * config.in: Regenerate.
1461 * configure: Regenerate.
1462 * gdbsupport/common.m4: No longer check for strerror_r.
1463 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1464 POSIX version of strerror_r, now that gnulib provides it if
1467 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1469 * README (`configure' options): Update.
1471 2019-11-14 Tom Tromey <tromey@adacore.com>
1473 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1474 expected type for the RHS if the LHS is a convenience variable.
1476 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1478 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1479 Provide explicit default and copy constructor.
1481 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1483 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1484 only call Py_INCREF (newbp) in the bppy_pending_object case.
1486 2019-11-13 Tom Tromey <tromey@adacore.com>
1489 * psympriv.h (partial_symbol): Remove static assert.
1490 * symtab.h (general_symbol_info, symbol): Remove static assert.
1492 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1494 * gdbsupport/format.c (format_pieces::format_pieces): Support
1495 printf 'z' size modifier.
1496 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1497 * printcmd.c (ui_printf): Handle size_t_arg.
1498 * ui-out.c (ui_out::vmessage): Likewise.
1499 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1501 (run_tests): Call test_format_int_sizes.
1503 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1505 * ada-exp.y (write_ambiguous_var): Update.
1506 * buildsym.c (add_symbol_to_list): Update.
1507 * dwarf2read.c (read_variable): Update.
1508 (new_symbol): Update.
1509 * jit.c (finalize_symtab): Update.
1510 * language.c (language_alloc_type_symbol): Update.
1511 * symtab.c (fixup_symbol_section): Update.
1512 (initialize_objfile_symbol_1): Move code to...
1513 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1514 (allocate_symbol): Update.
1515 (allocate_template_symbol): Update.
1516 (get_symbol_address): Update.
1517 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1518 of having as a field, and add a constructor.
1519 (SYMBOL_VALUE): Update.
1520 (SYMBOL_VALUE_ADDRESS): Update.
1521 (SET_SYMBOL_VALUE_ADDRESS): Update.
1522 (SYMBOL_VALUE_BYTES): Update.
1523 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1524 (SYMBOL_BLOCK_VALUE): Update.
1525 (SYMBOL_VALUE_CHAIN): Update.
1526 (SYMBOL_LANGUAGE): Update.
1527 (SYMBOL_SECTION): Update.
1528 (SYMBOL_OBJ_SECTION): Update.
1529 (SYMBOL_SET_LANGUAGE): Update.
1530 (SYMBOL_SET_LINKAGE_NAME): Update.
1531 (SYMBOL_SET_NAMES): Update.
1532 (SYMBOL_NATURAL_NAME): Update.
1533 (SYMBOL_LINKAGE_NAME): Update.
1534 (SYMBOL_DEMANGLED_NAME): Update.
1535 (SYMBOL_SEARCH_NAME): Update.
1536 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1537 (struct symbol): Update.
1538 (struct template_symbol): Update.
1539 (struct rust_vtable_symbol): Update.
1540 * xcoffread.c (SYMBOL_DUP): Update.
1542 2019-11-12 Tom Tromey <tom@tromey.com>
1544 * tui/tui-layout.c (show_layout): Set current_layout.
1545 (show_source_disasm_command, show_data)
1546 (show_source_or_disasm_and_command): Don't set current_layout.
1548 2019-11-12 Tom Tromey <tom@tromey.com>
1550 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1552 2019-11-12 Tom Tromey <tom@tromey.com>
1554 * tui/tui-win.c (resize_message): New global.
1555 (show_tui_resize_message): New function.
1556 (tui_async_resize_screen): Print message if requested.
1557 (_initialize_tui_win): Add tui-resize-message setting.
1558 * NEWS: Add entry for new commands.
1560 2019-11-11 Tom Tromey <tom@tromey.com>
1562 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1565 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1567 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1569 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1571 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1573 * python/python-internal.h (gdbpy_lookup_static_symbols):
1574 Declare new function.
1575 * python/python.c (python_GdbMethods): Add
1576 gdb.lookup_static_symbols method.
1577 * NEWS: Mention gdb.lookup_static_symbols.
1579 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1581 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1582 static block of current object file first. Also fix typo in
1585 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1587 * stack.c (set_last_displayed_sal): Delete.
1588 (last_displayed_sal_valid): Delete.
1589 (last_displayed_pspace): Delete.
1590 (last_displayed_addr): Delete.
1591 (last_displayed_symtab): Delete.
1592 (last_displayed_line): Delete.
1593 (class last_displayed_symtab_info_type): New.
1594 (last_displayed_symtab_info): New static global variable.
1595 (print_frame_info): Call methods on last_displayed_symtab_info.
1596 (clear_last_displayed_sal): Update header comment, and make use of
1597 last_displayed_symtab_info.
1598 (last_displayed_sal_is_valid): Likewise.
1599 (get_last_displayed_pspace): Likewise.
1600 (get_last_displayed_addr): Likewise.
1601 (get_last_displayed_symtab): Likewise.
1602 (get_last_displayed_line): Likewise.
1603 (get_last_displayed_sal): Likewise.
1604 * stack.h (clear_last_displayed_sal): Update header comment.
1605 (last_displayed_sal_is_valid): Likewise.
1606 (get_last_displayed_pspace): Likewise.
1607 (get_last_displayed_addr): Likewise.
1608 (get_last_displayed_symtab): Likewise.
1609 (get_last_displayed_line): Likewise.
1610 (get_last_displayed_sal): Likewise.
1612 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1614 * stack.c (frame_show_address): Convert return type to bool.
1615 * stack.h (frame_show_address): Likewise, and update header
1618 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1620 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1621 * unittests/vec-utils-selftests.c: New file.
1622 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1624 2019-11-10 Tom Tromey <tom@tromey.com>
1626 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1627 (tui_highlight_win): Likewise.
1628 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1629 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1630 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1631 Don't set can_highlight.
1633 2019-11-10 Tom Tromey <tom@tromey.com>
1635 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1636 Remove unused declaration.
1638 2019-11-08 Tom Tromey <tromey@adacore.com>
1640 * top.c (read_command_file): Update.
1641 (command_line_input): Make return type const.
1642 * python/py-gdb-readline.c: Update.
1643 * linespec.c (decode_line_2): Update.
1644 * defs.h (command_line_input): Make return type const.
1645 * cli/cli-script.c (read_next_line): Make return type const.
1646 * ada-lang.c (get_selections): Update.
1648 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1650 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1651 * mi/mi-main.c (output_cores): Likewise.
1652 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1653 (linux_xfer_osdata_modules): Likewise.
1654 * remote.c (register_remote_support_xml): Likewise.
1655 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1656 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1658 2019-11-06 Tom Tromey <tom@tromey.com>
1660 * tui/tui-interp.c: Don't include readline.h.
1661 * tui/tui-hooks.c: Don't include readline.h.
1662 * symmisc.c: Include tilde.h, not readline.h.
1663 * symfile.c: Include tilde.h, not readline.h.
1664 * source.c: Include tilde.h, not readline.h.
1665 * solib.c: Include tilde.h, not readline.h.
1666 * psymtab.c: Include tilde.h, not readline.h.
1667 * exec.c: Include tilde.h, not readline.h.
1668 * corelow.c: Include tilde.h, not readline.h.
1669 * cli/cli-dump.c: Include tilde.h, not readline.h.
1670 * cli/cli-cmds.c: Don't include readline.h.
1672 2019-11-05 Tom Tromey <tom@tromey.com>
1674 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1675 (tui_disassemble): Set addr_size.
1676 (tui_disasm_window::set_contents): Use addr_size.
1678 2019-11-05 Tom Tromey <tom@tromey.com>
1680 * rust-lang.c (rust_language_defn): Update.
1681 * python/py-value.c (valpy_string): Call c_get_string.
1682 * p-lang.c (pascal_language_defn): Update.
1683 * opencl-lang.c (opencl_language_defn): Update.
1684 * objc-lang.c (objc_language_defn): Update.
1685 * m2-lang.c (m2_language_defn): Update.
1686 * language.c (unknown_language_defn, auto_language_defn): Update.
1687 (default_get_string): Remove.
1688 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1689 * go-lang.c (go_language_defn): Update.
1690 * f-lang.c (f_language_defn): Update.
1691 * d-lang.c (d_language_defn): Update.
1692 * c-lang.c (c_language_defn, cplus_language_defn)
1693 (asm_language_defn, minimal_language_defn): Update.
1694 * ada-lang.c (ada_language_defn): Update.
1695 * language.h (struct language_defn) <la_get_string>: Remove.
1696 (LA_GET_STRING): Remove.
1697 (default_get_string): Don't declare.
1699 2019-11-05 Tom Tromey <tom@tromey.com>
1701 * tui/tui-source.h (struct tui_source_window): Inline
1702 constructor. Remove destructor.
1703 <style_changed, m_observable>: Move to superclass.
1704 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1705 (struct tui_source_window_base): Move private members to end.
1706 <style_changed, m_observable>: Move from tui_source_window.
1707 * tui/tui-winsource.c (tui_copy_source_line): Move from
1708 tui-source.c. Rename from copy_source_line. Add special handling
1709 for negative line number.
1710 (tui_source_window_base::style_changed): Move from
1712 (tui_source_window_base): Register observer.
1713 (~tui_source_window_base): New.
1714 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1716 (tui_source_window::set_contents): Use tui_copy_source_line.
1717 (tui_source_window::tui_source_window): Move to tui-source.h.
1718 (tui_source_window::~tui_source_window): Remove.
1719 (tui_source_window::style_changed): Move to superclass.
1720 * tui/tui-disasm.c (tui_disassemble): Create string file with
1721 styling, when possible. Add "addr_size" parameter.
1722 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1723 Don't compute maximum size.
1724 (len_without_escapes): New function
1726 2019-11-05 Tom Tromey <tom@tromey.com>
1728 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1730 * tui/tui-winsource.c (tui_show_source_line): Update.
1731 * tui/tui-source.c (tui_source_window::set_contents): Update.
1732 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1734 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1736 * symtab.h (gdb_static_assert): Put && operator at the beginning
1737 of the line instead of the end.
1739 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1741 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1742 and sizeof (symbol).
1743 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1745 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1747 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1748 * configure.host: Mark *-*-solaris2.10* obsolete.
1749 * configure.tgt: Mark Solaris < 11 obsolete.
1750 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1751 Update target triplet.
1753 2019-11-01 Tom Tromey <tromey@adacore.com>
1755 * utils.c (print_sys_errmsg): Simplify.
1757 2019-11-01 Tom Tromey <tromey@adacore.com>
1759 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1761 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1763 * configure: Regenerate.
1764 * configure.ac: Remove check for strerror_r.
1765 * gdbsupport/common.m4: Check for strerror_r.
1767 2019-11-01 Luis Machado <luis.machado@linaro.org>
1771 * arm-tdep.c (arm_per_objfile): Rename to ...
1772 (arm_per_bfd): ... this.
1773 (arm_objfile_data_key): Rename to ...
1774 (arm_bfd_data_key): ... this.
1775 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1777 (arm_record_special_symbol): Likewise.
1779 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1781 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1783 * c-typeprint.c (c_print_typedef): Likewise.
1784 * f-typeprint.c (f_print_typedef): Likewise.
1785 * m2-typeprint.c (m2_print_typedef): Likewise.
1786 * p-typeprint.c (pascal_print_typedef): Likewise.
1787 * rust-lang.c (rust_print_typedef): Likewise.
1788 * symtab.c (print_symbol_info): Print a newline after calling
1791 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1793 * symtab.c (info_module_cmdlist): New variable.
1794 (info_module_command): New function.
1795 (search_module_symbols): New function.
1796 (info_module_subcommand): New function.
1797 (struct info_modules_var_func_options): New struct.
1798 (info_modules_var_func_options_defs): New variable.
1799 (make_info_modules_var_func_options_def_group): New function.
1800 (info_module_functions_command): New function.
1801 (info_module_variables_command): New function.
1802 (info_module_var_func_command_completer): New function.
1803 (_initialize_symtab): Register new 'info module functions' and
1804 'info module variables' commands.
1805 * symtab.h (typedef symbol_search_in_module): New typedef.
1806 (search_module_symbols): Declare new function.
1807 * NEWS: Mention new commands.
1809 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1811 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1812 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1813 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1815 (scan_partial_symbols): Only create partial module symbols for non
1817 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1819 * symtab.c (search_domain_name): Likewise.
1820 (search_symbols): Likewise.
1821 (print_symbol_info): Likewise.
1822 (symtab_symbol_info): Likewise.
1823 (info_modules_command): New function.
1824 (_initialize_symtab): Register 'info modules' command.
1825 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1826 * NEWS: Mention new 'info modules' command.
1828 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1830 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1831 and $_gdb_maint_setting_str.
1833 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1835 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1836 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1837 (str_value_from_setting, gdb_setting_str_internal_fn)
1838 (gdb_maint_setting_str_internal_fn): New functions.
1839 (_initialize_cli_cmds): Define the new convenience functions.
1840 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1841 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1843 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1845 * agent.c (set_can_use_agent): When the setting is turned on,
1846 look up agent symbols if we don't have them yet.
1847 (agent_new_objfile): Don't look up agent symbols when the agent
1850 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1852 * config.in: Regenerate.
1854 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1856 * configure: Regenerate.
1857 * configure.ac: Check for strerror_r.
1858 * gdbsupport/common-utils.h (safe_strerror): Change return value
1859 to const char * and document that this function is now threadsafe.
1860 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1861 thread_local and call strerror_r, if available.
1862 * utils.c (perror_string): Update.
1863 (print_sys_errmsg): Update.
1865 2019-10-31 Luis Machado <luis.machado@linaro.org>
1867 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1869 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1870 objfile to fetch per-bfd data.
1871 (arm_find_exidx_entry): Likewise.
1873 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1875 * gdbsupport/agent.c (debug_agent): Change type to bool.
1876 (use_agent): Likewise.
1877 (all_agent_symbols_look_up): Likewise.
1878 (agent_loaded_p): Change return value to bool.
1879 (agent_look_up_symbols): Update.
1880 (agent_capability_check): Change return value to bool.
1881 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1882 (debug_agent): Change type to bool.
1883 (use_agent): Likewise.
1884 (agent_capability_check): Change return value to bool.
1886 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1888 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1889 (build_minimal_symbol_hash_tables): Code to clear the table moved
1890 to clear_minimal_symbol_hash_tables.
1891 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1894 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1896 * infcmd.c: Remove includes.
1897 * infrun.c: Remove includes.
1899 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1901 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1902 (grow_vect): Remove declaration.
1903 (ada_type_of_array): Remove declaration.
1904 (ada_update_initial_language): Remove declaration.
1905 (ada_fold_name): Remove declaration.
1906 (ada_fill_in_ada_prototype): Remove declaration.
1907 (user_select_syms): Remove declaration.
1908 (get_selections): Remove declaration.
1909 (ada_tag_type): Remove declaration.
1910 (ada_value_tag): Remove declaration.
1911 (ada_is_others_clause): Remove declaration.
1912 (ada_in_variant): Remove declaration.
1913 (ada_value_struct_elt): Remove declaration.
1914 (ada_attribute_name): Remove declaration.
1915 (ada_system_address_type): Remove declaration.
1916 * ada-lang.c (ada_watch_location_expression): Make static.
1917 (GROW_VECT): Move here from ada-lang.h.
1918 (grow_vect): Make static.
1919 (ada_update_initial_language): Make static.
1920 (ada_fold_name): Make static.
1921 (ada_type_of_array): Make static.
1922 (encoded_ordered_before): Move up.
1923 (sort_choices): Move up.
1924 (print_signatures): Move up.
1925 (ada_print_symbol_signature): Move up.
1926 (get_selections): Move up and make static.
1927 (user_select_syms): Move up and make static.
1928 (ada_value_struct_elt): Move up and make static.
1929 (ada_tag_type): Make static.
1930 (ada_value_tag): Make static.
1931 (ada_is_others_clause): Make static.
1932 (ada_in_variant): Make static.
1933 (ada_attribute_name): Make static.
1935 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1937 * ada-lang.c: Remove includes.
1938 * ada-typeprint.c: Remove includes.
1939 * ada-valprint.c: Remove includes.
1941 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1943 * addrmap.c: Add static assertions of type size, moved from
1944 _initialize_addrmap.
1945 (_initialize_addrmap): Remove.
1947 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1949 * coffread.c (record_minimal_symbol): Update.
1950 (process_coff_symbol): Update.
1951 * dbxread.c (read_dbx_symtab): Update.
1952 * dwarf2read.c (add_partial_symbol): Update.
1953 (fixup_go_packaging): Update.
1954 (load_partial_dies): Update.
1955 (new_symbol): Update.
1956 * elfread.c (record_minimal_symbol): Change signature to use
1957 gdb::string_view instead of name+len.
1958 (elf_symtab_read): Update.
1959 (elf_rel_plt_read): Update.
1960 * mdebugread.c (parse_partial_symbols): Update.
1961 (handle_psymbol_enumerators): Update.
1962 (new_symbol): Update.
1963 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1964 to use gdb::string_view instead of name+len.
1965 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1966 * psympriv.h (add_psymbol_to_list): Likewise.
1967 * psymtab.c (add_psymbol_to_bcache): Likewise.
1968 (add_psymbol_to_list): Likewise.
1969 * stabsread.c (define_symbol): Update.
1970 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1971 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1972 (symbol_set_names): Likewise.
1973 * xcoffread.c (scan_xcoff_symtab): Update.
1975 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1977 * symtab.h (symbol_set_names): Document that copy_name must be
1978 set to true for non-nullterminated strings.
1979 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1980 linkage_name if the entry was not found and we need to demangle.
1982 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1984 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1985 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1986 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1987 * gdbsupport/gdb_binary_search.h: New file.
1989 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1991 * NEWS: Mention new --with-system-gdbinit-dir option.
1992 * config.in: Regenerate.
1993 * configure: Regenerate.
1994 * configure.ac: Add new option --with-system-gdbinit-dir.
1995 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1996 for a ".gdb" suffix.
1997 * main.c (get_init_files): Change system_gdbinit argument to
1998 a vector and return the files in SYSTEM_GDBINIT_DIR in
1999 addition to SYSTEM_GDBINIT.
2000 (captured_main_1): Update.
2001 (print_gdb_help): Update.
2002 * top.c (print_gdb_configuration): Also print the value of
2005 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2007 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2008 that takes gdb::string_view arguments.
2010 2019-10-26 Tom de Vries <tdevries@suse.de>
2012 * aarch64-linux-tdep.c: Fix typos in comments.
2013 * aarch64-tdep.c: Same.
2015 * amd64-nat.c: Same.
2017 * arch/aarch64-insn.c: Same.
2019 * breakpoint.h: Same.
2022 * cli/cli-decode.c: Same.
2023 * cli/cli-script.c: Same.
2024 * cli/cli-utils.h: Same.
2025 * coff-pe-read.c: Same.
2027 * compile/compile-cplus-symbols.c: Same.
2028 * compile/compile-object-run.c: Same.
2029 * completer.c: Same.
2031 * cp-support.c: Same.
2033 * dwarf-index-write.c: Same.
2034 * dwarf2-frame.c: Same.
2035 * dwarf2-frame.h: Same.
2037 * frame-base.h: Same.
2042 * guile/scm-objfile.c: Same.
2043 * i386-tdep.c: Same.
2044 * i386-tdep.h: Same.
2047 * linux-nat.c: Same.
2048 * m68k-tdep.c: Same.
2051 * mi/mi-cmd-disas.c: Same.
2052 * mi/mi-getopt.h: Same.
2053 * mi/mi-main.c: Same.
2055 * nat/aarch64-sve-linux-sigcontext.h: Same.
2057 * ppc-linux-nat.c: Same.
2058 * ppc-linux-tdep.c: Same.
2060 * progspace.h: Same.
2061 * prologue-value.h: Same.
2062 * python/py-evtregistry.c: Same.
2063 * python/py-instruction.h: Same.
2064 * record-btrace.c: Same.
2065 * record-full.c: Same.
2067 * rs6000-tdep.c: Same.
2069 * sol-thread.c: Same.
2070 * sparc-sol2-tdep.c: Same.
2071 * sparc64-tdep.c: Same.
2072 * stabsread.c: Same.
2076 * tracepoint.c: Same.
2077 * tui/tui-data.h: Same.
2078 * tui/tui-io.c: Same.
2079 * tui/tui-win.c: Same.
2081 * unittests/rsp-low-selftests.c: Same.
2082 * user-regs.h: Same.
2093 * xtensa-tdep.c: Same.
2095 2019-10-25 Ali Tamur <tamur@google.com>
2097 * charset.c (find_charset_names): Reflect API change.
2099 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2101 * symtab.c (struct demangled_name_entry): Change demangled name
2102 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2103 part of the struct anymore.
2104 (symbol_set_names): No longer obstack allocate + copy the demangled
2105 name, just store the allocated name from bfd.
2107 2019-10-25 Tom Tromey <tromey@adacore.com>
2109 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2110 (bsearch_cie_cmp, add_cie): Remove.
2111 (find_cie): Reimplement.
2112 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2113 (dwarf2_build_frame_info): Update.
2115 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2118 * symfile.c (reread_symbols): Call forget_cached_source_info to
2119 clear the stale source cache.
2121 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2123 * configure: Regenerate.
2124 * configure.ac: Remove code that sets python_has_threads.
2126 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2128 * config.in: Regenerate.
2129 * configure: Regenerate.
2130 * configure.ac: Remove the code that uses sed to get the python
2131 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2133 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2135 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2138 2019-10-23 Tom Tromey <tom@tromey.com>
2140 * arc-tdep.c: Remove ".." from include.
2141 * frv-tdep.c: Remove ".." from include.
2142 * lm32-tdep.c: Remove ".." from include.
2143 * microblaze-tdep.c: Remove ".." from include.
2144 * or1k-tdep.h: Remove ".." from include.
2145 * s12z-tdep.c: Remove ".." from include.
2146 * Makefile.in (OPCODES_CFLAGS): Add comment.
2147 (TOP_CFLAGS): New variable.
2148 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2150 2019-10-23 Tom Tromey <tom@tromey.com>
2152 * Makefile.in (READLINE_DIR): Update.
2154 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2156 * infcall.c (call_function_by_hand_dummy): Fix the function
2157 comment. And extract out a code section into...
2158 (reserve_stack_space): ...this new function.
2160 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162 * infcall.c (value_arg_coerce): Remove an unused parameter.
2163 (call_function_by_hand_dummy): Update the call to
2166 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168 * infcall.c (call_function_by_hand_dummy): Refactor.
2170 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2172 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2174 2019-10-23 Tom Tromey <tom@tromey.com>
2176 * configure: Rebuild.
2177 * configure.ac: Don't check for sigprocmask.
2178 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2180 2019-10-23 Tom Tromey <tom@tromey.com>
2182 * configure: Rebuild.
2183 * acinclude.m4: Use m4_include, not sinclude.
2185 2019-10-23 Tom de Vries <tdevries@suse.de>
2187 PR breakpoints/24687
2188 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2190 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2192 * symtab.c (struct demangled_name_entry) <language>: Change from
2193 bitfield to regular variable.
2195 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2197 * symtab.c (struct demangled_name_entry): Add a constructor.
2198 (free_demangled_name_entry): New function to call the destructor
2199 for demangled_name_entry.
2200 (create_demangled_names_hash): Pass free_demangled_name_entry to
2202 (symbol_set_names): Call placement new for demangled_name_entry.
2203 * utils.c: No longer include xxhash.h here, now that fast_hash
2204 is inlined in the header.
2205 * utils.h: Instead, include it here.
2207 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2209 * Makefile.in: Link with libxxhash.
2210 * config.in: Regenerate.
2211 * configure: Regenerate.
2212 * configure.ac: Search for libxxhash.
2213 * utils.c (fast_hash): Use xxhash if present.
2215 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2217 * utils.h (fast_hash): New function.
2218 * symtab.c (hash_demangled_name_entry): Call new function
2221 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2223 * symtab.c (struct demangled_name_entry): Change type of mangled
2224 to gdb::string_view. Also adds a constructor that takes the
2226 (hash_demangled_name_entry): Update.
2227 (eq_demangled_name_entry): Update.
2228 (free_demangled_name_entry): New function to call the destructor
2229 now that this is not a POD anymore.
2230 (create_demangled_names_hash): Pass free_demangled_name_entry to
2232 (symbol_set_names): Update.
2234 2019-10-21 Ali Tamur <tamu@google.com>
2236 * dwarf2read.c (dir_index): Change type.
2237 (file_name_index): Likewise.
2238 (line_header::include_dir_at): Change comment and implementation on
2239 whether it is DWARF 5.
2240 (line_header::is_valid_file_index): New function.
2241 (line_header::file_name_at): Change comment and implementation on
2242 whether it is DWARF 5.
2243 (line_header::file_names): Change to private field renamed as
2244 m_file_names and introduce a new accessor method.
2245 (line_header::file_names_size): New method.
2246 (line_header::include_dirs): Change to private field and rename as
2248 (dw2_get_file_names_reader): Define local var at a smaller scope and
2250 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2251 (process_structure_scope): Likewise.
2252 (line_header::add_include_dir): Change message and reflect renaming.
2253 (line_header::add_file_name): Likewise.
2254 (read_formatted_entries): Handle DW_FORM_data16.
2255 (dwarf_decode_line_header): Fix line header length calculation.
2256 (psymtab_include_file_name): Change comment and API.
2257 (lnp_state_machine::m_file): Update comment and reflect type change.
2258 (lnp_state_machine::record_line): Reflect type change.
2259 (dwarf_decode_lines): Reflect API change.
2260 (file_file_name): Likewise.
2261 (file_full_name): Likewise.
2263 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2265 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2267 2019-10-21 Tom Tromey <tom@tromey.com>
2269 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2271 2019-10-21 Tom Tromey <tom@tromey.com>
2273 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2274 NM_H. Use AC_CONFIG_LINKS.
2275 * configure: Rebuild.
2276 * Makefile.in (NM_H): New variable.
2277 (generated_files): Add NM_H. Remove gcore.
2278 (nm.h, stamp-nmh): New targets.
2280 2019-10-20 Tom Tromey <tom@tromey.com>
2282 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2283 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2285 (put_objfile_before): Now static.
2287 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2289 * gdbsupport/common-utils.h (startswith): Change return type to
2292 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2294 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2295 * breakpoint.c (bp_locations_compare): Rename to...
2296 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2297 (update_global_location_list): Use std::sort instead of qsort.
2298 * buildsym.c (compare_line_numbers): Rename to...
2299 (lte_is_less_than): ...this, and change to std::sort semantics.
2300 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2302 * disasm.c (compare_lines): Rename to...
2303 (line_is_less_than): ...this, and change to std::sort semantics.
2304 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2306 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2307 (fde_is_less_than): ...this, and change to std::sort semantics.
2308 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2309 * mdebugread.c (compare_blocks):
2310 (block_is_less_than): ...this, and change to std::sort semantics.
2311 (sort_blocks): Call std::sort instead of qsort.
2312 * objfiles.c (qsort_cmp): Rename to...
2313 (sort_cmp): ...this, and change to std::sort semantics.
2314 (update_section_map): Call std::sort instead of qsort.
2315 * remote.c (compare_pnums): Remove.
2316 (map_regcache_remote_table): Call std::sort instead of qsort.
2317 * utils.c (compare_positive_ints): Remove.
2318 * utils.h (compare_positive_ints): Remove.
2319 * xcoffread.c (compare_lte): Remove.
2320 (arrange_linetable): Call std::sort instead of qsort.
2322 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2324 * symfile.c (init_entry_point_info): Fix typo.
2325 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2327 2019-10-18 Tom de Vries <tdevries@suse.de>
2329 * aarch64-tdep.c: Fix typos in comments.
2331 * ada-tasks.c: Same.
2332 * alpha-tdep.c: Same.
2333 * alpha-tdep.h: Same.
2334 * amd64-nat.c: Same.
2335 * amd64-windows-tdep.c: Same.
2338 * arch-utils.c: Same.
2339 * arm-nbsd-tdep.c: Same.
2342 * blockframe.c: Same.
2345 * coff-pe-read.c: Same.
2347 * cris-tdep.c: Same.
2348 * darwin-nat.c: Same.
2352 * dtrace-probe.c: Same.
2353 * dwarf-index-write.c: Same.
2354 * dwarf2-frame-tailcall.c: Same.
2355 * dwarf2-frame.c: Same.
2356 * dwarf2read.c: Same.
2358 * exceptions.c: Same.
2359 * fbsd-tdep.c: Same.
2363 * gnu-v3-abi.c: Same.
2365 * h8300-tdep.c: Same.
2366 * hppa-tdep.c: Same.
2367 * i386-linux-tdep.c: Same.
2368 * i386-tdep.c: Same.
2369 * ia64-libunwind-tdep.c: Same.
2370 * ia64-tdep.c: Same.
2374 * linux-nat.c: Same.
2375 * linux-thread-db.c: Same.
2376 * machoread.c: Same.
2377 * mdebugread.c: Same.
2379 * mn10300-tdep.c: Same.
2380 * namespace.c: Same.
2382 * opencl-lang.c: Same.
2383 * or1k-tdep.c: Same.
2385 * ppc-linux-nat.c: Same.
2386 * ppc-linux-tdep.c: Same.
2387 * ppc-sysv-tdep.c: Same.
2390 * record-btrace.c: Same.
2391 * record-full.c: Same.
2392 * remote-fileio.c: Same.
2394 * rs6000-tdep.c: Same.
2395 * s12z-tdep.c: Same.
2396 * score-tdep.c: Same.
2400 * sol-thread.c: Same.
2401 * solib-svr4.c: Same.
2404 * sparc-nat.c: Same.
2405 * sparc-sol2-tdep.c: Same.
2406 * sparc-tdep.c: Same.
2407 * sparc64-tdep.c: Same.
2408 * stabsread.c: Same.
2412 * target-descriptions.c: Same.
2413 * target-float.c: Same.
2420 * windows-nat.c: Same.
2421 * xcoffread.c: Same.
2422 * xstormy16-tdep.c: Same.
2423 * xtensa-tdep.c: Same.
2425 2019-10-17 Tom Tromey <tromey@adacore.com>
2427 * configure: Rebuild.
2428 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2429 in AC_CONFIG_FILES invocation.
2430 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2431 new-style config.status invocation.
2433 2019-10-17 Tom de Vries <tdevries@suse.de>
2435 * arm-nbsd-nat.c: Fix typos in comments.
2437 * darwin-nat-info.c: Same.
2438 * dwarf2read.c: Same.
2440 * event-top.c: Same.
2443 * hppa-tdep.c: Same.
2444 * i386-tdep.c: Same.
2447 * mdebugread.c: Same.
2448 * moxie-tdep.c: Same.
2449 * nto-procfs.c: Same.
2451 * ppc-linux-tdep.c: Same.
2453 * riscv-tdep.c: Same.
2454 * s390-tdep.c: Same.
2456 * sparc-linux-tdep.c: Same.
2457 * sparc-nat.c: Same.
2459 * target-descriptions.c: Same.
2463 2019-10-16 Tom Tromey <tom@tromey.com>
2465 * objfiles.h (struct objfile) <original_name>: Now const.
2467 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2469 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2470 pass on to sigsetjmp's second argument.
2471 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2473 2019-10-16 Keith Seitz <keiths@redhat.com>
2476 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2477 sections whose size is greater than the file size.
2479 2019-10-16 Jim Wilson <jimw@sifive.com>
2481 * riscv-tdep.c (riscv_gcc_target_options): New.
2482 (riscv_gnu_triplet_regexp): New.
2483 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2484 set_gdbarch_gnu_triplet_regexp.
2486 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2488 * Makefile.in: Add xml-builtin.h.
2489 * features/feature_to_c.sh: Add an include for xml-builtin.h
2490 to ensure that the compiler checks that the types match.
2491 * xml-builtin.h: New file.
2492 * xml-support.c (fetch_xml_builtin): Add missing const.
2493 * xml-support.h: Remove declaration of xml_builtins.
2495 2019-10-16 Tom de Vries <tdevries@suse.de>
2498 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2499 (amd64_classify_aggregate): ... here.
2500 (amd64_classify_aggregate_field): Handled fiels of nested structs
2503 2019-10-16 Tom de Vries <tdevries@suse.de>
2506 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2507 that handles 'theclass'.
2509 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2511 * linespec.c (decode_digits_ordinary): Update comment.
2512 * make-target-delegates: No longer need to handle VEC case.
2513 * memrange.c (normalize_mem_ranges): Update comment.
2514 * namespace.c (add_using_directive): Update comment.
2515 * objc-lang.c (uniquify_strings): Update comment.
2516 * ppc-linux-nat.c (struct thread_points): Update comment.
2517 * probe.h (find_probes_in_objfile): Update comment.
2518 * target.h (enum flash_preserve_mode): Update comment.
2519 * varobj.c (varobj_restrict_range): Update comment.
2520 * varobj.h (varobj_list_children): Update comment.
2522 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2524 * Makefile.in: Remove references to vec.h and vec.c.
2525 * aarch64-tdep.c: No longer include vec.h.
2526 * ada-lang.c: Likewise.
2527 * ada-lang.h: Likewise.
2528 * arm-tdep.c: Likewise.
2530 * breakpoint.h: Likewise.
2531 * charset.c: Likewise.
2532 * cp-support.h: Likewise.
2533 * dtrace-probe.c: Likewise.
2534 * dwarf2read.c: Likewise.
2535 * extension.h: Likewise.
2536 * gdb_bfd.c: Likewise.
2537 * gdbsupport/gdb_vecs.h: Likewise.
2538 * gdbsupport/vec.c: Remove.
2539 * gdbsupport/vec.h: Remove.
2540 * gdbthread.h: Likewise.
2541 * guile/scm-type.c: Likewise.
2542 * inline-frame.c: Likewise.
2543 * machoread.c: Likewise.
2544 * memattr.c: Likewise.
2545 * memrange.h: Likewise.
2546 * namespace.h: Likewise.
2547 * nat/linux-btrace.h: Likewise.
2548 * osdata.c: Likewise.
2549 * parser-defs.h: Likewise.
2550 * progspace.h: Likewise.
2551 * python/py-type.c: Likewise.
2552 * record-btrace.c: Likewise.
2553 * rust-exp.y: Likewise.
2554 * solib-target.c: Likewise.
2555 * stap-probe.c: Likewise.
2556 * target-descriptions.c: Likewise.
2557 * target-memory.c: Likewise.
2558 * target.h: Likewise.
2559 * varobj.c: Likewise.
2560 * varobj.h: Likewise.
2561 * xml-support.h: Likewise.
2563 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2565 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2566 Update for new std::vector based implementation.
2567 (process_psymtab_comp_unit_reader): Likewise.
2568 (scan_partial_symbols): Likewise.
2569 (recursively_compute_inclusions): Likewise.
2570 (compute_compunit_symtab_includes): Likewise.
2571 (process_imported_unit_die): Likewise.
2572 (queue_and_load_dwo_tu): Likewise.
2573 (follow_die_sig_1): Likewise.
2574 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2575 (typedef dwarf2_per_cu_ptr): Remove.
2576 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2578 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2579 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2580 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2581 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2584 2019-10-15 Tom Tromey <tromey@adacore.com>
2586 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2589 2019-10-15 Tom Tromey <tromey@adacore.com>
2591 * windows-nat.c (windows_nat_target::fetch_registers)
2592 (windows_nat_target::store_registers): Rename "pid" to "tid".
2594 2019-10-15 Tom Tromey <tromey@adacore.com>
2596 * gdbarch.h, gdbarch.c: Rebuild.
2597 * gdbarch.sh (gcc_target_options): Change return type to
2599 * compile/compile.c (get_args): Update.
2600 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2601 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2603 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2605 * arch-utils.c (default_gcc_target_options): Return std::string.
2606 * arch-utils.h (default_gcc_target_options): Return std::string.
2607 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2609 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2611 * breakpoint.c (breakpoint_chain): Make static.
2612 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2613 of accessing breakpoint_chain.
2615 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2617 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2618 to a gdb::function_view and return value to bool.
2619 * breakpoint.h (iterate_over_breakpoints): Likewise.
2620 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2621 (pop_dummy_frame): Update.
2622 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2623 (gdbscm_breakpoints): Update.
2624 * python/py-breakpoint.c (build_bp_list): Update.
2625 (gdbpy_breakpoints): Update.
2626 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2628 (bpfinishpy_handle_stop): Update.
2629 (bpfinishpy_handle_exit): Update.
2630 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2631 (svr4_update_solib_event_breakpoints): Update.
2633 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2635 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2636 when unwrapping single-field structs.
2638 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2640 * dwarf2read.c: Remove includes.
2642 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2644 * ui-out.c (ui_out::call_do_message): Silence
2645 -Wformat-nonliteral warning.
2647 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2649 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2650 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2651 include: readline/tilde.h.
2653 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2655 * remote.c (remote_target::get_trace_status): Remove declaration of
2656 trace_regblock_size.
2658 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2660 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2661 (show_user): Remove declaration of cmdlist.
2662 * cli/cli-cmds.h (max_user_call_depth): Declare.
2663 * cli/cli-script.c (execute_user_command): Remove declaration
2664 of max_user_call_depth.
2666 2019-10-11 Jim Wilson <jimw@sifive.com>
2668 * gdbsupport/print-utils.h (pulongest): Fix comment.
2669 (plongest): Likewise.
2670 (phex): Add missing comment, mention leading zeros.
2671 (phex_nz): Add mention of no leading zeros to comment.
2673 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2674 plongest instead of unsigned long long cast.
2676 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2678 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2679 for external_editor_command and gdbtk_test.
2681 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2683 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2684 * varobj.c (varobjdebug): Move comment to...
2685 * varobj.h (varobjdebug): ...here, and declare.
2687 2019-10-09 Tom Tromey <tom@tromey.com>
2689 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2692 2019-10-09 Tom Tromey <tom@tromey.com>
2694 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2695 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2696 * tui/tui-command.c (tui_cmd_window::resize)
2697 (tui_refresh_cmd_win): Update.
2698 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2699 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2700 * tui/tui-data.c (~tui_gen_win_info): Remove.
2701 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2702 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2703 (tui_redisplay_readline, tui_mld_flush)
2704 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2705 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2706 (tui_data_window::erase_data_content)
2707 (tui_data_item_window::rerender)
2708 (tui_data_item_window::refresh_window): Update.
2709 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2710 (box_win, tui_gen_win_info::make_window)
2711 (tui_gen_win_info::make_visible): Update.
2712 (tui_delete_win): Remove.
2713 * tui/tui-winsource.c
2714 (tui_source_window_base::do_erase_source_content): Update.
2715 (tui_show_source_line, tui_source_window_base::update_tab_width)
2716 (tui_source_window_base::update_exec_info): Update.
2717 * tui/tui-data.h (struct curses_deleter): New.
2718 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2719 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2721 2019-10-09 Tom Tromey <tom@tromey.com>
2723 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2725 2019-10-09 Tom Tromey <tom@tromey.com>
2727 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2728 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2730 2019-10-09 Tom Tromey <tom@tromey.com>
2732 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2733 window height directly.
2734 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2736 * tui/tui-layout.c (tui_default_win_height): Remove.
2737 (tui_default_win_viewport_height): Remove.
2739 2019-10-09 Tom Tromey <tom@tromey.com>
2741 * tui/tui.h: Remove comments.
2743 2019-10-09 Tom de Vries <tdevries@suse.de>
2745 * python/lib/gdb/printer/bound_registers.py: Use
2746 '^builtin_type_bound128' as regexp argument for
2747 add_builtin_pretty_printer.
2749 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2751 * guile/guile.c (guile_extension_script_ops): Remove forward
2752 declaration and mark as static.
2753 (guile_script_ops): Likewise.
2754 (extension_language_guile): Move further down in the file so
2755 it can reference the definitions for guile_{extension_,}script_ops.
2757 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2759 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2760 except SORTL, DFLTCC, and KDSA.
2762 2019-10-08 Tom Tromey <tromey@adacore.com>
2764 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2765 (struct safe_symbol_file_add_args): Remove.
2767 2019-10-08 Tom Tromey <tromey@adacore.com>
2769 * windows-nat.c: Don't include buildsym-legacy.h.
2771 2019-10-08 Tom Tromey <tromey@adacore.com>
2773 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2775 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2777 * gdbtypes.c (overload_debug): Move comment to header.
2778 * gdbtypes.h (overload_debug): Declare.
2779 * valops.c: Remove declaration of overload_debug, instead
2782 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2784 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2786 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2788 * language.h (lang_frame_mismatch_warn): ... here. Also add
2790 * top.c (lang_frame_mismatch_warn): Remove declaration.
2791 (check_frame_language_change): Pass lang_frame_mismatch_warn
2794 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2796 * c-lang.h (vtbl_ptr_name): Declare.
2797 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2799 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2801 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2803 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2806 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2808 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2809 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2810 * ctfread.c: New file.
2811 * ctfread.h: New file.
2812 * elfread.c: Include ctfread.h.
2813 (struct elfinfo text_p): New member ctfsect.
2814 (elf_locate_sections): Mark CTF section.
2815 (elf_symfile_read): Call elfctf_build_psymtabs.
2816 * Makefile.in (LIBCTF): Add.
2819 (DIST): Add ctfread.c.
2821 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2823 * ctfread.c (struct nextfield): Renamed to ...
2824 (struct ctf_nextfield): ... this.
2825 (struct field_info): Renamed to ...
2826 (strut ctf_field_info): ... this.
2827 (attach_fields_to_type): Update for renamed structures.
2828 (ctf_add_member_cb): Likewise.
2829 (ctf_add_enum_member_cb): Likewise.
2830 (process_struct_members): Likewise.
2831 (process_enum_type): Likewise.
2833 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2835 * tracectf.h: Rename, was ctf.h.
2836 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2837 * tracefile.c: Likewise.
2838 * tracepoint.c: Remove unused include ctf.h.
2839 * mi/mi-main.c: Likewise.
2840 * Makefile.in Replace ctf.c with tracectf.c.
2842 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2844 * version.in: Change version number to "9.0.50.DATE-git".
2846 2019-10-03 Tom Tromey <tom@tromey.com>
2849 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2851 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2853 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2854 cp_search_name_hash.
2855 * NEWS: Add entry about nested function support.
2857 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2858 Andrew Burgess <andrew.burgess@embecosm.com>
2860 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2861 for nested static variables when searchin VAR_DOMAIN.
2862 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2863 global scope, update comment.
2864 (add_partial_subprogram): Call add_partial_subprogram recursively
2865 for nested subroutines when processinng Fortran.
2866 (load_partial_dies): Process the child entities of a subprogram
2867 when processing Fortran.
2868 (partial_die_parent_scope): Handle building scope
2869 for Fortran nested functions.
2870 (process_die): Record that nested functions have a scope.
2871 (new_symbol): Always record Fortran subprograms on the global
2873 (determine_prefix): How to build the prefix for Fortran
2876 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2878 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2879 have just sent the thread a SIGSTOP and are waiting for it to
2882 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2884 * btrace.c (btrace_add_pc): Remove whitespace before the template
2885 parameter in 'std::vector <...>'.
2886 (parse_xml_btrace_block): Likewise.
2887 (btrace_maint_decode_pt): Likewise.
2888 (btrace_maint_update_packets): Likewise.
2889 (btrace_maint_print_packets): Likewise.
2890 * btrace.h (struct btrace_maint_info): Likewise.
2891 * dwarf2read.c (struct type_unit_group): Likewise.
2892 (build_type_psymtabs_reader): Likewise.
2893 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2894 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2895 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2897 2019-10-03 Tom de Vries <tdevries@suse.de>
2899 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2900 the first line of the help text for set/show style metadata.
2902 2019-10-02 Tom Tromey <tromey@adacore.com>
2904 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2905 * gdbsupport/common-inferior.c: New file.
2906 * infcmd.c (startup_with_shell): Don't define.
2907 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2908 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2909 * inferior.h (startup_with_shell): Don't declare.
2911 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2913 * gdbsupport/gdb_assert.h: Include errors.h.
2914 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2916 2019-10-02 Tom Tromey <tromey@adacore.com>
2918 * NEWS: Add $_ada_exception entry.
2919 * ada-lang.c (struct ada_catchpoint): Add constructor.
2920 <m_kind>: New member.
2921 (allocate_location_exception, re_set_exception): Remove
2923 (should_stop_exception): Compute $_ada_exception.
2924 (check_status_exception, print_it_exception)
2925 (print_one_exception, print_mention_exception): Remove
2927 (allocate_location_catch_exception, re_set_catch_exception)
2928 (check_status_exception, print_it_catch_exception)
2929 (print_one_catch_exception, print_mention_catch_exception)
2930 (print_recreate_catch_exception)
2931 (allocate_location_catch_exception_unhandled)
2932 (re_set_catch_exception_unhandled)
2933 (check_status_exception, print_it_catch_exception_unhandled)
2934 (print_one_catch_exception_unhandled)
2935 (print_mention_catch_exception_unhandled)
2936 (print_recreate_catch_exception_unhandled)
2937 (allocate_location_catch_assert, re_set_catch_assert)
2938 (check_status_assert, print_it_catch_assert)
2939 (print_one_catch_assert, print_mention_catch_assert)
2940 (print_recreate_catch_assert)
2941 (allocate_location_catch_handlers, re_set_catch_handlers)
2942 (check_status_handlers, print_it_catch_handlers)
2943 (print_one_catch_handlers, print_mention_catch_handlers)
2944 (print_recreate_catch_handlers): Remove.
2945 (create_ada_exception_catchpoint): Update.
2946 (initialize_ada_catchpoint_ops): Update.
2948 2019-10-02 Tom Tromey <tromey@adacore.com>
2950 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2951 (create_excep_cond_exprs): Simplify exception string computation.
2952 (ada_exception_catchpoint_cond_string): Likewise.
2954 2019-10-02 Tom Tromey <tromey@adacore.com>
2956 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2957 * ada-lang.c (lesseq_defined_than): Handle
2959 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2961 (dwarf2_has_info): Likewise.
2962 (new_symbol): Set maybe_copied on symbol when
2964 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2966 <can_copy>: New member.
2967 * elfread.c (record_minimal_symbol): Set maybe_copied
2968 on symbol when appropriate.
2969 (elf_symfile_read): Update call to dwarf2_has_info.
2970 * minsyms.c (lookup_minimal_symbol_linkage): New
2972 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2973 * symtab.c (get_symbol_address, get_msymbol_address):
2975 * symtab.h (get_symbol_address, get_msymbol_address):
2977 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2979 (struct symbol, struct minimal_symbol) <maybe_copied>:
2982 2019-10-02 Tom Tromey <tromey@adacore.com>
2984 * source.c (struct current_source_location): New.
2985 (current_source_key): New global.
2986 (current_source_symtab, current_source_line)
2987 (current_source_pspace): Remove.
2988 (get_source_location): New function.
2989 (get_current_source_symtab_and_line)
2990 (set_default_source_symtab_and_line)
2991 (set_current_source_symtab_and_line)
2992 (clear_current_source_symtab_and_line, select_source_symtab)
2993 (info_source_command, print_source_lines_base)
2994 (info_line_command, search_command_helper, _initialize_source):
2997 2019-10-02 Tom Tromey <tromey@adacore.com>
2999 * source.c (select_source_symtab): Don't call
3000 decode_line_with_current_source.
3002 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3004 * symtab.c (lookup_global_symbol): Search global block.
3006 2019-10-02 Tom Tromey <tromey@adacore.com>
3008 * coffread.c (process_coff_symbol): Update.
3009 * dwarf2read.c (var_decode_location, new_symbol): Update.
3010 * mdebugread.c (parse_symbol): Update.
3011 * objfiles.c (relocate_one_symbol): Update.
3012 * stabsread.c (define_symbol, fix_common_block)
3013 (scan_file_globals): Update.
3014 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3015 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3016 * xcoffread.c (process_xcoff_symbol): Update.
3018 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3020 * MAINTAINERS: Update my email address.
3022 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3024 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3026 (build_type_psymtabs_reader): Update for std::vector.
3027 (build_type_psymtab_dependencies): Likewise.
3028 * dwarf2read.h: Remove use of DEF_VEC_P.
3029 (typedef sig_type_ptr): Delete.
3031 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3035 (btrace_maint_decode_pt): Likewise, and move allocation of the
3036 vector outside of the loop.
3037 (btrace_maint_update_packets): Update to handle change from VEC to
3039 (btrace_maint_print_packets): Likewise.
3040 (maint_info_btrace_cmd): Likewise.
3041 * btrace.h: Remove use of DEF_VEC_O.
3042 (typedef btrace_pt_packet_s): Delete.
3043 (struct btrace_maint_info) <packets>: Change fromm VEC to
3045 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3047 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3049 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3050 make accesses into the vector constant references.
3051 (btrace_add_pc): Update for std::vector.
3052 (btrace_stitch_bts): Likewise.
3053 (parse_xml_btrace_block): Likewise.
3054 (btrace_maint_update_packets): Likewise.
3055 (btrace_maint_print_packets): Likewise.
3056 (maint_info_btrace_cmd): Likewise.
3057 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3059 (btrace_data::empty): Likewise.
3060 (btrace_data_append): Likewise.
3061 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3062 (typedef btrace_block_s): Delete.
3063 (struct btrace_block): Add constructor.
3064 (struct btrace_data_bts) <blocks>: Change to std::vector.
3065 * nat/linux-btrace.c (perf_event_read_bts): Update for
3067 (linux_read_bts): Likewise.
3069 2019-10-01 Tom Tromey <tom@tromey.com>
3071 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3073 2019-10-01 Tom Tromey <tom@tromey.com>
3075 * stack.c (print_frame, info_frame_command_core): Use
3077 * linux-thread-db.c (try_thread_db_load_1)
3078 (try_thread_db_load_from_pdir_1): Use styled_string.
3079 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3080 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3081 (maybe_print_unsupported_script_warning)
3082 (maybe_print_script_not_found_warning): Use styled_string.
3083 * ada-lang.c (user_select_syms): Use styled_string.
3085 2019-10-01 Tom Tromey <tom@tromey.com>
3087 * p-lang.c (pascal_printstr): Use metadata style.
3088 * value.c (show_convenience): Use metadata style.
3089 * valprint.c (valprint_check_validity, val_print_optimized_out)
3090 (val_print_not_saved, val_print_unavailable)
3091 (val_print_invalid_address, generic_val_print, val_print)
3092 (value_check_printable, val_print_array_elements): Use metadata
3094 * ui-out.h (class ui_out) <field_fmt>: New overload.
3095 <do_field_fmt>: Add style parameter.
3096 * ui-out.c (ui_out::field_fmt): New overload.
3097 * typeprint.c (type_print_unknown_return_type)
3098 (val_print_not_allocated, val_print_not_associated): Use metadata
3100 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3102 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3103 * tracepoint.c (tvariables_info_1): Use metadata style.
3104 * stack.c (print_frame_arg, print_frame_info, print_frame)
3105 (info_frame_command_core): Use metadata style.
3106 * skip.c (info_skip_command): Use metadata style.
3107 * rust-lang.c (rust_print_enum): Use metadata style.
3108 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3110 * python/py-framefilter.c (py_print_single_arg): Use metadata
3112 * printcmd.c (do_one_display, print_variable_and_value): Use
3114 * p-valprint.c (pascal_val_print)
3115 (pascal_object_print_value_fields): Use metadata style.
3116 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3117 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3119 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3120 * m2-valprint.c (m2_print_long_set): Use metadata style.
3121 * m2-typeprint.c (m2_print_type): Use metadata style.
3122 * infcmd.c (print_return_value_1): Use metadata style.
3123 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3124 * f-valprint.c (info_common_command_for_block): Use metadata
3126 * f-typeprint.c (f_type_print_base): Use metadata style.
3127 * expprint.c (print_subexp_standard): Use metadata style.
3128 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3129 * cli/cli-style.h (class cli_style_option): Add constructor.
3130 (metadata_style): Declare.
3131 * cli/cli-style.c (metadata_style): New global.
3132 (_initialize_cli_style): Register metadata style.
3133 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3135 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3136 * c-typeprint.c (c_type_print_base_struct_union)
3137 (c_type_print_base_1): Use metadata style.
3138 * breakpoint.c (watchpoint_value_print)
3139 (print_one_breakpoint_location): Use metadata style.
3140 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3142 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3144 * ada-valprint.c (val_print_packed_array_elements, printstr)
3145 (print_field_values, ada_val_print_ref, ada_val_print): Use
3147 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3149 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3151 * ada-lang.c (user_select_syms): Use metadata style.
3153 2019-10-01 Tom Tromey <tom@tromey.com>
3155 * cli/cli-cmds.c (pwd_command): Style output.
3157 2019-10-01 Pedro Alves <palves@redhat.com>
3158 Tom Tromey <tom@tromey.com>
3160 * symtab.c (print_symbol_info): Use %ps.
3161 (print_msymbol_info): Use %ps.
3162 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3163 * printcmd.c (print_variable_and_value): Use %ps.
3164 * macrocmd.c (show_pp_source_pos): Use %ps.
3165 * infrun.c (print_exited_reason): Use ui_out::message.
3166 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3167 (describe_other_breakpoints): Use ui_out::message and new
3169 (say_where): Use new formats.
3170 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3173 2019-10-01 Pedro Alves <palves@redhat.com>
3174 Tom Tromey <tom@tromey.com>
3176 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3177 (test_gdb_formats): New function.
3178 (run_tests): Call it.
3179 (test_format_specifier): Update.
3180 * utils.h (fputs_filtered): Update comment.
3181 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3182 (fputs_styled_unfiltered): Declare.
3183 * utils.c (fputs_styled_unfiltered): New function.
3184 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3185 (vfprintf_filtered): Update.
3186 (vfprintf_unfiltered, vprintf_filtered): Update.
3187 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3188 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3189 disallow_ui_out_field>: New constants.
3190 (enum class field_kind): New.
3191 (struct base_field_s, struct signed_field_s): New.
3192 (signed_field): New function.
3193 (struct string_field_s): New.
3194 (string_field): New function.
3195 (struct styled_string_s): New.
3196 (styled_string): New function.
3197 (class ui_out) <message>: Add comment.
3198 <vmessage, call_do_message>: New methods.
3199 <do_message>: Add style parameter.
3200 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3202 (ui_out::message): Rewrite.
3203 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3205 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3206 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3207 gdb_extensions parameter.
3208 (class format_piece): Add parameter to constructor.
3209 (n_int_args): New field.
3210 * gdbsupport/format.c (format_pieces::format_pieces): Add
3211 gdb_extensions parameter. Handle '*'.
3212 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3213 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3214 vfprintf_styled_no_gdbfmt.
3215 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3216 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3218 * ui-style.h (struct ui_file_style) <ptr>: New method.
3220 2019-10-01 Tom Tromey <tom@tromey.com>
3222 * unittests/format_pieces-selftests.c: Update. Add final format.
3223 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3224 empty literal pieces.
3226 2019-10-01 Tom Tromey <tom@tromey.com>
3228 * ui-out.h (enum class ui_out_style_kind): Remove.
3229 (class ui_out) <field_string, field_stsream, do_field_string>:
3230 Change type of "style".
3231 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3232 (ui_out::field_string): Update.
3233 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3235 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3236 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3237 * stack.c (print_frame_arg, print_frame_info, print_frame):
3239 * source.c (print_source_lines_base): Update.
3240 * solib.c (info_sharedlibrary_command): Update.
3241 * skip.c (info_skip_command): Update.
3242 * record-btrace.c (btrace_call_history_src_line)
3243 (btrace_call_history): Update.
3244 * python/py-framefilter.c (py_print_frame): Update.
3245 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3247 * mi/mi-out.c (mi_ui_out::do_table_header)
3248 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3249 (mi_ui_out::do_field_string): Update.
3250 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3252 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3254 * cli-out.c (cli_ui_out::do_table_header)
3255 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3256 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3257 (cli_ui_out::do_field_fmt): Update.
3258 * breakpoint.c (print_breakpoint_location): Update.
3259 (update_static_tracepoint): Update.
3261 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3263 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3264 conversion of gdb_datadir.
3265 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3266 remove not needed c_str ().
3268 2019-09-30 Ali Tamur <tamur@google.com>
3270 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3271 (dwarf2_string_attr): Likewise.
3273 2019-09-30 Ali Tamur <tamur@google.com>
3275 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3276 (process_full_type_unit): Likewise.
3277 (dump_die_shallow): Likewise.
3278 (cu_debug_loc_section): Likewise.
3280 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3282 * minsyms.c (compare_minimal_symbols): Rename to...
3283 (minimal_symbol_is_less_than): ...this, and adjust to STL
3284 conventions (return bool, take arguments as references)
3285 (minimal_symbol_reader::install): Call std::sort instead
3288 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3290 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3292 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3293 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3295 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3297 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3298 * psympriv.h (add_psymbol_to_list): Move comment here and update
3301 2019-09-29 Tom de Vries <tdevries@suse.de>
3303 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3304 Use $tmpdir/$(basename "$output_file").dwz instead of
3305 "${output_file}.dwz".
3307 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3310 * hppa-linux-nat.c: Include gdbarch.h.
3312 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3314 * blockframe.c (find_pc_partial_function): Change return type to bool.
3315 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3316 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3317 (stub_gnu_ifunc_resolve_name): Likewise.
3318 * symtab.c (compare_filenames_for_search): Likewise.
3319 (compare_glob_filenames_for_search): Likewise.
3320 (matching_obj_sections): Likewise.
3321 (symbol_matches_domain): Likewise.
3322 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3323 (find_line_pc): Change return type to bool.
3324 (find_line_pc_range): Likewise.
3325 (producer_is_realview): Likewise.
3326 * symtab.h (symbol_matches_domain): Likewise.
3327 (find_pc_partial_function): Likewise.
3328 (find_pc_line_pc_range): Likewise.
3329 (in_gnu_ifunc_stub): Likewise.
3330 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3331 (find_line_pc): Likewise.
3332 (find_line_pc_range): Likewise.
3333 (matching_obj_sections): Likewise.
3334 (find_line_symtab): Change out parameter to bool.
3335 (producer_is_realview): Change return type to bool.
3336 (compare_filenames_for_search): Likewise.
3337 (compare_glob_filenames_for_search): Likewise.
3339 2019-09-26 Tom Tromey <tom@tromey.com>
3341 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3342 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3343 * gdb_usleep.h: Remove.
3344 * gdb_usleep.c: Remove.
3345 * utils.c: Don't include gdb_usleep.h.
3347 2019-09-26 Tom Tromey <tromey@adacore.com>
3349 * python/py-type.c (type_to_type_object): Call check_typedef
3352 2019-09-26 Tom Tromey <tom@tromey.com>
3354 * utils.h (initialize_utils): Don't declare.
3355 * top.c (gdb_init): Don't call initialize_utils.
3356 * utils.c (initialize_utils): Remove. Move contents...
3357 (_initialize_utils): ... here.
3359 2019-09-25 Tom Tromey <tom@tromey.com>
3361 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3362 * utils.h (make_hex_string): Don't declare.
3363 * utils.c (make_hex_string): Remove.
3365 2019-09-24 Tom de Vries <tdevries@suse.de>
3368 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3369 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3371 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3373 * NEWS: Mention new simulator port for PRU.
3375 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3377 * ada-exp.y (write_object_remaining): Update.
3378 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3379 and eliminate the static buffer.
3380 (ada_decode_symbol): Update.
3381 (ada_la_decode): Update.
3382 (ada_sniff_from_mangled_name): Update.
3383 (is_valid_name_for_wild_match): Update.
3384 (ada_lookup_name_info::matches): Update and simplify.
3385 (name_matches_regex): Update.
3386 (ada_add_global_exceptions): Update.
3387 * ada-lang.h (ada_decode): Update signature.
3388 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3389 * dwarf-index-write.c (debug_names::insert): Update.
3391 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3393 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3396 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3398 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3399 Change "nonzero" to "true" in documentation.
3401 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3403 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3404 (_initialize_darwin_solib): Don't set
3405 darwin_so_ops.lookup_lib_global_symbol.
3406 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3407 set_gdbarch_iterate_over_objfiles_in_search_order.
3408 (elf_lookup_lib_symbol): Rename to...
3409 (svr4_iterate_over_objfiles_in_search_order): this, and update
3410 to iterate semantics.
3411 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3412 * solib.c (solib_global_lookup): Remove.
3413 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3414 (solib_global_lookup): Remove.
3415 * symtab.c (lookup_global_or_static_symbol): Remove call to
3416 solib_global_lookup.
3418 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3420 * NEWS: Move entries about default MI version now being
3421 version 3, and about the GDB/MI fix for multi-location
3422 breakpoints to the "since GDB 8.3" section.
3424 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3428 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3430 * NEWS: Mention that Cell/B.E. debugging support was removed.
3431 * MAINTAINERS: Remove spu target.
3433 * config/djgpp/fnchange.lst: Remove entries for removed files.
3435 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3436 spu-multiarch.o, and spu-tdep.o.
3437 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3438 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3439 spu-multiarch.c, and spu-tdep.c.
3440 * spu-linux-nat.c: Remove file.
3441 * spu-multiarch.c: Remove file.
3442 * spu-tdep.c: Remove file.
3443 * spu-tdep.h: Remove file.
3444 * solib-spu.c: Remove file.
3445 * solib-spu.h: Remove file.
3447 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3448 * configure.nat (spu-linux): Remove.
3449 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3450 solib-multiarch.o from gdb_target_obs.
3453 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3455 (ppc_linux_no_features): Update.
3456 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3458 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3459 (tdesc_powerpc_cell64l): Likewise.
3460 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3461 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3463 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3464 Do not include "features/rs6000/powerpc-cell32l.c" or
3465 "features/rs6000/powerpc-cell64l.c".
3466 (ppc_linux_spu_section): Remove.
3467 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3468 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3469 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3470 (ppc_linux_spe_context_lookup): Remove.
3471 (ppc_linux_spe_context_inferior_created): Remove.
3472 (ppc_linux_spe_context_solib_loaded): Remove.
3473 (ppc_linux_spe_context_solib_unloaded): Remove.
3474 (ppc_linux_spe_context): Remove.
3475 (struct ppu2spu_cache): Remove.
3476 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3477 (struct ppu2spu_data): Remove.
3478 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3479 ppu2spu_unwind): Remove.
3480 (ppc_linux_init_abi): Remove Cell/B.E. support.
3481 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3483 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3484 (rs6000/powerpc-cell64l-expedite): Likewise
3485 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3486 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3487 rs6000/powerpc-cell64l.xml.
3488 * features/rs6000/powerpc-cell32l.xml: Remove.
3489 * features/rs6000/powerpc-cell64l.xml: Likewise.
3490 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3491 * features/rs6000/powerpc-cell64l.c: Likewise.
3492 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3493 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3494 * regformats/reg-spu.dat: Remove.
3496 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3497 * corelow.c (struct spuid_list): Remove.
3498 (add_to_spuid_list): Remove.
3499 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3500 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3501 (remote_protocol_features): Remove associated entries.
3502 (_initialize_remote): No longer initialize them.
3503 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3504 * linux-nat.c (SPUFS_MAGIC): Remove.
3505 (linux_proc_xfer_spu): Remove.
3506 (spu_enumerate_spu_ids): Remove.
3507 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3508 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3509 (linux_make_corefile_notes): No longer call it.
3511 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3512 (cooked_write_test): Likewise.
3514 2019-09-20 Tom Tromey <tom@tromey.com>
3516 * NEWS: Mention case-sensitivity of TUI commands.
3517 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3518 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3519 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3521 2019-09-20 Tom Tromey <tom@tromey.com>
3523 * tui/tui-source.c (tui_source_window::set_contents): Use
3524 make_unique_xstrdup.
3525 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3526 make_unique_xstrdup.
3528 2019-09-20 Tom Tromey <tom@tromey.com>
3530 * tui/tui-data.c: Remove separator comments.
3531 * tui/tui-layout.c: Remove separator comments.
3532 * tui/tui-win.c: Remove separator comments.
3533 * tui/tui-wingeneral.c: Remove separator comments.
3535 2019-09-20 Tom Tromey <tom@tromey.com>
3537 * tui/tui.h (strcat_to_buf): Don't declare.
3538 * tui/tui.c (strcat_to_buf): Remove.
3540 2019-09-20 Tom Tromey <tom@tromey.com>
3542 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3544 * tui/tui-source.c (tui_source_window::set_contents)
3545 (tui_source_window::location_matches_p)
3546 (tui_source_window::maybe_update): Update.
3548 2019-09-20 Tom Tromey <tom@tromey.com>
3550 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3552 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3554 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3555 (tui_data_window::line_from_reg_element_no)
3556 (tui_data_window::first_reg_element_no_inline)
3557 (tui_data_window::show_registers)
3558 (tui_data_window::show_register_group)
3559 (tui_data_window::display_registers_from)
3560 (tui_data_window::display_registers_from_line)
3561 (tui_data_window::first_data_item_displayed)
3562 (tui_data_window::delete_data_content_windows)
3563 (tui_data_window::erase_data_content)
3564 (tui_data_window::do_scroll_vertical)
3565 (tui_data_window::refresh_window)
3566 (tui_data_window::check_register_values): Update.
3568 2019-09-20 Tom Tromey <tom@tromey.com>
3570 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3571 (struct tui_locator_window) <full_name, proc_name>: Now
3573 * tui/tui-stack.c (tui_locator_window::make_status_line)
3574 (tui_locator_window::set_locator_fullname)
3575 (tui_locator_window::set_locator_info): Update.
3576 * tui/tui-source.c (tui_source_window::set_contents)
3577 (tui_source_window::showing_source_p): Update.
3579 2019-09-20 Tom Tromey <tom@tromey.com>
3581 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3582 Don't call tui_locator_win_info_ptr.
3584 2019-09-20 Tom Tromey <tom@tromey.com>
3586 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3588 2019-09-20 Tom Tromey <tom@tromey.com>
3590 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3592 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3593 * tui/tui-layout.c (show_source_disasm_command, show_data)
3594 (show_source_or_disasm_and_command): Use 1 as height for locator.
3596 2019-09-20 Tom Tromey <tom@tromey.com>
3598 * tui/tui.c (tui_enable): Update.
3599 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3601 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3603 * tui/tui-data.c (win_resized): Now bool.
3604 (tui_win_resized): Return bool.
3605 (tui_set_win_resized_to): Accept a bool.
3607 2019-09-20 Tom Tromey <tom@tromey.com>
3609 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3610 Change type of "refresh_values_only".
3611 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3612 type of "refresh_values_only".
3614 2019-09-20 Tom Tromey <tom@tromey.com>
3616 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3618 (tui_disassemble): Add "pos" parameter.
3619 (tui_disasm_window::set_contents): Simplify.
3621 2019-09-20 Tom Tromey <tom@tromey.com>
3623 * tui/tui-winsource.h (struct tui_source_window_base)
3624 <show_source_content>: Now private.
3625 * tui/tui-winsource.c
3626 (tui_source_window_base::show_source_content): Don't handle empty
3629 2019-09-20 Tom Tromey <tom@tromey.com>
3631 * tui/tui-layout.c (show_source_disasm_command)
3632 (show_source_or_disasm_and_command): Don't call
3633 show_source_content.
3635 2019-09-20 Tom Tromey <tom@tromey.com>
3637 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3639 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3640 from tui_make_status_line.
3641 (tui_locator_window::rerender): Update.
3643 2019-09-20 Tom Tromey <tom@tromey.com>
3645 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3646 (tui_locator_window::rerender): Update.
3648 2019-09-20 Tom Tromey <tom@tromey.com>
3650 * tui/tui-winsource.h (struct tui_source_window_base)
3651 <~tui_source_window_base>: Don't declare.
3653 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3654 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3656 * tui/tui-source.c (tui_source_window::set_contents): Update.
3657 (tui_source_window::location_matches_p)
3658 (tui_source_window::maybe_update): Update.
3660 2019-09-20 Tom Tromey <tom@tromey.com>
3662 * tui/tui-winsource.h (~tui_source_element): Remove.
3663 (tui_source_element): Update.
3664 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3665 * tui/tui-winsource.c (tui_show_source_line): Update.
3666 * tui/tui-source.c (tui_source_window::set_contents): Update.
3667 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3669 2019-09-20 Tom Tromey <tom@tromey.com>
3671 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3673 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3674 tui_clear_source_windows_detail.
3675 * tui/tui-winsource.h (struct tui_source_window_base)
3676 <clear_detail>: Don't declare.
3677 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3679 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3681 2019-09-20 Tom Tromey <tromey@adacore.com>
3684 * block.c (contained_in): Fix final return value.
3686 2019-09-20 Alan Modra <amodra@gmail.com>
3688 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3689 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3690 (read_indirect_string_from_dwz): Use bfd accessor.
3691 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3692 * machoread.c (macho_symfile_read_all_oso): Likewise.
3693 * solib.c (solib_bfd_open): Likewise.
3695 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3697 * eval.c: Move declaration of overload_resolution to...
3700 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3702 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3703 * arm-linux-tdep.c: Likewise.
3704 * arm-nbsd-nat.c: Likewise.
3705 * arm-tdep.h: Declare arm_apcs_32.
3706 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3708 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3710 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3711 * dwarf2read.h: Declare dwarf_always_disassemble.
3713 2019-09-19 Tom de Vries <tdevries@suse.de>
3716 * source-cache.c (source_cache::ensure): Catch exception thrown during
3717 construction of the highlighter.
3719 2019-09-18 Alan Modra <amodra@gmail.com>
3721 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3722 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3723 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3724 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3725 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3726 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3727 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3728 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3729 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3730 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3731 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3732 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3733 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3734 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3735 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3736 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3737 * mi/mi-interp.c: Update throughout for bfd section macro and
3739 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3740 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3742 2019-09-18 Tom Tromey <tom@tromey.com>
3745 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3747 (tui_enable): Do not call rl_initialize.
3749 2019-09-18 Christian Groessler <chris@groessler.org>
3751 * alpha-linux-nat.c: Include gdbarch.h.
3753 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3755 * ui-file.c: Include cli/cli-style.h.
3756 (term_cli_styling): Remove cli_styling declaration.
3758 2019-09-18 Alan Modra <amodra@gmail.com>
3760 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3761 to bfd_asymbol_section.
3763 2019-09-18 Alan Modra <amodra@gmail.com>
3765 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3766 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3767 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3769 2019-09-18 Alan Modra <amodra@gmail.com>
3771 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3772 * spu-linux-nat.c (spu_bfd_open): Likewise.
3774 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3776 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3777 to bool to match definition in dwarf2read.c.
3779 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3781 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3782 (print_signatures): Likewise.
3783 (trust_pad_over_xvs): Likewise.
3784 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3785 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3786 * arm-linux-nat.c (arm_apcs_32): Likewise.
3787 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3788 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3789 * arm-tdep.c (arm_debug): Likewise.
3790 (arm_apcs_32): Likewise.
3791 * auto-load.c (debug_auto_load): Likewise.
3792 (auto_load_gdb_scripts): Likewise.
3793 (global_auto_load): Likewise.
3794 (auto_load_local_gdbinit): Likewise.
3795 (auto_load_local_gdbinit_loaded): Likewise.
3796 * auto-load.h (global_auto_load): Likewise.
3797 (auto_load_local_gdbinit): Likewise.
3798 (auto_load_local_gdbinit_loaded): Likewise.
3799 * breakpoint.c (disconnected_dprintf): Likewise.
3800 (breakpoint_proceeded): Likewise.
3801 (automatic_hardware_breakpoints): Likewise.
3802 (always_inserted_mode): Likewise.
3803 (target_exact_watchpoints): Likewise.
3804 (_initialize_breakpoint): Update.
3805 * breakpoint.h (target_exact_watchpoints): Change to bool.
3806 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3807 * cli/cli-cmds.c (trace_commands): Likewise.
3808 * cli/cli-cmds.h (trace_commands): Likewise.
3809 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3811 * cli/cli-logging.c (logging_overwrite): Change to bool.
3812 (logging_redirect): Likewise.
3813 (debug_redirect): Likewise.
3814 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3815 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3817 <boolean_option_def>: Update.
3818 (struct flag_option_def): Change default type of Context to bool
3820 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3821 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3822 (get_setshow_command_value_string): Likewise.
3823 * cli/cli-style.c (cli_styling): Change to bool.
3824 (source_styling): Likewise.
3825 * cli/cli-style.h (source_styling): Likewise.
3826 (cli_styling): Likewise.
3827 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3829 * command.h (var_types): Update comment.
3830 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3831 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3833 (debug_compile_cplus_scopes): Likewise.
3834 * compile/compile-internal.h (compile_debug): Likewise.
3835 * compile/compile.c (compile_debug): Likewise.
3836 (struct compile_options) <raw>: Likewise.
3837 * cp-support.c (catch_demangler_crashes): Likewise.
3838 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3839 (usr_cmd_cris_dwarf2_cfi): Likewise.
3840 * csky-tdep.c (csky_debug): Likewise.
3841 * darwin-nat.c (enable_mach_exceptions): Likewise.
3842 * dcache.c (dcache_enabled_p): Likewise.
3843 * defs.h (info_verbose): Likewise.
3844 * demangle.c (demangle): Likewise.
3845 (asm_demangle): Likewise.
3846 * dwarf-index-cache.c (debug_index_cache): Likewise.
3847 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3848 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3849 * dwarf2read.c (check_physname): Likewise.
3850 (use_deprecated_index_sections): Likewise.
3851 (dwarf_always_disassemble): Likewise.
3852 * eval.c (overload_resolution): Likewise.
3853 * event-top.c (set_editing_cmd_var): Likewise.
3854 (exec_done_display_p): Likewise.
3855 * event-top.h (set_editing_cmd_var): Likewise.
3856 (exec_done_display_p): Likewise.
3857 * exec.c (write_files): Likewise.
3858 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3859 (debug_fbsd_nat): Likewise.
3860 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3862 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3863 <backtrace_past_entry> Likewise.
3864 * gdb-demangle.h (demangle): Likewise.
3865 (asm_demangle): Likewise.
3866 * gdb_bfd.c (bfd_sharing): Likewise.
3867 * gdbcore.h (write_files): Likewise.
3868 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3869 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3870 * gdbthread.h (print_thread_events): Likewise.
3871 * gdbtypes.c (opaque_type_resolution): Likewise.
3872 (strict_type_checking): Likewise.
3873 * gnu-nat.c (gnu_debug_flag): Likewise.
3874 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3875 * guile/scm-param.c (pascm_variable): Add boolval.
3876 (add_setshow_generic): Update.
3877 (pascm_param_value): Update.
3878 (pascm_set_param_value_x): Update.
3879 * hppa-tdep.c (hppa_debug): Change to bool..
3880 * infcall.c (may_call_functions_p): Likewise.
3881 (coerce_float_to_double_p): Likewise.
3882 (unwind_on_signal_p): Likewise.
3883 (unwind_on_terminating_exception_p): Likewise.
3884 * infcmd.c (startup_with_shell): Likewise.
3885 * inferior.c (print_inferior_events): Likewise.
3886 * inferior.h (startup_with_shell): Likewise.
3887 (print_inferior_events): Likewise.
3888 * infrun.c (step_stop_if_no_debug): Likewise.
3889 (detach_fork): Likewise.
3890 (debug_displaced): Likewise.
3891 (disable_randomization): Likewise.
3892 (non_stop): Likewise.
3893 (non_stop_1): Likewise.
3894 (observer_mode): Likewise.
3895 (observer_mode_1): Likewise.
3896 (set_observer_mode): Update.
3897 (sched_multi): Change to bool.
3898 * infrun.h (debug_displaced): Likewise.
3899 (sched_multi): Likewise.
3900 (step_stop_if_no_debug): Likewise.
3901 (non_stop): Likewise.
3902 (disable_randomization): Likewise.
3903 * linux-tdep.c (use_coredump_filter): Likewise.
3904 (dump_excluded_mappings): Likewise.
3905 * linux-thread-db.c (auto_load_thread_db): Likewise.
3906 (check_thread_db_on_load): Likewise.
3907 * main.c (captured_main_1): Update.
3908 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3909 xx2_opt, boolean_opt>: Change to bool.
3910 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3911 * maint.c (maintenance_profile_p): Likewise.
3912 (per_command_time): Likewise.
3913 (per_command_space): Likewise.
3914 (per_command_symtab): Likewise.
3915 * memattr.c (inaccessible_by_default): Likewise.
3916 * mi/mi-main.c (mi_async): Likewise.
3917 (mi_async_1): Likewise.
3918 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3919 * nat/fork-inferior.h (startup_with_shell): Likewise.
3920 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3921 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3922 * nios2-tdep.c (nios2_debug): Likewise.
3923 * or1k-tdep.c (or1k_debug): Likewise.
3924 * parse.c (parser_debug): Likewise.
3925 * parser-defs.h (parser_debug): Likewise.
3926 * printcmd.c (print_symbol_filename): Likewise.
3927 * proc-api.c (procfs_trace): Likewise.
3928 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3929 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3930 (set_parameter_value): Update.
3931 (add_setshow_generic): Update.
3932 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3934 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3936 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3937 * record-btrace.c (record_btrace_target::store_registers): Update.
3938 * record-full.c (record_full_memory_query): Change to bool.
3939 (record_full_stop_at_limit): Likewise.
3940 * record-full.h (record_full_memory_query): Likewise.
3941 * remote-notif.c (notif_debug): Likewise.
3942 * remote-notif.h (notif_debug): Likewise.
3943 * remote.c (use_range_stepping): Likewise.
3944 (interrupt_on_connect): Likewise.
3945 (remote_break): Likewise.
3946 * ser-tcp.c (tcp_auto_retry): Likewise.
3947 * ser-unix.c (serial_hwflow): Likewise.
3948 * skip.c (debug_skip): Likewise.
3949 * solib-aix.c (solib_aix_debug): Likewise.
3950 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3951 (spu_auto_flush_cache_p): Likewise.
3952 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3954 (struct info_print_options) <quiet>: Likewise.
3955 * symfile-debug.c (debug_symfile): Likewise.
3956 * symfile.c (auto_solib_add): Likewise.
3957 (separate_debug_file_debug): Likewise.
3958 * symfile.h (auto_solib_add): Likewise.
3959 (separate_debug_file_debug): Likewise.
3960 * symtab.c (basenames_may_differ): Likewise.
3961 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3962 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3963 (struct info_types_options) <quiet>: Likewise.
3964 * symtab.h (demangle): Likewise.
3965 (basenames_may_differ): Likewise.
3966 * target-dcache.c (stack_cache_enabled_1): Likewise.
3967 (code_cache_enabled_1): Likewise.
3968 * target.c (trust_readonly): Likewise.
3969 (may_write_registers): Likewise.
3970 (may_write_memory): Likewise.
3971 (may_insert_breakpoints): Likewise.
3972 (may_insert_tracepoints): Likewise.
3973 (may_insert_fast_tracepoints): Likewise.
3974 (may_stop): Likewise.
3975 (auto_connect_native_target): Likewise.
3976 (target_stop_and_wait): Update.
3977 (target_async_permitted): Change to bool.
3978 (target_async_permitted_1): Likewise.
3979 (may_write_registers_1): Likewise.
3980 (may_write_memory_1): Likewise.
3981 (may_insert_breakpoints_1): Likewise.
3982 (may_insert_tracepoints_1): Likewise.
3983 (may_insert_fast_tracepoints_1): Likewise.
3984 (may_stop_1): Likewise.
3985 * target.h (target_async_permitted): Likewise.
3986 (may_write_registers): Likewise.
3987 (may_write_memory): Likewise.
3988 (may_insert_breakpoints): Likewise.
3989 (may_insert_tracepoints): Likewise.
3990 (may_insert_fast_tracepoints): Likewise.
3991 (may_stop): Likewise.
3992 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3993 (make_thread_apply_all_options_def_group): Change argument from int*
3995 (thread_apply_all_command): Update.
3996 (print_thread_events): Change to bool.
3997 * top.c (confirm): Likewise.
3998 (command_editing_p): Likewise.
3999 (history_expansion_p): Likewise.
4000 (write_history_p): Likewise.
4001 (info_verbose): Likewise.
4002 * top.h (confirm): Likewise.
4003 (history_expansion_p): Likewise.
4004 * tracepoint.c (disconnected_tracing): Likewise.
4005 (circular_trace_buffer): Likewise.
4006 * typeprint.c (print_methods): Likewise.
4007 (print_typedefs): Likewise.
4008 * utils.c (debug_timestamp): Likewise.
4009 (sevenbit_strings): Likewise.
4010 (pagination_enabled): Likewise.
4011 * utils.h (sevenbit_strings): Likewise.
4012 (pagination_enabled): Likewise.
4013 * valops.c (overload_resolution): Likewise.
4014 * valprint.h (struct value_print_options) <prettyformat_arrays,
4015 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4016 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4017 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4019 * windows-nat.c (new_console): Likewise.
4020 (cygwin_exceptions): Likewise.
4021 (new_group): Likewise.
4022 (debug_exec): Likewise.
4023 (debug_events): Likewise.
4024 (debug_memory): Likewise.
4025 (debug_exceptions): Likewise.
4026 (useshell): Likewise.
4027 * windows-tdep.c (maint_display_all_tib): Likewise.
4028 * xml-support.c (debug_xml): Likewise.
4030 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4032 * source.c (prepare_path_for_appending): New function.
4033 (openp): Make use of new function.
4034 (find_and_open_source): Search for the compilation directory and
4035 source file as a relative path beneath the directory search path.
4037 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4039 * source-cache.c (source_cache::get_line_charpos): Catch
4040 exceptions and return false, this matches the behaviour documented
4043 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4045 * ada-tasks.c (info_task): Remove quoting of the task's name.
4047 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4049 * symfile.c (auto_solib_add): Replace comment with a reference
4052 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4054 * NEWS: Mention that gdb can now be compiled with Python 3
4057 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4059 * maint.c (maint_print_section_data::maint_print_section_data):
4060 Force use of 'float log10 (float)' by casting the argument to
4063 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4065 * maint.c: Add 'cmath' include.
4066 (struct maint_print_section_data): New structure.
4067 (print_section_index): New function.
4068 (print_bfd_section_info): Add header comment, small whitespace
4069 cleanup, and update to call new print_section_index function.
4070 (print_objfile_section_info): Likewise.
4071 (maint_obj_section_from_bfd_section): New function.
4072 (print_bfd_section_info_maybe_relocated): New function.
4073 (maintenance_info_sections): Add header comment, always use
4074 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4076 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4078 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4079 inner scope, add check that the objfile has psymtabs before
4080 checking psymtabs_addrmap.
4081 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4083 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4085 * NEWS: Announce that Ada task names are now shown at more places,
4086 and between quotes (except in info task output).
4087 * gdb/ada-tasks.c (task_to_str): New function.
4088 (display_current_task_id): Call task_to_str.
4089 (task_command_1): Likewise.
4090 (print_ada_task_info): In non-mi mode, Properly align headers and data
4091 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4093 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4095 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4096 prstatus.pr_lwp.pr_info instead of making it up.
4098 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4100 * auto-load.c (auto_load_expand_dir_vars): Update.
4101 * defs.h (gdb_datadir): Change to std::string.
4102 (python_libdir): Likewise.
4103 (relocate_gdb_directory): Change return type to std::string.
4104 * guile/guile.c (gdbscm_data_directory): Update.
4105 (initialize_scheme_side): Update.
4106 * jit.c (jit_reader_dir): Change to std::string.
4107 (jit_reader_load_command): Update.
4108 * main.c (gdb_datadir): Change to std::string.
4109 (python_libdir): Likewise.
4110 (set_gdb_data_directory): Update.
4111 (relocate_path): Change to return std::string.
4112 (relocate_gdb_directory): Change to return std::string.
4113 (relocate_gdbinit_path_maybe_in_datadir): Update.
4114 (captured_main_1): Update.
4115 * python/python.c (do_start_initialization): Update.
4116 * top.c (show_gdb_datadir): Update.
4117 * xml-syscall.c (xml_init_syscalls_info): Update.
4118 (init_syscalls_info): Update.
4120 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4122 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4123 out of get_init_files.
4124 (get_init_files): Update.
4126 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4128 * main.c (get_init_files): Change to use std::string.
4129 (captured_main_1): Update.
4130 (print_gdb_help): Update.
4132 2019-09-11 Ali Tamur <tamur@google.com>
4134 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4137 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4139 * dbxread.c (read_dbx_symtab): Update.
4140 * dwarf2read.c (load_partial_dies): Update.
4141 * mdebugread.c (parse_partial_symbols): Update.
4142 (handle_psymbol_enumerators): Update.
4143 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4144 * psymtab.c (add_psymbol_to_bcache): Likewise.
4145 (add_psymbol_to_list): Likewise.
4146 * symtab.c (symbol_set_names): Likewise.
4147 * symtab.h (symbol_set_names): Likewise.
4148 * xcoffread.c (scan_xcoff_symtab): Update.
4150 2019-09-11 Tom Tromey <tom@tromey.com>
4152 * symfile-mem.c (symbol_file_add_from_memory): Use
4154 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4155 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4157 2019-09-10 Tom Tromey <tromey@adacore.com>
4159 * dwarf-index-write.c (write_psymbols): Extend error message.
4160 (debug_names::insert): Add Ada code.
4161 (debug_names::write_psymbols): Remove Ada check.
4162 (debug_names) <m_string_obstack>: New member.
4163 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4164 (gdb_index_symbol_name_matcher::matches): Remove.
4165 (mapped_index_base::find_name_components_bounds): Add "lang"
4167 (mapped_index_base::build_name_components): Also split names
4168 according to Ada syntax.
4169 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4170 type of "match_callback".
4171 (check_match, check_find_bounds_finds)
4172 (dw2_expand_symtabs_matching): Update.
4173 (dw2_debug_names_iterator): Add new constructor.
4174 (dw2_debug_names_map_matching_symbols): New function.
4175 (dw2_debug_names_expand_symtabs_matching): Update.
4176 (dwarf2_debug_names_functions): Use
4177 dw2_debug_names_map_matching_symbols.
4179 2019-09-10 Tom Tromey <tromey@adacore.com>
4181 * dwarf2read.c (dw2_get_file_names_reader): Add the
4182 CU's file name to the results.
4184 2019-09-10 Tom Tromey <tromey@adacore.com>
4186 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4187 map_matching_symbols. Update.
4188 * dwarf2read.c (dw2_map_matching_symbols): Update.
4189 * psymtab.c (match_partial_symbol): Change type; update.
4190 (psym_map_matching_symbols): Likewise.
4191 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4193 * symfile.h (struct quick_symbol_functions)
4194 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4197 2019-09-10 Tom Tromey <tromey@adacore.com>
4199 * psymtab.c (map_block): Remove.
4200 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4201 * symtab.c (iterate_over_symbols_terminated): New function.
4202 * symtab.c (iterate_over_symbols_terminated): Declare.
4204 2019-09-10 Tom Tromey <tromey@adacore.com>
4206 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4207 * language.h (struct language_defn) <la_iterate_over_symbols>:
4209 * symtab.c (iterate_over_symbols): Return bool.
4210 * symtab.h (iterate_over_symbols): Return bool.
4212 2019-09-10 Tom Tromey <tromey@adacore.com>
4214 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4215 (add_nonlocal_symbols): Update.
4216 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4217 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4218 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4219 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4220 Change type of "callback". Remove "data".
4223 2019-09-09 Ali Tamur <tamur@google.com>
4225 * dwarf2read.c (comp_unit_head): Update comment.
4226 (dwarf2_dwo_name): New function declaration.
4227 (dwarf_unit_type_name): New function declaration.
4228 (read_comp_unit_head): Add support for new compilation units,
4229 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4230 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4231 (currently named as "signature") in their header. Also clarify error
4233 (lookup_dwo_id): New function. Returns the dwo id of the given
4235 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4236 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4238 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4239 (dwarf2_dwo_name): Get the dwo name if present.
4240 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4243 2019-09-09 Tom Tromey <tom@tromey.com>
4245 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4247 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4249 * python/python.c (do_start_initialization): Make progname_copy static,
4250 to avoid a leak report.
4252 2019-09-08 Tom Tromey <tom@tromey.com>
4254 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4256 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4258 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4259 Change type to gdb::optional<block_enum>.
4260 (dw2_symtab_iter_init): Change block_index parameter type
4261 to gdb::optional<block_enum>.
4262 (dw2_lookup_symbol): Change block_index parameter
4263 type to block_enum.c
4264 (dw2_debug_names_lookup_symbol): Likewise.
4265 * psymtab.c (psym_lookup_symbol): Likewise.
4266 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4267 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4270 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4272 * defs.h (relocate_gdb_directory): Change int to bool in
4273 signature and rename flag to relocatable.
4274 * main.c (relocate_path): Likewise.
4275 (relocate_gdb_directory): Likewise.
4277 2019-09-06 Alan Modra <amodra@gmail.com>
4279 * coffread.c (coff_symfile_read): Constify filename variable.
4280 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4281 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4282 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4283 * solib.c (reload_shared_libraries_1): Likewise.
4284 * symfile.c (reread_symbols): Likewise.
4285 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4286 * solib-darwin.c (darwin_bfd_open): Likewise.
4287 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4289 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4291 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4292 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4294 2019-09-03 Tom Tromey <tromey@adacore.com>
4296 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4298 (has_negatives): Unbias a range type bound.
4299 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4300 * gdbtypes.c (operator==): Handle new field.
4301 (create_range_type): Add "bias" parameter.
4302 (create_static_range_type, resolve_dynamic_range): Update.
4303 * gdbtypes.h (struct range_bounds) <bias>: New member.
4304 (create_range_type): Add bias parameter.
4305 * printcmd.c (print_scalar_formatted): Unbias range types.
4306 * value.c (unpack_long): Unbias range types.
4307 (pack_long): Bias range types.
4309 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4311 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4314 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4316 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4317 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4318 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4319 (compile_probe_arg): Likewise.
4320 * probe.h (get_argument_count): Likewise.
4321 * solib-svr4.c (solib_event_probe_action): Likewise.
4322 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4324 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4326 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4328 (svr4_create_solib_event_breakpoints): ...from here.
4330 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4332 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4333 suffix from warning message.
4335 2019-08-30 Tom Tromey <tom@tromey.com>
4337 * tui/tui-winsource.h (struct tui_source_window_base)
4338 <refresh_all>: Don't declare.
4339 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4341 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4342 tui_show_locator_content.
4343 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4345 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4346 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4349 2019-08-30 Tom Tromey <tom@tromey.com>
4351 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4353 2019-08-30 Tom Tromey <tom@tromey.com>
4355 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4356 Remove unnecessary forward declarations.
4358 2019-08-30 Tom Tromey <tom@tromey.com>
4360 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4362 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4363 tui_show_locator_content.
4365 2019-08-30 Tom Tromey <tom@tromey.com>
4367 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4368 (tui_locator_window::rerender): Rewrite using body of previous
4369 tui_show_locator_content.
4371 2019-08-30 Tom Tromey <tom@tromey.com>
4373 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4374 set_locator_fullname>: New methods.
4375 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4376 Rename from tui_set_locator_fullname.
4377 (tui_locator_window::set_locator_info): Rename from
4378 tui_set_locator_info. Return bool.
4379 (tui_update_locator_fullname, tui_show_frame_info): Update.
4381 2019-08-30 Tom Tromey <tom@tromey.com>
4383 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4385 2019-08-30 Tom Tromey <tom@tromey.com>
4387 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4390 2019-08-30 Tom Tromey <tom@tromey.com>
4392 * tui/tui-wingeneral.c (box_win): Assume win_info and
4393 win_info->handle cannot be NULL.
4395 2019-08-30 Tom Tromey <tom@tromey.com>
4397 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4398 refresh_window>: Declare.
4399 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4401 (tui_data_item_window::rerender): Rename from
4402 tui_display_register.
4403 (tui_data_item_window::refresh_window): New method.
4404 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4407 2019-08-30 Tom Tromey <tom@tromey.com>
4409 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4410 regs_column_count, current_group>: Move later. Now private.
4411 <get_current_group>: New method.
4412 * tui/tui-regs.c (tui_reg_command): Update.
4413 * tui/tui-layout.c (tui_set_layout): Update.
4415 2019-08-30 Tom Tromey <tom@tromey.com>
4417 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4418 (tui_data_window::rerender): Don't call
4419 check_and_display_highlight_if_needed.
4420 (tui_data_window::refresh_all): Remove call to
4423 2019-08-30 Tom Tromey <tom@tromey.com>
4425 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4426 (tui_data_window::display_registers_from)
4427 (tui_data_window::display_reg_element_at_line)
4428 (tui_data_window::display_registers_from_line): Remove checks of
4431 2019-08-30 Tom Tromey <tom@tromey.com>
4433 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4435 * tui/tui-regs.c (tui_data_window::show_registers): Call
4437 (tui_data_window::rerender): Rename from display_all_data.
4438 (tui_data_window::rerender): Remove old implementation.
4440 2019-08-30 Tom Tromey <tom@tromey.com>
4442 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4444 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4446 2019-08-29 Bernhard Wodok <barto@gmx.net>
4447 Sergio Durigan Junior <sergiodj@redhat.com>
4450 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4452 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4454 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4455 when searching for types.
4457 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4459 * f-lang.c (f_language_defn): Use f_print_typedef.
4460 * f-lang.h (f_print_typedef): Declare.
4461 * f-typeprint.c (f_print_typedef): Define.
4463 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4465 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4467 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4469 * cli/cli-utils.c (info_print_options_defs): Delete.
4470 (make_info_print_options_def_group): Delete.
4471 (extract_info_print_options): Delete.
4472 (info_print_command_completer): Delete.
4473 (info_print_args_help): Add extra parameter, and optionally
4474 include text about -n flag.
4475 * cli/cli-utils.h (struct info_print_options): Delete.
4476 (extract_info_print_options): Delete declaration.
4477 (info_print_command_completer): Delete declaration.
4478 (info_print_args_help): Add extra parameter, extend header
4480 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4482 * stack.c (struct info_print_options): New type.
4483 (info_print_options_defs): New file scoped variable.
4484 (make_info_print_options_def_group): New static function.
4485 (info_print_command_completer): New static function.
4486 (info_locals_command): Update to use new local functions.
4487 (info_args_command): Likewise.
4488 (_initialize_stack): Add extra parameter to calls to
4489 info_print_args_help.
4490 * symtab.c (search_symbols): Add extra parameter, use this to
4491 possibly excluse non-debug symbols.
4492 (symtab_symbol_info): Add extra parameter, which is passed on to
4494 (struct info_print_options): New type.
4495 (info_print_options_defs): New file scoped variable.
4496 (make_info_print_options_def_group): New static function.
4497 (info_print_command_completer): New static function.
4498 (info_variables_command): Update to use local functions, and pass
4499 extra parameter through to symtab_symbol_info.
4500 (info_functions_command): Likewise.
4501 (info_types_command): Pass additional argument through to
4503 (rbreak_command): Pass extra argument to search_symbols.
4504 (_initialize_symtab): Add extra arguments for calls to
4505 info_print_args_help, and update help text for 'info variables',
4506 'whereis', and 'info functions' commands.
4507 * symtab.h (search_symbols): Add extra argument to declaration.
4508 * NEWS: Mention new flags.
4510 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4512 * symtab.c (lookup_static_symbol): Call the new function (and move
4513 it down to be next to lookup_global_symbol).
4514 (struct global_sym_lookup_data): Add block_enum member and rename to...
4515 (struct global_or_static_sym_lookup_data): ...this.
4516 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4517 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4518 (lookup_symbol_global_or_static_iterator_cb): ...this.
4519 (lookup_global_or_static_symbol): New function.
4520 (lookup_global_symbol): Call new function.
4522 2019-08-26 Tom de Vries <tdevries@suse.de>
4525 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4526 when pc_probe.prob == NULL.
4528 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4530 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4531 variable symbol_linkage to symbol_linkage_.
4533 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4535 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4536 represent whether the symbol is static, dynamic, or we don't
4539 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4541 * gdb/rx-tdep.c (rx_register_names): New.
4542 (rx_register_name): Delete.
4543 (rx_psw_type): Delete.
4544 (rx_fpsw_type): Delete.
4545 (rx_register_type): Delete.
4546 (rx_gdbarch_init): Convert target-descriptions.
4547 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4548 * gdb/features/Makefile: Add rx.xml.
4549 * gdb/features/rx.xml: New.
4550 * gdb/features/rx.c: Generated.
4551 * gdb/NEWS: Mention target description support.
4553 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4555 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4558 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4560 * configure.ac: Don't check for 'dlfcn.h' (moved to
4561 gdbsupport/common.m4).
4562 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4564 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4565 * compile/compile-c-support.c: Include
4566 'gdbsupport/gdb-dlfcn.h'.
4567 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4568 * gdb-dlfcn.c: Move to...
4569 * gdbsupport/gdb-dlfcn.c: ... here.
4570 * gdb-dlfcn.h: Move to...
4571 * gdbsupport/gdb-dlfcn.h: ... here.
4573 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4575 * nios2-tdep.c (struct reg_value): Improve comments. Make
4576 the offset field signed.
4578 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4580 * python/lib/gdb/__init__.py (_execute_file): New function.
4581 * python/python.c (python_run_simple_file): Call gdb._execute_file
4584 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4586 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4587 all uses as this was never set to anything but a zero value.
4589 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4591 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4593 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4595 * tui/tui-data.h (tui_gen_win_info): Add an =default
4596 move constructor, required by some GCC versions.
4598 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4600 * go32-nat.c (go32_sysinfo): Add hygon_p.
4602 2019-08-20 Tom Tromey <tom@tromey.com>
4604 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4605 line_from_reg_element_no, first_reg_element_no_inline,
4606 display_all_data, delete_data_content_windows,
4607 erase_data_content>: Now private.
4609 2019-08-20 Tom Tromey <tom@tromey.com>
4611 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4612 (tui_unhighlight_win, tui_highlight_win)
4613 (tui_win_info::make_window): Update.
4614 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4616 2019-08-20 Tom Tromey <tom@tromey.com>
4618 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4619 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4620 (MAX_PID_WIDTH): Move to tui-stack.c.
4621 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4622 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4623 (MAX_PID_WIDTH): Move from tui-data.h.
4625 2019-08-20 Tom Tromey <tom@tromey.com>
4627 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4628 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4630 (tui_gen_win_info::make_window): Rename from tui_make_window.
4631 (tui_win_info::make_window): New method.
4632 (tui_gen_win_info::make_visible): Update.
4633 * tui/tui-source.c (tui_source_window::set_contents): Update.
4634 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4635 (tui_data_window::display_registers_from): Update.
4636 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4637 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4641 (struct tui_win_info) <make_window>: Declare.
4642 <can_box>: Now virtual.
4643 <title>: New member.
4644 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4645 * tui/tui-command.c (tui_cmd_window::resize): Update.
4647 2019-08-20 Tom Tromey <tom@tromey.com>
4649 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4650 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4651 (tui_data_window::check_register_values): Update.
4653 2019-08-20 Tom Tromey <tom@tromey.com>
4655 * tui/tui-regs.h (struct tui_data_window): Use
4656 DISABLE_COPY_AND_ASSIGN.
4657 <regs_content>: Change type, removing unique_ptr.
4658 <tui_data_window>: Add move constructor.
4659 * tui/tui-regs.c (tui_data_window::show_registers)
4660 (tui_data_window::show_register_group)
4661 (tui_data_window::display_registers_from)
4662 (tui_data_window::display_registers_from)
4663 (tui_data_window::first_data_item_displayed)
4664 (tui_data_window::delete_data_content_windows)
4665 (tui_data_window::rerender, tui_data_window::refresh_window)
4666 (tui_data_window::check_register_values): Update.
4668 2019-08-20 Tom Tromey <tom@tromey.com>
4670 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4671 show_register_group>: Declare.
4672 (tui_show_register_group): Don't declare.
4673 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4675 (tui_data_window::show_register_group): Rename from
4676 tui_show_register_group.
4677 (tui_data_window::check_register_values, tui_reg_command):
4679 * tui/tui-layout.c (tui_set_layout): Update.
4681 2019-08-20 Tom Tromey <tom@tromey.com>
4683 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4685 (tui_check_register_values): Don't declare.
4686 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4687 from tui_check_register_values.
4688 * tui/tui-hooks.c (tui_register_changed): Update.
4690 2019-08-20 Tom Tromey <tom@tromey.com>
4692 * tui/tui-regs.c (tui_reg_layout): Move later.
4693 (tui_show_registers): Don't enable TUI mode or change layout.
4695 2019-08-20 Tom Tromey <tom@tromey.com>
4697 * tui/tui-regs.h (struct tui_data_item_window)
4698 <~tui_data_item_window>: Remove.
4699 <content>: Now a unique_xmalloc_ptr.
4700 * tui/tui-regs.c (tui_register_format): Return a
4702 (tui_get_register): Update.
4703 (~tui_data_item_window): Remove.
4704 (tui_data_window::display_registers_from, tui_display_register):
4706 * tui/tui-io.h (tui_expand_tabs): Update.
4707 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4708 Remove "col" parameter.
4710 2019-08-20 Tom Tromey <tom@tromey.com>
4712 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4714 * tui/tui-regs.c (~tui_data_item_window): Update.
4716 2019-08-20 Tom Tromey <tom@tromey.com>
4718 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4721 2019-08-20 Tom Tromey <tom@tromey.com>
4723 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4725 2019-08-20 Tom Tromey <tom@tromey.com>
4727 * tui/tui-source.h (struct tui_source_window): Update.
4728 * tui/tui-regs.c (tui_show_registers): Update.
4729 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4730 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4731 (NO_REGS_STRING): Remove defines.
4733 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4735 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4736 unnecessary thread walk if remote doesn't support the packet.
4738 2019-08-19 Tom Tromey <tromey@adacore.com>
4740 * python/py-value.c (value_has_field): Fix indentation.
4742 2019-08-19 Tom Tromey <tromey@adacore.com>
4744 * printcmd.c (do_one_display, info_display_command): Update.
4745 * block.h (contained_in): Return bool. Add allow_nested
4747 * block.c (contained_in): Return bool. Add allow_nested
4750 2019-08-19 Tom Tromey <tom@tromey.com>
4752 * configure: Rebuild.
4753 * configure.ac: Disallow the combination of -static-libstdc++ and
4755 * source-cache.c (get_language_name): Handle rust.
4756 (source_cache::get_source_lines): Ignore highlighting exceptions.
4758 2019-08-16 Tom Tromey <tom@tromey.com>
4760 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4761 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4762 (struct tui_source_window_base) <make_visible, refresh_window,
4763 resize>: Remove methods.
4764 <execution_info>: Remove field.
4765 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4766 (tui_show_source_line, tui_source_window_base)
4767 (~tui_source_window_base): Update.
4768 (tui_source_window_base::resize)
4769 (tui_source_window_base::make_visible)
4770 (tui_source_window_base::refresh_window): Remove.
4771 (tui_source_window_base::update_exec_info): Update.
4772 * tui/tui-source.c (tui_source_window::set_contents): Update.
4773 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4775 2019-08-16 Tom Tromey <tom@tromey.com>
4777 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4778 deprecated_query_hook.
4780 2019-08-16 Tom Tromey <tom@tromey.com>
4782 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4783 (tui_update_source_windows_with_line): Update.
4784 * tui/tui-source.h (struct tui_source_window)
4785 <show_symtab_source>: Declare.
4786 (tui_show_symtab_source): Don't declare.
4787 * tui/tui-source.c (tui_show_symtab_source): Rename from
4788 tui_show_symtab_source.
4790 2019-08-16 Tom Tromey <tom@tromey.com>
4792 * tui/tui-winsource.h (struct tui_source_window_base)
4793 <set_contents>: Declare.
4794 * tui/tui-winsource.c
4795 (tui_source_window_base::update_source_window_as_is): Update.
4796 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4798 (tui_set_source_content): Don't declare.
4799 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4800 tui_set_source_content.
4801 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4803 (tui_set_disassem_content): Don't declare.
4804 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4805 tui_set_disassem_content.
4807 2019-08-16 Tom Tromey <tom@tromey.com>
4809 * tui/tui-winsource.h (struct tui_source_window_base)
4810 <update_breakpoint_info>: Declare.
4811 (tui_update_breakpoint_info): Don't declare.
4812 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4813 (tui_update_all_breakpoint_info): Update.
4814 (tui_source_window_base::update_breakpoint_info): Rename from
4815 tui_update_breakpoint_info.
4816 (tui_source_window_base::update_exec_info): Update.
4818 2019-08-16 Tom Tromey <tom@tromey.com>
4820 * tui/tui-winsource.h (struct tui_source_window_base)
4821 <update_source_window>: Declare.
4822 (tui_update_source_window): Don't declare.
4823 * tui/tui-winsource.c
4824 (tui_source_window_base::update_source_window): Rename from
4825 tui_update_source_window.
4826 (tui_source_window_base::rerender): Update.
4827 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4828 * tui/tui-disasm.c (tui_show_disassem)
4829 (tui_show_disassem_and_update_source)
4830 (tui_disasm_window::maybe_update): Update.
4832 2019-08-16 Tom Tromey <tom@tromey.com>
4834 * tui/tui-winsource.h (struct tui_source_window_base)
4835 <update_source_window_as_is>: Declare.
4836 (tui_update_source_window_as_is): Don't declare.
4837 * tui/tui-winsource.c (tui_update_source_window): Update
4838 (tui_source_window_base::update_source_window_as_is): Rename from
4839 tui_update_source_window_as_is.
4840 (tui_source_window_base::refill): Update.
4841 * tui/tui-source.c (tui_show_symtab_source): Update.
4842 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4845 2019-08-16 Tom Tromey <tom@tromey.com>
4847 * tui/tui-winsource.h (tui_update_source_window)
4848 (tui_update_source_window_as_is): Remove "noerror" parameter.
4849 * tui/tui-winsource.c (tui_update_source_window)
4850 (tui_update_source_window_as_is): Remove "noerror" parameter.
4851 (tui_update_source_windows_with_addr)
4852 (tui_update_source_windows_with_line)
4853 (tui_source_window_base::rerender)
4854 (tui_source_window_base::refill): Update.
4855 * tui/tui-source.h (tui_set_source_content)
4856 (tui_show_symtab_source): Remove "noerror" parameter.
4857 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4859 (tui_show_symtab_source): Likewise.
4860 (tui_source_window::maybe_update): Update.
4861 * tui/tui-disasm.c (tui_show_disassem)
4862 (tui_show_disassem_and_update_source)
4863 (tui_disasm_window::do_scroll_vertical)
4864 (tui_disasm_window::maybe_update): Update.
4866 2019-08-16 Tom Tromey <tom@tromey.com>
4868 * tui/tui.c (tui_is_window_visible): Update.
4869 * tui/tui-wingeneral.c (tui_make_window)
4870 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4871 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4872 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4873 (tui_set_win_height_command, parse_scrolling_args): Update.
4874 * tui/tui-source.c (tui_source_window::style_changed): Update.
4875 * tui/tui-regs.c (tui_show_registers)
4876 (tui_data_window::first_data_item_displayed)
4877 (tui_data_window::delete_data_content_windows)
4878 (tui_check_register_values, tui_reg_command): Update.
4879 * tui/tui-disasm.c (tui_show_disassem): Update.
4880 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4882 <is_visible>: Remove field.
4883 * tui/tui-data.c (tui_next_win, tui_prev_win)
4884 (tui_delete_invisible_windows): Update.
4886 2019-08-16 Tom Tromey <tom@tromey.com>
4888 * tui/tui-winsource.h (struct tui_source_window_base)
4889 <m_has_locator>: Remove.
4890 * tui/tui-layout.c (show_source_disasm_command, show_data)
4891 (show_source_or_disasm_and_command): Update.
4893 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4895 * NEWS (Other MI changes): New subsection.
4896 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4897 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4898 * arch-utils.c (default_get_pc_address_flags): New function.
4899 * arch-utils.h (default_get_pc_address_flags): New declaration.
4900 * gdbarch.sh: Add get_pc_address_flags.
4901 * gdbarch.c: Regenerate.
4902 * gdbarch.h: Likewise.
4903 * stack.c (print_pc): New function.
4904 (print_frame_info) (print_frame): Call print_pc.
4906 2019-08-16 Tom de Vries <tdevries@suse.de>
4908 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4909 print_objfile_section_info.
4911 2019-08-15 Tom Tromey <tom@tromey.com>
4913 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4914 calling update_cmdwin_start_line.
4915 * tui/tui-winsource.h (struct tui_source_window_base)
4916 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4917 <rerender>: Declare.
4918 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4920 (tui_source_window_base::set_new_height): Remove.
4921 (tui_source_window_base::rerender): Rename from
4922 do_make_visible_with_new_height.
4923 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4925 (tui_win_info::make_invisible_and_set_new_height)
4926 (tui_win_info::make_visible_with_new_height): Remove.
4927 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4929 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4930 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4931 do_make_visible_with_new_height>: Don't declare.
4932 <rerender>: Declare.
4933 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4935 (tui_data_window::do_make_visible_with_new_height): Remove.
4936 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4937 call tui_show_locator_content.
4938 (tui_gen_win_info::resize): Call rerender.
4939 (show_source_or_disasm_and_command): Don't call
4940 tui_show_locator_content.
4941 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4943 (struct tui_win_info) <rerender>: Declare.
4944 <set_new_height, make_invisible_and_set_new_height,
4945 make_visible_with_new_height>: Don't declare.
4946 * tui/tui-data.c (tui_win_list::rerender): New method.
4947 * tui/tui-command.h (struct tui_cmd_window)
4948 <do_make_visible_with_new_height>: Don't declare.
4950 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4952 2019-08-15 Tom Tromey <tromey@adacore.com>
4954 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4955 * ada-lang.c (ada_enum_name): Likewise.
4957 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4959 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4961 (GdbOutputErrorFile): Likewise.
4962 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4964 (execute_unwinders): Rename to have a leading underscore.
4965 (auto_load_packages): Likewise.
4966 (global scope): Adjust call to auto_load_packages accordingly.
4967 (GdbSetPythonDirectory): Likewise.
4968 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4969 instead of execute_unwinders.
4971 2019-08-15 Tom Tromey <tom@tromey.com>
4973 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4974 (show_data): Don't change window visibility.
4975 (tui_gen_win_info::resize): Remove special case for command
4976 window. Use wresize, when available.
4977 (show_source_or_disasm_and_command): Don't change window
4979 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4980 <make_visible>: New method.
4981 * tui/tui-command.c (tui_cmd_window::resize): New method.
4983 2019-08-15 Tom Tromey <tom@tromey.com>
4985 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4986 (struct tui_source_windows): New.
4987 * tui/tui-winsource.c (tui_display_main): Update.
4988 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4989 (new_height_ok, parse_scrolling_args): Update.
4990 * tui/tui-layout.c (show_layout, show_data): Update.
4991 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4992 (tui_add_to_source_windows): Don't declare.
4993 * tui/tui-data.c (source_windows, tui_source_windows)
4994 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4996 2019-08-15 Tom Tromey <tom@tromey.com>
4998 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5000 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5001 * tui/tui-layout.c (show_source_disasm_command, show_data):
5003 (tui_gen_win_info::resize): Rename.
5004 (show_source_or_disasm_and_command): Update.
5005 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5008 2019-08-15 Tom Tromey <tom@tromey.com>
5010 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5011 * tui/tui-interp.c (tui_interp::init): Don't call
5012 tui_initialize_static_data.
5013 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5015 2019-08-15 Tom Tromey <tom@tromey.com>
5017 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5018 examine tui_win_list.
5020 2019-08-15 Tom Tromey <tom@tromey.com>
5022 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5023 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5024 tui_clear_source_content.
5025 (tui_clear_source_content): Remove.
5026 (tui_source_window_base::do_erase_source_content): Hoist call to
5028 * tui/tui-stack.c (tui_show_frame_info): Don't call
5029 tui_clear_source_content.
5031 2019-08-15 Tom Tromey <tom@tromey.com>
5033 * tui/tui-winsource.h (struct tui_source_window_base)
5034 <do_erase_source_content>: New method.
5035 <erase_source_content>: New method.
5036 (tui_erase_source_content): Don't declare.
5037 * tui/tui-winsource.c (tui_clear_source_content): Update.
5038 (tui_source_window_base::do_erase_source_content): Rename from
5039 tui_erase_source_content.
5040 (tui_source_window_base::show_source_content): Update.
5041 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5042 * tui/tui-source.h (struct tui_source_window)
5043 <erase_source_content>: New method.
5044 * tui/tui-disasm.h (struct tui_disasm_window)
5045 <erase_source_content>: New method.
5047 2019-08-15 Tom Tromey <tom@tromey.com>
5049 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5050 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5052 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5053 * tui/tui-source.c (tui_set_source_content): Update.
5054 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5056 2019-08-15 Tom Tromey <tom@tromey.com>
5058 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5059 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5061 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5063 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5065 (tui_source_window::maybe_update): Update.
5067 2019-08-15 Tom Tromey <tom@tromey.com>
5069 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5070 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5072 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5074 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5076 (tui_disasm_window::maybe_update): Update.
5078 2019-08-15 Tom Tromey <tom@tromey.com>
5080 * tui/tui-winsource.h (struct tui_source_window_base)
5081 <maybe_update>: Declare.
5082 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5084 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5086 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5087 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5089 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5091 2019-08-15 Tom Tromey <tom@tromey.com>
5093 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5095 2019-08-15 Tom Tromey <tom@tromey.com>
5097 * tui/tui-wingeneral.c: Include tui-stack.h.
5098 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5099 (struct tui_locator_window): Move from tui-data.h.
5100 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5101 (tui_initialize_static_data): Move from tui-data.c.
5102 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5103 (struct tui_locator_window): Move to tui-stack.c.
5104 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5105 (tui_initialize_static_data): Move to tui-stack.c.
5107 2019-08-15 Tom Tromey <tom@tromey.com>
5109 * tui/tui-layout.c (show_source_disasm_command)
5110 (show_source_or_disasm_and_command): Use make_visible method, not
5112 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5115 2019-08-15 Tom Tromey <tom@tromey.com>
5117 * tui/tui-wingeneral.h (tui_make_window): Update.
5118 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5120 (tui_gen_win_info::make_visible): Update.
5121 * tui/tui-regs.c (tui_data_window::display_registers_from):
5123 * tui/tui-layout.c (show_source_disasm_command)
5124 (show_source_or_disasm_and_command): Update.
5125 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5126 (enum tui_box): Remove.
5127 (struct tui_win_info) <can_box>: New method.
5128 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5131 2019-08-15 Tom de Vries <tdevries@suse.de>
5133 * linux-nat-trad.c: Include gdbarch.h.
5135 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5137 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5140 2019-08-14 Tom Tromey <tromey@adacore.com>
5142 * darwin-nat.c: Include gdbarch.h.
5143 * darwin-nat-info.c: Include gdbarch.h.
5145 2019-08-13 Tom Tromey <tom@tromey.com>
5147 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5149 * tui/tui-data.c (tui_initialize_static_data): Update.
5151 2019-08-13 Tom Tromey <tom@tromey.com>
5153 * tui/tui-winsource.h (struct tui_exec_info_window)
5154 <~tui_exec_info_window, maybe_allocate_content, get_content,
5156 (struct tui_source_window_base) <set_exec_info_content,
5157 show_exec_info_content>: Don't declare.
5158 * tui/tui-winsource.c
5159 (tui_exec_info_window::maybe_allocate_content): Remove.
5160 (tui_source_window_base::update_exec_info): Rename from
5161 set_exec_info_content.
5162 (tui_source_window_base::show_exec_info_content)
5163 (tui_source_window_base::update_exec_info): Remove.
5165 2019-08-13 Tom Tromey <tom@tromey.com>
5167 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5169 * tui/tui-winsource.c (tui_update_source_window_as_is)
5170 (tui_update_source_windows_with_addr, tui_erase_source_content):
5172 (tui_clear_exec_info_content): Remove.
5174 2019-08-13 Tom Tromey <tom@tromey.com>
5176 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5178 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5179 call tui_erase_exec_info_content.
5180 (tui_clear_exec_info_content): Rename from
5181 tui_erase_exec_info_content.
5182 (tui_clear_exec_info_content): Delete.
5184 2019-08-13 Tom Tromey <tom@tromey.com>
5186 * tui/tui-winsource.h (struct tui_source_window_base)
5187 <show_exec_info_content>: Declare.
5188 (tui_show_exec_info_content): Don't declare.
5189 * tui/tui-winsource.c
5190 (tui_source_window_base::show_exec_info_content): Rename from
5191 tui_show_exec_info_content.
5192 (tui_source_window_base::update_exec_info): Update.
5194 2019-08-13 Tom Tromey <tom@tromey.com>
5196 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5197 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5198 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5199 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5200 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5201 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5204 2019-08-13 Tom Tromey <tom@tromey.com>
5206 * tui/tui-winsource.h (struct tui_source_window_base)
5207 <update_exec_info>: Declare.
5208 (tui_update_exec_info): Don't declare.
5209 * tui/tui-winsource.c (tui_update_source_window_as_is)
5210 (tui_source_window_base::refresh_all)
5211 (tui_update_all_breakpoint_info): Update.
5212 (tui_source_window_base::update_exec_info): Rename from
5213 tui_update_exec_info.
5214 * tui/tui-stack.c (tui_show_frame_info): Update.
5216 2019-08-13 Tom Tromey <tom@tromey.com>
5218 * tui/tui-winsource.h (struct tui_source_window_base)
5219 <set_exec_info_content>: Declare.
5220 (tui_set_exec_info_content): Don't declare.
5221 * tui/tui-winsource.c
5222 (tui_source_window_base::set_exec_info_content): Rename from
5223 tui_set_exec_info_content.
5224 (tui_update_exec_info): Update.
5226 2019-08-13 Tom Tromey <tom@tromey.com>
5228 * tui/tui-winsource.h (struct tui_source_window_base)
5229 <show_source_content>: Declare.
5230 (tui_show_source_content): Don't declare.
5231 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5232 (tui_source_window_base::show_source_content): Rename from
5233 tui_show_source_content.
5234 (tui_source_window_base::refresh_all): Update.
5235 * tui/tui-layout.c (show_source_disasm_command)
5236 (show_source_or_disasm_and_command): Update.
5238 2019-08-13 Tom Tromey <tom@tromey.com>
5240 * tui/tui-winsource.c (tui_erase_source_content)
5241 (tui_show_source_content, tui_source_window_base::refresh_all):
5243 * tui/tui-wingeneral.h
5244 (tui_check_and_display_highlight_if_needed): Don't declare.
5245 * tui/tui-wingeneral.c
5246 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5247 check_and_display_highlight_if_needed.
5248 * tui/tui-win.c (tui_rehighlight_all)
5249 (tui_win_info::make_visible_with_new_height): Update.
5250 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5251 (tui_data_window::erase_data_content)
5252 (tui_data_window::display_all_data): Update.
5253 * tui/tui-data.h (struct tui_win_info)
5254 <check_and_display_highlight_if_needed>: Declare.
5256 2019-08-13 Tom Tromey <tom@tromey.com>
5258 * tui/tui-win.c (tui_resize_all): Call
5259 tui_delete_invisible_windows.
5260 * tui/tui-layout.c (show_layout): Call
5261 tui_delete_invisible_windows.
5262 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5263 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5265 2019-08-13 Tom Tromey <tom@tromey.com>
5267 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5268 tui_add_win_to_layout.
5270 2019-08-13 Tom Tromey <tom@tromey.com>
5272 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5273 * tui/tui-layout.c (tui_default_win_height): Now static.
5275 2019-08-13 Tom Tromey <tom@tromey.com>
5277 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5279 (show_source_disasm_command, show_source_or_disasm_and_command):
5280 Don't check current layout.
5282 2019-08-13 Tom Tromey <tom@tromey.com>
5284 * tui/tui-wingeneral.c (make_all_visible): Remove.
5285 (tui_make_all_invisible): Simplify.
5286 * tui/tui-layout.c (tui_make_all_invisible): Move from
5287 tui-wingeneral.c; simplify.
5288 (show_layout): Hoist call to tui_make_all_invisible.
5289 (show_data): Don't call tui_make_all_invisible.
5291 2019-08-13 Tom Tromey <tom@tromey.com>
5293 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5294 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5296 2019-08-13 Tom Tromey <tom@tromey.com>
5298 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5300 (show_source_disasm_command, show_data)
5301 (show_source_or_disasm_and_command): Don't use
5302 tui_set_current_layout_to.
5303 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5304 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5306 (tui_set_current_layout_to): Remove.
5308 2019-08-13 Tom Tromey <tom@tromey.com>
5310 * tui/tui-layout.c (tui_set_layout): Update.
5311 * tui/tui-data.h (struct tui_layout_def): Remove.
5312 (tui_layout_def): Don't declare.
5313 * tui/tui-data.c (layout_def): Remove.
5314 (tui_layout_def): Remove.
5316 2019-08-13 Tom Tromey <tom@tromey.com>
5318 * tui/tui-winsource.h (struct tui_source_window_base)
5319 <clear_detail>: No longer "override".
5320 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5321 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5322 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5323 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5325 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5327 2019-08-13 Tom Tromey <tromey@adacore.com>
5329 * tracepoint.c: Don't include readline.h or history.h.
5331 2019-08-12 Tom Tromey <tom@tromey.com>
5333 * configure: Rebuild.
5334 * configure.ac: Check for readline 7.
5335 * NEWS: Mention readline 7 requirement.
5338 2019-08-12 Tom Tromey <tom@tromey.com>
5340 * mingw-hdep.c (gdb_select): Remove readline hack.
5342 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5344 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5345 when the function fails.
5347 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5349 * s390-tdep.c (s390_type_align): New function.
5350 (s390_gdbarch_init): Set it as type_align gdbarch method.
5352 2019-08-09 Tom de Vries <tdevries@suse.de>
5355 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5356 pc_low with relocation offset.
5358 2019-08-07 Tom Tromey <tromey@adacore.com>
5360 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5361 (print_frame_args): Update.
5362 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5364 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5365 * frame.h (struct frame_arg): Add initializers.
5366 <error>: Now a unique_xmalloc_ptr.
5368 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5370 * NEWS: Expand the Pointer Authentication entry.
5371 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5372 (aarch64_frame_unmask_lr): ... to this.
5373 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5374 Call aarch64_frame_unmask_lr.
5375 * frame.c (struct frame_info): Add "masked" variable.
5376 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5377 (fprint_frame): Check for masked pc.
5378 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5380 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5381 * stack.c (print_frame): Check for masked pc.
5383 2019-08-06 Tom Tromey <tom@tromey.com>
5385 * stabsread.c (patch_block_stabs, read_one_struct_field)
5386 (read_enum_type): Use obstack_strndup.
5387 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5388 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5389 * dwarf2read.c (guess_full_die_structure_name)
5390 (anonymous_struct_prefix): Use obstack_strndup.
5391 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5392 * c-exp.y (yylex): Use obstack_strndup.
5393 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5394 (write_var_or_type): Use obstack_strndup.
5396 2019-08-06 Tom Tromey <tom@tromey.com>
5398 * symfile.c (reread_symbols): Use obstack_strdup.
5399 * stabsread.c (read_type): Use obstack_strdup.
5400 * gdb_obstack.h (obstack_strdup): New overload.
5401 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5402 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5403 (dwarf2_canonicalize_name): Use obstack_strdup.
5404 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5405 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5408 2019-08-06 Tom Tromey <tom@tromey.com>
5410 * gdb_obstack.h (obstack_strdup): Define.
5411 * gdb_obstack.c (obstack_strdup): Don't define.
5413 2019-08-06 Tom Tromey <tom@tromey.com>
5415 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5417 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5419 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5420 * stabsread.c (common_block_start): Use obstack_strdup.
5421 * objfiles.c (set_objfile_main_name, objfile): Use
5423 * namespace.c (add_using_directive): Use obstack_strdup.
5424 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5425 * jit.c (finalize_symtab): Use obstack_strdup.
5426 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5427 (guess_partial_die_structure_name, partial_die_info::fixup)
5428 (dwarf2_name): Use obstack_strdup.
5429 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5431 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5432 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5434 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5436 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5438 * unittests/help-doc-selftests.c: New file.
5439 * Makefile.in: Add the new file.
5441 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5443 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5444 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5445 the full first line, except when FOR_VALUE_PREFIX. In this case,
5446 the trailing '.' is not output, and the first character is uppercased.
5447 (print_help_for_command): Update call to print_doc_line.
5448 (print_doc_of_command): Likewise.
5449 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5450 * cli/cli-option.c (append_indented_doc): Do not append newline.
5451 (build_help_option): Append newline after first appended_indented_doc
5452 only if a second call is done.
5453 (build_help): Append 2 new lines before each option, except the first
5455 * compile/compile.c (_initialize_compile): Add new lines after
5456 %OPTIONS%, when not at the end of the help.
5457 Change help doc or code
5458 producing the help doc to respect the invariants.
5459 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5460 Also removed the new line after 'Options:', as all other commands
5461 do not put an empty line between 'Options:' and the first option.
5462 * printcmd.c (_initialize_printcmd): Likewise.
5463 * stack.c (_initialize_stack): Likewise.
5464 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5465 incorrectly telling COMMAND is optional.
5466 * ada-lang.c (_initialize_ada_language): Change help doc or code
5467 producing the help doc to respect the invariants.
5468 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5469 * breakpoint.c (_initialize_breakpoint): Likewise.
5470 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5471 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5472 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5473 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5474 _initialize_cli_style): Likewise.
5475 * corelow.c (core_target_info): Likewise.
5476 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5477 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5478 * filesystem.c (_initialize_filesystem): Likewise.
5479 * frame.c (_initialize_frame): Likewise.
5480 * gnu-nat.c (add_task_commands): Likewise.
5481 * infcall.c (_initialize_infcall): Likewise.
5482 * infcmd.c (_initialize_infcmd): Likewise.
5483 * interps.c (_initialize_interpreter): Likewise.
5484 * language.c (_initialize_language): Likewise.
5485 * linux-fork.c (_initialize_linux_fork): Likewise.
5486 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5487 * maint.c (_initialize_maint_cmds): Likewise.
5488 * memattr.c (_initialize_mem): Likewise.
5489 * printcmd.c (_initialize_printcmd): Likewise.
5490 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5492 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5493 * record-btrace.c (_initialize_record_btrace): Likewise.
5494 * record-full.c (_initialize_record_full): Likewise.
5495 * record.c (_initialize_record): Likewise.
5496 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5497 * regcache.c (_initialize_regcache): Likewise.
5498 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5499 _initialize_remote): Likewise.
5500 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5501 * serial.c (_initialize_serial): Likewise.
5502 * skip.c (_initialize_step_skip): Likewise.
5503 * source.c (_initialize_source): Likewise.
5504 * stack.c (_initialize_stack): Likewise.
5505 * symfile.c (_initialize_symfile): Likewise.
5506 * symtab.c (_initialize_symtab): Likewise.
5507 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5508 * top.c (init_main): Likewise.
5509 * tracefile-tfile.c (tfile_target_info): Likewise.
5510 * tracepoint.c (_initialize_tracepoint): Likewise.
5511 * tui/tui-win.c (_initialize_tui_win): Likewise.
5512 * utils.c (add_internal_problem_command): Likewise.
5513 * valprint.c (value_print_option_defs): Likewise.
5515 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5518 * configure.ac: Drop enable-libmcheck support.
5519 * configure, config.in: Rebuild.
5520 * libmcheck.m4: Remove.
5521 * acinclude.m4: Don't include it.
5522 * Makefile.in: Don't distribute it.
5523 * top.c (print_gdb_configuration): Don't mention it.
5525 2019-08-06 Tom Tromey <tom@tromey.com>
5527 * utils.c (set_output_style): Sometimes pass stream to
5529 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5530 * record-btrace.c (btrace_insn_history): Update.
5531 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5533 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5534 Update initializers.
5535 <m_uiout>: New field.
5537 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5538 Remove "uiout" parameter.
5539 (dump_insns): Update.
5540 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5541 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5543 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5545 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5546 (error_in_psymtab_expansion): Likewise.
5547 (lookup_symbol_via_quick_fns): Likewise.
5548 (basic_lookup_transparent_type_quick): Likewise.
5549 (basic_lookup_transparent_type_1): Likewise.
5551 2019-08-06 Tom Tromey <tromey@adacore.com>
5553 * source.c (last_source_error): Now bool.
5554 (print_source_lines_base): Make "noprint" bool. Only open
5555 source file when last_source_visited changes.
5557 2019-08-06 Tom Tromey <tromey@adacore.com>
5559 * annotate.c (annotate_source_line): Use g_source_cache.
5560 * source-cache.c (source_cache::get_plain_source_lines): Change
5561 parameters. Populate m_offset_cache.
5562 (source_cache::ensure): New method.
5563 (source_cache::get_line_charpos): New method.
5564 (extract_lines): Move lower. Change parameters.
5565 (source_cache::get_source_lines): Move lower.
5566 * source-cache.h (class source_cache): Update comment.
5567 <get_line_charpos>: New method.
5568 <get_source_lines>: Update comment.
5569 <clear>: Clear m_offset_cache.
5570 <get_plain_source_lines>: Change parameters.
5571 <ensure>: New method
5572 <m_offset_cache>: New member.
5573 * source.c (forget_cached_source_info_for_objfile): Update.
5574 (info_source_command): Use g_source_cache.
5575 (find_source_lines, open_source_file_with_line_charpos): Remove.
5576 (print_source_lines_base, search_command_helper): Use g_source_cache.
5577 * source.h (open_source_file_with_line_charpos): Don't declare.
5578 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5579 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5582 2019-08-06 Tom Tromey <tromey@adacore.com>
5584 * source-cache.c (source_cache::get_plain_source_lines):
5585 Remove "first_line" and "last_line" parameters.
5586 (source_cache::get_source_lines): Cache plain text.
5587 * source-cache.h (class source_cache)
5588 <get_plain_source_lines>: Update.
5590 2019-08-06 Tom Tromey <tromey@adacore.com>
5592 * source-cache.c (extract_lines): No longer a method.
5593 Changed type of parameter. Include final newline.
5594 (selftests::extract_lines_test): New function.
5595 (_initialize_source_cache): Likewise.
5596 * source-cache.h (class source_cache)
5597 <extract_lines>: Don't declare.
5599 2019-08-06 Tom Tromey <tromey@adacore.com>
5601 * breakpoint.c (init_breakpoint_sal): Update.
5602 (breakpoint): Update.
5603 * breakpoint.h (struct breakpoint) <filter>: Now a
5606 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5608 * NEWS: Mention dictionary access on blocks.
5609 * python/py-block.c (blpy_getitem): New function.
5610 (block_object_as_mapping): New struct.
5611 (block_object_type): Use new struct for tp_as_mapping field.
5613 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5615 * objfiles.h (objfile): Add a comment describing partial symbols.
5617 2019-08-05 Tom Tromey <tromey@adacore.com>
5619 * compile/compile.c (_initialize_compile): Use _(), not N_().
5620 * thread.c (_initialize_thread): Use _(), not N_().
5621 * stack.c (_initialize_stack): Use _(), not N_().
5622 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5624 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5626 * dwarf2read.c (struct dw2_symtab_iterator):
5627 <want_specific_block>: Remove.
5628 <block_index>: Change type to gdb::optional.
5629 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5630 change type of BLOCK_INDEX parameter to gdb::optional.
5631 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5632 (dw2_lookup_symbol): Don't pass argument for
5633 WANT_SPECIFIC_BLOCK.
5634 (dw2_expand_symtabs_for_function): Don't pass argument for
5635 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5636 (class dw2_debug_names_iterator)
5637 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5638 parameter, change BLOCK_INDEX type to gdb::optional.
5639 <m_want_specific_block>: Remove.
5640 <m_block_index>: Change type to gdb::optional.
5641 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5642 gdb::optional. Re-write in function of gdb::optional.
5643 (dw2_debug_names_lookup_symbol): Don't pass argument for
5644 WANT_SPECIFIC_BLOCK.
5645 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5646 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5649 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5651 * NEWS: Mention changes to "info sources" command.
5653 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5655 * symtab.c (filename_partial_match_opts): New struct type.
5656 (struct output_source_filename_data): New members
5657 regexp, c_regexp, partial_match.
5658 (output_source_filename): Use new members to decide to print file.
5659 (info_sources_option_defs): New variable.
5660 (make_info_sources_options_def_group, print_info_sources_header,
5661 info_sources_command_completer):
5663 (info_sources_command): Read new optional arguments.
5664 (_initialize_symtab): Update info sources help.
5666 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5668 * ada-lang.c (exception_support_info_v0): Renamed from...
5669 (default_exception_support_info): ... this. Create new
5671 (ada_has_this_exception_support): Look up catch_handlers_sym.
5672 (ada_exception_support_info_sniffer): Try v0 after default.
5674 2019-08-01 Tom Tromey <tromey@adacore.com>
5676 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5679 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5681 * s12z-tdep.c: Fix include path for s12z-opc.h.
5683 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5685 * NEWS: Require GNU make 3.82.
5687 2019-07-16 Tom Tromey <tom@tromey.com>
5689 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5692 2019-07-30 Tom Tromey <tromey@adacore.com>
5694 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5696 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5698 * printcmd.c (print_address_symbolic): Print negative offsets.
5699 (build_address_symbolic): Force signed arithmetic when computing
5702 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5704 PR/24474: Add a function to lookup static variables.
5705 * NEWS: Mention this new function.
5706 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5707 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5708 * python/python.c (python_GdbMethods): Add new function.
5710 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5712 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5713 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5714 (objfpy_lookup_static_symbol): New function.
5715 (objfile_object_methods): Add new functions.
5717 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5719 * NEWS: Mention 'set|show print frame-info'. Mention new
5720 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5721 backtrace argument. Mention that python frame filtering code
5722 is now consistent with what 'backtrace' command prints.
5724 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5726 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5728 (print_frame_info_auto, print_frame_info_source_line,
5729 print_frame_info_location, print_frame_info_source_and_location,
5730 print_frame_info_location_and_address, print_frame_info_short_location):
5732 (struct frame_print_options): New member print_frame_info.
5733 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5734 * stack.h (get_user_print_what_frame_info): New declaration.
5735 (frame_show_address): New declaration.
5736 * stack.c (print_frame_arguments_choices): New value 'presence'.
5737 (print_frame_info_auto, print_frame_info_source_line,
5738 print_frame_info_location, print_frame_info_source_and_location,
5739 print_frame_info_location_and_address, print_frame_info_short_location,
5740 print_frame_info_choices, print_frame_info_print_what): New definitions.
5741 (print_frame_args): Only print dots for args if print frame-arguments
5743 (frame_print_option_defs): New element for "frame-info".
5744 (get_user_print_what_frame_info): New function.
5745 (frame_show_address): Make non static. Move comment to stack.h.
5746 (print_frame_info_to_print_what): New function.
5747 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5748 to decide what to print.
5749 (backtrace_command_1): Handle the new print_frame_arguments_presence
5751 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5752 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5753 (py_print_frame): In non-mi mode, use LOCATION as default for
5754 print_what, similarly to frame information printed directly by
5755 backtrace command. Handle frame-info user option in non MI mode.
5757 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5759 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5760 Add case for debugging 32-bit target on 64-bit host. Revise
5763 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5765 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5766 instead of find_function_entry_range_from_pc.
5768 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5770 * stack.c (find_frame_funname): Remove code which preferred
5771 minsym over symtab sym in "certain pathological cases".
5773 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5774 parameter. Change type of "do_demangle" to bool.
5775 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5776 Pass suitable "prefer_sym_over_minsym" flag to
5777 build_address_symbolic(). Don't output "+" for negative offsets.
5778 * printcmd.c (print_address_symbolic): Update invocation of
5779 build_address_symbolic to include a "prefer_sym_over_minsym"
5781 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5782 Restrict cases in which use of minimal symbol is preferred to that
5783 of a found symbol. Update comments.
5785 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5786 for entry pc when entry pc is out of range for that FDE.
5788 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5791 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5794 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5796 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5797 this function's Python signature.
5800 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5802 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5803 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5804 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5805 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5806 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5809 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5811 * h8300-tdep.c (h8300_register_name_common): New.
5812 h8300_register_name): Use h8300_register_name_common.
5813 (h8300s_register_name): Likewise.
5814 (h8300sx_register_name): Likewise.
5815 (h8300h_register_nam): New.
5816 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5819 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5821 * arm-tdep.c (arm_skip_cmse_entry): New function.
5822 (arm_is_sgstubs_section): New function.
5823 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5825 2019-07-22 Tom Tromey <tom@tromey.com>
5827 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5830 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5832 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5835 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5837 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5838 so that GDB doesn't match any msymbols when searching in the
5840 (print_symbol_info): Print using typedef_print or type_print based
5841 on the type of the symbol. Add updated FIXME comment moved from...
5842 (_initialize_symtab): ... move and update FIXME comment to above.
5844 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5846 * NEWS: Mention adding -q option to "info types".
5847 * symtab.c (struct info_types_options): New struct.
5848 (info_types_options_defs): New variable.
5849 (make_info_types_options_def_group): New function.
5850 (info_types_command): Use gdb::option framework to parse options.
5851 (info_types_command_completer): New function.
5852 (_initialize_symtab): Extend the help text on "info types" and
5853 register command completer.
5855 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5857 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5858 (lookup_symbol_in_objfile): Change int to block_enum and add a
5859 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5861 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5863 * MAINTAINERS (Write After Approval): Add self.
5865 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5867 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5868 instruction to the dummy code region.
5870 2019-07-19 Tom Tromey <tromey@adacore.com>
5872 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5873 (ARGSUSED, PARAMS, __func__): Remove rules.
5875 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5877 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5878 * features/arm/arm-with-iwmmxt.c: Remove.
5879 * features/arm/arm-with-iwmmxt.xml: Remove.
5880 * features/arm/arm-with-m-fpa-layout.c: Remove.
5881 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5882 * features/arm/arm-with-m-vfp-d16.c: Remove.
5883 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5884 * features/arm/arm-with-m.c: Remove.
5885 * features/arm/arm-with-m.xml: Remove.
5886 * features/arm/arm-with-neon.c: Remove.
5887 * features/arm/arm-with-neon.xml: Remove.
5888 * features/arm/arm-with-vfpv2.c: Remove.
5889 * features/arm/arm-with-vfpv2.xml: Remove.
5890 * features/arm/arm-with-vfpv3.c: Remove.
5891 * features/arm/arm-with-vfpv3.xml: Remove.
5893 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5895 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5897 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5899 * arch/aarch32.c (aarch32_create_target_description): Create
5900 target descriptions using features.
5901 * arch/arm.c (arm_create_target_description)
5902 (arm_create_mprofile_target_description): Likewise.
5903 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5905 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5907 * Makefile.in: Add new files.
5908 * aarch32-tdep.c: New file.
5909 * aarch32-tdep.h: New file.
5910 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5911 Call aarch32_read_description.
5912 * arch/aarch32.c: New file.
5913 * arch/aarch32.h: New file.
5914 * arch/arm.c (arm_create_target_description)
5915 (arm_create_mprofile_target_description): New function.
5916 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5917 (arm_create_target_description)
5918 (arm_create_mprofile_target_description): New declaration.
5919 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5920 read_description functions.
5921 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5923 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5924 * arm-tdep.c (tdesc_arm_list): New variable.
5925 (arm_register_g_packet_guesses): Call create description functions.
5926 (arm_read_description) (arm_read_mprofile_description): New
5928 * arm-tdep.h (arm_read_description)
5929 (arm_read_mprofile_description): Add declaration.
5930 * configure.tgt: Add new files.
5932 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5934 * top.c (new_ui_command): Open specified terminal just once.
5936 2019-07-18 Tom Tromey <tromey@adacore.com>
5938 * symtab.c (main_name): Constify return type.
5939 * symfile.c (set_initial_language): Update.
5940 * symtab.h (main_name): Constify return type.
5942 2019-07-17 Tom Tromey <tom@tromey.com>
5944 * tui/tui-winsource.c (tui_update_source_window)
5945 (tui_update_source_window_as_is)
5946 (tui_update_source_windows_with_line): Remove return.
5947 * tui/tui-disasm.c (tui_show_disassem)
5948 (tui_show_disassem_and_update_source): Remove return.
5949 * tui/tui.c (tui_reset): Remove return.
5950 * tui/tui-wingeneral.c
5951 (tui_check_and_display_highlight_if_needed): Remove return.
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5955 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5957 2019-07-17 Tom Tromey <tom@tromey.com>
5959 * tui/tui-winsource.h (struct tui_exec_info_window)
5960 (struct tui_source_window_base): Move from tui-data.h.
5961 * tui/tui-winsource.c: Move many method definitions from
5962 elsewhere. Remove "structuring" comments.
5963 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5964 (tui_source_window_base::refresh_window): Move to
5966 * tui/tui-win.c (tui_source_window_base::refresh_all)
5967 (tui_source_window_base::update_tab_width)
5968 (tui_source_window_base::set_new_height)
5969 (tui_source_window_base::do_make_visible_with_new_height): Move to
5971 * tui/tui-source.h: Update.
5972 * tui/tui-source.c (tui_source_window_base::reset): Move to
5974 * tui/tui-disasm.h: Update.
5975 * tui/tui-data.h (struct tui_exec_info_window): Move to
5977 (struct tui_source_window_base): Likewise.
5978 * tui/tui-data.c (tui_source_window_base::clear_detail)
5979 (tui_source_window_base, ~tui_source_window_base): Move to
5982 2019-07-17 Tom Tromey <tom@tromey.com>
5984 * tui/tui-win.c (tui_resize_all)
5985 (tui_source_window_base::update_tab_width)
5986 (tui_adjust_win_heights): Update.
5987 (tui_win_info::make_invisible_and_set_new_height): Rename from
5988 make_invisible_and_set_new_height.
5989 * tui/tui-data.h (struct tui_win_info)
5990 <make_invisible_and_set_new_height>: New method.
5992 2019-07-17 Tom Tromey <tom@tromey.com>
5994 * tui/tui.c: Update.
5995 * tui/tui-source.h (struct tui_source_window): Move from
5997 * tui/tui-layout.c: Update.
5998 * tui/tui-disasm.c: Update.
5999 * tui/tui-data.h (struct tui_source_window): Move to
6002 2019-07-17 Tom Tromey <tom@tromey.com>
6004 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6006 * tui/tui-data.h (struct tui_disasm_window): Move to
6009 2019-07-17 Tom Tromey <tom@tromey.com>
6011 * tui/tui-regs.h (struct tui_data_item_window): Move from
6013 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6014 * tui/tui-data.h (struct tui_data_item_window): Move to
6016 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6018 2019-07-17 Tom Tromey <tom@tromey.com>
6020 * tui/tui.c: Update.
6021 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6022 (tui_cmd_window::max_height): Move to tui-command.c.
6023 * tui/tui-layout.c: Update.
6024 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6025 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6027 * tui/tui-command.h (struct tui_cmd_window): Move from
6029 * tui/tui-command.c: Remove "structuring" comments.
6030 (tui_cmd_window::clear_detail)
6031 (tui_cmd_window::do_make_visible_with_new_height)
6032 (tui_cmd_window::max_height): Move from elsewhere.
6034 2019-07-17 Tom Tromey <tom@tromey.com>
6036 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6038 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6039 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6041 2019-07-17 Tom Tromey <tom@tromey.com>
6043 * tui/tui.c: Update.
6044 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6046 * tui/tui-windata.h: Remove file.
6047 * tui/tui-windata.c: Remove file.
6048 * tui/tui-win.c (tui_data_window::set_new_height)
6049 (tui_data_window::do_make_visible_with_new_height): Move to
6051 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6052 * tui/tui-regs.c: Remove "structuring" comments.
6053 (tui_data_window::first_data_item_displayed)
6054 (tui_data_window::delete_data_content_windows)
6055 (tui_data_window::erase_data_content)
6056 (tui_data_window::display_all_data)
6057 (tui_data_window::refresh_all)
6058 (tui_data_window::do_scroll_vertical)
6059 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6060 (tui_data_window::do_make_visible_with_new_height)
6061 (tui_data_window::refresh_window): Move from elsewhere.
6062 (_initialize_tui_regs): Move to end of file.
6063 * tui/tui-layout.c: Update.
6064 * tui/tui-hooks.c: Update.
6065 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6066 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6068 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6070 2019-07-17 Tom Tromey <tom@tromey.com>
6072 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6075 2019-07-17 Tom Tromey <tom@tromey.com>
6077 * tui/tui-win.c (tui_source_window_base::set_new_height)
6078 (tui_source_window_base::do_make_visible_with_new_height): Use
6079 m_has_locator field directly.
6080 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6082 (struct tui_source_window_base) <has_locator>: Likewise.
6084 2019-07-17 Tom Tromey <tom@tromey.com>
6086 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6088 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6090 * tui/tui-win.c (tui_source_window_base::set_new_height)
6091 (tui_source_window_base::set_new_height)
6092 (make_invisible_and_set_new_height)
6093 (tui_source_window_base::do_make_visible_with_new_height)
6094 (tui_source_window_base::do_make_visible_with_new_height):
6096 * tui/tui-layout.c (show_source_disasm_command, show_data)
6097 (show_source_or_disasm_and_command): Update.
6098 * tui/tui-layout.c (show_layout): Update.
6100 2019-07-17 Tom Tromey <tom@tromey.com>
6102 * tui/tui-layout.c (make_data_window): Remove.
6103 (show_data): Unify creation and re-initialization cases.
6105 2019-07-17 Tom Tromey <tom@tromey.com>
6107 * tui/tui-layout.c (make_source_window, make_disasm_window):
6109 (show_data): Unify creation and re-initialization cases.
6111 2019-07-17 Tom Tromey <tom@tromey.com>
6113 * tui/tui-layout.c (make_command_window): Remove.
6114 (show_source_disasm_command, show_source_or_disasm_and_command):
6115 Unify creation and re-initialization cases.
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6119 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6120 creation and re-initialization cases.
6122 2019-07-17 Tom Tromey <tom@tromey.com>
6124 * tui/tui-regs.c (tui_get_register): Return void.
6126 2019-07-17 Tom Tromey <tom@tromey.com>
6128 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6131 2019-07-17 Tom Tromey <tom@tromey.com>
6133 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6136 2019-07-17 Tom Tromey <tom@tromey.com>
6138 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6139 * tui/tui-regs.c (tui_reg_layout): New function.
6140 (tui_show_registers, tui_reg_command): Use it.
6141 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6142 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6144 (tui_layout_command): Remove.
6146 2019-07-17 Tom Tromey <tom@tromey.com>
6148 * tui/tui-layout.h (tui/tui-layout): Return void.
6149 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6151 2019-07-17 Tom Tromey <tom@tromey.com>
6153 * tui/tui-layout.c (show_source_disasm_command, show_data):
6155 (reset_locator): Remove.
6156 (show_source_or_disasm_and_command): Update.
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6160 * tui/tui-source.c (tui_source_window_base::reset): Remove
6162 * tui/tui-layout.c (make_command_window, make_source_window)
6163 (make_disasm_window, make_data_window)
6164 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6165 (reset_locator, show_source_or_disasm_and_command): Update.
6166 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6168 (struct tui_source_window_base) <reset>: Likewise.
6170 2019-07-17 Tom Tromey <tom@tromey.com>
6172 * tui/tui-layout.c (show_source_disasm_command): Use
6174 (reset_locator): New function.
6175 (init_and_make_win): Remove.
6176 (show_source_or_disasm_and_command): Use reset_locator.
6178 2019-07-17 Tom Tromey <tom@tromey.com>
6180 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6182 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6184 * tui/tui-source.c (tui_source_window_base::reset): New method.
6185 * tui/tui-layout.c (make_command_window): Don't call
6187 (make_source_window, make_disasm_window): Don't call
6188 make_source_or_disasm_window.
6189 (make_data_window): Don't call init_and_make_win. Change calling
6191 (show_source_disasm_command, show_data): Simplify.
6192 (make_source_or_disasm_window): Remove.
6193 (show_source_or_disasm_and_command): Simplify.
6194 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6195 (struct tui_source_window_base) <reset>: Likewise.
6196 <execution_info>: Remove initializer.
6197 * tui/tui-data.c (tui_source_window_base): Initialize
6200 2019-07-17 Tom Tromey <tom@tromey.com>
6202 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6205 2019-07-17 Tom Tromey <tom@tromey.com>
6207 * tui/tui.c (tui_rl_other_window): Update.
6208 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6209 superclass method first. Always iterate over regs_content.
6210 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6212 * tui/tui-win.c (tui_set_focus_command): Update.
6214 2019-07-17 Tom Tromey <tom@tromey.com>
6216 * tui/tui-win.c (tui_set_focus_command): Rename from
6217 tui_set_focus. Call tui_enable.
6218 (tui_set_focus_command): Remove.
6220 2019-07-17 Tom Tromey <tom@tromey.com>
6222 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6224 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6226 (tui_data_window::refresh_window): Call refresh_window on data
6227 items. Always call superclass refresh_window.
6228 (tui_win_info::refresh): Remove.
6229 (tui_source_window_base::refresh_window): Update.
6230 (tui_refresh_all): Update.
6231 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6233 (show_source_or_disasm_and_command): Likewise.
6234 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6235 (struct tui_source_window_base) <refresh>: Likewise.
6237 2019-07-17 Tom Tromey <tom@tromey.com>
6239 * tui/tui-winsource.c (tui_clear_source_content)
6240 (tui_show_source_content): Update.
6241 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6242 whether content is empty.
6243 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6246 2019-07-17 Tom Tromey <tom@tromey.com>
6248 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6250 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6251 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6253 2019-07-17 Tom Tromey <tom@tromey.com>
6255 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6256 (struct tui_data_item_window): Update.
6258 2019-07-17 Tom Tromey <tom@tromey.com>
6260 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6261 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6264 2019-07-17 Tom Tromey <tom@tromey.com>
6266 * tui/tui-winsource.h (tui_erase_source_content)
6267 (tui_clear_source_content): Remove "display_prompt" parameter.
6268 * tui/tui-winsource.c (tui_update_source_window_as_is)
6269 (tui_update_source_windows_with_addr): Update.
6270 (tui_clear_source_content): Remove "display_prompt" parameter.
6271 (tui_erase_source_content): Likewise. Simplify.
6272 (tui_show_source_content): Update.
6273 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6274 * tui/tui-stack.c (tui_show_frame_info): Update.
6275 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6278 2019-07-17 Tom Tromey <tom@tromey.com>
6280 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6281 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6283 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6286 2019-07-17 Tom Tromey <tom@tromey.com>
6288 * tui/tui-winsource.c (tui_clear_source_content)
6289 (tui_show_source_content, tui_show_exec_info_content)
6290 (tui_clear_exec_info_content): Update.
6291 * tui/tui-stack.c (tui_show_locator_content): Update.
6292 (tui_show_frame_info): Update.
6293 * tui/tui-source.h (tui_source_window): Don't declare.
6294 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6295 from tui_source_is_displayed.
6296 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6298 (struct tui_source_window_base) <content_in_use>: New field. Now
6300 (struct tui_source_window) <showing_source_p>: New method.
6301 (TUI_SRC_WIN): Change cast.
6302 * tui/tui-data.c (tui_initialize_static_data): Update.
6304 2019-07-17 Tom Tromey <tom@tromey.com>
6306 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6308 * tui/tui-source.c (tui_source_window::location_matches_p): New
6310 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6312 * tui/tui-data.h (struct tui_source_window_base)
6313 <location_matches_p>: New method.
6314 (struct tui_source_window, struct tui_disasm_window)
6315 <location_matches_p>: Likewise.
6317 2019-07-17 Tom Tromey <tom@tromey.com>
6319 * tui/tui-win.c (tui_set_win_height_command): Rename from
6321 (tui_set_win_height_command): Remove.
6323 2019-07-17 Tom Tromey <tom@tromey.com>
6325 * tui/tui-source.c (tui_source_window): New constructor. Add
6327 (~tui_source_window): New destructor.
6328 (tui_source_window::style_changed): New method.
6329 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6330 (tui_attach_detach_observers): Update.
6331 * tui/tui-data.h (struct tui_source_window): Make constructor not
6332 inline. Add destructor.
6333 (struct tui_source_window) <style_changed>: New method.
6334 <m_observable>: New member.
6336 2019-07-17 Tom Tromey <tom@tromey.com>
6338 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6339 * tui/tui-win.c (tui_resize_all): Fix typo.
6341 2019-07-17 Tom Tromey <tom@tromey.com>
6343 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6344 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6345 (tui_refresh_all): Remove "list" parameter. Use foreach.
6346 * tui/tui-win.c (window_name_completer): Use foreach.
6347 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6348 (update_tab_width): Likewise.
6349 * tui/tui-layout.c (show_layout): Update.
6350 * tui/tui-data.h (class tui_window_iterator): New.
6351 (struct all_tui_windows): New.
6352 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6354 2019-07-17 Tom Tromey <tom@tromey.com>
6356 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6357 parameter. Don't reference globals.
6358 (tui_reg_command): Update.
6360 2019-07-17 Tom Tromey <tom@tromey.com>
6362 * tui/tui-regs.c (tui_show_registers): Simplify.
6364 2019-07-17 Tom Tromey <tom@tromey.com>
6366 * tui/tui-regs.c (tui_show_registers): Update.
6367 (tui_show_register_group): Add win_info parameter.
6369 2019-07-17 Tom Tromey <tom@tromey.com>
6371 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6372 Rename from tui_display_reg_element_at_line.
6373 (tui_data_window::display_registers_from_line): Update.
6374 * tui/tui-data.h (struct tui_data_window)
6375 <display_reg_element_at_line>: New method.
6377 2019-07-17 Tom Tromey <tom@tromey.com>
6379 * tui/tui-regs.h (tui_display_registers_from)
6380 (tui_display_registers_from_line): Don't declare.
6381 * tui/tui-windata.c (tui_data_window::display_all_data)
6382 (tui_data_window::refresh_all)
6383 (tui_data_window::do_scroll_vertical): Update.
6384 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6385 from tui_display_registers_from.
6386 (tui_display_reg_element_at_line): Update.
6387 (tui_data_window::display_registers_from_line): Rename from
6388 tui_display_registers_from_line.
6389 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6390 display_registers_from_line>: New methods.
6392 2019-07-17 Tom Tromey <tom@tromey.com>
6394 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6395 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6396 from tui_erase_data_content.
6397 (tui_data_window::display_all_data)
6398 (tui_data_window::refresh_all)
6399 (tui_data_window::do_scroll_vertical): Update.
6400 * tui/tui-regs.c (tui_show_registers): Update.
6401 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6404 2019-07-17 Tom Tromey <tom@tromey.com>
6406 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6409 (tui_data_window::delete_data_content_windows): Rename from
6410 tui_delete_data_content_windows.
6411 (tui_data_window::display_all_data)
6412 (tui_data_window::do_scroll_vertical): Update.
6413 * tui/tui-data.h (struct tui_data_window)
6414 <delete_data_content_windows>: New method.
6416 2019-07-17 Tom Tromey <tom@tromey.com>
6418 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6419 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6421 2019-07-17 Tom Tromey <tom@tromey.com>
6423 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6424 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6425 from tui_display_all_data.
6427 (tui_data_window::do_make_visible_with_new_height): Update.
6428 * tui/tui-regs.c (tui_show_registers): Update.
6429 * tui/tui-layout.c (tui_set_layout): Update.
6430 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6433 2019-07-17 Tom Tromey <tom@tromey.com>
6435 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6436 * tui/tui-windata.c (tui_display_data_from): Remove.
6437 (tui_data_window::refresh_all): Update.
6439 2019-07-17 Tom Tromey <tom@tromey.com>
6441 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6442 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6443 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6444 tui_display_registers_from_line.
6445 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6446 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6447 "force_display" parameter.
6449 2019-07-17 Tom Tromey <tom@tromey.com>
6451 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6453 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6454 Rename from tui_first_reg_element_no_inline.
6455 (tui_display_reg_element_at_line)
6456 (tui_display_registers_from_line): Update.
6457 * tui/tui-data.h (struct tui_data_window)
6458 <first_reg_element_no_inline>: New method.
6460 2019-07-17 Tom Tromey <tom@tromey.com>
6462 * tui/tui-windata.c (tui_display_data_from)
6463 (tui_data_window::do_scroll_vertical): Update.
6464 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6465 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6466 Rename from tui_line_from_reg_element_no.
6467 (tui_display_registers_from_line): Update.
6468 * tui/tui-data.h (struct tui_data_window)
6469 <line_from_reg_element_no>: New method.
6471 2019-07-17 Tom Tromey <tom@tromey.com>
6473 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6474 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6475 tui_last_regs_line_no.
6476 (tui_display_reg_element_at_line)
6477 (tui_display_registers_from_line): Update.
6478 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6481 2019-07-17 Tom Tromey <tom@tromey.com>
6484 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6485 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6486 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6487 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6488 (tui_update_breakpoint_info): Likewise.
6489 * tui/tui-hooks.c (tui_event_create_breakpoint)
6490 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6493 2019-07-17 Tom Tromey <tom@tromey.com>
6495 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6497 2019-07-17 Tom Tromey <tom@tromey.com>
6499 * tui/tui-winsource.c (tui_update_source_window_as_is)
6500 (tui_update_source_windows_with_addr): Update.
6501 * tui/tui-source.h (tui_set_source_content)
6502 (tui_show_symtab_source): Add "win_info" parameter.
6503 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6505 (tui_show_symtab_source): Likewise.
6507 2019-07-17 Tom Tromey <tom@tromey.com>
6509 * tui/tui-wingeneral.c
6510 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6512 2019-07-17 Tom Tromey <tom@tromey.com>
6514 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6515 (struct tui_cmd_window) <can_scroll>: New method.
6516 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6519 2019-07-17 Tom Tromey <tromey@adacore.com>
6521 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6522 do_field_signed>: Rename. Change type of "value".
6523 * ui-out.c (ui_out::field_signed): Rename from field_int.
6524 Change type of "value".
6525 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6527 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6528 do_field_int. Change type of "value".
6529 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6530 do_field_int. Change type of "value".
6531 * tracepoint.c (trace_status_mi, tfind_1)
6532 (print_one_static_tracepoint_marker): Update.
6533 * thread.c (print_thread_info_1, print_selected_thread_frame):
6535 * stack.c (print_frame, print_frame_info): Update.
6536 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6538 * source.c (print_source_lines_base): Update.
6539 * skip.c (info_skip_command): Update.
6540 * record-btrace.c (btrace_ui_out_decode_error)
6541 (btrace_call_history_src_line): Update.
6542 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6544 * progspace.c (print_program_space): Update.
6545 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6546 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6547 do_field_int. Change type of "value".
6548 * mi/mi-out.c (mi_ui_out::do_table_begin)
6549 (mi_ui_out::do_table_header): Update.
6550 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6552 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6553 (mi_cmd_data_list_changed_registers, output_register)
6554 (mi_cmd_data_read_memory, mi_load_progress)
6555 (mi_cmd_trace_frame_collected): Update.
6556 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6558 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6559 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6560 (mi_cmd_var_list_children, varobj_update_one): Update.
6561 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6562 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6563 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6564 * inferior.c (print_inferior): Update.
6565 * gdb_bfd.c (print_one_bfd): Update.
6566 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6568 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6569 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6570 do_field_int. Change type of "value".
6571 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6572 do_field_int. Change type of "value".
6573 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6574 (print_one_breakpoint_location, print_it_catch_fork)
6575 (print_one_catch_fork, print_it_catch_vfork)
6576 (print_one_catch_vfork, print_it_catch_solib)
6577 (print_it_catch_exec, print_it_ranged_breakpoint)
6578 (print_mention_watchpoint, print_mention_masked_watchpoint)
6579 (bkpt_print_it, update_static_tracepoint): Update.
6580 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6581 * break-catch-syscall.c (print_it_catch_syscall): Update.
6582 * ada-tasks.c (print_ada_task_info): Update.
6583 * ada-lang.c (print_it_exception, print_mention_exception):
6586 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6588 PR breakpoints/24541
6589 * gdbarch.c: Regenerate.
6590 * gdbarch.h: Regenerate.
6591 * gdbarch.sh: Adjust return type and parameter types for
6592 'stap_adjust_register'.
6593 (i386_stap_adjust_register): Adjust signature and return new
6595 * stap-probe.c (stap_parse_register_operand): Adjust use of
6596 'gdbarch_stap_adjust_register'.
6598 2019-07-17 Tom Tromey <tromey@adacore.com>
6600 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6602 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6604 (struct s390_process_info): Add initializers.
6605 (s390_add_process): Use new.
6606 (s390_linux_nat_target::low_forget_process): Use delete.
6607 (s390_linux_nat_target::low_new_fork)
6608 (s390_linux_nat_target::stopped_by_watchpoint)
6609 (s390_linux_nat_target::low_prepare_to_resume)
6610 (s390_linux_nat_target::insert_watchpoint)
6611 (s390_linux_nat_target::insert_hw_breakpoint)
6612 (s390_linux_nat_target::remove_watchpoint)
6613 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6615 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6617 * aarch64-fbsd-nat.c: Include regcache.h.
6618 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6620 (aarch64_fbsd_nat_target::fetch_registers)
6621 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6623 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6625 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6627 * fbsd-nat.c: Include gdbarch.h.
6629 2019-07-15 Tom Tromey <tromey@adacore.com>
6631 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6633 2019-07-15 Tom Tromey <tromey@adacore.com>
6635 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6636 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6637 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6638 * cli-out.c (cli_ui_out::do_field_int): New method.
6639 * ui-out.c (ui_out::field_unsigned): New method.
6640 * symfile.c (generic_load): Use field_unsigned.
6641 (print_transfer_performance): Likewise.
6642 * record-btrace.c (ui_out_field_uint): Remove.
6643 (btrace_call_history_insn_range, btrace_call_history): Use
6645 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6647 * ui-out.h (class ui_out) <field_unsigned>: New method.
6648 <do_field_unsigned>: Likewise.
6650 2019-07-15 Tom Tromey <tromey@adacore.com>
6652 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6653 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6654 * target.c (flash_erase_command): Use field_string.
6655 * infrun.c (print_signal_received_reason): Use field_string.
6656 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6657 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6659 * ada-tasks.c (print_ada_task_info): Use field_string.
6661 2019-07-15 Tom Tromey <tromey@adacore.com>
6663 * target.c (flash_erase_command): Use field_core_addr.
6664 * symfile.c (generic_load): Use field_core_addr.
6665 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6666 Use field_core_addr.
6667 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6670 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6672 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6673 value if its desired type is smaller than a CORE_ADDR and signed.
6675 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6677 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6678 of changes to field names, and use new is_reference field to
6679 decide if a property is a reference or not.
6680 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6682 (struct dwarf2_property_baton): Update header comment, rename
6683 'referenced_type' to 'property_type' and update comments.
6684 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6685 default property type, store in property baton, update to take
6686 accound of renamed field.
6687 (read_func_scope): Update call to attr_to_dynamic_prop.
6688 (read_array_type): Likewise.
6689 (dwarf2_per_cu_addr_sized_int_type): New function.
6690 (read_subrange_index_type): Move type finding code to
6691 dwarf2_per_cu_addr_sized_int_type.
6692 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6693 (dwarf2_per_cu_addr_type): New function.
6694 (set_die_type): Update calls to attr_to_dynamic_prop.
6696 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6698 * dwarf2read.c (read_subrange_index_type): New function.
6699 (read_subrange_type): Move code into new function and call it.
6700 * gdbtypes.c (create_range_type): Add some asserts.
6702 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6705 update return statements.
6706 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6707 declaration, and update comment to match.
6708 * gdbtypes.c (resolve_dynamic_array): Update call to
6709 dwarf2_evaluate_property to match new return type.
6711 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6713 * valarith.c (value_subscripted_rvalue): Change lowerbound
6714 parameter type from int to LONGEST.
6715 * value.h (value_subscripted_rvalue): Likewise in declaration.
6717 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6719 * cli/cli-utils.c (info_print_command_completer): New function.
6720 * cli/cli-utils.h: Add 'completer.h' include, and forward
6721 declaration for 'struct cmd_list_element'.
6722 (info_print_command_completer): Declare.
6723 * stack.c (_initialize_stack): Add completer for 'info locals' and
6725 * symtab.c (_initialize_symtab): Add completer for 'info
6726 variables' and 'info functions'.
6727 * NEWS: Mention completion for additional info commands.
6729 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6731 * cli/cli-utils.c (extract_info_print_args): Delete.
6732 (extract_arg_maybe_quoted): Delete.
6733 (info_print_options_defs): New variable.
6734 (make_info_print_options_def_group): New function.
6735 (extract_info_print_options): Define new function.
6736 * cli/cli-utils.h (extract_info_print_args): Delete.
6737 (struct info_print_options): New structure.
6738 (extract_info_print_options): Declare new function.
6739 * stack.c (info_locals_command): Update to use new
6740 extract_info_print_options, also add a header comment.
6741 (info_args_command): Likewise.
6742 * symtab.c (info_variables_command): Likewise.
6743 (info_functions_command): Likewise.
6745 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6747 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6748 to extract string arguments.
6749 * common/common-utils.c (extract_string_maybe_quoted): New function.
6750 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6752 2019-07-11 Tom Tromey <tromey@adacore.com>
6754 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6755 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6756 * top.h (gdbinit): Don't declare.
6757 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6759 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6760 * top.c (gdb_init): Don't call init_cli_cmds.
6762 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6764 2019-07-11 Tom Tromey <tromey@adacore.com>
6766 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6767 after it has been moved.
6769 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6771 * valops.c (value_must_coerce_to_target): Change return type to
6773 * value.h (value_must_coerce_to_target): Likewise.
6775 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6777 * breakpoint.c (is_hardware_watchpoint): Remove
6778 forward-declaration.
6779 (is_masked_watchpoint): Change return type to bool.
6780 (is_tracepoint): Likewise.
6781 (is_breakpoint): Likewise.
6782 (is_hardware_watchpoint): Likewise.
6783 (is_watchpoint): Likewise.
6784 (is_no_memory_software_watchpoint): Likewise.
6785 (is_catchpoint): Likewise.
6786 (breakpoint_1): Make FILTER parameter's return type bool.
6787 is_masked_watchpoint): Change return type to bool.
6788 (save_breakpoints): Make FILTER parameter's return type bool.
6789 * breakpoint.h (is_breakpoint): Change return type to bool.
6790 (is_watchpoint): Likewise.
6791 (is_catchpoint): Likewise.
6792 (is_tracepoint): Likewise.
6794 2019-07-10 Tom Tromey <tom@tromey.com>
6796 * defs.h: Don't include gdbarch.h.
6797 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6798 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6799 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6800 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6801 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6802 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6803 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6804 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6805 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6806 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6807 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6808 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6809 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6810 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6811 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6812 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6813 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6814 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6815 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6816 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6817 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6818 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6819 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6820 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6821 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6822 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6823 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6825 2019-07-10 Tom Tromey <tromey@adacore.com>
6827 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6828 * breakpoint.c (init_ada_exception_breakpoint): Register as
6830 (print_one_breakpoint_location, print_one_breakpoint): Use
6831 is_ada_exception_catchpoint.
6832 * ada-lang.c (class ada_catchpoint_location): Pass
6833 bp_loc_software_breakpoint to bp_location constructor.
6834 (is_ada_exception_catchpoint): New function.
6836 2019-07-10 Tom Tromey <tromey@adacore.com>
6838 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6840 (struct arm_exidx_entry): New method operator<.
6841 (struct arm_exidx_data) <section_maps>: Change type.
6842 (arm_exidx_data_free): Remove.
6843 (arm_exidx_data_key): Change type. Move lower.
6844 (arm_exidx_new_objfile): Update.
6845 (arm_compare_exidx_entries): Remove.
6846 (arm_find_exidx_entry, _initialize_arm_tdep)
6848 2019-07-10 Tom Tromey <tromey@adacore.com>
6850 * solib-spu.c (ocl_program_data_key): Change type.
6851 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6854 2019-07-10 Tom Tromey <tromey@adacore.com>
6856 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6857 (struct solib_aix_inferior_data) <library_list>: Change type.
6858 (solib_aix_inferior_data_handle): Change type.
6859 (get_solib_aix_inferior_data): Update.
6860 (solib_aix_free_library_list): Remove.
6861 (library_list_start_library): Update.
6862 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6864 (solib_aix_get_library_list)
6865 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6866 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6868 2019-07-10 Tom Tromey <tromey@adacore.com>
6870 * solib-dsbt.c (struct dsbt_info): Add initializers.
6871 (solib_dsbt_pspace_data): Change type.
6872 (dsbt_pspace_data_cleanup): Remove.
6873 (get_dsbt_info, _initialize_dsbt_solib): Update.
6875 2019-07-10 Tom Tromey <tromey@adacore.com>
6877 * spu-tdep.c (spu_overlay_data): Change type.
6878 (spu_get_overlay_table, spu_overlay_new_objfile)
6879 (_initialize_spu_tdep): Update.
6881 2019-07-10 Tom Tromey <tromey@adacore.com>
6883 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6885 (dbx_objfile_data_key): Change type and declare later.
6886 (DBX_SYMFILE_INFO): Rewrite.
6887 * dbxread.c (dbx_objfile_data_key): Change type.
6888 (dbx_symfile_init): Update.
6889 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6890 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6891 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6893 2019-07-10 Tom Tromey <tromey@adacore.com>
6895 * jit.c (jit_program_space_key): Change type. Move lower.
6896 (get_jit_program_space_data): Update.
6897 (jit_program_space_data_cleanup): Remove.
6898 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6900 (struct jit_program_space_data): Add initializers.
6902 2019-07-10 Tom Tromey <tromey@adacore.com>
6904 * solib-darwin.c (struct darwin_info): Add initializers.
6905 (solib_darwin_pspace_data): Change type.
6906 (darwin_pspace_data_cleanup): Remove.
6907 (get_darwin_info, _initialize_darwin_solib): Update.
6909 2019-07-10 Tom Tromey <tromey@adacore.com>
6911 * remote-sim.c (struct sim_inferior_data): Add initializers,
6912 constructor, and destructor.
6913 (sim_inferior_data_key): Change type. Move lower.
6914 (check_for_duplicate_sim_descriptor): Update.
6915 (get_sim_inferior_data): Use new. Update.
6916 (~sim_inferior_data_cleanup): Rename from
6917 sim_inferior_data_cleanup. Simplify.
6918 (gdbsim_close_inferior, simulator_command)
6919 (sim_command_completer, _initialize_remote_sim): Update.
6920 (next_pid, INITIAL_PID): Move earlier.
6922 2019-07-10 Tom Tromey <tromey@adacore.com>
6924 * python/python-internal.h (create_thread_object): Return
6926 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6927 * python/py-inferior.c (struct threadlist_entry): Add
6929 <thread_obj>: Now a gdbpy_ref.
6930 (thread_to_thread_object): Update.
6931 (add_thread_object): Use new.
6932 (delete_thread_object): Use delete.
6933 (infpy_threads): Update.
6934 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6937 2019-07-10 Tom Tromey <tromey@adacore.com>
6939 * valops.c (value_cast): Specialize error message for Ada.
6941 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6943 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6945 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6947 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6948 bpstat_should_step): Return bool, adjust comments.
6949 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6950 bpstat_should_step): Likewise.
6952 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6954 * features/Makefile: Use feature target descriptions for Arm.
6955 * features/arm/arm-core.c: Generate new file.
6956 * features/arm/arm-fpa.c: Likewise.
6957 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6958 * features/arm/arm-m-profile.c: Likewise.
6959 * features/arm/arm-vfpv2.c: Likewise.
6960 * features/arm/arm-vfpv3.c: Likewise.
6961 * features/arm/xscale-iwmmxt.c: Likewise.
6962 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6964 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6966 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6969 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6971 * features/aarch64-pauth.c: Regenerate.
6973 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6975 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6977 (bpstat_what): Use false instead of 0.
6979 2019-07-09 Pedro Alves <palves@redhat.com>
6981 * break-catch-throw.c (is_exception_catchpoint): New.
6982 * breakpoint.c (print_one_breakpoint_location): New parameter
6983 'raw_loc'. Handle it. Use
6984 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6985 looking at the breakpoint's type.
6986 (print_one_breakpoint): If handling "maint info breakpoints", also
6987 print locations of exception catchpoints.
6988 * breakpoint.h (is_exception_catchpoint): Declare.
6990 2019-07-09 Pedro Alves <palves@redhat.com>
6992 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6994 (allocate_location_exception_catchpoint): New.
6995 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6996 (initialize_throw_catchpoint_ops): Install
6997 allocate_location_exception_catchpoint as allocate_location
6999 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7000 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7002 (breakpoint_address_is_meaningful): Delete.
7003 (bl_address_is_meaningful): New.
7004 (breakpoint_locations_match): Adjust comment.
7005 (bp_location_from_bp_type): New, factored out of...
7006 (bp_location::bp_location(breakpoint *)): ... this.
7007 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7009 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7010 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7011 breakpoint_address_is_meaningful.
7012 (bp_locations_compare): Adjust comment.
7013 (update_global_location_list): Use bl_address_is_meaningful
7014 instead of breakpoint_address_is_meaningful.
7015 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7017 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7018 * python/py-breakpoint.c (bppy_get_location): No longer check
7019 whether location is null.
7021 2019-07-09 Pedro Alves <palves@redhat.com>
7024 * breakpoint.c (print_one_breakpoint_location): Remove
7025 single-location assert.
7027 2019-07-09 Tom Tromey <tom@tromey.com>
7029 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7030 * configure: Rebuild.
7031 * configure.ac: Change common to gdbsupport.
7032 * gdbsupport: Rename from common.
7033 * acinclude.m4: Change common to gdbsupport.
7034 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7035 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7037 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7038 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7039 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7040 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7041 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7042 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7043 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7044 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7045 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7046 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7047 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7048 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7049 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7050 coff-pe-read.c, command.h, compile/compile-c-support.c,
7051 compile/compile-c.h, compile/compile-cplus-symbols.c,
7052 compile/compile-cplus-types.c, compile/compile-cplus.h,
7053 compile/compile-loc2c.c, compile/compile.c, completer.c,
7054 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7055 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7056 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7057 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7058 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7059 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7060 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7061 features/aarch64-core.c, features/aarch64-fpu.c,
7062 features/aarch64-pauth.c, features/aarch64-sve.c,
7063 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7064 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7065 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7066 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7067 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7068 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7069 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7070 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7071 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7072 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7073 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7074 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7075 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7076 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7077 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7078 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7079 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7080 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7081 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7082 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7083 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7084 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7085 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7086 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7087 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7088 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7089 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7090 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7091 minsyms.c, mips-linux-tdep.c, namespace.h,
7092 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7093 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7094 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7095 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7096 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7097 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7098 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7099 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7100 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7101 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7102 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7103 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7104 procfs.c, producer.c, progspace.h, psymtab.h,
7105 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7106 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7107 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7108 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7109 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7110 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7111 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7112 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7113 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7114 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7115 target-memory.c, target.c, target.h, target/waitstatus.c,
7116 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7117 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7118 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7119 unittests/array-view-selftests.c,
7120 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7121 unittests/common-utils-selftests.c,
7122 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7123 unittests/format_pieces-selftests.c,
7124 unittests/function-view-selftests.c,
7125 unittests/lookup_name_info-selftests.c,
7126 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7127 unittests/mkdir-recursive-selftests.c,
7128 unittests/observable-selftests.c,
7129 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7130 unittests/parse-connection-spec-selftests.c,
7131 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7132 unittests/scoped_fd-selftests.c,
7133 unittests/scoped_mmap-selftests.c,
7134 unittests/scoped_restore-selftests.c,
7135 unittests/string_view-selftests.c, unittests/style-selftests.c,
7136 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7137 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7138 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7139 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7140 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7141 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7143 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7145 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7147 (decode_digits_ordinary): Set explicit_line field in sal.
7148 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7149 symtab_and_line that was set on an explicit line number in
7150 assembler code. Do always update the recorded symtab and line if
7151 we do skip the prologue.
7153 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7155 * breakpoint.c (set_breakpoint_location_function): Remove
7156 explicit_loc parameter.
7157 (momentary_breakpoint_from_master): Update call to
7158 set_breakpoint_location_function.
7159 (add_location_to_breakpoint): Likewise.
7161 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7163 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7164 required features based on default bfd type when no specific bfd
7167 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7169 * NEWS: Mention that GDB printf and eval commands can now print
7170 C-style and Ada-style convenience var strings without
7171 calling the inferior.
7172 * printcmd.c (printf_c_string): Locally print GDB internal var
7173 instead of transiting via the inferior.
7174 (printf_wide_c_string): Likewise.
7176 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7178 PR breakpoints/25011
7179 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7181 2019-07-04 Tom Tromey <tom@tromey.com>
7184 * tui/tui-winsource.c (tui_clear_source_content): Update.
7185 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7186 (tui_update_breakpoint_info): Update.
7187 (tui_set_exec_info_content): Update.
7188 * tui/tui-source.c (tui_set_source_content_nil): Update.
7189 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7191 * tui/tui-data.h (enum tui_bp_flag): New.
7192 (tui_bp_flags): New enum flags type.
7193 (struct tui_source_element) <break_mode>: Change type. Rename
7195 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7196 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7198 * tui/tui-winsource.h: Fix comment.
7200 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7202 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7203 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7204 (store_fpregs_to_thread)
7205 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7206 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7207 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7208 (IWMMXT_REGS_SIZE): Add define.
7209 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7210 (fetch_vfp_regs, store_vfp_regs)
7211 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7212 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7214 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7216 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7218 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7219 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7220 (ARM_INT_REGISTER_SIZE): ...to this.
7221 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7222 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7223 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7224 (arm_linux_collect_gregset, supply_nwfpe_register)
7225 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7227 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7228 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7229 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7230 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7231 (arm_return_in_memory, arm_store_return_value)
7232 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7233 (arm_record_ld_st_multiple): Likewise.
7234 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7235 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7237 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7239 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7240 AARCH64_DISPLACED_MODIFIED_INSNS.
7241 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7242 (aarch64_displaced_step_copy_insn): Likewise.
7243 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7244 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7245 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7246 ARM_DISPLACED_MODIFIED_INSNS.
7247 * arm-tdep.c (arm_gdbarch_init): Likewise.
7248 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7249 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7250 (struct arm_displaced_step_closure): Use
7251 ARM_DISPLACED_MODIFIED_INSNS.
7253 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7255 * features/Makefile: Remove unused xml files.
7256 * features/aarch64.xml: Remove.
7257 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7258 * features/i386/amd64-avx-avx512.xml: Remove.
7259 * features/i386/amd64-avx-linux.xml: Remove.
7260 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7261 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7262 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7263 * features/i386/amd64-avx-mpx.xml: Remove.
7264 * features/i386/amd64-avx.xml: Remove.
7265 * features/i386/amd64-linux.xml: Remove.
7266 * features/i386/amd64-mpx-linux.xml: Remove.
7267 * features/i386/amd64-mpx.xml: Remove.
7268 * features/i386/amd64.xml: Remove.
7269 * features/i386/i386-avx-avx512-linux.xml: Remove.
7270 * features/i386/i386-avx-avx512.xml: Remove.
7271 * features/i386/i386-avx-linux.xml: Remove.
7272 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7273 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7274 * features/i386/i386-avx-mpx-linux.xml: Remove.
7275 * features/i386/i386-avx-mpx.xml: Remove.
7276 * features/i386/i386-avx.xml: Remove.
7277 * features/i386/i386-linux.xml: Remove.
7278 * features/i386/i386-mmx-linux.xml: Remove.
7279 * features/i386/i386-mmx.xml: Remove.
7280 * features/i386/i386-mpx-linux.xml: Remove.
7281 * features/i386/i386-mpx.xml: Remove.
7282 * features/i386/i386.xml: Remove.
7283 * features/i386/x32-avx-avx512-linux.xml: Remove.
7284 * features/i386/x32-avx-linux.xml: Remove.
7285 * features/i386/x32-linux.xml: Remove.
7287 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7289 * regformats/aarch64.dat: Remove.
7290 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7291 * regformats/i386/amd64-avx-linux.dat: Remove.
7292 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7293 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7294 * regformats/i386/amd64-linux.dat: Remove.
7295 * regformats/i386/amd64-mpx-linux.dat: Remove.
7296 * regformats/i386/amd64.dat: Remove.
7297 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7298 * regformats/i386/i386-avx-linux.dat: Remove.
7299 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7300 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7301 * regformats/i386/i386-linux.dat: Remove.
7302 * regformats/i386/i386-mmx-linux.dat: Remove.
7303 * regformats/i386/i386-mpx-linux.dat: Remove.
7304 * regformats/i386/i386.dat: Remove.
7305 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7306 * regformats/i386/x32-avx-linux.dat: Remove.
7307 * regformats/i386/x32-linux.dat: Remove.
7309 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7311 * aarch64-tdep.c: Remove xml self tests.
7312 * amd64-linux-tdep.c: Likewise.
7313 * amd64-tdep.c: Likewise.
7314 * i386-linux-tdep.c: Likewise.
7315 * i386-tdep.c: Likewise.
7317 2019-07-03 Pedro Alves <palves@redhat.com>
7320 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7321 (pipe_cmd_option_defs): New.
7322 (make_pipe_cmd_options_def_group): New.
7323 (pipe_command): Use gdb::option::process_options.
7324 (pipe_command_completer): New function.
7325 (_initialize_cli_cmds): Install completer for "pipe" command.
7327 2019-07-03 Pedro Alves <palves@redhat.com>
7329 * cli/cli-option.c (union option_value) <string>: New field.
7330 (struct option_def_and_value): Add ctor, move ctor, dtor and
7331 use DISABLE_COPY_AND_ASSIGN.
7332 (option_def_and_value::clear_value): New.
7333 (parse_option, save_option_value_in_ctx, get_val_type_str)
7334 (add_setshow_cmds_for_options): Handle var_string.
7335 * cli-option.h (union option_def::var_address) <string>: New
7337 (struct string_option_def): New.
7338 * maint-test-options.c (struct test_options_opts): Add default
7339 ctor and use DISABLE_COPY_AND_ASSIGN.
7340 <string_opt>: New field.
7341 (test_options_opts::~test_options_opts): New.
7342 (test_options_opts::dump): Also dump "-string".
7343 (test_options_option_defs): Install "string.
7345 2019-07-03 Pedro Alves <palves@redhat.com>
7347 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7348 option_value with a null enumeration.
7349 (complete_options): Save the option values in the context.
7350 (save_option_value_in_ctx): New, factored out from ...
7351 (process_options): ... here.
7352 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7354 * maint-test-options.c (test_options_opts::dump): New, factored
7356 (maintenance_test_options_command_mode): ... here.
7357 (maintenance_test_options_command_completion_result): Delete.
7358 (maintenance_test_options_command_completion_text): Update
7360 (maintenance_show_test_options_completion_result): Change
7361 prototype. Just print
7362 maintenance_test_options_command_completion_text.
7363 (save_completion_result): New.
7364 (maintenance_test_options_completer_mode): Pass options context to
7365 complete_options, and then save a dump.
7366 (_initialize_maint_test_options): Use add_cmd to install "maint
7367 show test-options-completion-result".
7369 2019-07-03 Pedro Alves <palves@redhat.com>
7371 * NEWS (New commands): Mention "with" and "maint with".
7372 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7373 (with_command, with_command_completer): New.
7374 (pipe_command): Adjust to new repeat_previous
7376 (_initialize_cli_cmds): Install the "with" command and its "w"
7378 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7380 * cli/cli-setshow.c (parse_cli_var_uinteger)
7381 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7382 argument strings for all var_types.
7383 (get_setshow_command_value_string): New, factored out from ...
7384 (do_show_command): ... this.
7385 * cli/cli-setshow.h: Include <string>.
7386 (get_setshow_command_value_string): Declare.
7387 * command.h (repeat_previous): Now returns const char *. Adjust
7389 * maint.c: Include "cli/cli-cmds.h".
7390 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7391 (_initialize_maint_cmds): Register the "maintenance with" command.
7392 * top.c (repeat_previous): Move bits from pipe_command here:
7393 Return the saved command line, if any; error out if there's no
7394 command to relaunch.
7396 2019-07-03 Pedro Alves <palves@redhat.com>
7398 * NEWS (New commands): Mention "maint set/show test-settings"
7399 instead of "maint test-settings".
7400 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7401 (maintenance_test_settings_set_list): Rename to ...
7402 (maintenance_set_test_settings_list): ... this.
7403 (maintenance_test_settings_show_list): Rename to ...
7404 (maintenance_show_test_settings_list): ... this.
7405 (maintenance_test_settings_cmd): Delete.
7406 (maintenance_test_settings_set_cmd): ...
7407 (maintenance_set_test_settings_cmd): ... this.
7408 (maintenance_test_settings_show_cmd): ...
7409 (maintenance_show_test_settings_cmd): ... this.
7410 (maintenance_test_settings_show_value_cmd):
7411 (maintenance_show_test_settings_value_cmd): ... this.
7412 (_initialize_maint_test_settings): No longer install the "maint
7413 test-settings" prefix command. Rename "maint test-settings set"
7414 to "maint set test-settings", and "maint test-settings show" to
7415 "maint show test-settings". Adjust all subcommands.
7417 2019-07-03 Pedro Alves <palves@redhat.com>
7419 * maint-test-settings.c: Fix file's intro comment. Replace all
7420 references to "test-options" with references to "test-settings",
7423 2019-07-03 Pedro Alves <palves@redhat.com>
7425 * maint-test-settings.c (maintenance_test_settings_xxx)
7426 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7428 (maintenance_test_settings_enums): Use them.
7429 (maintenance_test_settings_enum): Default to
7430 maintenance_test_settings_xxx.
7431 (_initialize_maint_test_settings): Initialize
7432 MAINTENANCE_TEST_SETTINGS_FILENAME.
7434 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7436 * breakpoint.h (remove_breakpoints_inf): Change return type to
7437 void, move function documentation here.
7438 * breakpoint.c (remove_breakpoints_inf): Change return type to
7439 void, move function documentation to header.
7441 2019-07-02 Pedro Alves <palves@redhat.com>
7443 * NEWS (Completion improvements): Mention "info threads".
7444 * thread.c (struct info_threads_opts, info_threads_option_defs)
7445 (make_info_threads_options_def_group): New.
7446 (info_threads_command): Use gdb::option::process_options.
7447 (info_threads_command_completer): New.
7448 (_initialize_thread): Use gdb::option::build_help to build the
7449 help text for "info threads".
7451 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7453 * defs.h (generic_load): Move from here...
7454 * symfile.h (generic_load): ... to here. Rename name parameter
7456 * symfile.c (generic_load): Add comment.
7458 2019-07-01 Tom Tromey <tromey@adacore.com>
7461 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7462 declaration of without_params. Fix formatting.
7464 2019-07-01 Tom Tromey <tromey@adacore.com>
7466 * ada-exp.y (find_primitive_type): Update.
7467 * ada-lang.h (ada_lookup_symbol): Update.
7468 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7470 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7472 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7474 PR breakpoints/24541
7475 * gdbarch.c: Regenerate.
7476 * gdbarch.h: Regenerate.
7477 * gdbarch.sh: Add 'stap_adjust_register'.
7478 * i386-tdep.c: Include '<unordered_set>'.
7479 (i386_stap_adjust_register): New function.
7480 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7481 * stap-probe.c (stap_parse_register_operand): Call
7482 'gdbarch_stap_adjust_register'.
7484 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7487 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7488 * python/python.c (do_start_initialization): Use 'xmalloc'
7489 instead of 'PyMem_Malloc'.
7491 2019-06-28 Tom Tromey <tromey@adacore.com>
7493 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7496 2019-06-27 Tom Tromey <tromey@adacore.com>
7498 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7500 (arm_find_mapping_symbol, arm_record_special_symbol)
7501 (_initialize_arm_tdep): Update.
7502 (arm_objfile_data_free): Remove.
7504 2019-06-27 Tom Tromey <tromey@adacore.com>
7506 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7507 to cp_print_static_field.
7509 2019-06-26 Tom Tromey <tromey@adacore.com>
7511 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7512 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7515 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7517 * features/aarch64-core.c (create_feature_aarch64_core):
7519 * features/aarch64-core.xml: Add cpsr flags.
7521 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7523 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7524 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7526 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7528 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7530 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7532 (arm_record_special_symbol): Don't insert new symbol in sorted
7533 position, push it at the end.
7535 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7537 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7538 (arm_mapping_symbol_s): Remove.
7539 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7540 (arm_mapping_symbol_vec): New typedef.
7541 (struct arm_per_objfile): Add constructor.
7542 <section_maps>: Change type to
7543 std::unique_ptr<arm_mapping_symbol_vec[]>.
7544 (arm_compare_mapping_symbols): Remove.
7545 (arm_find_mapping_symbol): Adjust to section_maps type change.
7546 (arm_objfile_data_free): Call delete on arm_per_objfile.
7547 (arm_record_special_symbol): Adjust to section_maps type change.
7548 Allocate arm_per_objfile with new.
7550 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7552 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7553 with the command prefix.
7555 2019-06-25 Tom Tromey <tom@tromey.com>
7557 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7558 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7560 2019-06-25 Tom Tromey <tom@tromey.com>
7562 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7564 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7567 2019-06-25 Tom Tromey <tom@tromey.com>
7569 * tui/tui-winsource.c
7570 (tui_source_window_base::set_is_exec_point_at): Add check against
7573 2019-06-25 Tom Tromey <tom@tromey.com>
7575 * tui/tui-source.c (tui_set_source_content): Don't check before
7577 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7579 2019-06-25 Tom Tromey <tom@tromey.com>
7581 * tui/tui-winsource.h (tui_update_source_window_as_is)
7582 (tui_alloc_source_buffer, tui_line_is_displayed)
7583 (tui_addr_is_displayed): Change type of win_info.
7584 * tui/tui-winsource.c (tui_update_source_window_as_is)
7585 (tui_clear_source_content, tui_show_source_line)
7586 (tui_show_source_content, tui_source_window_base::refill)
7587 (tui_source_window_base::set_is_exec_point_at)
7588 (tui_source_window_base::set_is_exec_point_at)
7589 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7590 (tui_alloc_source_buffer, tui_line_is_displayed)
7591 (tui_addr_is_displayed): Change type of win_info. Update.
7592 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7593 (tui_source_window_base::do_make_visible_with_new_height):
7595 * tui/tui-source.c (tui_set_source_content)
7596 (tui_set_source_content_nil)
7597 (tui_source_window::do_scroll_vertical): Update.
7598 * tui/tui-layout.c (show_layout): Update.
7599 * tui/tui-disasm.c (tui_set_disassem_content)
7600 (tui_disasm_window::do_scroll_vertical): Update.
7601 * tui/tui-data.h (tui_win_content): Remove.
7602 (struct tui_gen_win_info) <content, content_size>: Remove.
7603 (struct tui_source_element): Add initializers and destructor.
7604 (union tui_which_element, struct tui_win_element): Remove.
7605 (struct tui_source_window_base) <content>: New field.
7606 (struct tui_data_window): Remove destructor.
7607 (tui_alloc_content, tui_free_win_content)
7608 (tui_free_all_source_wins_content): Don't declare.
7609 * tui/tui-data.c (tui_initialize_static_data): Update.
7610 (init_content_element, tui_alloc_content): Remove.
7611 (~tui_gen_win_info): Update.
7612 (~tui_data_window, tui_free_all_source_wins_content)
7613 (tui_free_win_content, free_content, free_content_elements):
7616 2019-06-25 Tom Tromey <tom@tromey.com>
7618 * tui/tui-winsource.h (tui_clear_source_content)
7619 (tui_erase_source_content, tui_show_source_content): Change type
7621 * tui/tui-winsource.c (tui_clear_source_content)
7622 (tui_erase_source_content, tui_show_source_content): Change type
7624 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7625 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7627 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7629 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7631 2019-06-25 Tom Tromey <tom@tromey.com>
7633 * tui/tui-winsource.c (tui_clear_source_content)
7634 (tui_source_window_base::set_is_exec_point_at): Update.
7635 * tui/tui-source.c (tui_set_source_content_nil): Update.
7636 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7638 * tui/tui-data.c (init_content_element): Update.
7640 2019-06-25 Tom Tromey <tom@tromey.com>
7642 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7643 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7644 * tui/tui-layout.c (init_and_make_win): Update.
7645 * tui/tui.h (enum tui_win_type): Update.
7646 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7647 tui_win_is_auxillary.
7648 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7649 tui_win_is_auxillary.
7651 2019-06-25 Tom Tromey <tom@tromey.com>
7653 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7654 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7655 (tui_delete_data_content_windows, tui_display_all_data)
7656 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7658 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7659 * tui/tui-regs.c (tui_last_regs_line_no)
7660 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7661 (tui_show_registers): Update.
7662 (tui_show_register_group): Return void. Update.
7663 (tui_display_registers_from, tui_display_reg_element_at_line)
7664 (tui_display_registers_from_line, tui_check_register_values):
7666 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7668 (struct tui_data_window) <regs_content>: Now a std::vector.
7669 <regs_content_count>: Remove.
7670 (tui_add_content_elements, tui_free_data_content): Don't declare.
7671 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7672 (init_content_element): Remove DATA_WIN case. Add assert.
7673 (tui_add_content_elements): Remove.
7674 (tui_data_window): Update.
7675 (tui_free_data_content): Remove.
7676 (free_content_elements): Remove DATA_WIN case.
7678 2019-06-25 Tom Tromey <tom@tromey.com>
7680 * tui/tui-data.c (tui_data_item_window): Update.
7681 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7682 * tui/tui-windata.c (tui_display_all_data)
7683 (tui_display_data_from_line): Update.
7684 (tui_check_data_values): Remove.
7685 * tui/tui-regs.c (tui_show_register_group)
7686 (tui_display_reg_element_at_line): Update.
7687 * tui/tui-hooks.c (tui_register_changed)
7688 (tui_refresh_frame_and_register_information): Call
7689 tui_check_register_values.
7690 * tui/tui-data.h (struct tui_data_window) <data_content,
7691 data_content_count, data_type>: Remove.
7692 (enum tui_data_type): Remove.
7694 * tui/tui-data.c (tui_data_window::clear_detail)
7695 (~tui_data_window): Update.
7697 2019-06-25 Tom Tromey <tom@tromey.com>
7699 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7701 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7702 Rename from tui_first_data_item_displayed. Update.
7703 (tui_data_window::refresh_all)
7704 (tui_data_window::do_scroll_vertical): Update.
7705 * tui/tui-data.h (struct tui_data_window)
7706 <first_data_item_displayed>: Declare new method.
7708 2019-06-25 Tom Tromey <tom@tromey.com>
7710 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7711 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7713 (tui_initialize_static_data): ...here.
7715 2019-06-25 Tom Tromey <tom@tromey.com>
7717 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7718 (tui_display_registers_from, tui_check_register_values): Update.
7719 (tui_display_register): Remove win_info parameter; update.
7720 (tui_get_register): Change type of parameters.
7721 * tui/tui-data.h (struct tui_data_element): Remove.
7722 (union tui_which_element) <data>: Remove.
7723 <data_window>: Change type.
7724 (struct tui_data_item_window): New.
7725 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7727 (~tui_data_item_window): New destructor.
7728 (free_content_elements): Remove DATA_ITEM_WIN case.
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7732 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7735 2019-06-25 Tom Tromey <tom@tromey.com>
7737 * tui/tui-data.h (struct tui_command_element): Remove.
7738 (union tui_which_element) <command>: Remove.
7739 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7741 (free_content_elements): Remove CMD_WIN case.
7743 2019-06-25 Tom Tromey <tom@tromey.com>
7745 * tui/tui-layout.c (tui_set_layout): Update.
7746 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7747 * tui/tui-data.c (layout_def): Update.
7749 2019-06-25 Tom Tromey <tom@tromey.com>
7751 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7752 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7753 (tui_source_window_base::set_new_height): Update.
7754 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7756 (tui_set_locator_fullname, tui_set_locator_info)
7757 (tui_show_frame_info): Update.
7758 * tui/tui-source.c (tui_set_source_content)
7759 (tui_source_is_displayed): Update.
7760 * tui/tui-layout.c (show_source_disasm_command, show_data)
7761 (show_source_or_disasm_and_command): Update.
7762 * tui/tui-disasm.c (tui_set_disassem_content)
7763 (tui_get_begin_asm_address): Update.
7764 * tui/tui-data.h (struct tui_locator_element): Remove.
7765 (union tui_which_element) <locator>: Remove.
7766 (struct tui_locator_window): New.
7767 (tui_locator_win_info_ptr): Change return type.
7768 * tui/tui-data.c (_locator): Change type.
7769 (tui_locator_win_info_ptr): Change return type.
7770 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7771 (tui_alloc_content): Add assert.
7773 2019-06-25 Tom Tromey <tom@tromey.com>
7775 * tui/tui-winsource.c
7776 (tui_exec_info_window::maybe_allocate_content): New method.
7777 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7778 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7779 (make_source_or_disasm_window): Add cast.
7780 * tui/tui-data.h (union tui_which_element) <simple_string>:
7782 (struct tui_source_info): New.
7783 (struct tui_source_window_base) <execution_info>: Change type.
7784 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7785 case, and add assert.
7786 (tui_alloc_content): Add assert.
7788 2019-06-25 Tom Tromey <tom@tromey.com>
7790 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7791 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7792 * tui/tui-data.c (tui_alloc_win_info): Remove.
7794 2019-06-25 Tom Tromey <tom@tromey.com>
7796 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7797 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7800 2019-06-25 Tom Tromey <tom@tromey.com>
7802 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7803 make_visible_with_new_height method.
7804 (tui_win_info::make_visible_with_new_height): New method.
7805 (tui_source_window_base::do_make_visible_with_new_height)
7806 (tui_data_window::do_make_visible_with_new_height)
7807 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7808 (make_visible_with_new_height): Remove.
7809 (tui_resize_all, tui_adjust_win_heights): Use
7810 make_visible_with_new_height method.
7811 * tui/tui-data.h (struct tui_win_info)
7812 <do_make_visible_with_new_height, make_visible_with_new_height>:
7814 (struct tui_source_window_base, struct tui_data_window)
7815 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7818 2019-06-25 Tom Tromey <tom@tromey.com>
7820 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7822 (update_tab_width): Call update_tab_width method.
7823 * tui/tui-data.h (struct tui_win_info)
7824 (struct tui_source_window_base) <update_tab_width>: New methods.
7826 2019-06-25 Tom Tromey <tom@tromey.com>
7828 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7830 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7832 (tui_gen_win_info::make_visible): Update.
7833 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7835 * tui/tui-data.h (enum tui_box): New enum.
7836 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7838 2019-06-25 Tom Tromey <tom@tromey.com>
7840 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7841 init_and_make_win for EXEC_INFO_WIN.
7842 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7844 (struct tui_win_info) <~tui_win_info>: Inline.
7845 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7847 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7848 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7850 (tui_initialize_static_data): Update.
7851 (~tui_gen_win_info): Handle more cleanup here.
7852 (~tui_source_window_base): Delete "execution_info".
7853 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7855 2019-06-25 Tom Tromey <tom@tromey.com>
7857 * tui/tui-layout.c (make_command_window): Don't set
7859 (show_source_disasm_command): Call the reset method.
7860 (show_data): Don't set can_highlight. Call the reset method.
7861 (tui_gen_win_info::reset): Rename from init_gen_win_info
7862 (init_and_make_win): Simplify. Return tui_gen_win_info.
7863 (show_source_or_disasm_and_command): Call the reset method.
7864 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7865 (struct tui_cmd_window): Set can_highlight.
7867 2019-06-25 Tom Tromey <tom@tromey.com>
7869 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7871 (tui_make_visible, tui_make_invisible): Rewrite.
7872 (tui_win_info::make_visible): Remove.
7873 (tui_source_window_base::make_visible): Update.
7874 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7875 method. Moved from...
7876 (struct tui_win_info) <make_visible>: ...here.
7878 2019-06-25 Tom Tromey <tom@tromey.com>
7880 * tui/tui-winsource.c
7881 (tui_source_window_base::do_scroll_horizontal): Remove direction
7883 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7884 direction parameter.
7885 * tui/tui-win.c (tui_win_info::forward_scroll)
7886 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7887 (tui_win_info::right_scroll): Update.
7888 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7889 direction parameter.
7890 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7891 direction parameter.
7892 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7893 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7894 Remove direction parameter.
7895 (struct tui_source_window_base, struct tui_source_window)
7896 (struct tui_disasm_window, struct tui_data_window)
7897 (struct tui_cmd_window): Update.
7899 2019-06-25 Tom Tromey <tom@tromey.com>
7901 * tui/tui-winsource.h (tui_set_exec_info_content)
7902 (tui_show_exec_info_content, tui_erase_exec_info_content)
7903 (tui_clear_exec_info_content, tui_update_exec_info): Change
7904 argument to tui_source_window_base.
7905 * tui/tui-winsource.c (tui_set_exec_info_content)
7906 (tui_show_exec_info_content, tui_erase_exec_info_content)
7907 (tui_clear_exec_info_content, tui_update_exec_info): Change
7908 argument to tui_source_window_base.
7910 2019-06-25 Tom Tromey <tom@tromey.com>
7912 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7913 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7915 2019-06-25 Tom Tromey <tom@tromey.com>
7917 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7920 2019-06-25 Tom Tromey <tom@tromey.com>
7922 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7924 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7926 * tui/tui-source.c (tui_set_source_content): Update.
7927 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7929 2019-06-25 Tom Tromey <tom@tromey.com>
7931 * tui/tui-win.c (window_name_completer, tui_set_focus)
7932 (tui_all_windows_info): Use name method.
7933 * tui/tui-data.h (struct tui_gen_win_info)
7934 (struct tui_source_window, struct tui_disasm_window)
7935 (struct tui_data_window, struct tui_cmd_window) <name>: New
7937 (tui_win_name): Don't declare.
7938 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7939 (tui_win_name): Remove.
7941 2019-06-25 Tom Tromey <tom@tromey.com>
7943 * tui/tui-winsource.h (tui_update_source_window)
7944 (tui_update_source_window_as_is): Change parameter type.
7945 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7946 to be a tui_source_window_base.
7947 (tui_update_source_window_as_is): Likewise.
7948 * tui/tui-win.c (make_visible_with_new_height): Update.
7950 2019-06-25 Tom Tromey <tom@tromey.com>
7952 * tui/tui-winsource.c (tui_erase_source_content)
7953 (tui_show_source_content, tui_show_exec_info_content)
7954 (tui_erase_exec_info_content): Use refresh_window method.
7955 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7956 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7957 from tui_refresh_win.
7958 (tui_data_window::refresh_window): New method.
7959 (tui_win_info::refresh, tui_source_window_base::refresh)
7960 (tui_refresh_all): Use refresh_window method.
7961 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7963 * tui/tui-regs.c (tui_display_register): Call refresh_window
7965 * tui/tui-layout.c (show_source_disasm_command)
7966 (show_source_or_disasm_and_command): Call refresh_window method.
7967 * tui/tui-data.h (struct tui_gen_win_info)
7968 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7971 2019-06-25 Tom Tromey <tom@tromey.com>
7973 * tui/tui.c (tui_rl_other_window, tui_enable)
7974 (tui_is_window_visible, tui_get_command_dimension): Update.
7975 * tui/tui-winsource.c (tui_update_source_window_as_is)
7976 (tui_clear_source_content, tui_erase_source_content)
7977 (tui_show_source_line, tui_source_window_base::refill)
7978 (tui_source_window_base::do_scroll_horizontal)
7979 (tui_source_window_base::set_is_exec_point_at)
7980 (tui_update_breakpoint_info, tui_set_exec_info_content)
7981 (tui_alloc_source_buffer, tui_line_is_displayed)
7982 (tui_addr_is_displayed): Update.
7983 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7984 (tui_check_and_display_highlight_if_needed)
7985 (tui_win_info::make_visible, tui_win_info::refresh)
7986 (tui_refresh_all): Update.
7987 * tui/tui-windata.c (tui_first_data_item_displayed)
7988 (tui_delete_data_content_windows, tui_erase_data_content)
7989 (tui_display_all_data, tui_data_window::refresh_all)
7990 (tui_check_data_values): Update.
7991 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7992 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7993 (tui_win_info::backward_scroll, tui_refresh_all_win)
7994 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7995 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7996 (tui_source_window_base::set_new_height)
7997 (tui_data_window::set_new_height)
7998 (make_invisible_and_set_new_height)
7999 (make_visible_with_new_height, new_height_ok)
8000 (parse_scrolling_args): Update.
8001 * tui/tui-stack.c (tui_show_frame_info): Update.
8002 * tui/tui-source.c (tui_set_source_content)
8003 (tui_set_source_content_nil, tui_source_is_displayed)
8004 (tui_source_window::do_scroll_vertical): Update.
8005 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8006 (tui_display_registers_from, tui_display_reg_element_at_line)
8007 (tui_check_register_values, tui_reg_command): Update.
8008 * tui/tui-layout.c (tui_default_win_height)
8009 (show_source_disasm_command, show_data, init_and_make_win)
8010 (show_source_or_disasm_and_command): Update.
8011 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8012 (tui_redisplay_readline, tui_mld_flush)
8013 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8015 * tui/tui-disasm.c (tui_set_disassem_content)
8016 (tui_disasm_window::do_scroll_vertical): Update.
8017 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8019 (struct tui_win_info): Derive from tui_gen_win_info.
8020 <~tui_win_info>: Mark as override.
8021 <generic>: Remove member.
8022 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8023 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8024 (~tui_data_window, ~tui_win_info)
8025 (tui_free_all_source_wins_content): Update.
8026 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8028 2019-06-25 Tom Tromey <tom@tromey.com>
8030 * tui/tui-layout.c (init_and_make_win): Use new.
8031 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8032 destructor, initializers.
8033 (tui_alloc_generic_win_info): Don't declare.
8034 * tui/tui-data.c (_locator): Add argument to constructor.
8035 (source_win, disasm_win): New globals.
8036 (exec_info): Remove.
8037 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8039 (tui_alloc_generic_win_info): Remove.
8040 (init_content_element): Use new.
8041 (tui_win_info::tui_win_info): Update.
8042 (free_content_elements) <case DATA_WIN>: Use delete.
8044 2019-06-25 Tom Tromey <tom@tromey.com>
8046 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8047 * tui/tui-windata.c (tui_first_data_item_displayed)
8048 (tui_delete_data_content_windows): Update.
8049 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8050 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8051 (tui_display_registers_from, tui_check_register_values): Update.
8052 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8054 * tui/tui-data.c (init_content_element): Update. Allocate the new
8056 (tui_free_data_content): Update.
8057 (free_content_elements) <case DATA_WIN>: Free the window.
8059 2019-06-25 Tom Tromey <tom@tromey.com>
8061 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8063 * tui/tui-layout.c (make_command_window)
8064 (show_source_disasm_command, show_data, init_and_make_win)
8065 (show_source_or_disasm_and_command): Update.
8066 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8068 <can_highight, is_highlighted>: Now bool.
8069 (tui_set_win_highlight): Don't declare.
8070 * tui/tui-data.c (tui_set_win_highlight): Remove.
8072 2019-06-25 Tom Tromey <tom@tromey.com>
8074 * tui/tui-wingeneral.c (make_visible): Remove check of window
8077 2019-06-25 Tom Tromey <tom@tromey.com>
8079 * tui/tui-win.c (tui_win_info::max_height)
8080 (tui_cmd_window::max_height): New methods.
8081 (new_height_ok): Call max_height.
8082 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8083 <max_height>: New method.
8085 2019-06-25 Tom Tromey <tom@tromey.com>
8087 * tui/tui-win.c (tui_source_window_base::set_new_height)
8088 (tui_data_window::set_new_height): New methods.
8089 (make_invisible_and_set_new_height): Call set_new_height method.
8090 * tui/tui-data.h (struct tui_win_info)
8091 (struct tui_source_window_base, struct tui_data_window)
8092 <set_new_height>: New method.
8094 2019-06-25 Tom Tromey <tom@tromey.com>
8096 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8097 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8098 tui_refresh_data_win.
8099 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8101 (tui_refresh_all_win): Call the refresh_all method.
8102 (tui_set_focus): Likewise.
8103 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8104 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8107 2019-06-25 Tom Tromey <tom@tromey.com>
8109 * tui/tui-winsource.h (tui_refill_source_window)
8110 (tui_set_is_exec_point_at): Don't declare.
8111 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8112 (tui_source_window_base::refill): Rename from
8113 tui_refill_source_window.
8114 (tui_source_window_base::do_scroll_horizontal): Update.
8115 (tui_source_window_base::set_is_exec_point_at): Rename from
8116 tui_set_is_exec_point_at.
8117 (tui_update_all_breakpoint_info): Update.
8118 * tui/tui-stack.c (tui_show_frame_info): Update.
8119 * tui/tui-layout.c (show_data): Add cast.
8120 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8121 * tui/tui-data.h (struct tui_source_window_base) <refill,
8122 set_is_exec_point_at>: New methods.
8123 (tui_source_windows, tui_add_to_source_windows): Update types.
8124 (tui_add_to_source_windows): Remove redundant declaration.
8125 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8126 (tui_source_windows): Change return type.
8127 (tui_clear_source_windows_detail): Update.
8128 (tui_add_to_source_windows): Change type of parameter.
8129 (tui_free_all_source_wins_content): Update.
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8133 * tui/tui-wingeneral.c (tui_win_info::refresh)
8134 (tui_source_window_base::refresh): New methods.
8135 (tui_refresh_all): Call the refresh method.
8136 * tui/tui-data.h (struct tui_win_info)
8137 (struct tui_source_window_base) <refresh>: New method.
8139 2019-06-25 Tom Tromey <tom@tromey.com>
8141 * tui/tui.h (tui_is_window_visible): Return bool.
8142 * tui/tui.c (tui_is_window_visible): Return bool.
8143 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8144 (tui_make_visible, tui_make_invisible)
8145 (tui_win_info::make_visible)
8146 (tui_source_window_base::make_visible, make_all_visible)
8147 (tui_make_all_visible, tui_make_all_invisible): Update.
8148 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8149 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8151 (struct tui_win_info, struct tui_source_window_base)
8152 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8153 * tui/tui-data.c (tui_init_generic_part): Update.
8155 2019-06-25 Tom Tromey <tom@tromey.com>
8157 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8158 (tui_source_window_base::make_visible): New methods.
8159 (make_all_visible): Make method call.
8160 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8161 (struct tui_source_window_base, struct tui_cmd_window): Override
8163 (tui_win_is_source_type): Don't declare.
8164 * tui/tui-data.c (tui_win_is_source_type): Remove.
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8168 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8171 2019-06-25 Tom Tromey <tom@tromey.com>
8173 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8174 Inline constructor. Add initializers for members.
8175 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8176 constructors; now inline in class.
8178 2019-06-25 Tom Tromey <tom@tromey.com>
8180 * tui/tui-regs.c (tui_show_registers): Update.
8181 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8183 * tui/tui-data.c (tui_data_window::clear_detail)
8184 (tui_data_window): Update.
8186 2019-06-25 Tom Tromey <tom@tromey.com>
8188 * tui/tui-windata.c (tui_display_all_data)
8189 (tui_display_data_from_line, tui_display_data_from)
8190 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8192 * tui/tui-regs.c (tui_last_regs_line_no)
8193 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8194 (tui_show_registers, tui_show_register_group)
8195 (tui_display_registers_from, tui_display_reg_element_at_line)
8196 (tui_display_registers_from_line, tui_check_register_values)
8197 (tui_reg_next, tui_reg_prev): Update.
8198 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8199 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8201 (struct tui_win_info) <detail>: Remove. Add new fields from
8203 (TUI_DATA_WIN): Add cast.
8204 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8205 (~tui_data_window): Simplify.
8207 2019-06-25 Tom Tromey <tom@tromey.com>
8209 * tui/tui-layout.c (show_source_disasm_command)
8210 (show_source_or_disasm_and_command): Update.
8211 * tui/tui-io.c (update_cmdwin_start_line)
8212 (tui_redisplay_readline): Update.
8213 * tui/tui-data.h (struct tui_command_info): Remove.
8214 (struct tui_win_info) <detail>: Remove command_info member.
8215 (struct tui_data_window) <start_line>: New member, from
8217 (TUI_CMD_WIN): Add casts.
8219 2019-06-25 Tom Tromey <tom@tromey.com>
8221 * tui/tui-winsource.c (tui_update_source_window)
8222 (tui_refill_source_window)
8223 (tui_source_window_base::do_scroll_horizontal)
8224 (tui_update_breakpoint_info, tui_set_exec_info_content)
8225 (tui_show_exec_info_content, tui_erase_exec_info_content)
8226 (tui_clear_exec_info_content): Update.
8227 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8229 * tui/tui-win.c (make_invisible_and_set_new_height)
8230 (make_visible_with_new_height): Update.
8231 * tui/tui-source.c (tui_set_source_content)
8232 (tui_show_symtab_source): Update.
8233 * tui/tui-layout.c (extract_display_start_addr)
8234 (show_source_disasm_command, show_data)
8235 (make_source_or_disasm_window)
8236 (show_source_or_disasm_and_command): Update.
8237 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8238 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8240 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8241 to tui_source_window_base.
8242 (struct tui_win_info) <detail>: Remove source_info member.
8243 (struct tui_source_window_base) <has_locator>: Inline.
8244 Move contents from tui_source_info; rename has_locator member to
8246 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8247 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8249 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8251 (tui_free_all_source_wins_content): Cast to
8252 tui_source_window_base.
8254 2019-06-25 Tom Tromey <tom@tromey.com>
8256 * tui/tui-win.c (make_invisible_and_set_new_height)
8257 (make_visible_with_new_height): Call has_locator method.
8258 * tui/tui-layout.c (show_source_disasm_command, show_data)
8259 (show_source_or_disasm_and_command): Update for bool change.
8260 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8261 (tui_win_info) <has_locator>: New method.
8262 (struct tui_source_window_base) <has_locator>: New method.
8263 (tui_win_has_locator): Don't declare.
8264 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8265 from tui_win_has_locator.
8266 (tui_source_window_base): Use false, not FALSE.
8268 2019-06-25 Tom Tromey <tom@tromey.com>
8270 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8271 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8272 clear_detail method directly.
8273 (tui_clear_win_detail): Remove.
8275 2019-06-25 Tom Tromey <tom@tromey.com>
8277 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8278 "this", not TUI_DISASM_WIN.
8280 2019-06-25 Tom Tromey <tom@tromey.com>
8282 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8284 * tui/tui-winsource.c
8285 (tui_source_window_base::do_scroll_horizontal): Rename from
8286 tui_horizontal_source_scroll.
8287 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8288 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8289 from tui_vertical_data_scroll.
8290 * tui/tui-win.h (tui_scroll): Don't declare.
8291 * tui/tui-win.c (tui_win_info::forward_scroll)
8292 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8293 (tui_win_info::right_scroll): Rename and update.
8294 (tui_scroll_forward_command, tui_scroll_backward_command)
8295 (tui_scroll_left_command, tui_scroll_right_command): Update.
8296 (tui_scroll): Remove.
8297 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8298 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8299 from tui_vertical_source_scroll.
8300 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8301 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8302 from tui_vertical_disassem_scroll.
8303 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8304 do_scroll_horizontal>: New methods.
8305 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8307 (struct tui_source_window_base): Add do_scroll_horizontal.
8308 (struct tui_source_window, struct tui_disasm_window): Add
8310 (struct tui_data_window, struct tui_cmd_window): Add
8311 do_scroll_horizontal and do_scroll_vertical.
8312 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8314 2019-06-25 Tom Tromey <tom@tromey.com>
8316 * tui/tui-data.h (struct tui_source_window_base): New struct.
8317 (struct tui_source_window): Derive from tui_source_window_base.
8318 (struct tui_disasm_window): New struct.
8319 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8320 from tui_source_window::clear_detail.
8321 (tui_source_window_base): Rename from tui_source_window.
8322 (~tui_source_window_base): Rename from ~tui_source_window.
8323 (tui_alloc_win_info): Create a tui_disasm_window.
8325 2019-06-25 Tom Tromey <tom@tromey.com>
8327 * tui/tui-data.h (struct tui_source_window)
8328 (struct tui_data_window): Declare destructors.
8329 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8331 (tui_win_info): Simplify.
8333 2019-06-25 Tom Tromey <tom@tromey.com>
8335 * tui/tui-winsource.c (tui_display_main)
8336 (tui_update_source_windows_with_addr)
8337 (tui_update_all_breakpoint_info): Update.
8338 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8339 (new_height_ok, parse_scrolling_args): Update.
8340 * tui/tui-stack.c (tui_show_frame_info): Update.
8341 * tui/tui-data.h (struct tui_list): Remove.
8342 (tui_source_windows): Return a reference to a std::vector.
8343 * tui/tui-data.c (source_windows): Now a std::vector.
8344 (tui_source_windows): Change return type.
8345 (tui_clear_source_windows): Rewrite.
8346 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8347 (tui_free_all_source_wins_content): Rewrite.
8349 2019-06-25 Tom Tromey <tom@tromey.com>
8351 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8352 (struct tui_data_window, struct tui_cmd_window): Declare
8353 clear_detail method.
8354 * tui/tui-data.c (tui_source_window::clear_detail)
8355 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8357 (tui_clear_win_detail): Simplify.
8359 2019-06-25 Tom Tromey <tom@tromey.com>
8361 * tui/tui-layout.c (make_source_window, make_disasm_window)
8362 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8363 Return the new window.
8364 (show_source_disasm_command, show_data)
8365 (show_source_or_disasm_and_command): Update.
8367 2019-06-25 Tom Tromey <tom@tromey.com>
8369 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8370 parameter. Return the new window.
8371 (show_source_disasm_command): Update and remove NULL check.
8372 (show_source_or_disasm_and_command): Update.
8374 2019-06-25 Tom Tromey <tom@tromey.com>
8376 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8378 2019-06-25 Tom Tromey <tom@tromey.com>
8380 * tui/tui-data.h (struct tui_win_info): Make constructor
8381 protected. Make destructor virtual. Add initializers.
8382 (tui_source_window, tui_data_window, tui_cmd_window): New
8384 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8385 constructor. Add "type" parameter.
8386 (tui_source_window, tui_data_window, tui_cmd_window): New
8388 (tui_alloc_win_info): Instantiate the appropriate subclass.
8390 2019-06-25 Tom Tromey <tom@tromey.com>
8392 * tui/tui-win.c (tui_resize_all): Use delete.
8393 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8395 (tui_free_window): Don't declare.
8396 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8399 2019-06-25 Tom Tromey <tom@tromey.com>
8401 * tui/tui-data.h (struct tui_win_info): Add constructor.
8402 * tui/tui-data.c (tui_alloc_win_info): Use new.
8403 (tui_free_window): Use delete.
8405 2019-06-22 Tom Tromey <tom@tromey.com>
8407 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8409 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8411 2019-06-22 Tom Tromey <tom@tromey.com>
8413 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8415 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8417 2019-06-22 Tom de Vries <tdevries@suse.de>
8419 * dwarf2read.c (create_addrmap_from_aranges)
8420 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8423 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8425 * dwarf2read.h (dwarf2_section_info_def): Remove.
8426 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8427 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8428 std::vector<dwarf2_section_info>.
8429 (struct dwo_file) <~dwo_file>: Remove.
8430 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8432 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8433 (dwarf2_read_debug_names): Likewise.
8434 (create_debug_types_hash_table): Change parameter type to
8435 array_view, adjust code accordingly.
8436 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8437 (partial_die_info::fixup): Likewise.
8438 (determine_prefix): Likewise.
8439 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8441 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8443 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8445 <~dwo_file>: Remove call to gdb_bfd_unref.
8446 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8447 gdb_bfd_ref_ptr::get.
8449 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8451 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8453 * dwarf2read.c (struct dwo_file): Initialize fields.
8455 (free_dwo_file): Remove, move content to ~dwo_file.
8456 (struct dwo_file_deleter): Remove.
8457 (dwo_file_up>: Remove custom deleter.
8458 (free_dwo_files): Remove.
8459 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8461 (process_skeletonless_type_units): Call unique_ptr::get.
8462 (allocate_dwo_file_hash_table): Add deleter to created hash
8463 table. Change return type to htab_up.
8464 (lookup_dwo_file_slot): Don't memset dwo_file, call
8466 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8467 (create_dwo_unit_in_dwp_v2): Likewise.
8468 (open_and_init_dwo_file): Likewise.
8469 (free_dwo_file_from_slot): Remove.
8471 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8473 * dwarf2read.h (struct dwarf2_section_info) <readin,
8474 is_virtual>: Change type to bool.
8475 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8478 2019-06-19 Tom Tromey <tom@tromey.com>
8480 * tui/tui-data.h (tui_init_content_element): Don't declare.
8482 2019-06-19 Tom Tromey <tom@tromey.com>
8484 * tui/tui-data.h (tui_init_win_info): Don't declare.
8486 2019-06-19 Tom de Vries <tdevries@suse.de>
8488 * dwarf2read.h (abstract_to_concrete): Change type to
8489 std::unordered_map<sect_offset, std::vector<sect_offset>,
8490 gdb::hash_enum<sect_offset>>.
8492 2019-06-19 Tom Tromey <tromey@adacore.com>
8494 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8495 EVAL_AVOID_SIDE_EFFECTS specially.
8497 2019-06-19 Tom Tromey <tromey@adacore.com>
8499 * source-cache.c (highlighter): New global.
8500 (source_cache::get_source_lines): Create a highlighter on demand.
8502 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8504 * defs.h (deprecated_interactive_hook): Delete declaration.
8505 * interps.c (clear_interpreter_hooks): Remove use of
8506 deprecated_interactive_hook.
8507 * top.c (deprecated_interactive_hook): Delete definition.
8508 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8510 2019-06-18 Tom de Vries <tdevries@suse.de>
8513 * dwarf2read.h (abstract_to_concrete): Change type from
8514 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8515 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8516 * dwarf2read.c (read_variable): Update.
8517 (dwarf2_fetch_die_loc_sect_off): Update.
8519 2019-06-17 Tom de Vries <tdevries@suse.de>
8522 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8523 accessing parent[parent_len - 1].
8525 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8528 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8529 call dtrace_process_dof with NULL dof.
8531 2019-06-16 Tom de Vries <tdevries@suse.de>
8534 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8536 2019-06-16 Tom Tromey <tom@tromey.com>
8538 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8539 (make_all_visible): Use address of member.
8541 2019-06-16 Tom Tromey <tom@tromey.com>
8543 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8544 (tui_free_window, free_content, free_content_elements): Remove
8546 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8548 * tui/tui-regs.c (tui_show_register_group)
8549 (tui_display_registers_from, tui_display_reg_element_at_line):
8550 Remove unnecessary cast.
8552 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8554 * linux-nat.c (normal_mask): Delete.
8555 (_initialize_linux_nat): Don't initialise normal_mask.
8557 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8560 * dwarf-index-write.h (write_psymtabs_to_index): Add
8561 dwz_basename parameter.
8562 * dwarf-index-write.c (write_gdbindex): Move file writing to
8563 write_gdbindex_1. Change return type void.
8564 (assert_file_size): Move up, remove filename parameter.
8565 (write_gdbindex_1): New function.
8566 (write_debug_names): Change return type to void, call
8568 (struct index_wip_file): New struct.
8569 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8570 file logic to index_wip_file. Write index for dwz file if
8572 (save_gdb_index_command): Pass basename of dwz file, if present.
8573 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8574 build-id of dwz file, if present.
8575 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8576 (dwarf2_get_dwz_file): Likewise.
8577 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8578 (dwarf2_get_dwz_file): Likewise.
8580 2019-06-16 Tom Tromey <tom@tromey.com>
8582 * coffread.c (process_coff_symbol): Use xstrdup.
8583 * value.c (create_internalvar): Use xstrdup.
8585 2019-06-16 Tom Tromey <tom@tromey.com>
8587 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8588 * breakpoint.c (stopin_command, stopat_command)
8589 (until_break_command, decode_location_default): Remove unnecessary
8591 * utils.c (subset_compare): Remove unnecessary cast.
8592 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8594 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8596 * infcmd.c (path_command): Remove unnecessary cast.
8597 * coffread.c (decode_type): Remove unnecessary cast.
8598 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8599 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8600 * tui/tui-stack.c (tui_show_locator_content)
8601 (tui_show_frame_info): Remove unnecessary cast.
8602 * tui/tui-win.c (tui_scroll_forward_command)
8603 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8604 (parse_scrolling_args): Remove unnecessary cast.
8605 * tui/tui-data.c (init_win_info, tui_del_window)
8606 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8607 (free_content_elements): Remove unnecessary cast.
8608 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8610 * tui/tui-source.c (tui_set_source_content)
8611 (tui_vertical_source_scroll): Remove unnecessary cast.
8612 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8614 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8615 * tui/tui-regs.c (tui_display_registers_from)
8616 (tui_display_register): Remove unnecessary cast.
8617 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8618 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8619 (make_visible): Remove unnecessary cast.
8620 * tui/tui-winsource.c (tui_erase_source_content)
8621 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8623 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8624 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8625 * stabsread.c (read_type, read_array_type, read_range_type):
8626 Remove unnecessary cast.
8627 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8628 (parse_symbol, parse_type, upgrade_type, parse_external)
8629 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8631 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8633 2019-06-16 Tom Tromey <tom@tromey.com>
8635 * tui/tui-data.c (tui_alloc_generic_win_info)
8636 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8639 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8640 Andrew Burgess <andrew.burgess@embecosm.com>
8642 * f-typeprint.c (f_print_type): Don't return early for not
8643 associated or not allocated types.
8644 (f_type_print_varspec_suffix): Add print_rank parameter and print
8645 ranks of array types in case they dangling.
8646 (f_type_print_base): Add print_rank parameter.
8648 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8650 * NEWS: Mention new MI commands.
8651 * break-catch-throw.c (enum exception_event_kind): Move to
8653 (print_mention_exception_catchpoint): Output text as a single
8655 (catch_exception_command_1): Rename to...
8656 (catch_exception_event): ...this, make non-static, update header
8657 command, and change some parameter types.
8658 (catch_catch_command): Update for changes to
8659 catch_exception_command_1.
8660 (catch_throw_command): Likewise.
8661 (catch_rethrow_command): Likewise.
8662 * breakpoint.c (enum exception_event_kind): Delete.
8663 * breakpoint.h (enum exception_event_kind): Moved here from
8664 break-catch-throw.c.
8665 (catch_exception_event): Declare.
8666 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8667 (mi_cmd_catch_throw): New function.
8668 (mi_cmd_catch_rethrow): New function.
8669 (mi_cmd_catch_catch): New function.
8670 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8671 'catch-catch' entries.
8672 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8673 (mi_cmd_catch_rethrow): Declare.
8674 (mi_cmd_catch_catch): Declare.
8676 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8678 * annotate.c (annotate_source_line): Change return type to void,
8679 update implementation to match.
8680 * annotate.h (annotate_source_line): Change return type to void,
8681 update header comment.
8682 * stack.c (print_frame_info): Don't change what frame information
8683 is printed based on whether annotations are on or not.
8685 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8687 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8688 (annotate_source): Make static.
8689 (annotate_source_line): Moved from source.c and renamed from
8690 identify_source_line. Update the return type.
8691 * annotate.h (annotate_source): Delete declaration.
8692 (annotate_source_line): Declaration moved from source.h, and
8693 renamed from identify_source_line. Return type updated.
8694 * source.c (identify_source_line): Moved to annotate.c and renamed
8695 to annotate_source_line.
8696 (info_line_command): Remove check of annotation_level.
8697 * source.h (identify_source_line): Move declaration to annotate.h
8698 and rename to annotate_source_line.
8699 * stack.c: Add 'annotate.h' include.
8700 (print_frame_info): Remove check of annotation_level before
8701 calling annotate_source_line.
8703 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8705 * source-cache.c (source_cache::get_plain_source_lines): Use
8706 open_source_file_with_line_charpos instead of just
8707 open_source_file, remove call to find_source_lines.
8708 (source_cache::get_source_lines): Likewise.
8709 * source.c (find_source_lines): Make static.
8710 (get_filename_and_charpos): Renamed into...
8711 (open_source_file_with_line_charpos): ..this along with changes to
8712 return a scoped_fd, and some other minor clean ups.
8713 (identify_source_line): Use open_source_file_with_line_charpos.
8714 (search_command_helper): Use open_source_file_with_line_charpos
8715 instead of just open_source_file, remove call to
8717 * source.h (open_source_file_with_line_charpos): Declare new
8719 (find_source_lines): Delete declaration.
8721 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8723 * source.c (get_filename_and_charpos): Remove fullname
8725 (identify_source_line): Update call to get_filename_and_charpos.
8727 2019-06-14 Tom Tromey <tromey@adacore.com>
8730 * ui-style.h (skip_ansi_escape): Update comment.
8731 * ui-file.h (class no_terminal_escape_file): New class.
8732 * ui-file.c (no_terminal_escape_file::write)
8733 (no_terminal_escape_file::puts): New methods.
8734 * cli/cli-logging.c (handle_redirections): Use
8735 no_terminal_escape_file.
8737 2019-06-14 Tom Tromey <tromey@adacore.com>
8739 * NEWS: Move convenience variable news above Python news.
8741 2019-06-14 Tom Tromey <tom@tromey.com>
8743 * gnulib: Move directory to top-level.
8744 * configure.ac: Don't configure gnulib.
8745 * configure: Rebuild.
8746 * common/common-defs.h: Use new path to gnulib.
8747 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8749 (INCGNU): Look in new gnulib location.
8750 (HFILES_NO_SRCDIR): Remove gnulib files.
8751 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8752 (generated_files): Remove GNULIB_H.
8753 ($(LIBGNU), all-lib): Remove targets.
8754 (distclean): Don't mention GNULIB_BUILDDIR.
8755 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8757 2019-06-14 Tom Tromey <tromey@adacore.com>
8759 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8760 Warn if symbol file does not provide any symbols.
8762 2019-06-14 Tom Tromey <tromey@adacore.com>
8764 * source.c (find_and_open_source): Respect basenames_may_differ.
8766 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8768 * annotate.c (annotate_breakpoints_invalid): Make use of
8769 scoped_restore_terminal_state.
8770 (annotate_frames_invalid): Likewise.
8772 2019-06-14 Tom Tromey <tromey@adacore.com>
8774 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8775 allow assignment to an internalvar.
8777 2019-06-14 Tom Tromey <tromey@adacore.com>
8779 * ada-lex.l: Allow "_" in attribute names.
8781 2019-06-14 Tom Tromey <tromey@adacore.com>
8784 * regcache.c (registers_changed): Don't call alloca.
8785 * top.c (execute_command): Don't call alloca.
8787 2019-06-13 Pedro Alves <palves@redhat.com>
8789 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8790 'expression'. When parsing an expression, error out if there's
8791 junk after "unlimited".
8792 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8793 (do_set_command): Adjust calls to is_unlimited_literal.
8795 2019-06-13 Pedro Alves <palves@redhat.com>
8797 * compile/compile.c (make_compile_options_def_group): Add braces
8798 around array_view initializer.
8799 * thread.c (make_thread_apply_all_options_def_group)
8800 (make_thread_apply_all_options_def_group): Likewise.
8802 2019-06-13 Pedro Alves <palves@redhat.com>
8804 * NEWS (New commands): Mention "maint test-options
8805 require-delimiter", "maint test-options unknown-is-error", "maint
8806 test-options unknown-is-operand" and "maint show
8807 test-options-completion-result".
8808 (New command options, command completion): New section.
8809 (Completion improvements): New section.
8810 Mention that you can abbreviate "unlimited".
8812 2019-06-13 Pedro Alves <palves@redhat.com>
8814 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8815 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8816 * unittests/cli-utils-selftests.c (test_parse_flags)
8817 (test_parse_flags_qcs): Delete.
8818 (test_cli_utils): Don't call deleted functions.
8820 2019-06-13 Pedro Alves <palves@redhat.com>
8822 * thread.c: Include "cli/cli-option.h".
8823 (tp_array_compar_ascending): Global.
8824 (tp_array_compar): Delete function.
8825 (tp_array_compar_ascending, tp_array_compar_descending): New
8827 (ascending_option_def, qcs_flag_option_def)
8828 (thr_qcs_flags_option_defs)
8829 (make_thread_apply_all_options_def_group)
8830 (make_thread_apply_options_def_group): New.
8831 (thread_apply_all_command): Use gdb::option::process_options.
8832 (thread_apply_command_completer)
8833 (thread_apply_all_command_completer): New.
8834 (thread_apply_command): Use gdb::option::process_options.
8835 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8836 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8837 to generate help text of "thread apply". Adjust "taas"'s help.
8838 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8839 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8841 2019-06-13 Pedro Alves <palves@redhat.com>
8843 * thread.c (thread_apply_command): Check for invalid TID with
8844 isdigit instead of !isalpha.
8846 2019-06-13 Pedro Alves <palves@redhat.com>
8848 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8849 (validate_flags_qcs): New.
8850 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8851 (validate_flags_qcs): Declare.
8852 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8853 (make_frame_apply_options_def_group): New.
8854 (frame_apply_command_count): Process options with
8855 gdb::option::process_options.
8856 (frame_apply_completer): New.
8857 (frame_apply_level_completer, frame_apply_all_completer)
8858 (frame_apply_completer): New.
8859 (_initialize_stack): Update help of "frame apply", "frame apply
8860 level", "frame apply all" and "faas" to mention supported options
8861 and install command completers.
8862 * stack.h (frame_apply_all_completer): Declare.
8863 * thread.c: Include "stack.h".
8864 (tfaas_command): Add "--".
8865 (_initialize_thread): Update help "tfaas" to mention supported
8866 options and install command completer.
8868 2019-06-13 Pedro Alves <palves@redhat.com>
8870 * completer.c (complete_nested_command_line): New.
8871 (gdb_completion_word_break_characters_throw): Add assertion.
8872 * completer.h (complete_nested_command_line): Declare.
8874 2019-06-13 Pedro Alves <palves@redhat.com>
8876 * stack.c (parse_backtrace_qualifiers): New.
8877 (backtrace_command): Use it.
8878 (backtrace_command_completer): Complete on qualifiers.
8880 2019-06-13 Pedro Alves <palves@redhat.com>
8882 * frame.c: Include "cli/cli-option.h.
8883 (user_set_backtrace_options): New.
8884 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8886 (get_prev_frame): Adjust.
8887 (boolean_option_def, uinteger_option_def)
8888 (set_backtrace_option_defs): New.
8889 (_initialize_frame): Adjust and use
8890 gdb::option::add_setshow_cmds_for_options to install "set
8891 backtrace past-main" and "set backtrace past-entry".
8892 * frame.h: Include "cli/cli-option.h".
8893 (struct frame_print_options): Forward declare.
8894 (print_frame_arguments_all, print_frame_arguments_scalars)
8895 (print_frame_arguments_none): Declare.
8896 (print_entry_values): Delete declaration.
8897 (struct frame_print_options, user_frame_print_options): New.
8898 (struct set_backtrace_options): New.
8899 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8900 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8901 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8902 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8903 (list_args_or_locals): Add frame_print_options parameter.
8904 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8905 * python/py-framefilter.c (enumerate_args): Pass down
8906 USER_FRAME_PRINT_OPTIONS.
8907 * stack.c: Include "cli/cli-option.h".
8908 (print_frame_arguments_all, print_frame_arguments_scalars)
8909 (print_frame_arguments_none): Declare.
8910 (print_raw_frame_arguments, print_entry_values): Delete.
8911 (user_frame_print_options): New.
8912 (boolean_option_def, enum_option_def, frame_print_option_defs):
8914 (struct backtrace_cmd_options): New.
8915 (bt_flag_option_def): New.
8916 (backtrace_command_option_defs): New.
8917 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8918 (print_frame_arg, read_frame_arg, print_frame_args)
8919 (print_frame_info, print_frame): Add frame_print_options parameter
8921 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8922 (backtrace_command_1): Add frame_print_options and
8923 backtrace_cmd_options parameters and use them.
8924 (make_backtrace_options_def_group): New.
8925 (backtrace_command): Process command options with
8926 gdb::option::process_options.
8927 (backtrace_command_completer): New.
8928 (_initialize_stack): Extend "backtrace"'s help to mention
8929 supported options. Install completer for "backtrace".
8930 Install some settings commands with add_setshow_cmds_for_options.
8932 2019-06-13 Pedro Alves <palves@redhat.com>
8934 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8935 and that "set/show print raw frame-arguments" are now deprecated.
8937 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8939 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8940 * stack.c (_initialize_stack): Install "set/show print
8941 raw-frame-arguments", and deprecate "set/show print raw
8943 * valprint.c (_initialize_valprint): Deprecate "set/show print
8946 2019-06-13 Pedro Alves <palves@redhat.com>
8948 * compile/compile.c (struct compile_options): New.
8949 (compile_flag_option_def, compile_command_option_defs)
8950 (make_compile_options_def_group): New.
8951 (compile_file_command): Handle options with
8952 gdb::option::process_options.
8953 (compile_file_command_completer): New function.
8954 (compile_code_command): Handle options with
8955 gdb::option::process_options.
8956 (compile_code_command_completer): New function.
8957 (_initialize_compiler): Install completers for "compile code" and
8958 "compile file". Mention available options in "compile code" and
8959 "compile code"'s help.
8960 * completer.c (advance_to_completion_word): New, factored out from
8962 (advance_to_expression_complete_word_point): ... this.
8963 (advance_to_filename_complete_word_point): New.
8964 * completer.h (advance_to_filename_complete_word_point): New
8967 2019-06-13 Pedro Alves <palves@redhat.com>
8969 * compile/compile.c: Include "cli/cli-option.h".
8970 (compile_print_value): Scope data pointer is now a
8971 value_print_options pointer; adjust.
8972 (compile_print_command): Process options. Scope data pointer is
8973 now a value_print_options pointer; adjust.
8974 (_initialize_compile): Update "compile print"'s help to include
8975 supported options. Install a completer for "compile print".
8976 * cp-valprint.c (show_vtblprint, show_objectprint)
8977 (show_static_field_print): Delete.
8978 (_initialize_cp_valprint): Don't install "set print
8979 static-members", "set print vtbl", "set print object" here.
8980 * printcmd.c: Include "cli/cli-option.h" and
8981 "common/gdb_optional.h".
8982 (print_command_parse_format): Rework to fill in a
8983 value_print_options instead of a format_data.
8984 (print_value): Change parameter type from format_data pointer to
8985 value_print_options reference. Adjust.
8986 (print_command_1): Process options. Adjust to pass down a
8987 value_print_options.
8988 (print_command_completer): New.
8989 (_initialize_printcmd): Install print_command_completer as
8990 handle_brkchars completer for the "print" command. Update
8991 "print"'s help to include supported options.
8992 * valprint.c: Include "cli/cli-option.h".
8993 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8994 here from cp-valprint.c.
8995 (boolean_option_def, uinteger_option_def)
8996 (value_print_option_defs, make_value_print_options_def_group):
8997 New. Use gdb::option::add_setshow_cmds_for_options to install
8998 "set print elements", "set print null-stop", "set print repeats",
8999 "set print pretty", "set print union", "set print array", "set
9000 print address", "set print symbol", "set print array-indexes".
9001 * valprint.h: Include <string> and "cli/cli-option.h".
9002 (make_value_print_options_def_group): Declare.
9003 (print_value): Change parameter type from format_data pointer to
9004 value_print_options reference.
9005 (print_command_completer): Declare.
9007 2019-06-13 Pedro Alves <palves@redhat.com>
9009 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9010 (COMMON_SFILES): Add maint-test-settings.c.
9011 * cli/cli-decode.c (boolean_enums): New global, factored out from
9013 (add_setshow_boolean_cmd): ... here.
9014 * cli/cli-decode.h (boolean_enums): Declare.
9015 * cli/cli-option.c: New file.
9016 * cli/cli-option.h: New file.
9017 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9018 factored out from ...
9019 (parse_cli_boolean_value(const char *)): ... this.
9020 (is_unlimited_literal): Change parameter type to pointer to
9021 pointer. Adjust and advance ARG pointer.
9022 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9023 (parse_cli_var_enum): New, factored out from ...
9024 (do_set_command): ... this. Adjust.
9025 * cli/cli-setshow.h (parse_cli_boolean_value)
9026 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9027 (parse_cli_var_enum): Declare.
9028 * cli/cli-utils.c: Include "cli/cli-option.h".
9029 (get_ulongest): New.
9030 * cli/cli-utils.h (get_ulongest): Declare.
9031 (check_for_argument): New overloads.
9032 * maint-test-options.c: New file.
9034 2019-06-13 Pedro Alves <palves@redhat.com>
9036 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9037 parse a range if "-" is at the end of the string.
9039 2019-06-13 Pedro Alves <palves@redhat.com>
9041 * cli/cli-setshow.c (parse_auto_binary_operation)
9042 (parse_cli_boolean_value): Don't allow "o".
9044 2019-06-13 Pedro Alves <palves@redhat.com>
9046 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9047 * NEWS: Mention maint test-settings KIND.
9048 * maint-test-settings.c: New file.
9050 2019-06-13 Pedro Alves <palves@redhat.com>
9052 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9054 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9057 2019-06-13 Pedro Alves <palves@redhat.com>
9059 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9062 2019-06-13 Pedro Alves <palves@redhat.com>
9064 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9066 2019-06-13 Pedro Alves <palves@redhat.com>
9068 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9069 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9071 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9072 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9074 (check_for_argument): Skip spaces after argument.
9076 2019-06-13 Pedro Alves <palves@redhat.com>
9078 * thread.c (thread_apply_command): Adjust TID parsing.
9079 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9080 detected before end of string.
9081 (tid_is_in_list): Error out if LIST is invalid.
9083 2019-06-13 Pedro Alves <palves@redhat.com>
9085 * completer.c (complete_line_internal_1): Rewind completion word
9087 (completion_tracker::advance_custom_word_point_by): Change
9088 parameter type to int.
9089 * completer.h (completion_tracker::advance_custom_word_point_by):
9092 2019-06-13 Pedro Alves <palves@redhat.com>
9094 * completer.c (advance_to_completion_word): Handle delimiters.
9096 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9098 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9100 2019-06-11 Tom Tromey <tom@tromey.com>
9102 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9103 (xmalloc_failed): Move to alloc.c.
9104 * alloc.c: New file.
9105 * Makefile.in (COMMON_SFILES): Add alloc.c.
9107 2019-06-11 Tom Tromey <tom@tromey.com>
9109 * nat/linux-waitpid.c: Don't include server.h.
9110 (linux_debug): Remove.
9111 (my_waitpid): Update.
9113 2019-06-11 Tom Tromey <tromey@adacore.com>
9115 * infcall.c (_initialize_infcall): Remove trailing newline from
9117 * user-regs.c (_initialize_user_regs): Remove trailing newline
9119 * typeprint.c (_initialize_typeprint): Remove trailing newline
9121 * reverse.c (_initialize_reverse): Remove trailing newlines from
9123 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9125 * language.c (add_set_language_command): Remove trailing newline
9127 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9129 * disasm.c (_initialize_disasm): Remove trailing newline from
9131 * top.c (init_main): Remove trailing newline from help.
9132 * interps.c (_initialize_interpreter): Remove trailing newline
9134 * btrace.c (_initialize_btrace): Remove trailing newlines from
9136 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9138 * python/python.c (_initialize_python): Remove trailing newline
9140 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9142 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9143 from help. Reformat some text.
9144 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9146 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9149 2019-06-11 Tom Tromey <tromey@adacore.com>
9151 * darwin-nat.c (darwin_decode_exception_message)
9152 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9154 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9156 * valops.c (value_slice): Check for not allocated or not
9159 2019-06-10 Tom de Vries <tdevries@suse.de>
9162 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9163 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9166 2019-06-10 Tom de Vries <tdevries@suse.de>
9169 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9170 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9172 2019-06-10 Tom de Vries <tdevries@suse.de>
9175 * symtab.c (struct demangled_name_entry): Add language field.
9176 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9177 static minimal symbol". Set and use language field.
9179 2019-06-10 Tom Tromey <tromey@adacore.com>
9181 * ada-lang.c (_initialize_ada_language): Update help text.
9183 2019-06-10 Tom Tromey <tromey@adacore.com>
9185 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9187 * guile/guile.c (handle_boot_error): Don't end warning with a
9189 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9190 warning with a newline.
9191 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9193 (s12z_frame_cache): Likewise.
9194 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9196 * solib-svr4.c (disable_probes_interface): Don't end warning with
9198 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9200 * python/python.c (do_finish_initialization): Don't end warning
9203 2019-06-10 Tom Tromey <tom@tromey.com>
9205 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9206 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9209 2019-06-10 Tom Tromey <tromey@adacore.com>
9211 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9213 (elf_new_init): Don't call stabsread_new_init.
9214 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9215 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9216 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9218 2019-06-10 Tom de Vries <tdevries@suse.de>
9222 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9224 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9226 * source.c (find_and_open_source): Also rewrite relative file
9229 2019-04-26 Amos Bird <amosbird@gmail.com>
9231 * annotate.c (annotate_thread_exited): Add "thread-exited"
9234 2019-06-06 Tom Tromey <tromey@adacore.com>
9236 * maint.h (class scoped_command_stats): Use
9237 DISABLE_COPY_AND_ASSIGN.
9238 <print_time>: New method.
9239 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9241 (scoped_command_stats::print_time): New method.
9243 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9245 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9246 instructions of lengths 6 or 8 bytes.
9248 2019-06-04 Pedro Alves <palves@redhat.com>
9250 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9252 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9253 * breakpoint.c (condition_completer): Likewise.
9254 * cli/cli-dump.c (scan_expression): Likewise.
9255 * common/filestuff.c (mkdir_recursive): Likewise.
9256 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9257 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9258 (gdb_abspath): Likewise.
9259 * compile/compile-cplus-types.c
9260 (compile_cplus_instance::decl_name): Likewise.
9261 * completer.c (complete_explicit_location):
9262 (signal_completer, reg_or_group_completer_1): Likewise.
9263 * cp-support.c (cp_remove_params_if_any): Likewise.
9264 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9265 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9266 * infcmd.c (strip_bg_char): Likewise.
9267 * linespec.c (copy_token_string): Likewise.
9268 * mi/mi-main.c (output_cores): Likewise.
9269 * psymtab.c (psymtab_search_name):
9270 * symfile.c (test_set_ext_lang_command): Likewise.
9271 * target.c (target_fileio_read_stralloc): Likewise.
9272 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9273 * value.c (complete_internalvar): Likewise.
9275 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9277 Add objfile property to gdb.Type.
9278 * NEWS: Mention Python API addition.
9279 * python/py-type.c (typy_get_objfile): New method.
9281 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9283 * NEWS: Mention the new set|show style [title|highlight].
9284 Mention changes to "show style", "help" and "apropos".
9286 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9288 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9289 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9290 instead of print_help_for_command.
9291 (print_doc_of_command): New function.
9292 (help_list): Add 'apropos -v word' suggestion.
9293 (print_help_for_command): Style the command name using title style.
9294 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9295 (_initialize_cli_cmds): Describe -v in apropos_command help.
9297 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9299 * cli/cli-style.h (cli_style_option): Add name in constructor,
9300 add m_name class member, add constructor with intensity,
9301 add name class function.
9302 (cli_style_option::add_setshow_commands): Remove name argument.
9303 (highlight_style, title_style): New styles.
9304 * cli/cli-style.c (do_show): New function that shows a style
9305 characteristic styling the style name with itself.
9306 (set_style_name): New function.
9307 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9308 Update all callers according to the changes in cli/cli-style.h.
9309 * utils.h (fputs_highlighted): New function.
9310 * utils.c (fputs_highlighted): Likewise.
9312 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9314 * NEWS: Mention new pipe command and new convenience variables.
9316 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9318 * cli/cli-cmds.c (pipe_command): New function.
9319 (_initialize_cli_cmds): Call add_com for pipe_command.
9320 Define | as an alias for pipe.
9321 (exit_status_set_internal_vars): New function.
9322 (shell_escape): Call exit_status_set_internal_vars.
9323 cli/cli-decode.c (find_command_name_length): Recognize | as
9324 a single character command.
9326 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9328 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9329 top.c (execute_command_to_ui_file): New function, mostly a copy
9330 of execute_command_to_string.
9331 (execute_command_to_string): Implement by calling
9332 execute_command_to_ui_file.
9334 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9336 * top.h (saved_command_line): Remove declaration.
9337 * top.c (previous_saved_command_line, previous_repeat_arguments):
9339 (saved_command_line): Make static, define together with other
9341 (dont_repeat): Clear repeat_arguments.
9342 (repeat_previous, get_saved_command_line, save_command_line):
9344 (gdb_init): Initialize saved_command_line
9345 and previous_saved_command_line.
9346 * main.c (captured_main_1): Remove saved_command_line initialization.
9347 * event-top.c (handle_line_of_input): Update to use
9348 the new 'repeat' related functions instead of direct access to
9350 * command.h (repeat_previous, get_saved_command_line,
9351 save_command_line): New declarations.
9352 (dont_repeat): Add comment.
9354 2019-05-30 Tom Tromey <tromey@adacore.com>
9356 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9358 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9360 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9363 * completer.c (complete): Initialize variable word.
9365 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9367 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9368 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9369 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9370 'body' is NULL to the outter 'if', protecting the '!is_define'
9373 2019-05-29 Tom Tromey <tromey@adacore.com>
9375 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9376 (dwarf_unknown): New function.
9377 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9378 (dwarf_type_encoding_name): Use dwarf_unknown.
9380 2019-05-29 Tom Tromey <tromey@adacore.com>
9383 * cp-valprint.c (cp_print_value_fields): Call
9384 cp_print_static_field inside "try".
9386 2019-05-29 Tom Tromey <tromey@adacore.com>
9388 * inflow.c (struct terminal_info): Add default operator=.
9389 * configure: Rebuild.
9390 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9391 -Wdeprecated-copy-dtor, -Wredundant-move.
9393 2019-05-29 Tom Tromey <tromey@adacore.com>
9396 * infcmd.c (print_return_value_1): Handle finish_print
9398 (show_print_finish): New function.
9399 (_initialize_infcmd): Add "set/show print finish" commands.
9400 * valprint.c (user_print_options): Initialize new member.
9401 * valprint.h (struct value_print_options) <finish_print>: New
9404 2019-05-28 Tom Tromey <tromey@adacore.com>
9406 * ada-lang.c (ada_remove_Xbn_suffix)
9407 (find_old_style_renaming_symbol)
9408 (parse_old_style_renaming): Remove.
9409 (ada_find_renaming_symbol): Don't call
9410 find_old_style_renaming_symbol.
9411 (ada_is_renaming_symbol): Rename from
9412 ada_find_renaming_symbol. Remove "block" parameter. Return
9414 (ada_read_var_value): Update and simplify.
9415 * ada-exp.y (write_var_or_type): Remove old code.
9417 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9420 * event-top.c: Remove include comment.
9421 * inflow.c (class scoped_ignore_sigttou): Move from here...
9422 * inflow.h (class scoped_ignore_sigttou): ...to here.
9423 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9424 * top.c: Remove include comment.
9426 2019-05-27 Tom Tromey <tom@tromey.com>
9430 2019-05-22 Tom Tromey <tromey@adacore.com>
9432 * target.c (target_follow_exec): Constify parameter.
9433 * target-delegates.c: Rebuild.
9434 * remote.c (remote_target::follow_exec): Constify parameter.
9435 * infrun.c (follow_exec): Constify parameter.
9436 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9437 (target_follow_exec): Likewise.
9439 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9441 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9442 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9444 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9446 * NEWS: Add debugredirect and testsuite sections.
9448 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9450 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9451 target descriptions using exclusively floating point register name
9454 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9457 * f-lang.c (build_fortran_types): Handle the case where
9458 gdbarch_floatformat_for_type returns a nullptr.
9460 2019-05-21 Tom de Vries <tdevries@suse.de>
9463 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9465 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9468 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9470 * i386-tdep.c (i386_floatformat_for_type): Use
9471 floatformats_ia64_quad for the 16-byte floating point component
9472 within a fortran 32-byte complex number.
9474 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9476 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9477 delete default constructor.
9478 (find_partial_die): Update to return const struct.
9479 (partial_die_parent_scope): Move variable declaration into scope
9480 of its use and change its type to auto.
9481 (guess_partial_die_structure_name): Likewise.
9482 (partial_die_info::fixup): Likewise.
9484 2019-05-17 Tom Tromey <tromey@adacore.com>
9486 * source.c (find_and_open_source): Remove cast.
9488 2019-05-17 Tom Tromey <tromey@adacore.com>
9490 * annotate.c (annotate_source): Make "filename" const.
9491 * annotate.h (annotate_source): Use const.
9493 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9495 * disasm.c (set_disassembler_options): Send errors to stderr.
9497 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9499 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9500 (cli_interp_base::set_logging): Check debug_redirect.
9501 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9502 * cli/cli-logging.c (debug_redirect): Add static variable.
9503 (pop_output_files): Add default param.
9504 (handle_redirections): Print debug setting.
9505 (show_logging_command): Likewise.
9506 (_initialize_cli_logging): Add debugredirect command.
9507 * interps.c (current_interp_set_logging): Add debug_redirect
9509 * interps.h (set_logging): Add debug_redirect parameter.
9510 (current_interp_set_logging): Likewise.
9511 * mi/mi-common.h: Likewise.
9512 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9514 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9515 Tom Tromey <tromey@adacore.com>
9517 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9519 * cli/cli-interp.h (make_logging_output): Remove declaration.
9520 * cli/cli-logging.c (make_logging_output): Remove function.
9521 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9523 * ui-file.c (tee_file::tee_file): Remove bools.
9524 (tee_file::~tee_file): Remove deletes.
9525 * ui-file.h (tee_file): Remove bools.
9527 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9529 * mi/mi-cmds.h (mi_cmd_complete): New function.
9530 * mi/mi-main.c (mi_cmd_complete): Likewise.
9531 * mi/mi-cmds.c: Define new MI command -complete.
9532 * NEWS: Mention new -complete command.
9534 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9536 * completer.h (complete): New function.
9537 * completer.c (complete): Likewise.
9538 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9539 function defined in completer.h.
9541 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9543 * MAINTAINERS (Write After Approval): Add myself.
9545 2019-05-17 Tom de Vries <tdevries@suse.de>
9548 * dwarf2read.c (struct cu_partial_die_info): New struct.
9549 (find_partial_die): Return cu_partial_die_info.
9550 (partial_die_parent_scope, guess_partial_die_structure_name)
9551 (partial_die_info::fixup): Handle new return type of find_partial_die.
9553 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9555 PR breakpoints/24541
9556 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9557 "std::string", simplifying the algorithm.
9559 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9561 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9562 (stap_static_probe_ops::get_probes): Likewise.
9564 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9566 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9567 '-')" and "else if".
9568 (stap_parse_single_operand): Join checks for
9569 "gdbarch_stap_parse_special_token_p" and
9570 "gdbarch_stap_parse_special_token" in the same "if" statement.
9571 Invert check when verifying for operation on register
9574 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9576 * stap-probe.c (stap_get_opcode): Update comment.
9577 (stap_get_expected_argument_type): Likewise.
9578 (handle_stap_probe): Likewise.
9580 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9582 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9583 return type to 'bool'. Adjust comment. Use 'bool' when
9585 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9586 * stap-probe.c (stap_parse_argument_1): Likewise.
9587 (stap_is_operator): Likewise.
9588 (stap_is_generic_prefix): Likewise.
9589 (stap_is_register_prefix): Likewise.
9590 (stap_is_register_indirection_prefix): Likewise.
9591 (stap_is_integer_prefix): Likewise.
9592 (stap_generic_check_suffix): Likewise.
9593 (stap_check_integer_suffix): Likewise.
9594 (stap_check_register_suffix): Likewise.
9595 (stap_check_register_indirection_suffix): Likewise.
9596 (stap_parse_register_operand): Likewise.
9597 (stap_parse_single_operand): Likewise.
9598 (stap_parse_argument_1): Likewise.
9599 (stap_probe::get_argument_count): Likewise.
9600 (stap_is_operator): Likewise.
9602 2019-05-16 Tom Tromey <tromey@adacore.com>
9604 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9607 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9609 * linux-thread-db.c (try_thread_db_load_1): Change return type
9611 (try_thread_db_load): Likewise.
9612 (try_thread_db_load_from_pdir_1): Likewise.
9613 (try_thread_db_load_from_pdir): Likewise.
9614 (try_thread_db_load_from_sdir): Likewise.
9615 (try_thread_db_load_from_dir): Likewise.
9616 (thread_db_load_search): Likewise.
9617 (has_libpthread): Likewise.
9618 (thread_db_load): Likewise.
9620 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9622 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9623 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9624 NULL, and complain/return if that's the case.
9626 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9628 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9629 (advance, posn, abstract_read_memory): New functions.
9630 [struct mem_read_abstraction]: New struct.
9631 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9633 2019-05-14 Tom Tromey <tromey@adacore.com>
9635 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9636 value is not lval_memory.
9638 2019-05-14 Tom Tromey <tromey@adacore.com>
9640 * solib.c (info_sharedlibrary_command): Style the file name.
9642 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9644 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9645 (aarch64_vnv_type): Likewise.
9646 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9647 * common/tdesc.c: Likewise.
9648 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9649 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9650 * features/aarch64-fpu.xml: Add ieee half view.
9651 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9652 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9653 * gdbtypes.h (struct builtin_type): Likewise.
9654 (struct objfile_type): Likewise.
9656 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9658 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9660 * location.h (string_to_event_location): Likewise.
9662 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9666 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9668 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9669 New variable declaration.
9670 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9672 (print_one_breakpoint): Use ui_out::test_flags and new global
9673 variable to compute use_fixed_output.
9674 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9676 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9677 (mi_multi_location_breakpoint_output_fixed): Remove.
9678 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9680 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9681 fix_multi_location_breakpoint_output flag if version >= 3.
9682 * ui-out.h (enum ui_out_flag)
9683 <fix_multi_location_breakpoint_output>: New enumerator.
9685 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9687 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9689 2019-05-10 Tom Tromey <tromey@adacore.com>
9691 * ada-lang.c (catch_ada_completer): New function.
9692 (_initialize_ada_language): Use it.
9694 2019-05-10 Tom Tromey <tromey@adacore.com>
9696 * thread.c (print_thread_info): Make "requested_threads" const.
9697 * gdbthread.h (print_thread_info): Make "requested_threads"
9699 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9700 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9702 2019-05-08 Tom Tromey <tom@tromey.com>
9704 * gdbtypes.c (objfile_type_data): Change type.
9705 (objfile_type, _initialize_gdbtypes): Update.
9707 2019-05-08 Tom Tromey <tom@tromey.com>
9709 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9710 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9711 (_initialize_dwarf2_frame): Update.
9713 2019-05-08 Tom Tromey <tom@tromey.com>
9715 * objc-lang.c (objc_objfile_data): Change type.
9716 (find_methods): Update.
9717 (_initialize_objc_lang): Remove.
9719 2019-05-08 Tom Tromey <tom@tromey.com>
9721 * stabsread.c (rs6000_builtin_type_data): Change type.
9722 (rs6000_builtin_type, _initialize_stabsread): Update.
9724 2019-05-08 Tom Tromey <tom@tromey.com>
9726 * mips-tdep.c (mips_pdr_data): Remove.
9727 (_initialize_mips_tdep): Update.
9729 2019-05-08 Tom Tromey <tom@tromey.com>
9731 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9732 (hppa_init_objfile_priv_data, read_unwind_info)
9733 (find_unwind_entry, _initialize_hppa_tdep): Update.
9735 2019-05-08 Tom Tromey <tom@tromey.com>
9737 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9738 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9740 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9742 2019-05-08 Tom Tromey <tom@tromey.com>
9744 * mdebugread.c (basic_type_data): Change type.
9745 (basic_type, _initialize_mdebugread): Update.
9747 2019-05-08 Tom Tromey <tom@tromey.com>
9749 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9751 2019-05-08 Tom Tromey <tom@tromey.com>
9753 * nto-tdep.c (nto_inferior_data_reg): Change type.
9754 (nto_inferior_data): Update.
9755 (nto_inferior_data_cleanup, nto_new_inferior_data)
9756 (_initialize_nto_tdep): Remove.
9757 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9759 2019-05-08 Tom Tromey <tom@tromey.com>
9761 * ada-lang.c (struct ada_inferior_data): Add initializers.
9762 (ada_inferior_data): Change type.
9763 (ada_inferior_data_cleanup): Remove.
9764 (get_ada_inferior_data, ada_inferior_exit)
9765 (struct ada_pspace_data): Add initializers, destructor.
9766 (ada_pspace_data_handle): Change type.
9767 (get_ada_pspace_data): Update.
9768 (ada_pspace_data_cleanup): Remove.
9770 2019-05-08 Tom Tromey <tom@tromey.com>
9772 * coffread.c (struct coff_symfile_info): Add initializers.
9773 (coff_objfile_data_key): Move lower. Change type.
9774 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9776 (coff_free_info): Remove.
9778 2019-05-08 Tom Tromey <tom@tromey.com>
9780 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9781 (fbsd_pspace_data_handle): Move lower. Change type.
9782 (get_fbsd_pspace_data): Update.
9783 (fbsd_pspace_data_cleanup): Remove.
9784 (_initialize_fbsd_tdep): Update.
9786 2019-05-08 Tom Tromey <tom@tromey.com>
9788 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9789 (get_ada_tasks_pspace_data): Update.
9790 (ada_tasks_pspace_data_cleanup): Remove.
9791 (_initialize_tasks): Update.
9792 (ada_tasks_inferior_data_handle): Change type.
9793 (get_ada_tasks_inferior_data): Update.
9794 (ada_tasks_inferior_data_cleanup): Remove.
9795 (struct ada_tasks_pspace_data): Add initializers.
9797 2019-05-08 Tom Tromey <tom@tromey.com>
9799 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9800 * symfile-debug.c (debug_sym_get_probes): Change type.
9801 * stap-probe.c (handle_stap_probe):
9802 (stap_static_probe_ops::get_probes): Change type.
9803 * probe.h (class static_probe_ops) <get_probes>: Change type.
9804 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9805 (parse_probes_in_pspace): Update.
9806 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9808 (any_static_probe_ops::get_probes): Change type.
9809 * elfread.c (elfread_data): New typedef.
9810 (probe_key): Change type.
9811 (elf_get_probes): Likewise. Update.
9812 (probe_key_free): Remove.
9813 (_initialize_elfread): Update.
9814 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9816 (dtrace_process_dof_probe, dtrace_process_dof)
9817 (dtrace_static_probe_ops::get_probe): Change type.
9819 2019-05-08 Tom Tromey <tom@tromey.com>
9821 * xcoffread.c (struct xcoff_symfile_info): Rename from
9822 coff_symfile_info. Add initializers.
9823 (xcoff_objfile_data_key): Move lower. Change type.
9824 (XCOFF_DATA): Rewrite.
9825 (xcoff_free_info): Remove.
9826 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9827 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9828 (xcoff_initial_scan): Update.
9830 2019-05-08 Tom Tromey <tom@tromey.com>
9832 * solib-svr4.c (struct svr4_info): Add initializers and
9834 <probes_table>: Now an htab_up.
9835 (solib_svr4_pspace_data): Change type.
9836 (free_probes_table): Simplify.
9837 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9838 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9839 (probes_table_remove_objfile_probes, register_solib_event_probe)
9840 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9841 (_initialize_svr4_solib): Update.
9843 2019-05-08 Tom Tromey <tom@tromey.com>
9845 * remote.c (remote_pspace_data): Change type.
9846 (remote_pspace_data_cleanup): Remove.
9847 (get_remote_exec_file, set_pspace_remote_exec_file)
9848 (_initialize_remote): Update.
9850 2019-05-08 Tom Tromey <tom@tromey.com>
9852 * breakpoint.c (breakpoint_objfile_key): Change type.
9853 (get_breakpoint_objfile_data): Update.
9854 (free_breakpoint_objfile_data): Remove.
9855 (_initialize_breakpoint): Update.
9857 2019-05-08 Tom Tromey <tom@tromey.com>
9859 * linux-tdep.c (struct linux_info): Add initializers.
9860 (linux_inferior_data): Move. Change type.
9861 (invalidate_linux_cache_inf): Update.
9862 (linux_inferior_data_cleanup): Remove.
9863 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9865 2019-05-08 Tom Tromey <tom@tromey.com>
9867 * auxv.c (auxv_inferior_data): Move. Change type.
9868 (auxv_inferior_data_cleanup): Remove.
9869 (invalidate_auxv_cache_inf): Rewrite.
9870 (get_auxv_inferior_data, _initialize_auxv): Update.
9872 2019-05-08 Tom Tromey <tom@tromey.com>
9874 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9875 (symfile_debug_objfile_data_key): Change type.
9876 (symfile_debug_installed, debug_qf_has_symbols)
9877 (debug_qf_find_last_source_symtab)
9878 (debug_qf_forget_cached_source_info)
9879 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9880 (debug_qf_print_stats, debug_qf_dump)
9881 (debug_qf_expand_symtabs_for_function)
9882 (debug_qf_expand_all_symtabs)
9883 (debug_qf_expand_symtabs_with_fullname)
9884 (debug_qf_map_matching_symbols)
9885 (debug_qf_expand_symtabs_matching)
9886 (debug_qf_find_pc_sect_compunit_symtab)
9887 (debug_qf_map_symbol_filenames)
9888 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9889 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9890 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9891 (debug_sym_read_linetable, debug_sym_relocate): Update.
9892 (symfile_debug_free_objfile): Remove.
9893 (install_symfile_debug_logging, _initialize_symfile_debug):
9896 2019-05-08 Tom Tromey <tom@tromey.com>
9898 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9899 allocate_on_obstack.
9900 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9901 (get_dwarf2_per_objfile): Update.
9902 (set_dwarf2_per_objfile): Remove.
9903 (dwarf2_has_info, dwarf2_get_section_info): Update.
9904 (dwarf2_free_objfile): Remove.
9905 (_initialize_dwarf2_read): Update.
9907 2019-05-08 Tom Tromey <tom@tromey.com>
9909 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9911 <unsupported_script_warning_printed,
9912 script_not_found_warning_printed>: Now bool.
9913 (auto_load_pspace_data): Change type.
9914 (~auto_load_pspace_info): Rename from
9915 auto_load_pspace_data_cleanup.
9916 (get_auto_load_pspace_data, init_loaded_scripts_info)
9917 (clear_section_scripts, maybe_print_unsupported_script_warning)
9918 (maybe_print_script_not_found_warning, _initialize_auto_load):
9921 2019-05-08 Tom Tromey <tom@tromey.com>
9923 * objfiles.c (objfile_pspace_info): Add destructor and
9925 (objfiles_pspace_data): Change type.
9926 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9927 (get_objfile_pspace_data): Update.
9928 (objfiles_bfd_data): Change type.
9929 (get_objfile_bfd_data): Update.
9930 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9932 2019-05-08 Tom Tromey <tom@tromey.com>
9934 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9936 (get_catch_syscall_inferior_data): Update.
9937 (catch_syscall_inferior_data_cleanup): Remove.
9938 (_initialize_break_catch_syscall): Update.
9940 2019-05-08 Tom Tromey <tom@tromey.com>
9942 * inflow.c (struct terminal_info): Add destructor and
9944 (inflow_inferior_data): Change type.
9945 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9946 (get_inflow_inferior_data, inflow_inferior_exit)
9947 (swap_terminal_info, _initialize_inflow): Update.
9949 2019-05-08 Tom Tromey <tom@tromey.com>
9951 * target-dcache.c (target_dcache_cleanup): Remove.
9952 (target_dcache_aspace_key): Change type.
9953 (target_dcache_init_p, target_dcache_invalidate)
9954 (target_dcache_get, target_dcache_get_or_init)
9955 (_initialize_target_dcache): Update.
9956 * dcache.h (struct dcache_deleter): New.
9958 2019-05-08 Tom Tromey <tom@tromey.com>
9960 * symtab.c (struct symbol_cache): Add destructor and
9962 (symbol_cache_key): Move. Change type.
9963 (make_symbol_cache, free_symbol_cache): Remove.
9964 (get_symbol_cache): Update.
9965 (symbol_cache_cleanup): Remove.
9966 (ALL_PSPACES, symbol_cache_flush)
9967 (maintenance_print_symbol_cache)
9968 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9971 2019-05-08 Tom Tromey <tom@tromey.com>
9973 * symtab.c (struct main_info): Add destructor and initializers.
9974 (main_progspace_key): Move. Change type.
9975 (get_main_info): Update.
9976 (main_info_cleanup): Remove.
9977 (_initialize_symtab): Update.
9979 2019-05-08 Tom Tromey <tom@tromey.com>
9981 * registry.h (DECLARE_REGISTRY): Define the _key class.
9983 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9985 * NEWS: Merge two 'New commands' sections.
9987 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9989 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9990 parameter and use Ada language definition instead.
9991 (ada_val_print_ptr): Remove unused language parameter.
9992 (ada_val_print_num): Remove language parameter and use Ada language
9994 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9996 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9997 parameter and use Ada language definition instead.
9998 (ada_val_print_1): Update all ada_val_print_xxx calls.
9999 Remove language parameter.
10000 (ada_val_print): Update ada_val_print_1 call.
10002 2019-05-08 Tom Tromey <tromey@adacore.com>
10004 * remote.c (remote_hw_watchpoint_limit)
10005 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10008 2019-05-08 Tom Tromey <tromey@adacore.com>
10010 * maint.c (_initialize_maint_cmds): Move initialization code to
10012 (watchdog, show_watchdog): Move to remote.c.
10013 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10015 (_initialize_remote): Move initialization code from maint.c.
10016 * defs.h (watchdog): Don't declare.
10018 2019-05-08 Tom Tromey <tromey@adacore.com>
10020 * tui/tui-interp.c: Include main.h.
10021 * interps.c: Include main.h.
10022 * main.h (interpreter_p): Declare.
10023 * defs.h (interpreter_p): Don't declare.
10025 2019-05-08 Tom Tromey <tromey@adacore.com>
10027 * dwarf2loc.c: Include dwarf2read.h.
10028 * defs.h (read_unsigned_leb128): Don't declare.
10029 * dwarf2read.h (read_unsigned_leb128): Declare.
10031 2019-05-08 Tom Tromey <tromey@adacore.com>
10033 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10036 2019-05-08 Tom Tromey <tromey@adacore.com>
10038 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10039 when no wrap column is set.
10041 2019-05-08 Tom Tromey <tromey@adacore.com>
10043 * c-lang.c (c_get_string): Handle non-C-style arrays.
10045 2019-05-08 Tom Tromey <tromey@adacore.com>
10047 * typeprint.c (print_offset_data::update): Print the bit offset,
10048 not the number of bits remaining.
10050 2019-05-08 Tom Tromey <tromey@adacore.com>
10052 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10053 padding at end of comment.
10055 2019-05-08 Tom Tromey <tromey@adacore.com>
10057 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10058 Compare main types.
10060 2019-05-06 Tom Tromey <tom@tromey.com>
10062 * common/scoped_mmap.c: Include common-defs.h.
10063 * common/scoped_mmap.h: Don't include config.h.
10065 2019-05-04 Tom Tromey <tom@tromey.com>
10067 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10068 (struct aarch64_call_info): Add initializers.
10069 <si>: Now a std::vector.
10070 (pass_on_stack, aarch64_push_dummy_call): Update.
10072 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10073 Tom Tromey <tom@tromey.com>
10075 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10076 (ppc_threads): Now a std::vector. Now static.
10077 (hwdebug_find_thread_points_by_tid)
10078 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10081 2019-05-04 Tom Tromey <tom@tromey.com>
10083 * arc-tdep.c (arc_tdesc_init): Return bool.
10085 2019-05-04 Tom Tromey <tom@tromey.com>
10087 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10088 Use gdb_assert_not_reached.
10090 2019-05-04 Tom Tromey <tom@tromey.com>
10092 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10095 2019-05-04 Tom Tromey <tom@tromey.com>
10097 * arc-tdep.c (arc_tdesc_init): Use bool.
10099 2019-05-04 Tom Tromey <tom@tromey.com>
10101 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10103 2019-05-04 Tom Tromey <tom@tromey.com>
10105 * cli/cli-cmds.c (valid_command_p): Return bool.
10107 2019-05-04 Tom Tromey <tom@tromey.com>
10109 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10110 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10112 2019-05-04 Raul Tambre <raul@tambre.ee>
10114 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10115 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10116 operator for comparison.
10118 2019-05-04 Tom Tromey <tom@tromey.com>
10120 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10121 (lookup_partial_symbol, print_partial_symbols)
10122 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10123 (psymbol_compare): Update.
10124 (add_psymbol_to_bcache): Clear the entire psymbol.
10125 (maintenance_check_psymtabs): Update.
10126 * psympriv.h (struct partial_symbol): Don't derive from
10127 general_symbol_info.
10128 <obj_section, unrelocated_address, address,
10129 set_unrelocated_address>: Update.
10130 <ginfo>: New member.
10131 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10132 (debug_names::write_psymbols): Update.
10134 2019-05-04 Tom de Vries <tdevries@suse.de>
10136 * contrib/cc-with-tweaks.sh: Support -n arg.
10138 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10140 * corelow.c (core_target::detach): Ensure frame cache and
10141 register caches are cleared.
10142 inferior.c (exit_inferior_1): Likewise.
10144 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10145 Tom Tromey <tom@tromey.com>
10147 * dictionary.c (collate_pending_symbols_by_language): Remove
10148 "struct" from foreach.
10149 * symtab.c (lookup_global_symbol_from_objfile)
10150 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10152 * ser-tcp.c (net_open): Remove "struct" from foreach.
10153 * objfiles.c (objfile_relocate, objfile_rebase)
10154 (objfile_has_symbols): Remove "struct" from foreach.
10155 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10157 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10159 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10160 "struct" from foreach.
10161 * ada-lang.c (create_excep_cond_exprs)
10162 (ada_exception_catchpoint_cond_string): Remove "struct" from
10165 2019-05-03 Tom Tromey <tromey@adacore.com>
10167 * ada-exp.y (convert_char_literal): Check suffix of each
10170 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10173 * ada-exp.y (yywrap): Don't define.
10174 * ada-lex.l (%option): Add noyywrap
10177 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10179 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10180 _WIN32_WINNT to the XP level, unless already defined to a higher
10183 * unittests/parse-connection-spec-selftests.c:
10185 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10188 * symfile.c (find_separate_debug_file): Remove colon from the
10189 drive spec of DOS/Windows file names of the target, so that the
10190 file name produced from DEBUGDIR and the target's directory will
10191 be valid on DOS/Windows systems.
10193 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10195 * rust-lang.c (val_print_struct): Handle printing structures
10196 containing strings.
10198 2019-05-02 Tom Tromey <tromey@adacore.com>
10200 * valarith.c (_initialize_valarith): Remove.
10202 2019-05-01 Tom Tromey <tromey@adacore.com>
10204 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10207 2019-05-01 Tom Tromey <tromey@adacore.com>
10209 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10210 for big-endian copies.
10212 2019-04-30 Ali Tamur <tamur@google.com>
10213 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10214 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10215 (read_3_bytes): New function.
10217 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10219 * windows-nat.c (main_thread_id): Delete.
10220 (handle_output_debug_string): Replace main_thread_id by
10221 current_event.dwThreadId.
10222 (fake_create_process): Likewise.
10223 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10224 Do not set main_thread_id.
10225 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10226 current_event.dwThreadId.
10227 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10229 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10231 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10232 Use current_event.dwThreadId instead of main_thread_id.
10234 2019-04-30 Tom Tromey <tromey@adacore.com>
10236 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10237 (create_excep_cond_exprs): Iterate over program spaces.
10238 (ada_exception_catchpoint_cond_string): Examine all minimal
10239 symbols for exception types.
10241 2019-04-30 Tom Tromey <tromey@adacore.com>
10244 * dwarf2read.c (process_structure_scope): Handle case where type
10245 has template parameters but no symbol was created.
10247 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10248 Chris January <chris.january@arm.com>
10250 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10252 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10254 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10256 * f-typeprint.c (f_print_type): Update rules for printing
10258 (f_type_print_varspec_suffix): Likewise.
10260 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10261 Chris January <chris.january@arm.com>
10263 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10264 function arguments.
10266 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10268 * f-lang.c (build_fortran_types): Change name of void type to
10270 * f-typeprint.c (f_type_print_base): Print the name of the void
10271 type, rather than a fixed string.
10272 * f-valprint.c (f_decorations): Use lower case void string.
10274 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10275 Chris January <chris.january@arm.com>
10277 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10280 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10281 Chris January <chris.january@arm.com>
10282 David Lecomber <david.lecomber@arm.com>
10284 * f-exp.y (BINOP_INTRINSIC): New token.
10285 (exp): New parser rule handling BINOP_INTRINSIC.
10286 (f77_keywords): Add new builtin procedures.
10287 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10288 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10289 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10290 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10291 (print_unop_subexp_f): New function.
10292 (print_binop_subexp_f): New function.
10293 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10294 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10295 (dump_subexp_body_f): Likewise.
10296 (operator_check_f): Likewise.
10297 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10298 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10300 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10302 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10304 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10305 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10306 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10307 (operator_length_f): New fuction.
10308 (print_subexp_f): New function.
10309 (op_name_f): New function.
10310 (dump_subexp_body_f): New function.
10311 (operator_check_f): New function.
10312 (exp_descriptor_f): Replace standard expression handling functions
10313 with new functions.
10314 * gdb/fortran-operator.def: New file.
10315 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10316 * gdb/std-operator.def: Remove UNOP_KIND.
10318 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10320 * std-operator.def: Remove unbalanced, stray double quote
10323 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10324 Chris January <chris.january@arm.com>
10325 Daniel Everett <daniel.everett@arm.com>
10326 Nick Forrington <nick.forrington@arm.com>
10327 Richard Bunt <richard.bunt@arm.com>
10329 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10330 of depth when printing anonymous structs or unions.
10331 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10332 Don't print either the top-level value, or the children if the
10333 max-depth is exceeded.
10334 (ppscm_print_children): When printing the key of a map, allow one
10335 extra level of depth.
10336 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10337 print either the top-level value, or the children if the max-depth
10339 (print_children): When printing the key of a map, allow one extra
10341 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10342 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10343 (user_print_options): Initialise max_depth field.
10344 (val_print_scalar_or_string_type_p): New function.
10345 (val_print): Check to see if the max depth has been reached.
10346 (val_print_check_max_depth): Define new function.
10347 (show_print_max_depth): New function.
10348 (_initialize_valprint): Add 'print max-depth' option.
10349 * valprint.h (struct value_print_options) <max_depth>: New field.
10350 (val_print_check_max_depth): Declare new function.
10351 * NEWS: Document new feature.
10353 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10355 * ada-lang.c (ada_language_defn): Initialise new field.
10356 * c-lang.c (c_is_string_type_p): New function.
10357 (c_language_defn): Initialise new field.
10358 (cplus_language_defn): Initialise new field.
10359 (asm_language_defn): Initialise new field.
10360 (minimal_language_defn): Initialise new field.
10361 * c-lang.h (c_is_string_type_p): Declare new function.
10362 * d-lang.c (d_language_defn): Initialise new field.
10363 * f-lang.c (f_is_string_type_p): New function.
10364 (f_language_defn): Initialise new field.
10365 * go-lang.c (go_is_string_type_p): New function.
10366 (go_language_defn): Initialise new field.
10367 * language.c (default_is_string_type_p): New function.
10368 (unknown_language_defn): Initialise new field.
10369 (auto_language_defn): Initialise new field.
10370 * language.h (struct language_defn) <la_is_string_type_p>: New
10372 (default_is_string_type_p): Declare new function.
10373 * m2-lang.c (m2_language_defn): Initialise new field.
10374 * objc-lang.c (objc_language_defn): Initialise new field.
10375 * opencl-lang.c (opencl_language_defn): Initialise new field.
10376 * p-lang.c (pascal_is_string_type_p): New function.
10377 (pascal_language_defn): Initialise new field.
10378 * rust-lang.c (rust_is_string_type_p): New function.
10379 (rust_language_defn): Initialise new field.
10381 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10383 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10385 * ada-lang.c (ada_language_defn): Initialise new field.
10386 * c-lang.c (c_language_defn): Likewise.
10387 (cplus_language_defn): Likewise.
10388 (asm_language_defn): Likewise.
10389 (minimal_language_defn): Likewise.
10390 * d-lang.c (d_language_defn): Likewise.
10391 * f-lang.c (f_language_defn): Likewise.
10392 * go-lang.c (go_language_defn): Likewise.
10393 * language.c (unknown_language_defn): Likewise.
10394 (auto_language_defn): Likewise.
10395 * m2-lang.c (m2_language_defn): Likewise.
10396 * objc-lang.c (objc_language_defn): Likewise.
10397 * opencl-lang.c (opencl_language_defn): Likewise.
10398 * p-lang.c (pascal_language_defn): Likewise.
10399 * rust-lang.c (rust_language_defn): Likewise.
10401 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10403 * ada-lang.c (ada_is_character_type): Change return type to bool.
10404 (ada_is_string_type): Likewise.
10405 * ada-lang.h (ada_is_character_type): Update declaration
10406 (ada_is_string_type): Likewise.
10408 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10410 Support style in 'frame|thread apply'
10412 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10413 * record.c (record_start, record_stop): Update callers of
10414 execute_command_to_string with false.
10415 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10416 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10418 (class string_file): New constructor with term_out parameter.
10419 Override methods term_out and can_emit_style_escape. New member
10421 (class stdio_file): Override can_emit_style_escape.
10422 (class tee_file): Override term_out and can_emit_style_escape.
10423 * utils.h (can_emit_style_escape): Remove.
10424 * utils.c (can_emit_style_escape): Likewise.
10425 Update all callers of can_emit_style_escape (SOMESTREAM) to
10426 SOMESTREAM->can_emit_style_escape.
10427 * source-cache.c (source_cache::get_source_lines): Likewise.
10428 * stack.c (frame_apply_command_count): Call execute_command_to_string
10429 passing the term_out characteristic of the current gdb_stdout.
10430 * thread.c (thr_try_catch_cmd): Likewise.
10431 * top.c (execute_command_to_string): pass term_out parameter
10432 to construct the string_file for the command output.
10433 * ui-file.c (term_cli_styling): New function (most code moved
10434 from utils.c can_emit_style_escape).
10435 (string_file::string_file, string_file::can_emit_style_escape,
10436 stdio_file::can_emit_style_escape, tee_file::term_out,
10437 tee_file::can_emit_style_escape): New functions.
10439 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10441 * NEWS: Mention the new set|show may-call-functions.
10442 * infcall.c (may_call_functions_p): New variable.
10443 (show_may_call_functions_p): New function.
10444 (call_function_by_hand_dummy): Throws an error if not
10445 may-call-functions.
10446 (_initialize_infcall): Call add_setshow_boolean_cmd for
10447 may-call-functions.
10449 2019-04-25 Keith Seitz <keiths@redhat.com>
10452 * cp-support.c (inspect_type): Don't attempt substitutions
10453 of symbol with the same name.
10455 2019-04-25 Tom Tromey <tromey@adacore.com>
10458 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10461 2019-04-25 Tom Tromey <tromey@adacore.com>
10463 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10465 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10466 (gdb_xml_parser::parse): Use std::move.
10467 * python/python-internal.h (gdbpy_convert_exception): Take a const
10469 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10471 * python/py-utils.c (gdbpy_convert_exception): Take a const
10473 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10475 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10477 * mi/mi-main.c (mi_print_exception): Take a const reference.
10478 * main.c (handle_command_errors): Take a const reference.
10479 * linespec.c (parse_linespec): Use std::move.
10480 * infcall.c (run_inferior_call): Use std::move.
10481 (call_function_by_hand_dummy): Use std::move.
10482 * exec.c (try_open_exec_file): Use std::move.
10483 * exceptions.h (exception_print, exception_fprintf)
10484 (exception_print_same): Update.
10485 * exceptions.c (print_exception, exception_print)
10486 (exception_fprintf, exception_print_same): Change parameters to
10488 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10489 * common/new-op.c: Use std::move.
10490 * common/common-exceptions.h (struct gdb_exception): Add move
10492 (struct gdb_exception_error, struct gdb_exception_quit, struct
10493 gdb_quit_bad_alloc): Change constructor to move constructor.
10494 (throw_exception): Change parameter to rvalue reference.
10495 * common/common-exceptions.c (throw_exception): Take rvalue
10497 * cli/cli-interp.c (safe_execute_command): Use std::move.
10498 * breakpoint.c (insert_bp_location, location_to_sals): Use
10501 2019-04-25 Tom Tromey <tromey@adacore.com>
10503 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10504 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10505 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10506 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10507 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10508 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10509 guile/scm-value.c: Use unpack.
10510 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10511 gdbscm_gdb_exception.
10512 (gdbscm_throw_gdb_exception): Likewise.
10513 (struct gdbscm_gdb_exception): New.
10514 (unpack): New function.
10515 (gdbscm_wrap): Use unpack.
10517 2019-04-25 Tom Tromey <tromey@adacore.com>
10519 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10520 (gdb_rl_callback_handler): Use std::move.
10521 * common/common-exceptions.h (struct gdb_exception): Add move
10522 assignment operator.
10523 (throw_exception_sjlj): Change "exception" to const reference.
10524 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10525 (throw_exception_sjlj): Change "exception" to const reference.
10527 2019-04-25 Tom Tromey <tromey@adacore.com>
10529 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10530 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10531 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10533 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10535 * mi/mi-interp.c (mi_interp::exec): Update.
10536 * linespec.c (parse_linespec): Update.
10537 * infcall.c (run_inferior_call): Update.
10538 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10539 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10540 (gdbscm_lookup_global_symbol): Update.
10541 * guile/scm-param.c (gdbscm_parameter_value): Update.
10542 * guile/scm-frame.c (gdbscm_frame_read_register)
10543 (gdbscm_frame_read_var): Update.
10544 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10545 * exec.c (try_open_exec_file): Update.
10546 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10547 (gdb_rl_callback_handler): Update.
10548 * common/common-exceptions.h (exception_none): Don't declare.
10549 * common/common-exceptions.c (exception_none): Don't define.
10550 (struct catcher) <exception>: Update.
10551 * cli/cli-interp.c (safe_execute_command): Update.
10552 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10554 2019-04-25 Ali Tamur <tamur@google.com>
10556 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10557 (read_attribute_value): Likewise.
10558 (dwarf2_read_addr_index): Update comment.
10559 (read_str_index): Add DW_FORM_strx.
10560 (dwarf2_string_attr): Likewise.
10561 (dwarf2_const_value_attr): Likewise.
10562 (dump_die_shallow): Likewise.
10563 (dwarf2_fetch_constant_bytes): Likewise.
10564 (skip_form_bytes): Likewise.
10565 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10567 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10571 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10572 OFFSET. Verify if current mapping contains an ELF header.
10573 (linux_find_memory_regions_full): Adjust call to
10576 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10577 Kang Li <kanglictf@gmail.com>
10581 * dwarf2-frame.c (read_initial_length): Be consistent about using
10582 unsigned representation of length.
10583 (decode_frame_entry_1): Likewise. Check for wraparound of
10584 end pointer as well as buffer overflow.
10586 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10588 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10591 2019-04-24 Tom Tromey <tromey@adacore.com>
10593 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10595 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10597 * s12z-tdep.c (s12z_unwind_pc): Delete.
10598 (s12z_unwind_sp): Delete.
10599 (s12z_gdbarch_init): Don't register deleted functions with
10602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10604 * rl78-tdep.c (rl78_unwind_sp): Delete.
10605 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10609 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10610 (xstormy16_unwind_pc): Delete.
10611 (xstormy16_dummy_id): Delete.
10612 (xstormy16_gdbarch_init): Don't register deleted functions with
10615 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10617 * vax-tdep.c (vax_unwind_pc): Delete.
10618 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10622 * v850-tdep.c (v850_unwind_sp): Delete.
10623 (v850_unwind_pc): Delete.
10624 (v850_dummy_id): Delete.
10625 (v850_gdbarch_init): Don't register deleted functions with
10628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10630 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10631 (tilegx_unwind_pc): Delete.
10632 (tilegx_unwind_dummy_id): Delete.
10633 (tilegx_gdbarch_init): Don't register deleted functions with
10636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10638 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10639 (tic6x_dummy_id): Delete.
10640 (tic6x_gdbarch_init): Don't register deleted functions with
10643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10645 * sparc-tdep.c (sparc_unwind_pc): Delete.
10646 (sparc32_gdbarch_init): Don't register deleted function with
10649 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10651 * sh-tdep.c (sh_unwind_sp): Delete.
10652 (sh_unwind_pc): Delete.
10653 (sh_dummy_id): Delete.
10654 (sh_gdbarch_init): Don't register deleted functions with
10657 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10659 * score-tdep.c (score_unwind_sp): Delete.
10660 (score_unwind_pc): Delete.
10661 (score_dummy_id): Delete.
10662 (score_gdbarch_init): Don't register deleted functions with
10665 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10667 * rx-tdep.c (rx_unwind_pc): Delete.
10668 (rx_unwind_sp): Delete.
10669 (rx_dummy_id): Delete.
10670 (rx_gdbarch_init): Don't register deleted functions with
10671 gdbarch. Update comment.
10673 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10675 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10676 (rs6000_dummy_id): Delete.
10677 (rs6000_gdbarch_init): Don't register deleted functions with
10680 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10682 * or1k-tdep.c (or1k_dummy_id): Delete.
10683 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10687 * nios2-tdep.c (nios2_dummy_id): Delete.
10688 (nios2_unwind_sp): Delete.
10689 (nios2_gdbarch_init): Don't register deleted functions with
10692 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10694 * nds32-tdep.c (nds32_dummy_id): Delete.
10695 (nds32_unwind_pc): Delete.
10696 (nds32_unwind_sp): Delete.
10697 (nds32_gdbarch_init): Don't register deleted functions with
10700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10702 * msp430-tdep.c (msp430_unwind_pc): Delete.
10703 (msp430_unwind_sp): Delete.
10704 (msp430_dummy_id): Delete.
10705 (msp430_gdbarch_init): Don't register deleted functions with
10708 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10710 * moxie-tdep.c (moxie_unwind_sp): Delete.
10711 (moxie_unwind_pc): Delete.
10712 (moxie_dummy_id): Delete.
10713 (moxie_gdbarch_init): Don't register deleted functions with
10716 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10718 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10719 (mn10300_unwind_pc): Delete.
10720 (mn10300_unwind_sp): Delete.
10721 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10723 (mn10300_frame_unwind_init): Don't register deleted functions with
10726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10728 * mep-tdep.c (mep_unwind_pc): Delete.
10729 (mep_unwind_sp): Delete.
10730 (mep_dummy_id): Delete.
10731 (mep_gdbarch_init): Don't register deleted functions with
10734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10736 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10737 (m68hc11_unwind_sp): Delete.
10738 (m68hc11_gdbarch_init): Don't register deleted functions with
10741 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10743 * m32r-tdep.c (m32r_unwind_sp): Delete.
10744 (m32r_unwind_pc): Delete.
10745 (m32r_dummy_id): Delete.
10746 (m32r_gdbarch_init): Don't register deleted functions with
10749 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10751 * m32c-tdep.c (m32c_unwind_pc): Delete.
10752 (m32c_unwind_sp): Delete.
10753 (m32c_dummy_id): Delete.
10754 (m32c_gdbarch_init): Don't register deleted functions with
10757 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10759 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10760 (lm32_unwind_pc): Delete.
10761 (lm32_dummy_id): Delete.
10762 (lm32_gdbarch_init): Don't register deleted functions with
10765 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10767 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10768 (iq2000_unwind_pc): Delete.
10769 (iq2000_dummy_id): Delete.
10770 (iq2000_gdbarch_init): Don't register deleted functions with
10773 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10775 * nds32-tdep.c (nds32_type_align): Delete.
10776 (nds32_push_dummy_call): Use type_align instead.
10778 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10780 * arm-tdep.c (arm_type_align): Only handle vector override case.
10781 (arm_push_dummy_call): Use type_align.
10782 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10784 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10786 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10788 (pass_on_stack): Use type_align.
10789 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10792 2019-04-23 Tom Tromey <tromey@adacore.com>
10794 * dwarf2read.c (line_header::file_name_at): Remove unused
10797 2019-04-23 Tom de Vries <tdevries@suse.de>
10800 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10804 2019-03-27 Ali Tamur <tamur@google.com>
10806 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10807 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10808 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10809 (dwarf_expr_context::get_addr_index): Likewise
10810 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10811 (symbol_needs_eval_context::get_addr_index): Likewise
10812 (disassemble_dwarf_expression): Add DW_OP_addrx
10813 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10814 (read_cutu_die_from_dwo): Update comment
10815 (skip_one_die): Add DW_FORM_addrx
10816 (read_attribute_value): Likewise
10817 (var_decode_location): Add DW_OP_addrx
10818 (dwarf2_const_value_attr): Add DW_FORM_addrx
10819 (dump_die_shallow): Likewise
10820 (dwarf2_fetch_constant_bytes): Likewise
10821 (decode_locdesc): Add DW_OP_addrx
10822 (skip_form_bytes): Add DW_FORM_addrx
10824 2019-04-22 Ali Tamur <tamur@google.com>
10826 * MAINTAINERS (Write After Approval): Add self.
10828 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10830 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10831 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10832 (open_symbol_file_object): Likewise.
10833 (svr4_default_sos): Add info parameter.
10834 (svr4_read_so_list): Likewise.
10835 (svr4_current_sos_direct): Adjust functions calls to pass down
10837 (svr4_current_sos_1): Add info parameter.
10838 (svr4_current_sos): Call get_svr4_info, pass info down to
10839 svr4_current_sos_1.
10840 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10842 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10844 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10846 (probes_table_remove_objfile_probes): Likewise.
10847 (register_solib_event_probe): Add info parameter.
10848 (solist_update_incremental): Pass info parameter down to
10850 (disable_probes_interface): Add info parameter.
10851 (svr4_handle_solib_event): Pass current_program_space to
10852 get_svr4_info. Adjust disable_probes_interface cleanup.
10853 (svr4_create_probe_breakpoints): Add info parameter, pass it
10854 down to register_solib_event_probe.
10855 (svr4_create_solib_event_breakpoints): Add info parameter,
10856 pass it down to svr4_create_probe_breakpoints.
10857 (enable_break): Pass info down to
10858 svr4_create_solib_event_breakpoints.
10859 (svr4_solib_create_inferior_hook): Pass current_program_space to
10861 (svr4_clear_solib): Likewise.
10863 2019-04-22 Pedro Alves <palves@redhat.com>
10865 * solib-svr4.c (svr4_free_objfile_observer): New.
10866 (probe_and_action::objfile): New field.
10867 (probes_table_htab_remove_objfile_probes)
10868 (probes_table_remove_objfile_probes): New functions.
10869 (register_solib_event_probe): Add 'objfile' parameter. Store it
10870 in the new probe_and_action. Don't store the probe in 'lookup'.
10871 (svr4_create_probe_breakpoints): Pass objfile to
10872 register_solib_event_probe.
10873 (_initialize_svr4_solib): Register a free_objfile observer.
10875 2019-04-19 Tom Tromey <tom@tromey.com>
10877 * common/queue.h: Remove.
10879 2019-04-19 Tom Tromey <tom@tromey.com>
10881 * event-loop.c: Don't include "common/queue.h".
10883 2019-04-19 Tom Tromey <tom@tromey.com>
10885 * remote.c (remote_target): Use delete.
10886 * remote-notif.h: Include <list>, not "common/queue.h".
10887 (notif_client_p): Remove typedef.
10888 (remote_notif_state): Add constructor, destructor, initializer.
10889 <notif_queue>: Now a std::list.
10890 (remote_notif_state_xfree): Don't declare.
10891 * remote-notif.c (remote_notif_process, handle_notification)
10892 (remote_notif_state_allocate): Update.
10893 (~remote_notif_state): Rename from remote_notif_state_xfree.
10895 2019-04-19 Tom Tromey <tom@tromey.com>
10897 * symfile.c (reread_symbols): Update.
10898 * objfiles.c (objfile_register_static_link)
10899 (objfile_lookup_static_link): Update
10900 (~objfile) Don't delete static_links.
10901 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10903 2019-04-19 Tom Tromey <tom@tromey.com>
10905 * type-stack.h (struct type_stack) <insert>: Constify string.
10906 * type-stack.c (type_stack::insert): Constify string.
10907 * gdbtypes.h (lookup_template_type): Update.
10908 (address_space_name_to_int): Update.
10909 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10911 (lookup_template_type): Make name const.
10912 * c-exp.y: Update rules.
10913 (lex_one_token, classify_name, classify_inner_name)
10914 (c_print_token): Update.
10915 * p-exp.y: Update rules.
10917 * f-exp.y: Update rules.
10919 * d-exp.y: Update rules.
10920 (lex_one_token, classify_name, classify_inner_name): Update.
10921 * parse.c (write_dollar_variable, copy_name): Return std::string.
10922 * parser-defs.h (copy_name): Change return type.
10923 * m2-exp.y: Update rules.
10925 * go-exp.y (lex_one_token): Update.
10927 (classify_unsafe_function, classify_packaged_name)
10928 (classify_name, yylex): Update.
10930 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10932 * configure.ac: add --enable-source-highlight switch.
10933 * configure: Regenerate.
10934 * top.c (print_gdb_version): plumb --enable-source-highlight
10935 status to "show configuration".
10937 2019-04-19 Tom Tromey <tromey@adacore.com>
10939 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10941 (empty_record, ada_template_to_fixed_record_type_1)
10942 (template_to_static_fixed_type)
10943 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10944 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10945 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10948 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10951 * source.c (print_source_lines_base): Advance "iter" when a
10952 control character is seen.
10954 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10956 * inferior.h (struct infcall_suspend_state_deleter):
10957 Catch exception in destructor to avoid crash.
10959 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10961 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10962 close to the add_com "shell".
10964 2019-04-18 Tom Tromey <tromey@adacore.com>
10966 * process-stratum-target.h (class process_stratum_target)
10967 <stratum>: Add "final".
10969 2019-04-17 Tom Tromey <tromey@adacore.com>
10971 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10972 against nullptr before use.
10974 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10976 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10978 2019-04-17 Jim Wilson <jimw@sifive.com>
10979 Andrew Burgess <andrew.burgess@embecosm.com>
10981 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10982 code read might fail, assume 4-byte breakpoint in that case.
10984 2019-04-15 Leszek Swirski <leszeks@google.com>
10986 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10987 rather than a hand-rolled POD check when checking for forced MEMORY
10990 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10992 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10993 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10995 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10996 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10997 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11000 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11002 * aarch64-linux-nat.c
11003 (aarch64_linux_nat_target::thread_architecture): Add override.
11004 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11007 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11009 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11011 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11013 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11014 target types of size 96-bits, add some additional comments, and
11015 check that the builtin type we found was the correct size.
11017 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11019 * utils.c (prompt_for_continue): Don't restore the styling at the
11020 end, as applied_style has the wrong value. This fixes styling in
11021 long lists of file names that are interrupted by the "Continue?"
11024 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11026 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11027 * c-lang.c (c_language_defn): Likewise.
11028 (cplus_language_defn): Likewise.
11029 (asm_language_defn): Likewise.
11030 (minimal_language_defn): Likewise.
11031 * d-lang.c (d_language_defn): Likewise.
11032 * f-lang.c (f_language_defn): Likewise.
11033 * go-lang.c (go_language_defn): Likewise.
11034 * language.c (unknown_language_defn): Likewise.
11035 (auto_language_defn): Likewise.
11036 * language.h (struct language_defn): Remove la_magic field.
11037 (LANG_MAGIC): Delete.
11038 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11039 * objc-lang.c (objc_language_defn): Likewise.
11040 * opencl-lang.c (opencl_language_defn): Likewise.
11041 * p-lang.c (pascal_language_defn): Likewise.
11042 * rust-lang.c (rust_language_defn): Likewise.
11044 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11046 * riscv-tdep.c (riscv_type_align): New function.
11047 (riscv_type_alignment): Delete.
11048 (riscv_arg_location): Use 'type_align'.
11049 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11051 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11053 * gdbtypes.c (type_align): A struct with no non-static fields also
11054 has alignment of 1.
11056 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11058 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11060 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11062 (riscv_struct_info::analyse): New implementation using new
11063 analyse_inner member function.
11064 (riscv_struct_info::field_offset): New member function.
11065 (riscv_struct_info::m_offsets): New member variable.
11066 (riscv_struct_info::analyse_inner): New private member function,
11067 takes the old implementation of riscv_struct_info::analyse but
11068 extended to track field offsets.
11069 (riscv_call_arg_struct): Update the struct folding special cases
11070 to handle cases where empty C++ structs, which are non-zero
11072 (riscv_arg_location): Initialise the length of each location, a
11073 non-zero length now indicates the location is in use.
11074 (riscv_push_dummy_call): Allow for the first location having a
11075 non-zero offset when setting up arguments.
11076 (riscv_return_value): Likewise, but for return values.
11078 2019-04-11 Tom Tromey <tromey@adacore.com>
11080 * utils.c (internal_vproblem): Make "msg" const.
11082 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11084 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11085 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11086 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11087 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11089 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11091 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11093 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11094 of amd64_collect_native_gregset.
11095 (amd64_linux_nat_target::store_registers): Likewise.
11097 2019-04-10 Tom Tromey <tom@tromey.com>
11099 * symtab.c (lookup_global_symbol_from_objfile)
11100 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11101 * objfiles.h (class separate_debug_iterator): New.
11102 (class separate_debug_range): New.
11103 (struct objfile) <separate_debug_objfiles>: New method.
11104 (objfile_separate_debug_iterate): Don't declare.
11105 * objfiles.c (separate_debug_iterator::operator++): Rename from
11106 objfile_separate_debug_iterate.
11107 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11109 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11112 2019-04-10 Tom Tromey <tom@tromey.com>
11114 * symfile.c (reread_symbols): Remove old comment.
11115 * objfiles.c (free_all_objfiles): Fix a typo.
11117 2019-04-10 Tom Tromey <tom@tromey.com>
11119 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11120 * minsyms.c (lookup_minimal_symbol): Use foreach.
11121 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11122 (lookup_minimal_symbol_solib_trampoline): Likewise.
11123 * symfile.c (reread_symbols): Use foreach.
11125 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11126 Tom Tromey <tromey@adacore.com>
11129 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11130 (rust_lex_int_test): Change "value" to be LONGEST.
11131 (rust_lex_tests): Add test for long integer literal.
11133 2019-04-09 Tom Tromey <tromey@adacore.com>
11135 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11137 (extended_remote_target::attach): Update.
11138 (remote_target::remote_notice_new_inferior): Update.
11139 (remote_target::add_current_inferior_and_thread): Update.
11140 * inferior.c (exit_inferior_1): Use "false".
11141 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11143 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11145 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11146 the "start" command.
11148 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11150 * python/py-inferior.c (infpy_thread_from_thread_handle):
11151 Adjust comments to reflect renaming of thread_from_thread_handle
11152 to thread_from_handle. Adjust keywords. Fix type error message.
11153 (inferior_object_methods): Add thread_from_handle. Retain
11154 thread_from_thread_handle, but mark it as deprecated.
11156 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11158 * gdbthread.h (find_thread_by_handle): Revise declaration.
11159 * thread.c (find_thread_by_handle): Likewise. Adjust
11160 implementation too.
11161 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11162 support for buffer objects as handles.
11164 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11166 * python/py-infthread.c (thpy_thread_handle): New function.
11167 (thread_object_methods): Register thpy_thread_handle.
11169 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11171 * gdbthread.h (thread_to_thread_handle): Declare.
11172 * thread.c (gdbtypes.h): Include.
11173 (thread_to_thread_handle): New function.
11175 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11176 (target_thread_info_to_thread_handle): Declare.
11177 * target.c (target_thread_info_to_thread_handle): New function.
11178 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11179 * target-delegates.c: Regenerate.
11181 * linux-thread-db.c (class thread_db_target): Add method
11182 thread_info_to_thread_handle.
11183 (thread_db_target::thread_info_to_thread_handle): Define.
11184 * remote.c (class remote_target): Add new method
11185 thread_info_to_thread_handle.
11186 (remote_target::thread_info_to_thread_handle): Define.
11188 2019-04-08 Pedro Alves <palves@redhat.com>
11190 * common/common-exceptions.c (throw_exception): Don't create
11191 named object to throw; throw directly.
11192 (throw_it): Likewise. Don't initialize gdb_exception::message
11193 here, with new; pass FMT and AP to the ctor instead.
11194 * common/common-exceptions.h: Include <string>.
11195 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11196 const char *, va_list)): New ctor. Use std::make_shared.
11197 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11199 (gdb_exception_error::gdb_exception_error(enum errors, const char
11201 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11203 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11205 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11206 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11209 2019-04-08 Tom Tromey <tom@tromey.com>
11211 * valops.c (value_rtti_indirect_type): Replace throw_exception
11213 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11215 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11217 * target.c (target_translate_tls_address): Replace throw_exception
11219 * stack.c (frame_apply_command_count): Replace throw_exception
11221 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11223 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11225 * rs6000-tdep.c (rs6000_frame_cache)
11226 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11227 * remote.c: Replace throw_exception with throw.
11228 * record-full.c (record_full_message, record_full_wait_1)
11229 (record_full_restore): Replace throw_exception with throw.
11231 (get_thread_current_frame_id, record_btrace_start_replaying)
11232 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11233 (cmd_record_btrace_start): Replace throw_exception with throw.
11234 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11236 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11237 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11239 (find_linespec_symbols): Replace throw_exception with throw.
11240 * infrun.c (displaced_step_prepare, resume): Replace
11241 throw_exception with throw.
11242 * infcmd.c (post_create_inferior): Replace throw_exception with
11244 * inf-loop.c (inferior_event_handler): Replace throw_exception
11246 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11247 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11248 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11249 (get_prev_frame_always, get_frame_pc_if_available)
11250 (get_frame_address_in_block_if_available, get_frame_language):
11251 Replace throw_exception with throw.
11252 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11253 throw_exception with throw.
11254 * eval.c (fetch_subexp_value, evaluate_var_value)
11255 (evaluate_funcall, evaluate_subexp_standard): Replace
11256 throw_exception with throw.
11257 * dwarf2loc.c (call_site_find_chain)
11258 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11259 Replace throw_exception with throw.
11260 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11262 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11264 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11265 * completer.c (complete_line_internal): Replace throw_exception
11267 * compile/compile-object-run.c (compile_object_run): Replace
11268 throw_exception with throw.
11269 * cli/cli-script.c (process_next_line): Replace throw_exception
11271 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11272 (btrace_enable, btrace_maint_update_pt_packets): Replace
11273 throw_exception with throw.
11274 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11275 throw_exception with throw.
11276 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11277 throw_exception with throw.
11278 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11279 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11280 * aarch64-tdep.c (aarch64_make_prologue_cache)
11281 (aarch64_make_stub_cache): Replace throw_exception with throw.
11283 2019-04-08 Tom Tromey <tom@tromey.com>
11285 * common/common-exceptions.c (throw_exception): Rename from
11286 throw_exception_cxx. Remove old copy. Make argument const.
11287 (throw_it): Create and throw exception objects directly.
11288 * common/common-exceptions.h (throw_exception): Make argument
11290 (struct gdb_exception_error): Add constructor.
11291 (struct gdb_exception_quit): Add constructor.
11293 2019-04-08 Tom Tromey <tom@tromey.com>
11295 * common/common-exceptions.h (exception_rethrow): Don't declare.
11296 (TRY_SJLJ): Update comment.
11297 (TRY, CATCH, END_CATCH): Remove.
11298 * common/common-exceptions.c (exception_rethrow): Remove.
11300 2019-04-08 Tom Tromey <tom@tromey.com>
11302 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11304 (gdb_exception_error): Rename from
11305 gdb_exception_RETURN_MASK_ERROR.
11306 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11307 (gdb_quit_bad_alloc): Update.
11308 * aarch64-tdep.c: Update.
11309 * ada-lang.c: Update.
11310 * ada-typeprint.c: Update.
11311 * ada-valprint.c: Update.
11312 * amd64-tdep.c: Update.
11313 * arch-utils.c: Update.
11314 * break-catch-throw.c: Update.
11315 * breakpoint.c: Update.
11316 * btrace.c: Update.
11317 * c-varobj.c: Update.
11318 * cli/cli-cmds.c: Update.
11319 * cli/cli-interp.c: Update.
11320 * cli/cli-script.c: Update.
11321 * common/common-exceptions.c: Update.
11322 * common/new-op.c: Update.
11323 * common/selftest.c: Update.
11324 * compile/compile-c-symbols.c: Update.
11325 * compile/compile-cplus-symbols.c: Update.
11326 * compile/compile-object-load.c: Update.
11327 * compile/compile-object-run.c: Update.
11328 * completer.c: Update.
11329 * corelow.c: Update.
11330 * cp-abi.c: Update.
11331 * cp-support.c: Update.
11332 * cp-valprint.c: Update.
11333 * darwin-nat.c: Update.
11334 * disasm-selftests.c: Update.
11335 * dtrace-probe.c: Update.
11336 * dwarf-index-cache.c: Update.
11337 * dwarf-index-write.c: Update.
11338 * dwarf2-frame-tailcall.c: Update.
11339 * dwarf2-frame.c: Update.
11340 * dwarf2loc.c: Update.
11341 * dwarf2read.c: Update.
11343 * event-loop.c: Update.
11344 * event-top.c: Update.
11346 * f-valprint.c: Update.
11347 * fbsd-tdep.c: Update.
11348 * frame-unwind.c: Update.
11350 * gdbtypes.c: Update.
11351 * gnu-v3-abi.c: Update.
11352 * guile/guile-internal.h: Update.
11353 * guile/scm-block.c: Update.
11354 * guile/scm-breakpoint.c: Update.
11355 * guile/scm-cmd.c: Update.
11356 * guile/scm-disasm.c: Update.
11357 * guile/scm-frame.c: Update.
11358 * guile/scm-lazy-string.c: Update.
11359 * guile/scm-math.c: Update.
11360 * guile/scm-param.c: Update.
11361 * guile/scm-ports.c: Update.
11362 * guile/scm-pretty-print.c: Update.
11363 * guile/scm-symbol.c: Update.
11364 * guile/scm-symtab.c: Update.
11365 * guile/scm-type.c: Update.
11366 * guile/scm-value.c: Update.
11367 * i386-linux-tdep.c: Update.
11368 * i386-tdep.c: Update.
11369 * inf-loop.c: Update.
11370 * infcall.c: Update.
11371 * infcmd.c: Update.
11372 * infrun.c: Update.
11374 * language.c: Update.
11375 * linespec.c: Update.
11376 * linux-fork.c: Update.
11377 * linux-nat.c: Update.
11378 * linux-tdep.c: Update.
11379 * linux-thread-db.c: Update.
11381 * mi/mi-cmd-break.c: Update.
11382 * mi/mi-cmd-stack.c: Update.
11383 * mi/mi-interp.c: Update.
11384 * mi/mi-main.c: Update.
11385 * objc-lang.c: Update.
11386 * p-valprint.c: Update.
11388 * ppc-linux-tdep.c: Update.
11389 * printcmd.c: Update.
11390 * python/py-arch.c: Update.
11391 * python/py-breakpoint.c: Update.
11392 * python/py-cmd.c: Update.
11393 * python/py-finishbreakpoint.c: Update.
11394 * python/py-frame.c: Update.
11395 * python/py-framefilter.c: Update.
11396 * python/py-gdb-readline.c: Update.
11397 * python/py-inferior.c: Update.
11398 * python/py-infthread.c: Update.
11399 * python/py-lazy-string.c: Update.
11400 * python/py-linetable.c: Update.
11401 * python/py-objfile.c: Update.
11402 * python/py-param.c: Update.
11403 * python/py-prettyprint.c: Update.
11404 * python/py-progspace.c: Update.
11405 * python/py-record-btrace.c: Update.
11406 * python/py-record.c: Update.
11407 * python/py-symbol.c: Update.
11408 * python/py-type.c: Update.
11409 * python/py-unwind.c: Update.
11410 * python/py-utils.c: Update.
11411 * python/py-value.c: Update.
11412 * python/python.c: Update.
11413 * record-btrace.c: Update.
11414 * record-full.c: Update.
11415 * remote-fileio.c: Update.
11416 * remote.c: Update.
11417 * riscv-tdep.c: Update.
11418 * rs6000-aix-tdep.c: Update.
11419 * rs6000-tdep.c: Update.
11420 * rust-exp.y: Update.
11421 * rust-lang.c: Update.
11422 * s390-tdep.c: Update.
11423 * selftest-arch.c: Update.
11424 * solib-dsbt.c: Update.
11425 * solib-frv.c: Update.
11426 * solib-spu.c: Update.
11427 * solib-svr4.c: Update.
11429 * sparc64-linux-tdep.c: Update.
11431 * symfile-mem.c: Update.
11432 * symmisc.c: Update.
11433 * target.c: Update.
11434 * thread.c: Update.
11436 * tracefile-tfile.c: Update.
11437 * tui/tui.c: Update.
11438 * typeprint.c: Update.
11439 * unittests/cli-utils-selftests.c: Update.
11440 * unittests/parse-connection-spec-selftests.c: Update.
11441 * valops.c: Update.
11442 * valprint.c: Update.
11444 * varobj.c: Update.
11445 * windows-nat.c: Update.
11446 * x86-linux-nat.c: Update.
11447 * xml-support.c: Update.
11449 2019-04-08 Tom Tromey <tom@tromey.com>
11451 * xml-support.c: Use C++ exception handling.
11452 * x86-linux-nat.c: Use C++ exception handling.
11453 * windows-nat.c: Use C++ exception handling.
11454 * varobj.c: Use C++ exception handling.
11455 * value.c: Use C++ exception handling.
11456 * valprint.c: Use C++ exception handling.
11457 * valops.c: Use C++ exception handling.
11458 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11460 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11461 * typeprint.c: Use C++ exception handling.
11462 * tui/tui.c: Use C++ exception handling.
11463 * tracefile-tfile.c: Use C++ exception handling.
11464 * top.c: Use C++ exception handling.
11465 * thread.c: Use C++ exception handling.
11466 * target.c: Use C++ exception handling.
11467 * symmisc.c: Use C++ exception handling.
11468 * symfile-mem.c: Use C++ exception handling.
11469 * stack.c: Use C++ exception handling.
11470 * sparc64-linux-tdep.c: Use C++ exception handling.
11471 * solib.c: Use C++ exception handling.
11472 * solib-svr4.c: Use C++ exception handling.
11473 * solib-spu.c: Use C++ exception handling.
11474 * solib-frv.c: Use C++ exception handling.
11475 * solib-dsbt.c: Use C++ exception handling.
11476 * selftest-arch.c: Use C++ exception handling.
11477 * s390-tdep.c: Use C++ exception handling.
11478 * rust-lang.c: Use C++ exception handling.
11479 * rust-exp.y: Use C++ exception handling.
11480 * rs6000-tdep.c: Use C++ exception handling.
11481 * rs6000-aix-tdep.c: Use C++ exception handling.
11482 * riscv-tdep.c: Use C++ exception handling.
11483 * remote.c: Use C++ exception handling.
11484 * remote-fileio.c: Use C++ exception handling.
11485 * record-full.c: Use C++ exception handling.
11486 * record-btrace.c: Use C++ exception handling.
11487 * python/python.c: Use C++ exception handling.
11488 * python/py-value.c: Use C++ exception handling.
11489 * python/py-utils.c: Use C++ exception handling.
11490 * python/py-unwind.c: Use C++ exception handling.
11491 * python/py-type.c: Use C++ exception handling.
11492 * python/py-symbol.c: Use C++ exception handling.
11493 * python/py-record.c: Use C++ exception handling.
11494 * python/py-record-btrace.c: Use C++ exception handling.
11495 * python/py-progspace.c: Use C++ exception handling.
11496 * python/py-prettyprint.c: Use C++ exception handling.
11497 * python/py-param.c: Use C++ exception handling.
11498 * python/py-objfile.c: Use C++ exception handling.
11499 * python/py-linetable.c: Use C++ exception handling.
11500 * python/py-lazy-string.c: Use C++ exception handling.
11501 * python/py-infthread.c: Use C++ exception handling.
11502 * python/py-inferior.c: Use C++ exception handling.
11503 * python/py-gdb-readline.c: Use C++ exception handling.
11504 * python/py-framefilter.c: Use C++ exception handling.
11505 * python/py-frame.c: Use C++ exception handling.
11506 * python/py-finishbreakpoint.c: Use C++ exception handling.
11507 * python/py-cmd.c: Use C++ exception handling.
11508 * python/py-breakpoint.c: Use C++ exception handling.
11509 * python/py-arch.c: Use C++ exception handling.
11510 * printcmd.c: Use C++ exception handling.
11511 * ppc-linux-tdep.c: Use C++ exception handling.
11512 * parse.c: Use C++ exception handling.
11513 * p-valprint.c: Use C++ exception handling.
11514 * objc-lang.c: Use C++ exception handling.
11515 * mi/mi-main.c: Use C++ exception handling.
11516 * mi/mi-interp.c: Use C++ exception handling.
11517 * mi/mi-cmd-stack.c: Use C++ exception handling.
11518 * mi/mi-cmd-break.c: Use C++ exception handling.
11519 * main.c: Use C++ exception handling.
11520 * linux-thread-db.c: Use C++ exception handling.
11521 * linux-tdep.c: Use C++ exception handling.
11522 * linux-nat.c: Use C++ exception handling.
11523 * linux-fork.c: Use C++ exception handling.
11524 * linespec.c: Use C++ exception handling.
11525 * language.c: Use C++ exception handling.
11526 * jit.c: Use C++ exception handling.
11527 * infrun.c: Use C++ exception handling.
11528 * infcmd.c: Use C++ exception handling.
11529 * infcall.c: Use C++ exception handling.
11530 * inf-loop.c: Use C++ exception handling.
11531 * i386-tdep.c: Use C++ exception handling.
11532 * i386-linux-tdep.c: Use C++ exception handling.
11533 * guile/scm-value.c: Use C++ exception handling.
11534 * guile/scm-type.c: Use C++ exception handling.
11535 * guile/scm-symtab.c: Use C++ exception handling.
11536 * guile/scm-symbol.c: Use C++ exception handling.
11537 * guile/scm-pretty-print.c: Use C++ exception handling.
11538 * guile/scm-ports.c: Use C++ exception handling.
11539 * guile/scm-param.c: Use C++ exception handling.
11540 * guile/scm-math.c: Use C++ exception handling.
11541 * guile/scm-lazy-string.c: Use C++ exception handling.
11542 * guile/scm-frame.c: Use C++ exception handling.
11543 * guile/scm-disasm.c: Use C++ exception handling.
11544 * guile/scm-cmd.c: Use C++ exception handling.
11545 * guile/scm-breakpoint.c: Use C++ exception handling.
11546 * guile/scm-block.c: Use C++ exception handling.
11547 * guile/guile-internal.h: Use C++ exception handling.
11548 * gnu-v3-abi.c: Use C++ exception handling.
11549 * gdbtypes.c: Use C++ exception handling.
11550 * frame.c: Use C++ exception handling.
11551 * frame-unwind.c: Use C++ exception handling.
11552 * fbsd-tdep.c: Use C++ exception handling.
11553 * f-valprint.c: Use C++ exception handling.
11554 * exec.c: Use C++ exception handling.
11555 * event-top.c: Use C++ exception handling.
11556 * event-loop.c: Use C++ exception handling.
11557 * eval.c: Use C++ exception handling.
11558 * dwarf2read.c: Use C++ exception handling.
11559 * dwarf2loc.c: Use C++ exception handling.
11560 * dwarf2-frame.c: Use C++ exception handling.
11561 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11562 * dwarf-index-write.c: Use C++ exception handling.
11563 * dwarf-index-cache.c: Use C++ exception handling.
11564 * dtrace-probe.c: Use C++ exception handling.
11565 * disasm-selftests.c: Use C++ exception handling.
11566 * darwin-nat.c: Use C++ exception handling.
11567 * cp-valprint.c: Use C++ exception handling.
11568 * cp-support.c: Use C++ exception handling.
11569 * cp-abi.c: Use C++ exception handling.
11570 * corelow.c: Use C++ exception handling.
11571 * completer.c: Use C++ exception handling.
11572 * compile/compile-object-run.c: Use C++ exception handling.
11573 * compile/compile-object-load.c: Use C++ exception handling.
11574 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11575 * compile/compile-c-symbols.c: Use C++ exception handling.
11576 * common/selftest.c: Use C++ exception handling.
11577 * common/new-op.c: Use C++ exception handling.
11578 * cli/cli-script.c: Use C++ exception handling.
11579 * cli/cli-interp.c: Use C++ exception handling.
11580 * cli/cli-cmds.c: Use C++ exception handling.
11581 * c-varobj.c: Use C++ exception handling.
11582 * btrace.c: Use C++ exception handling.
11583 * breakpoint.c: Use C++ exception handling.
11584 * break-catch-throw.c: Use C++ exception handling.
11585 * arch-utils.c: Use C++ exception handling.
11586 * amd64-tdep.c: Use C++ exception handling.
11587 * ada-valprint.c: Use C++ exception handling.
11588 * ada-typeprint.c: Use C++ exception handling.
11589 * ada-lang.c: Use C++ exception handling.
11590 * aarch64-tdep.c: Use C++ exception handling.
11592 2019-04-08 Tom Tromey <tom@tromey.com>
11594 * xml-support.c (gdb_xml_parser::parse): Update.
11595 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11596 * value.c (show_convenience): Update.
11597 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11598 (test_parse_flags_qcs): Update.
11599 * thread.c (thr_try_catch_cmd): Update.
11600 * target.c (target_translate_tls_address): Update.
11601 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11602 (info_frame_command_core, frame_apply_command_count): Update.
11603 * rust-exp.y (rust_lex_exception_test): Update.
11604 * riscv-tdep.c (riscv_print_one_register_info): Update.
11605 * remote.c (remote_target::enable_btrace): Update.
11606 * record-btrace.c (record_btrace_enable_warn): Update.
11607 * python/py-utils.c (gdbpy_convert_exception): Update.
11608 * printcmd.c (do_one_display, print_variable_and_value): Update.
11609 * mi/mi-main.c (mi_print_exception): Update.
11610 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11611 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11612 * linux-nat.c (linux_nat_target::attach): Update.
11613 * linux-fork.c (class scoped_switch_fork_info): Update.
11614 * infrun.c (displaced_step_prepare): Update.
11615 * infcall.c (call_function_by_hand_dummy): Update.
11616 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11617 * gnu-v3-abi.c (print_one_vtable): Update.
11618 * frame.c (get_prev_frame_always): Update.
11619 * f-valprint.c (info_common_command_for_block): Update.
11620 * exec.c (try_open_exec_file): Update.
11621 * exceptions.c (print_exception, exception_print)
11622 (exception_fprintf, exception_print_same): Update.
11623 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11624 * dwarf-index-cache.c (index_cache::store)
11625 (index_cache::lookup_gdb_index): Update.
11626 * darwin-nat.c (maybe_cache_shell): Update.
11627 * cp-valprint.c (cp_print_value_fields): Update.
11628 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11629 (gcc_cplus_symbol_address): Update.
11630 * compile/compile-c-symbols.c (gcc_convert_symbol)
11631 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11632 * common/selftest.c: Update.
11633 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11635 (exception_try_scope_entry, exception_try_scope_exit): Don't
11637 (struct exception_try_scope): Remove.
11638 (TRY): Don't use exception_try_scope.
11639 (struct gdb_exception): Add constructor, operator=.
11640 <what>: New method.
11641 (struct gdb_exception_RETURN_MASK_ALL)
11642 (struct gdb_exception_RETURN_MASK_ERROR)
11643 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11644 (struct gdb_quit_bad_alloc): Update.
11645 * common/common-exceptions.c (exception_none): Change
11647 (struct catcher) <state, exception>: Initialize inline.
11648 <prev>: Remove member.
11649 (current_catcher): Remove.
11650 (catchers): New global.
11651 (exceptions_state_mc_init): Simplify.
11652 (catcher_pop): Remove.
11653 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11654 (try_scope_depth, exception_try_scope_entry)
11655 (exception_try_scope_exit): Remove.
11656 (throw_exception_sjlj): Update.
11657 (exception_messages, exception_messages_size): Remove.
11658 (throw_it): Simplify.
11659 (gdb_exception_sliced_copy): Remove.
11660 (throw_exception_cxx): Update.
11661 * cli/cli-script.c (script_from_file): Update.
11662 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11664 * ada-valprint.c (ada_val_print): Update.
11665 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11666 (create_excep_cond_exprs): Update.
11668 2019-04-08 Tom Tromey <tom@tromey.com>
11670 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11671 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11672 (TRY, CATCH, END_CATCH): Remove some definitions.
11673 * common/common-exceptions.c: Don't use GDB_XCPT.
11674 (catcher_list_size): Remove.
11675 (throw_exception, throw_it): Simplify.
11677 2019-04-05 Tom Tromey <tom@tromey.com>
11679 Revert the header-sorting patch.
11680 * ft32-tdep.c: Revert.
11681 * frv-tdep.c: Revert.
11682 * frv-linux-tdep.c: Revert.
11684 * frame-unwind.c: Revert.
11685 * frame-base.c: Revert.
11686 * fork-child.c: Revert.
11687 * findvar.c: Revert.
11688 * findcmd.c: Revert.
11689 * filesystem.c: Revert.
11690 * filename-seen-cache.h: Revert.
11691 * filename-seen-cache.c: Revert.
11692 * fbsd-tdep.c: Revert.
11693 * fbsd-nat.h: Revert.
11694 * fbsd-nat.c: Revert.
11695 * f-valprint.c: Revert.
11696 * f-typeprint.c: Revert.
11697 * f-lang.c: Revert.
11698 * extension.h: Revert.
11699 * extension.c: Revert.
11700 * extension-priv.h: Revert.
11701 * expprint.c: Revert.
11704 * exceptions.c: Revert.
11705 * event-top.c: Revert.
11706 * event-loop.c: Revert.
11708 * elfread.c: Revert.
11709 * dwarf2read.h: Revert.
11710 * dwarf2read.c: Revert.
11711 * dwarf2loc.c: Revert.
11712 * dwarf2expr.h: Revert.
11713 * dwarf2expr.c: Revert.
11714 * dwarf2-frame.c: Revert.
11715 * dwarf2-frame-tailcall.c: Revert.
11716 * dwarf-index-write.h: Revert.
11717 * dwarf-index-write.c: Revert.
11718 * dwarf-index-common.c: Revert.
11719 * dwarf-index-cache.h: Revert.
11720 * dwarf-index-cache.c: Revert.
11721 * dummy-frame.c: Revert.
11722 * dtrace-probe.c: Revert.
11723 * disasm.h: Revert.
11724 * disasm.c: Revert.
11725 * disasm-selftests.c: Revert.
11726 * dictionary.c: Revert.
11727 * dicos-tdep.c: Revert.
11728 * demangle.c: Revert.
11729 * dcache.h: Revert.
11730 * dcache.c: Revert.
11731 * darwin-nat.h: Revert.
11732 * darwin-nat.c: Revert.
11733 * darwin-nat-info.c: Revert.
11734 * d-valprint.c: Revert.
11735 * d-namespace.c: Revert.
11736 * d-lang.c: Revert.
11738 * csky-tdep.c: Revert.
11739 * csky-linux-tdep.c: Revert.
11740 * cris-tdep.c: Revert.
11741 * cris-linux-tdep.c: Revert.
11742 * cp-valprint.c: Revert.
11743 * cp-support.c: Revert.
11744 * cp-namespace.c: Revert.
11745 * cp-abi.c: Revert.
11746 * corelow.c: Revert.
11747 * corefile.c: Revert.
11748 * continuations.c: Revert.
11749 * completer.h: Revert.
11750 * completer.c: Revert.
11751 * complaints.c: Revert.
11752 * coffread.c: Revert.
11753 * coff-pe-read.c: Revert.
11754 * cli-out.h: Revert.
11755 * cli-out.c: Revert.
11756 * charset.c: Revert.
11757 * c-varobj.c: Revert.
11758 * c-valprint.c: Revert.
11759 * c-typeprint.c: Revert.
11760 * c-lang.c: Revert.
11761 * buildsym.c: Revert.
11762 * buildsym-legacy.c: Revert.
11763 * build-id.h: Revert.
11764 * build-id.c: Revert.
11765 * btrace.c: Revert.
11766 * bsd-uthread.c: Revert.
11767 * breakpoint.h: Revert.
11768 * breakpoint.c: Revert.
11769 * break-catch-throw.c: Revert.
11770 * break-catch-syscall.c: Revert.
11771 * break-catch-sig.c: Revert.
11772 * blockframe.c: Revert.
11774 * bfin-tdep.c: Revert.
11775 * bfin-linux-tdep.c: Revert.
11776 * bfd-target.c: Revert.
11777 * bcache.c: Revert.
11778 * ax-general.c: Revert.
11779 * ax-gdb.h: Revert.
11780 * ax-gdb.c: Revert.
11781 * avr-tdep.c: Revert.
11783 * auto-load.c: Revert.
11784 * arm-wince-tdep.c: Revert.
11785 * arm-tdep.c: Revert.
11786 * arm-symbian-tdep.c: Revert.
11787 * arm-pikeos-tdep.c: Revert.
11788 * arm-obsd-tdep.c: Revert.
11789 * arm-nbsd-tdep.c: Revert.
11790 * arm-nbsd-nat.c: Revert.
11791 * arm-linux-tdep.c: Revert.
11792 * arm-linux-nat.c: Revert.
11793 * arm-fbsd-tdep.c: Revert.
11794 * arm-fbsd-nat.c: Revert.
11795 * arm-bsd-tdep.c: Revert.
11796 * arch-utils.c: Revert.
11797 * arc-tdep.c: Revert.
11798 * arc-newlib-tdep.c: Revert.
11799 * annotate.h: Revert.
11800 * annotate.c: Revert.
11801 * amd64-windows-tdep.c: Revert.
11802 * amd64-windows-nat.c: Revert.
11803 * amd64-tdep.c: Revert.
11804 * amd64-sol2-tdep.c: Revert.
11805 * amd64-obsd-tdep.c: Revert.
11806 * amd64-obsd-nat.c: Revert.
11807 * amd64-nbsd-tdep.c: Revert.
11808 * amd64-nbsd-nat.c: Revert.
11809 * amd64-nat.c: Revert.
11810 * amd64-linux-tdep.c: Revert.
11811 * amd64-linux-nat.c: Revert.
11812 * amd64-fbsd-tdep.c: Revert.
11813 * amd64-fbsd-nat.c: Revert.
11814 * amd64-dicos-tdep.c: Revert.
11815 * amd64-darwin-tdep.c: Revert.
11816 * amd64-bsd-nat.c: Revert.
11817 * alpha-tdep.c: Revert.
11818 * alpha-obsd-tdep.c: Revert.
11819 * alpha-nbsd-tdep.c: Revert.
11820 * alpha-mdebug-tdep.c: Revert.
11821 * alpha-linux-tdep.c: Revert.
11822 * alpha-linux-nat.c: Revert.
11823 * alpha-bsd-tdep.c: Revert.
11824 * alpha-bsd-nat.c: Revert.
11825 * aix-thread.c: Revert.
11827 * addrmap.c: Revert.
11828 * ada-varobj.c: Revert.
11829 * ada-valprint.c: Revert.
11830 * ada-typeprint.c: Revert.
11831 * ada-tasks.c: Revert.
11832 * ada-lang.c: Revert.
11833 * aarch64-tdep.c: Revert.
11834 * aarch64-ravenscar-thread.c: Revert.
11835 * aarch64-newlib-tdep.c: Revert.
11836 * aarch64-linux-tdep.c: Revert.
11837 * aarch64-linux-nat.c: Revert.
11838 * aarch64-fbsd-tdep.c: Revert.
11839 * aarch64-fbsd-nat.c: Revert.
11840 * aarch32-linux-nat.c: Revert.
11842 2019-04-05 Tom Tromey <tom@tromey.com>
11844 * ft32-tdep.c: Sort headers.
11845 * frv-tdep.c: Sort headers.
11846 * frv-linux-tdep.c: Sort headers.
11847 * frame.c: Sort headers.
11848 * frame-unwind.c: Sort headers.
11849 * frame-base.c: Sort headers.
11850 * fork-child.c: Sort headers.
11851 * findvar.c: Sort headers.
11852 * findcmd.c: Sort headers.
11853 * filesystem.c: Sort headers.
11854 * filename-seen-cache.h: Sort headers.
11855 * filename-seen-cache.c: Sort headers.
11856 * fbsd-tdep.c: Sort headers.
11857 * fbsd-nat.h: Sort headers.
11858 * fbsd-nat.c: Sort headers.
11859 * f-valprint.c: Sort headers.
11860 * f-typeprint.c: Sort headers.
11861 * f-lang.c: Sort headers.
11862 * extension.h: Sort headers.
11863 * extension.c: Sort headers.
11864 * extension-priv.h: Sort headers.
11865 * expprint.c: Sort headers.
11866 * exec.h: Sort headers.
11867 * exec.c: Sort headers.
11868 * exceptions.c: Sort headers.
11869 * event-top.c: Sort headers.
11870 * event-loop.c: Sort headers.
11871 * eval.c: Sort headers.
11872 * elfread.c: Sort headers.
11873 * dwarf2read.h: Sort headers.
11874 * dwarf2read.c: Sort headers.
11875 * dwarf2loc.c: Sort headers.
11876 * dwarf2expr.h: Sort headers.
11877 * dwarf2expr.c: Sort headers.
11878 * dwarf2-frame.c: Sort headers.
11879 * dwarf2-frame-tailcall.c: Sort headers.
11880 * dwarf-index-write.h: Sort headers.
11881 * dwarf-index-write.c: Sort headers.
11882 * dwarf-index-common.c: Sort headers.
11883 * dwarf-index-cache.h: Sort headers.
11884 * dwarf-index-cache.c: Sort headers.
11885 * dummy-frame.c: Sort headers.
11886 * dtrace-probe.c: Sort headers.
11887 * disasm.h: Sort headers.
11888 * disasm.c: Sort headers.
11889 * disasm-selftests.c: Sort headers.
11890 * dictionary.c: Sort headers.
11891 * dicos-tdep.c: Sort headers.
11892 * demangle.c: Sort headers.
11893 * dcache.h: Sort headers.
11894 * dcache.c: Sort headers.
11895 * darwin-nat.h: Sort headers.
11896 * darwin-nat.c: Sort headers.
11897 * darwin-nat-info.c: Sort headers.
11898 * d-valprint.c: Sort headers.
11899 * d-namespace.c: Sort headers.
11900 * d-lang.c: Sort headers.
11901 * ctf.c: Sort headers.
11902 * csky-tdep.c: Sort headers.
11903 * csky-linux-tdep.c: Sort headers.
11904 * cris-tdep.c: Sort headers.
11905 * cris-linux-tdep.c: Sort headers.
11906 * cp-valprint.c: Sort headers.
11907 * cp-support.c: Sort headers.
11908 * cp-namespace.c: Sort headers.
11909 * cp-abi.c: Sort headers.
11910 * corelow.c: Sort headers.
11911 * corefile.c: Sort headers.
11912 * continuations.c: Sort headers.
11913 * completer.h: Sort headers.
11914 * completer.c: Sort headers.
11915 * complaints.c: Sort headers.
11916 * coffread.c: Sort headers.
11917 * coff-pe-read.c: Sort headers.
11918 * cli-out.h: Sort headers.
11919 * cli-out.c: Sort headers.
11920 * charset.c: Sort headers.
11921 * c-varobj.c: Sort headers.
11922 * c-valprint.c: Sort headers.
11923 * c-typeprint.c: Sort headers.
11924 * c-lang.c: Sort headers.
11925 * buildsym.c: Sort headers.
11926 * buildsym-legacy.c: Sort headers.
11927 * build-id.h: Sort headers.
11928 * build-id.c: Sort headers.
11929 * btrace.c: Sort headers.
11930 * bsd-uthread.c: Sort headers.
11931 * breakpoint.h: Sort headers.
11932 * breakpoint.c: Sort headers.
11933 * break-catch-throw.c: Sort headers.
11934 * break-catch-syscall.c: Sort headers.
11935 * break-catch-sig.c: Sort headers.
11936 * blockframe.c: Sort headers.
11937 * block.c: Sort headers.
11938 * bfin-tdep.c: Sort headers.
11939 * bfin-linux-tdep.c: Sort headers.
11940 * bfd-target.c: Sort headers.
11941 * bcache.c: Sort headers.
11942 * ax-general.c: Sort headers.
11943 * ax-gdb.h: Sort headers.
11944 * ax-gdb.c: Sort headers.
11945 * avr-tdep.c: Sort headers.
11946 * auxv.c: Sort headers.
11947 * auto-load.c: Sort headers.
11948 * arm-wince-tdep.c: Sort headers.
11949 * arm-tdep.c: Sort headers.
11950 * arm-symbian-tdep.c: Sort headers.
11951 * arm-pikeos-tdep.c: Sort headers.
11952 * arm-obsd-tdep.c: Sort headers.
11953 * arm-nbsd-tdep.c: Sort headers.
11954 * arm-nbsd-nat.c: Sort headers.
11955 * arm-linux-tdep.c: Sort headers.
11956 * arm-linux-nat.c: Sort headers.
11957 * arm-fbsd-tdep.c: Sort headers.
11958 * arm-fbsd-nat.c: Sort headers.
11959 * arm-bsd-tdep.c: Sort headers.
11960 * arch-utils.c: Sort headers.
11961 * arc-tdep.c: Sort headers.
11962 * arc-newlib-tdep.c: Sort headers.
11963 * annotate.h: Sort headers.
11964 * annotate.c: Sort headers.
11965 * amd64-windows-tdep.c: Sort headers.
11966 * amd64-windows-nat.c: Sort headers.
11967 * amd64-tdep.c: Sort headers.
11968 * amd64-sol2-tdep.c: Sort headers.
11969 * amd64-obsd-tdep.c: Sort headers.
11970 * amd64-obsd-nat.c: Sort headers.
11971 * amd64-nbsd-tdep.c: Sort headers.
11972 * amd64-nbsd-nat.c: Sort headers.
11973 * amd64-nat.c: Sort headers.
11974 * amd64-linux-tdep.c: Sort headers.
11975 * amd64-linux-nat.c: Sort headers.
11976 * amd64-fbsd-tdep.c: Sort headers.
11977 * amd64-fbsd-nat.c: Sort headers.
11978 * amd64-dicos-tdep.c: Sort headers.
11979 * amd64-darwin-tdep.c: Sort headers.
11980 * amd64-bsd-nat.c: Sort headers.
11981 * alpha-tdep.c: Sort headers.
11982 * alpha-obsd-tdep.c: Sort headers.
11983 * alpha-nbsd-tdep.c: Sort headers.
11984 * alpha-mdebug-tdep.c: Sort headers.
11985 * alpha-linux-tdep.c: Sort headers.
11986 * alpha-linux-nat.c: Sort headers.
11987 * alpha-bsd-tdep.c: Sort headers.
11988 * alpha-bsd-nat.c: Sort headers.
11989 * aix-thread.c: Sort headers.
11990 * agent.c: Sort headers.
11991 * addrmap.c: Sort headers.
11992 * ada-varobj.c: Sort headers.
11993 * ada-valprint.c: Sort headers.
11994 * ada-typeprint.c: Sort headers.
11995 * ada-tasks.c: Sort headers.
11996 * ada-lang.c: Sort headers.
11997 * aarch64-tdep.c: Sort headers.
11998 * aarch64-ravenscar-thread.c: Sort headers.
11999 * aarch64-newlib-tdep.c: Sort headers.
12000 * aarch64-linux-tdep.c: Sort headers.
12001 * aarch64-linux-nat.c: Sort headers.
12002 * aarch64-fbsd-tdep.c: Sort headers.
12003 * aarch64-fbsd-nat.c: Sort headers.
12004 * aarch32-linux-nat.c: Sort headers.
12006 2019-04-04 Tom Tromey <tom@tromey.com>
12008 * varobj.c (varobj_create): Update.
12009 * rust-exp.y (struct rust_parser) <update_innermost_block,
12010 lookup_symbol>: New methods.
12011 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12013 (rust_parser::rust_lookup_type)
12014 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12015 * printcmd.c (display_command, do_one_display): Update.
12016 * parser-defs.h (struct parser_state) <parser_state>: Add
12017 "tracker" parameter.
12018 (block_tracker): New member.
12019 (class innermost_block_tracker) <innermost_block_tracker>: Add
12021 <reset>: Remove method.
12022 (innermost_block): Don't declare.
12023 (null_post_parser): Update.
12024 * parse.c (innermost_block): Remove global.
12025 (write_dollar_variable): Update.
12026 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12027 Remove "tracker_types" parameter.
12028 (parse_expression): Add "tracker" parameter.
12029 (parse_expression_for_completion): Update.
12030 (null_post_parser): Add "tracker" parameter.
12031 * p-exp.y: Update rules.
12032 * m2-exp.y: Update rules.
12033 * language.h (struct language_defn) <la_post_parser>: Add
12034 "tracker" parameter.
12035 * go-exp.y: Update rules.
12036 * f-exp.y: Update rules.
12037 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12039 * d-exp.y: Update rules.
12040 * c-exp.y: Update rules.
12041 * breakpoint.c (set_breakpoint_condition): Create an
12042 innermost_block_tracker.
12043 (watch_command_1): Likewise.
12044 * ada-lang.c (resolve): Add "tracker" parameter.
12045 (resolve_subexp): Likewise.
12046 * ada-exp.y (write_var_from_sym): Update.
12048 2019-04-04 Tom Tromey <tom@tromey.com>
12050 * type-stack.h: New file.
12051 * type-stack.c: New file.
12052 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12054 (insert_into_type_stack, insert_type, push_type, push_type_int)
12055 (insert_type_address_space, pop_type, pop_type_int)
12056 (pop_typelist, pop_type_stack, append_type_stack)
12057 (push_type_stack, get_type_stack, push_typelist)
12058 (follow_type_instance_flags, follow_types): Don't declare.
12059 * parse.c (type_stack): Remove global.
12060 (parse_exp_in_context): Update.
12061 (insert_into_type_stack, insert_type, push_type, push_type_int)
12062 (insert_type_address_space, pop_type, pop_type_int)
12063 (pop_typelist, pop_type_stack, append_type_stack)
12064 (push_type_stack, get_type_stack, push_typelist)
12065 (follow_type_instance_flags, follow_types): Remove (moved to
12067 * f-exp.y (type_stack): New global.
12069 (push_kind_type, f_parse): Update.
12070 * d-exp.y (type_stack): New global.
12073 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12075 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12076 (HFILES_NO_SRCDIR): Add type-stack.h.
12078 2019-04-04 Tom Tromey <tom@tromey.com>
12080 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12081 (rust_parser::convert_ast_to_expression, rust_parse)
12082 (rust_lex_test_completion, rust_lex_tests): Update.
12083 * parser-defs.h (struct expr_completion_state): New.
12084 (struct parser_state) <parser_state>: Add completion parameter.
12085 <mark_struct_expression, mark_completion_tag>: New methods.
12086 <parse_completion, m_completion_state>: New members.
12087 (prefixify_expression, null_post_parser): Update.
12088 (mark_struct_expression, mark_completion_tag): Don't declare.
12089 * parse.c (parse_completion, expout_last_struct)
12090 (expout_tag_completion_type, expout_completion_name): Remove
12092 (parser_state::mark_struct_expression)
12093 (parser_state::mark_completion_tag): Now methods.
12094 (prefixify_expression): Add last_struct parameter.
12095 (prefixify_subexp): Likewise.
12096 (parse_exp_1): Update.
12097 (parse_exp_in_context): Add cstate parameter. Update.
12098 (parse_expression_for_completion): Create an
12099 expr_completion_state.
12100 (null_post_parser): Add "completion" parameter.
12101 * p-exp.y: Update rules.
12103 * language.h (struct language_defn) <la_post_parser>: Add
12104 "completing" parameter.
12105 * go-exp.y: Update rules.
12106 (lex_one_token): Update.
12107 * expression.h (parse_completion): Don't declare.
12108 * d-exp.y: Update rules.
12109 (lex_one_token): Update rules.
12110 * c-exp.y: Update rules.
12111 (lex_one_token): Update.
12112 * ada-lang.c (resolve): Add "parse_completion" parameter.
12113 (resolve_subexp): Likewise.
12114 (ada_resolve_function): Likewise.
12116 2019-04-04 Tom Tromey <tom@tromey.com>
12118 * parser-defs.h (struct parser_state) <start_arglist,
12119 end_arglist>: New methods.
12120 <arglist_len, m_funcall_chain>: New members.
12121 (arglist_len, start_arglist, end_arglist): Don't declare.
12122 * parse.c (arglist_len, funcall_chain): Remove global.
12123 (start_arglist, end_arglist): Remove functions.
12124 (parse_exp_in_context): Update.
12125 * p-exp.y: Update rules.
12126 * m2-exp.y: Update rules.
12127 * go-exp.y: Update rules.
12128 * f-exp.y: Update rules.
12129 * d-exp.y: Update rules.
12130 * c-exp.y: Update rules.
12132 2019-04-04 Tom Tromey <tom@tromey.com>
12134 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12135 lex_operator, push_back>: New methods.
12137 (rust_parser::lex_hex, lex_escape): Rename and update.
12138 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12139 (rust_parser::lex_operator): Rename and update.
12140 (rust_parser::lex_number, rustyylex, rustyyerror)
12141 (rust_lex_test_init, rust_lex_test_sequence)
12142 (rust_lex_test_push_back, rust_lex_tests): Update.
12143 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12145 <lexptr, prev_lexptr>: New members.
12146 (lexptr, prev_lexptr): Don't declare.
12147 * parse.c (lexptr, prev_lexptr): Remove globals.
12148 (parse_exp_in_context): Update.
12149 * p-exp.y (yylex, yyerror): Update.
12150 * m2-exp.y (parse_number, yylex, yyerror): Update.
12151 * go-exp.y (lex_one_token, yyerror): Update.
12152 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12153 * d-exp.y (lex_one_token, yyerror): Update.
12154 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12155 (lex_one_token, yyerror): Update.
12156 * ada-lex.l (YY_INPUT): Update.
12157 (rewind_to_char): Update.
12158 * ada-exp.y (yyerror): Update.
12160 2019-04-04 Tom Tromey <tom@tromey.com>
12162 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12163 * parser-defs.h (struct parser_state) <parser_state>: Add new
12165 <comma_terminates>: New member.
12166 (comma_terminates): Don't declare global.
12167 * parse.c (comma_terminates): Remove global.
12168 (parse_exp_in_context): Update.
12169 * p-exp.y (yylex): Update.
12170 * m2-exp.y (yylex): Update.
12171 * go-exp.y (lex_one_token): Update.
12172 * f-exp.y (yylex): Update.
12173 * d-exp.y (lex_one_token): Update.
12174 * c-exp.y (lex_one_token): Update.
12175 * ada-lex.l: Update.
12177 2019-04-04 Tom Tromey <tom@tromey.com>
12179 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12180 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12181 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12182 * parser-defs.h (paren_depth): Don't declare.
12183 * parse.c (paren_depth): Remove global.
12184 (parse_exp_in_context): Update.
12185 * p-exp.y (paren_depth): New global.
12186 (pascal_parse): Initialize it.
12187 * m2-exp.y (paren_depth): New global.
12188 (m2_parse): Initialize it.
12189 * go-exp.y (paren_depth): New global.
12190 (go_parse): Initialize it.
12191 * f-exp.y (paren_depth): New global.
12192 (f_parse): Initialize it.
12193 * d-exp.y (paren_depth): New global.
12194 (d_parse): Initialize it.
12195 * c-exp.y (paren_depth): New global.
12196 (c_parse): Initialize it.
12197 * ada-lex.l (paren_depth): New global.
12198 (lexer_init): Initialize it.
12200 2019-04-04 Tom Tromey <tom@tromey.com>
12202 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12203 (rust_parser::convert_ast_to_type)
12204 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12205 * parser-defs.h (struct parser_state) <parser_state>: Add
12206 parameters. Initialize new members.
12207 <expression_context_block, expression_context_pc>: New members.
12208 * parse.c (expression_context_block, expression_context_pc):
12210 (parse_exp_in_context): Update.
12211 * p-exp.y: Update all rules.
12213 * m2-exp.y: Update all rules.
12215 * go-exp.y (yylex): Update.
12216 * f-exp.y (yylex): Update.
12217 * d-exp.y: Update all rules.
12219 * c-exp.y: Update all rules.
12220 (lex_one_token, classify_name, yylex, c_parse): Update.
12221 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12223 2019-04-04 Tom Tromey <tom@tromey.com>
12225 * gdbarch.h, gdbarch.c: Rebuild.
12226 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12228 (struct stap_parse_info): Replace "parser_state" with
12230 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12231 (parser_state): New class.
12232 * parse.c (expr_builder): Rename.
12233 (expr_builder::release): Rename.
12234 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12235 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12236 (write_exp_elt_longcst, write_exp_elt_floatcst)
12237 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12238 (write_exp_string_vector, write_exp_bitstring)
12239 (write_exp_msymbol, mark_struct_expression)
12240 (write_dollar_variable)
12241 (insert_type_address_space, increase_expout_size): Replace
12242 "parser_state" with "expr_builder".
12243 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12244 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12245 "parser_state" with "expr_builder".
12247 2019-04-04 Tom Tromey <tom@tromey.com>
12249 * rust-exp.y: Replace "parse_language" with method call.
12251 (yylex): Replace "parse_language" with method call.
12253 (yylex): Replace "parse_language" with method call.
12254 * go-exp.y (classify_name): Replace "parse_language" with method
12256 * f-exp.y (yylex): Replace "parse_language" with method call.
12257 * d-exp.y (lex_one_token): Replace "parse_language" with method
12260 (lex_one_token, classify_name, yylex): Replace "parse_language"
12262 * ada-exp.y (find_primitive_type, type_char)
12263 (type_system_address): Replace "parse_language" with method call.
12265 2019-04-04 Tom Tromey <tom@tromey.com>
12267 * rust-exp.y: Replace "parse_gdbarch" with method call.
12268 * parse.c (write_dollar_variable, insert_type_address_space):
12269 Replace "parse_gdbarch" with method call.
12270 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12272 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12274 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12275 "parse_gdbarch" with method call.
12276 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12278 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12279 "parse_gdbarch" with method call.
12280 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12281 "parse_gdbarch" with method call.
12282 * c-exp.y (parse_type, parse_number, classify_name): Replace
12283 "parse_gdbarch" with method call.
12284 * ada-lex.l: Replace "parse_gdbarch" with method call.
12285 * ada-exp.y (parse_type, find_primitive_type, type_char)
12286 (type_system_address): Replace "parse_gdbarch" with method call.
12288 2019-04-04 Tom Tromey <tom@tromey.com>
12290 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12291 * stap-probe.c (stap_parse_argument): Update.
12292 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12293 initial_size parameter.
12294 * rust-exp.y (rust_lex_tests): Update.
12295 * parse.c (parser_state): Update.
12296 (parse_exp_in_context): Update.
12297 * parser-defs.h (struct parser_state) <parser_state>: Remove
12298 "initial_size" parameter.
12300 2019-04-04 Tom Tromey <tom@tromey.com>
12302 * parser-defs.h (increase_expout_size): Don't declare.
12303 * parse.c (increase_expout_size): Now static.
12305 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12307 * gnu-nat.c (gnu_nat_target::wait): Fix
12308 target_waitstatus_to_string call.
12310 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12312 * eval.c (evaluate_subexp_standard): Handle internal functions
12313 during Fortran function call handling.
12315 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12317 * NEWS: Mention new internal functions.
12318 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12319 (read_base_type): Use dwarf2_init_complex_target_type.
12320 * value.c (creal_internal_fn): New function.
12321 (cimag_internal_fn): New function.
12322 (_initialize_values): Register new internal functions.
12324 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12326 * infrun.c (stop_all_threads): If debug_infrun, always
12327 trace the wait status after wait_one, using
12328 target_waitstatus_to_string and target_pid_to_str.
12329 (handle_inferior_event): Replace various trace of
12330 wait status kind by a single trace.
12331 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12332 wait status kind image by target_waitstatus_to_string.
12333 * target/waitstatus.c (target_waitstatus_to_string): Fix
12336 2019-04-01 Tom Tromey <tromey@adacore.com>
12339 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12341 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12342 Pedro Alves <palves@redhat.com>
12344 * top.c (quit_force): Call 'finalize_values'.
12345 * value.c (finalize_values): New function.
12346 * value.h (finalize_values): Declare.
12348 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12350 * NEWS: Announce $_gdb_major and $_gdb_minor.
12352 * top.c (init_gdb_version_vars): New function.
12353 (gdb_init): Call init_gdb_version_vars.
12355 2019-03-29 Tom Tromey <tromey@adacore.com>
12357 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12358 help text. Remove dead code.
12360 2019-03-29 Keith Seitz <keiths@redhat.com>
12362 From Siddhesh Poyarekar:
12363 * f-lang.h (f77_get_upperbound): Return LONGEST.
12364 (f77_get_lowerbound): Likewise.
12365 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12366 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12368 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12369 plongest to format print it.
12370 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12371 (f77_get_upperbound): Likewise.
12372 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12373 LOWER_BOUND to LONGEST.
12374 (f77_create_arrayprint_offset_tbl): Likewise.
12376 2019-03-29 Keith Seitz <keiths@redhat.com>
12378 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12379 %s/pulongest for TYPE_LENGTH instead of %d in format
12381 * ada-typerint.c (ada_print_type): Likewise.
12382 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12383 * compile/compile-c-support.c (generate_register_struct): Likewise.
12384 * gdbtypes.c (recursive_dump_type): Likewise.
12385 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12386 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12387 instead of %d in format strings.
12388 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12389 to std::min to ULONGEST.
12390 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12391 instead of %d in format strings.
12392 * tracepoint.c (info_scope_command): Likewise.
12393 * typeprint.c (print_offset_data::update)
12394 (print_offset_data::finish): Likewise.
12395 * xtensa-tdep.c (xtensa_store_return_value)
12396 (xtensa_push_dummy_call): Likewise.
12398 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12400 * windows-nat.c (display_selector): Fixed format specifications
12403 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12405 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12407 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12409 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12410 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12411 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12412 (nios2_linux_init_abi): Install it.
12414 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12416 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12418 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12420 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12422 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12423 Tom Tromey <tromey@adacore.com>
12425 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12427 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12429 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12430 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12431 method to compute the bounds of range types. Also print "[evaluated]"
12432 if the bounds' values come from a dynamic evaluation.
12434 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12436 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12437 whitespace when pretty printing is on.
12439 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12441 * ppc-linux-nat.c: Add include.
12443 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12445 * NEWS: Mention AArch64 Pointer Authentication.
12447 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12449 * arm-linux-nat.c: Add include.
12451 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12453 * source-cache.c (source_cache::get_source_lines): Re-read
12454 fullname after calling open_source_file.
12456 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12458 * NEWS: Mention TLS support for FreeBSD.
12460 2019-03-25 Tom Tromey <tromey@adacore.com>
12462 * minsyms.c (BUNCH_SIZE): Update comment.
12463 (~minimal_symbol_reader): Remove old comment.
12464 (compact_minimal_symbols): Update comment.
12465 (minimal_symbol_reader::install): Remove old comment. Update
12468 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12470 * s390-linux-nat.c: Add include.
12472 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12474 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12475 Call linux_get_hwcap.
12476 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12478 (aarch64_linux_get_hwcap): Remove function.
12479 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12481 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12483 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12484 * linux-tdep.c (linux_get_hwcap): Add function.
12485 (linux_get_hwcap2): Likewise.
12486 * linux-tdep.h (linux_get_hwcap): Add declaration.
12487 (linux_get_hwcap2): Likewise.
12488 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12489 (ppc_linux_get_hwcap2): Likewise.
12490 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12492 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12493 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12494 (ppc_linux_nat_target::read_description): Likewise.
12495 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12496 * s390-linux-nat.c: Likewise.
12497 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12499 2019-03-24 Tom Tromey <tom@tromey.com>
12501 * ada-lang.c (standard_lookup): Simplify initialization.
12502 (ada_lookup_symbol_nonlocal): Simplify return.
12503 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12504 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12505 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12506 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12508 * solib.c (solib_global_lookup): Simplify.
12509 * symtab.c (null_block_symbol): Remove.
12510 (symbol_cache_lookup): Simplify returns.
12511 (lookup_language_this): Simplify returns.
12512 (lookup_symbol_aux): Simplify return.
12513 (lookup_local_symbol): Simplify returns.
12514 (lookup_global_symbol_from_objfile): Simplify return.
12515 (lookup_symbol_in_objfile_symtabs)
12516 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12517 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12518 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12519 * cp-namespace.c (cp_lookup_bare_symbol)
12520 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12521 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12522 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12523 (cp_lookup_symbol_via_imports): Simplify initialization.
12524 (find_symbol_in_baseclass): Likewise.
12525 * symtab.h (null_block_symbol): Remove.
12526 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12527 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12528 (d_lookup_symbol_module): Likewise.
12529 (find_symbol_in_baseclass): Simplify initialization.
12531 2019-03-24 Tom Tromey <tom@tromey.com>
12533 * expression.h: Don't include symtab.h.
12534 (struct block): Forward declare.
12536 2019-03-24 Tom Tromey <tom@tromey.com>
12538 * c-exp.y (typebase): Remove casts.
12539 * gdbtypes.c (lookup_unsigned_typename, )
12540 (lookup_signed_typename): Remove cast.
12541 * eval.c (parse_to_comma_and_eval): Remove cast.
12542 * parse.c (write_dollar_variable): Remove cast.
12543 * block.h (struct block) <superblock>: Now const.
12544 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12545 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12546 (map_block): Make "block" const.
12547 * symfile.h (struct quick_symbol_functions)
12548 <map_matching_symbols>: Constify block argument to "callback".
12549 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12551 (find_pc_sect_compunit_symtab): Make "b" const.
12552 (find_symbol_at_address): Likewise.
12553 (search_symbols): Likewise.
12554 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12555 (dw2_debug_names_lookup_symbol): Likewise.
12556 (dw2_map_matching_symbols): Update.
12557 * p-valprint.c (pascal_val_print): Remove "block".
12558 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12559 (aux_add_nonlocal_symbols): Make "block" const.
12560 (resolve_subexp): Remove cast.
12561 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12563 (iterate_over_file_blocks): Likewise.
12564 * f-exp.y (%union) <bval>: Remove.
12565 * coffread.c (patch_opaque_types): Make "b" const.
12566 * spu-tdep.c (spu_catch_start): Make "block" const.
12567 * c-valprint.c (print_unpacked_pointer): Remove "block".
12568 * symmisc.c (dump_symtab_1): Make "b" const.
12569 (block_depth): Make "block" const.
12570 * d-exp.y (%union) <bval>: Remove.
12571 * cp-support.h (cp_lookup_rtti_type): Update.
12572 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12573 * psymtab.c (psym_lookup_symbol): Make "block" const.
12574 (maintenance_check_psymtabs): Make "b" const.
12575 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12576 (enumerate_locals, enumerate_args): Update.
12577 * python/py-symtab.c (stpy_global_block): Make "block" const.
12578 (stpy_static_block): Likewise.
12579 * inline-frame.c (block_starting_point_at): Make "new_block"
12581 * block.c (find_block_in_blockvector): Make return type const.
12582 (blockvector_for_pc_sect): Make "b" const.
12583 (find_block_in_blockvector): Make "b" const.
12585 2019-03-23 Tom Tromey <tom@tromey.com>
12587 * varobj.c (varobj_create): Update.
12588 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12589 * printcmd.c (display_command, do_one_display): Don't reset
12591 * parser-defs.h (enum innermost_block_tracker_type): Move to
12593 (innermost_block): Update comment.
12594 * parse.c (parse_exp_1): Add tracker_types parameter.
12595 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12596 tracker_types parameter. Reset innermost_block.
12597 (parse_exp_in_context): Remove.
12598 (parse_expression_for_completion): Update.
12599 * objfiles.c (~objfile): Don't reset expression_context_block or
12601 * expression.h (enum innermost_block_tracker_type): Move from
12603 (parse_exp_1): Add tracker_types parameter.
12604 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12605 reset innermost_block.
12607 2019-03-23 Tom Tromey <tom@tromey.com>
12609 * objfiles.h: Include bcache.h.
12611 2019-03-23 Tom Tromey <tom@tromey.com>
12613 * linespec.c (get_current_search_block): Use
12614 scoped_restore_current_language.
12615 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12617 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12618 Jiong Wang <jiong.wang@arm.com>
12620 * aarch64-linux-tdep.c
12621 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12623 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12625 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12626 Jiong Wang <jiong.wang@arm.com>
12628 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12630 (aarch64_analyze_prologue_test): Add PACIASP test.
12631 (aarch64_prologue_prev_register): Unmask PC value.
12633 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12634 Jiong Wang <jiong.wang@arm.com>
12636 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12637 (aarch64_dwarf2_prev_register): Unmask PC value.
12638 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12639 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12640 DW_CFA_AARCH64_negate_ra_state.
12641 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12643 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12644 Jiong Wang <jiong.wang@arm.com>
12646 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12648 (aarch64_pseudo_register_name): Likewise.
12649 (aarch64_pseudo_register_type): Likewise.
12650 (aarch64_pseudo_register_reggroup_p): Likewise.
12651 (aarch64_gdbarch_init): Add pauth registers.
12652 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12653 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12654 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12655 (struct gdbarch_tdep): Add regnum for ra_state.
12657 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12658 Jiong Wang <jiong.wang@arm.com>
12660 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12662 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12663 Jiong Wang <jiong.wang@arm.com>
12665 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12667 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12668 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12669 (aarch64_gdbarch_init): Add puth registers.
12670 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12671 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12672 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12674 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12675 Jiong Wang <jiong.wang@arm.com>
12677 * aarch64-linux-nat.c
12678 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12679 * aarch64-linux-tdep.c
12680 (aarch64_linux_core_read_description): Likewise.
12681 (aarch64_linux_get_hwcap): New function.
12682 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12683 (aarch64_linux_get_hwcap): New declaration.
12685 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12686 Jiong Wang <jiong.wang@arm.com>
12688 * aarch64-linux-nat.c
12689 (aarch64_linux_nat_target::read_description): Add pauth param.
12690 * aarch64-linux-tdep.c
12691 (aarch64_linux_core_read_description): Likewise.
12692 * aarch64-tdep.c (struct target_desc): Add in pauth.
12693 (aarch64_read_description): Add pauth param.
12694 (aarch64_gdbarch_init): Likewise.
12695 * aarch64-tdep.h (aarch64_read_description): Likewise.
12696 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12697 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12698 * features/Makefile: Add new files.
12699 * features/aarch64-pauth.c: New file.
12700 * features/aarch64-pauth.xml: New file.
12702 2019-03-20 Tom Tromey <tromey@adacore.com>
12704 * infrun.c (handle_inferior_event): Rename from
12705 handle_inferior_event_1. Create a scoped_value_mark.
12706 (handle_inferior_event): Remove.
12708 2019-03-19 Tom Tromey <tromey@adacore.com>
12710 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12711 * infrun.h (print_stop_event): Add "displays" parameter.
12712 * infrun.c (print_stop_event): Add "displays" parameter.
12714 2019-03-19 Pedro Alves <palves@redhat.com>
12716 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12717 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12718 to -1. Fix TABs vs spaces.
12719 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12720 * tui/tui-out.h (tui_ui_out) Add intro comments.
12721 <m_line, m_start_of_line>: In-class initialize, and add describing
12724 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12726 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12728 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12730 2019-03-18 Pedro Alves <palves@redhat.com>
12731 Eli Zaretskii <eliz@gnu.org>
12733 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12734 m_line and m_start_of_line.
12736 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12738 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12739 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12740 it returns a newline. This fixes a regression in TU mode, whereby
12741 the next line is output on the same screen line as the user input.
12743 2019-03-18 Tom Tromey <tromey@adacore.com>
12745 * minsyms.c (minimal_symbol_reader::install): Remove call to
12748 2019-03-18 Pedro Alves <palves@redhat.com>
12750 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12752 (apply_style): New, factored out from ...
12753 (apply_ansi_escape): ... this. Handle reverse video mode.
12754 (tui_set_reverse_mode): New function.
12755 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12756 * tui/tui-winsource.c (tui_show_source_line): Use
12757 tui_set_reverse_mode instead of setting A_STANDOUT.
12758 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12759 New setter methods.
12761 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12763 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12766 2019-03-18 Tom Tromey <tromey@adacore.com>
12768 * ada-lang.c (empty_array): Add "high" parameter.
12769 (ada_evaluate_subexp): Update.
12771 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12773 * unittests/string_view-selftests.c: Define
12774 _initialize_string_view_selftests unconditionally.
12776 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12779 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12781 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12784 * windows-nat.c (display_selector): Fix format specifiers.
12786 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12788 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12789 tui_refill_source_window instead of tui_refresh_win, to update the
12790 current execution line. This fixes redisplay of the current line
12791 when stepping through the code with "next" or "step".
12793 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12795 * source-cache.c (source_cache::get_source_lines): Call
12796 find_source_lines to initialize s->nlines. This fixes vertical
12797 scrolling of TUI source window when the DOWN arrow is pressed.
12799 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12801 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12802 linux-thread-db.c (_initialize_thread_db): Likewise.
12804 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12806 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12807 wclrtoeol in tui_show_source_line". This reverts changes made in
12808 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12810 2019-03-15 Tom Tromey <tom@tromey.com>
12812 * symtab.h (struct minimal_symbol): Derive from
12813 general_symbol_info.
12814 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12815 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12816 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12817 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12818 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12819 (MSYMBOL_SEARCH_NAME): Update.
12820 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12821 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12822 * minsyms.c (minimal_symbol_reader::record_full): Update.
12824 2019-03-15 Tom Tromey <tom@tromey.com>
12826 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12828 2019-03-15 Tom Tromey <tom@tromey.com>
12830 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12831 unique_xmalloc_ptr.
12832 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12834 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12835 (build_minimal_symbol_hash_tables)
12836 (minimal_symbol_reader::install): Update.
12838 2019-03-15 Tom Tromey <tom@tromey.com>
12840 * symtab.c (create_demangled_names_hash): Update.
12841 (symbol_set_names): Update.
12842 * objfiles.h (struct objfile_per_bfd_storage)
12843 <demangled_names_hash>: Now an htab_up.
12844 * objfiles.c (objfile_per_bfd_storage): Simplify.
12846 2019-03-15 Tom Tromey <tom@tromey.com>
12848 * objfiles.h (struct objfile_per_bfd_storage): Declare
12850 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12852 (get_objfile_bfd_data): Use new. Don't initialize
12854 (free_objfile_per_bfd_storage): Remove.
12855 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12857 2019-03-15 Tom Tromey <tom@tromey.com>
12859 * symfile.c (reread_symbols): Update.
12860 * objfiles.c (objfile::objfile): Update.
12861 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12864 (minimal_symbol_reader::install): Update.
12865 (terminate_minimal_symbol_table): Remove.
12866 * jit.c (jit_object_close_impl): Update.
12868 2019-03-15 Tom Tromey <tom@tromey.com>
12870 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12873 2019-03-15 Tom Tromey <tom@tromey.com>
12875 * objfiles.h (struct objfile_per_bfd_storage)
12876 <demangled_hash_languages>: Now a bitset.
12877 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12878 (lookup_minimal_symbol): Update.
12880 2019-03-15 Tom Tromey <tom@tromey.com>
12882 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12883 Don't return the symbol.
12884 * coffread.c (record_minimal_symbol): Use record_full.
12886 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12888 The MS-Windows port of ncurses fails to switch to a color pair if
12889 one or both of the colors are the implicit default colors. This
12890 change records the default colors when TUI is initialized, and
12891 then specifies them explicitly when a color pair uses the default
12892 colors. This allows color styling in TUI mode on MS-Windows.
12894 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12896 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12897 colors in ncurses_norm_attr.
12898 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12899 "none", replace it with the default color recorded in
12902 2019-03-14 Tom Tromey <tromey@adacore.com>
12904 * source-cache.h (class source_cache) <get_source_lines>: Return
12906 * source-cache.c (source_cache::extract_lines): Handle case where
12907 first_pos==npos. Return std::string.
12908 (source_cache::get_source_lines): Update.
12910 2019-03-14 Tom Tromey <tromey@adacore.com>
12912 * NEWS: Add item for "style sources" commands.
12913 * source-cache.c (source_cache::get_source_lines): Check
12915 * cli/cli-style.c (source_styling): New global.
12916 (_initialize_cli_style): Add "style sources" commands.
12917 (show_style_sources): New function.
12918 * cli/cli-style.h (source_styling): Declare.
12920 2019-03-14 Pedro Alves <palves@redhat.com>
12921 Tom Tromey <tromey@adacore.com>
12923 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12924 * tui/tui-winsource.c (tui_refill_source_window): New function,
12926 (tui_horizontal_source_scroll): ... here. Move some logic.
12927 * cli/cli-style.c (set_style_enabled): Notify new observable.
12928 * tui/tui-hooks.c (tui_redisplay_source): New function.
12929 (tui_attach_detach_observers): Attach or detach
12930 tui_redisplay_source.
12931 * observable.h (source_styling_changed): New observable.
12932 * observable.c: Define source_styling_changed observable.
12934 2019-03-13 Tom Tromey <tromey@adacore.com>
12936 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12937 (i386_gnu_nat_target::store_registers): Update.
12938 * target-debug.h (target_debug_print_std_string): New macro.
12939 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12940 * windows-tdep.c (display_one_tib): Update.
12941 * tui/tui-stack.c (tui_make_status_line): Update.
12942 * top.c (print_inferior_quit_action): Update.
12943 * thread.c (thr_try_catch_cmd): Update.
12944 (add_thread_with_info): Update.
12945 (thread_target_id_str): Update.
12946 (thr_try_catch_cmd): Update.
12947 (thread_command): Update.
12948 (thread_find_command): Update.
12949 * record-btrace.c (record_btrace_target::info_record)
12950 (record_btrace_resume_thread, record_btrace_target::resume)
12951 (record_btrace_cancel_resume, record_btrace_step_thread)
12952 (record_btrace_target::wait, record_btrace_target::wait)
12953 (record_btrace_target::wait, record_btrace_target::stop): Update.
12954 * progspace.c (print_program_space): Update.
12955 * process-stratum-target.c
12956 (process_stratum_target::thread_address_space): Update.
12957 * linux-fork.c (linux_fork_mourn_inferior)
12958 (detach_checkpoint_command, info_checkpoints_command)
12959 (linux_fork_context): Update.
12960 (linux_fork_detach): Update.
12961 (class scoped_switch_fork_info): Update.
12962 (delete_checkpoint_command): Update.
12963 * infrun.c (follow_fork_inferior): Update.
12964 (follow_fork_inferior): Update.
12965 (proceed_after_vfork_done): Update.
12966 (handle_vfork_child_exec_or_exit): Update.
12967 (follow_exec): Update.
12968 (displaced_step_prepare_throw): Update.
12969 (displaced_step_restore): Update.
12970 (start_step_over): Update.
12971 (resume_1): Update.
12972 (clear_proceed_status_thread): Update.
12974 (print_target_wait_results): Update.
12975 (do_target_wait): Update.
12976 (context_switch): Update.
12977 (stop_all_threads): Update.
12978 (restart_threads): Update.
12979 (finish_step_over): Update.
12980 (handle_signal_stop): Update.
12981 (switch_back_to_stepped_thread): Update.
12982 (keep_going_pass_signal): Update.
12983 (print_exited_reason): Update.
12984 (normal_stop): Update.
12985 * inferior.c (inferior_pid_to_str): Change return type.
12986 (print_selected_inferior): Update.
12987 (add_inferior): Update.
12988 (detach_inferior): Update.
12989 * dummy-frame.c (fprint_dummy_frames): Update.
12990 * dcache.c (dcache_info_1): Update.
12991 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12992 (btrace_fetch, btrace_clear): Update.
12993 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12994 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12996 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12997 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12998 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12999 * gdbarch.c, gdbarch.h: Rebuild.
13000 * gdbarch.sh (core_pid_to_str): Change return type.
13001 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13003 (windows_nat_target::pid_to_str): Change return type.
13004 (windows_delete_thread): Update.
13005 (windows_nat_target::attach): Update.
13006 (windows_nat_target::files_info): Update.
13007 * target-delegates.c: Rebuild.
13008 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13010 (sol_thread_target::pid_to_str): Change return type.
13011 * remote.c (class remote_target) <pid_to_str>: Change return
13013 (remote_target::pid_to_str): Change return type.
13014 (extended_remote_target::attach, remote_target::remote_stop_ns)
13015 (remote_target::remote_notif_remove_queued_reply)
13016 (remote_target::push_stop_reply, remote_target::disable_btrace):
13018 (extended_remote_target::attach): Update.
13019 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13021 (gdbsim_target::pid_to_str): Change return type.
13022 * ravenscar-thread.c (struct ravenscar_thread_target)
13023 <pid_to_str>: Change return type.
13024 (ravenscar_thread_target::pid_to_str): Change return type.
13025 * procfs.c (class procfs_target) <pid_to_str>: Change return
13027 (procfs_target::pid_to_str): Change return type.
13028 (procfs_target::attach): Update.
13029 (procfs_target::detach): Update.
13030 (procfs_target::fetch_registers): Update.
13031 (procfs_target::store_registers): Update.
13032 (procfs_target::wait): Update.
13033 (procfs_target::files_info): Update.
13034 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13035 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13037 (nto_procfs_target::pid_to_str): Change return type.
13038 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13039 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13041 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13042 (exit_lwp): Update.
13043 (attach_proc_task_lwp_callback, get_detach_signal)
13044 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13045 (linux_nat_target::resume, wait_lwp, stop_callback)
13046 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13047 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13048 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13049 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13050 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13052 (inf_ptrace_target::attach): Update.
13053 (inf_ptrace_target::files_info): Update.
13054 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13056 (go32_nat_target::pid_to_str): Change return type.
13057 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13058 (gnu_nat_target::wait): Update.
13059 (gnu_nat_target::wait): Update.
13060 (gnu_nat_target::resume): Update.
13061 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13062 (fbsd_nat_target::wait): Update.
13063 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13065 (darwin_nat_target::attach): Update.
13066 * corelow.c (class core_target) <pid_to_str>: Change return type.
13067 (core_target::pid_to_str): Change return type.
13068 * target.c (normal_pid_to_str): Change return type.
13069 (default_pid_to_str): Likewise.
13070 (target_pid_to_str): Change return type.
13071 (target_translate_tls_address): Update.
13072 (target_announce_detach): Update.
13073 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13075 (bsd_uthread_target::pid_to_str): Change return type.
13076 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13078 (bsd_kvm_target::pid_to_str): Change return type.
13079 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13081 (aix_thread_target::pid_to_str): Change return type.
13082 * target.h (struct target_ops) <pid_to_str>: Change return type.
13083 (target_pid_to_str, normal_pid_to_str): Likewise.
13084 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13086 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13088 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13090 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13092 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13094 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13097 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13099 * NEWS: Mention that the new default MI version is 3. Mention
13100 changes to the output of commands and events that deal with
13101 multi-location breakpoints.
13102 * breakpoint.c: Include "mi/mi-out.h".
13103 (print_one_breakpoint): Change output syntax if using MI version
13105 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13107 (mi_multi_location_breakpoint_output_fixed): New.
13108 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13109 (mi_cmd_fix_multi_location_breakpoint_output): New.
13110 (mi_multi_location_breakpoint_output_fixed): New.
13111 * mi/mi-cmds.c (mi_cmds): Register command
13112 -fix-multi-location-breakpoint-output.
13113 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13116 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13118 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13119 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13120 instantiate mi_ui_out based on interpreter name.
13121 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13122 * mi/mi-main.c (mi_load_progress): Likewise.
13124 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13126 * NEWS: Combine separate "New targets" sections for 8.3.
13128 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13130 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13131 (ppcfbsd_init_abi): Install gdbarch
13132 "fetch_tls_load_module_address" and "get_thread_local_address"
13135 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13137 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13138 (riscv_fbsd_init_abi): Install gdbarch
13139 "fetch_tls_load_module_address" and "get_thread_local_address"
13142 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13144 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13145 (i386fbsd_init_abi): Install gdbarch
13146 "fetch_tls_load_module_address" and "get_thread_local_address"
13149 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13151 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13152 (amd64fbsd_init_abi): Install gdbarch
13153 "fetch_tls_load_module_address" and "get_thread_local_address"
13156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13158 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13159 (struct fbsd_pspace_data): New type.
13160 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13161 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13162 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13163 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13164 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13166 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13168 * gdbtypes.c (lookup_struct_elt): New function.
13169 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13170 * gdbtypes.h (struct struct_elt): New type.
13171 (lookup_struct_elt): New prototype.
13173 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13175 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13176 remove disabled code block.
13178 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13180 * gdbarch.sh (get_thread_local_address): New method.
13181 * gdbarch.h, gdbarch.c: Regenerate.
13182 * target.c (target_translate_tls_address): Use
13183 gdbarch_get_thread_local_address if present instead of
13184 target::get_thread_local_address.
13186 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13188 * target.h (target::get_thread_local_address): Update comment.
13190 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13192 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13193 objfile->separate_debug_objfile_backlink if not NULL.
13195 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13197 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13198 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13199 (amd64bsd_store_inferior_registers): Likewise.
13200 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13201 Enable segment base registers.
13202 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13203 PT_GETFSBASE and PT_GETGSBASE.
13204 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13206 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13207 segment base registers.
13208 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13210 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13212 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13213 Update calls to i386_target_description to add 'segments'
13215 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13216 add segment base registers.
13217 * arch/i386.c (i386_create_target_description): Add 'segments'
13218 parameter to enable segment base registers.
13219 * arch/i386.h (i386_create_target_description): Likewise.
13220 * features/i386/32bit-segments.xml: New file.
13221 * features/i386/32bit-segments.c: Generate.
13222 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13223 call to i386_target_description to add 'segments' parameter.
13224 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13225 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13226 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13227 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13228 if feature is present.
13229 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13230 Add 'segments' parameter to call to i386_target_description.
13231 (i386_target_description): Add 'segments' parameter to enable
13232 segment base registers.
13233 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13234 to call to i386_target_description.
13235 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13236 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13237 Define I386_NUM_REGS.
13238 (i386_target_description): Add 'segments' parameter to enable
13239 segment base registers.
13241 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13244 * source-cache.c: #undef open and close, to avoid unresolved
13245 externals during linking.
13247 2019-03-12 Tom Tromey <tromey@adacore.com>
13249 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13250 const. Add initializers.
13251 (_initialize_remote): Don't initialize ptid globals.
13253 2019-03-12 Pedro Alves <palves@redhat.com>
13255 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13257 2019-03-12 Pedro Alves <palves@redhat.com>
13259 * cp-name-parser.y (main): Remove unused 'len' variable.
13261 2019-03-12 Tom Tromey <tromey@adacore.com>
13263 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13264 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13266 2019-03-12 Tom Tromey <tromey@adacore.com>
13268 * linux-nat.c (iterate_over_lwps): Update.
13269 (stop_callback): Remove parameter.
13270 (stop_wait_callback, detach_callback, resume_set_callback)
13271 (select_singlestep_lwp_callback, set_ignore_sigint)
13272 (status_callback, resumed_callback, resume_clear_callback)
13273 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13275 (linux_nat_target::detach, linux_nat_target::resume)
13276 (linux_stop_and_wait_all_lwps, select_event_lwp)
13277 (linux_nat_filter_event, linux_nat_wait_1)
13278 (linux_nat_target::kill, linux_nat_target::stop)
13279 (linux_nat_target::stop): Update.
13280 (linux_nat_resume_callback): Change type.
13281 (resume_stopped_resumed_lwps, count_events_callback)
13282 (select_event_lwp_callback): Likewise.
13283 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13284 * arm-linux-nat.c (struct update_registers_data): Remove.
13285 (update_registers_callback): Change type.
13286 (arm_linux_insert_hw_breakpoint1): Update.
13287 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13289 (x86_linux_dr_set_addr): Update.
13290 (x86_linux_dr_set_control): Update.
13291 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13292 (iterate_over_lwps): Use gdb::function_view.
13293 * nat/aarch64-linux-hw-point.c (struct
13294 aarch64_dr_update_callback_param): Remove.
13295 (debug_reg_change_callback): Change type.
13296 (aarch64_notify_debug_reg_change): Update.
13297 * s390-linux-nat.c (s390_refresh_per_info): Update.
13299 2019-03-11 Tom Tromey <tromey@adacore.com>
13301 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13302 redundant assignment to "this_cu".
13304 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13306 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13308 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13310 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13312 (rank_one_type): ... this.
13314 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13316 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13318 (rank_one_type): ... this.
13320 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13322 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13324 (rank_one_type): ... this.
13326 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13328 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13330 (rank_one_type): ... this.
13332 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13334 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13336 (rank_one_type): ... this.
13338 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13340 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13342 (rank_one_type): ... this.
13344 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13346 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13348 (rank_one_type): ... this.
13350 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13352 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13354 (rank_one_type): ... this.
13356 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13358 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13360 (rank_one_type): ... this.
13362 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13364 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13366 (rank_one_type): ... this.
13368 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13370 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13372 (rank_one_type): ... this.
13374 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13376 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13378 (rank_one_type): ... this.
13380 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13382 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13383 inferior-events' shows the example events.
13385 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13387 Support styling on native MS-Windows console
13390 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13391 on MS-Windows if $TERM is not defined.
13393 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13395 * posix-hdep.c (gdb_console_fputs):
13396 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13398 * ui-file.h (gdb_console_fputs): Add prototype.
13400 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13401 back to fputs only if the former returns zero.
13403 2019-03-07 Tom Tromey <tom@tromey.com>
13405 * symmisc.c (print_symbol_bcache_statistics): Update.
13406 (print_objfile_statistics): Update.
13407 * symfile.c (allocate_symtab): Update.
13408 * stabsread.c: Don't include bcache.h.
13409 * psymtab.h (struct psymbol_bcache): Don't declare.
13410 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13411 (psymbol_bcache_init, psymbol_bcache_free)
13412 (psymbol_bcache_get_bcache): Don't declare.
13413 * psymtab.c (struct psymbol_bcache): Remove.
13414 (psymtab_storage::psymtab_storage): Update.
13415 (psymtab_storage::~psymtab_storage): Update.
13416 (psymbol_bcache_init, psymbol_bcache_free)
13417 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13418 (add_psymbol_to_bcache): Update.
13419 (allocate_psymtab): Update.
13420 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13421 macro_cache>: No longer pointers.
13422 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13423 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13424 * macrotab.c (macro_bcache): Update.
13425 * macroexp.c: Don't include bcache.h.
13426 * gdbtypes.c (check_types_worklist): Update.
13427 (types_deeply_equal): Remove TRY/CATCH. Update.
13428 * elfread.c (elf_symtab_read): Update.
13429 * dwarf2read.c: Don't include bcache.h.
13430 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13431 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13432 (print_bcache_statistics, bcache_memory_used): Don't declare.
13433 (struct bcache): Move from bcache.c. Add constructor, destructor,
13434 methods. Rename all data members.
13435 * bcache.c (struct bcache): Move to bcache.h.
13436 (bcache::expand_hash_table): Rename from expand_hash_table.
13438 (bcache::insert): Rename from bcache_full.
13439 (bcache::compare): Rename from bcache_compare.
13440 (bcache_xmalloc): Remove.
13441 (bcache::~bcache): Rename from bcache_xfree.
13442 (bcache::print_statistics): Rename from print_bcache_statistics.
13443 (bcache::memory_used): Rename from bcache_memory_used.
13445 2019-03-07 Pedro Alves <palves@redhat.com>
13447 * infrun.c (normal_stop): Also check for
13448 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13450 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13452 * f-lang.c (value_from_host_double): Moved to...
13453 * value.c (value_from_host_double): ...here.
13454 * value.h (value_from_host_double): Declare.
13455 * guile/scm-math.c (vlscm_convert_typed_number): Use
13456 value_from_host_double.
13457 (vlscm_convert_number): Likewise.
13458 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13459 * python/py-value.c (convert_value_from_python): Likewise.
13461 2019-03-06 Tom Tromey <tom@tromey.com>
13463 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13465 2019-03-06 Tom Tromey <tom@tromey.com>
13467 * utils.h (free_current_contents): Don't declare.
13468 * utils.c (free_current_contents): Remove.
13470 2019-03-06 Tom Tromey <tom@tromey.com>
13472 * top.c (quit_force): Update.
13473 * main.c (captured_command_loop): Update.
13474 * common/new-op.c (operator new): Update.
13475 * common/common-exceptions.c (struct catcher)
13476 <save_cleanup_chain>: Remove member.
13477 (exceptions_state_mc_init): Update.
13478 (exception_try_scope_entry): Return nullptr.
13479 (exception_try_scope_exit, exception_rethrow)
13480 (throw_exception_sjlj, throw_exception_cxx): Update.
13481 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13482 (all_cleanups, do_cleanups, discard_cleanups)
13483 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13484 (restore_cleanups, restore_final_cleanups): Don't declare.
13485 (do_final_cleanups): Remove parameter.
13486 * common/cleanups.c (cleanup_chain, make_cleanup)
13487 (make_cleanup_dtor, all_cleanups, do_cleanups)
13488 (discard_my_cleanups, discard_cleanups)
13489 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13490 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13491 (null_cleanup): Remove.
13492 (do_final_cleanups): Remove parameter.
13494 2019-03-06 Tom Tromey <tom@tromey.com>
13496 * remote.c (remote_target::remote_parse_stop_reply): Use
13497 unique_xmalloc_ptr.
13499 2019-03-06 Tom Tromey <tom@tromey.com>
13501 * stabsread.c (struct stabs_field_info): Rename from field_info.
13502 <list, fnlist>: Add initializers.
13503 <obstack>: New member.
13504 (read_member_functions, read_struct_fields, read_baseclasses):
13505 Allocate on obstack. Don't use cleanups.
13506 (read_one_struct_field, read_member_functions, read_struct_fields)
13507 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13508 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13509 (read_struct_type): Update.
13511 2019-03-06 Tom Tromey <tom@tromey.com>
13513 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13514 * common/filestuff.h (make_cleanup_close): Don't declare.
13515 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13518 2019-03-06 Tom Tromey <tom@tromey.com>
13520 * solib-aix.c: Use make_scope_exit.
13522 2019-03-06 Tom Tromey <tom@tromey.com>
13524 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13525 Use make_scope_exit.
13527 2019-03-06 Tom Tromey <tom@tromey.com>
13529 * solib-svr4.c (disable_probes_interface): Remove parameter.
13530 (svr4_handle_solib_event): Use make_scope_exit.
13532 2019-03-06 Tom Tromey <tom@tromey.com>
13534 * remote.c (struct stop_reply_deleter): Remove.
13535 (stop_reply_up): Update.
13536 (struct stop_reply): Derive from notif_event. Don't typedef.
13537 <regcache>: Now a std::vector.
13538 (stop_reply_xfree): Remove.
13539 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13540 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13541 (remote_target::discard_pending_stop_replies): Use delete.
13542 (remote_target::remote_parse_stop_reply): Update.
13543 (remote_target::process_stop_reply): Update.
13544 * remote-notif.h (struct notif_event): Add virtual destructor.
13545 Remove "dtr" member.
13546 (struct notif_client) <alloc_event>: Return a unique_ptr.
13547 (notif_event_xfree): Don't declare.
13548 (notif_event_up): New typedef.
13549 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13550 (notif_event_xfree, do_notif_event_xfree): Remove.
13551 (remote_notif_state_xfree): Update.
13553 2019-03-06 Tom Tromey <tom@tromey.com>
13555 * infrun.c (displaced_step_clear_cleanup): Now a
13556 forward_scope_exit type.
13557 (displaced_step_prepare_throw): Update.
13558 (displaced_step_fixup): Update.
13560 2019-03-06 Tom Tromey <tom@tromey.com>
13562 * inferior.h (class inferior): Update comment.
13563 * gdbthread.h (class thread_info): Update comment.
13565 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13566 Tom Tromey <tom@tromey.com>
13568 * stabsread.h (struct stab_section_list): Remove.
13569 (coffstab_build_psymtabs): Update.
13570 * dbxread.c (symbuf_sections): Now a std::vector.
13571 (sect_idx): New global.
13572 (fill_symbuf): Update.
13573 (coffstab_build_psymtabs): Change type of stabsects parameter.
13575 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13577 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13578 (coff_locate_sections): Update.
13579 (coff_symfile_read): Remove cleanups. Update.
13580 (init_stringtab): Add storage parameter.
13581 (free_stringtab, free_stringtab_cleanup): Remove.
13582 (init_lineno): Add storage parameter.
13583 (free_linetab, free_linetab_cleanup): Remove.
13585 2019-03-06 Pedro Alves <palves@redhat.com>
13587 * linux-fork.c (fork_info::clobber_regs): Delete.
13588 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13589 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13591 (scoped_switch_fork_info::scoped_switch_fork_info)
13592 (checkpoint_command, linux_fork_context): Adjust
13593 fork_save_infrun_state calls.
13595 2019-03-06 Pedro Alves <palves@redhat.com>
13597 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13598 (inf_has_multiple_threads): Return 'bool' and rewrite using
13599 inferior_info::threads().
13601 2019-03-06 Pedro Alves <palves@redhat.com>
13603 * linux-fork.c: Include <list>.
13604 (fork_list): Now a std::list instance.
13605 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13606 (forks_exist_p, find_last_fork): Adjust.
13607 (new_fork): Delete.
13609 (add_fork): Adjust.
13610 (free_fork): Delete, folded into fork_info::~fork_info().
13611 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13613 (init_fork_list): Delete.
13614 (linux_fork_killall, linux_fork_mourn_inferior)
13615 (linux_fork_detach, info_checkpoints_command): Adjust.
13616 (_initialize_linux_fork): No longer call init_fork_list.
13618 2019-03-06 Pedro Alves <palves@redhat.com>
13620 * linux-fork.c (new_fork): New, split out of ...
13621 (add_fork): ... this. Return void. Move "first fork" special
13622 case from here, to ...
13623 (checkpoint_command): ... here.
13624 * linux-linux.h (add_fork): Return void.
13626 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13628 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13630 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13631 Chris January <chris.january@arm.com>
13632 David Lecomber <david.lecomber@arm.com>
13634 * f-exp.y: New token, UNOP_INTRINSIC.
13635 (exp): New pattern using UNOP_INTRINSIC token.
13636 (f77_keywords): Add 'abs' keyword.
13637 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13638 (value_from_host_double): New function.
13639 (evaluate_subexp_f): Support UNOP_ABS.
13641 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13643 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13646 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13648 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13649 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13650 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13652 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13654 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13656 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13657 Chris January <chris.january@arm.com>
13659 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13660 * f-exp.y: Define 'KIND' token.
13661 (exp): New pattern for KIND expressions.
13662 (ptype): Handle types with a kind extension.
13663 (direct_abs_decl): Extend to spot kind extensions.
13664 (f77_keywords): Add 'kind' to the list.
13665 (push_kind_type): New function.
13666 (convert_to_kind_type): New function.
13667 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13668 * parse.c (operator_length_standard): Likewise.
13669 * parser-defs.h (enum type_pieces): Add tp_kind.
13670 * std-operator.def: Add UNOP_KIND.
13672 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13674 * f-exp.y (f_parse): Set yydebug.
13676 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13678 * f-lang.c (evaluate_subexp_f): New function.
13679 (exp_descriptor_f): New global.
13680 (f_language_defn): Use exp_descriptor_f instead of
13681 exp_descriptor_standard.
13683 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13685 * f-exp.y (struct token): Add comments.
13686 (dot_ops): Remove uppercase versions and the end marker.
13687 (f77_keywords): Likewise.
13688 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13689 entries in the dot_ops array are case insensitive, and use
13690 strncasecmp to compare strings. Also some whitespace cleanup in
13691 this area. Similar for the f77_keywords array, except entries in
13692 this list might be case sensitive.
13694 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13696 * f-exp.y (struct f77_boolean_val): Add comments.
13697 (boolean_values): Remove uppercase versions, and end marker.
13698 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13699 and use strncasecmp to achieve case insensitivity. Additionally,
13700 perform whitespace cleanup around this code.
13702 2019-03-06 Tom Tromey <tromey@adacore.com>
13704 * remote-sim.c (gdbsim_target_open): Use result of
13707 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13708 Dirk Schubert <dirk.schubert@arm.com>
13709 Chris January <chris.january@arm.com>
13711 * eval.c (evaluate_subexp_standard): Call Fortran argument
13713 * f-lang.c (struct value): A value which can be passed into a
13714 Fortran function call.
13715 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13717 (struct type): Value ready for a Fortran function call.
13718 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13720 * f-lang.h (fortran_argument_convert): Declaration.
13721 (fortran_preserve_arg_pointer): Declaration.
13722 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13724 2019-03-05 Tom Tromey <tromey@adacore.com>
13726 * python/py-prettyprint.c (print_string_repr): Remove #if.
13727 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13729 2019-03-05 Tom Tromey <tromey@adacore.com>
13731 * target.c (the_dummy_target): Move later. Change type to
13733 (initialize_targets): Don't initialize the_dummy_target.
13735 2019-03-05 Tom Tromey <tromey@adacore.com>
13737 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13738 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13740 2019-03-05 Tom Tromey <tromey@adacore.com>
13742 * windows-nat.c (windows_nat_target::attach)
13743 (windows_nat_target::detach): Don't call gdb_flush.
13744 * valprint.c (generic_val_print, val_print, val_print_string):
13745 Don't call gdb_flush.
13746 * utils.c (defaulted_query): Don't call gdb_flush.
13747 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13748 * target.c (target_announce_detach): Don't call gdb_flush.
13749 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13750 * remote.c (extended_remote_target::attach): Don't call
13752 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13753 * printcmd.c (do_examine): Don't call gdb_flush.
13754 (info_display_command): Don't call gdb_flush.
13755 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13756 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13757 * memattr.c (info_mem_command): Don't call gdb_flush.
13758 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13759 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13760 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13761 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13762 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13763 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13764 (gnu_nat_target::detach): Don't call gdb_flush.
13765 * f-valprint.c (f_val_print): Don't call gdb_flush.
13766 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13767 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13768 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13770 * c-valprint.c (c_val_print): Don't call gdb_flush.
13771 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13773 2019-03-05 Tom Tromey <tromey@adacore.com>
13775 * varobj.c (update_dynamic_varobj_children): Update.
13776 (install_default_visualizer): Use reset, not release.
13777 * value.c (set_internalvar): Update.
13778 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13779 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13780 ATTRIBUTE_UNUSED_RESULT.
13782 2019-03-05 Tom Tromey <tromey@adacore.com>
13784 * remote.c (class scoped_remote_fd) <release>: Add
13785 ATTRIBUTE_UNUSED_RESULT.
13787 2019-03-05 Tom Tromey <tromey@adacore.com>
13789 * macroexp.c (struct macro_buffer) <release>: Add
13790 ATTRIBUTE_UNUSED_RESULT.
13792 2019-03-05 Tom Tromey <tromey@adacore.com>
13794 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13795 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13796 ATTRIBUTE_UNUSED_RESULT.
13798 2019-03-05 Tom Tromey <tromey@adacore.com>
13800 * common/scoped_fd.h (class scoped_fd) <release>: Add
13801 ATTRIBUTE_UNUSED_RESULT.
13803 2019-03-05 Tom Tromey <tromey@adacore.com>
13805 * parser-defs.h (struct parser_state) <release>: Add
13806 ATTRIBUTE_UNUSED_RESULT.
13808 2019-03-05 Tom Tromey <tromey@adacore.com>
13810 * utils.h (class gdb_argv) <release>: Add
13811 ATTRIBUTE_UNUSED_RESULT.
13812 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13814 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13816 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13817 for-loop range, to avoid compiler warnings.
13819 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13820 avoid compiler warnings about unused variables.
13822 * NEWS: Mention end of support for native debugging on MS-Windows
13826 * common/netstuff.c:
13827 * gdbserver/gdbreplay.c
13828 * gdbserver/remote-utils.c:
13830 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13831 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13832 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13833 'getaddrinfo' and 'freeaddrinfo' were not available before
13834 Windows XP, and mingw.org's MinGW headers by default define
13835 _WIN32_WINNT to 0x500.
13837 2019-03-01 Gary Benson <gbenson@redhat.com>
13839 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13841 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13842 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13845 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13846 set_sigint_trap, clear_sigint_trap.
13848 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13850 * target.c (target_detach): Clear the regcache and the
13853 2019-02-27 Pedro Alves <palves@redhat.com>
13855 * utils.c (set_screen_size): When we cap the height/width sizes,
13856 tweak the corresponding command variable to show "unlimited":
13858 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13859 Pedro Alves <palves@redhat.com>
13861 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13862 before calling rl_set_screen_size.
13864 2019-02-27 Tom Tromey <tromey@adacore.com>
13866 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13868 * python/py-value.c: Remove Python 2.4 workaround.
13869 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13871 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13872 Python 2.4 workaround.
13873 * python/python-internal.h: Remove Python 2.4 comment.
13874 (Py_ssize_t): Don't define.
13875 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13876 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13877 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13878 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13879 * python/python.c (do_start_initialization): Remove Python 2.4
13881 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13882 (print_children): Remove Python 2.4 workaround.
13883 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13885 (CHARBUFFERPROC_NAME): Remove.
13886 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13887 Python 2.4 workaround.
13889 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13891 * NEWS: Note minimum Python version.
13893 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13895 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13896 code from these functions. Remove corresponding ifdefs. Use
13897 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13898 Remove gotos and target of gotos.
13899 (infpy_search_memory): Likewise.
13901 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13903 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13904 (hppa_gdbarch_init): Don't register deleted functions with
13907 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13909 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13910 (h8300_unwind_sp): Delete.
13911 (h8300_dummy_id): Delete.
13912 (h8300_gdbarch_init): Don't register deleted functions with
13915 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13917 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13918 (ft32_unwind_pc): Delete.
13919 (ft32_unwind_sp): Delete.
13920 (ft32_gdbarch_init): Don't register deleted functions with
13923 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13925 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13926 (frv_unwind_pc): Delete.
13927 (frv_unwind_sp): Delete.
13928 (frv_gdbarch_init): Don't register deleted functions with
13931 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13933 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13934 (riscv_unwind_pc): Delete.
13935 (riscv_unwind_sp): Delete.
13936 (riscv_gdbarch_init): Don't register deleted functions with
13939 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13941 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13942 (csky_unwind_pc): Delete.
13943 (csky_unwind_sp): Delete.
13944 (csky_gdbarch_init): Don't register deleted functions with
13947 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13949 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13950 (cris_unwind_pc): Delete.
13951 (cris_unwind_sp): Delete.
13952 (cris_gdbarch_init): Don't register deleted functions with
13955 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13957 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13958 (bfin_unwind_pc): Delete.
13959 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13961 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13963 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13964 (arm_unwind_pc): Delete.
13965 (arm_unwind_sp): Delete.
13966 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13968 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13970 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13971 (arc_unwind_pc): Delete.
13972 (arc_unwind_sp): Delete.
13973 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13975 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13977 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13978 (alpha_unwind_pc): Delete.
13979 (alpha_gdbarch_init): Don't register deleted functions with
13982 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13984 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13985 (aarch64_unwind_pc): Delete.
13986 (aarch64_unwind_sp): Delete.
13987 (aarch64_gdbarch_init): Don't register deleted functions with
13990 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13992 * gdbtypes.c (type_align): Don't consider static members when
13993 computing structure alignment.
13995 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13997 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13998 return 0 for other types.
13999 * arch-utils.c (default_type_align): Always return 0.
14000 * gdbarch.h: Regenerate.
14001 * gdbarch.sh (type_align): Extend comment.
14002 * gdbtypes.c (type_align): Add additional comments, always call
14003 gdbarch_type_align before applying the default rules.
14004 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14005 generic code will then apply a suitable default.
14006 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14007 types, return 0 for other types.
14009 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14011 * NEWS: Create a new section for the next release branch.
14012 Rename the section of the current branch, now that it has
14015 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14017 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14018 * version.in: Bump version to 8.3.50.DATE-git.
14020 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14022 * aix-thread.c (ptid_cmp): Remove unused variable.
14023 (get_signaled_thread): Likewise.
14024 (store_regs_user_thread): Likewise.
14025 (store_regs_kernel_thread): Likewise.
14026 (fetch_regs_kernel_thread): Remove shadowed variable.
14028 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14030 * features/riscv/32bit-cpu.xml: Add register numbers.
14031 * features/riscv/32bit-fpu.c: Regenerate.
14032 * features/riscv/32bit-fpu.xml: Add register numbers.
14033 * features/riscv/64bit-cpu.xml: Add register numbers.
14034 * features/riscv/64bit-fpu.c: Regenerate.
14035 * features/riscv/64bit-fpu.xml: Add register numbers.
14037 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14039 * NEWS: Mention two argument form of gdb.Value constructor.
14040 * python/py-value.c (convert_buffer_and_type_to_value): New
14042 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14043 Add support for handling an optional second argument. Call
14044 convert_buffer_and_type_to_value as appropriate.
14045 * python/python-internal.h (Py_buffer_deleter): New struct.
14046 (Py_buffer_up): New typedef.
14048 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14050 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14051 instead of releasing ownership.
14053 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14055 * dwarf2read.c (open_and_init_dwp_file): Call
14056 elf_numsections instead of bfd_count_sections to initialize
14057 dwp_file->num_sections.
14059 2019-02-25 Tom Tromey <tromey@adacore.com>
14061 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14063 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14065 * gcore.in: Add '--readnever' option when invoking GDB.
14067 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14069 * MAINTAINERS: Update my email address.
14071 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14073 * build-id.c (build_id_to_debug_bfd_1): New function.
14074 (build_id_to_debug_bfd): Look for separate debug file in
14077 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14079 * gdbarch.sh: Update the copyright year range that is placed into
14082 2019-02-22 Keith Seitz <keiths@redhat.com>
14085 * linespec.c (create_sals_line_offset): Search for the default
14086 symtab's filename instead of its fullname.
14088 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14090 * NEWS: Update style defaults.
14092 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14094 * main.c (captured_main_1): Disable styling in batch mode.
14096 2019-02-20 Tom Tromey <tom@tromey.com>
14098 * symtab.c (symtab_symbol_info): Fix typos.
14100 2019-02-20 Tom Tromey <tromey@adacore.com>
14102 * findcmd.c (_initialize_mem_search): Use upper case for
14103 metasyntactic variables.
14105 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14107 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14108 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14110 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14112 * top.h (source_file_name): Change to std::string.
14113 * top.c (source_file_name): Likewise.
14114 (command_line_input): Adjust.
14115 * cli/cli-script.c (script_from_file): Adjust.
14117 2019-02-19 Tom Tromey <tromey@adacore.com>
14119 * ravenscar-thread.c
14120 (ravenscar_thread_target::update_thread_list): Don't call
14121 ada_build_task_list.
14122 * ada-lang.h (ada_build_task_list): Don't declare.
14123 * ada-tasks.c (struct ada_tasks_inferior_data)
14124 <task_list_valid_p>: Now bool.
14125 (read_known_tasks, ada_task_list_changed)
14126 (ada_tasks_invalidate_inferior_data): Update.
14127 (read_known_tasks_array): Return bool.
14128 (read_known_tasks_list): Likewise.
14129 (read_known_tasks): Return void.
14130 (ada_build_task_list): Now static.
14132 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14134 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14135 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14137 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14139 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14140 variant for ada_tasks_pspace_data_handle and
14141 ada_tasks_inferior_data_handle.
14142 (ada_tasks_pspace_data_cleanup): New function.
14143 (ada_tasks_inferior_data_cleanup): New function.
14145 2019-02-17 Tom Tromey <tom@tromey.com>
14147 * macrotab.h (macro_source_fullname): Return a std::string.
14148 * macrotab.c (macro_include, check_for_redefinition)
14149 (macro_undef, macro_lookup_definition, foreach_macro)
14150 (foreach_macro_in_scope): Update.
14151 (macro_source_fullname): Return a std::string.
14152 * macrocmd.c (show_pp_source_pos): Update.
14154 2019-02-17 Tom Tromey <tom@tromey.com>
14156 * macrocmd.c (show_pp_source_pos): Style the file names.
14158 2019-02-17 Tom Tromey <tom@tromey.com>
14161 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14163 2019-02-17 Tom Tromey <tom@tromey.com>
14165 * ada-lang.c (user_select_syms): Use filtered printing.
14166 * utils.c (wrap_style): New global.
14167 (desired_style): Remove.
14168 (emit_style_escape): Add stream parameter.
14169 (set_output_style, reset_terminal_style, prompt_for_continue):
14171 (flush_wrap_buffer): Only flush gdb_stdout.
14172 (wrap_here): Set wrap_style.
14173 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14174 treat escape sequences as a character. Change when wrap buffer is
14176 (fputs_styled): Do not set the output style when the default is
14178 * ui-style.h (struct ui_file_style) <is_default>: New method.
14179 * source.c (print_source_lines_base): Emit escape sequences in one
14182 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14184 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14185 integers and enumeration types.
14187 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14189 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14190 instead of lookup_symbol_in_language
14191 (do_exact_match): New function.
14192 (ada_get_symbol_name_matcher): Return do_exact_match when
14193 doing a verbatim match.
14195 2019-02-15 Tom Tromey <tromey@adacore.com>
14197 * ravenscar-thread.c (ravenscar_thread_target::resume)
14198 (ravenscar_thread_target::wait): Special case wildcard requests.
14200 2019-02-15 Tom Tromey <tromey@adacore.com>
14202 * ravenscar-thread.c (base_ptid): Remove.
14203 (struct ravenscar_thread_target) <close>: New method.
14204 <m_base_ptid>: New member.
14205 <update_inferior_ptid, active_task, task_is_currently_active,
14206 runtime_initialized>: Declare methods.
14207 <ravenscar_thread_target>: Add constructor.
14208 (ravenscar_thread_target::task_is_currently_active)
14209 (ravenscar_thread_target::update_inferior_ptid)
14210 (ravenscar_runtime_initialized): Rename. Now methods.
14211 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14212 (ravenscar_thread_target::update_thread_list): Update.
14213 (ravenscar_thread_target::active_task): Now method.
14214 (ravenscar_thread_target::store_registers)
14215 (ravenscar_thread_target::prepare_to_store)
14216 (ravenscar_thread_target::prepare_to_store)
14217 (ravenscar_thread_target::mourn_inferior): Update.
14218 (ravenscar_inferior_created): Use "new" to create target.
14219 (ravenscar_thread_target::get_ada_task_ptid): Update.
14220 (_initialize_ravenscar): Don't initialize base_ptid.
14221 (ravenscar_ops): Remove global.
14223 2019-02-15 Tom Tromey <tromey@adacore.com>
14225 * target.h (push_target): Declare new overload.
14226 * target.c (push_target): New overload, taking an rvalue reference.
14227 * remote.c (remote_target::open_1): Use push_target overload.
14228 * corelow.c (core_target_open): Use push_target overload.
14230 2019-02-15 Tom Tromey <tromey@adacore.com>
14232 * ravenscar-thread.c (is_ravenscar_task)
14233 (ravenscar_task_is_currently_active): Return bool.
14234 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14235 (_initialize_ravenscar): Remove "(void)".
14236 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14239 2019-02-15 Tom Tromey <tromey@adacore.com>
14241 * ravenscar-thread.c (ravenscar_runtime_initializer)
14242 (has_ravenscar_runtime, get_running_thread_id)
14243 (ravenscar_thread_target::resume): Fix indentation.
14245 2019-02-15 Tom Tromey <tromey@adacore.com>
14247 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14248 from ravenscar_arch_ops.
14249 (sparc_ravenscar_ops::fetch_registers)
14250 (sparc_ravenscar_ops::store_registers): Now methods.
14251 (sparc_ravenscar_prepare_to_store): Remove.
14252 (sparc_ravenscar_ops): Redefine.
14253 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14254 methods and destructor. Remove members.
14255 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14256 (ravenscar_thread_target::store_registers)
14257 (ravenscar_thread_target::prepare_to_store): Update.
14258 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14260 (struct ppc_ravenscar_powerpc_ops): Derive from
14261 ravenscar_arch_ops.
14262 (ppc_ravenscar_powerpc_ops::fetch_registers)
14263 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14264 (ppc_ravenscar_powerpc_ops): Redefine.
14265 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14266 (ppc_ravenscar_e500_ops::fetch_registers)
14267 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14268 (ppc_ravenscar_e500_ops): Redefine.
14269 * aarch64-ravenscar-thread.c
14270 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14271 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14272 (aarch64_ravenscar_fetch_registers)
14273 (aarch64_ravenscar_store_registers): Now methods.
14274 (aarch64_ravenscar_ops): Redefine.
14276 2019-02-15 Tom Tromey <tromey@adacore.com>
14278 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14279 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14280 (ravenscar_thread_target::stopped_by_watchpoint)
14281 (ravenscar_thread_target::stopped_data_address)
14282 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14284 2019-02-15 Tom Tromey <tromey@adacore.com>
14286 * ravenscar-thread.c: Fix some typos.
14288 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14289 Tom Tromey <tromey@adacore.com>
14291 * ada-lang.c (ada_exception_sal): Change addr_string to a
14293 (create_ada_exception_catchpoint): Update.
14295 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14296 Tom Tromey <tromey@adacore.com>
14298 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14299 (bp_location_ops): Remove.
14300 (base_breakpoint_allocate_location): Update.
14301 (free_bp_location): Update.
14302 * ada-lang.c (class ada_catchpoint_location)
14303 <ada_catchpoint_location>: Remove ops parameter.
14304 (ada_catchpoint_location_dtor): Remove.
14305 (ada_catchpoint_location_ops): Remove.
14306 (allocate_location_exception): Update.
14307 * breakpoint.h (struct bp_location_ops): Remove.
14308 (class bp_location) <bp_location>: Remove bp_location_ops
14310 <~bp_location>: Add destructor.
14313 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14314 Pedro Alves <palves@redhat.com>
14316 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14319 2019-02-14 David Michael <fedora.dm0@gmail.com>
14320 Samuel Thibault <samuel.thibault@gnu.org>
14321 Thomas Schwinge <thomas@codesourcery.com>
14323 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14324 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14326 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14328 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14329 (check_empty): Use "const char *".
14331 * gnu-nat.c (gnu_nat_target::detach): Instead of
14332 'detach_inferior (pid)' call
14333 'detach_inferior (find_inferior_pid (pid))'.
14335 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14336 'nat/fork-inferior.o'.
14337 * gnu-nat.c: #include "nat/fork-inferior.h".
14339 * gnu-nat.c (gnu_nat_target::detach): Instead of
14340 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14341 * gnu-nat.h: #include "inf-child.h".
14342 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14343 'i386_gnu_nat_target::fetch_registers'.
14344 (gnu_store_registers): Rename/move to
14345 'i386_gnu_nat_target::store_registers'.
14347 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14348 * gnu-nat.h (mach_thread_info): New function.
14349 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14351 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14353 2019-02-14 Frederic Konrad <konrad@adacore.com>
14355 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14357 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14359 * windows-nat.c (windows_add_thread): Add new parameter
14360 "main_thread_p" with default value set to false. Update
14361 function documentation as well as all callers.
14362 (windows_delete_thread): Likewise.
14363 (fake_create_process): Update call to windows_add_thread.
14364 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14365 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14366 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14367 call to windows_delete_thread.
14369 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14371 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14373 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14375 * symfile.c (find_separate_debug_file): Use canonical path of
14376 sysroot with child_path instead of gdb_sysroot if it is valid.
14378 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14380 * symfile.c (find_separate_debug_file): Use child_path to
14381 determine if an object file is under a sysroot.
14383 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14385 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14386 unittests/child-path-selftests.c.
14387 * common/pathstuff.c (child_path): New function.
14388 * common/pathstuff.h (child_path): New prototype.
14389 * unittests/child-path-selftests.c: New file.
14391 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14393 * symfile.c (find_separate_debug_file): Look for separate debug
14394 files in debug directories under the sysroot.
14396 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14398 * symtab.h (struct minimal_symbol data_p): New const method.
14399 (struct minimal_symbol text_p): Likewise.
14400 * symtab.c (output_source_filename): Use file name style
14401 to print file name.
14402 (print_symbol_info): Likewise.
14403 (print_msymbol_info): Use address style to print addresses.
14404 Use function name style to print executable text symbols.
14405 (expand_symtab_containing_pc): Use data_p.
14406 (find_pc_sect_compunit_symtab): Likewise.
14408 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14410 * breakpoint.c (describe_other_breakpoints): Use address style
14411 to print addresses.
14412 (say_where): Likewise.
14414 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14416 * ada-typeprint.c (print_func_type): Print function name
14417 style to print function name.
14418 * c-typeprint.c (c_print_type_1): Likewise.
14420 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14422 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14425 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14427 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14430 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14432 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14433 TYPE_CODE_REF types.
14435 2019-02-08 Jim Wilson <jimw@sifive.com>
14437 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14438 (riscv_linux_fregset): New.
14439 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14441 2019-02-07 Tom Tromey <tom@tromey.com>
14443 * thread.c (thread_cancel_execution_command): Update.
14444 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14446 (struct thread_fsm_ops): Remove.
14447 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14448 (thread_fsm_should_stop, thread_fsm_return_value)
14449 (thread_fsm_set_finished, thread_fsm_finished_p)
14450 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14452 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14453 * infrun.c (clear_proceed_status_thread)
14454 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14455 (print_stop_event): Update.
14456 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14458 (step_command_fsm_ops): Remove.
14459 (new_step_command_fsm): Remove.
14461 (step_command_fsm::should_stop): Rename from
14462 step_command_fsm_should_stop.
14463 (step_command_fsm::clean_up): Rename from
14464 step_command_fsm_clean_up.
14465 (step_command_fsm::do_async_reply_reason): Rename from
14466 step_command_fsm_async_reply_reason.
14467 (struct until_next_fsm): Inherit from thread_fsm. Add
14469 (until_next_fsm_ops): Remove.
14470 (new_until_next_fsm): Remove.
14471 (until_next_fsm::should_stop): Rename from
14472 until_next_fsm_should_stop.
14473 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14474 (until_next_fsm::do_async_reply_reason): Rename from
14475 until_next_fsm_async_reply_reason.
14476 (struct finish_command_fsm): Inherit from thread_fsm. Add
14477 constructor. Change type of breakpoint.
14478 (finish_command_fsm_ops): Remove.
14479 (new_finish_command_fsm): Remove.
14480 (finish_command_fsm::should_stop): Rename from
14481 finish_command_fsm_should_stop.
14482 (finish_command_fsm::clean_up): Rename from
14483 finish_command_fsm_clean_up.
14484 (finish_command_fsm::return_value): Rename from
14485 finish_command_fsm_return_value.
14486 (finish_command_fsm::do_async_reply_reason): Rename from
14487 finish_command_fsm_async_reply_reason.
14488 (finish_command): Update.
14489 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14491 (call_thread_fsm_ops): Remove.
14492 (call_thread_fsm::call_thread_fsm): Rename from
14493 new_call_thread_fsm.
14494 (call_thread_fsm::should_stop): Rename from
14495 call_thread_fsm_should_stop.
14496 (call_thread_fsm::should_notify_stop): Rename from
14497 call_thread_fsm_should_notify_stop.
14498 (run_inferior_call, call_function_by_hand_dummy): Update.
14499 * cli/cli-interp.c (should_print_stop_to_console): Update.
14500 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14501 Add constructor. Change type of location_breakpoint,
14503 (until_break_fsm_ops): Remove.
14504 (new_until_break_fsm): Remove.
14505 (until_break_fsm::should_stop): Rename from
14506 until_break_fsm_should_stop.
14507 (until_break_fsm::clean_up): Rename from
14508 until_break_fsm_clean_up.
14509 (until_break_fsm::do_async_reply_reason): Rename from
14510 until_break_fsm_async_reply_reason.
14511 (until_break_command): Update.
14512 * thread-fsm.c: Remove.
14513 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14515 2019-02-07 Tom Tromey <tom@tromey.com>
14517 * yy-remap.h: Add include guard.
14518 * xtensa-tdep.h: Add include guard.
14519 * xcoffread.h: Rename include guard.
14520 * varobj-iter.h: Add include guard.
14521 * tui/tui.h: Rename include guard.
14522 * tui/tui-winsource.h: Rename include guard.
14523 * tui/tui-wingeneral.h: Rename include guard.
14524 * tui/tui-windata.h: Rename include guard.
14525 * tui/tui-win.h: Rename include guard.
14526 * tui/tui-stack.h: Rename include guard.
14527 * tui/tui-source.h: Rename include guard.
14528 * tui/tui-regs.h: Rename include guard.
14529 * tui/tui-out.h: Rename include guard.
14530 * tui/tui-layout.h: Rename include guard.
14531 * tui/tui-io.h: Rename include guard.
14532 * tui/tui-hooks.h: Rename include guard.
14533 * tui/tui-file.h: Rename include guard.
14534 * tui/tui-disasm.h: Rename include guard.
14535 * tui/tui-data.h: Rename include guard.
14536 * tui/tui-command.h: Rename include guard.
14537 * tic6x-tdep.h: Add include guard.
14538 * target/waitstatus.h: Rename include guard.
14539 * target/wait.h: Rename include guard.
14540 * target/target.h: Rename include guard.
14541 * target/resume.h: Rename include guard.
14542 * target-float.h: Rename include guard.
14543 * stabsread.h: Add include guard.
14544 * rs6000-tdep.h: Add include guard.
14545 * riscv-fbsd-tdep.h: Add include guard.
14546 * regformats/regdef.h: Rename include guard.
14547 * record.h: Rename include guard.
14548 * python/python.h: Rename include guard.
14549 * python/python-internal.h: Rename include guard.
14550 * python/py-stopevent.h: Rename include guard.
14551 * python/py-ref.h: Rename include guard.
14552 * python/py-record.h: Rename include guard.
14553 * python/py-record-full.h: Rename include guard.
14554 * python/py-record-btrace.h: Rename include guard.
14555 * python/py-instruction.h: Rename include guard.
14556 * python/py-events.h: Rename include guard.
14557 * python/py-event.h: Rename include guard.
14558 * procfs.h: Add include guard.
14559 * proc-utils.h: Add include guard.
14560 * p-lang.h: Add include guard.
14561 * or1k-tdep.h: Rename include guard.
14562 * observable.h: Rename include guard.
14563 * nto-tdep.h: Rename include guard.
14564 * nat/x86-linux.h: Rename include guard.
14565 * nat/x86-linux-dregs.h: Rename include guard.
14566 * nat/x86-gcc-cpuid.h: Add include guard.
14567 * nat/x86-dregs.h: Rename include guard.
14568 * nat/x86-cpuid.h: Rename include guard.
14569 * nat/ppc-linux.h: Rename include guard.
14570 * nat/mips-linux-watch.h: Rename include guard.
14571 * nat/linux-waitpid.h: Rename include guard.
14572 * nat/linux-ptrace.h: Rename include guard.
14573 * nat/linux-procfs.h: Rename include guard.
14574 * nat/linux-osdata.h: Rename include guard.
14575 * nat/linux-nat.h: Rename include guard.
14576 * nat/linux-namespaces.h: Rename include guard.
14577 * nat/linux-btrace.h: Rename include guard.
14578 * nat/glibc_thread_db.h: Rename include guard.
14579 * nat/gdb_thread_db.h: Rename include guard.
14580 * nat/gdb_ptrace.h: Rename include guard.
14581 * nat/fork-inferior.h: Rename include guard.
14582 * nat/amd64-linux-siginfo.h: Rename include guard.
14583 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14584 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14585 * nat/aarch64-linux.h: Rename include guard.
14586 * nat/aarch64-linux-hw-point.h: Rename include guard.
14587 * mn10300-tdep.h: Add include guard.
14588 * mips-linux-tdep.h: Add include guard.
14589 * mi/mi-parse.h: Rename include guard.
14590 * mi/mi-out.h: Rename include guard.
14591 * mi/mi-main.h: Rename include guard.
14592 * mi/mi-interp.h: Rename include guard.
14593 * mi/mi-getopt.h: Rename include guard.
14594 * mi/mi-console.h: Rename include guard.
14595 * mi/mi-common.h: Rename include guard.
14596 * mi/mi-cmds.h: Rename include guard.
14597 * mi/mi-cmd-break.h: Rename include guard.
14598 * m2-lang.h: Add include guard.
14599 * location.h: Rename include guard.
14600 * linux-record.h: Rename include guard.
14601 * linux-nat.h: Add include guard.
14602 * linux-fork.h: Add include guard.
14603 * i386-darwin-tdep.h: Rename include guard.
14604 * hppa-linux-offsets.h: Add include guard.
14605 * guile/guile.h: Rename include guard.
14606 * guile/guile-internal.h: Rename include guard.
14607 * gnu-nat.h: Rename include guard.
14608 * gdb-stabs.h: Rename include guard.
14609 * frv-tdep.h: Add include guard.
14610 * f-lang.h: Add include guard.
14611 * event-loop.h: Add include guard.
14612 * darwin-nat.h: Rename include guard.
14613 * cp-abi.h: Rename include guard.
14614 * config/sparc/nm-sol2.h: Rename include guard.
14615 * config/nm-nto.h: Rename include guard.
14616 * config/nm-linux.h: Add include guard.
14617 * config/i386/nm-i386gnu.h: Rename include guard.
14618 * config/djgpp/nl_types.h: Rename include guard.
14619 * config/djgpp/langinfo.h: Rename include guard.
14620 * compile/gcc-cp-plugin.h: Add include guard.
14621 * compile/gcc-c-plugin.h: Add include guard.
14622 * compile/compile.h: Rename include guard.
14623 * compile/compile-object-run.h: Rename include guard.
14624 * compile/compile-object-load.h: Rename include guard.
14625 * compile/compile-internal.h: Rename include guard.
14626 * compile/compile-cplus.h: Rename include guard.
14627 * compile/compile-c.h: Rename include guard.
14628 * common/xml-utils.h: Rename include guard.
14629 * common/x86-xstate.h: Rename include guard.
14630 * common/version.h: Rename include guard.
14631 * common/vec.h: Rename include guard.
14632 * common/tdesc.h: Rename include guard.
14633 * common/selftest.h: Rename include guard.
14634 * common/scoped_restore.h: Rename include guard.
14635 * common/scoped_mmap.h: Rename include guard.
14636 * common/scoped_fd.h: Rename include guard.
14637 * common/safe-iterator.h: Rename include guard.
14638 * common/run-time-clock.h: Rename include guard.
14639 * common/refcounted-object.h: Rename include guard.
14640 * common/queue.h: Rename include guard.
14641 * common/ptid.h: Rename include guard.
14642 * common/print-utils.h: Rename include guard.
14643 * common/preprocessor.h: Rename include guard.
14644 * common/pathstuff.h: Rename include guard.
14645 * common/observable.h: Rename include guard.
14646 * common/netstuff.h: Rename include guard.
14647 * common/job-control.h: Rename include guard.
14648 * common/host-defs.h: Rename include guard.
14649 * common/gdb_wait.h: Rename include guard.
14650 * common/gdb_vecs.h: Rename include guard.
14651 * common/gdb_unlinker.h: Rename include guard.
14652 * common/gdb_unique_ptr.h: Rename include guard.
14653 * common/gdb_tilde_expand.h: Rename include guard.
14654 * common/gdb_sys_time.h: Rename include guard.
14655 * common/gdb_string_view.h: Rename include guard.
14656 * common/gdb_splay_tree.h: Rename include guard.
14657 * common/gdb_setjmp.h: Rename include guard.
14658 * common/gdb_ref_ptr.h: Rename include guard.
14659 * common/gdb_optional.h: Rename include guard.
14660 * common/gdb_locale.h: Rename include guard.
14661 * common/gdb_assert.h: Rename include guard.
14662 * common/filtered-iterator.h: Rename include guard.
14663 * common/filestuff.h: Rename include guard.
14664 * common/fileio.h: Rename include guard.
14665 * common/environ.h: Rename include guard.
14666 * common/common-utils.h: Rename include guard.
14667 * common/common-types.h: Rename include guard.
14668 * common/common-regcache.h: Rename include guard.
14669 * common/common-inferior.h: Rename include guard.
14670 * common/common-gdbthread.h: Rename include guard.
14671 * common/common-exceptions.h: Rename include guard.
14672 * common/common-defs.h: Rename include guard.
14673 * common/common-debug.h: Rename include guard.
14674 * common/cleanups.h: Rename include guard.
14675 * common/buffer.h: Rename include guard.
14676 * common/btrace-common.h: Rename include guard.
14677 * common/break-common.h: Rename include guard.
14678 * cli/cli-utils.h: Rename include guard.
14679 * cli/cli-style.h: Rename include guard.
14680 * cli/cli-setshow.h: Rename include guard.
14681 * cli/cli-script.h: Rename include guard.
14682 * cli/cli-interp.h: Rename include guard.
14683 * cli/cli-decode.h: Rename include guard.
14684 * cli/cli-cmds.h: Rename include guard.
14685 * charset-list.h: Add include guard.
14686 * buildsym-legacy.h: Rename include guard.
14687 * bfin-tdep.h: Add include guard.
14688 * ax.h: Rename include guard.
14689 * arm-linux-tdep.h: Add include guard.
14690 * arm-fbsd-tdep.h: Add include guard.
14691 * arch/xtensa.h: Rename include guard.
14692 * arch/tic6x.h: Add include guard.
14693 * arch/i386.h: Add include guard.
14694 * arch/arm.h: Rename include guard.
14695 * arch/arm-linux.h: Rename include guard.
14696 * arch/arm-get-next-pcs.h: Rename include guard.
14697 * arch/amd64.h: Add include guard.
14698 * arch/aarch64-insn.h: Rename include guard.
14699 * arch-utils.h: Rename include guard.
14700 * annotate.h: Add include guard.
14701 * amd64-darwin-tdep.h: Rename include guard.
14702 * aarch64-linux-tdep.h: Add include guard.
14703 * aarch64-fbsd-tdep.h: Add include guard.
14704 * aarch32-linux-nat.h: Add include guard.
14706 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14708 * macrotab.c (macro_define_internal): New function that
14709 factorizes macro_define_object_internal and macro_define_function
14711 (macro_define_object_internal): Use macro_define_internal.
14712 (macro_define_function): Likewise.
14714 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14716 * macrocmd.c (extract_identifier): Return
14717 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14720 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14722 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14724 2019-02-05 Tom Tromey <tom@tromey.com>
14726 * target.c (target_stack::unpush): Move assertion earlier.
14728 2019-01-30 Tom Tromey <tom@tromey.com>
14731 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14732 (gdbpy_parse_and_eval): Likewise.
14733 * python/python-internal.h (gdbpy_allow_threads): New class.
14735 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14737 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14738 (aarch64_fbsd_fpregmap): Move earlier.
14739 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14740 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14741 instead of individual calls to trad_frame_set_reg_addr.
14742 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14744 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14745 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14746 instead of individual calls to trad_frame_set_reg_addr.
14748 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14750 * CONTRIBUTE: Replace contribution list with wiki link.
14752 2019-01-25 Tom Tromey <tom@tromey.com>
14754 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14756 2019-01-25 Tom Tromey <tom@tromey.com>
14758 * xtensa-linux-nat.c: Fix common/ includes.
14759 * xml-support.h: Fix common/ includes.
14760 * xml-support.c: Fix common/ includes.
14761 * x86-linux-nat.c: Fix common/ includes.
14762 * windows-nat.c: Fix common/ includes.
14763 * varobj.h: Fix common/ includes.
14764 * varobj.c: Fix common/ includes.
14765 * value.c: Fix common/ includes.
14766 * valops.c: Fix common/ includes.
14767 * utils.c: Fix common/ includes.
14768 * unittests/xml-utils-selftests.c: Fix common/ includes.
14769 * unittests/utils-selftests.c: Fix common/ includes.
14770 * unittests/unpack-selftests.c: Fix common/ includes.
14771 * unittests/tracepoint-selftests.c: Fix common/ includes.
14772 * unittests/style-selftests.c: Fix common/ includes.
14773 * unittests/string_view-selftests.c: Fix common/ includes.
14774 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14775 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14776 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14777 * unittests/rsp-low-selftests.c: Fix common/ includes.
14778 * unittests/parse-connection-spec-selftests.c: Fix common/
14780 * unittests/optional-selftests.c: Fix common/ includes.
14781 * unittests/offset-type-selftests.c: Fix common/ includes.
14782 * unittests/observable-selftests.c: Fix common/ includes.
14783 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14784 * unittests/memrange-selftests.c: Fix common/ includes.
14785 * unittests/memory-map-selftests.c: Fix common/ includes.
14786 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14787 * unittests/function-view-selftests.c: Fix common/ includes.
14788 * unittests/environ-selftests.c: Fix common/ includes.
14789 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14790 * unittests/common-utils-selftests.c: Fix common/ includes.
14791 * unittests/cli-utils-selftests.c: Fix common/ includes.
14792 * unittests/array-view-selftests.c: Fix common/ includes.
14793 * ui-file.c: Fix common/ includes.
14794 * tui/tui-io.c: Fix common/ includes.
14795 * tracepoint.h: Fix common/ includes.
14796 * tracepoint.c: Fix common/ includes.
14797 * tracefile-tfile.c: Fix common/ includes.
14798 * top.h: Fix common/ includes.
14799 * top.c: Fix common/ includes.
14800 * thread.c: Fix common/ includes.
14801 * target/waitstatus.h: Fix common/ includes.
14802 * target/waitstatus.c: Fix common/ includes.
14803 * target.h: Fix common/ includes.
14804 * target.c: Fix common/ includes.
14805 * target-memory.c: Fix common/ includes.
14806 * target-descriptions.c: Fix common/ includes.
14807 * symtab.h: Fix common/ includes.
14808 * symfile.c: Fix common/ includes.
14809 * stap-probe.c: Fix common/ includes.
14810 * spu-linux-nat.c: Fix common/ includes.
14811 * sparc-nat.c: Fix common/ includes.
14812 * source.c: Fix common/ includes.
14813 * solib.c: Fix common/ includes.
14814 * solib-target.c: Fix common/ includes.
14815 * ser-unix.c: Fix common/ includes.
14816 * ser-tcp.c: Fix common/ includes.
14817 * ser-pipe.c: Fix common/ includes.
14818 * ser-base.c: Fix common/ includes.
14819 * selftest-arch.c: Fix common/ includes.
14820 * s12z-tdep.c: Fix common/ includes.
14821 * rust-exp.y: Fix common/ includes.
14822 * rs6000-aix-tdep.c: Fix common/ includes.
14823 * riscv-tdep.c: Fix common/ includes.
14824 * remote.c: Fix common/ includes.
14825 * remote-notif.h: Fix common/ includes.
14826 * remote-fileio.h: Fix common/ includes.
14827 * remote-fileio.c: Fix common/ includes.
14828 * regcache.h: Fix common/ includes.
14829 * regcache.c: Fix common/ includes.
14830 * record-btrace.c: Fix common/ includes.
14831 * python/python.c: Fix common/ includes.
14832 * python/py-type.c: Fix common/ includes.
14833 * python/py-inferior.c: Fix common/ includes.
14834 * progspace.h: Fix common/ includes.
14835 * producer.c: Fix common/ includes.
14836 * procfs.c: Fix common/ includes.
14837 * proc-api.c: Fix common/ includes.
14838 * printcmd.c: Fix common/ includes.
14839 * ppc-linux-nat.c: Fix common/ includes.
14840 * parser-defs.h: Fix common/ includes.
14841 * osdata.c: Fix common/ includes.
14842 * obsd-nat.c: Fix common/ includes.
14843 * nat/x86-linux.c: Fix common/ includes.
14844 * nat/x86-linux-dregs.c: Fix common/ includes.
14845 * nat/x86-dregs.h: Fix common/ includes.
14846 * nat/x86-dregs.c: Fix common/ includes.
14847 * nat/ppc-linux.c: Fix common/ includes.
14848 * nat/mips-linux-watch.h: Fix common/ includes.
14849 * nat/mips-linux-watch.c: Fix common/ includes.
14850 * nat/linux-waitpid.c: Fix common/ includes.
14851 * nat/linux-ptrace.h: Fix common/ includes.
14852 * nat/linux-ptrace.c: Fix common/ includes.
14853 * nat/linux-procfs.c: Fix common/ includes.
14854 * nat/linux-personality.c: Fix common/ includes.
14855 * nat/linux-osdata.c: Fix common/ includes.
14856 * nat/linux-namespaces.c: Fix common/ includes.
14857 * nat/linux-btrace.h: Fix common/ includes.
14858 * nat/linux-btrace.c: Fix common/ includes.
14859 * nat/fork-inferior.c: Fix common/ includes.
14860 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14861 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14862 * nat/aarch64-linux.c: Fix common/ includes.
14863 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14864 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14865 * namespace.h: Fix common/ includes.
14866 * mips-linux-tdep.c: Fix common/ includes.
14867 * minsyms.c: Fix common/ includes.
14868 * mi/mi-parse.h: Fix common/ includes.
14869 * mi/mi-main.c: Fix common/ includes.
14870 * mi/mi-cmd-env.c: Fix common/ includes.
14871 * memrange.h: Fix common/ includes.
14872 * memattr.c: Fix common/ includes.
14873 * maint.h: Fix common/ includes.
14874 * maint.c: Fix common/ includes.
14875 * main.c: Fix common/ includes.
14876 * machoread.c: Fix common/ includes.
14877 * location.c: Fix common/ includes.
14878 * linux-thread-db.c: Fix common/ includes.
14879 * linux-nat.c: Fix common/ includes.
14880 * linux-fork.c: Fix common/ includes.
14881 * inline-frame.c: Fix common/ includes.
14882 * infrun.c: Fix common/ includes.
14883 * inflow.c: Fix common/ includes.
14884 * inferior.h: Fix common/ includes.
14885 * inferior.c: Fix common/ includes.
14886 * infcmd.c: Fix common/ includes.
14887 * inf-ptrace.c: Fix common/ includes.
14888 * inf-child.c: Fix common/ includes.
14889 * ia64-linux-nat.c: Fix common/ includes.
14890 * i387-tdep.c: Fix common/ includes.
14891 * i386-tdep.c: Fix common/ includes.
14892 * i386-linux-tdep.c: Fix common/ includes.
14893 * i386-linux-nat.c: Fix common/ includes.
14894 * i386-go32-tdep.c: Fix common/ includes.
14895 * i386-fbsd-tdep.c: Fix common/ includes.
14896 * i386-fbsd-nat.c: Fix common/ includes.
14897 * guile/scm-type.c: Fix common/ includes.
14898 * guile/guile.c: Fix common/ includes.
14899 * go32-nat.c: Fix common/ includes.
14900 * gnu-nat.c: Fix common/ includes.
14901 * gdbthread.h: Fix common/ includes.
14902 * gdbarch-selftests.c: Fix common/ includes.
14903 * gdb_usleep.c: Fix common/ includes.
14904 * gdb_select.h: Fix common/ includes.
14905 * gdb_bfd.c: Fix common/ includes.
14906 * gcore.c: Fix common/ includes.
14907 * fork-child.c: Fix common/ includes.
14908 * findvar.c: Fix common/ includes.
14909 * fbsd-nat.c: Fix common/ includes.
14910 * event-top.c: Fix common/ includes.
14911 * event-loop.c: Fix common/ includes.
14912 * dwarf2read.c: Fix common/ includes.
14913 * dwarf2loc.c: Fix common/ includes.
14914 * dwarf2-frame.c: Fix common/ includes.
14915 * dwarf-index-cache.c: Fix common/ includes.
14916 * dtrace-probe.c: Fix common/ includes.
14917 * disasm-selftests.c: Fix common/ includes.
14918 * defs.h: Fix common/ includes.
14919 * csky-tdep.c: Fix common/ includes.
14920 * cp-valprint.c: Fix common/ includes.
14921 * cp-support.h: Fix common/ includes.
14922 * cp-support.c: Fix common/ includes.
14923 * corelow.c: Fix common/ includes.
14924 * completer.h: Fix common/ includes.
14925 * completer.c: Fix common/ includes.
14926 * compile/compile.c: Fix common/ includes.
14927 * compile/compile-loc2c.c: Fix common/ includes.
14928 * compile/compile-cplus-types.c: Fix common/ includes.
14929 * compile/compile-cplus-symbols.c: Fix common/ includes.
14930 * command.h: Fix common/ includes.
14931 * cli/cli-dump.c: Fix common/ includes.
14932 * cli/cli-cmds.c: Fix common/ includes.
14933 * charset.c: Fix common/ includes.
14934 * build-id.c: Fix common/ includes.
14935 * btrace.h: Fix common/ includes.
14936 * btrace.c: Fix common/ includes.
14937 * breakpoint.h: Fix common/ includes.
14938 * breakpoint.c: Fix common/ includes.
14940 (enum agent_op): Fix common/ includes.
14941 * ax-general.c (struct aop_map): Fix common/ includes.
14942 * ax-gdb.c: Fix common/ includes.
14943 * auxv.c: Fix common/ includes.
14944 * auto-load.c: Fix common/ includes.
14945 * arm-tdep.c: Fix common/ includes.
14946 * arch/riscv.c: Fix common/ includes.
14947 * arch/ppc-linux-common.c: Fix common/ includes.
14948 * arch/i386.c: Fix common/ includes.
14949 * arch/arm.c: Fix common/ includes.
14950 * arch/arm-linux.c: Fix common/ includes.
14951 * arch/arm-get-next-pcs.c: Fix common/ includes.
14952 * arch/amd64.c: Fix common/ includes.
14953 * arch/aarch64.c: Fix common/ includes.
14954 * arch/aarch64-insn.c: Fix common/ includes.
14955 * arch-utils.c: Fix common/ includes.
14956 * amd64-windows-tdep.c: Fix common/ includes.
14957 * amd64-tdep.c: Fix common/ includes.
14958 * amd64-sol2-tdep.c: Fix common/ includes.
14959 * amd64-obsd-tdep.c: Fix common/ includes.
14960 * amd64-nbsd-tdep.c: Fix common/ includes.
14961 * amd64-linux-tdep.c: Fix common/ includes.
14962 * amd64-linux-nat.c: Fix common/ includes.
14963 * amd64-fbsd-tdep.c: Fix common/ includes.
14964 * amd64-fbsd-nat.c: Fix common/ includes.
14965 * amd64-dicos-tdep.c: Fix common/ includes.
14966 * amd64-darwin-tdep.c: Fix common/ includes.
14967 * agent.c: Fix common/ includes.
14968 * ada-lang.h: Fix common/ includes.
14969 * ada-lang.c: Fix common/ includes.
14970 * aarch64-tdep.c: Fix common/ includes.
14972 2019-01-25 Tom Tromey <tom@tromey.com>
14974 * common/create-version.sh: Use common/version.h.
14976 2019-01-24 Pedro Alves <palves@redhat.com>
14978 * infrun.c (signal_stop, signal_print, signal_program)
14979 (signal_catch, signal_pass): Now arrays instead of pointers.
14980 (update_signals_program_target, do_target_resume)
14981 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14982 * linux-nat.c (linux_nat_target::pass_signals)
14983 (linux_nat_target::create_inferior, linux_nat_target::attach):
14985 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14986 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14987 * procfs.c (procfs_target::pass_signals): Adjust.
14988 * record-full.c (record_full_target::resume): Adjust.
14989 * remote.c (remote_target::pass_signals)
14990 (remote_target::program_signals): Adjust.
14991 * target-debug.h (target_debug_print_signals): Now takes a
14992 gdb::array_view as parameter. Adjust.
14993 * target.h (target_ops) <pass_signals, program_signals>: Replace
14994 pointer and length parameters with gdb::array_view.
14995 (target_pass_signals, target_program_signals): Likewise.
14996 * target-delegates.c: Regenerate.
14998 2019-01-24 Pedro Alves <palves@redhat.com>
15000 * common/forward-scope-exit.h
15001 (forward_scope_exit::forward_scope_exit): Pass arguments to
15002 m_bind_function directly, instead of creating a std::bind and
15005 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15007 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15008 for static members.
15009 (pass_in_v_vfp_candidate): Likewise.
15011 2019-01-23 Tom Tromey <tom@tromey.com>
15012 Pedro Alves <palves@redhat.com>
15014 * regcache.c (class regcache_invalidator): Remove.
15015 (regcache::raw_write): Use make_scope_exit.
15017 2019-01-23 Tom Tromey <tom@tromey.com>
15019 * ui-out.h (class ui_out_emit_type): Update comment.
15021 2019-01-23 Tom Tromey <tom@tromey.com>
15023 * infrun.c (fetch_inferior_event): Update comment.
15025 2019-01-23 Tom Tromey <tom@tromey.com>
15026 Pedro Alves <palves@redhat.com>
15028 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15030 (fetch_inferior_event): Use SCOPE_EXIT.
15033 2019-01-23 Tom Tromey <tom@tromey.com>
15034 Pedro Alves <palves@redhat.com>
15036 * infrun.c (disable_thread_events): Delete.
15037 (stop_all_threads): Use SCOPE_EXIT.
15039 2019-01-23 Tom Tromey <tom@tromey.com>
15040 Pedro Alves <palves@redhat.com>
15042 * symfile.c: Include forward-scope-exit.h.
15043 (clear_symtab_users_cleanup): Replace forward declaration with
15044 a FORWARD_SCOPE_EXIT.
15045 (syms_from_objfile_1): Use the forward_scope_exit and
15046 gdb::optional instead of cleanup_function.
15047 (reread_symbols): Use the forward_scope_exit instead of
15049 (clear_symtab_users_cleanup): Remove function.
15051 2019-01-23 Tom Tromey <tom@tromey.com>
15052 Pedro Alves <palves@redhat.com>
15054 * linux-nat.c: Include scope-exit.h.
15055 (cleanup_target_stop): Remove.
15056 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15059 2019-01-23 Tom Tromey <tom@tromey.com>
15060 Pedro Alves <palves@redhat.com>
15062 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15063 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15065 2019-01-23 Tom Tromey <tom@tromey.com>
15066 Andrew Burgess <andrew.burgess@embecosm.com>
15067 Pedro Alves <palves@redhat.com>
15069 * infrun.c (fetch_inferior_event): Use scope_exit.
15070 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15071 * top.c (execute_command): Use scope_exit.
15072 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15073 * utils.c (do_bpstat_clear_actions_cleanup)
15074 (make_bpstat_clear_actions_cleanup): Remove.
15076 2019-01-23 Tom Tromey <tom@tromey.com>
15077 Pedro Alves <palves@redhat.com>
15079 * infrun.c: Include "common/scope-exit.h"
15080 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15081 (wait_for_inferior): Use SCOPE_EXIT.
15082 (fetch_inferior_event): Use scope_exit.
15084 2019-01-23 Tom Tromey <tom@tromey.com>
15085 Pedro Alves <palves@redhat.com>
15087 * breakpoint.c (create_breakpoint): Remove cleanup.
15089 2019-01-23 Tom Tromey <tom@tromey.com>
15090 Andrew Burgess <andrew.burgess@embecosm.com>
15091 Pedro Alves <palves@redhat.com>
15093 2019-01-23 Pedro Alves <palves@redhat.com>
15095 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15097 2019-01-23 Pedro Alves <palves@redhat.com>
15098 Andrew Burgess <andrew.burgess@embecosm.com>
15100 * gdbthread.h: Include "common/forward-scope-exit.h".
15101 (scoped_finish_thread_state): Redefine custom class in terms of
15102 forward_scope_exit.
15104 2019-01-23 Pedro Alves <palves@redhat.com>
15105 Andrew Burgess <andrew.burgess@embecosm.com>
15107 * common/forward-scope-exit.h: New file.
15109 2019-01-23 Pedro Alves <palves@redhat.com>
15110 Andrew Burgess <andrew.burgess@embecosm.com>
15111 Tom Tromey <tom@tromey.com>
15113 * common/scope-exit.h: New file.
15115 2019-01-23 Pedro Alves <palves@redhat.com>
15117 * common/preprocessor.h (ESC): Rename to ...
15118 (ESC_PARENS): ... this.
15119 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15120 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15122 2019-01-23 Tom Tromey <tom@tromey.com>
15124 * language.h (class scoped_switch_to_sym_language_if_auto):
15125 Initialize m_lang in both cases.
15127 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15129 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15132 2019-01-22 Tom Tromey <tom@tromey.com>
15134 * corelow.c: Do not include sys/file.h.
15136 2019-01-22 Tom Tromey <tom@tromey.com>
15138 * tui/tui-wingeneral.h: Include gdb_curses.h.
15140 2019-01-22 Tom Tromey <tom@tromey.com>
15142 * source-cache.h (class source_cache) <get_source_lines,
15143 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15145 2019-01-22 Tom Tromey <tom@tromey.com>
15147 * remote-fileio.h (struct remote_target): Declare.
15149 2019-01-22 Tom Tromey <tom@tromey.com>
15151 * python/py-arch.c: Do not include py-ref.h.
15152 * python/py-bpevent.c: Do not include py-ref.h.
15153 * python/py-cmd.c: Do not include py-ref.h.
15154 * python/py-continueevent.c: Do not include py-ref.h.
15155 * python/py-event.h: Do not include py-ref.h.
15156 * python/py-evtregistry.c: Do not include py-ref.h.
15157 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15158 * python/py-frame.c: Do not include py-ref.h.
15159 * python/py-framefilter.c: Do not include py-ref.h.
15160 * python/py-function.c: Do not include py-ref.h.
15161 * python/py-infevents.c: Do not include py-ref.h.
15162 * python/py-linetable.c: Do not include py-ref.h.
15163 * python/py-objfile.c: Do not include py-ref.h.
15164 * python/py-param.c: Do not include py-ref.h.
15165 * python/py-prettyprint.c: Do not include py-ref.h.
15166 * python/py-progspace.c: Do not include py-ref.h.
15167 * python/py-symbol.c: Do not include py-ref.h.
15168 * python/py-symtab.c: Do not include py-ref.h.
15169 * python/py-type.c: Do not include py-ref.h.
15170 * python/py-unwind.c: Do not include py-ref.h.
15171 * python/py-utils.c: Do not include py-ref.h.
15172 * python/py-value.c: Do not include py-ref.h.
15173 * python/py-varobj.c: Do not include py-ref.h.
15174 * python/py-xmethods.c: Do not include py-ref.h.
15175 * python/python.c: Do not include py-ref.h.
15176 * varobj.c: Do not include py-ref.h.
15178 2019-01-22 Tom Tromey <tom@tromey.com>
15180 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15181 keyword for bcache.
15183 2019-01-22 Tom Tromey <tom@tromey.com>
15185 * compile/compile-cplus-types.c: Remove a comment by #include.
15187 2019-01-22 Tom Tromey <tom@tromey.com>
15189 * compile/gcc-c-plugin.h: Include compile-internal.h.
15191 2019-01-22 Tom Tromey <tom@tromey.com>
15193 * stabsread.c (EXTERN): Do not define.
15194 (symnum, next_symbol_text_func, processing_gcc_compilation)
15195 (within_function, global_sym_chain, global_stabs)
15196 (previous_stab_code, this_object_header_files)
15197 (n_this_object_header_files)
15198 (n_allocated_this_object_header_files): Define.
15199 * stabsread.h (EXTERN): Never define. Use "extern".
15201 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15203 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15206 2019-01-21 Tom Tromey <tom@tromey.com>
15208 * ui-out.c: Fix includes.
15209 * tui/tui-source.c: Fix includes.
15210 * target.c: Fix includes.
15211 * remote.c: Fix includes.
15212 * regcache.c: Fix includes.
15213 * python/py-block.c: Fix includes.
15214 * printcmd.c: Fix includes.
15215 * or1k-tdep.c: Fix includes.
15216 * mi/mi-main.c: Fix includes.
15217 * m32r-tdep.c: Fix includes.
15218 * csky-tdep.c: Fix includes.
15219 * compile/compile-cplus-types.c: Fix includes.
15220 * cli/cli-interp.c: Fix includes.
15222 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15224 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15227 2019-01-16 Tom Tromey <tom@tromey.com>
15229 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15231 (struct objfile) <msymbols_range>: Move from top level.
15232 <msymbols>: New method.
15233 (class objfile_msymbols): Remove.
15234 * symtab.c (default_collect_symbol_completion_matches_break_on):
15236 * symmisc.c (dump_msymbols): Update.
15237 * stabsread.c (scan_file_globals): Update.
15238 * objc-lang.c (info_selectors_command, info_classes_command)
15239 (find_methods): Update.
15240 * minsyms.c (find_solib_trampoline_target): Update.
15241 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15242 * coffread.c (coff_symfile_read): Update.
15243 * ada-lang.c (ada_lookup_simple_minsym)
15244 (ada_collect_symbol_completion_matches): Update.
15246 2019-01-16 Tom Tromey <tom@tromey.com>
15248 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15249 type. Remove no-argument constructor.
15250 <iterator::operator++>: Simplify.
15252 <end>: Use minimal_symbol_count.
15254 2019-01-16 Tom Tromey <tom@tromey.com>
15256 * objfiles.h (struct objfile) <psymtabs>: New method.
15257 (class objfile_psymtabs): Remove.
15258 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15260 <range>: New method.
15261 (require_partial_symbols): Change return type.
15262 * psymtab.c (require_partial_symbols)
15263 (psym_expand_symtabs_matching): Update.
15264 * mdebugread.c (parse_partial_symbols): Update.
15265 * dbxread.c (dbx_end_psymtab): Update.
15267 2019-01-15 Tom Tromey <tom@tromey.com>
15269 * symtab.c (lookup_objfile_from_block)
15270 (lookup_symbol_in_objfile_symtabs)
15271 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15272 (find_line_symtab, info_sources_command)
15273 (default_collect_symbol_completion_matches_break_on)
15274 (make_source_files_completion_list): Update.
15275 * symmisc.c (print_objfile_statistics, dump_objfile)
15276 (maintenance_print_symbols, maintenance_info_symtabs)
15277 (maintenance_check_symtabs, maintenance_info_line_tables):
15279 * source.c (select_source_symtab)
15280 (forget_cached_source_info_for_objfile): Update.
15281 * objfiles.h (class objfile_compunits): Remove.
15282 (struct objfile) <compunits_range>: New typedef.
15283 (compunits): New method.
15284 * objfiles.c (objfile_relocate1): Update.
15285 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15286 * maint.c (count_symtabs_and_blocks): Update.
15287 * linespec.c (iterate_over_all_matching_symtabs): Update.
15288 * cp-support.c (add_symbol_overload_list_qualified): Update.
15289 * coffread.c (coff_symtab_read): Update.
15290 * ada-lang.c (add_nonlocal_symbols)
15291 (ada_collect_symbol_completion_matches)
15292 (ada_add_global_exceptions): Update.
15294 2019-01-15 Tom Tromey <tom@tromey.com>
15296 * progspace.h (program_space) <objfiles_safe_range>: New
15298 <objfiles_safe>: New method.
15299 * objfiles.h (class all_objfiles_safe): Remove.
15300 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15301 * jit.c (jit_inferior_exit_hook): Update.
15303 2019-01-17 Tom Tromey <tom@tromey.com>
15305 * progspace.h (program_space) <objfiles_range>: New typedef.
15306 <objfiles>: New method.
15307 <objfiles_head>: Rename from objfiles.
15308 (object_files): Update.
15309 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15310 * guile/scm-pretty-print.c
15311 (ppscm_find_pretty_printer_from_objfiles): Update.
15312 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15313 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15315 * python/py-progspace.c (pspy_get_objfiles): Update.
15316 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15318 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15319 (objfpy_lookup_objfile_by_build_id): Update.
15320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15321 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15323 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15324 (expand_symtab_containing_pc, lookup_objfile_from_block)
15325 (lookup_static_symbol, basic_lookup_transparent_type)
15326 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15327 (find_line_symtab, info_sources_command)
15328 (default_collect_symbol_completion_matches_break_on)
15329 (make_source_files_completion_list, find_main_name): Update.
15330 * symmisc.c (print_symbol_bcache_statistics)
15331 (print_objfile_statistics, maintenance_print_symbols)
15332 (maintenance_print_msymbols, maintenance_print_objfiles)
15333 (maintenance_info_symtabs, maintenance_check_symtabs)
15334 (maintenance_expand_symtabs, maintenance_info_line_tables):
15336 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15337 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15338 (map_overlay_command, unmap_overlay_command)
15339 (simple_overlay_update, expand_symtabs_matching)
15340 (map_symbol_filenames): Update.
15341 * symfile-debug.c (set_debug_symfile): Update.
15342 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15344 * source.c (select_source_symtab, forget_cached_source_info):
15346 * solib.c (solib_read_symbols): Update.
15347 * solib-spu.c (append_ocl_sos): Update.
15348 * psymtab.c (maintenance_print_psymbols)
15349 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15350 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15351 * printcmd.c (info_symbol_command): Update.
15352 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15354 * objfiles.h (class all_objfiles): Remove.
15355 * objfiles.c (have_partial_symbols, have_full_symbols)
15356 (have_minimal_symbols, qsort_cmp, update_section_map)
15357 (shared_objfile_contains_address_p)
15358 (default_iterate_over_objfiles_in_search_order): Update.
15359 * objc-lang.c (info_selectors_command, info_classes_command)
15360 (find_methods): Update.
15361 * minsyms.c (find_solib_trampoline_target): Update.
15362 * maint.c (maintenance_info_sections)
15363 (maintenance_translate_address, count_symtabs_and_blocks):
15365 * main.c (captured_main_1): Update.
15366 * linux-thread-db.c (try_thread_db_load_from_pdir)
15367 (has_libpthread): Update.
15368 * linespec.c (iterate_over_all_matching_symtabs)
15369 (search_minsyms_for_name): Update.
15370 * jit.c (jit_find_objf_with_entry_addr): Update.
15371 * hppa-tdep.c (find_unwind_entry)
15372 (hppa_lookup_stub_minimal_symbol): Update.
15373 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15375 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15376 (elf_gnu_ifunc_resolve_by_got): Update.
15377 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15378 * dwarf-index-write.c (save_gdb_index_command): Update.
15379 * cp-support.c (add_symbol_overload_list_qualified): Update.
15380 * breakpoint.c (create_overlay_event_breakpoint)
15381 (create_longjmp_master_breakpoint)
15382 (create_std_terminate_master_breakpoint)
15383 (create_exception_master_breakpoint): Update.
15384 * blockframe.c (find_pc_partial_function): Update.
15385 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15386 (ada_collect_symbol_completion_matches)
15387 (ada_add_global_exceptions): Update.
15389 2019-01-17 Tom Tromey <tom@tromey.com>
15391 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15393 (solib_target_parse_libraries): Change return type.
15394 (library_list_start_segment, library_list_start_section)
15395 (library_list_end_library, library_list_start_library); Update.
15396 (solib_target_free_library_list): Remove.
15397 (solib_target_parse_libraries): Remove cleanup. Change return
15399 (solib_target_current_sos): Update.
15401 2019-01-17 Tom Tromey <tromey@bapiya>
15403 * valprint.c: Replace "the the" with "the".
15404 * symtab.c: Replace "the the" with "the".
15405 * solib.c: Replace "the the" with "the".
15406 * solib-dsbt.c: Replace "the the" with "the".
15407 * linespec.c: Replace "the the" with "the".
15408 * dwarf2loc.h: Replace "the the" with "the".
15409 * amd64-windows-tdep.c: Replace "the the" with "the".
15410 * aarch64-tdep.c: Replace "the the" with "the".
15412 2019-01-16 Keith Seitz <keiths@redhat.com>
15415 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15416 <builder>: Rename to ..
15417 <m_builder>: ... this and make private.
15418 (dwarf2_cu::get_builder): New method. Change all users of
15419 `builder' to use this method.
15420 (dwarf2_start_symtab): Move to ...
15421 (dwarf2_cu::start_symtab): ... here. Update all callers
15422 (setup_type_unit_groups): Move to ...
15423 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15425 (dwarf2_cu::reset_builder): New method.
15426 (process_full_compunit, process_full_type_unit): Use
15427 dwarf2_cu::reset_builder.
15428 (follow_die_offset): Record the ancestor CU if it is different
15429 from the followed DIE's CU.
15430 (follow_die_sig_1): Likewise.
15432 2019-01-15 Tom Tromey <tom@tromey.com>
15434 * remote.c (class remote_state) <buf>: Now a char_vector.
15435 <buf_size>: Remove.
15436 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15438 (remote_target::getpkt_or_notif_sane_1)
15439 (remote_target::getpkt_sane)
15440 (remote_target::getpkt_or_notif_sane): Likewise.
15441 (class remote_target) <putpkt>: New overload.
15442 (remote_target::read_frame): Change type of "buf_p". Remove
15443 sizeof_p parameter.
15444 (packet_ok): New overload.
15445 (packet_check_result): New overload.
15448 2019-01-14 Tom Tromey <tom@tromey.com>
15450 * remote-notif.c (handle_notification, remote_notif_ack)
15451 (remote_notif_parse): Make "buf" const.
15452 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15454 (remote_notif_parse, remote_notif_ack, handle_notification):
15456 * remote.c (remote_notif_stop_parse): Make "buf" const.
15457 (remote_target::remote_parse_stop_reply): Make "buf" const.
15458 (remote_notif_stop_ack): Make "buf" const.
15460 2019-01-14 Tom Tromey <tom@tromey.com>
15462 * remote.c (remote_console_output): Make parameter const.
15464 2019-01-14 Tom Tromey <tom@tromey.com>
15466 * target-debug.h (target_debug_print_signals): Constify.
15467 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15468 * procfs.c (procfs_target::pass_signals): Update.
15469 * linux-nat.c (linux_nat_target::pass_signals): Update.
15470 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15471 * target-delegates.c: Rebuild.
15472 * remote.c (remote_target::program_signals): Update.
15473 (remote_target::pass_signals): Update.
15474 * target.c (target_pass_signals): Constify argument.
15475 (target_program_signals): Likewise.
15476 * target.h (struct target_ops) <pass_signals, program_signals>:
15478 (target_pass_signals, target_program_signals): Constify argument.
15480 2019-01-14 Tom Tromey <tom@tromey.com>
15483 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15485 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15487 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15489 * rs6000-tdep.c: Include reggroups.h.
15490 (IS_V_ALIAS_PSEUDOREG): Define.
15491 (rs6000_register_name): Return names for the "vX" aliases.
15492 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15493 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15494 aliases. Call default_register_reggroup_p for all other
15496 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15498 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15499 Handle "vX" aliases.
15500 (v_alias_pseudo_register_collect): New function.
15501 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15502 (rs6000_gdbarch_init): Initialize "vX" aliases as
15503 pseudo-registers. Restore registration of
15504 rs6000_pseudo_register_reggroup_p with
15505 set_tdesc_pseudo_register_reggroup_p.
15507 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15509 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15510 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15511 set_gdbarch_num_pseudo_regs.
15513 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15515 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15516 Remove arg prefixname, add do_set and do_show.
15517 Add member functions set_list and show_list.
15518 * cli/cli-style.c (class cli_style_option): Update accordingly.
15519 (style_set_list): Move to file scope.
15520 (style_show_list): Likewise.
15521 (set_style): Call help_list.
15522 (show_style): Call cmd_show_list.
15523 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15524 Update to use the new macro.
15526 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15528 * ada-lang.c (_initialize_ada_language): Expand the help text
15529 for the "catch exception" command.
15531 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15533 * symtab.c (matching_obj_sections): Initialize obj,
15534 declare it closer to its usage.
15536 2019-01-10 Tom Tromey <tom@tromey.com>
15538 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15539 (basic_inf_threads_range): Remove.
15540 (inf_threads_range, inf_non_exited_threads_range)
15541 (safe_inf_threads_range): Use next_adapter.
15543 2019-01-10 Keith Seitz <keiths@redhat.com>
15547 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15548 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15550 2019-01-10 Keith Seitz <keiths@redhat.com>
15554 * dictionary.c (pending_to_vector): Remove.
15555 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15556 Remove _1 suffix, replacing functions of the same name. Update
15558 (dict_create_hashed, dict_create_hashed_expandable)
15559 (dict_create_linear, dict_create_linear_expandable, dict_free)
15560 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15561 Make functions static.
15563 2019-01-10 Keith Seitz <keiths@redhat.com>
15567 * dictionary.h (struct dictionary): Replace declaration with
15569 (dict_create_hashed, dict_create_hashed_expandable)
15570 (dict_create_linear, dict_create_linear_expandable)
15571 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15572 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15573 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15574 taking multidictionary argument.
15575 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15576 * block.h (struct block) <dict>: Change to multidictionary
15577 and rename `multidict'.
15578 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15579 symmisc.c: Update all dictionary references to multidictionary.
15581 2019-01-10 Keith Seitz <keiths@redhat.com>
15585 * dictionary.c: Include unordered_map.
15586 (pending_to_vector): New function.
15587 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15588 Rewrite the non-"_1" functions to take vector instead
15590 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15591 "new" _1 versions of the same name.
15592 (multidictionary): Define.
15593 (std::hash<enum language): New definition.
15594 (collate_pending_symbols_by_language, mdict_create_hashed)
15595 (mdict_create_hashed_expandable, mdict_create_linear)
15596 (mdict_create_linear_expandable, mdict_free)
15597 (find_language_dictionary, create_new_language_dictionary)
15598 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15599 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15600 (mdict_size, mdict_empty): New functions.
15601 * dictionary.h (mdict_iterator): Define.
15603 2019-01-10 Pedro Alves <palves@redhat.com>
15605 * breakpoint.c (read_uploaded_action)
15606 (create_tracepoint_from_upload): Adjust to use
15607 gdb::unique_xmalloc_ptr.
15608 * ctf.c (ctf_write_uploaded_tp):
15609 (SET_ARRAY_FIELD): Use emplace_back.
15610 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15611 * tracefile-tfile.c (tfile_write_uploaded_tp):
15612 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15613 gdb::unique_xmalloc_ptr.
15614 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15615 at_string, cond_string, cmd_strings>: Replace char pointers
15616 with gdb::unique_xmalloc_ptr.
15618 2019-01-10 Pedro Alves <palves@redhat.com>
15620 * solib-target.c (library_list_start_library): Don't xstrdup name.
15622 2019-01-10 Pedro Alves <palves@redhat.com>
15624 * mdebugread.c (parse_partial_symbols): Use
15625 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15627 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15629 * linux-fork.c (scoped_switch_fork_info)
15630 <~scoped_switch_fork_info>: Fix incorrect variable name.
15632 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15634 * linux-fork.c (scoped_switch_fork_info)
15635 <scoped_switch_fork_info>: Make explicit.
15636 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15638 2019-01-10 Tom Tromey <tom@tromey.com>
15640 * objfiles.h (objfile::reset_psymtabs): Update.
15641 * objfiles.c (objfile::objfile): Update.
15642 * psymtab.h (psymtab_storage::obstack): Update.
15643 (psymtab_storage::m_obstack): Use gdb::optional.
15644 (class psymtab_storage): Update comment. Remove objfile
15646 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15648 2019-01-10 Tom Tromey <tom@tromey.com>
15650 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15651 <free_psymtabs>: Now private.
15652 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15653 (allocate_psymtab): Use new method.
15655 2019-01-10 Tom Tromey <tom@tromey.com>
15657 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15658 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15659 * mdebugread.c (parse_partial_symbols): Use
15660 allocate_dependencies.
15661 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15662 allocate_dependencies.
15663 (process_psymtab_comp_unit_reader)
15664 (build_type_psymtab_dependencies): Likewise.
15665 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15667 2019-01-10 Tom Tromey <tom@tromey.com>
15669 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15670 PSYMBOL_SET_LANGUAGE.
15671 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15673 2019-01-10 Tom Tromey <tom@tromey.com>
15675 * psymtab.h (psymtab_storage::obstack): New method.
15676 <m_obstack>: Rename from obstack; now private.
15677 * psymtab.c (psymtab_storage): Update.
15678 * dwarf2read.c (create_addrmap_from_index)
15679 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15682 2019-01-10 Tom Tromey <tom@tromey.com>
15684 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15685 * objfiles.h (objfile::reset_psymtabs): New method.
15687 2019-01-10 Tom Tromey <tom@tromey.com>
15689 * symmisc.c (print_symbol_bcache_statistics): Update.
15690 (print_objfile_statistics): Update.
15691 * symfile.c (reread_symbols): Update.
15692 * psymtab.h (class psymtab_storage): New.
15693 * psymtab.c (psymtab_storage): New constructor.
15694 (~psymtab_storage): New destructor.
15695 (require_partial_symbols): Update.
15696 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15697 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15698 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15699 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15700 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15701 (start_psymtab_common, end_psymtab_common)
15702 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15703 (allocate_psymtab): Update.
15704 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15706 (dump_psymtab_addrmap, maintenance_print_psymbols)
15707 (maintenance_check_psymtabs): Update.
15708 (class objfile_psymtabs): Move to objfiles.h.
15709 * psympriv.h (discard_psymtab): Now inline.
15710 (psymtab_discarder::psymtab_discarder): Update.
15711 (psymtab_discarder::~psymtab_discarder): Update.
15712 (ALL_OBJFILE_PSYMTABS): Rewrite.
15713 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15714 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15716 <partial_symtabs>: New field.
15717 (class objfile_psymtabs): Move from psymtab.h. Update.
15718 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15720 (objfile::~objfile): Don't destroy psymbol_cache.
15721 * mdebugread.c (parse_partial_symbols): Update.
15722 * dwarf2read.c (create_addrmap_from_index)
15723 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15724 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15725 (add_partial_subprogram, dwarf2_ranges_read): Update.
15726 * dwarf-index-write.c (write_address_map)
15727 (write_one_signatured_type, recursively_write_psymbols)
15728 (class debug_names, class debug_names, write_psymtabs_to_index):
15731 2019-01-10 Tom Tromey <tom@tromey.com>
15733 * symtab.h (SYMBOL_SET_NAMES): Update.
15734 (symbol_set_names): Update.
15735 (MSYMBOL_SET_NAMES): Update.
15736 * symtab.c (symbol_set_names): Change argument to be an
15737 objfile_per_bfd_storage.
15738 * psymtab.c (add_psymbol_to_bcache): Update.
15739 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15741 2019-01-10 Tom Tromey <tom@tromey.com>
15743 * symtab.c (create_demangled_names_hash): Change argument to be an
15744 objfile_per_bfd_storage.
15745 (symbol_set_names): Update.
15747 2019-01-10 Tom Tromey <tom@tromey.com>
15749 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15751 * psymtab.c (init_psymbol_list): Do nothing if already called.
15752 * psympriv.h (init_psymbol_list): Add comment.
15753 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15755 * dbxread.c (dbx_symfile_read): Unconditionally call
15758 2019-01-10 Tom Tromey <tom@tromey.com>
15760 * xcoffread.c (scan_xcoff_symtab): Update.
15761 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15763 * mdebugread.c (parse_partial_symbols)
15764 (handle_psymbol_enumerators): Update.
15765 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15766 * dbxread.c (read_dbx_symtab): Update.
15767 * psympriv.h (psymbol_placement): New enum.
15768 (add_psymbol_to_list): Update.
15770 2019-01-10 Tom Tromey <tom@tromey.com>
15772 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15773 static_psymbols parameters.
15774 (scan_xcoff_symtab): Update.
15775 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15776 static_psymbols parameters.
15777 * psympriv.h (start_psymtab_common): Update.
15778 * mdebugread.c (parse_partial_symbols): Update.
15779 * dwarf2read.c (create_partial_symtab): Update.
15780 * dbxread.c (read_dbx_symtab): Update.
15781 (start_psymtab): Remove global_psymbols and static_psymbols
15784 2019-01-10 Tom Tromey <tom@tromey.com>
15786 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15787 * psymtab.c (allocate_psymtab): Add comment.
15788 * psympriv.h (allocate_psymtab): Add comment.
15789 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15791 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15793 2019-01-10 Tom Tromey <tom@tromey.com>
15795 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15797 * mipsread.c: Include mdebugread.h.
15798 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15800 * elfread.c: Include mdebugread.h.
15802 2019-01-09 Tom Tromey <tom@tromey.com>
15804 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15805 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15806 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15807 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15808 (psym_lookup_symbol, psym_find_last_source_symtab)
15809 (psym_forget_cached_source_info, psym_print_stats)
15810 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15811 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15812 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15813 (psym_find_compunit_symtab_by_address)
15814 (maintenance_print_psymbols, maintenance_info_psymtabs)
15815 (maintenance_check_psymtabs): Use ranged for.
15816 * psymtab.h (class objfile_psymtabs): New.
15817 (require_partial_symbols): Return objfile_psymtabs.
15818 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15820 2019-01-09 Tom Tromey <tom@tromey.com>
15822 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15823 (find_pc_mapped_section, list_overlays_command)
15824 (map_overlay_command, unmap_overlay_command)
15825 (simple_overlay_update): Use all_objfiles.
15826 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15827 * printcmd.c (info_symbol_command): Use all_objfiles.
15828 * objfiles.h (ALL_OBJSECTIONS): Remove.
15829 * maint.c (maintenance_translate_address): Use all_objfiles.
15830 * gcore.c (gcore_create_callback): Use all_objfiles.
15831 (objfile_find_memory_regions): Likewise.
15833 2019-01-09 Tom Tromey <tom@tromey.com>
15835 * symtab.c (find_line_symtab, info_sources_command)
15836 (make_source_files_completion_list): Use objfile_compunits.
15837 * source.c (select_source_symtab): Use objfile_compunits.
15838 * objfiles.h (struct objfile): Update comment.
15839 (ALL_OBJFILES): Remove.
15840 (ALL_FILETABS): Remove.
15841 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15844 2019-01-09 Tom Tromey <tom@tromey.com>
15846 * symmisc.c (print_objfile_statistics, dump_objfile)
15847 (maintenance_print_symbols): Use compunit_filetabs.
15848 * source.c (forget_cached_source_info_for_objfile): Use
15850 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15851 (ALL_FILETABS): Use compunit_filetabs.
15852 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15853 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15855 2019-01-09 Tom Tromey <tom@tromey.com>
15857 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15858 (compunit_filetabs): New.
15859 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15861 (info_sources_command, make_source_files_completion_list): Remove
15863 * symmisc.c (print_objfile_statistics, dump_objfile)
15864 (maintenance_print_symbols): Remove declaration.
15865 (maintenance_info_symtabs): Use compunit_filetabs.
15866 (maintenance_info_line_tables): Likewise.
15867 * source.c (select_source_symtab): Change local variable name.
15868 (forget_cached_source_info_for_objfile): Remove declaration.
15869 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15870 * objfiles.c (objfile_relocate1): Remove declaration.
15871 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15873 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15874 * coffread.c (coff_symtab_read): Remove declaration.
15875 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15878 2019-01-09 Tom Tromey <tom@tromey.com>
15880 * symtab.c (lookup_objfile_from_block)
15881 (find_pc_sect_compunit_symtab, search_symbols)
15882 (default_collect_symbol_completion_matches_break_on): Use
15884 * objfiles.h (ALL_COMPUNITS): Remove.
15885 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15886 * cp-support.c (add_symbol_overload_list_qualified): Use
15888 * ada-lang.c (ada_collect_symbol_completion_matches)
15889 (ada_add_global_exceptions): Use objfile_compunits.
15891 2019-01-09 Tom Tromey <tom@tromey.com>
15893 * source.c (select_source_symtab)
15894 (forget_cached_source_info_for_objfile): Remove declaration.
15895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15897 * maint.c (count_symtabs_and_blocks): Remove declaration.
15898 * cp-support.c (add_symbol_overload_list_qualified): Remove
15900 * coffread.c (coff_symtab_read): Remove declaration.
15901 * symtab.c (lookup_symbol_in_objfile_symtabs)
15902 (basic_lookup_transparent_type_1): Use objfile_compunits.
15903 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15904 (info_sources_command, search_symbols)
15905 (default_collect_symbol_completion_matches_break_on)
15906 (make_source_files_completion_list): Remove declaration.
15907 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15908 (ada_collect_symbol_completion_matches)
15909 (ada_add_global_exceptions): Remove declaration.
15910 * linespec.c (iterate_over_all_matching_symtabs): Use
15912 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15913 (class objfile_compunits): New.
15914 (ALL_COMPUNITS): Use objfile_compunits.
15915 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15916 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15918 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15920 2019-01-09 Tom Tromey <tom@tromey.com>
15922 * symtab.c (search_symbols)
15923 (default_collect_symbol_completion_matches_break_on): Use
15925 * ada-lang.c (ada_lookup_simple_minsym)
15926 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15927 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15928 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15930 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15931 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15932 * objc-lang.c (find_methods): Use objfile_msymbols.
15933 (info_selectors_command, info_classes_command): Likewise.
15934 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15935 * objfiles.h (class objfile_msymbols): New.
15936 (ALL_OBJFILE_MSYMBOLS): Remove.
15937 (ALL_MSYMBOLS): Remove.
15939 2019-01-09 Tom Tromey <tom@tromey.com>
15941 * common/next-iterator.h (next_adapter): Add Iterator template
15943 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15944 (class all_objfiles_safe): New.
15945 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15946 * objfiles.c (put_objfile_before): Update comment.
15947 (add_separate_debug_objfile): Likewise.
15948 (free_all_objfiles): Use all_objfiles_safe.
15949 (objfile_purge_solibs): Likewise.
15951 2019-01-09 Tom Tromey <tom@tromey.com>
15953 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15954 (expand_symtab_containing_pc, lookup_static_symbol)
15955 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15956 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15958 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15959 * breakpoint.c (create_overlay_event_breakpoint)
15960 (create_longjmp_master_breakpoint)
15961 (create_std_terminate_master_breakpoint)
15962 (create_exception_master_breakpoint): Use all_objfiles.
15963 * linux-thread-db.c (try_thread_db_load_from_pdir)
15964 (has_libpthread): Use all_objfiles.
15965 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15966 * linespec.c (iterate_over_all_matching_symtabs)
15967 (search_minsyms_for_name): Use all_objfiles.
15968 * maint.c (maintenance_info_sections): Use all_objfiles.
15969 * main.c (captured_main_1): Use all_objfiles.
15970 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15971 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15972 * guile/scm-pretty-print.c
15973 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15974 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15975 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15976 (maintenance_print_msymbols): Use all_objfiles.
15977 * source.c (select_source_symtab): Use all_objfiles.
15978 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15979 * symfile.c (remove_symbol_file_command)
15980 (expand_symtabs_matching, map_symbol_filenames): Use
15982 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15984 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15985 * objc-lang.c (find_methods): Use all_objfiles.
15986 * objfiles.c (have_partial_symbols, have_full_symbols)
15987 (have_minimal_symbols, qsort_cmp)
15988 (default_iterate_over_objfiles_in_search_order): Use
15990 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15991 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15992 (maintenance_check_psymtabs): Use all_objfiles.
15993 (ALL_PSYMTABS): Remove.
15994 * compile/compile-object-run.c (do_module_cleanup): Use
15996 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15997 * cp-support.c (add_symbol_overload_list_qualified): Use
15999 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16001 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16002 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16004 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16005 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16006 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16008 * solib.c (solib_read_symbols): Use all_objfiles
16010 2019-01-09 Tom Tromey <tom@tromey.com>
16012 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16013 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16015 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16016 * symmisc.c (print_symbol_bcache_statistics)
16017 (print_objfile_statistics, maintenance_print_objfiles)
16018 (maintenance_info_symtabs, maintenance_check_symtabs)
16019 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16021 * source.c (forget_cached_source_info): Use all_objfiles.
16022 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16023 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16024 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16025 * objfiles.c (update_section_map): Use all_objfiles.
16026 (shared_objfile_contains_address_p): Likewise.
16027 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16028 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16030 2019-01-09 Tom Tromey <tom@tromey.com>
16032 * common/next-iterator.h: New file.
16033 * objfiles.h (class all_objfiles): New.
16034 (struct objfile_iterator): New.
16036 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16038 * NEWS: Move the description of the changed "frame", "select-frame",
16039 and "info frame" commands to the Changed commands section.
16041 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16043 * gdbtypes.c (check_stub_method_group): Remove handling of old
16045 * linespec.c (find_methods): Likewise.
16046 * stabsread.c (read_member_functions): Likewise.
16047 * valops.c (search_struct_method): Likewise.
16048 (value_struct_elt_for_reference): Likewise.
16049 * NEWS: Mention this change.
16051 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16053 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16054 print_source_lines.
16055 * source.c (print_source_lines_base): Update line number check.
16056 (print_source_lines): New function.
16057 (source_lines_range::source_lines_range): New function.
16058 * source.h (class source_lines_range): New class.
16059 (print_source_lines): New declaration.
16061 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16063 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16065 2019-01-08 Tom Tromey <tom@tromey.com>
16066 Simon Marchi <simon.marchi@ericsson.com>
16069 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16070 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16071 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16072 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16073 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16074 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16076 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16078 * source.c (select_source_symtab): Move header comment to
16079 declaration in source.h.
16080 (forget_cached_source_info_for_objfile): Likewise.
16081 (forget_cached_source_info): Likewise.
16082 (identify_source_line): Likewise.
16083 * source.h (identify_source_line): Move declaration from symtab.h
16084 and add comment from source.c
16085 (print_source_lines): Likewise.
16086 (forget_cached_source_info_for_objfile): Likewise.
16087 (forget_cached_source_info): Likewise.
16088 (select_source_symtab): Likewise.
16089 (enum print_source_lines_flag): Move definition from symtab.h.
16090 * symtab.h (identify_source_line): Move declaration to source.h.
16091 (print_source_lines): Likewise.
16092 (forget_cached_source_info_for_objfile): Likewise.
16093 (forget_cached_source_info): Likewise.
16094 (select_source_symtab): Likewise.
16095 (enum print_source_lines_flag): Move definition to source.h.
16096 * tui/tui-hooks.c: Add 'source.h' include.
16098 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16100 * source.c (print_source_lines_base): Handle requests to print
16101 reverse line number sequences, and guard against empty lines
16104 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16106 * source.c (print_source_lines_base): Fix skip of '\r' if next
16109 2019-01-06 Tom Tromey <tom@tromey.com>
16111 * c-exp.y (struct c_parse_state) <macro_original_text,
16112 expansion_obstack>: New member.
16113 (macro_original_text, expansion_obstack): Remove globals.
16114 (scan_macro_expansion, scanning_macro_expansion)
16115 (finished_macro_expansion): Update.
16116 (scan_macro_cleanup): Remove.
16117 (yylex, c_parse): Update.
16119 2019-01-06 Tom Tromey <tom@tromey.com>
16121 * c-exp.y (struct c_parse_state) <strings>: New member.
16122 (operator_stoken): Update.
16124 2019-01-06 Tom Tromey <tom@tromey.com>
16126 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16127 (union type_stack_elt) <typelist_val>: Now a pointer to
16129 (type_stack_cleanup): Don't declare.
16130 (push_typelist): Update.
16131 * parse.c (pop_typelist): Return a std::vector.
16132 (push_typelist): Take a std::vector.
16133 (follow_types): Update. Do not free args.
16134 (type_stack_cleanup): Remove.
16135 * c-exp.y (struct c_parse_state): New.
16136 (cpstate): New global.
16137 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16138 (nonempty_typelist): Update.
16139 (func_mod): Create a new vector.
16140 (c_parse): Create a c_parse_state.
16141 (check_parameter_typelist): Do not delete params.
16142 (function_method): Update. Do not delete type_list.
16144 2019-01-06 Tom Tromey <tom@tromey.com>
16147 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16149 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16150 (print_return_value): Likewise.
16152 2019-01-05 Tom Tromey <tom@tromey.com>
16154 * contrib/cleanup_check.py: Remove.
16155 * contrib/gcc-with-excheck: Remove.
16156 * contrib/exsummary.py: Remove.
16157 * contrib/excheck.py: Remove.
16159 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16161 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16162 NULL. Initialize tpprev to NULL instead of assigning it
16163 to NULL on the next statement.
16164 * windows-nat.c (windows_delete_thread): Remove check for
16165 main_thread_id before printing thread exit notifications.
16166 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16167 Remove thread ID check against main_thread_id.
16168 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16169 windows_delete_thread.
16170 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16172 2019-01-04 Tom Tromey <tom@tromey.com>
16174 * compile/compile.c (_initialize_compile): Use upper case for
16175 metasyntactic variables.
16176 * symmisc.c (_initialize_symmisc): Use upper case for
16177 metasyntactic variables.
16178 * psymtab.c (_initialize_psymtab): Use upper case for
16179 metasyntactic variables.
16180 * demangle.c (demangle_command): Use upper case for metasyntactic
16182 (_initialize_demangler): Likewise.
16183 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16186 2019-01-03 Tom Tromey <tom@tromey.com>
16188 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16190 2019-01-03 Tom Tromey <tom@tromey.com>
16192 * python/py-symtab.c (salpy_str): Update.
16193 (struct salpy_sal_object) <symtab>: Now a PyObject.
16194 (salpy_dealloc): Update.
16195 (del_objfile_sal): Use gdbpy_ref.
16197 2019-01-03 Tom Tromey <tom@tromey.com>
16199 * python/py-type.c (convert_field): Use new_reference. Return
16201 (make_fielditem): Return gdbpy_ref.
16202 (typy_fields): Update.
16203 (typy_getitem): Update.
16204 (field_name): Return gdbpy_ref. Use new_reference.
16205 (typy_iterator_iternext): Update.
16207 2019-01-03 Tom Tromey <tom@tromey.com>
16209 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16211 2019-01-03 Tom Tromey <tom@tromey.com>
16213 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16214 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16215 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16216 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16217 (pspy_set_type_printers): Likewise.
16218 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16219 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16220 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16221 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16222 (objfpy_set_type_printers): Likewise.
16224 2019-01-03 Tom Tromey <tom@tromey.com>
16226 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16227 (gdbpy_print_stack): Use gdbpy_err_fetch.
16228 * python/python-internal.h (class gdbpy_err_fetch): New class.
16229 (class gdbpy_enter) <m_error_type, m_error_value,
16230 m_error_traceback>: Remove.
16231 <m_error>: New member.
16232 (gdbpy_exception_to_string): Don't declare.
16233 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16234 * python/py-value.c (convert_value_from_python): Use
16236 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16237 gdbpy_exception_to_string.
16238 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16239 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16242 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16244 * linux-nat.c (delete_lwp_cleanup): Delete.
16245 (struct lwp_deleter): New struct.
16246 (lwp_info_up): New typedef.
16247 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16250 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16252 * linux-fork.c (class scoped_switch_fork_info): New class.
16253 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16255 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16257 * valops.c (find_overload_match): Remove use of null_cleanup, and
16258 calls to do_cleanups.
16260 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16262 * compile/compile-cplus-types.c
16263 (compile_cplus_instance::decl_name): Handle changes to
16265 * cp-support.c (cp_func_name): Update header comment, update
16267 * cp-support.h (cp_func_name): Update return type in declaration.
16268 * valops.c (find_overload_match): Move temp_func local to top
16269 level of function and change its type. Use temp_func to hold and
16270 delete temporary string obtained from cp_func_name.
16272 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16274 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16275 gdb::char_vector, remove cleanup, and update uses of `msg`.
16277 2019-01-03 Jim Wilson <jimw@sifive.com>
16279 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16281 2019-01-02 Tom Tromey <tom@tromey.com>
16283 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16284 (tdesc_parse_xml): Remove cleanups.
16285 * target-descriptions.h (make_cleanup_free_target_description):
16287 (target_desc_deleter): New struct.
16288 (target_desc_up): New typedef.
16289 * target-descriptions.c (target_desc_deleter::operator()): Rename
16290 from free_target_description.
16291 (make_cleanup_free_target_description): Remove.
16293 2019-01-02 Tom Tromey <tom@tromey.com>
16295 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16296 constructor, destructor.
16297 (linespec_parser): Remove typedef.
16298 (~linespec_parser): Rename from linespec_parser_delete.
16299 (linespec_lex_to_end, linespec_complete_label)
16300 (linespec_complete): Update.
16301 (decode_line_full): Remove cleanups.
16302 (decode_line_1): Update.
16304 2019-01-02 Tom Tromey <tom@tromey.com>
16306 * python/python-internal.h (inferior_to_inferior_object): Change
16308 * python/py-exitedevent.c (create_exited_event_object): Update.
16309 * python/py-inferior.c (inferior_to_inferior_object): Return
16311 (python_new_inferior, python_inferior_deleted)
16312 (thread_to_thread_object, delete_thread_object)
16313 (build_inferior_list, gdbpy_selected_inferior): Update.
16314 * python/py-infthread.c (create_thread_object): Update. Also fail
16315 if inferior_to_inferior_object fails.
16317 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16319 * inferior.h (class inferior) <displaced_step_state>: New field.
16320 * infrun.h (struct displaced_step_state): Move here from
16321 infrun.c. Initialize fields, add constructor.
16322 <inf>: Remove field.
16323 <reset>: New method.
16324 * infrun.c (struct displaced_step_inferior_state): Move to
16326 (displaced_step_inferior_states): Remove.
16327 (get_displaced_stepping_state): Adust.
16328 (displaced_step_in_progress_any_inferior): Adjust.
16329 (displaced_step_in_progress_thread): Adjust.
16330 (displaced_step_in_progress): Adjust.
16331 (add_displaced_stepping_state): Remove.
16332 (get_displaced_step_closure_by_addr): Adjust.
16333 (remove_displaced_stepping_state): Remove.
16334 (infrun_inferior_exit): Call displaced_step_state.reset.
16335 (use_displaced_stepping): Don't check for NULL.
16336 (displaced_step_prepare_throw): Call
16337 get_displaced_stepping_state.
16338 (displaced_step_fixup): Don't check for NULL.
16339 (prepare_for_detach): Don't check for NULL.
16341 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16343 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16344 in case of call that did not complete.
16346 2019-01-02 Andrey Utkin <autkin@undo.io>
16348 * symfile.c (find_separate_debug_file): Fix search of debug files for
16351 2019-01-02 Tom Tromey <tom@tromey.com>
16353 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16355 * python/py-frame.c (frapy_older): Remove cast.
16356 (frapy_newer): Likewise.
16357 * python/py-breakpoint.c (local_setattro): Remove cast.
16358 * python/py-arch.c (archpy_name): Remove local variable.
16359 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16361 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16363 * unittests/basic_string_view/element_access/char/empty.cc:
16364 Fix year range in copyright header.
16366 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16368 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16370 <operator==>: Update with for removed field.
16372 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16373 <isa_features>: ...this.
16374 <abi_features>: New field.
16375 (riscv_isa_flen): Update comment.
16376 (riscv_abi_xlen): New declaration.
16377 (riscv_abi_flen): New declaration.
16378 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16380 (riscv_abi_xlen): New function.
16381 (riscv_isa_flen): Update to get answer from isa_features.
16382 (riscv_abi_flen): New function.
16383 (riscv_has_fp_abi): Update to get answer from abi_features.
16384 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16386 (riscv_call_info) <xlen, flen>: Update comment.
16387 (riscv_call_arg_struct): Remove invalid assertions
16388 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16390 (riscv_gdbarch_init): Gather isa features and abi features
16391 separately, ensure both match on the gdbarch when reusing an old
16392 gdbarch. Relax an error check to allow 32-bit abi float to run on
16393 a target with 64-bit float hardware.
16395 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16397 * source.c (search_command_helper): Stop reverse search
16398 when line 1 has been searched.
16400 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16402 * record-full.c (record_full_base_target::close): Rewrite
16403 record_full_core_buf_list free logic.
16405 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16407 * break-catch-syscall.c (print_one_catch_syscall): xfree
16410 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16412 * top.c (print_gdb_version): Update Copyright year in version
16415 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16417 Update copyright year range in all GDB files.
16419 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16421 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16423 For older changes see ChangeLog-2018.
16429 version-control: never