1 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
4 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
5 for ranking see-through reference cases.
7 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8 * stack.c (faas_command): Check a command is provided.
9 * thread.c (taas_command, tfaas_command): Likewise.
11 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12 * inferior.c (prune_inferiors): Only call delete_inferior,
13 Do not modify the inferior list.
15 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
17 * c-exp.y: Update calls to lookup_typename,
18 lookup_signed_typename and lookup_unsigned_typename.
19 * c-lang.c (evaluate_subexp_c): Likewise.
20 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
22 * eval.c (binop_promote): Likewise.
23 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
24 (lookup_unsigned_typename): Likewise.
25 (lookup_signed_typename): Likewise.
26 * gdbtypes.h (lookup_unsigned_typename): Likewise.
27 (lookup_signed_typename): Likewise.
28 (lookup_typename): Likewise.
29 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
30 lookup_typename, lookup_signed_typename,
31 lookup_unsigned_typename.
33 * printcmd.c (printf_wide_c_string): Likewise.
34 (ui_printf): Likewise.
35 * python/py-type.c (typy_lookup_typename): Likewise.
36 * python/py-xmethods.c (python_xmethod_worker::invoke):
38 * rust-exp.y: Likewise.
40 2019-12-04 Christian Biesinger <cbiesinger@google.com>
42 * configure.nat (obsd64): Add missing files x86-nat.o and
45 2019-12-04 Tom Tromey <tom@tromey.com>
47 * valprint.c (val_print_string): Use metadata_style.
48 * go-valprint.c (print_go_string): Use metadata style.
49 * p-valprint.c (pascal_object_print_static_field): Use metadata
51 * cp-valprint.c (cp_print_static_field): Use metadata style.
53 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
54 Chris January <chris.january@arm.com>
56 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
58 (typebase): New patterns for complex, single/double precision, and
59 single/double complex.
60 (f77_keywords): Change token for complex keyword, and add single,
61 double, and precision keywords.
63 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
65 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
68 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
70 * regcache.c (cooked_read_test): Initialize thread list of
73 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
75 * aarch64-linux-tdep.c: Remove includes.
77 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
79 * aarch64-tdep.c: Remove includes.
81 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
83 * filtered-iterator.h (filtered_iterator) <operator==,
84 operator!=>: Compare wrapped iterators, not wrapped pointers.
85 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
86 unittests/filtered_iterator-selftests.c.
87 * unittests/filtered_iterator-selftests.c: New file.
89 2019-12-04 Tom Tromey <tromey@adacore.com>
91 * gdbtypes.c (create_range_type): Inherit endianity
94 2019-12-04 Tom Tromey <tromey@adacore.com>
96 * ada-lang.c (decode_constrained_packed_array)
97 (ada_value_assign, value_assign_to_component): Update.
98 * dwarf2loc.c (rw_pieced_value, access_memory)
99 (dwarf2_compile_expr_to_ax): Update.
100 * dwarf2read.c (dwarf2_add_field): Update.
101 * eval.c (evaluate_subexp_standard): Update.
102 * gdbarch.c, gdbarch.h: Rebuild.
103 * gdbarch.sh (bits_big_endian): Remove.
104 * gdbtypes.h (union field_location): Update comment.
105 * target-descriptions.c (make_gdb_type): Update.
106 * valarith.c (value_bit_index): Update.
107 * value.c (struct value) <bitpos>: Update comment.
108 (unpack_bits_as_long, modify_field): Update.
109 * value.h (value_bitpos): Update comment.
111 2019-12-04 Tom Tromey <tromey@adacore.com>
113 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
116 2019-12-04 Tom Tromey <tromey@adacore.com>
118 * dwarf2read.c (dwarf2_init_float_type)
119 (dwarf2_init_complex_target_type): Add byte_order parameter.
120 (read_base_type): Compute byte order earlier.
121 * gdbtypes.c (init_float_type): Add byte_order parameter.
122 * gdbtypes.h (init_float_type): Add byte_order parameter.
124 2019-12-04 Tom Tromey <tromey@adacore.com>
126 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
128 2019-12-04 Tom Tromey <tromey@adacore.com>
130 * dwarf2read.c (process_structure_scope): Initialize
133 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
135 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
136 add it into the search spec.
137 (parse_max_results_option): New function.
138 (mi_info_functions_or_variables): Parse -max-results flag and pass
139 it to mi_symbol_info.
140 (mi_cmd_symbol_info_modules): Likewise.
141 (mi_cmd_symbol_info_types): Likewise.
142 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
143 return type to bool, change result container into a set, and don't
144 add new results if we have enough already.
145 (global_symbol_searcher::add_matching_msymbols): Change return
146 type to bool, and don't add new results if we have enough already.
147 (sort_search_symbols_remove_dups): Delete.
148 (global_symbol_searcher::search): Early exit from search loop when
149 we have enough results. Use a std::set to collect the results
150 from calling add_matching_symbols.
151 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
153 (global_symbol_searcher) <m_max_search_results>: New member
155 (global_symbol_searcher) <add_matching_symbols>: Update header
156 comment and change return type to bool.
157 (global_symbol_searcher) <add_matching_msymbols>: Update header
158 comment and change return type to bool.
160 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
162 * symtab.c (symbol_search::compare_search_syms): Update header
164 (global_symbol_searcher::is_suitable_msymbol): New function.
165 (global_symbol_searcher::expand_symtabs): New function.
166 (global_symbol_searcher::add_matching_symbols): New function.
167 (global_symbol_searcher::add_matching_msymbols): New function.
168 (global_symbol_searcher::search): Move most of the content
169 into the new functions above, and call them as needed.
170 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
172 (global_symbol_searcher) <add_matching_symbols>: New member
174 (global_symbol_searcher) <add_matching_msymbols>: New member
176 (global_symbol_searcher) <is_suitable_msymbol>: New member
179 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
181 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
182 -symbol-info-module-variables entries.
183 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
184 (mi_cmd_symbol_info_module_variables): Declare.
185 * mi/mi-symbol-cmds.c
186 (module_symbol_search_iterator): New typedef.
187 (output_module_symbols_in_single_module_and_file): New function.
188 (output_module_symbols_in_single_module): New function.
189 (mi_info_module_functions_or_variables): New function.
190 (mi_cmd_symbol_info_module_functions): New function.
191 (mi_cmd_symbol_info_module_variables): New function.
192 * NEWS: Mention new MI command.
194 2019-12-03 Christian Biesinger <cbiesinger@google.com>
196 * bcache.c (hash): Remove.
197 (hash_continue): Remove.
198 * bcache.h (hash): Remove.
199 (hash_continue): Remove.
200 (struct bcache) <ctor>: Update.
201 * psymtab.c (psymbol_hash): Update.
202 * stabsread.c (hashname): Update.
203 * utils.h (fast_hash): Add an argument for a start value,
206 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
207 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
208 (destroy_block_symbol_cache): New function.
209 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
210 (resize_symbol_cache): Likewise.
212 2019-12-02 Tom Tromey <tom@tromey.com>
214 * unittests/tui-selftests.c (run_tests): Make conditional.
215 (_initialize_tui_selftest): Make conditional.
217 2019-12-02 Christian Biesinger <cbiesinger@google.com>
219 * aix-thread.c (debug_aix_thread): Change type to bool.
221 2019-12-02 Luis Machado <luis.machado@linaro.org>
223 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
225 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
227 * dwarf2read.c (read_tag_string_type): Read the fields required to
228 make a dynamic string, and possibly create a dynamic range for the
230 (attr_to_dynamic_prop): Setup is_reference based on the type of
231 attribute being processed.
232 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
233 (resolve_dynamic_array): Rename to...
234 (resolve_dynamic_array_or_string): ...this, update header comment,
235 and accept TYPE_CODE_STRING.
236 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
238 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
240 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
241 of its implementation from...
242 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
245 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
247 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
248 create a range with stride where appropriate.
249 * f-valprint.c: Include 'gdbarch.h'.
250 (f77_print_array_1): Take the stride into account when walking the
251 array. Also convert the stride into addressable units.
252 * gdbtypes.c (create_range_type): Initialise the stride to
254 (create_range_type_with_stride): New function, initialise the
255 range as normal, and then setup the stride.
256 (has_static_range): Include the stride here. Also change the
258 (create_array_type_with_stride): Consider the range stride if the
259 array isn't given its own stride.
260 (resolve_dynamic_range): Resolve the stride if needed.
261 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
262 (struct range_bounds) <flag_is_byte_stride>: New member variable.
263 (TYPE_BIT_STRIDE): Define.
264 (TYPE_ARRAY_BIT_STRIDE): Define.
265 (create_range_type_with_stride): Declare.
266 * valarith.c (value_subscripted_rvalue): Take range stride into
267 account when walking the array.
269 2019-12-01 Tom Tromey <tom@tromey.com>
271 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
274 2019-12-01 Tom Tromey <tom@tromey.com>
276 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
278 * unittests/tui-selftests.c: New file.
279 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
281 2019-12-01 Tom Tromey <tom@tromey.com>
283 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
285 2019-12-01 Tom Tromey <tom@tromey.com>
287 * NEWS: Document new settings.
288 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
289 * tui/tui-win.c (_initialize_tui_win): Add border style
291 * tui/tui-io.h (tui_apply_style): Declare.
292 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
294 (apply_ansi_escape, tui_set_reverse_mode): Update.
295 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
296 Add "skip_intensity" parameter.
297 <changed>: New member.
298 <do_set_value>: Declare.
299 (tui_border_style, tui_active_border_style): Declare.
300 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
302 (cli_style_option): Initialize "changed".
303 (cli_style_option::do_set_value): New function.
304 (cli_style_option::add_setshow_commands): Add "skip_intensity"
306 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
307 (_initialize_cli_style): Update. Create TUI border style
310 2019-12-01 Tom Tromey <tom@tromey.com>
312 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
314 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
316 * tui/tui-win.h (compact_source): Declare.
317 * tui/tui-win.c (compact_source): New global.
318 (tui_set_compact_source, tui_show_compact_source): New functions.
319 (_initialize_tui_win): Add "compact-source" setting.
320 * tui/tui-source.c (tui_source_window::set_contents): Handle
321 compact_source setting.
322 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
323 * NEWS: Document new setting.
325 2019-11-30 Tom Tromey <tom@tromey.com>
327 * dwarf2read.c (dwarf2_add_field): Include field offset when
328 computing variant part length.
330 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
331 * NEWS: Mention define-prefix. Tell that command names can now
332 contain a . character.
334 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
336 * command.h (valid_cmd_char_p): Declare.
337 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
338 the check of valid command char.
339 (find_command_name_length, valid_user_defined_cmd_name_p): Use
341 * cli/cli-script.c (validate_comname): Likewise.
342 * completer.c (gdb_completer_command_word_break_characters):
343 Do not remove . from the word break char, update comments.
344 (complete_line_internal_1): Use valid_cmd_char_p.
345 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
346 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
348 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
350 * cli/cli-script.c (do_define_command): Ensure a redefined
351 prefix command is kept as a prefix command.
352 (define_prefix_command): New function.
353 (show_user_1): Report user defined prefixes.
354 (_initialize_cli_script): Create the new 'define-prefix' command.
355 Add completers for 'define' and 'document'.
356 * top.c (execute_command): If command is a user-defined prefix only
357 command, report the list of commands for this prefix command.
359 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361 * valops.c (find_oload_champ): Improve debug output.
363 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 * valops.c (find_oload_champ): Print part of debug messages
366 before the badness vector is std::move'd.
368 2019-11-28 Tom Tromey <tom@tromey.com>
370 * value.c (creal_internal_fn): Fix comment.
372 2019-11-28 Tom Tromey <tom@tromey.com>
374 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
375 flag_bound_evaluated>: Now unsigned.
377 2019-11-28 Tom Tromey <tom@tromey.com>
379 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
382 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
384 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
386 * jit.c (jit_unregister_code): Add debug print to match
389 2019-11-27 Christian Biesinger <cbiesinger@google.com>
391 * NEWS: Mention the new multithreaded symbol loading.
393 2019-11-27 Christian Biesinger <cbiesinger@google.com>
395 * maint.c (n_worker_threads): Default to 0.
396 (worker_threads_disabled): New function.
397 * maint.h (worker_threads_disabled): New function.
398 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
399 here if worker_threads_disabled () is true.
400 (minimal_symbol_reader::install): Skip all threading if
401 worker_threads_disabled () is true.
403 2019-11-27 Christian Biesinger <cbiesinger@google.com>
405 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
406 hash code if possible.
407 (add_minsym_to_demangled_hash_table): Likewise.
408 (minimal_symbol_reader::install): Compute the hash codes for msymbol
409 on the background thread.
410 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
413 2019-11-27 Christian Biesinger <cbiesinger@google.com>
415 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
416 of the mangled name on the background thread.
417 * symtab.c (symbol_set_names): Allow passing in the hash of the
419 * symtab.h (symbol_set_names): Likewise.
421 2019-11-27 Kevin Buettner <kevinb@redhat.com>
423 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
424 physnames are computed for inherited DIEs.
426 2019-11-27 Tom Tromey <tromey@adacore.com>
428 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
430 * cp-support.c: Remove unnecessary backslashes.
432 2019-11-27 Christian Biesinger <cbiesinger@google.com>
434 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
435 with sym->set_linkage_name.
436 * coffread.c (coff_read_enum_type): Likewise.
437 * mdebugread.c (parse_symbol): Likewise.
438 * stabsread.c (patch_block_stabs): Likewise.
439 (define_symbol): Likewise.
440 (read_enum_type): Likewise.
441 (common_block_end): Likewise.
442 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
444 (SYMBOL_SET_LINKAGE_NAME): Remove.
445 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
446 with sym->set_linkage_name.
448 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
450 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
451 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
452 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
453 * NEWS: Mention new MI command.
455 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
457 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
458 '-symbol-info-types', and '-symbol-info-variables'.
459 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
460 (mi_cmd_symbol_info_types): Declare.
461 (mi_cmd_symbol_info_variables): Declare.
462 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
463 (output_debug_symbol): New function.
464 (output_nondebug_symbol): New function.
465 (mi_symbol_info): New function.
466 (mi_info_functions_or_variables): New function.
467 (mi_cmd_symbol_info_functions): New function.
468 (mi_cmd_symbol_info_types): New function.
469 (mi_cmd_symbol_info_variables): New function.
470 * NEWS: Mention new commands.
472 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
474 * symtab.c (symbol_to_info_string): New function, most content
475 moved from print_symbol_info, but updated to return a std::string.
476 (print_symbol_info): Update to use symbol_to_info_string and print
478 * symtab.h (symbol_to_info_string): Declare new function.
480 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
482 * python/python.c (gdbpy_rbreak): Convert to using
483 global_symbol_searcher.
484 * symtab.c (file_matches): Convert return type to bool, change
485 file list to std::vector, update header comment.
486 (search_symbols): Rename to...
487 (global_symbol_searcher::search): ...this and update now its
488 a member function of global_symbol_searcher. Take account of the
489 changes to file_matches.
490 (symtab_symbol_info): Convert to using global_symbol_searcher.
491 (rbreak_command): Likewise.
492 (search_module_symbols): Likewise.
493 * symtab.h (enum symbol_search): Update comment.
494 (search_symbols): Remove declaration.
495 (class global_symbol_searcher): New class.
497 2019-11-26 Tom Tromey <tromey@adacore.com>
499 * cp-support.c (_initialize_cp_support): Conditionally initialize
500 gdb_demangle_attempt_core_dump.
502 2019-11-26 Tom Tromey <tom@tromey.com>
504 * python/py-function.c (fnpy_init): Update.
505 * value.h (add_internal_function): Adjust declaration.
506 * value.c (function_destroyer): Remove.
507 (do_add_internal_function): Don't set destroyer or copy name.
508 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
510 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
511 (cmdpy_init): Set name_allocated.
512 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
514 (~cmd_list_element): Free "name" if needed.
516 2019-11-26 Tom Tromey <tom@tromey.com>
518 * value.h (add_internal_function): Add new overload. Move
519 documentation from value.h.
520 * value.c (do_add_internal_function): New function.
521 (add_internal_function): Use it. Add new overload.
522 (function_destroyer): Don't free doc.
523 * python/py-function.c (fnpy_init): Update.
525 2019-11-26 Tom Tromey <tom@tromey.com>
527 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
528 (cmdpy_init): Set "doc_allocated".
530 2019-11-26 Tom Tromey <tom@tromey.com>
532 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
533 name of worker thread.
534 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
536 * configure, config.in: Rebuild.
538 2019-11-26 Tom Tromey <tom@tromey.com>
540 * python/python.c (class gdbpy_gil): New.
541 (struct gdbpy_event): Add constructor, destructor, operator().
542 (gdbpy_post_event): Use run_on_main_thread.
543 (gdbpy_initialize_events): Remove.
544 (do_start_initialization): Update.
546 2019-11-26 Tom Tromey <tom@tromey.com>
549 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
550 commands. Call update_thread_pool_size.
551 (update_thread_pool_size, maintenance_set_worker_threads): New
553 (n_worker_threads): New global.
555 2019-11-26 Christian Biesinger <cbiesinger@google.com>
556 Tom Tromey <tom@tromey.com>
558 * minsyms.c (minimal_symbol_reader::install): Use
560 * gdbsupport/parallel-for.h: New file.
561 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
563 2019-11-26 Christian Biesinger <cbiesinger@google.com>
564 Tom Tromey <tom@tromey.com>
566 * gdbsupport/thread-pool.h: New file.
567 * gdbsupport/thread-pool.c: New file.
568 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
569 (HFILES_NO_SRCDIR): Add thread-pool.h.
571 2019-11-26 Tom Tromey <tom@tromey.com>
573 * event-top.h (thread_local_segv_handler): Declare.
574 * event-top.c (thread_local_segv_handler): New global.
575 (install_handle_sigsegv, handle_sigsegv): New functions.
576 (async_init_signals): Install SIGSEGV handler.
577 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
579 (report_failed_demangle): New function.
580 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
581 handler-setting code, instead use segv_handler. Run warning code
584 2019-11-26 Tom Tromey <tom@tromey.com>
586 * run-on-main-thread.c: New file.
587 * run-on-main-thread.h: New file.
588 * unittests/main-thread-selftests.c: New file.
589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
590 main-thread-selftests.c.
591 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
592 (COMMON_SFILES): Add run-on-main-thread.c.
594 2019-11-26 Tom Tromey <tom@tromey.com>
596 * main.c (setup_alternate_signal_stack): Remove.
597 (captured_main_1): Use gdb::alternate_signal_stack.
598 * gdbsupport/alt-stack.h: New file.
600 2019-11-26 Tom Tromey <tom@tromey.com>
602 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
604 (save_original_signals_state, restore_original_signals_state): Use
606 * linux-nat.c (block_child_signals, restore_child_signals_mask)
607 (_initialize_linux_nat): Use gdb_sigmask.
608 * guile/guile.c (_initialize_guile): Use block_signals.
609 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
610 * gdbsupport/gdb-sigmask.h: New file.
611 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
612 * cp-support.c (gdb_demangle): Use gdb_sigmask.
613 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
615 * configure, config.in: Rebuild.
616 * gdbsupport/block-signals.h: New file.
618 2019-11-26 Tom Tromey <tom@tromey.com>
620 * acinclude.m4: Include ax_pthread.m4.
621 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
622 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
623 (CLIBS): Use PTHREAD_LIBS.
624 (aclocal_m4_deps): Add ax_pthread.m4.
625 * config.in, configure: Rebuild.
626 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
628 2019-11-26 Tom Tromey <tom@tromey.com>
630 * symtab.h (struct minimal_symbol) <name_set>: New member.
631 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
632 Don't call symbol_set_names.
633 (minimal_symbol_reader::install): Call symbol_set_names.
635 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
637 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
638 restore_active_ext_lang, as GIL is needed for (indirectly)
639 called PyOS_InterruptOccurred.
641 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
643 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
646 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
648 * remote-sim.c (simulator_command): Make static, remove
651 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
653 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
655 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
656 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
658 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
660 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
662 * unittests/basic_string_view/element_access/char/1.cc (test01):
665 * unittests/basic_string_view/element_access/char/empty.cc (main):
667 * unittests/basic_string_view/element_access/char/front_back.cc
670 * unittests/basic_string_view/inserters/char/2.cc (test05):
673 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
676 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
679 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
681 * unittests/basic_string_view/operations/compare/char/1.cc
684 * unittests/basic_string_view/operations/compare/char/13650.cc
686 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
689 * unittests/basic_string_view/operations/data/char/1.cc (test01):
692 * unittests/basic_string_view/operations/find/char/1.cc (test01):
695 * unittests/basic_string_view/operations/find/char/2.cc (test02):
698 * unittests/basic_string_view/operations/find/char/3.cc (test03):
701 * unittests/basic_string_view/operations/find/char/4.cc (main):
703 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
706 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
709 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
712 * unittests/basic_string_view/operations/substr/char/1.cc
715 * unittests/basic_string_view/operators/char/2.cc (main):
717 * unittests/optional/assignment/1.cc (test): Likewise.
718 * unittests/optional/assignment/2.cc (test): Likewise.
719 * unittests/optional/assignment/3.cc (test): Likewise.
720 * unittests/optional/assignment/4.cc (test): Likewise.
721 * unittests/optional/assignment/5.cc (test): Likewise.
722 * unittests/optional/assignment/6.cc (test): Likewise.
723 * unittests/optional/assignment/7.cc (test): Likewise.
724 * unittests/optional/cons/copy.cc (test): Likewise.
725 * unittests/optional/cons/default.cc (test): Likewise.
726 * unittests/optional/cons/move.cc (test): Likewise.
727 * unittests/optional/cons/value.cc (test): Likewise.
728 * unittests/optional/in_place.cc (test): Likewise.
729 * unittests/optional/observers/1.cc (test): Likewise.
730 * unittests/optional/observers/2.cc (test): Likewise.
732 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
734 * tui-win.h (tui_set_var_cmd): Remove.
735 * tui-win.c (tui_set_var_cmd): Make static.
737 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
739 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
740 rbreak_command_wrapper): Remove.
741 * symtab.c (rbreak_command_wrapper): Remove.
743 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
745 * inferior.h (info_terminal_command): Remove declaration.
746 * inflow.c (info_terminal_command): Make static.
748 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
750 * inferior.c (exit_inferior_silent): Remove.
752 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
754 * dictionary.c (dict_empty, mdict_empty): Remove.
755 * dictionary.c (mdict_empty): Remove.
757 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
759 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
760 (arc_insn_get_memory_offset): Likewise.
761 (arc_insn_dump): Likewise.
762 * cp-support.c (test_cp_symbol_name_matches): Likewise.
763 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
764 * dictionary.c (dict_iterator_next): Likewise.
765 (dict_iter_match_first): Likewise.
766 (dict_iter_match_next): Likewise.
767 * f-lang.c (evaluate_subexp_f): Likewise.
768 * hppa-tdep.c (hppa_read_pc): Likewise.
769 * i386-tdep.c (i386_floatformat_for_type): Likewise.
770 * parse.c (write_exp_elt_msym): Likewise.
771 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
772 * remote.c (remote_packet_size): Likewise.
773 (remote_notif_stop_parse): Likewise.
774 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
775 * s12z-tdep.c (s12z_disassemble_info): Likewise.
776 * source.c (prepare_path_for_appending): Likewise.
777 * sparc64-linux-tdep.c
778 (sparc64_linux_handle_segmentation_fault); Likewise.
779 * stack.c (frame_selection_by_function_completer): Likewise.
781 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
783 * completer.c (set_gdb_completion_word_break_characters):
786 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
788 * dwarf-index-write.c: Include dwarf-index-write.h.
789 * mi/mi-interp.c: Include mi/mi-interp.h.
791 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
793 * aarch32-tdep.c: Include aarch32-tdep.h.
794 * aarch32-tdep.h: Forward-declare struct target_desc.
796 2019-11-26 Christian Biesinger <cbiesinger@google.com>
798 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
800 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
801 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
803 2019-11-25 Tom de Vries <tdevries@suse.de>
805 * contrib/words.sh: Add -c option.
807 2019-11-25 Christian Biesinger <cbiesinger@google.com>
809 * solib.c (solib_find_1): Change int to bool.
810 (exec_file_find): Change int to bool.
811 (solib_find): Change int to bool.
812 (solib_read_symbols): Change int to bool.
813 (solib_used): Change int to bool.
814 (solib_add): Change int to bool.
815 (info_sharedlibrary_command): Change int to bool.
816 (solib_contains_address_p): Change int to bool.
817 (solib_keep_data_in_core): Change int to bool.
818 (in_solib_dynsym_resolve_code): Change int to bool.
819 (reload_shared_libraries_1): Change int to bool.
820 (gdb_sysroot_changed): Change int to bool.
821 * solib.h (solib_read_symbols): Change int to bool.
822 (solib_contains_address_p): Change int to bool.
823 (solib_keep_data_in_core): Change int to bool.
824 (in_solib_dynsym_resolve_code): Change int to bool.
825 (libpthread_name_p): Change int to bool.
827 2019-11-25 Luis Machado <luis.machado@linaro.org>
829 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
830 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
831 (remote_packet_max_chars): New static global.
832 (show_remote_packet_max_chars): New function.
833 (remote_target::putpkt_binary): Adjust to use new
834 remote_packet_max_chars option.
835 (remote_target::getpkt_or_notif_sane_1): Likewise.
836 (_initialize_remote): Register new remote-packet-max-chars option.
838 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
840 * m68k-linux-nat.c: Include gdbarch.h.
842 2019-11-24 Tom Tromey <tom@tromey.com>
844 * symfile.c (read_symbols): Update.
845 * psymtab.c (require_partial_symbols): Change type of "verbose" to
847 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
848 (psym_lookup_symbol, psym_find_last_source_symtab)
849 (psym_forget_cached_source_info, psym_print_stats)
850 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
851 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
852 (psym_map_matching_symbols, psym_expand_symtabs_matching)
853 (psym_find_compunit_symtab_by_address)
854 (maintenance_print_psymbols, maintenance_info_psymtabs)
855 (maintenance_check_psymtabs): Update.
856 * psymtab.h (require_partial_symbols): Change type of "verbose" to
859 2019-11-22 Tom Tromey <tom@tromey.com>
861 * observable.h: Update comments.
863 2019-11-22 Tom Tromey <tromey@adacore.com>
865 * ada-tasks.c (ada_task_is_alive): Make parameter const.
866 (print_ada_task_info): Don't try to fetch thread id if task is not
869 2019-11-22 Christian Biesinger <cbiesinger@google.com>
872 * ada-lang.c (sort_choices): Update.
873 (ada_print_symbol_signature): Update.
874 (resolve_subexp): Update.
875 (ada_parse_renaming): Update.
876 (ada_read_renaming_var_value): Update.
877 (lesseq_defined_than): Update.
878 (remove_extra_symbols): Update.
879 (remove_irrelevant_renamings): Update.
880 (ada_add_block_symbols): Update.
881 (ada_collect_symbol_completion_matches): Update.
882 (ada_is_renaming_symbol): Update.
883 (aggregate_assign_from_choices): Update.
884 (ada_evaluate_subexp): Update.
885 (ada_has_this_exception_support): Update.
886 (ada_is_non_standard_exception_sym): Update.
887 (ada_add_exceptions_from_frame): Update.
888 (ada_add_global_exceptions): Update.
889 (ada_print_subexp): Update.
890 * ax-gdb.c (gen_var_ref): Update.
891 (gen_maybe_namespace_elt): Update.
892 (gen_expr_for_cast): Update.
895 * blockframe.c (find_pc_partial_function): Update.
896 * breakpoint.c (print_breakpoint_location): Update.
897 (update_static_tracepoint): Update.
898 * btrace.c (ftrace_print_function_name): Update.
899 (ftrace_function_switched): Update.
900 * buildsym.c (find_symbol_in_list): Update.
902 * c-typeprint.c (c_print_typedef): Update.
903 (c_type_print_template_args): Update.
904 * cli/cli-cmds.c (edit_command): Update.
905 (list_command): Update.
906 (print_sal_location): Update.
907 * coffread.c (patch_opaque_types): Update.
908 (process_coff_symbol): Update.
909 (coff_read_enum_type): Update.
910 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
911 (convert_one_symbol): Update.
912 (hash_symname): Update.
913 (eq_symname): Update.
914 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
915 * compile/compile-cplus-types.c (debug_print_scope): Update.
916 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
917 * compile/compile-object-load.c (get_out_value_type): Update.
918 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
919 (search_symbol_list): Update.
920 (cp_lookup_symbol_imports_or_template): Update.
921 * cp-support.c (overload_list_add_symbol): Update.
922 * ctfread.c (psymtab_to_symtab): Update.
923 * dbxread.c (cp_set_block_scope): Update.
924 * dictionary.c (iter_match_first_hashed): Update.
925 (iter_match_next_hashed): Update.
926 (insert_symbol_hashed): Update.
927 (iter_match_next_linear): Update.
928 * dictionary.h: Update.
929 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
930 (locexpr_describe_location_piece): Update.
931 (locexpr_describe_location_1): Update.
932 (locexpr_generate_c_location): Update.
933 (loclist_describe_location): Update.
934 (loclist_generate_c_location): Update.
935 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
936 (read_func_scope): Update.
937 (process_enumeration_scope): Update.
938 (new_symbol): Update.
939 (dwarf2_const_value): Update.
940 (dwarf2_symbol_mark_computed): Update.
941 * eval.c (evaluate_funcall): Update.
942 (evaluate_subexp_standard): Update.
943 * expprint.c (print_subexp_standard): Update.
944 (dump_subexp_body_standard): Update.
945 * f-valprint.c (info_common_command_for_block): Update.
946 * findvar.c (get_hosting_frame): Update.
947 (default_read_var_value): Update.
948 * go-lang.c (go_symbol_package_name): Update.
949 * guile/scm-block.c (bkscm_print_block_smob): Update.
950 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
951 (gdbscm_symbol_name): Update.
952 (gdbscm_symbol_linkage_name): Update.
953 (gdbscm_symbol_print_name): Update.
954 * infcall.c (get_function_name): Update.
955 * infcmd.c (jump_command): Update.
956 (finish_command): Update.
957 * infrun.c (insert_exception_resume_breakpoint): Update.
958 * linespec.c (canonicalize_linespec): Update.
959 (create_sals_line_offset): Update.
960 (convert_linespec_to_sals): Update.
961 (complete_label): Update.
962 (find_label_symbols_in_block): Update.
963 * m2-typeprint.c (m2_print_typedef): Update.
964 * mdebugread.c (mdebug_reg_to_regnum): Update.
965 (parse_symbol): Update.
966 (mylookup_symbol): Update.
967 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
968 (list_args_or_locals): Update.
969 * objc-lang.c (compare_selectors): Update.
970 (info_selectors_command): Update.
971 (compare_classes): Update.
972 (info_classes_command): Update.
974 * p-typeprint.c (pascal_print_typedef): Update.
975 * printcmd.c (build_address_symbolic): Update.
976 (info_address_command): Update.
977 (print_variable_and_value): Update.
978 * python/py-framefilter.c (extract_sym): Update.
979 (py_print_single_arg): Update.
980 * python/py-symbol.c (sympy_str): Update.
981 (sympy_get_name): Update.
982 (sympy_get_linkage_name): Update.
983 * python/python.c (gdbpy_rbreak): Update.
984 * record-btrace.c (btrace_get_bfun_name): Update.
985 (btrace_call_history): Update.
986 * rust-lang.c (rust_print_typedef): Update.
987 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
988 * stabsread.c (stab_reg_to_regnum): Update.
989 (define_symbol): Update.
990 (read_enum_type): Update.
991 (common_block_end): Update.
992 (cleanup_undefined_types_1): Update.
993 (scan_file_globals): Update.
994 * stack.c (print_frame_arg): Update.
995 (print_frame_args): Update.
996 (find_frame_funname): Update.
997 (info_frame_command_core): Update.
998 (iterate_over_block_locals): Update.
999 (print_block_frame_labels): Update.
1000 (do_print_variable_and_value): Update.
1001 (iterate_over_block_arg_vars): Update.
1002 (return_command): Update.
1003 * symmisc.c (dump_symtab_1): Update.
1004 (print_symbol): Update.
1005 * symtab.c (eq_symbol_entry): Update.
1006 (symbol_cache_dump): Update.
1007 (lookup_language_this): Update.
1008 (find_pc_sect_line): Update.
1009 (skip_prologue_sal): Update.
1010 (symbol_search::compare_search_syms): Update.
1011 (treg_matches_sym_type_name): Update.
1012 (search_symbols): Update.
1013 (print_symbol_info): Update.
1014 (rbreak_command): Update.
1015 (completion_list_add_symbol): Update.
1016 (find_gnu_ifunc): Update.
1017 (get_symbol_address): Update.
1018 (search_module_symbols): Update.
1019 (info_module_subcommand): Update.
1020 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1021 (SYMBOL_LINKAGE_NAME): Remove.
1022 (SYMBOL_DEMANGLED_NAME): Remove.
1023 (SYMBOL_PRINT_NAME): Remove.
1024 (SYMBOL_SEARCH_NAME): Remove.
1025 * tracepoint.c (set_traceframe_context): Update.
1026 (validate_actionline): Update.
1027 (collection_list::collect_symbol): Update.
1028 (encode_actions_1): Update.
1029 (info_scope_command): Update.
1030 (print_one_static_tracepoint_marker): Update.
1031 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1032 * valops.c (address_of_variable): Update.
1033 (find_overload_match): Update.
1034 (find_oload_champ): Update.
1036 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1038 * ada-lang.c (ada_lookup_simple_minsym): Update.
1039 (ada_collect_symbol_completion_matches): Update.
1040 * ada-tasks.c (read_atcb): Update.
1041 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1042 (amd64_windows_skip_trampoline_code): Update.
1043 * arm-tdep.c (skip_prologue_function): Update.
1044 (arm_skip_stack_protector): Update.
1045 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1046 (arm_wince_skip_main_prologue): Update.
1047 * ax-gdb.c (gen_expr): Update.
1048 * block.c (call_site_for_pc): Update.
1049 * blockframe.c (find_pc_partial_function): Update.
1050 * breakpoint.c (set_breakpoint_location_function): Update.
1051 * btrace.c (ftrace_print_function_name): Update.
1052 (ftrace_function_switched): Update.
1053 * c-valprint.c (print_unpacked_pointer): Update.
1054 * coffread.c (coff_symfile_read): Update.
1055 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1056 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1057 * dwarf-index-write.c (write_psymbols): Update.
1058 * dwarf2loc.c (call_site_to_target_addr): Update.
1059 (func_verify_no_selftailcall): Update.
1060 (tailcall_dump): Update.
1061 (call_site_find_chain_1): Update.
1062 (dwarf_expr_reg_to_entry_parameter): Update.
1063 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1064 * eval.c (evaluate_funcall): Update.
1065 (evaluate_subexp_standard): Update.
1066 (evaluate_subexp_for_sizeof): Update.
1067 * expprint.c (print_subexp_standard): Update.
1068 (dump_subexp_body_standard): Update.
1069 * frame.c (get_prev_frame_always_1): Update.
1070 * frv-tdep.c (frv_skip_main_prologue): Update.
1071 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1072 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1073 (gnuv3_get_typename_from_type_info): Update.
1074 (gnuv3_skip_trampoline): Update.
1075 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1076 * i386-tdep.c (i386_skip_main_prologue): Update.
1077 (i386_pe_skip_trampoline_code): Update.
1078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1079 * infcall.c (get_function_name): Update.
1080 * linespec.c (minsym_found): Update.
1081 * linux-fork.c (info_checkpoints_command): Update.
1082 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1083 (m32c_m16c_pointer_to_address): Update.
1084 * maint.c (maintenance_translate_address): Update.
1085 * minsyms.c (add_minsym_to_hash_table): Update.
1086 (add_minsym_to_demangled_hash_table): Update.
1087 (lookup_minimal_symbol_mangled): Update.
1088 (lookup_minimal_symbol_demangled): Update.
1089 (lookup_minimal_symbol_linkage): Update.
1090 (lookup_minimal_symbol_text): Update.
1091 (lookup_minimal_symbol_by_pc_name): Update.
1092 (minimal_symbol_is_less_than): Update.
1093 (compact_minimal_symbols): Update.
1094 (build_minimal_symbol_hash_tables): Update.
1095 (find_solib_trampoline_target): Update.
1096 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1097 (mips_skip_pic_trampoline_code): Update.
1098 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1099 * objc-lang.c (info_selectors_command): Update.
1100 (info_classes_command): Update.
1101 (find_methods): Update.
1102 (find_imps): Update.
1103 * p-valprint.c (pascal_val_print): Update.
1104 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1106 * printcmd.c (build_address_symbolic): Update.
1107 (info_symbol_command): Update.
1108 * psymtab.c (psymbol_name_matches): Update.
1109 (match_partial_symbol): Update.
1110 (lookup_partial_symbol): Update.
1111 (print_partial_symbols): Update.
1112 (sort_pst_symbols): Update.
1113 (maintenance_check_psymtabs): Update.
1114 * python/py-framefilter.c (py_print_frame): Update.
1115 * python/python.c (gdbpy_rbreak): Update.
1116 * record-btrace.c (btrace_get_bfun_name): Update.
1117 (btrace_call_history): Update.
1118 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1119 (rs6000_skip_trampoline_code): Update.
1120 * sol-thread.c (info_cb): Update.
1121 * stabsread.c (scan_file_globals): Update.
1122 * stack.c (find_frame_funname): Update.
1123 (info_frame_command_core): Update.
1124 * symmisc.c (dump_msymbols): Update.
1125 * symtab.c (symbol_natural_name): Rename to..,
1126 (general_symbol_info::natural_name): ...this.
1127 (symbol_demangled_name): Rename to...
1128 (general_symbol_info::demangled_name): ...this.
1129 (symbol_search_name): Rename to...
1130 (general_symbol_info::search_name): ...this.
1131 (symbol_matches_search_name): Update.
1132 (find_pc_sect_line): Update.
1133 (skip_prologue_sal): Update.
1134 (search_symbols): Update.
1135 (print_msymbol_info): Update.
1136 (rbreak_command): Update.
1137 (completion_list_add_msymbol): Update.
1138 (completion_list_objc_symbol): Update.
1139 (get_msymbol_address): Update.
1140 * symtab.h (struct general_symbol_info): Add member functions
1141 natural_name (), linkage_name (), print_name (), demangled_name (),
1143 (SYMBOL_NATURAL_NAME): Update.
1144 (symbol_natural_name): Move to a member function on general_symbol_info.
1145 (SYMBOL_DEMANGLED_NAME): Update.
1146 (symbol_demangled_name): Move to a member function on
1147 general_symbol_info.
1148 (SYMBOL_SEARCH_NAME): Update.
1149 (symbol_search_name): Move to a member function on general_symbol_info.
1150 (MSYMBOL_NATURAL_NAME): Remove.
1151 (MSYMBOL_LINKAGE_NAME): Remove.
1152 (MSYMBOL_PRINT_NAME): Remove.
1153 (MSYMBOL_DEMANGLED_NAME): Remove.
1154 (MSYMBOL_SEARCH_NAME): Remove.
1155 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1157 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1159 * symtab.c (create_demangled_names_hash): Use per_bfd->
1160 minimal_symbol_count for computing the initial size, if greater
1161 than our default size.
1163 2019-11-22 Tom de Vries <tdevries@suse.de>
1165 * contrib/words.sh: Improve words extraction.
1167 2019-11-22 Tom de Vries <tdevries@suse.de>
1169 * contrib/words.sh: Combine sed invocations.
1171 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1173 * Makefile.in: Update.
1174 * demangle.c: Rename to...
1175 * gdb-demangle.c: ..this.
1176 (is_cplus_marker): Change return type to bool.
1177 (_initialize_demangler): Rename to...
1178 (_initialize_gdb_demangle): ...this.
1179 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1180 * symtab.h (demangle): Remove declaration; instead include
1183 2019-11-21 Tom Tromey <tromey@adacore.com>
1185 * gdbsupport/format.c (format_pieces): Parse %I64d.
1186 * unittests/format_pieces-selftests.c (test_windows_formats): New
1188 (run_tests): Call it.
1190 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1192 Byte reverse display of variables with DW_END_big, DW_END_little
1193 (DW_AT_endianity) dwarf attributes if different than the native
1195 * ada-lang.c (ada_value_binop):
1196 Use type_byte_order instead of gdbarch_byte_order.
1197 * ada-valprint.c (printstr):
1198 (ada_val_print_string):
1199 * ada-lang.c (value_pointer):
1201 Use type_byte_order instead of gdbarch_byte_order.
1202 * c-lang.c (c_get_string):
1203 Use type_byte_order instead of gdbarch_byte_order.
1204 * c-valprint.c (c_val_print_array):
1205 Use type_byte_order instead of gdbarch_byte_order.
1206 * cp-valprint.c (cp_print_class_member):
1207 Use type_byte_order instead of gdbarch_byte_order.
1208 * dwarf2loc.c (rw_pieced_value):
1209 Use type_byte_order instead of gdbarch_byte_order.
1210 * dwarf2read.c (read_base_type): Handle DW_END_big,
1212 * f-lang.c (f_get_encoding):
1213 Use type_byte_order instead of gdbarch_byte_order.
1214 * findvar.c (default_read_var_value):
1215 Use type_byte_order instead of gdbarch_byte_order.
1216 * gdbtypes.c (check_types_equal):
1217 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1218 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1219 and TYPE_ENDIANITY_LITTLE if set.
1220 (type_byte_order): new function.
1221 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1222 (struct main_type) <flag_endianity_not_default>:
1224 (type_byte_order): New function.
1225 * infcmd.c (default_print_one_register_info):
1226 Use type_byte_order instead of gdbarch_byte_order.
1227 * p-lang.c (pascal_printstr):
1228 Use type_byte_order instead of gdbarch_byte_order.
1229 * p-valprint.c (pascal_val_print):
1230 Use type_byte_order instead of gdbarch_byte_order.
1231 * printcmd.c (print_scalar_formatted):
1232 Use type_byte_order instead of gdbarch_byte_order.
1233 * solib-darwin.c (darwin_current_sos):
1234 Use type_byte_order instead of gdbarch_byte_order.
1235 * solib-svr4.c (solib_svr4_r_ldsomap):
1236 Use type_byte_order instead of gdbarch_byte_order.
1237 * stap-probe.c (stap_modify_semaphore):
1238 Use type_byte_order instead of gdbarch_byte_order.
1239 * target-float.c (target_float_same_format_p):
1240 Use type_byte_order instead of gdbarch_byte_order.
1241 * valarith.c (scalar_binop):
1243 Use type_byte_order instead of gdbarch_byte_order.
1244 * valops.c (value_cast):
1245 Use type_byte_order instead of gdbarch_byte_order.
1246 * valprint.c (generic_emit_char):
1249 Use type_byte_order instead of gdbarch_byte_order.
1250 * value.c (unpack_long):
1251 (unpack_bits_as_long):
1252 (unpack_value_bitfield):
1255 (pack_unsigned_long):
1256 Use type_byte_order instead of gdbarch_byte_order.
1257 * findvar.c (unsigned_pointer_to_address):
1258 (signed_pointer_to_address):
1259 (unsigned_address_to_pointer):
1260 (address_to_signed_pointer):
1261 (default_read_var_value):
1262 (default_value_from_register):
1263 Use type_byte_order instead of gdbarch_byte_order.
1264 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1265 Use type_byte_order instead of gdbarch_byte_order.
1266 * riscv-tdep.c (riscv_print_one_register_info):
1267 Use type_byte_order instead of gdbarch_byte_order.
1269 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1271 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1272 (current_ui_gdb_stdin_ptr): Likewise.
1273 (current_ui_gdb_stderr_ptr): Likewise.
1274 (current_ui_gdb_stdlog_ptr): Likewise.
1275 (current_ui_current_uiout_ptr): Likewise.
1276 (gen_ret_current_ui_field_ptr): Remove.
1278 2019-11-21 Tom de Vries <tdevries@suse.de>
1281 * cli/cli-script.c (execute_control_command): Only switch to
1282 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1284 2019-11-19 Tom Tromey <tom@tromey.com>
1286 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1287 Now static. Change type of "name".
1288 (tui_set_win_height_command): Don't copy "arg".
1289 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1290 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1292 2019-11-19 Ali Tamur <tamur@google.com>
1294 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1295 "if (attr != nullptr)".
1296 (dwarf2_find_base_address): Likewise.
1297 (dwarf2_build_include_psymtabs): Likewise.
1298 (read_cutu_die_from_dwo): Likewise.
1299 (read_func_scope): Likewise.
1300 (read_call_site_scope): Likewise.
1301 (dwarf2_get_pc_bounds): Likewise.
1302 (dwarf2_record_block_ranges): Likewise.
1303 (dwarf2_add_field): Likewise.
1304 (dwarf2_add_member_fn): Likewise.
1305 (read_structure_type): Likewise.
1306 (read_enumeration_type): Likewise.
1307 (read_array_type): Likewise.
1308 (read_array_order): Likewise.
1309 (read_set_type): Likewise.
1310 (read_common_block): Likewise.
1311 (read_tag_reference_type): Likewise.
1312 (read_tag_string_type): Likewise.
1313 (read_subroutine_type): Likewise.
1314 (read_base_type): Likewise.
1315 (read_subrange_type): Likewise.
1316 (new_symbol): Likewise.
1317 (prepare_one_comp_unit): Likewise.
1319 2019-11-19 Tom Tromey <tromey@adacore.com>
1321 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1322 result in error when DebugActiveProcess fails.
1324 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1325 Pedro Alves <palves@redhat.com>
1327 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1328 * target.c (target_stack::push): Call 'unpush' if there's a
1329 target on top of the stack.
1331 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1333 * python/py-block.c (blpy_dealloc): Call tp_free.
1334 (blpy_block_syms_dealloc): Likewise.
1335 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1336 * python/py-inferior.c (infpy_dealloc): Likewise.
1337 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1338 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1339 * python/py-symbol.c (sympy_dealloc): Likewise.
1340 * python/py-symtab.c (stpy_dealloc): Likewise.
1341 * python/py-type.c (typy_iterator_dealloc): Likewise.
1343 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1345 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1346 constructor instead of using a class initializer.
1348 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1350 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1351 * configure: Regenerate.
1352 * configure.ac: Don't source common.host.
1353 * gdbsupport/common.host: Remove.
1354 * gdbsupport/mingw-strerror.c: Remove.
1355 * gdbsupport/posix-strerror.c: Rename to...
1356 * gdbsupport/safe-strerror.c: ...this.
1358 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1360 * maint.c (scoped_command_stats::print_time): Use localtime_r
1361 instead of localtime (provided through gnulib if necessary).
1362 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1365 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1367 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1368 avoid compile errors.
1370 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1372 * config.in: Regenerate.
1373 * configure: Regenerate.
1374 * gdbsupport/common.m4: No longer check for strerror_r.
1375 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1376 POSIX version of strerror_r, now that gnulib provides it if
1379 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1381 * README (`configure' options): Update.
1383 2019-11-14 Tom Tromey <tromey@adacore.com>
1385 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1386 expected type for the RHS if the LHS is a convenience variable.
1388 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1390 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1391 Provide explicit default and copy constructor.
1393 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1395 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1396 only call Py_INCREF (newbp) in the bppy_pending_object case.
1398 2019-11-13 Tom Tromey <tromey@adacore.com>
1401 * psympriv.h (partial_symbol): Remove static assert.
1402 * symtab.h (general_symbol_info, symbol): Remove static assert.
1404 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1406 * gdbsupport/format.c (format_pieces::format_pieces): Support
1407 printf 'z' size modifier.
1408 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1409 * printcmd.c (ui_printf): Handle size_t_arg.
1410 * ui-out.c (ui_out::vmessage): Likewise.
1411 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1413 (run_tests): Call test_format_int_sizes.
1415 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1417 * ada-exp.y (write_ambiguous_var): Update.
1418 * buildsym.c (add_symbol_to_list): Update.
1419 * dwarf2read.c (read_variable): Update.
1420 (new_symbol): Update.
1421 * jit.c (finalize_symtab): Update.
1422 * language.c (language_alloc_type_symbol): Update.
1423 * symtab.c (fixup_symbol_section): Update.
1424 (initialize_objfile_symbol_1): Move code to...
1425 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1426 (allocate_symbol): Update.
1427 (allocate_template_symbol): Update.
1428 (get_symbol_address): Update.
1429 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1430 of having as a field, and add a constructor.
1431 (SYMBOL_VALUE): Update.
1432 (SYMBOL_VALUE_ADDRESS): Update.
1433 (SET_SYMBOL_VALUE_ADDRESS): Update.
1434 (SYMBOL_VALUE_BYTES): Update.
1435 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1436 (SYMBOL_BLOCK_VALUE): Update.
1437 (SYMBOL_VALUE_CHAIN): Update.
1438 (SYMBOL_LANGUAGE): Update.
1439 (SYMBOL_SECTION): Update.
1440 (SYMBOL_OBJ_SECTION): Update.
1441 (SYMBOL_SET_LANGUAGE): Update.
1442 (SYMBOL_SET_LINKAGE_NAME): Update.
1443 (SYMBOL_SET_NAMES): Update.
1444 (SYMBOL_NATURAL_NAME): Update.
1445 (SYMBOL_LINKAGE_NAME): Update.
1446 (SYMBOL_DEMANGLED_NAME): Update.
1447 (SYMBOL_SEARCH_NAME): Update.
1448 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1449 (struct symbol): Update.
1450 (struct template_symbol): Update.
1451 (struct rust_vtable_symbol): Update.
1452 * xcoffread.c (SYMBOL_DUP): Update.
1454 2019-11-12 Tom Tromey <tom@tromey.com>
1456 * tui/tui-layout.c (show_layout): Set current_layout.
1457 (show_source_disasm_command, show_data)
1458 (show_source_or_disasm_and_command): Don't set current_layout.
1460 2019-11-12 Tom Tromey <tom@tromey.com>
1462 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1464 2019-11-12 Tom Tromey <tom@tromey.com>
1466 * tui/tui-win.c (resize_message): New global.
1467 (show_tui_resize_message): New function.
1468 (tui_async_resize_screen): Print message if requested.
1469 (_initialize_tui_win): Add tui-resize-message setting.
1470 * NEWS: Add entry for new commands.
1472 2019-11-11 Tom Tromey <tom@tromey.com>
1474 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1477 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1479 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1481 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1483 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1485 * python/python-internal.h (gdbpy_lookup_static_symbols):
1486 Declare new function.
1487 * python/python.c (python_GdbMethods): Add
1488 gdb.lookup_static_symbols method.
1489 * NEWS: Mention gdb.lookup_static_symbols.
1491 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1493 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1494 static block of current object file first. Also fix typo in
1497 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * stack.c (set_last_displayed_sal): Delete.
1500 (last_displayed_sal_valid): Delete.
1501 (last_displayed_pspace): Delete.
1502 (last_displayed_addr): Delete.
1503 (last_displayed_symtab): Delete.
1504 (last_displayed_line): Delete.
1505 (class last_displayed_symtab_info_type): New.
1506 (last_displayed_symtab_info): New static global variable.
1507 (print_frame_info): Call methods on last_displayed_symtab_info.
1508 (clear_last_displayed_sal): Update header comment, and make use of
1509 last_displayed_symtab_info.
1510 (last_displayed_sal_is_valid): Likewise.
1511 (get_last_displayed_pspace): Likewise.
1512 (get_last_displayed_addr): Likewise.
1513 (get_last_displayed_symtab): Likewise.
1514 (get_last_displayed_line): Likewise.
1515 (get_last_displayed_sal): Likewise.
1516 * stack.h (clear_last_displayed_sal): Update header comment.
1517 (last_displayed_sal_is_valid): Likewise.
1518 (get_last_displayed_pspace): Likewise.
1519 (get_last_displayed_addr): Likewise.
1520 (get_last_displayed_symtab): Likewise.
1521 (get_last_displayed_line): Likewise.
1522 (get_last_displayed_sal): Likewise.
1524 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1526 * stack.c (frame_show_address): Convert return type to bool.
1527 * stack.h (frame_show_address): Likewise, and update header
1530 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1533 * unittests/vec-utils-selftests.c: New file.
1534 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1536 2019-11-10 Tom Tromey <tom@tromey.com>
1538 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1539 (tui_highlight_win): Likewise.
1540 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1541 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1542 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1543 Don't set can_highlight.
1545 2019-11-10 Tom Tromey <tom@tromey.com>
1547 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1548 Remove unused declaration.
1550 2019-11-08 Tom Tromey <tromey@adacore.com>
1552 * top.c (read_command_file): Update.
1553 (command_line_input): Make return type const.
1554 * python/py-gdb-readline.c: Update.
1555 * linespec.c (decode_line_2): Update.
1556 * defs.h (command_line_input): Make return type const.
1557 * cli/cli-script.c (read_next_line): Make return type const.
1558 * ada-lang.c (get_selections): Update.
1560 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1562 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1563 * mi/mi-main.c (output_cores): Likewise.
1564 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1565 (linux_xfer_osdata_modules): Likewise.
1566 * remote.c (register_remote_support_xml): Likewise.
1567 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1568 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1570 2019-11-06 Tom Tromey <tom@tromey.com>
1572 * tui/tui-interp.c: Don't include readline.h.
1573 * tui/tui-hooks.c: Don't include readline.h.
1574 * symmisc.c: Include tilde.h, not readline.h.
1575 * symfile.c: Include tilde.h, not readline.h.
1576 * source.c: Include tilde.h, not readline.h.
1577 * solib.c: Include tilde.h, not readline.h.
1578 * psymtab.c: Include tilde.h, not readline.h.
1579 * exec.c: Include tilde.h, not readline.h.
1580 * corelow.c: Include tilde.h, not readline.h.
1581 * cli/cli-dump.c: Include tilde.h, not readline.h.
1582 * cli/cli-cmds.c: Don't include readline.h.
1584 2019-11-05 Tom Tromey <tom@tromey.com>
1586 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1587 (tui_disassemble): Set addr_size.
1588 (tui_disasm_window::set_contents): Use addr_size.
1590 2019-11-05 Tom Tromey <tom@tromey.com>
1592 * rust-lang.c (rust_language_defn): Update.
1593 * python/py-value.c (valpy_string): Call c_get_string.
1594 * p-lang.c (pascal_language_defn): Update.
1595 * opencl-lang.c (opencl_language_defn): Update.
1596 * objc-lang.c (objc_language_defn): Update.
1597 * m2-lang.c (m2_language_defn): Update.
1598 * language.c (unknown_language_defn, auto_language_defn): Update.
1599 (default_get_string): Remove.
1600 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1601 * go-lang.c (go_language_defn): Update.
1602 * f-lang.c (f_language_defn): Update.
1603 * d-lang.c (d_language_defn): Update.
1604 * c-lang.c (c_language_defn, cplus_language_defn)
1605 (asm_language_defn, minimal_language_defn): Update.
1606 * ada-lang.c (ada_language_defn): Update.
1607 * language.h (struct language_defn) <la_get_string>: Remove.
1608 (LA_GET_STRING): Remove.
1609 (default_get_string): Don't declare.
1611 2019-11-05 Tom Tromey <tom@tromey.com>
1613 * tui/tui-source.h (struct tui_source_window): Inline
1614 constructor. Remove destructor.
1615 <style_changed, m_observable>: Move to superclass.
1616 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1617 (struct tui_source_window_base): Move private members to end.
1618 <style_changed, m_observable>: Move from tui_source_window.
1619 * tui/tui-winsource.c (tui_copy_source_line): Move from
1620 tui-source.c. Rename from copy_source_line. Add special handling
1621 for negative line number.
1622 (tui_source_window_base::style_changed): Move from
1624 (tui_source_window_base): Register observer.
1625 (~tui_source_window_base): New.
1626 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1628 (tui_source_window::set_contents): Use tui_copy_source_line.
1629 (tui_source_window::tui_source_window): Move to tui-source.h.
1630 (tui_source_window::~tui_source_window): Remove.
1631 (tui_source_window::style_changed): Move to superclass.
1632 * tui/tui-disasm.c (tui_disassemble): Create string file with
1633 styling, when possible. Add "addr_size" parameter.
1634 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1635 Don't compute maximum size.
1636 (len_without_escapes): New function
1638 2019-11-05 Tom Tromey <tom@tromey.com>
1640 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1642 * tui/tui-winsource.c (tui_show_source_line): Update.
1643 * tui/tui-source.c (tui_source_window::set_contents): Update.
1644 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1646 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1648 * symtab.h (gdb_static_assert): Put && operator at the beginning
1649 of the line instead of the end.
1651 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1653 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1654 and sizeof (symbol).
1655 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1657 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1659 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1660 * configure.host: Mark *-*-solaris2.10* obsolete.
1661 * configure.tgt: Mark Solaris < 11 obsolete.
1662 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1663 Update target triplet.
1665 2019-11-01 Tom Tromey <tromey@adacore.com>
1667 * utils.c (print_sys_errmsg): Simplify.
1669 2019-11-01 Tom Tromey <tromey@adacore.com>
1671 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1673 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1675 * configure: Regenerate.
1676 * configure.ac: Remove check for strerror_r.
1677 * gdbsupport/common.m4: Check for strerror_r.
1679 2019-11-01 Luis Machado <luis.machado@linaro.org>
1683 * arm-tdep.c (arm_per_objfile): Rename to ...
1684 (arm_per_bfd): ... this.
1685 (arm_objfile_data_key): Rename to ...
1686 (arm_bfd_data_key): ... this.
1687 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1689 (arm_record_special_symbol): Likewise.
1691 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1693 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1695 * c-typeprint.c (c_print_typedef): Likewise.
1696 * f-typeprint.c (f_print_typedef): Likewise.
1697 * m2-typeprint.c (m2_print_typedef): Likewise.
1698 * p-typeprint.c (pascal_print_typedef): Likewise.
1699 * rust-lang.c (rust_print_typedef): Likewise.
1700 * symtab.c (print_symbol_info): Print a newline after calling
1703 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1705 * symtab.c (info_module_cmdlist): New variable.
1706 (info_module_command): New function.
1707 (search_module_symbols): New function.
1708 (info_module_subcommand): New function.
1709 (struct info_modules_var_func_options): New struct.
1710 (info_modules_var_func_options_defs): New variable.
1711 (make_info_modules_var_func_options_def_group): New function.
1712 (info_module_functions_command): New function.
1713 (info_module_variables_command): New function.
1714 (info_module_var_func_command_completer): New function.
1715 (_initialize_symtab): Register new 'info module functions' and
1716 'info module variables' commands.
1717 * symtab.h (typedef symbol_search_in_module): New typedef.
1718 (search_module_symbols): Declare new function.
1719 * NEWS: Mention new commands.
1721 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1724 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1725 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1727 (scan_partial_symbols): Only create partial module symbols for non
1729 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1731 * symtab.c (search_domain_name): Likewise.
1732 (search_symbols): Likewise.
1733 (print_symbol_info): Likewise.
1734 (symtab_symbol_info): Likewise.
1735 (info_modules_command): New function.
1736 (_initialize_symtab): Register 'info modules' command.
1737 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1738 * NEWS: Mention new 'info modules' command.
1740 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1742 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1743 and $_gdb_maint_setting_str.
1745 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1747 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1748 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1749 (str_value_from_setting, gdb_setting_str_internal_fn)
1750 (gdb_maint_setting_str_internal_fn): New functions.
1751 (_initialize_cli_cmds): Define the new convenience functions.
1752 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1753 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1755 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1757 * agent.c (set_can_use_agent): When the setting is turned on,
1758 look up agent symbols if we don't have them yet.
1759 (agent_new_objfile): Don't look up agent symbols when the agent
1762 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1764 * config.in: Regenerate.
1766 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1768 * configure: Regenerate.
1769 * configure.ac: Check for strerror_r.
1770 * gdbsupport/common-utils.h (safe_strerror): Change return value
1771 to const char * and document that this function is now threadsafe.
1772 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1773 thread_local and call strerror_r, if available.
1774 * utils.c (perror_string): Update.
1775 (print_sys_errmsg): Update.
1777 2019-10-31 Luis Machado <luis.machado@linaro.org>
1779 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1781 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1782 objfile to fetch per-bfd data.
1783 (arm_find_exidx_entry): Likewise.
1785 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1787 * gdbsupport/agent.c (debug_agent): Change type to bool.
1788 (use_agent): Likewise.
1789 (all_agent_symbols_look_up): Likewise.
1790 (agent_loaded_p): Change return value to bool.
1791 (agent_look_up_symbols): Update.
1792 (agent_capability_check): Change return value to bool.
1793 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1794 (debug_agent): Change type to bool.
1795 (use_agent): Likewise.
1796 (agent_capability_check): Change return value to bool.
1798 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1800 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1801 (build_minimal_symbol_hash_tables): Code to clear the table moved
1802 to clear_minimal_symbol_hash_tables.
1803 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1806 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1808 * infcmd.c: Remove includes.
1809 * infrun.c: Remove includes.
1811 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1813 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1814 (grow_vect): Remove declaration.
1815 (ada_type_of_array): Remove declaration.
1816 (ada_update_initial_language): Remove declaration.
1817 (ada_fold_name): Remove declaration.
1818 (ada_fill_in_ada_prototype): Remove declaration.
1819 (user_select_syms): Remove declaration.
1820 (get_selections): Remove declaration.
1821 (ada_tag_type): Remove declaration.
1822 (ada_value_tag): Remove declaration.
1823 (ada_is_others_clause): Remove declaration.
1824 (ada_in_variant): Remove declaration.
1825 (ada_value_struct_elt): Remove declaration.
1826 (ada_attribute_name): Remove declaration.
1827 (ada_system_address_type): Remove declaration.
1828 * ada-lang.c (ada_watch_location_expression): Make static.
1829 (GROW_VECT): Move here from ada-lang.h.
1830 (grow_vect): Make static.
1831 (ada_update_initial_language): Make static.
1832 (ada_fold_name): Make static.
1833 (ada_type_of_array): Make static.
1834 (encoded_ordered_before): Move up.
1835 (sort_choices): Move up.
1836 (print_signatures): Move up.
1837 (ada_print_symbol_signature): Move up.
1838 (get_selections): Move up and make static.
1839 (user_select_syms): Move up and make static.
1840 (ada_value_struct_elt): Move up and make static.
1841 (ada_tag_type): Make static.
1842 (ada_value_tag): Make static.
1843 (ada_is_others_clause): Make static.
1844 (ada_in_variant): Make static.
1845 (ada_attribute_name): Make static.
1847 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1849 * ada-lang.c: Remove includes.
1850 * ada-typeprint.c: Remove includes.
1851 * ada-valprint.c: Remove includes.
1853 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1855 * addrmap.c: Add static assertions of type size, moved from
1856 _initialize_addrmap.
1857 (_initialize_addrmap): Remove.
1859 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1861 * coffread.c (record_minimal_symbol): Update.
1862 (process_coff_symbol): Update.
1863 * dbxread.c (read_dbx_symtab): Update.
1864 * dwarf2read.c (add_partial_symbol): Update.
1865 (fixup_go_packaging): Update.
1866 (load_partial_dies): Update.
1867 (new_symbol): Update.
1868 * elfread.c (record_minimal_symbol): Change signature to use
1869 gdb::string_view instead of name+len.
1870 (elf_symtab_read): Update.
1871 (elf_rel_plt_read): Update.
1872 * mdebugread.c (parse_partial_symbols): Update.
1873 (handle_psymbol_enumerators): Update.
1874 (new_symbol): Update.
1875 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1876 to use gdb::string_view instead of name+len.
1877 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1878 * psympriv.h (add_psymbol_to_list): Likewise.
1879 * psymtab.c (add_psymbol_to_bcache): Likewise.
1880 (add_psymbol_to_list): Likewise.
1881 * stabsread.c (define_symbol): Update.
1882 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1883 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1884 (symbol_set_names): Likewise.
1885 * xcoffread.c (scan_xcoff_symtab): Update.
1887 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1889 * symtab.h (symbol_set_names): Document that copy_name must be
1890 set to true for non-nullterminated strings.
1891 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1892 linkage_name if the entry was not found and we need to demangle.
1894 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1896 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1897 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1898 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1899 * gdbsupport/gdb_binary_search.h: New file.
1901 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1903 * NEWS: Mention new --with-system-gdbinit-dir option.
1904 * config.in: Regenerate.
1905 * configure: Regenerate.
1906 * configure.ac: Add new option --with-system-gdbinit-dir.
1907 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1908 for a ".gdb" suffix.
1909 * main.c (get_init_files): Change system_gdbinit argument to
1910 a vector and return the files in SYSTEM_GDBINIT_DIR in
1911 addition to SYSTEM_GDBINIT.
1912 (captured_main_1): Update.
1913 (print_gdb_help): Update.
1914 * top.c (print_gdb_configuration): Also print the value of
1917 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1919 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1920 that takes gdb::string_view arguments.
1922 2019-10-26 Tom de Vries <tdevries@suse.de>
1924 * aarch64-linux-tdep.c: Fix typos in comments.
1925 * aarch64-tdep.c: Same.
1927 * amd64-nat.c: Same.
1929 * arch/aarch64-insn.c: Same.
1931 * breakpoint.h: Same.
1934 * cli/cli-decode.c: Same.
1935 * cli/cli-script.c: Same.
1936 * cli/cli-utils.h: Same.
1937 * coff-pe-read.c: Same.
1939 * compile/compile-cplus-symbols.c: Same.
1940 * compile/compile-object-run.c: Same.
1941 * completer.c: Same.
1943 * cp-support.c: Same.
1945 * dwarf-index-write.c: Same.
1946 * dwarf2-frame.c: Same.
1947 * dwarf2-frame.h: Same.
1949 * frame-base.h: Same.
1954 * guile/scm-objfile.c: Same.
1955 * i386-tdep.c: Same.
1956 * i386-tdep.h: Same.
1959 * linux-nat.c: Same.
1960 * m68k-tdep.c: Same.
1963 * mi/mi-cmd-disas.c: Same.
1964 * mi/mi-getopt.h: Same.
1965 * mi/mi-main.c: Same.
1967 * nat/aarch64-sve-linux-sigcontext.h: Same.
1969 * ppc-linux-nat.c: Same.
1970 * ppc-linux-tdep.c: Same.
1972 * progspace.h: Same.
1973 * prologue-value.h: Same.
1974 * python/py-evtregistry.c: Same.
1975 * python/py-instruction.h: Same.
1976 * record-btrace.c: Same.
1977 * record-full.c: Same.
1979 * rs6000-tdep.c: Same.
1981 * sol-thread.c: Same.
1982 * sparc-sol2-tdep.c: Same.
1983 * sparc64-tdep.c: Same.
1984 * stabsread.c: Same.
1988 * tracepoint.c: Same.
1989 * tui/tui-data.h: Same.
1990 * tui/tui-io.c: Same.
1991 * tui/tui-win.c: Same.
1993 * unittests/rsp-low-selftests.c: Same.
1994 * user-regs.h: Same.
2005 * xtensa-tdep.c: Same.
2007 2019-10-25 Ali Tamur <tamur@google.com>
2009 * charset.c (find_charset_names): Reflect API change.
2011 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2013 * symtab.c (struct demangled_name_entry): Change demangled name
2014 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2015 part of the struct anymore.
2016 (symbol_set_names): No longer obstack allocate + copy the demangled
2017 name, just store the allocated name from bfd.
2019 2019-10-25 Tom Tromey <tromey@adacore.com>
2021 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2022 (bsearch_cie_cmp, add_cie): Remove.
2023 (find_cie): Reimplement.
2024 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2025 (dwarf2_build_frame_info): Update.
2027 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2030 * symfile.c (reread_symbols): Call forget_cached_source_info to
2031 clear the stale source cache.
2033 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2035 * configure: Regenerate.
2036 * configure.ac: Remove code that sets python_has_threads.
2038 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2040 * config.in: Regenerate.
2041 * configure: Regenerate.
2042 * configure.ac: Remove the code that uses sed to get the python
2043 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2045 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2047 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2050 2019-10-23 Tom Tromey <tom@tromey.com>
2052 * arc-tdep.c: Remove ".." from include.
2053 * frv-tdep.c: Remove ".." from include.
2054 * lm32-tdep.c: Remove ".." from include.
2055 * microblaze-tdep.c: Remove ".." from include.
2056 * or1k-tdep.h: Remove ".." from include.
2057 * s12z-tdep.c: Remove ".." from include.
2058 * Makefile.in (OPCODES_CFLAGS): Add comment.
2059 (TOP_CFLAGS): New variable.
2060 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2062 2019-10-23 Tom Tromey <tom@tromey.com>
2064 * Makefile.in (READLINE_DIR): Update.
2066 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2068 * infcall.c (call_function_by_hand_dummy): Fix the function
2069 comment. And extract out a code section into...
2070 (reserve_stack_space): ...this new function.
2072 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2074 * infcall.c (value_arg_coerce): Remove an unused parameter.
2075 (call_function_by_hand_dummy): Update the call to
2078 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080 * infcall.c (call_function_by_hand_dummy): Refactor.
2082 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2084 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2086 2019-10-23 Tom Tromey <tom@tromey.com>
2088 * configure: Rebuild.
2089 * configure.ac: Don't check for sigprocmask.
2090 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2092 2019-10-23 Tom Tromey <tom@tromey.com>
2094 * configure: Rebuild.
2095 * acinclude.m4: Use m4_include, not sinclude.
2097 2019-10-23 Tom de Vries <tdevries@suse.de>
2099 PR breakpoints/24687
2100 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2102 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2104 * symtab.c (struct demangled_name_entry) <language>: Change from
2105 bitfield to regular variable.
2107 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2109 * symtab.c (struct demangled_name_entry): Add a constructor.
2110 (free_demangled_name_entry): New function to call the destructor
2111 for demangled_name_entry.
2112 (create_demangled_names_hash): Pass free_demangled_name_entry to
2114 (symbol_set_names): Call placement new for demangled_name_entry.
2115 * utils.c: No longer include xxhash.h here, now that fast_hash
2116 is inlined in the header.
2117 * utils.h: Instead, include it here.
2119 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2121 * Makefile.in: Link with libxxhash.
2122 * config.in: Regenerate.
2123 * configure: Regenerate.
2124 * configure.ac: Search for libxxhash.
2125 * utils.c (fast_hash): Use xxhash if present.
2127 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2129 * utils.h (fast_hash): New function.
2130 * symtab.c (hash_demangled_name_entry): Call new function
2133 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2135 * symtab.c (struct demangled_name_entry): Change type of mangled
2136 to gdb::string_view. Also adds a constructor that takes the
2138 (hash_demangled_name_entry): Update.
2139 (eq_demangled_name_entry): Update.
2140 (free_demangled_name_entry): New function to call the destructor
2141 now that this is not a POD anymore.
2142 (create_demangled_names_hash): Pass free_demangled_name_entry to
2144 (symbol_set_names): Update.
2146 2019-10-21 Ali Tamur <tamu@google.com>
2148 * dwarf2read.c (dir_index): Change type.
2149 (file_name_index): Likewise.
2150 (line_header::include_dir_at): Change comment and implementation on
2151 whether it is DWARF 5.
2152 (line_header::is_valid_file_index): New function.
2153 (line_header::file_name_at): Change comment and implementation on
2154 whether it is DWARF 5.
2155 (line_header::file_names): Change to private field renamed as
2156 m_file_names and introduce a new accessor method.
2157 (line_header::file_names_size): New method.
2158 (line_header::include_dirs): Change to private field and rename as
2160 (dw2_get_file_names_reader): Define local var at a smaller scope and
2162 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2163 (process_structure_scope): Likewise.
2164 (line_header::add_include_dir): Change message and reflect renaming.
2165 (line_header::add_file_name): Likewise.
2166 (read_formatted_entries): Handle DW_FORM_data16.
2167 (dwarf_decode_line_header): Fix line header length calculation.
2168 (psymtab_include_file_name): Change comment and API.
2169 (lnp_state_machine::m_file): Update comment and reflect type change.
2170 (lnp_state_machine::record_line): Reflect type change.
2171 (dwarf_decode_lines): Reflect API change.
2172 (file_file_name): Likewise.
2173 (file_full_name): Likewise.
2175 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2177 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2179 2019-10-21 Tom Tromey <tom@tromey.com>
2181 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2183 2019-10-21 Tom Tromey <tom@tromey.com>
2185 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2186 NM_H. Use AC_CONFIG_LINKS.
2187 * configure: Rebuild.
2188 * Makefile.in (NM_H): New variable.
2189 (generated_files): Add NM_H. Remove gcore.
2190 (nm.h, stamp-nmh): New targets.
2192 2019-10-20 Tom Tromey <tom@tromey.com>
2194 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2195 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2197 (put_objfile_before): Now static.
2199 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2201 * gdbsupport/common-utils.h (startswith): Change return type to
2204 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2206 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2207 * breakpoint.c (bp_locations_compare): Rename to...
2208 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2209 (update_global_location_list): Use std::sort instead of qsort.
2210 * buildsym.c (compare_line_numbers): Rename to...
2211 (lte_is_less_than): ...this, and change to std::sort semantics.
2212 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2214 * disasm.c (compare_lines): Rename to...
2215 (line_is_less_than): ...this, and change to std::sort semantics.
2216 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2218 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2219 (fde_is_less_than): ...this, and change to std::sort semantics.
2220 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2221 * mdebugread.c (compare_blocks):
2222 (block_is_less_than): ...this, and change to std::sort semantics.
2223 (sort_blocks): Call std::sort instead of qsort.
2224 * objfiles.c (qsort_cmp): Rename to...
2225 (sort_cmp): ...this, and change to std::sort semantics.
2226 (update_section_map): Call std::sort instead of qsort.
2227 * remote.c (compare_pnums): Remove.
2228 (map_regcache_remote_table): Call std::sort instead of qsort.
2229 * utils.c (compare_positive_ints): Remove.
2230 * utils.h (compare_positive_ints): Remove.
2231 * xcoffread.c (compare_lte): Remove.
2232 (arrange_linetable): Call std::sort instead of qsort.
2234 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2236 * symfile.c (init_entry_point_info): Fix typo.
2237 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2239 2019-10-18 Tom de Vries <tdevries@suse.de>
2241 * aarch64-tdep.c: Fix typos in comments.
2243 * ada-tasks.c: Same.
2244 * alpha-tdep.c: Same.
2245 * alpha-tdep.h: Same.
2246 * amd64-nat.c: Same.
2247 * amd64-windows-tdep.c: Same.
2250 * arch-utils.c: Same.
2251 * arm-nbsd-tdep.c: Same.
2254 * blockframe.c: Same.
2257 * coff-pe-read.c: Same.
2259 * cris-tdep.c: Same.
2260 * darwin-nat.c: Same.
2264 * dtrace-probe.c: Same.
2265 * dwarf-index-write.c: Same.
2266 * dwarf2-frame-tailcall.c: Same.
2267 * dwarf2-frame.c: Same.
2268 * dwarf2read.c: Same.
2270 * exceptions.c: Same.
2271 * fbsd-tdep.c: Same.
2275 * gnu-v3-abi.c: Same.
2277 * h8300-tdep.c: Same.
2278 * hppa-tdep.c: Same.
2279 * i386-linux-tdep.c: Same.
2280 * i386-tdep.c: Same.
2281 * ia64-libunwind-tdep.c: Same.
2282 * ia64-tdep.c: Same.
2286 * linux-nat.c: Same.
2287 * linux-thread-db.c: Same.
2288 * machoread.c: Same.
2289 * mdebugread.c: Same.
2291 * mn10300-tdep.c: Same.
2292 * namespace.c: Same.
2294 * opencl-lang.c: Same.
2295 * or1k-tdep.c: Same.
2297 * ppc-linux-nat.c: Same.
2298 * ppc-linux-tdep.c: Same.
2299 * ppc-sysv-tdep.c: Same.
2302 * record-btrace.c: Same.
2303 * record-full.c: Same.
2304 * remote-fileio.c: Same.
2306 * rs6000-tdep.c: Same.
2307 * s12z-tdep.c: Same.
2308 * score-tdep.c: Same.
2312 * sol-thread.c: Same.
2313 * solib-svr4.c: Same.
2316 * sparc-nat.c: Same.
2317 * sparc-sol2-tdep.c: Same.
2318 * sparc-tdep.c: Same.
2319 * sparc64-tdep.c: Same.
2320 * stabsread.c: Same.
2324 * target-descriptions.c: Same.
2325 * target-float.c: Same.
2332 * windows-nat.c: Same.
2333 * xcoffread.c: Same.
2334 * xstormy16-tdep.c: Same.
2335 * xtensa-tdep.c: Same.
2337 2019-10-17 Tom Tromey <tromey@adacore.com>
2339 * configure: Rebuild.
2340 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2341 in AC_CONFIG_FILES invocation.
2342 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2343 new-style config.status invocation.
2345 2019-10-17 Tom de Vries <tdevries@suse.de>
2347 * arm-nbsd-nat.c: Fix typos in comments.
2349 * darwin-nat-info.c: Same.
2350 * dwarf2read.c: Same.
2352 * event-top.c: Same.
2355 * hppa-tdep.c: Same.
2356 * i386-tdep.c: Same.
2359 * mdebugread.c: Same.
2360 * moxie-tdep.c: Same.
2361 * nto-procfs.c: Same.
2363 * ppc-linux-tdep.c: Same.
2365 * riscv-tdep.c: Same.
2366 * s390-tdep.c: Same.
2368 * sparc-linux-tdep.c: Same.
2369 * sparc-nat.c: Same.
2371 * target-descriptions.c: Same.
2375 2019-10-16 Tom Tromey <tom@tromey.com>
2377 * objfiles.h (struct objfile) <original_name>: Now const.
2379 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2381 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2382 pass on to sigsetjmp's second argument.
2383 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2385 2019-10-16 Keith Seitz <keiths@redhat.com>
2388 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2389 sections whose size is greater than the file size.
2391 2019-10-16 Jim Wilson <jimw@sifive.com>
2393 * riscv-tdep.c (riscv_gcc_target_options): New.
2394 (riscv_gnu_triplet_regexp): New.
2395 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2396 set_gdbarch_gnu_triplet_regexp.
2398 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2400 * Makefile.in: Add xml-builtin.h.
2401 * features/feature_to_c.sh: Add an include for xml-builtin.h
2402 to ensure that the compiler checks that the types match.
2403 * xml-builtin.h: New file.
2404 * xml-support.c (fetch_xml_builtin): Add missing const.
2405 * xml-support.h: Remove declaration of xml_builtins.
2407 2019-10-16 Tom de Vries <tdevries@suse.de>
2410 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2411 (amd64_classify_aggregate): ... here.
2412 (amd64_classify_aggregate_field): Handled fiels of nested structs
2415 2019-10-16 Tom de Vries <tdevries@suse.de>
2418 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2419 that handles 'theclass'.
2421 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * linespec.c (decode_digits_ordinary): Update comment.
2424 * make-target-delegates: No longer need to handle VEC case.
2425 * memrange.c (normalize_mem_ranges): Update comment.
2426 * namespace.c (add_using_directive): Update comment.
2427 * objc-lang.c (uniquify_strings): Update comment.
2428 * ppc-linux-nat.c (struct thread_points): Update comment.
2429 * probe.h (find_probes_in_objfile): Update comment.
2430 * target.h (enum flash_preserve_mode): Update comment.
2431 * varobj.c (varobj_restrict_range): Update comment.
2432 * varobj.h (varobj_list_children): Update comment.
2434 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2436 * Makefile.in: Remove references to vec.h and vec.c.
2437 * aarch64-tdep.c: No longer include vec.h.
2438 * ada-lang.c: Likewise.
2439 * ada-lang.h: Likewise.
2440 * arm-tdep.c: Likewise.
2442 * breakpoint.h: Likewise.
2443 * charset.c: Likewise.
2444 * cp-support.h: Likewise.
2445 * dtrace-probe.c: Likewise.
2446 * dwarf2read.c: Likewise.
2447 * extension.h: Likewise.
2448 * gdb_bfd.c: Likewise.
2449 * gdbsupport/gdb_vecs.h: Likewise.
2450 * gdbsupport/vec.c: Remove.
2451 * gdbsupport/vec.h: Remove.
2452 * gdbthread.h: Likewise.
2453 * guile/scm-type.c: Likewise.
2454 * inline-frame.c: Likewise.
2455 * machoread.c: Likewise.
2456 * memattr.c: Likewise.
2457 * memrange.h: Likewise.
2458 * namespace.h: Likewise.
2459 * nat/linux-btrace.h: Likewise.
2460 * osdata.c: Likewise.
2461 * parser-defs.h: Likewise.
2462 * progspace.h: Likewise.
2463 * python/py-type.c: Likewise.
2464 * record-btrace.c: Likewise.
2465 * rust-exp.y: Likewise.
2466 * solib-target.c: Likewise.
2467 * stap-probe.c: Likewise.
2468 * target-descriptions.c: Likewise.
2469 * target-memory.c: Likewise.
2470 * target.h: Likewise.
2471 * varobj.c: Likewise.
2472 * varobj.h: Likewise.
2473 * xml-support.h: Likewise.
2475 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2477 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2478 Update for new std::vector based implementation.
2479 (process_psymtab_comp_unit_reader): Likewise.
2480 (scan_partial_symbols): Likewise.
2481 (recursively_compute_inclusions): Likewise.
2482 (compute_compunit_symtab_includes): Likewise.
2483 (process_imported_unit_die): Likewise.
2484 (queue_and_load_dwo_tu): Likewise.
2485 (follow_die_sig_1): Likewise.
2486 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2487 (typedef dwarf2_per_cu_ptr): Remove.
2488 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2490 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2491 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2492 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2493 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2496 2019-10-15 Tom Tromey <tromey@adacore.com>
2498 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2501 2019-10-15 Tom Tromey <tromey@adacore.com>
2503 * windows-nat.c (windows_nat_target::fetch_registers)
2504 (windows_nat_target::store_registers): Rename "pid" to "tid".
2506 2019-10-15 Tom Tromey <tromey@adacore.com>
2508 * gdbarch.h, gdbarch.c: Rebuild.
2509 * gdbarch.sh (gcc_target_options): Change return type to
2511 * compile/compile.c (get_args): Update.
2512 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2513 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2515 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2517 * arch-utils.c (default_gcc_target_options): Return std::string.
2518 * arch-utils.h (default_gcc_target_options): Return std::string.
2519 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2521 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2523 * breakpoint.c (breakpoint_chain): Make static.
2524 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2525 of accessing breakpoint_chain.
2527 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2529 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2530 to a gdb::function_view and return value to bool.
2531 * breakpoint.h (iterate_over_breakpoints): Likewise.
2532 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2533 (pop_dummy_frame): Update.
2534 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2535 (gdbscm_breakpoints): Update.
2536 * python/py-breakpoint.c (build_bp_list): Update.
2537 (gdbpy_breakpoints): Update.
2538 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2540 (bpfinishpy_handle_stop): Update.
2541 (bpfinishpy_handle_exit): Update.
2542 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2543 (svr4_update_solib_event_breakpoints): Update.
2545 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2547 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2548 when unwrapping single-field structs.
2550 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2552 * dwarf2read.c: Remove includes.
2554 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2556 * ui-out.c (ui_out::call_do_message): Silence
2557 -Wformat-nonliteral warning.
2559 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2561 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2562 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2563 include: readline/tilde.h.
2565 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2567 * remote.c (remote_target::get_trace_status): Remove declaration of
2568 trace_regblock_size.
2570 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2572 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2573 (show_user): Remove declaration of cmdlist.
2574 * cli/cli-cmds.h (max_user_call_depth): Declare.
2575 * cli/cli-script.c (execute_user_command): Remove declaration
2576 of max_user_call_depth.
2578 2019-10-11 Jim Wilson <jimw@sifive.com>
2580 * gdbsupport/print-utils.h (pulongest): Fix comment.
2581 (plongest): Likewise.
2582 (phex): Add missing comment, mention leading zeros.
2583 (phex_nz): Add mention of no leading zeros to comment.
2585 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2586 plongest instead of unsigned long long cast.
2588 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2590 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2591 for external_editor_command and gdbtk_test.
2593 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2595 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2596 * varobj.c (varobjdebug): Move comment to...
2597 * varobj.h (varobjdebug): ...here, and declare.
2599 2019-10-09 Tom Tromey <tom@tromey.com>
2601 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2604 2019-10-09 Tom Tromey <tom@tromey.com>
2606 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2607 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2608 * tui/tui-command.c (tui_cmd_window::resize)
2609 (tui_refresh_cmd_win): Update.
2610 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2611 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2612 * tui/tui-data.c (~tui_gen_win_info): Remove.
2613 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2614 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2615 (tui_redisplay_readline, tui_mld_flush)
2616 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2617 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2618 (tui_data_window::erase_data_content)
2619 (tui_data_item_window::rerender)
2620 (tui_data_item_window::refresh_window): Update.
2621 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2622 (box_win, tui_gen_win_info::make_window)
2623 (tui_gen_win_info::make_visible): Update.
2624 (tui_delete_win): Remove.
2625 * tui/tui-winsource.c
2626 (tui_source_window_base::do_erase_source_content): Update.
2627 (tui_show_source_line, tui_source_window_base::update_tab_width)
2628 (tui_source_window_base::update_exec_info): Update.
2629 * tui/tui-data.h (struct curses_deleter): New.
2630 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2631 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2633 2019-10-09 Tom Tromey <tom@tromey.com>
2635 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2637 2019-10-09 Tom Tromey <tom@tromey.com>
2639 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2640 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2642 2019-10-09 Tom Tromey <tom@tromey.com>
2644 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2645 window height directly.
2646 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2648 * tui/tui-layout.c (tui_default_win_height): Remove.
2649 (tui_default_win_viewport_height): Remove.
2651 2019-10-09 Tom Tromey <tom@tromey.com>
2653 * tui/tui.h: Remove comments.
2655 2019-10-09 Tom de Vries <tdevries@suse.de>
2657 * python/lib/gdb/printer/bound_registers.py: Use
2658 '^builtin_type_bound128' as regexp argument for
2659 add_builtin_pretty_printer.
2661 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2663 * guile/guile.c (guile_extension_script_ops): Remove forward
2664 declaration and mark as static.
2665 (guile_script_ops): Likewise.
2666 (extension_language_guile): Move further down in the file so
2667 it can reference the definitions for guile_{extension_,}script_ops.
2669 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2671 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2672 except SORTL, DFLTCC, and KDSA.
2674 2019-10-08 Tom Tromey <tromey@adacore.com>
2676 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2677 (struct safe_symbol_file_add_args): Remove.
2679 2019-10-08 Tom Tromey <tromey@adacore.com>
2681 * windows-nat.c: Don't include buildsym-legacy.h.
2683 2019-10-08 Tom Tromey <tromey@adacore.com>
2685 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2687 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2689 * gdbtypes.c (overload_debug): Move comment to header.
2690 * gdbtypes.h (overload_debug): Declare.
2691 * valops.c: Remove declaration of overload_debug, instead
2694 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2696 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2698 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2700 * language.h (lang_frame_mismatch_warn): ... here. Also add
2702 * top.c (lang_frame_mismatch_warn): Remove declaration.
2703 (check_frame_language_change): Pass lang_frame_mismatch_warn
2706 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2708 * c-lang.h (vtbl_ptr_name): Declare.
2709 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2711 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2713 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2715 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2718 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2720 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2721 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2722 * ctfread.c: New file.
2723 * ctfread.h: New file.
2724 * elfread.c: Include ctfread.h.
2725 (struct elfinfo text_p): New member ctfsect.
2726 (elf_locate_sections): Mark CTF section.
2727 (elf_symfile_read): Call elfctf_build_psymtabs.
2728 * Makefile.in (LIBCTF): Add.
2731 (DIST): Add ctfread.c.
2733 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2735 * ctfread.c (struct nextfield): Renamed to ...
2736 (struct ctf_nextfield): ... this.
2737 (struct field_info): Renamed to ...
2738 (strut ctf_field_info): ... this.
2739 (attach_fields_to_type): Update for renamed structures.
2740 (ctf_add_member_cb): Likewise.
2741 (ctf_add_enum_member_cb): Likewise.
2742 (process_struct_members): Likewise.
2743 (process_enum_type): Likewise.
2745 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2747 * tracectf.h: Rename, was ctf.h.
2748 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2749 * tracefile.c: Likewise.
2750 * tracepoint.c: Remove unused include ctf.h.
2751 * mi/mi-main.c: Likewise.
2752 * Makefile.in Replace ctf.c with tracectf.c.
2754 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2756 * version.in: Change version number to "9.0.50.DATE-git".
2758 2019-10-03 Tom Tromey <tom@tromey.com>
2761 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2763 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2765 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2766 cp_search_name_hash.
2767 * NEWS: Add entry about nested function support.
2769 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2770 Andrew Burgess <andrew.burgess@embecosm.com>
2772 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2773 for nested static variables when searchin VAR_DOMAIN.
2774 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2775 global scope, update comment.
2776 (add_partial_subprogram): Call add_partial_subprogram recursively
2777 for nested subroutines when processinng Fortran.
2778 (load_partial_dies): Process the child entities of a subprogram
2779 when processing Fortran.
2780 (partial_die_parent_scope): Handle building scope
2781 for Fortran nested functions.
2782 (process_die): Record that nested functions have a scope.
2783 (new_symbol): Always record Fortran subprograms on the global
2785 (determine_prefix): How to build the prefix for Fortran
2788 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2790 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2791 have just sent the thread a SIGSTOP and are waiting for it to
2794 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2796 * btrace.c (btrace_add_pc): Remove whitespace before the template
2797 parameter in 'std::vector <...>'.
2798 (parse_xml_btrace_block): Likewise.
2799 (btrace_maint_decode_pt): Likewise.
2800 (btrace_maint_update_packets): Likewise.
2801 (btrace_maint_print_packets): Likewise.
2802 * btrace.h (struct btrace_maint_info): Likewise.
2803 * dwarf2read.c (struct type_unit_group): Likewise.
2804 (build_type_psymtabs_reader): Likewise.
2805 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2806 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2807 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2809 2019-10-03 Tom de Vries <tdevries@suse.de>
2811 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2812 the first line of the help text for set/show style metadata.
2814 2019-10-02 Tom Tromey <tromey@adacore.com>
2816 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2817 * gdbsupport/common-inferior.c: New file.
2818 * infcmd.c (startup_with_shell): Don't define.
2819 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2820 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2821 * inferior.h (startup_with_shell): Don't declare.
2823 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2825 * gdbsupport/gdb_assert.h: Include errors.h.
2826 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2828 2019-10-02 Tom Tromey <tromey@adacore.com>
2830 * NEWS: Add $_ada_exception entry.
2831 * ada-lang.c (struct ada_catchpoint): Add constructor.
2832 <m_kind>: New member.
2833 (allocate_location_exception, re_set_exception): Remove
2835 (should_stop_exception): Compute $_ada_exception.
2836 (check_status_exception, print_it_exception)
2837 (print_one_exception, print_mention_exception): Remove
2839 (allocate_location_catch_exception, re_set_catch_exception)
2840 (check_status_exception, print_it_catch_exception)
2841 (print_one_catch_exception, print_mention_catch_exception)
2842 (print_recreate_catch_exception)
2843 (allocate_location_catch_exception_unhandled)
2844 (re_set_catch_exception_unhandled)
2845 (check_status_exception, print_it_catch_exception_unhandled)
2846 (print_one_catch_exception_unhandled)
2847 (print_mention_catch_exception_unhandled)
2848 (print_recreate_catch_exception_unhandled)
2849 (allocate_location_catch_assert, re_set_catch_assert)
2850 (check_status_assert, print_it_catch_assert)
2851 (print_one_catch_assert, print_mention_catch_assert)
2852 (print_recreate_catch_assert)
2853 (allocate_location_catch_handlers, re_set_catch_handlers)
2854 (check_status_handlers, print_it_catch_handlers)
2855 (print_one_catch_handlers, print_mention_catch_handlers)
2856 (print_recreate_catch_handlers): Remove.
2857 (create_ada_exception_catchpoint): Update.
2858 (initialize_ada_catchpoint_ops): Update.
2860 2019-10-02 Tom Tromey <tromey@adacore.com>
2862 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2863 (create_excep_cond_exprs): Simplify exception string computation.
2864 (ada_exception_catchpoint_cond_string): Likewise.
2866 2019-10-02 Tom Tromey <tromey@adacore.com>
2868 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2869 * ada-lang.c (lesseq_defined_than): Handle
2871 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2873 (dwarf2_has_info): Likewise.
2874 (new_symbol): Set maybe_copied on symbol when
2876 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2878 <can_copy>: New member.
2879 * elfread.c (record_minimal_symbol): Set maybe_copied
2880 on symbol when appropriate.
2881 (elf_symfile_read): Update call to dwarf2_has_info.
2882 * minsyms.c (lookup_minimal_symbol_linkage): New
2884 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2885 * symtab.c (get_symbol_address, get_msymbol_address):
2887 * symtab.h (get_symbol_address, get_msymbol_address):
2889 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2891 (struct symbol, struct minimal_symbol) <maybe_copied>:
2894 2019-10-02 Tom Tromey <tromey@adacore.com>
2896 * source.c (struct current_source_location): New.
2897 (current_source_key): New global.
2898 (current_source_symtab, current_source_line)
2899 (current_source_pspace): Remove.
2900 (get_source_location): New function.
2901 (get_current_source_symtab_and_line)
2902 (set_default_source_symtab_and_line)
2903 (set_current_source_symtab_and_line)
2904 (clear_current_source_symtab_and_line, select_source_symtab)
2905 (info_source_command, print_source_lines_base)
2906 (info_line_command, search_command_helper, _initialize_source):
2909 2019-10-02 Tom Tromey <tromey@adacore.com>
2911 * source.c (select_source_symtab): Don't call
2912 decode_line_with_current_source.
2914 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2916 * symtab.c (lookup_global_symbol): Search global block.
2918 2019-10-02 Tom Tromey <tromey@adacore.com>
2920 * coffread.c (process_coff_symbol): Update.
2921 * dwarf2read.c (var_decode_location, new_symbol): Update.
2922 * mdebugread.c (parse_symbol): Update.
2923 * objfiles.c (relocate_one_symbol): Update.
2924 * stabsread.c (define_symbol, fix_common_block)
2925 (scan_file_globals): Update.
2926 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2927 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2928 * xcoffread.c (process_xcoff_symbol): Update.
2930 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2932 * MAINTAINERS: Update my email address.
2934 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2936 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2938 (build_type_psymtabs_reader): Update for std::vector.
2939 (build_type_psymtab_dependencies): Likewise.
2940 * dwarf2read.h: Remove use of DEF_VEC_P.
2941 (typedef sig_type_ptr): Delete.
2943 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2945 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2947 (btrace_maint_decode_pt): Likewise, and move allocation of the
2948 vector outside of the loop.
2949 (btrace_maint_update_packets): Update to handle change from VEC to
2951 (btrace_maint_print_packets): Likewise.
2952 (maint_info_btrace_cmd): Likewise.
2953 * btrace.h: Remove use of DEF_VEC_O.
2954 (typedef btrace_pt_packet_s): Delete.
2955 (struct btrace_maint_info) <packets>: Change fromm VEC to
2957 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2959 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2961 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2962 make accesses into the vector constant references.
2963 (btrace_add_pc): Update for std::vector.
2964 (btrace_stitch_bts): Likewise.
2965 (parse_xml_btrace_block): Likewise.
2966 (btrace_maint_update_packets): Likewise.
2967 (btrace_maint_print_packets): Likewise.
2968 (maint_info_btrace_cmd): Likewise.
2969 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2971 (btrace_data::empty): Likewise.
2972 (btrace_data_append): Likewise.
2973 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2974 (typedef btrace_block_s): Delete.
2975 (struct btrace_block): Add constructor.
2976 (struct btrace_data_bts) <blocks>: Change to std::vector.
2977 * nat/linux-btrace.c (perf_event_read_bts): Update for
2979 (linux_read_bts): Likewise.
2981 2019-10-01 Tom Tromey <tom@tromey.com>
2983 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2985 2019-10-01 Tom Tromey <tom@tromey.com>
2987 * stack.c (print_frame, info_frame_command_core): Use
2989 * linux-thread-db.c (try_thread_db_load_1)
2990 (try_thread_db_load_from_pdir_1): Use styled_string.
2991 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2992 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2993 (maybe_print_unsupported_script_warning)
2994 (maybe_print_script_not_found_warning): Use styled_string.
2995 * ada-lang.c (user_select_syms): Use styled_string.
2997 2019-10-01 Tom Tromey <tom@tromey.com>
2999 * p-lang.c (pascal_printstr): Use metadata style.
3000 * value.c (show_convenience): Use metadata style.
3001 * valprint.c (valprint_check_validity, val_print_optimized_out)
3002 (val_print_not_saved, val_print_unavailable)
3003 (val_print_invalid_address, generic_val_print, val_print)
3004 (value_check_printable, val_print_array_elements): Use metadata
3006 * ui-out.h (class ui_out) <field_fmt>: New overload.
3007 <do_field_fmt>: Add style parameter.
3008 * ui-out.c (ui_out::field_fmt): New overload.
3009 * typeprint.c (type_print_unknown_return_type)
3010 (val_print_not_allocated, val_print_not_associated): Use metadata
3012 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3014 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3015 * tracepoint.c (tvariables_info_1): Use metadata style.
3016 * stack.c (print_frame_arg, print_frame_info, print_frame)
3017 (info_frame_command_core): Use metadata style.
3018 * skip.c (info_skip_command): Use metadata style.
3019 * rust-lang.c (rust_print_enum): Use metadata style.
3020 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3022 * python/py-framefilter.c (py_print_single_arg): Use metadata
3024 * printcmd.c (do_one_display, print_variable_and_value): Use
3026 * p-valprint.c (pascal_val_print)
3027 (pascal_object_print_value_fields): Use metadata style.
3028 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3029 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3031 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3032 * m2-valprint.c (m2_print_long_set): Use metadata style.
3033 * m2-typeprint.c (m2_print_type): Use metadata style.
3034 * infcmd.c (print_return_value_1): Use metadata style.
3035 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3036 * f-valprint.c (info_common_command_for_block): Use metadata
3038 * f-typeprint.c (f_type_print_base): Use metadata style.
3039 * expprint.c (print_subexp_standard): Use metadata style.
3040 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3041 * cli/cli-style.h (class cli_style_option): Add constructor.
3042 (metadata_style): Declare.
3043 * cli/cli-style.c (metadata_style): New global.
3044 (_initialize_cli_style): Register metadata style.
3045 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3047 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3048 * c-typeprint.c (c_type_print_base_struct_union)
3049 (c_type_print_base_1): Use metadata style.
3050 * breakpoint.c (watchpoint_value_print)
3051 (print_one_breakpoint_location): Use metadata style.
3052 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3054 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3056 * ada-valprint.c (val_print_packed_array_elements, printstr)
3057 (print_field_values, ada_val_print_ref, ada_val_print): Use
3059 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3061 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3063 * ada-lang.c (user_select_syms): Use metadata style.
3065 2019-10-01 Tom Tromey <tom@tromey.com>
3067 * cli/cli-cmds.c (pwd_command): Style output.
3069 2019-10-01 Pedro Alves <palves@redhat.com>
3070 Tom Tromey <tom@tromey.com>
3072 * symtab.c (print_symbol_info): Use %ps.
3073 (print_msymbol_info): Use %ps.
3074 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3075 * printcmd.c (print_variable_and_value): Use %ps.
3076 * macrocmd.c (show_pp_source_pos): Use %ps.
3077 * infrun.c (print_exited_reason): Use ui_out::message.
3078 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3079 (describe_other_breakpoints): Use ui_out::message and new
3081 (say_where): Use new formats.
3082 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3085 2019-10-01 Pedro Alves <palves@redhat.com>
3086 Tom Tromey <tom@tromey.com>
3088 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3089 (test_gdb_formats): New function.
3090 (run_tests): Call it.
3091 (test_format_specifier): Update.
3092 * utils.h (fputs_filtered): Update comment.
3093 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3094 (fputs_styled_unfiltered): Declare.
3095 * utils.c (fputs_styled_unfiltered): New function.
3096 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3097 (vfprintf_filtered): Update.
3098 (vfprintf_unfiltered, vprintf_filtered): Update.
3099 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3100 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3101 disallow_ui_out_field>: New constants.
3102 (enum class field_kind): New.
3103 (struct base_field_s, struct signed_field_s): New.
3104 (signed_field): New function.
3105 (struct string_field_s): New.
3106 (string_field): New function.
3107 (struct styled_string_s): New.
3108 (styled_string): New function.
3109 (class ui_out) <message>: Add comment.
3110 <vmessage, call_do_message>: New methods.
3111 <do_message>: Add style parameter.
3112 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3114 (ui_out::message): Rewrite.
3115 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3117 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3118 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3119 gdb_extensions parameter.
3120 (class format_piece): Add parameter to constructor.
3121 (n_int_args): New field.
3122 * gdbsupport/format.c (format_pieces::format_pieces): Add
3123 gdb_extensions parameter. Handle '*'.
3124 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3125 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3126 vfprintf_styled_no_gdbfmt.
3127 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3128 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3130 * ui-style.h (struct ui_file_style) <ptr>: New method.
3132 2019-10-01 Tom Tromey <tom@tromey.com>
3134 * unittests/format_pieces-selftests.c: Update. Add final format.
3135 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3136 empty literal pieces.
3138 2019-10-01 Tom Tromey <tom@tromey.com>
3140 * ui-out.h (enum class ui_out_style_kind): Remove.
3141 (class ui_out) <field_string, field_stsream, do_field_string>:
3142 Change type of "style".
3143 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3144 (ui_out::field_string): Update.
3145 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3147 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3148 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3149 * stack.c (print_frame_arg, print_frame_info, print_frame):
3151 * source.c (print_source_lines_base): Update.
3152 * solib.c (info_sharedlibrary_command): Update.
3153 * skip.c (info_skip_command): Update.
3154 * record-btrace.c (btrace_call_history_src_line)
3155 (btrace_call_history): Update.
3156 * python/py-framefilter.c (py_print_frame): Update.
3157 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3159 * mi/mi-out.c (mi_ui_out::do_table_header)
3160 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3161 (mi_ui_out::do_field_string): Update.
3162 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3164 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3166 * cli-out.c (cli_ui_out::do_table_header)
3167 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3168 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3169 (cli_ui_out::do_field_fmt): Update.
3170 * breakpoint.c (print_breakpoint_location): Update.
3171 (update_static_tracepoint): Update.
3173 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3175 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3176 conversion of gdb_datadir.
3177 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3178 remove not needed c_str ().
3180 2019-09-30 Ali Tamur <tamur@google.com>
3182 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3183 (dwarf2_string_attr): Likewise.
3185 2019-09-30 Ali Tamur <tamur@google.com>
3187 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3188 (process_full_type_unit): Likewise.
3189 (dump_die_shallow): Likewise.
3190 (cu_debug_loc_section): Likewise.
3192 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3194 * minsyms.c (compare_minimal_symbols): Rename to...
3195 (minimal_symbol_is_less_than): ...this, and adjust to STL
3196 conventions (return bool, take arguments as references)
3197 (minimal_symbol_reader::install): Call std::sort instead
3200 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3202 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3204 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3205 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3207 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3209 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3210 * psympriv.h (add_psymbol_to_list): Move comment here and update
3213 2019-09-29 Tom de Vries <tdevries@suse.de>
3215 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3216 Use $tmpdir/$(basename "$output_file").dwz instead of
3217 "${output_file}.dwz".
3219 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3222 * hppa-linux-nat.c: Include gdbarch.h.
3224 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3226 * blockframe.c (find_pc_partial_function): Change return type to bool.
3227 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3228 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3229 (stub_gnu_ifunc_resolve_name): Likewise.
3230 * symtab.c (compare_filenames_for_search): Likewise.
3231 (compare_glob_filenames_for_search): Likewise.
3232 (matching_obj_sections): Likewise.
3233 (symbol_matches_domain): Likewise.
3234 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3235 (find_line_pc): Change return type to bool.
3236 (find_line_pc_range): Likewise.
3237 (producer_is_realview): Likewise.
3238 * symtab.h (symbol_matches_domain): Likewise.
3239 (find_pc_partial_function): Likewise.
3240 (find_pc_line_pc_range): Likewise.
3241 (in_gnu_ifunc_stub): Likewise.
3242 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3243 (find_line_pc): Likewise.
3244 (find_line_pc_range): Likewise.
3245 (matching_obj_sections): Likewise.
3246 (find_line_symtab): Change out parameter to bool.
3247 (producer_is_realview): Change return type to bool.
3248 (compare_filenames_for_search): Likewise.
3249 (compare_glob_filenames_for_search): Likewise.
3251 2019-09-26 Tom Tromey <tom@tromey.com>
3253 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3254 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3255 * gdb_usleep.h: Remove.
3256 * gdb_usleep.c: Remove.
3257 * utils.c: Don't include gdb_usleep.h.
3259 2019-09-26 Tom Tromey <tromey@adacore.com>
3261 * python/py-type.c (type_to_type_object): Call check_typedef
3264 2019-09-26 Tom Tromey <tom@tromey.com>
3266 * utils.h (initialize_utils): Don't declare.
3267 * top.c (gdb_init): Don't call initialize_utils.
3268 * utils.c (initialize_utils): Remove. Move contents...
3269 (_initialize_utils): ... here.
3271 2019-09-25 Tom Tromey <tom@tromey.com>
3273 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3274 * utils.h (make_hex_string): Don't declare.
3275 * utils.c (make_hex_string): Remove.
3277 2019-09-24 Tom de Vries <tdevries@suse.de>
3280 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3281 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3283 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3285 * NEWS: Mention new simulator port for PRU.
3287 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3289 * ada-exp.y (write_object_remaining): Update.
3290 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3291 and eliminate the static buffer.
3292 (ada_decode_symbol): Update.
3293 (ada_la_decode): Update.
3294 (ada_sniff_from_mangled_name): Update.
3295 (is_valid_name_for_wild_match): Update.
3296 (ada_lookup_name_info::matches): Update and simplify.
3297 (name_matches_regex): Update.
3298 (ada_add_global_exceptions): Update.
3299 * ada-lang.h (ada_decode): Update signature.
3300 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3301 * dwarf-index-write.c (debug_names::insert): Update.
3303 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3305 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3308 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3310 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3311 Change "nonzero" to "true" in documentation.
3313 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3315 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3316 (_initialize_darwin_solib): Don't set
3317 darwin_so_ops.lookup_lib_global_symbol.
3318 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3319 set_gdbarch_iterate_over_objfiles_in_search_order.
3320 (elf_lookup_lib_symbol): Rename to...
3321 (svr4_iterate_over_objfiles_in_search_order): this, and update
3322 to iterate semantics.
3323 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3324 * solib.c (solib_global_lookup): Remove.
3325 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3326 (solib_global_lookup): Remove.
3327 * symtab.c (lookup_global_or_static_symbol): Remove call to
3328 solib_global_lookup.
3330 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3332 * NEWS: Move entries about default MI version now being
3333 version 3, and about the GDB/MI fix for multi-location
3334 breakpoints to the "since GDB 8.3" section.
3336 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3340 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3342 * NEWS: Mention that Cell/B.E. debugging support was removed.
3343 * MAINTAINERS: Remove spu target.
3345 * config/djgpp/fnchange.lst: Remove entries for removed files.
3347 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3348 spu-multiarch.o, and spu-tdep.o.
3349 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3350 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3351 spu-multiarch.c, and spu-tdep.c.
3352 * spu-linux-nat.c: Remove file.
3353 * spu-multiarch.c: Remove file.
3354 * spu-tdep.c: Remove file.
3355 * spu-tdep.h: Remove file.
3356 * solib-spu.c: Remove file.
3357 * solib-spu.h: Remove file.
3359 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3360 * configure.nat (spu-linux): Remove.
3361 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3362 solib-multiarch.o from gdb_target_obs.
3365 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3367 (ppc_linux_no_features): Update.
3368 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3370 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3371 (tdesc_powerpc_cell64l): Likewise.
3372 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3373 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3375 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3376 Do not include "features/rs6000/powerpc-cell32l.c" or
3377 "features/rs6000/powerpc-cell64l.c".
3378 (ppc_linux_spu_section): Remove.
3379 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3380 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3381 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3382 (ppc_linux_spe_context_lookup): Remove.
3383 (ppc_linux_spe_context_inferior_created): Remove.
3384 (ppc_linux_spe_context_solib_loaded): Remove.
3385 (ppc_linux_spe_context_solib_unloaded): Remove.
3386 (ppc_linux_spe_context): Remove.
3387 (struct ppu2spu_cache): Remove.
3388 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3389 (struct ppu2spu_data): Remove.
3390 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3391 ppu2spu_unwind): Remove.
3392 (ppc_linux_init_abi): Remove Cell/B.E. support.
3393 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3395 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3396 (rs6000/powerpc-cell64l-expedite): Likewise
3397 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3398 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3399 rs6000/powerpc-cell64l.xml.
3400 * features/rs6000/powerpc-cell32l.xml: Remove.
3401 * features/rs6000/powerpc-cell64l.xml: Likewise.
3402 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3403 * features/rs6000/powerpc-cell64l.c: Likewise.
3404 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3405 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3406 * regformats/reg-spu.dat: Remove.
3408 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3409 * corelow.c (struct spuid_list): Remove.
3410 (add_to_spuid_list): Remove.
3411 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3412 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3413 (remote_protocol_features): Remove associated entries.
3414 (_initialize_remote): No longer initialize them.
3415 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3416 * linux-nat.c (SPUFS_MAGIC): Remove.
3417 (linux_proc_xfer_spu): Remove.
3418 (spu_enumerate_spu_ids): Remove.
3419 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3420 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3421 (linux_make_corefile_notes): No longer call it.
3423 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3424 (cooked_write_test): Likewise.
3426 2019-09-20 Tom Tromey <tom@tromey.com>
3428 * NEWS: Mention case-sensitivity of TUI commands.
3429 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3430 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3431 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3433 2019-09-20 Tom Tromey <tom@tromey.com>
3435 * tui/tui-source.c (tui_source_window::set_contents): Use
3436 make_unique_xstrdup.
3437 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3438 make_unique_xstrdup.
3440 2019-09-20 Tom Tromey <tom@tromey.com>
3442 * tui/tui-data.c: Remove separator comments.
3443 * tui/tui-layout.c: Remove separator comments.
3444 * tui/tui-win.c: Remove separator comments.
3445 * tui/tui-wingeneral.c: Remove separator comments.
3447 2019-09-20 Tom Tromey <tom@tromey.com>
3449 * tui/tui.h (strcat_to_buf): Don't declare.
3450 * tui/tui.c (strcat_to_buf): Remove.
3452 2019-09-20 Tom Tromey <tom@tromey.com>
3454 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3456 * tui/tui-source.c (tui_source_window::set_contents)
3457 (tui_source_window::location_matches_p)
3458 (tui_source_window::maybe_update): Update.
3460 2019-09-20 Tom Tromey <tom@tromey.com>
3462 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3464 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3466 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3467 (tui_data_window::line_from_reg_element_no)
3468 (tui_data_window::first_reg_element_no_inline)
3469 (tui_data_window::show_registers)
3470 (tui_data_window::show_register_group)
3471 (tui_data_window::display_registers_from)
3472 (tui_data_window::display_registers_from_line)
3473 (tui_data_window::first_data_item_displayed)
3474 (tui_data_window::delete_data_content_windows)
3475 (tui_data_window::erase_data_content)
3476 (tui_data_window::do_scroll_vertical)
3477 (tui_data_window::refresh_window)
3478 (tui_data_window::check_register_values): Update.
3480 2019-09-20 Tom Tromey <tom@tromey.com>
3482 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3483 (struct tui_locator_window) <full_name, proc_name>: Now
3485 * tui/tui-stack.c (tui_locator_window::make_status_line)
3486 (tui_locator_window::set_locator_fullname)
3487 (tui_locator_window::set_locator_info): Update.
3488 * tui/tui-source.c (tui_source_window::set_contents)
3489 (tui_source_window::showing_source_p): Update.
3491 2019-09-20 Tom Tromey <tom@tromey.com>
3493 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3494 Don't call tui_locator_win_info_ptr.
3496 2019-09-20 Tom Tromey <tom@tromey.com>
3498 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3500 2019-09-20 Tom Tromey <tom@tromey.com>
3502 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3504 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3505 * tui/tui-layout.c (show_source_disasm_command, show_data)
3506 (show_source_or_disasm_and_command): Use 1 as height for locator.
3508 2019-09-20 Tom Tromey <tom@tromey.com>
3510 * tui/tui.c (tui_enable): Update.
3511 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3513 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3515 * tui/tui-data.c (win_resized): Now bool.
3516 (tui_win_resized): Return bool.
3517 (tui_set_win_resized_to): Accept a bool.
3519 2019-09-20 Tom Tromey <tom@tromey.com>
3521 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3522 Change type of "refresh_values_only".
3523 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3524 type of "refresh_values_only".
3526 2019-09-20 Tom Tromey <tom@tromey.com>
3528 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3530 (tui_disassemble): Add "pos" parameter.
3531 (tui_disasm_window::set_contents): Simplify.
3533 2019-09-20 Tom Tromey <tom@tromey.com>
3535 * tui/tui-winsource.h (struct tui_source_window_base)
3536 <show_source_content>: Now private.
3537 * tui/tui-winsource.c
3538 (tui_source_window_base::show_source_content): Don't handle empty
3541 2019-09-20 Tom Tromey <tom@tromey.com>
3543 * tui/tui-layout.c (show_source_disasm_command)
3544 (show_source_or_disasm_and_command): Don't call
3545 show_source_content.
3547 2019-09-20 Tom Tromey <tom@tromey.com>
3549 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3551 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3552 from tui_make_status_line.
3553 (tui_locator_window::rerender): Update.
3555 2019-09-20 Tom Tromey <tom@tromey.com>
3557 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3558 (tui_locator_window::rerender): Update.
3560 2019-09-20 Tom Tromey <tom@tromey.com>
3562 * tui/tui-winsource.h (struct tui_source_window_base)
3563 <~tui_source_window_base>: Don't declare.
3565 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3566 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3568 * tui/tui-source.c (tui_source_window::set_contents): Update.
3569 (tui_source_window::location_matches_p)
3570 (tui_source_window::maybe_update): Update.
3572 2019-09-20 Tom Tromey <tom@tromey.com>
3574 * tui/tui-winsource.h (~tui_source_element): Remove.
3575 (tui_source_element): Update.
3576 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3577 * tui/tui-winsource.c (tui_show_source_line): Update.
3578 * tui/tui-source.c (tui_source_window::set_contents): Update.
3579 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3581 2019-09-20 Tom Tromey <tom@tromey.com>
3583 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3585 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3586 tui_clear_source_windows_detail.
3587 * tui/tui-winsource.h (struct tui_source_window_base)
3588 <clear_detail>: Don't declare.
3589 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3591 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3593 2019-09-20 Tom Tromey <tromey@adacore.com>
3596 * block.c (contained_in): Fix final return value.
3598 2019-09-20 Alan Modra <amodra@gmail.com>
3600 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3601 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3602 (read_indirect_string_from_dwz): Use bfd accessor.
3603 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3604 * machoread.c (macho_symfile_read_all_oso): Likewise.
3605 * solib.c (solib_bfd_open): Likewise.
3607 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3609 * eval.c: Move declaration of overload_resolution to...
3612 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3614 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3615 * arm-linux-tdep.c: Likewise.
3616 * arm-nbsd-nat.c: Likewise.
3617 * arm-tdep.h: Declare arm_apcs_32.
3618 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3620 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3622 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3623 * dwarf2read.h: Declare dwarf_always_disassemble.
3625 2019-09-19 Tom de Vries <tdevries@suse.de>
3628 * source-cache.c (source_cache::ensure): Catch exception thrown during
3629 construction of the highlighter.
3631 2019-09-18 Alan Modra <amodra@gmail.com>
3633 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3634 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3635 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3636 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3637 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3638 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3639 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3640 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3641 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3642 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3643 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3644 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3645 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3646 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3647 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3648 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3649 * mi/mi-interp.c: Update throughout for bfd section macro and
3651 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3652 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3654 2019-09-18 Tom Tromey <tom@tromey.com>
3657 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3659 (tui_enable): Do not call rl_initialize.
3661 2019-09-18 Christian Groessler <chris@groessler.org>
3663 * alpha-linux-nat.c: Include gdbarch.h.
3665 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3667 * ui-file.c: Include cli/cli-style.h.
3668 (term_cli_styling): Remove cli_styling declaration.
3670 2019-09-18 Alan Modra <amodra@gmail.com>
3672 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3673 to bfd_asymbol_section.
3675 2019-09-18 Alan Modra <amodra@gmail.com>
3677 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3678 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3679 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3681 2019-09-18 Alan Modra <amodra@gmail.com>
3683 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3684 * spu-linux-nat.c (spu_bfd_open): Likewise.
3686 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3688 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3689 to bool to match definition in dwarf2read.c.
3691 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3693 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3694 (print_signatures): Likewise.
3695 (trust_pad_over_xvs): Likewise.
3696 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3697 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3698 * arm-linux-nat.c (arm_apcs_32): Likewise.
3699 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3700 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3701 * arm-tdep.c (arm_debug): Likewise.
3702 (arm_apcs_32): Likewise.
3703 * auto-load.c (debug_auto_load): Likewise.
3704 (auto_load_gdb_scripts): Likewise.
3705 (global_auto_load): Likewise.
3706 (auto_load_local_gdbinit): Likewise.
3707 (auto_load_local_gdbinit_loaded): Likewise.
3708 * auto-load.h (global_auto_load): Likewise.
3709 (auto_load_local_gdbinit): Likewise.
3710 (auto_load_local_gdbinit_loaded): Likewise.
3711 * breakpoint.c (disconnected_dprintf): Likewise.
3712 (breakpoint_proceeded): Likewise.
3713 (automatic_hardware_breakpoints): Likewise.
3714 (always_inserted_mode): Likewise.
3715 (target_exact_watchpoints): Likewise.
3716 (_initialize_breakpoint): Update.
3717 * breakpoint.h (target_exact_watchpoints): Change to bool.
3718 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3719 * cli/cli-cmds.c (trace_commands): Likewise.
3720 * cli/cli-cmds.h (trace_commands): Likewise.
3721 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3723 * cli/cli-logging.c (logging_overwrite): Change to bool.
3724 (logging_redirect): Likewise.
3725 (debug_redirect): Likewise.
3726 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3727 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3729 <boolean_option_def>: Update.
3730 (struct flag_option_def): Change default type of Context to bool
3732 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3733 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3734 (get_setshow_command_value_string): Likewise.
3735 * cli/cli-style.c (cli_styling): Change to bool.
3736 (source_styling): Likewise.
3737 * cli/cli-style.h (source_styling): Likewise.
3738 (cli_styling): Likewise.
3739 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3741 * command.h (var_types): Update comment.
3742 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3743 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3745 (debug_compile_cplus_scopes): Likewise.
3746 * compile/compile-internal.h (compile_debug): Likewise.
3747 * compile/compile.c (compile_debug): Likewise.
3748 (struct compile_options) <raw>: Likewise.
3749 * cp-support.c (catch_demangler_crashes): Likewise.
3750 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3751 (usr_cmd_cris_dwarf2_cfi): Likewise.
3752 * csky-tdep.c (csky_debug): Likewise.
3753 * darwin-nat.c (enable_mach_exceptions): Likewise.
3754 * dcache.c (dcache_enabled_p): Likewise.
3755 * defs.h (info_verbose): Likewise.
3756 * demangle.c (demangle): Likewise.
3757 (asm_demangle): Likewise.
3758 * dwarf-index-cache.c (debug_index_cache): Likewise.
3759 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3760 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3761 * dwarf2read.c (check_physname): Likewise.
3762 (use_deprecated_index_sections): Likewise.
3763 (dwarf_always_disassemble): Likewise.
3764 * eval.c (overload_resolution): Likewise.
3765 * event-top.c (set_editing_cmd_var): Likewise.
3766 (exec_done_display_p): Likewise.
3767 * event-top.h (set_editing_cmd_var): Likewise.
3768 (exec_done_display_p): Likewise.
3769 * exec.c (write_files): Likewise.
3770 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3771 (debug_fbsd_nat): Likewise.
3772 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3774 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3775 <backtrace_past_entry> Likewise.
3776 * gdb-demangle.h (demangle): Likewise.
3777 (asm_demangle): Likewise.
3778 * gdb_bfd.c (bfd_sharing): Likewise.
3779 * gdbcore.h (write_files): Likewise.
3780 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3781 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3782 * gdbthread.h (print_thread_events): Likewise.
3783 * gdbtypes.c (opaque_type_resolution): Likewise.
3784 (strict_type_checking): Likewise.
3785 * gnu-nat.c (gnu_debug_flag): Likewise.
3786 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3787 * guile/scm-param.c (pascm_variable): Add boolval.
3788 (add_setshow_generic): Update.
3789 (pascm_param_value): Update.
3790 (pascm_set_param_value_x): Update.
3791 * hppa-tdep.c (hppa_debug): Change to bool..
3792 * infcall.c (may_call_functions_p): Likewise.
3793 (coerce_float_to_double_p): Likewise.
3794 (unwind_on_signal_p): Likewise.
3795 (unwind_on_terminating_exception_p): Likewise.
3796 * infcmd.c (startup_with_shell): Likewise.
3797 * inferior.c (print_inferior_events): Likewise.
3798 * inferior.h (startup_with_shell): Likewise.
3799 (print_inferior_events): Likewise.
3800 * infrun.c (step_stop_if_no_debug): Likewise.
3801 (detach_fork): Likewise.
3802 (debug_displaced): Likewise.
3803 (disable_randomization): Likewise.
3804 (non_stop): Likewise.
3805 (non_stop_1): Likewise.
3806 (observer_mode): Likewise.
3807 (observer_mode_1): Likewise.
3808 (set_observer_mode): Update.
3809 (sched_multi): Change to bool.
3810 * infrun.h (debug_displaced): Likewise.
3811 (sched_multi): Likewise.
3812 (step_stop_if_no_debug): Likewise.
3813 (non_stop): Likewise.
3814 (disable_randomization): Likewise.
3815 * linux-tdep.c (use_coredump_filter): Likewise.
3816 (dump_excluded_mappings): Likewise.
3817 * linux-thread-db.c (auto_load_thread_db): Likewise.
3818 (check_thread_db_on_load): Likewise.
3819 * main.c (captured_main_1): Update.
3820 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3821 xx2_opt, boolean_opt>: Change to bool.
3822 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3823 * maint.c (maintenance_profile_p): Likewise.
3824 (per_command_time): Likewise.
3825 (per_command_space): Likewise.
3826 (per_command_symtab): Likewise.
3827 * memattr.c (inaccessible_by_default): Likewise.
3828 * mi/mi-main.c (mi_async): Likewise.
3829 (mi_async_1): Likewise.
3830 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3831 * nat/fork-inferior.h (startup_with_shell): Likewise.
3832 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3833 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3834 * nios2-tdep.c (nios2_debug): Likewise.
3835 * or1k-tdep.c (or1k_debug): Likewise.
3836 * parse.c (parser_debug): Likewise.
3837 * parser-defs.h (parser_debug): Likewise.
3838 * printcmd.c (print_symbol_filename): Likewise.
3839 * proc-api.c (procfs_trace): Likewise.
3840 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3841 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3842 (set_parameter_value): Update.
3843 (add_setshow_generic): Update.
3844 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3846 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3848 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3849 * record-btrace.c (record_btrace_target::store_registers): Update.
3850 * record-full.c (record_full_memory_query): Change to bool.
3851 (record_full_stop_at_limit): Likewise.
3852 * record-full.h (record_full_memory_query): Likewise.
3853 * remote-notif.c (notif_debug): Likewise.
3854 * remote-notif.h (notif_debug): Likewise.
3855 * remote.c (use_range_stepping): Likewise.
3856 (interrupt_on_connect): Likewise.
3857 (remote_break): Likewise.
3858 * ser-tcp.c (tcp_auto_retry): Likewise.
3859 * ser-unix.c (serial_hwflow): Likewise.
3860 * skip.c (debug_skip): Likewise.
3861 * solib-aix.c (solib_aix_debug): Likewise.
3862 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3863 (spu_auto_flush_cache_p): Likewise.
3864 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3866 (struct info_print_options) <quiet>: Likewise.
3867 * symfile-debug.c (debug_symfile): Likewise.
3868 * symfile.c (auto_solib_add): Likewise.
3869 (separate_debug_file_debug): Likewise.
3870 * symfile.h (auto_solib_add): Likewise.
3871 (separate_debug_file_debug): Likewise.
3872 * symtab.c (basenames_may_differ): Likewise.
3873 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3874 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3875 (struct info_types_options) <quiet>: Likewise.
3876 * symtab.h (demangle): Likewise.
3877 (basenames_may_differ): Likewise.
3878 * target-dcache.c (stack_cache_enabled_1): Likewise.
3879 (code_cache_enabled_1): Likewise.
3880 * target.c (trust_readonly): Likewise.
3881 (may_write_registers): Likewise.
3882 (may_write_memory): Likewise.
3883 (may_insert_breakpoints): Likewise.
3884 (may_insert_tracepoints): Likewise.
3885 (may_insert_fast_tracepoints): Likewise.
3886 (may_stop): Likewise.
3887 (auto_connect_native_target): Likewise.
3888 (target_stop_and_wait): Update.
3889 (target_async_permitted): Change to bool.
3890 (target_async_permitted_1): Likewise.
3891 (may_write_registers_1): Likewise.
3892 (may_write_memory_1): Likewise.
3893 (may_insert_breakpoints_1): Likewise.
3894 (may_insert_tracepoints_1): Likewise.
3895 (may_insert_fast_tracepoints_1): Likewise.
3896 (may_stop_1): Likewise.
3897 * target.h (target_async_permitted): Likewise.
3898 (may_write_registers): Likewise.
3899 (may_write_memory): Likewise.
3900 (may_insert_breakpoints): Likewise.
3901 (may_insert_tracepoints): Likewise.
3902 (may_insert_fast_tracepoints): Likewise.
3903 (may_stop): Likewise.
3904 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3905 (make_thread_apply_all_options_def_group): Change argument from int*
3907 (thread_apply_all_command): Update.
3908 (print_thread_events): Change to bool.
3909 * top.c (confirm): Likewise.
3910 (command_editing_p): Likewise.
3911 (history_expansion_p): Likewise.
3912 (write_history_p): Likewise.
3913 (info_verbose): Likewise.
3914 * top.h (confirm): Likewise.
3915 (history_expansion_p): Likewise.
3916 * tracepoint.c (disconnected_tracing): Likewise.
3917 (circular_trace_buffer): Likewise.
3918 * typeprint.c (print_methods): Likewise.
3919 (print_typedefs): Likewise.
3920 * utils.c (debug_timestamp): Likewise.
3921 (sevenbit_strings): Likewise.
3922 (pagination_enabled): Likewise.
3923 * utils.h (sevenbit_strings): Likewise.
3924 (pagination_enabled): Likewise.
3925 * valops.c (overload_resolution): Likewise.
3926 * valprint.h (struct value_print_options) <prettyformat_arrays,
3927 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3928 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3929 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3931 * windows-nat.c (new_console): Likewise.
3932 (cygwin_exceptions): Likewise.
3933 (new_group): Likewise.
3934 (debug_exec): Likewise.
3935 (debug_events): Likewise.
3936 (debug_memory): Likewise.
3937 (debug_exceptions): Likewise.
3938 (useshell): Likewise.
3939 * windows-tdep.c (maint_display_all_tib): Likewise.
3940 * xml-support.c (debug_xml): Likewise.
3942 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3944 * source.c (prepare_path_for_appending): New function.
3945 (openp): Make use of new function.
3946 (find_and_open_source): Search for the compilation directory and
3947 source file as a relative path beneath the directory search path.
3949 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3951 * source-cache.c (source_cache::get_line_charpos): Catch
3952 exceptions and return false, this matches the behaviour documented
3955 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3957 * ada-tasks.c (info_task): Remove quoting of the task's name.
3959 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3961 * symfile.c (auto_solib_add): Replace comment with a reference
3964 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3966 * NEWS: Mention that gdb can now be compiled with Python 3
3969 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3971 * maint.c (maint_print_section_data::maint_print_section_data):
3972 Force use of 'float log10 (float)' by casting the argument to
3975 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3977 * maint.c: Add 'cmath' include.
3978 (struct maint_print_section_data): New structure.
3979 (print_section_index): New function.
3980 (print_bfd_section_info): Add header comment, small whitespace
3981 cleanup, and update to call new print_section_index function.
3982 (print_objfile_section_info): Likewise.
3983 (maint_obj_section_from_bfd_section): New function.
3984 (print_bfd_section_info_maybe_relocated): New function.
3985 (maintenance_info_sections): Add header comment, always use
3986 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3988 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3990 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3991 inner scope, add check that the objfile has psymtabs before
3992 checking psymtabs_addrmap.
3993 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3995 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3997 * NEWS: Announce that Ada task names are now shown at more places,
3998 and between quotes (except in info task output).
3999 * gdb/ada-tasks.c (task_to_str): New function.
4000 (display_current_task_id): Call task_to_str.
4001 (task_command_1): Likewise.
4002 (print_ada_task_info): In non-mi mode, Properly align headers and data
4003 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4005 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4007 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4008 prstatus.pr_lwp.pr_info instead of making it up.
4010 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4012 * auto-load.c (auto_load_expand_dir_vars): Update.
4013 * defs.h (gdb_datadir): Change to std::string.
4014 (python_libdir): Likewise.
4015 (relocate_gdb_directory): Change return type to std::string.
4016 * guile/guile.c (gdbscm_data_directory): Update.
4017 (initialize_scheme_side): Update.
4018 * jit.c (jit_reader_dir): Change to std::string.
4019 (jit_reader_load_command): Update.
4020 * main.c (gdb_datadir): Change to std::string.
4021 (python_libdir): Likewise.
4022 (set_gdb_data_directory): Update.
4023 (relocate_path): Change to return std::string.
4024 (relocate_gdb_directory): Change to return std::string.
4025 (relocate_gdbinit_path_maybe_in_datadir): Update.
4026 (captured_main_1): Update.
4027 * python/python.c (do_start_initialization): Update.
4028 * top.c (show_gdb_datadir): Update.
4029 * xml-syscall.c (xml_init_syscalls_info): Update.
4030 (init_syscalls_info): Update.
4032 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4034 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4035 out of get_init_files.
4036 (get_init_files): Update.
4038 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4040 * main.c (get_init_files): Change to use std::string.
4041 (captured_main_1): Update.
4042 (print_gdb_help): Update.
4044 2019-09-11 Ali Tamur <tamur@google.com>
4046 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4049 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4051 * dbxread.c (read_dbx_symtab): Update.
4052 * dwarf2read.c (load_partial_dies): Update.
4053 * mdebugread.c (parse_partial_symbols): Update.
4054 (handle_psymbol_enumerators): Update.
4055 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4056 * psymtab.c (add_psymbol_to_bcache): Likewise.
4057 (add_psymbol_to_list): Likewise.
4058 * symtab.c (symbol_set_names): Likewise.
4059 * symtab.h (symbol_set_names): Likewise.
4060 * xcoffread.c (scan_xcoff_symtab): Update.
4062 2019-09-11 Tom Tromey <tom@tromey.com>
4064 * symfile-mem.c (symbol_file_add_from_memory): Use
4066 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4067 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4069 2019-09-10 Tom Tromey <tromey@adacore.com>
4071 * dwarf-index-write.c (write_psymbols): Extend error message.
4072 (debug_names::insert): Add Ada code.
4073 (debug_names::write_psymbols): Remove Ada check.
4074 (debug_names) <m_string_obstack>: New member.
4075 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4076 (gdb_index_symbol_name_matcher::matches): Remove.
4077 (mapped_index_base::find_name_components_bounds): Add "lang"
4079 (mapped_index_base::build_name_components): Also split names
4080 according to Ada syntax.
4081 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4082 type of "match_callback".
4083 (check_match, check_find_bounds_finds)
4084 (dw2_expand_symtabs_matching): Update.
4085 (dw2_debug_names_iterator): Add new constructor.
4086 (dw2_debug_names_map_matching_symbols): New function.
4087 (dw2_debug_names_expand_symtabs_matching): Update.
4088 (dwarf2_debug_names_functions): Use
4089 dw2_debug_names_map_matching_symbols.
4091 2019-09-10 Tom Tromey <tromey@adacore.com>
4093 * dwarf2read.c (dw2_get_file_names_reader): Add the
4094 CU's file name to the results.
4096 2019-09-10 Tom Tromey <tromey@adacore.com>
4098 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4099 map_matching_symbols. Update.
4100 * dwarf2read.c (dw2_map_matching_symbols): Update.
4101 * psymtab.c (match_partial_symbol): Change type; update.
4102 (psym_map_matching_symbols): Likewise.
4103 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4105 * symfile.h (struct quick_symbol_functions)
4106 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4109 2019-09-10 Tom Tromey <tromey@adacore.com>
4111 * psymtab.c (map_block): Remove.
4112 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4113 * symtab.c (iterate_over_symbols_terminated): New function.
4114 * symtab.c (iterate_over_symbols_terminated): Declare.
4116 2019-09-10 Tom Tromey <tromey@adacore.com>
4118 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4119 * language.h (struct language_defn) <la_iterate_over_symbols>:
4121 * symtab.c (iterate_over_symbols): Return bool.
4122 * symtab.h (iterate_over_symbols): Return bool.
4124 2019-09-10 Tom Tromey <tromey@adacore.com>
4126 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4127 (add_nonlocal_symbols): Update.
4128 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4129 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4130 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4131 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4132 Change type of "callback". Remove "data".
4135 2019-09-09 Ali Tamur <tamur@google.com>
4137 * dwarf2read.c (comp_unit_head): Update comment.
4138 (dwarf2_dwo_name): New function declaration.
4139 (dwarf_unit_type_name): New function declaration.
4140 (read_comp_unit_head): Add support for new compilation units,
4141 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4142 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4143 (currently named as "signature") in their header. Also clarify error
4145 (lookup_dwo_id): New function. Returns the dwo id of the given
4147 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4148 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4150 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4151 (dwarf2_dwo_name): Get the dwo name if present.
4152 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4155 2019-09-09 Tom Tromey <tom@tromey.com>
4157 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4159 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161 * python/python.c (do_start_initialization): Make progname_copy static,
4162 to avoid a leak report.
4164 2019-09-08 Tom Tromey <tom@tromey.com>
4166 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4168 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4170 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4171 Change type to gdb::optional<block_enum>.
4172 (dw2_symtab_iter_init): Change block_index parameter type
4173 to gdb::optional<block_enum>.
4174 (dw2_lookup_symbol): Change block_index parameter
4175 type to block_enum.c
4176 (dw2_debug_names_lookup_symbol): Likewise.
4177 * psymtab.c (psym_lookup_symbol): Likewise.
4178 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4179 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4182 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4184 * defs.h (relocate_gdb_directory): Change int to bool in
4185 signature and rename flag to relocatable.
4186 * main.c (relocate_path): Likewise.
4187 (relocate_gdb_directory): Likewise.
4189 2019-09-06 Alan Modra <amodra@gmail.com>
4191 * coffread.c (coff_symfile_read): Constify filename variable.
4192 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4193 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4194 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4195 * solib.c (reload_shared_libraries_1): Likewise.
4196 * symfile.c (reread_symbols): Likewise.
4197 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4198 * solib-darwin.c (darwin_bfd_open): Likewise.
4199 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4201 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4203 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4204 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4206 2019-09-03 Tom Tromey <tromey@adacore.com>
4208 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4210 (has_negatives): Unbias a range type bound.
4211 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4212 * gdbtypes.c (operator==): Handle new field.
4213 (create_range_type): Add "bias" parameter.
4214 (create_static_range_type, resolve_dynamic_range): Update.
4215 * gdbtypes.h (struct range_bounds) <bias>: New member.
4216 (create_range_type): Add bias parameter.
4217 * printcmd.c (print_scalar_formatted): Unbias range types.
4218 * value.c (unpack_long): Unbias range types.
4219 (pack_long): Bias range types.
4221 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4223 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4226 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4228 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4229 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4230 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4231 (compile_probe_arg): Likewise.
4232 * probe.h (get_argument_count): Likewise.
4233 * solib-svr4.c (solib_event_probe_action): Likewise.
4234 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4236 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4238 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4240 (svr4_create_solib_event_breakpoints): ...from here.
4242 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4244 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4245 suffix from warning message.
4247 2019-08-30 Tom Tromey <tom@tromey.com>
4249 * tui/tui-winsource.h (struct tui_source_window_base)
4250 <refresh_all>: Don't declare.
4251 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4253 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4254 tui_show_locator_content.
4255 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4257 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4258 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4261 2019-08-30 Tom Tromey <tom@tromey.com>
4263 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4265 2019-08-30 Tom Tromey <tom@tromey.com>
4267 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4268 Remove unnecessary forward declarations.
4270 2019-08-30 Tom Tromey <tom@tromey.com>
4272 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4274 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4275 tui_show_locator_content.
4277 2019-08-30 Tom Tromey <tom@tromey.com>
4279 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4280 (tui_locator_window::rerender): Rewrite using body of previous
4281 tui_show_locator_content.
4283 2019-08-30 Tom Tromey <tom@tromey.com>
4285 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4286 set_locator_fullname>: New methods.
4287 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4288 Rename from tui_set_locator_fullname.
4289 (tui_locator_window::set_locator_info): Rename from
4290 tui_set_locator_info. Return bool.
4291 (tui_update_locator_fullname, tui_show_frame_info): Update.
4293 2019-08-30 Tom Tromey <tom@tromey.com>
4295 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4297 2019-08-30 Tom Tromey <tom@tromey.com>
4299 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4302 2019-08-30 Tom Tromey <tom@tromey.com>
4304 * tui/tui-wingeneral.c (box_win): Assume win_info and
4305 win_info->handle cannot be NULL.
4307 2019-08-30 Tom Tromey <tom@tromey.com>
4309 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4310 refresh_window>: Declare.
4311 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4313 (tui_data_item_window::rerender): Rename from
4314 tui_display_register.
4315 (tui_data_item_window::refresh_window): New method.
4316 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4319 2019-08-30 Tom Tromey <tom@tromey.com>
4321 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4322 regs_column_count, current_group>: Move later. Now private.
4323 <get_current_group>: New method.
4324 * tui/tui-regs.c (tui_reg_command): Update.
4325 * tui/tui-layout.c (tui_set_layout): Update.
4327 2019-08-30 Tom Tromey <tom@tromey.com>
4329 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4330 (tui_data_window::rerender): Don't call
4331 check_and_display_highlight_if_needed.
4332 (tui_data_window::refresh_all): Remove call to
4335 2019-08-30 Tom Tromey <tom@tromey.com>
4337 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4338 (tui_data_window::display_registers_from)
4339 (tui_data_window::display_reg_element_at_line)
4340 (tui_data_window::display_registers_from_line): Remove checks of
4343 2019-08-30 Tom Tromey <tom@tromey.com>
4345 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4347 * tui/tui-regs.c (tui_data_window::show_registers): Call
4349 (tui_data_window::rerender): Rename from display_all_data.
4350 (tui_data_window::rerender): Remove old implementation.
4352 2019-08-30 Tom Tromey <tom@tromey.com>
4354 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4356 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4358 2019-08-29 Bernhard Wodok <barto@gmx.net>
4359 Sergio Durigan Junior <sergiodj@redhat.com>
4362 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4364 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4366 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4367 when searching for types.
4369 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4371 * f-lang.c (f_language_defn): Use f_print_typedef.
4372 * f-lang.h (f_print_typedef): Declare.
4373 * f-typeprint.c (f_print_typedef): Define.
4375 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4377 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4379 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4381 * cli/cli-utils.c (info_print_options_defs): Delete.
4382 (make_info_print_options_def_group): Delete.
4383 (extract_info_print_options): Delete.
4384 (info_print_command_completer): Delete.
4385 (info_print_args_help): Add extra parameter, and optionally
4386 include text about -n flag.
4387 * cli/cli-utils.h (struct info_print_options): Delete.
4388 (extract_info_print_options): Delete declaration.
4389 (info_print_command_completer): Delete declaration.
4390 (info_print_args_help): Add extra parameter, extend header
4392 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4394 * stack.c (struct info_print_options): New type.
4395 (info_print_options_defs): New file scoped variable.
4396 (make_info_print_options_def_group): New static function.
4397 (info_print_command_completer): New static function.
4398 (info_locals_command): Update to use new local functions.
4399 (info_args_command): Likewise.
4400 (_initialize_stack): Add extra parameter to calls to
4401 info_print_args_help.
4402 * symtab.c (search_symbols): Add extra parameter, use this to
4403 possibly excluse non-debug symbols.
4404 (symtab_symbol_info): Add extra parameter, which is passed on to
4406 (struct info_print_options): New type.
4407 (info_print_options_defs): New file scoped variable.
4408 (make_info_print_options_def_group): New static function.
4409 (info_print_command_completer): New static function.
4410 (info_variables_command): Update to use local functions, and pass
4411 extra parameter through to symtab_symbol_info.
4412 (info_functions_command): Likewise.
4413 (info_types_command): Pass additional argument through to
4415 (rbreak_command): Pass extra argument to search_symbols.
4416 (_initialize_symtab): Add extra arguments for calls to
4417 info_print_args_help, and update help text for 'info variables',
4418 'whereis', and 'info functions' commands.
4419 * symtab.h (search_symbols): Add extra argument to declaration.
4420 * NEWS: Mention new flags.
4422 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4424 * symtab.c (lookup_static_symbol): Call the new function (and move
4425 it down to be next to lookup_global_symbol).
4426 (struct global_sym_lookup_data): Add block_enum member and rename to...
4427 (struct global_or_static_sym_lookup_data): ...this.
4428 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4429 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4430 (lookup_symbol_global_or_static_iterator_cb): ...this.
4431 (lookup_global_or_static_symbol): New function.
4432 (lookup_global_symbol): Call new function.
4434 2019-08-26 Tom de Vries <tdevries@suse.de>
4437 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4438 when pc_probe.prob == NULL.
4440 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4442 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4443 variable symbol_linkage to symbol_linkage_.
4445 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4447 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4448 represent whether the symbol is static, dynamic, or we don't
4451 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4453 * gdb/rx-tdep.c (rx_register_names): New.
4454 (rx_register_name): Delete.
4455 (rx_psw_type): Delete.
4456 (rx_fpsw_type): Delete.
4457 (rx_register_type): Delete.
4458 (rx_gdbarch_init): Convert target-descriptions.
4459 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4460 * gdb/features/Makefile: Add rx.xml.
4461 * gdb/features/rx.xml: New.
4462 * gdb/features/rx.c: Generated.
4463 * gdb/NEWS: Mention target description support.
4465 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4467 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4470 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4472 * configure.ac: Don't check for 'dlfcn.h' (moved to
4473 gdbsupport/common.m4).
4474 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4476 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4477 * compile/compile-c-support.c: Include
4478 'gdbsupport/gdb-dlfcn.h'.
4479 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4480 * gdb-dlfcn.c: Move to...
4481 * gdbsupport/gdb-dlfcn.c: ... here.
4482 * gdb-dlfcn.h: Move to...
4483 * gdbsupport/gdb-dlfcn.h: ... here.
4485 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4487 * nios2-tdep.c (struct reg_value): Improve comments. Make
4488 the offset field signed.
4490 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4492 * python/lib/gdb/__init__.py (_execute_file): New function.
4493 * python/python.c (python_run_simple_file): Call gdb._execute_file
4496 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4498 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4499 all uses as this was never set to anything but a zero value.
4501 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4503 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4505 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4507 * tui/tui-data.h (tui_gen_win_info): Add an =default
4508 move constructor, required by some GCC versions.
4510 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4512 * go32-nat.c (go32_sysinfo): Add hygon_p.
4514 2019-08-20 Tom Tromey <tom@tromey.com>
4516 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4517 line_from_reg_element_no, first_reg_element_no_inline,
4518 display_all_data, delete_data_content_windows,
4519 erase_data_content>: Now private.
4521 2019-08-20 Tom Tromey <tom@tromey.com>
4523 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4524 (tui_unhighlight_win, tui_highlight_win)
4525 (tui_win_info::make_window): Update.
4526 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4528 2019-08-20 Tom Tromey <tom@tromey.com>
4530 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4531 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4532 (MAX_PID_WIDTH): Move to tui-stack.c.
4533 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4534 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4535 (MAX_PID_WIDTH): Move from tui-data.h.
4537 2019-08-20 Tom Tromey <tom@tromey.com>
4539 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4540 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4542 (tui_gen_win_info::make_window): Rename from tui_make_window.
4543 (tui_win_info::make_window): New method.
4544 (tui_gen_win_info::make_visible): Update.
4545 * tui/tui-source.c (tui_source_window::set_contents): Update.
4546 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4547 (tui_data_window::display_registers_from): Update.
4548 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4549 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4553 (struct tui_win_info) <make_window>: Declare.
4554 <can_box>: Now virtual.
4555 <title>: New member.
4556 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4557 * tui/tui-command.c (tui_cmd_window::resize): Update.
4559 2019-08-20 Tom Tromey <tom@tromey.com>
4561 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4562 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4563 (tui_data_window::check_register_values): Update.
4565 2019-08-20 Tom Tromey <tom@tromey.com>
4567 * tui/tui-regs.h (struct tui_data_window): Use
4568 DISABLE_COPY_AND_ASSIGN.
4569 <regs_content>: Change type, removing unique_ptr.
4570 <tui_data_window>: Add move constructor.
4571 * tui/tui-regs.c (tui_data_window::show_registers)
4572 (tui_data_window::show_register_group)
4573 (tui_data_window::display_registers_from)
4574 (tui_data_window::display_registers_from)
4575 (tui_data_window::first_data_item_displayed)
4576 (tui_data_window::delete_data_content_windows)
4577 (tui_data_window::rerender, tui_data_window::refresh_window)
4578 (tui_data_window::check_register_values): Update.
4580 2019-08-20 Tom Tromey <tom@tromey.com>
4582 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4583 show_register_group>: Declare.
4584 (tui_show_register_group): Don't declare.
4585 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4587 (tui_data_window::show_register_group): Rename from
4588 tui_show_register_group.
4589 (tui_data_window::check_register_values, tui_reg_command):
4591 * tui/tui-layout.c (tui_set_layout): Update.
4593 2019-08-20 Tom Tromey <tom@tromey.com>
4595 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4597 (tui_check_register_values): Don't declare.
4598 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4599 from tui_check_register_values.
4600 * tui/tui-hooks.c (tui_register_changed): Update.
4602 2019-08-20 Tom Tromey <tom@tromey.com>
4604 * tui/tui-regs.c (tui_reg_layout): Move later.
4605 (tui_show_registers): Don't enable TUI mode or change layout.
4607 2019-08-20 Tom Tromey <tom@tromey.com>
4609 * tui/tui-regs.h (struct tui_data_item_window)
4610 <~tui_data_item_window>: Remove.
4611 <content>: Now a unique_xmalloc_ptr.
4612 * tui/tui-regs.c (tui_register_format): Return a
4614 (tui_get_register): Update.
4615 (~tui_data_item_window): Remove.
4616 (tui_data_window::display_registers_from, tui_display_register):
4618 * tui/tui-io.h (tui_expand_tabs): Update.
4619 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4620 Remove "col" parameter.
4622 2019-08-20 Tom Tromey <tom@tromey.com>
4624 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4626 * tui/tui-regs.c (~tui_data_item_window): Update.
4628 2019-08-20 Tom Tromey <tom@tromey.com>
4630 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4633 2019-08-20 Tom Tromey <tom@tromey.com>
4635 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4637 2019-08-20 Tom Tromey <tom@tromey.com>
4639 * tui/tui-source.h (struct tui_source_window): Update.
4640 * tui/tui-regs.c (tui_show_registers): Update.
4641 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4642 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4643 (NO_REGS_STRING): Remove defines.
4645 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4647 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4648 unnecessary thread walk if remote doesn't support the packet.
4650 2019-08-19 Tom Tromey <tromey@adacore.com>
4652 * python/py-value.c (value_has_field): Fix indentation.
4654 2019-08-19 Tom Tromey <tromey@adacore.com>
4656 * printcmd.c (do_one_display, info_display_command): Update.
4657 * block.h (contained_in): Return bool. Add allow_nested
4659 * block.c (contained_in): Return bool. Add allow_nested
4662 2019-08-19 Tom Tromey <tom@tromey.com>
4664 * configure: Rebuild.
4665 * configure.ac: Disallow the combination of -static-libstdc++ and
4667 * source-cache.c (get_language_name): Handle rust.
4668 (source_cache::get_source_lines): Ignore highlighting exceptions.
4670 2019-08-16 Tom Tromey <tom@tromey.com>
4672 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4673 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4674 (struct tui_source_window_base) <make_visible, refresh_window,
4675 resize>: Remove methods.
4676 <execution_info>: Remove field.
4677 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4678 (tui_show_source_line, tui_source_window_base)
4679 (~tui_source_window_base): Update.
4680 (tui_source_window_base::resize)
4681 (tui_source_window_base::make_visible)
4682 (tui_source_window_base::refresh_window): Remove.
4683 (tui_source_window_base::update_exec_info): Update.
4684 * tui/tui-source.c (tui_source_window::set_contents): Update.
4685 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4687 2019-08-16 Tom Tromey <tom@tromey.com>
4689 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4690 deprecated_query_hook.
4692 2019-08-16 Tom Tromey <tom@tromey.com>
4694 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4695 (tui_update_source_windows_with_line): Update.
4696 * tui/tui-source.h (struct tui_source_window)
4697 <show_symtab_source>: Declare.
4698 (tui_show_symtab_source): Don't declare.
4699 * tui/tui-source.c (tui_show_symtab_source): Rename from
4700 tui_show_symtab_source.
4702 2019-08-16 Tom Tromey <tom@tromey.com>
4704 * tui/tui-winsource.h (struct tui_source_window_base)
4705 <set_contents>: Declare.
4706 * tui/tui-winsource.c
4707 (tui_source_window_base::update_source_window_as_is): Update.
4708 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4710 (tui_set_source_content): Don't declare.
4711 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4712 tui_set_source_content.
4713 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4715 (tui_set_disassem_content): Don't declare.
4716 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4717 tui_set_disassem_content.
4719 2019-08-16 Tom Tromey <tom@tromey.com>
4721 * tui/tui-winsource.h (struct tui_source_window_base)
4722 <update_breakpoint_info>: Declare.
4723 (tui_update_breakpoint_info): Don't declare.
4724 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4725 (tui_update_all_breakpoint_info): Update.
4726 (tui_source_window_base::update_breakpoint_info): Rename from
4727 tui_update_breakpoint_info.
4728 (tui_source_window_base::update_exec_info): Update.
4730 2019-08-16 Tom Tromey <tom@tromey.com>
4732 * tui/tui-winsource.h (struct tui_source_window_base)
4733 <update_source_window>: Declare.
4734 (tui_update_source_window): Don't declare.
4735 * tui/tui-winsource.c
4736 (tui_source_window_base::update_source_window): Rename from
4737 tui_update_source_window.
4738 (tui_source_window_base::rerender): Update.
4739 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4740 * tui/tui-disasm.c (tui_show_disassem)
4741 (tui_show_disassem_and_update_source)
4742 (tui_disasm_window::maybe_update): Update.
4744 2019-08-16 Tom Tromey <tom@tromey.com>
4746 * tui/tui-winsource.h (struct tui_source_window_base)
4747 <update_source_window_as_is>: Declare.
4748 (tui_update_source_window_as_is): Don't declare.
4749 * tui/tui-winsource.c (tui_update_source_window): Update
4750 (tui_source_window_base::update_source_window_as_is): Rename from
4751 tui_update_source_window_as_is.
4752 (tui_source_window_base::refill): Update.
4753 * tui/tui-source.c (tui_show_symtab_source): Update.
4754 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4757 2019-08-16 Tom Tromey <tom@tromey.com>
4759 * tui/tui-winsource.h (tui_update_source_window)
4760 (tui_update_source_window_as_is): Remove "noerror" parameter.
4761 * tui/tui-winsource.c (tui_update_source_window)
4762 (tui_update_source_window_as_is): Remove "noerror" parameter.
4763 (tui_update_source_windows_with_addr)
4764 (tui_update_source_windows_with_line)
4765 (tui_source_window_base::rerender)
4766 (tui_source_window_base::refill): Update.
4767 * tui/tui-source.h (tui_set_source_content)
4768 (tui_show_symtab_source): Remove "noerror" parameter.
4769 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4771 (tui_show_symtab_source): Likewise.
4772 (tui_source_window::maybe_update): Update.
4773 * tui/tui-disasm.c (tui_show_disassem)
4774 (tui_show_disassem_and_update_source)
4775 (tui_disasm_window::do_scroll_vertical)
4776 (tui_disasm_window::maybe_update): Update.
4778 2019-08-16 Tom Tromey <tom@tromey.com>
4780 * tui/tui.c (tui_is_window_visible): Update.
4781 * tui/tui-wingeneral.c (tui_make_window)
4782 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4783 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4784 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4785 (tui_set_win_height_command, parse_scrolling_args): Update.
4786 * tui/tui-source.c (tui_source_window::style_changed): Update.
4787 * tui/tui-regs.c (tui_show_registers)
4788 (tui_data_window::first_data_item_displayed)
4789 (tui_data_window::delete_data_content_windows)
4790 (tui_check_register_values, tui_reg_command): Update.
4791 * tui/tui-disasm.c (tui_show_disassem): Update.
4792 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4794 <is_visible>: Remove field.
4795 * tui/tui-data.c (tui_next_win, tui_prev_win)
4796 (tui_delete_invisible_windows): Update.
4798 2019-08-16 Tom Tromey <tom@tromey.com>
4800 * tui/tui-winsource.h (struct tui_source_window_base)
4801 <m_has_locator>: Remove.
4802 * tui/tui-layout.c (show_source_disasm_command, show_data)
4803 (show_source_or_disasm_and_command): Update.
4805 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4807 * NEWS (Other MI changes): New subsection.
4808 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4809 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4810 * arch-utils.c (default_get_pc_address_flags): New function.
4811 * arch-utils.h (default_get_pc_address_flags): New declaration.
4812 * gdbarch.sh: Add get_pc_address_flags.
4813 * gdbarch.c: Regenerate.
4814 * gdbarch.h: Likewise.
4815 * stack.c (print_pc): New function.
4816 (print_frame_info) (print_frame): Call print_pc.
4818 2019-08-16 Tom de Vries <tdevries@suse.de>
4820 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4821 print_objfile_section_info.
4823 2019-08-15 Tom Tromey <tom@tromey.com>
4825 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4826 calling update_cmdwin_start_line.
4827 * tui/tui-winsource.h (struct tui_source_window_base)
4828 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4829 <rerender>: Declare.
4830 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4832 (tui_source_window_base::set_new_height): Remove.
4833 (tui_source_window_base::rerender): Rename from
4834 do_make_visible_with_new_height.
4835 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4837 (tui_win_info::make_invisible_and_set_new_height)
4838 (tui_win_info::make_visible_with_new_height): Remove.
4839 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4841 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4842 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4843 do_make_visible_with_new_height>: Don't declare.
4844 <rerender>: Declare.
4845 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4847 (tui_data_window::do_make_visible_with_new_height): Remove.
4848 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4849 call tui_show_locator_content.
4850 (tui_gen_win_info::resize): Call rerender.
4851 (show_source_or_disasm_and_command): Don't call
4852 tui_show_locator_content.
4853 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4855 (struct tui_win_info) <rerender>: Declare.
4856 <set_new_height, make_invisible_and_set_new_height,
4857 make_visible_with_new_height>: Don't declare.
4858 * tui/tui-data.c (tui_win_list::rerender): New method.
4859 * tui/tui-command.h (struct tui_cmd_window)
4860 <do_make_visible_with_new_height>: Don't declare.
4862 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4864 2019-08-15 Tom Tromey <tromey@adacore.com>
4866 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4867 * ada-lang.c (ada_enum_name): Likewise.
4869 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4871 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4873 (GdbOutputErrorFile): Likewise.
4874 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4876 (execute_unwinders): Rename to have a leading underscore.
4877 (auto_load_packages): Likewise.
4878 (global scope): Adjust call to auto_load_packages accordingly.
4879 (GdbSetPythonDirectory): Likewise.
4880 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4881 instead of execute_unwinders.
4883 2019-08-15 Tom Tromey <tom@tromey.com>
4885 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4886 (show_data): Don't change window visibility.
4887 (tui_gen_win_info::resize): Remove special case for command
4888 window. Use wresize, when available.
4889 (show_source_or_disasm_and_command): Don't change window
4891 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4892 <make_visible>: New method.
4893 * tui/tui-command.c (tui_cmd_window::resize): New method.
4895 2019-08-15 Tom Tromey <tom@tromey.com>
4897 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4898 (struct tui_source_windows): New.
4899 * tui/tui-winsource.c (tui_display_main): Update.
4900 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4901 (new_height_ok, parse_scrolling_args): Update.
4902 * tui/tui-layout.c (show_layout, show_data): Update.
4903 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4904 (tui_add_to_source_windows): Don't declare.
4905 * tui/tui-data.c (source_windows, tui_source_windows)
4906 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4908 2019-08-15 Tom Tromey <tom@tromey.com>
4910 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4912 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4913 * tui/tui-layout.c (show_source_disasm_command, show_data):
4915 (tui_gen_win_info::resize): Rename.
4916 (show_source_or_disasm_and_command): Update.
4917 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4920 2019-08-15 Tom Tromey <tom@tromey.com>
4922 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4923 * tui/tui-interp.c (tui_interp::init): Don't call
4924 tui_initialize_static_data.
4925 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4927 2019-08-15 Tom Tromey <tom@tromey.com>
4929 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4930 examine tui_win_list.
4932 2019-08-15 Tom Tromey <tom@tromey.com>
4934 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4935 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4936 tui_clear_source_content.
4937 (tui_clear_source_content): Remove.
4938 (tui_source_window_base::do_erase_source_content): Hoist call to
4940 * tui/tui-stack.c (tui_show_frame_info): Don't call
4941 tui_clear_source_content.
4943 2019-08-15 Tom Tromey <tom@tromey.com>
4945 * tui/tui-winsource.h (struct tui_source_window_base)
4946 <do_erase_source_content>: New method.
4947 <erase_source_content>: New method.
4948 (tui_erase_source_content): Don't declare.
4949 * tui/tui-winsource.c (tui_clear_source_content): Update.
4950 (tui_source_window_base::do_erase_source_content): Rename from
4951 tui_erase_source_content.
4952 (tui_source_window_base::show_source_content): Update.
4953 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4954 * tui/tui-source.h (struct tui_source_window)
4955 <erase_source_content>: New method.
4956 * tui/tui-disasm.h (struct tui_disasm_window)
4957 <erase_source_content>: New method.
4959 2019-08-15 Tom Tromey <tom@tromey.com>
4961 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4962 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4964 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4965 * tui/tui-source.c (tui_set_source_content): Update.
4966 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4968 2019-08-15 Tom Tromey <tom@tromey.com>
4970 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4971 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4973 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4975 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4977 (tui_source_window::maybe_update): Update.
4979 2019-08-15 Tom Tromey <tom@tromey.com>
4981 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4982 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4984 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4986 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4988 (tui_disasm_window::maybe_update): Update.
4990 2019-08-15 Tom Tromey <tom@tromey.com>
4992 * tui/tui-winsource.h (struct tui_source_window_base)
4993 <maybe_update>: Declare.
4994 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4996 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4998 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4999 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5001 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5003 2019-08-15 Tom Tromey <tom@tromey.com>
5005 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5007 2019-08-15 Tom Tromey <tom@tromey.com>
5009 * tui/tui-wingeneral.c: Include tui-stack.h.
5010 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5011 (struct tui_locator_window): Move from tui-data.h.
5012 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5013 (tui_initialize_static_data): Move from tui-data.c.
5014 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5015 (struct tui_locator_window): Move to tui-stack.c.
5016 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5017 (tui_initialize_static_data): Move to tui-stack.c.
5019 2019-08-15 Tom Tromey <tom@tromey.com>
5021 * tui/tui-layout.c (show_source_disasm_command)
5022 (show_source_or_disasm_and_command): Use make_visible method, not
5024 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5027 2019-08-15 Tom Tromey <tom@tromey.com>
5029 * tui/tui-wingeneral.h (tui_make_window): Update.
5030 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5032 (tui_gen_win_info::make_visible): Update.
5033 * tui/tui-regs.c (tui_data_window::display_registers_from):
5035 * tui/tui-layout.c (show_source_disasm_command)
5036 (show_source_or_disasm_and_command): Update.
5037 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5038 (enum tui_box): Remove.
5039 (struct tui_win_info) <can_box>: New method.
5040 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5043 2019-08-15 Tom de Vries <tdevries@suse.de>
5045 * linux-nat-trad.c: Include gdbarch.h.
5047 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5049 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5052 2019-08-14 Tom Tromey <tromey@adacore.com>
5054 * darwin-nat.c: Include gdbarch.h.
5055 * darwin-nat-info.c: Include gdbarch.h.
5057 2019-08-13 Tom Tromey <tom@tromey.com>
5059 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5061 * tui/tui-data.c (tui_initialize_static_data): Update.
5063 2019-08-13 Tom Tromey <tom@tromey.com>
5065 * tui/tui-winsource.h (struct tui_exec_info_window)
5066 <~tui_exec_info_window, maybe_allocate_content, get_content,
5068 (struct tui_source_window_base) <set_exec_info_content,
5069 show_exec_info_content>: Don't declare.
5070 * tui/tui-winsource.c
5071 (tui_exec_info_window::maybe_allocate_content): Remove.
5072 (tui_source_window_base::update_exec_info): Rename from
5073 set_exec_info_content.
5074 (tui_source_window_base::show_exec_info_content)
5075 (tui_source_window_base::update_exec_info): Remove.
5077 2019-08-13 Tom Tromey <tom@tromey.com>
5079 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5081 * tui/tui-winsource.c (tui_update_source_window_as_is)
5082 (tui_update_source_windows_with_addr, tui_erase_source_content):
5084 (tui_clear_exec_info_content): Remove.
5086 2019-08-13 Tom Tromey <tom@tromey.com>
5088 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5090 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5091 call tui_erase_exec_info_content.
5092 (tui_clear_exec_info_content): Rename from
5093 tui_erase_exec_info_content.
5094 (tui_clear_exec_info_content): Delete.
5096 2019-08-13 Tom Tromey <tom@tromey.com>
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <show_exec_info_content>: Declare.
5100 (tui_show_exec_info_content): Don't declare.
5101 * tui/tui-winsource.c
5102 (tui_source_window_base::show_exec_info_content): Rename from
5103 tui_show_exec_info_content.
5104 (tui_source_window_base::update_exec_info): Update.
5106 2019-08-13 Tom Tromey <tom@tromey.com>
5108 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5109 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5110 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5111 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5112 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5113 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5116 2019-08-13 Tom Tromey <tom@tromey.com>
5118 * tui/tui-winsource.h (struct tui_source_window_base)
5119 <update_exec_info>: Declare.
5120 (tui_update_exec_info): Don't declare.
5121 * tui/tui-winsource.c (tui_update_source_window_as_is)
5122 (tui_source_window_base::refresh_all)
5123 (tui_update_all_breakpoint_info): Update.
5124 (tui_source_window_base::update_exec_info): Rename from
5125 tui_update_exec_info.
5126 * tui/tui-stack.c (tui_show_frame_info): Update.
5128 2019-08-13 Tom Tromey <tom@tromey.com>
5130 * tui/tui-winsource.h (struct tui_source_window_base)
5131 <set_exec_info_content>: Declare.
5132 (tui_set_exec_info_content): Don't declare.
5133 * tui/tui-winsource.c
5134 (tui_source_window_base::set_exec_info_content): Rename from
5135 tui_set_exec_info_content.
5136 (tui_update_exec_info): Update.
5138 2019-08-13 Tom Tromey <tom@tromey.com>
5140 * tui/tui-winsource.h (struct tui_source_window_base)
5141 <show_source_content>: Declare.
5142 (tui_show_source_content): Don't declare.
5143 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5144 (tui_source_window_base::show_source_content): Rename from
5145 tui_show_source_content.
5146 (tui_source_window_base::refresh_all): Update.
5147 * tui/tui-layout.c (show_source_disasm_command)
5148 (show_source_or_disasm_and_command): Update.
5150 2019-08-13 Tom Tromey <tom@tromey.com>
5152 * tui/tui-winsource.c (tui_erase_source_content)
5153 (tui_show_source_content, tui_source_window_base::refresh_all):
5155 * tui/tui-wingeneral.h
5156 (tui_check_and_display_highlight_if_needed): Don't declare.
5157 * tui/tui-wingeneral.c
5158 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5159 check_and_display_highlight_if_needed.
5160 * tui/tui-win.c (tui_rehighlight_all)
5161 (tui_win_info::make_visible_with_new_height): Update.
5162 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5163 (tui_data_window::erase_data_content)
5164 (tui_data_window::display_all_data): Update.
5165 * tui/tui-data.h (struct tui_win_info)
5166 <check_and_display_highlight_if_needed>: Declare.
5168 2019-08-13 Tom Tromey <tom@tromey.com>
5170 * tui/tui-win.c (tui_resize_all): Call
5171 tui_delete_invisible_windows.
5172 * tui/tui-layout.c (show_layout): Call
5173 tui_delete_invisible_windows.
5174 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5175 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5177 2019-08-13 Tom Tromey <tom@tromey.com>
5179 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5180 tui_add_win_to_layout.
5182 2019-08-13 Tom Tromey <tom@tromey.com>
5184 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5185 * tui/tui-layout.c (tui_default_win_height): Now static.
5187 2019-08-13 Tom Tromey <tom@tromey.com>
5189 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5191 (show_source_disasm_command, show_source_or_disasm_and_command):
5192 Don't check current layout.
5194 2019-08-13 Tom Tromey <tom@tromey.com>
5196 * tui/tui-wingeneral.c (make_all_visible): Remove.
5197 (tui_make_all_invisible): Simplify.
5198 * tui/tui-layout.c (tui_make_all_invisible): Move from
5199 tui-wingeneral.c; simplify.
5200 (show_layout): Hoist call to tui_make_all_invisible.
5201 (show_data): Don't call tui_make_all_invisible.
5203 2019-08-13 Tom Tromey <tom@tromey.com>
5205 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5206 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5208 2019-08-13 Tom Tromey <tom@tromey.com>
5210 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5212 (show_source_disasm_command, show_data)
5213 (show_source_or_disasm_and_command): Don't use
5214 tui_set_current_layout_to.
5215 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5216 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5218 (tui_set_current_layout_to): Remove.
5220 2019-08-13 Tom Tromey <tom@tromey.com>
5222 * tui/tui-layout.c (tui_set_layout): Update.
5223 * tui/tui-data.h (struct tui_layout_def): Remove.
5224 (tui_layout_def): Don't declare.
5225 * tui/tui-data.c (layout_def): Remove.
5226 (tui_layout_def): Remove.
5228 2019-08-13 Tom Tromey <tom@tromey.com>
5230 * tui/tui-winsource.h (struct tui_source_window_base)
5231 <clear_detail>: No longer "override".
5232 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5233 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5234 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5235 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5237 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5239 2019-08-13 Tom Tromey <tromey@adacore.com>
5241 * tracepoint.c: Don't include readline.h or history.h.
5243 2019-08-12 Tom Tromey <tom@tromey.com>
5245 * configure: Rebuild.
5246 * configure.ac: Check for readline 7.
5247 * NEWS: Mention readline 7 requirement.
5250 2019-08-12 Tom Tromey <tom@tromey.com>
5252 * mingw-hdep.c (gdb_select): Remove readline hack.
5254 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5256 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5257 when the function fails.
5259 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5261 * s390-tdep.c (s390_type_align): New function.
5262 (s390_gdbarch_init): Set it as type_align gdbarch method.
5264 2019-08-09 Tom de Vries <tdevries@suse.de>
5267 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5268 pc_low with relocation offset.
5270 2019-08-07 Tom Tromey <tromey@adacore.com>
5272 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5273 (print_frame_args): Update.
5274 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5276 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5277 * frame.h (struct frame_arg): Add initializers.
5278 <error>: Now a unique_xmalloc_ptr.
5280 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5282 * NEWS: Expand the Pointer Authentication entry.
5283 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5284 (aarch64_frame_unmask_lr): ... to this.
5285 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5286 Call aarch64_frame_unmask_lr.
5287 * frame.c (struct frame_info): Add "masked" variable.
5288 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5289 (fprint_frame): Check for masked pc.
5290 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5292 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5293 * stack.c (print_frame): Check for masked pc.
5295 2019-08-06 Tom Tromey <tom@tromey.com>
5297 * stabsread.c (patch_block_stabs, read_one_struct_field)
5298 (read_enum_type): Use obstack_strndup.
5299 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5300 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5301 * dwarf2read.c (guess_full_die_structure_name)
5302 (anonymous_struct_prefix): Use obstack_strndup.
5303 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5304 * c-exp.y (yylex): Use obstack_strndup.
5305 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5306 (write_var_or_type): Use obstack_strndup.
5308 2019-08-06 Tom Tromey <tom@tromey.com>
5310 * symfile.c (reread_symbols): Use obstack_strdup.
5311 * stabsread.c (read_type): Use obstack_strdup.
5312 * gdb_obstack.h (obstack_strdup): New overload.
5313 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5314 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5315 (dwarf2_canonicalize_name): Use obstack_strdup.
5316 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5317 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5320 2019-08-06 Tom Tromey <tom@tromey.com>
5322 * gdb_obstack.h (obstack_strdup): Define.
5323 * gdb_obstack.c (obstack_strdup): Don't define.
5325 2019-08-06 Tom Tromey <tom@tromey.com>
5327 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5329 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5331 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5332 * stabsread.c (common_block_start): Use obstack_strdup.
5333 * objfiles.c (set_objfile_main_name, objfile): Use
5335 * namespace.c (add_using_directive): Use obstack_strdup.
5336 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5337 * jit.c (finalize_symtab): Use obstack_strdup.
5338 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5339 (guess_partial_die_structure_name, partial_die_info::fixup)
5340 (dwarf2_name): Use obstack_strdup.
5341 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5343 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5344 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5346 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5348 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5350 * unittests/help-doc-selftests.c: New file.
5351 * Makefile.in: Add the new file.
5353 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5355 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5356 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5357 the full first line, except when FOR_VALUE_PREFIX. In this case,
5358 the trailing '.' is not output, and the first character is uppercased.
5359 (print_help_for_command): Update call to print_doc_line.
5360 (print_doc_of_command): Likewise.
5361 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5362 * cli/cli-option.c (append_indented_doc): Do not append newline.
5363 (build_help_option): Append newline after first appended_indented_doc
5364 only if a second call is done.
5365 (build_help): Append 2 new lines before each option, except the first
5367 * compile/compile.c (_initialize_compile): Add new lines after
5368 %OPTIONS%, when not at the end of the help.
5369 Change help doc or code
5370 producing the help doc to respect the invariants.
5371 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5372 Also removed the new line after 'Options:', as all other commands
5373 do not put an empty line between 'Options:' and the first option.
5374 * printcmd.c (_initialize_printcmd): Likewise.
5375 * stack.c (_initialize_stack): Likewise.
5376 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5377 incorrectly telling COMMAND is optional.
5378 * ada-lang.c (_initialize_ada_language): Change help doc or code
5379 producing the help doc to respect the invariants.
5380 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5381 * breakpoint.c (_initialize_breakpoint): Likewise.
5382 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5383 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5384 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5385 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5386 _initialize_cli_style): Likewise.
5387 * corelow.c (core_target_info): Likewise.
5388 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5389 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5390 * filesystem.c (_initialize_filesystem): Likewise.
5391 * frame.c (_initialize_frame): Likewise.
5392 * gnu-nat.c (add_task_commands): Likewise.
5393 * infcall.c (_initialize_infcall): Likewise.
5394 * infcmd.c (_initialize_infcmd): Likewise.
5395 * interps.c (_initialize_interpreter): Likewise.
5396 * language.c (_initialize_language): Likewise.
5397 * linux-fork.c (_initialize_linux_fork): Likewise.
5398 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5399 * maint.c (_initialize_maint_cmds): Likewise.
5400 * memattr.c (_initialize_mem): Likewise.
5401 * printcmd.c (_initialize_printcmd): Likewise.
5402 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5404 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5405 * record-btrace.c (_initialize_record_btrace): Likewise.
5406 * record-full.c (_initialize_record_full): Likewise.
5407 * record.c (_initialize_record): Likewise.
5408 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5409 * regcache.c (_initialize_regcache): Likewise.
5410 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5411 _initialize_remote): Likewise.
5412 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5413 * serial.c (_initialize_serial): Likewise.
5414 * skip.c (_initialize_step_skip): Likewise.
5415 * source.c (_initialize_source): Likewise.
5416 * stack.c (_initialize_stack): Likewise.
5417 * symfile.c (_initialize_symfile): Likewise.
5418 * symtab.c (_initialize_symtab): Likewise.
5419 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5420 * top.c (init_main): Likewise.
5421 * tracefile-tfile.c (tfile_target_info): Likewise.
5422 * tracepoint.c (_initialize_tracepoint): Likewise.
5423 * tui/tui-win.c (_initialize_tui_win): Likewise.
5424 * utils.c (add_internal_problem_command): Likewise.
5425 * valprint.c (value_print_option_defs): Likewise.
5427 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5430 * configure.ac: Drop enable-libmcheck support.
5431 * configure, config.in: Rebuild.
5432 * libmcheck.m4: Remove.
5433 * acinclude.m4: Don't include it.
5434 * Makefile.in: Don't distribute it.
5435 * top.c (print_gdb_configuration): Don't mention it.
5437 2019-08-06 Tom Tromey <tom@tromey.com>
5439 * utils.c (set_output_style): Sometimes pass stream to
5441 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5442 * record-btrace.c (btrace_insn_history): Update.
5443 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5445 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5446 Update initializers.
5447 <m_uiout>: New field.
5449 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5450 Remove "uiout" parameter.
5451 (dump_insns): Update.
5452 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5453 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5455 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5457 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5458 (error_in_psymtab_expansion): Likewise.
5459 (lookup_symbol_via_quick_fns): Likewise.
5460 (basic_lookup_transparent_type_quick): Likewise.
5461 (basic_lookup_transparent_type_1): Likewise.
5463 2019-08-06 Tom Tromey <tromey@adacore.com>
5465 * source.c (last_source_error): Now bool.
5466 (print_source_lines_base): Make "noprint" bool. Only open
5467 source file when last_source_visited changes.
5469 2019-08-06 Tom Tromey <tromey@adacore.com>
5471 * annotate.c (annotate_source_line): Use g_source_cache.
5472 * source-cache.c (source_cache::get_plain_source_lines): Change
5473 parameters. Populate m_offset_cache.
5474 (source_cache::ensure): New method.
5475 (source_cache::get_line_charpos): New method.
5476 (extract_lines): Move lower. Change parameters.
5477 (source_cache::get_source_lines): Move lower.
5478 * source-cache.h (class source_cache): Update comment.
5479 <get_line_charpos>: New method.
5480 <get_source_lines>: Update comment.
5481 <clear>: Clear m_offset_cache.
5482 <get_plain_source_lines>: Change parameters.
5483 <ensure>: New method
5484 <m_offset_cache>: New member.
5485 * source.c (forget_cached_source_info_for_objfile): Update.
5486 (info_source_command): Use g_source_cache.
5487 (find_source_lines, open_source_file_with_line_charpos): Remove.
5488 (print_source_lines_base, search_command_helper): Use g_source_cache.
5489 * source.h (open_source_file_with_line_charpos): Don't declare.
5490 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5491 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5494 2019-08-06 Tom Tromey <tromey@adacore.com>
5496 * source-cache.c (source_cache::get_plain_source_lines):
5497 Remove "first_line" and "last_line" parameters.
5498 (source_cache::get_source_lines): Cache plain text.
5499 * source-cache.h (class source_cache)
5500 <get_plain_source_lines>: Update.
5502 2019-08-06 Tom Tromey <tromey@adacore.com>
5504 * source-cache.c (extract_lines): No longer a method.
5505 Changed type of parameter. Include final newline.
5506 (selftests::extract_lines_test): New function.
5507 (_initialize_source_cache): Likewise.
5508 * source-cache.h (class source_cache)
5509 <extract_lines>: Don't declare.
5511 2019-08-06 Tom Tromey <tromey@adacore.com>
5513 * breakpoint.c (init_breakpoint_sal): Update.
5514 (breakpoint): Update.
5515 * breakpoint.h (struct breakpoint) <filter>: Now a
5518 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5520 * NEWS: Mention dictionary access on blocks.
5521 * python/py-block.c (blpy_getitem): New function.
5522 (block_object_as_mapping): New struct.
5523 (block_object_type): Use new struct for tp_as_mapping field.
5525 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5527 * objfiles.h (objfile): Add a comment describing partial symbols.
5529 2019-08-05 Tom Tromey <tromey@adacore.com>
5531 * compile/compile.c (_initialize_compile): Use _(), not N_().
5532 * thread.c (_initialize_thread): Use _(), not N_().
5533 * stack.c (_initialize_stack): Use _(), not N_().
5534 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5536 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5538 * dwarf2read.c (struct dw2_symtab_iterator):
5539 <want_specific_block>: Remove.
5540 <block_index>: Change type to gdb::optional.
5541 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5542 change type of BLOCK_INDEX parameter to gdb::optional.
5543 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5544 (dw2_lookup_symbol): Don't pass argument for
5545 WANT_SPECIFIC_BLOCK.
5546 (dw2_expand_symtabs_for_function): Don't pass argument for
5547 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5548 (class dw2_debug_names_iterator)
5549 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5550 parameter, change BLOCK_INDEX type to gdb::optional.
5551 <m_want_specific_block>: Remove.
5552 <m_block_index>: Change type to gdb::optional.
5553 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5554 gdb::optional. Re-write in function of gdb::optional.
5555 (dw2_debug_names_lookup_symbol): Don't pass argument for
5556 WANT_SPECIFIC_BLOCK.
5557 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5558 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5561 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5563 * NEWS: Mention changes to "info sources" command.
5565 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5567 * symtab.c (filename_partial_match_opts): New struct type.
5568 (struct output_source_filename_data): New members
5569 regexp, c_regexp, partial_match.
5570 (output_source_filename): Use new members to decide to print file.
5571 (info_sources_option_defs): New variable.
5572 (make_info_sources_options_def_group, print_info_sources_header,
5573 info_sources_command_completer):
5575 (info_sources_command): Read new optional arguments.
5576 (_initialize_symtab): Update info sources help.
5578 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5580 * ada-lang.c (exception_support_info_v0): Renamed from...
5581 (default_exception_support_info): ... this. Create new
5583 (ada_has_this_exception_support): Look up catch_handlers_sym.
5584 (ada_exception_support_info_sniffer): Try v0 after default.
5586 2019-08-01 Tom Tromey <tromey@adacore.com>
5588 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5591 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5593 * s12z-tdep.c: Fix include path for s12z-opc.h.
5595 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5597 * NEWS: Require GNU make 3.82.
5599 2019-07-16 Tom Tromey <tom@tromey.com>
5601 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5604 2019-07-30 Tom Tromey <tromey@adacore.com>
5606 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5608 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5610 * printcmd.c (print_address_symbolic): Print negative offsets.
5611 (build_address_symbolic): Force signed arithmetic when computing
5614 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5616 PR/24474: Add a function to lookup static variables.
5617 * NEWS: Mention this new function.
5618 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5619 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5620 * python/python.c (python_GdbMethods): Add new function.
5622 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5624 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5625 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5626 (objfpy_lookup_static_symbol): New function.
5627 (objfile_object_methods): Add new functions.
5629 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5631 * NEWS: Mention 'set|show print frame-info'. Mention new
5632 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5633 backtrace argument. Mention that python frame filtering code
5634 is now consistent with what 'backtrace' command prints.
5636 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5638 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5640 (print_frame_info_auto, print_frame_info_source_line,
5641 print_frame_info_location, print_frame_info_source_and_location,
5642 print_frame_info_location_and_address, print_frame_info_short_location):
5644 (struct frame_print_options): New member print_frame_info.
5645 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5646 * stack.h (get_user_print_what_frame_info): New declaration.
5647 (frame_show_address): New declaration.
5648 * stack.c (print_frame_arguments_choices): New value 'presence'.
5649 (print_frame_info_auto, print_frame_info_source_line,
5650 print_frame_info_location, print_frame_info_source_and_location,
5651 print_frame_info_location_and_address, print_frame_info_short_location,
5652 print_frame_info_choices, print_frame_info_print_what): New definitions.
5653 (print_frame_args): Only print dots for args if print frame-arguments
5655 (frame_print_option_defs): New element for "frame-info".
5656 (get_user_print_what_frame_info): New function.
5657 (frame_show_address): Make non static. Move comment to stack.h.
5658 (print_frame_info_to_print_what): New function.
5659 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5660 to decide what to print.
5661 (backtrace_command_1): Handle the new print_frame_arguments_presence
5663 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5664 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5665 (py_print_frame): In non-mi mode, use LOCATION as default for
5666 print_what, similarly to frame information printed directly by
5667 backtrace command. Handle frame-info user option in non MI mode.
5669 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5671 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5672 Add case for debugging 32-bit target on 64-bit host. Revise
5675 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5677 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5678 instead of find_function_entry_range_from_pc.
5680 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5682 * stack.c (find_frame_funname): Remove code which preferred
5683 minsym over symtab sym in "certain pathological cases".
5685 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5686 parameter. Change type of "do_demangle" to bool.
5687 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5688 Pass suitable "prefer_sym_over_minsym" flag to
5689 build_address_symbolic(). Don't output "+" for negative offsets.
5690 * printcmd.c (print_address_symbolic): Update invocation of
5691 build_address_symbolic to include a "prefer_sym_over_minsym"
5693 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5694 Restrict cases in which use of minimal symbol is preferred to that
5695 of a found symbol. Update comments.
5697 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5698 for entry pc when entry pc is out of range for that FDE.
5700 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5703 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5706 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5708 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5709 this function's Python signature.
5712 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5714 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5715 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5716 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5717 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5718 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5721 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5723 * h8300-tdep.c (h8300_register_name_common): New.
5724 h8300_register_name): Use h8300_register_name_common.
5725 (h8300s_register_name): Likewise.
5726 (h8300sx_register_name): Likewise.
5727 (h8300h_register_nam): New.
5728 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5731 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5733 * arm-tdep.c (arm_skip_cmse_entry): New function.
5734 (arm_is_sgstubs_section): New function.
5735 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5737 2019-07-22 Tom Tromey <tom@tromey.com>
5739 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5742 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5744 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5747 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5749 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5750 so that GDB doesn't match any msymbols when searching in the
5752 (print_symbol_info): Print using typedef_print or type_print based
5753 on the type of the symbol. Add updated FIXME comment moved from...
5754 (_initialize_symtab): ... move and update FIXME comment to above.
5756 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5758 * NEWS: Mention adding -q option to "info types".
5759 * symtab.c (struct info_types_options): New struct.
5760 (info_types_options_defs): New variable.
5761 (make_info_types_options_def_group): New function.
5762 (info_types_command): Use gdb::option framework to parse options.
5763 (info_types_command_completer): New function.
5764 (_initialize_symtab): Extend the help text on "info types" and
5765 register command completer.
5767 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5769 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5770 (lookup_symbol_in_objfile): Change int to block_enum and add a
5771 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5773 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5775 * MAINTAINERS (Write After Approval): Add self.
5777 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5779 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5780 instruction to the dummy code region.
5782 2019-07-19 Tom Tromey <tromey@adacore.com>
5784 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5785 (ARGSUSED, PARAMS, __func__): Remove rules.
5787 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5789 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5790 * features/arm/arm-with-iwmmxt.c: Remove.
5791 * features/arm/arm-with-iwmmxt.xml: Remove.
5792 * features/arm/arm-with-m-fpa-layout.c: Remove.
5793 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5794 * features/arm/arm-with-m-vfp-d16.c: Remove.
5795 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5796 * features/arm/arm-with-m.c: Remove.
5797 * features/arm/arm-with-m.xml: Remove.
5798 * features/arm/arm-with-neon.c: Remove.
5799 * features/arm/arm-with-neon.xml: Remove.
5800 * features/arm/arm-with-vfpv2.c: Remove.
5801 * features/arm/arm-with-vfpv2.xml: Remove.
5802 * features/arm/arm-with-vfpv3.c: Remove.
5803 * features/arm/arm-with-vfpv3.xml: Remove.
5805 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5807 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5809 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5811 * arch/aarch32.c (aarch32_create_target_description): Create
5812 target descriptions using features.
5813 * arch/arm.c (arm_create_target_description)
5814 (arm_create_mprofile_target_description): Likewise.
5815 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5817 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5819 * Makefile.in: Add new files.
5820 * aarch32-tdep.c: New file.
5821 * aarch32-tdep.h: New file.
5822 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5823 Call aarch32_read_description.
5824 * arch/aarch32.c: New file.
5825 * arch/aarch32.h: New file.
5826 * arch/arm.c (arm_create_target_description)
5827 (arm_create_mprofile_target_description): New function.
5828 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5829 (arm_create_target_description)
5830 (arm_create_mprofile_target_description): New declaration.
5831 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5832 read_description functions.
5833 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5835 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5836 * arm-tdep.c (tdesc_arm_list): New variable.
5837 (arm_register_g_packet_guesses): Call create description functions.
5838 (arm_read_description) (arm_read_mprofile_description): New
5840 * arm-tdep.h (arm_read_description)
5841 (arm_read_mprofile_description): Add declaration.
5842 * configure.tgt: Add new files.
5844 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5846 * top.c (new_ui_command): Open specified terminal just once.
5848 2019-07-18 Tom Tromey <tromey@adacore.com>
5850 * symtab.c (main_name): Constify return type.
5851 * symfile.c (set_initial_language): Update.
5852 * symtab.h (main_name): Constify return type.
5854 2019-07-17 Tom Tromey <tom@tromey.com>
5856 * tui/tui-winsource.c (tui_update_source_window)
5857 (tui_update_source_window_as_is)
5858 (tui_update_source_windows_with_line): Remove return.
5859 * tui/tui-disasm.c (tui_show_disassem)
5860 (tui_show_disassem_and_update_source): Remove return.
5861 * tui/tui.c (tui_reset): Remove return.
5862 * tui/tui-wingeneral.c
5863 (tui_check_and_display_highlight_if_needed): Remove return.
5865 2019-07-17 Tom Tromey <tom@tromey.com>
5867 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5869 2019-07-17 Tom Tromey <tom@tromey.com>
5871 * tui/tui-winsource.h (struct tui_exec_info_window)
5872 (struct tui_source_window_base): Move from tui-data.h.
5873 * tui/tui-winsource.c: Move many method definitions from
5874 elsewhere. Remove "structuring" comments.
5875 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5876 (tui_source_window_base::refresh_window): Move to
5878 * tui/tui-win.c (tui_source_window_base::refresh_all)
5879 (tui_source_window_base::update_tab_width)
5880 (tui_source_window_base::set_new_height)
5881 (tui_source_window_base::do_make_visible_with_new_height): Move to
5883 * tui/tui-source.h: Update.
5884 * tui/tui-source.c (tui_source_window_base::reset): Move to
5886 * tui/tui-disasm.h: Update.
5887 * tui/tui-data.h (struct tui_exec_info_window): Move to
5889 (struct tui_source_window_base): Likewise.
5890 * tui/tui-data.c (tui_source_window_base::clear_detail)
5891 (tui_source_window_base, ~tui_source_window_base): Move to
5894 2019-07-17 Tom Tromey <tom@tromey.com>
5896 * tui/tui-win.c (tui_resize_all)
5897 (tui_source_window_base::update_tab_width)
5898 (tui_adjust_win_heights): Update.
5899 (tui_win_info::make_invisible_and_set_new_height): Rename from
5900 make_invisible_and_set_new_height.
5901 * tui/tui-data.h (struct tui_win_info)
5902 <make_invisible_and_set_new_height>: New method.
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5906 * tui/tui.c: Update.
5907 * tui/tui-source.h (struct tui_source_window): Move from
5909 * tui/tui-layout.c: Update.
5910 * tui/tui-disasm.c: Update.
5911 * tui/tui-data.h (struct tui_source_window): Move to
5914 2019-07-17 Tom Tromey <tom@tromey.com>
5916 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5918 * tui/tui-data.h (struct tui_disasm_window): Move to
5921 2019-07-17 Tom Tromey <tom@tromey.com>
5923 * tui/tui-regs.h (struct tui_data_item_window): Move from
5925 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5926 * tui/tui-data.h (struct tui_data_item_window): Move to
5928 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5930 2019-07-17 Tom Tromey <tom@tromey.com>
5932 * tui/tui.c: Update.
5933 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5934 (tui_cmd_window::max_height): Move to tui-command.c.
5935 * tui/tui-layout.c: Update.
5936 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5937 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5939 * tui/tui-command.h (struct tui_cmd_window): Move from
5941 * tui/tui-command.c: Remove "structuring" comments.
5942 (tui_cmd_window::clear_detail)
5943 (tui_cmd_window::do_make_visible_with_new_height)
5944 (tui_cmd_window::max_height): Move from elsewhere.
5946 2019-07-17 Tom Tromey <tom@tromey.com>
5948 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5950 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5951 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5955 * tui/tui.c: Update.
5956 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5958 * tui/tui-windata.h: Remove file.
5959 * tui/tui-windata.c: Remove file.
5960 * tui/tui-win.c (tui_data_window::set_new_height)
5961 (tui_data_window::do_make_visible_with_new_height): Move to
5963 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5964 * tui/tui-regs.c: Remove "structuring" comments.
5965 (tui_data_window::first_data_item_displayed)
5966 (tui_data_window::delete_data_content_windows)
5967 (tui_data_window::erase_data_content)
5968 (tui_data_window::display_all_data)
5969 (tui_data_window::refresh_all)
5970 (tui_data_window::do_scroll_vertical)
5971 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5972 (tui_data_window::do_make_visible_with_new_height)
5973 (tui_data_window::refresh_window): Move from elsewhere.
5974 (_initialize_tui_regs): Move to end of file.
5975 * tui/tui-layout.c: Update.
5976 * tui/tui-hooks.c: Update.
5977 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5978 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5980 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5982 2019-07-17 Tom Tromey <tom@tromey.com>
5984 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5987 2019-07-17 Tom Tromey <tom@tromey.com>
5989 * tui/tui-win.c (tui_source_window_base::set_new_height)
5990 (tui_source_window_base::do_make_visible_with_new_height): Use
5991 m_has_locator field directly.
5992 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5994 (struct tui_source_window_base) <has_locator>: Likewise.
5996 2019-07-17 Tom Tromey <tom@tromey.com>
5998 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6000 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6002 * tui/tui-win.c (tui_source_window_base::set_new_height)
6003 (tui_source_window_base::set_new_height)
6004 (make_invisible_and_set_new_height)
6005 (tui_source_window_base::do_make_visible_with_new_height)
6006 (tui_source_window_base::do_make_visible_with_new_height):
6008 * tui/tui-layout.c (show_source_disasm_command, show_data)
6009 (show_source_or_disasm_and_command): Update.
6010 * tui/tui-layout.c (show_layout): Update.
6012 2019-07-17 Tom Tromey <tom@tromey.com>
6014 * tui/tui-layout.c (make_data_window): Remove.
6015 (show_data): Unify creation and re-initialization cases.
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6019 * tui/tui-layout.c (make_source_window, make_disasm_window):
6021 (show_data): Unify creation and re-initialization cases.
6023 2019-07-17 Tom Tromey <tom@tromey.com>
6025 * tui/tui-layout.c (make_command_window): Remove.
6026 (show_source_disasm_command, show_source_or_disasm_and_command):
6027 Unify creation and re-initialization cases.
6029 2019-07-17 Tom Tromey <tom@tromey.com>
6031 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6032 creation and re-initialization cases.
6034 2019-07-17 Tom Tromey <tom@tromey.com>
6036 * tui/tui-regs.c (tui_get_register): Return void.
6038 2019-07-17 Tom Tromey <tom@tromey.com>
6040 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6043 2019-07-17 Tom Tromey <tom@tromey.com>
6045 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6048 2019-07-17 Tom Tromey <tom@tromey.com>
6050 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6051 * tui/tui-regs.c (tui_reg_layout): New function.
6052 (tui_show_registers, tui_reg_command): Use it.
6053 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6054 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6056 (tui_layout_command): Remove.
6058 2019-07-17 Tom Tromey <tom@tromey.com>
6060 * tui/tui-layout.h (tui/tui-layout): Return void.
6061 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6063 2019-07-17 Tom Tromey <tom@tromey.com>
6065 * tui/tui-layout.c (show_source_disasm_command, show_data):
6067 (reset_locator): Remove.
6068 (show_source_or_disasm_and_command): Update.
6070 2019-07-17 Tom Tromey <tom@tromey.com>
6072 * tui/tui-source.c (tui_source_window_base::reset): Remove
6074 * tui/tui-layout.c (make_command_window, make_source_window)
6075 (make_disasm_window, make_data_window)
6076 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6077 (reset_locator, show_source_or_disasm_and_command): Update.
6078 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6080 (struct tui_source_window_base) <reset>: Likewise.
6082 2019-07-17 Tom Tromey <tom@tromey.com>
6084 * tui/tui-layout.c (show_source_disasm_command): Use
6086 (reset_locator): New function.
6087 (init_and_make_win): Remove.
6088 (show_source_or_disasm_and_command): Use reset_locator.
6090 2019-07-17 Tom Tromey <tom@tromey.com>
6092 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6094 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6096 * tui/tui-source.c (tui_source_window_base::reset): New method.
6097 * tui/tui-layout.c (make_command_window): Don't call
6099 (make_source_window, make_disasm_window): Don't call
6100 make_source_or_disasm_window.
6101 (make_data_window): Don't call init_and_make_win. Change calling
6103 (show_source_disasm_command, show_data): Simplify.
6104 (make_source_or_disasm_window): Remove.
6105 (show_source_or_disasm_and_command): Simplify.
6106 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6107 (struct tui_source_window_base) <reset>: Likewise.
6108 <execution_info>: Remove initializer.
6109 * tui/tui-data.c (tui_source_window_base): Initialize
6112 2019-07-17 Tom Tromey <tom@tromey.com>
6114 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6119 * tui/tui.c (tui_rl_other_window): Update.
6120 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6121 superclass method first. Always iterate over regs_content.
6122 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6124 * tui/tui-win.c (tui_set_focus_command): Update.
6126 2019-07-17 Tom Tromey <tom@tromey.com>
6128 * tui/tui-win.c (tui_set_focus_command): Rename from
6129 tui_set_focus. Call tui_enable.
6130 (tui_set_focus_command): Remove.
6132 2019-07-17 Tom Tromey <tom@tromey.com>
6134 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6136 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6138 (tui_data_window::refresh_window): Call refresh_window on data
6139 items. Always call superclass refresh_window.
6140 (tui_win_info::refresh): Remove.
6141 (tui_source_window_base::refresh_window): Update.
6142 (tui_refresh_all): Update.
6143 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6145 (show_source_or_disasm_and_command): Likewise.
6146 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6147 (struct tui_source_window_base) <refresh>: Likewise.
6149 2019-07-17 Tom Tromey <tom@tromey.com>
6151 * tui/tui-winsource.c (tui_clear_source_content)
6152 (tui_show_source_content): Update.
6153 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6154 whether content is empty.
6155 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6160 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6162 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6163 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6165 2019-07-17 Tom Tromey <tom@tromey.com>
6167 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6168 (struct tui_data_item_window): Update.
6170 2019-07-17 Tom Tromey <tom@tromey.com>
6172 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6173 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6176 2019-07-17 Tom Tromey <tom@tromey.com>
6178 * tui/tui-winsource.h (tui_erase_source_content)
6179 (tui_clear_source_content): Remove "display_prompt" parameter.
6180 * tui/tui-winsource.c (tui_update_source_window_as_is)
6181 (tui_update_source_windows_with_addr): Update.
6182 (tui_clear_source_content): Remove "display_prompt" parameter.
6183 (tui_erase_source_content): Likewise. Simplify.
6184 (tui_show_source_content): Update.
6185 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6186 * tui/tui-stack.c (tui_show_frame_info): Update.
6187 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6190 2019-07-17 Tom Tromey <tom@tromey.com>
6192 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6193 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6195 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6198 2019-07-17 Tom Tromey <tom@tromey.com>
6200 * tui/tui-winsource.c (tui_clear_source_content)
6201 (tui_show_source_content, tui_show_exec_info_content)
6202 (tui_clear_exec_info_content): Update.
6203 * tui/tui-stack.c (tui_show_locator_content): Update.
6204 (tui_show_frame_info): Update.
6205 * tui/tui-source.h (tui_source_window): Don't declare.
6206 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6207 from tui_source_is_displayed.
6208 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6210 (struct tui_source_window_base) <content_in_use>: New field. Now
6212 (struct tui_source_window) <showing_source_p>: New method.
6213 (TUI_SRC_WIN): Change cast.
6214 * tui/tui-data.c (tui_initialize_static_data): Update.
6216 2019-07-17 Tom Tromey <tom@tromey.com>
6218 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6220 * tui/tui-source.c (tui_source_window::location_matches_p): New
6222 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6224 * tui/tui-data.h (struct tui_source_window_base)
6225 <location_matches_p>: New method.
6226 (struct tui_source_window, struct tui_disasm_window)
6227 <location_matches_p>: Likewise.
6229 2019-07-17 Tom Tromey <tom@tromey.com>
6231 * tui/tui-win.c (tui_set_win_height_command): Rename from
6233 (tui_set_win_height_command): Remove.
6235 2019-07-17 Tom Tromey <tom@tromey.com>
6237 * tui/tui-source.c (tui_source_window): New constructor. Add
6239 (~tui_source_window): New destructor.
6240 (tui_source_window::style_changed): New method.
6241 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6242 (tui_attach_detach_observers): Update.
6243 * tui/tui-data.h (struct tui_source_window): Make constructor not
6244 inline. Add destructor.
6245 (struct tui_source_window) <style_changed>: New method.
6246 <m_observable>: New member.
6248 2019-07-17 Tom Tromey <tom@tromey.com>
6250 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6251 * tui/tui-win.c (tui_resize_all): Fix typo.
6253 2019-07-17 Tom Tromey <tom@tromey.com>
6255 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6256 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6257 (tui_refresh_all): Remove "list" parameter. Use foreach.
6258 * tui/tui-win.c (window_name_completer): Use foreach.
6259 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6260 (update_tab_width): Likewise.
6261 * tui/tui-layout.c (show_layout): Update.
6262 * tui/tui-data.h (class tui_window_iterator): New.
6263 (struct all_tui_windows): New.
6264 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6266 2019-07-17 Tom Tromey <tom@tromey.com>
6268 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6269 parameter. Don't reference globals.
6270 (tui_reg_command): Update.
6272 2019-07-17 Tom Tromey <tom@tromey.com>
6274 * tui/tui-regs.c (tui_show_registers): Simplify.
6276 2019-07-17 Tom Tromey <tom@tromey.com>
6278 * tui/tui-regs.c (tui_show_registers): Update.
6279 (tui_show_register_group): Add win_info parameter.
6281 2019-07-17 Tom Tromey <tom@tromey.com>
6283 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6284 Rename from tui_display_reg_element_at_line.
6285 (tui_data_window::display_registers_from_line): Update.
6286 * tui/tui-data.h (struct tui_data_window)
6287 <display_reg_element_at_line>: New method.
6289 2019-07-17 Tom Tromey <tom@tromey.com>
6291 * tui/tui-regs.h (tui_display_registers_from)
6292 (tui_display_registers_from_line): Don't declare.
6293 * tui/tui-windata.c (tui_data_window::display_all_data)
6294 (tui_data_window::refresh_all)
6295 (tui_data_window::do_scroll_vertical): Update.
6296 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6297 from tui_display_registers_from.
6298 (tui_display_reg_element_at_line): Update.
6299 (tui_data_window::display_registers_from_line): Rename from
6300 tui_display_registers_from_line.
6301 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6302 display_registers_from_line>: New methods.
6304 2019-07-17 Tom Tromey <tom@tromey.com>
6306 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6307 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6308 from tui_erase_data_content.
6309 (tui_data_window::display_all_data)
6310 (tui_data_window::refresh_all)
6311 (tui_data_window::do_scroll_vertical): Update.
6312 * tui/tui-regs.c (tui_show_registers): Update.
6313 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6316 2019-07-17 Tom Tromey <tom@tromey.com>
6318 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6321 (tui_data_window::delete_data_content_windows): Rename from
6322 tui_delete_data_content_windows.
6323 (tui_data_window::display_all_data)
6324 (tui_data_window::do_scroll_vertical): Update.
6325 * tui/tui-data.h (struct tui_data_window)
6326 <delete_data_content_windows>: New method.
6328 2019-07-17 Tom Tromey <tom@tromey.com>
6330 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6331 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6333 2019-07-17 Tom Tromey <tom@tromey.com>
6335 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6336 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6337 from tui_display_all_data.
6339 (tui_data_window::do_make_visible_with_new_height): Update.
6340 * tui/tui-regs.c (tui_show_registers): Update.
6341 * tui/tui-layout.c (tui_set_layout): Update.
6342 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6345 2019-07-17 Tom Tromey <tom@tromey.com>
6347 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6348 * tui/tui-windata.c (tui_display_data_from): Remove.
6349 (tui_data_window::refresh_all): Update.
6351 2019-07-17 Tom Tromey <tom@tromey.com>
6353 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6354 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6355 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6356 tui_display_registers_from_line.
6357 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6358 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6359 "force_display" parameter.
6361 2019-07-17 Tom Tromey <tom@tromey.com>
6363 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6365 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6366 Rename from tui_first_reg_element_no_inline.
6367 (tui_display_reg_element_at_line)
6368 (tui_display_registers_from_line): Update.
6369 * tui/tui-data.h (struct tui_data_window)
6370 <first_reg_element_no_inline>: New method.
6372 2019-07-17 Tom Tromey <tom@tromey.com>
6374 * tui/tui-windata.c (tui_display_data_from)
6375 (tui_data_window::do_scroll_vertical): Update.
6376 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6377 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6378 Rename from tui_line_from_reg_element_no.
6379 (tui_display_registers_from_line): Update.
6380 * tui/tui-data.h (struct tui_data_window)
6381 <line_from_reg_element_no>: New method.
6383 2019-07-17 Tom Tromey <tom@tromey.com>
6385 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6386 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6387 tui_last_regs_line_no.
6388 (tui_display_reg_element_at_line)
6389 (tui_display_registers_from_line): Update.
6390 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6393 2019-07-17 Tom Tromey <tom@tromey.com>
6396 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6397 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6398 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6399 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6400 (tui_update_breakpoint_info): Likewise.
6401 * tui/tui-hooks.c (tui_event_create_breakpoint)
6402 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6405 2019-07-17 Tom Tromey <tom@tromey.com>
6407 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6409 2019-07-17 Tom Tromey <tom@tromey.com>
6411 * tui/tui-winsource.c (tui_update_source_window_as_is)
6412 (tui_update_source_windows_with_addr): Update.
6413 * tui/tui-source.h (tui_set_source_content)
6414 (tui_show_symtab_source): Add "win_info" parameter.
6415 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6417 (tui_show_symtab_source): Likewise.
6419 2019-07-17 Tom Tromey <tom@tromey.com>
6421 * tui/tui-wingeneral.c
6422 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6424 2019-07-17 Tom Tromey <tom@tromey.com>
6426 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6427 (struct tui_cmd_window) <can_scroll>: New method.
6428 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6431 2019-07-17 Tom Tromey <tromey@adacore.com>
6433 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6434 do_field_signed>: Rename. Change type of "value".
6435 * ui-out.c (ui_out::field_signed): Rename from field_int.
6436 Change type of "value".
6437 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6439 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6440 do_field_int. Change type of "value".
6441 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6442 do_field_int. Change type of "value".
6443 * tracepoint.c (trace_status_mi, tfind_1)
6444 (print_one_static_tracepoint_marker): Update.
6445 * thread.c (print_thread_info_1, print_selected_thread_frame):
6447 * stack.c (print_frame, print_frame_info): Update.
6448 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6450 * source.c (print_source_lines_base): Update.
6451 * skip.c (info_skip_command): Update.
6452 * record-btrace.c (btrace_ui_out_decode_error)
6453 (btrace_call_history_src_line): Update.
6454 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6456 * progspace.c (print_program_space): Update.
6457 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6458 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6459 do_field_int. Change type of "value".
6460 * mi/mi-out.c (mi_ui_out::do_table_begin)
6461 (mi_ui_out::do_table_header): Update.
6462 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6464 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6465 (mi_cmd_data_list_changed_registers, output_register)
6466 (mi_cmd_data_read_memory, mi_load_progress)
6467 (mi_cmd_trace_frame_collected): Update.
6468 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6470 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6471 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6472 (mi_cmd_var_list_children, varobj_update_one): Update.
6473 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6474 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6475 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6476 * inferior.c (print_inferior): Update.
6477 * gdb_bfd.c (print_one_bfd): Update.
6478 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6480 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6481 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6482 do_field_int. Change type of "value".
6483 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6484 do_field_int. Change type of "value".
6485 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6486 (print_one_breakpoint_location, print_it_catch_fork)
6487 (print_one_catch_fork, print_it_catch_vfork)
6488 (print_one_catch_vfork, print_it_catch_solib)
6489 (print_it_catch_exec, print_it_ranged_breakpoint)
6490 (print_mention_watchpoint, print_mention_masked_watchpoint)
6491 (bkpt_print_it, update_static_tracepoint): Update.
6492 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6493 * break-catch-syscall.c (print_it_catch_syscall): Update.
6494 * ada-tasks.c (print_ada_task_info): Update.
6495 * ada-lang.c (print_it_exception, print_mention_exception):
6498 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6500 PR breakpoints/24541
6501 * gdbarch.c: Regenerate.
6502 * gdbarch.h: Regenerate.
6503 * gdbarch.sh: Adjust return type and parameter types for
6504 'stap_adjust_register'.
6505 (i386_stap_adjust_register): Adjust signature and return new
6507 * stap-probe.c (stap_parse_register_operand): Adjust use of
6508 'gdbarch_stap_adjust_register'.
6510 2019-07-17 Tom Tromey <tromey@adacore.com>
6512 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6514 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6516 (struct s390_process_info): Add initializers.
6517 (s390_add_process): Use new.
6518 (s390_linux_nat_target::low_forget_process): Use delete.
6519 (s390_linux_nat_target::low_new_fork)
6520 (s390_linux_nat_target::stopped_by_watchpoint)
6521 (s390_linux_nat_target::low_prepare_to_resume)
6522 (s390_linux_nat_target::insert_watchpoint)
6523 (s390_linux_nat_target::insert_hw_breakpoint)
6524 (s390_linux_nat_target::remove_watchpoint)
6525 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6527 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6529 * aarch64-fbsd-nat.c: Include regcache.h.
6530 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6532 (aarch64_fbsd_nat_target::fetch_registers)
6533 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6535 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6537 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6539 * fbsd-nat.c: Include gdbarch.h.
6541 2019-07-15 Tom Tromey <tromey@adacore.com>
6543 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6545 2019-07-15 Tom Tromey <tromey@adacore.com>
6547 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6548 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6549 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6550 * cli-out.c (cli_ui_out::do_field_int): New method.
6551 * ui-out.c (ui_out::field_unsigned): New method.
6552 * symfile.c (generic_load): Use field_unsigned.
6553 (print_transfer_performance): Likewise.
6554 * record-btrace.c (ui_out_field_uint): Remove.
6555 (btrace_call_history_insn_range, btrace_call_history): Use
6557 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6559 * ui-out.h (class ui_out) <field_unsigned>: New method.
6560 <do_field_unsigned>: Likewise.
6562 2019-07-15 Tom Tromey <tromey@adacore.com>
6564 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6565 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6566 * target.c (flash_erase_command): Use field_string.
6567 * infrun.c (print_signal_received_reason): Use field_string.
6568 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6569 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6571 * ada-tasks.c (print_ada_task_info): Use field_string.
6573 2019-07-15 Tom Tromey <tromey@adacore.com>
6575 * target.c (flash_erase_command): Use field_core_addr.
6576 * symfile.c (generic_load): Use field_core_addr.
6577 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6578 Use field_core_addr.
6579 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6582 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6584 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6585 value if its desired type is smaller than a CORE_ADDR and signed.
6587 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6589 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6590 of changes to field names, and use new is_reference field to
6591 decide if a property is a reference or not.
6592 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6594 (struct dwarf2_property_baton): Update header comment, rename
6595 'referenced_type' to 'property_type' and update comments.
6596 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6597 default property type, store in property baton, update to take
6598 accound of renamed field.
6599 (read_func_scope): Update call to attr_to_dynamic_prop.
6600 (read_array_type): Likewise.
6601 (dwarf2_per_cu_addr_sized_int_type): New function.
6602 (read_subrange_index_type): Move type finding code to
6603 dwarf2_per_cu_addr_sized_int_type.
6604 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6605 (dwarf2_per_cu_addr_type): New function.
6606 (set_die_type): Update calls to attr_to_dynamic_prop.
6608 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6610 * dwarf2read.c (read_subrange_index_type): New function.
6611 (read_subrange_type): Move code into new function and call it.
6612 * gdbtypes.c (create_range_type): Add some asserts.
6614 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6616 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6617 update return statements.
6618 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6619 declaration, and update comment to match.
6620 * gdbtypes.c (resolve_dynamic_array): Update call to
6621 dwarf2_evaluate_property to match new return type.
6623 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6625 * valarith.c (value_subscripted_rvalue): Change lowerbound
6626 parameter type from int to LONGEST.
6627 * value.h (value_subscripted_rvalue): Likewise in declaration.
6629 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6631 * cli/cli-utils.c (info_print_command_completer): New function.
6632 * cli/cli-utils.h: Add 'completer.h' include, and forward
6633 declaration for 'struct cmd_list_element'.
6634 (info_print_command_completer): Declare.
6635 * stack.c (_initialize_stack): Add completer for 'info locals' and
6637 * symtab.c (_initialize_symtab): Add completer for 'info
6638 variables' and 'info functions'.
6639 * NEWS: Mention completion for additional info commands.
6641 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6643 * cli/cli-utils.c (extract_info_print_args): Delete.
6644 (extract_arg_maybe_quoted): Delete.
6645 (info_print_options_defs): New variable.
6646 (make_info_print_options_def_group): New function.
6647 (extract_info_print_options): Define new function.
6648 * cli/cli-utils.h (extract_info_print_args): Delete.
6649 (struct info_print_options): New structure.
6650 (extract_info_print_options): Declare new function.
6651 * stack.c (info_locals_command): Update to use new
6652 extract_info_print_options, also add a header comment.
6653 (info_args_command): Likewise.
6654 * symtab.c (info_variables_command): Likewise.
6655 (info_functions_command): Likewise.
6657 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6659 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6660 to extract string arguments.
6661 * common/common-utils.c (extract_string_maybe_quoted): New function.
6662 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6664 2019-07-11 Tom Tromey <tromey@adacore.com>
6666 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6667 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6668 * top.h (gdbinit): Don't declare.
6669 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6671 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6672 * top.c (gdb_init): Don't call init_cli_cmds.
6674 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6676 2019-07-11 Tom Tromey <tromey@adacore.com>
6678 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6679 after it has been moved.
6681 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6683 * valops.c (value_must_coerce_to_target): Change return type to
6685 * value.h (value_must_coerce_to_target): Likewise.
6687 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6689 * breakpoint.c (is_hardware_watchpoint): Remove
6690 forward-declaration.
6691 (is_masked_watchpoint): Change return type to bool.
6692 (is_tracepoint): Likewise.
6693 (is_breakpoint): Likewise.
6694 (is_hardware_watchpoint): Likewise.
6695 (is_watchpoint): Likewise.
6696 (is_no_memory_software_watchpoint): Likewise.
6697 (is_catchpoint): Likewise.
6698 (breakpoint_1): Make FILTER parameter's return type bool.
6699 is_masked_watchpoint): Change return type to bool.
6700 (save_breakpoints): Make FILTER parameter's return type bool.
6701 * breakpoint.h (is_breakpoint): Change return type to bool.
6702 (is_watchpoint): Likewise.
6703 (is_catchpoint): Likewise.
6704 (is_tracepoint): Likewise.
6706 2019-07-10 Tom Tromey <tom@tromey.com>
6708 * defs.h: Don't include gdbarch.h.
6709 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6710 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6711 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6712 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6713 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6714 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6715 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6716 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6717 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6718 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6719 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6720 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6721 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6722 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6723 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6724 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6725 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6726 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6727 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6728 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6729 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6730 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6731 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6732 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6733 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6734 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6735 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6737 2019-07-10 Tom Tromey <tromey@adacore.com>
6739 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6740 * breakpoint.c (init_ada_exception_breakpoint): Register as
6742 (print_one_breakpoint_location, print_one_breakpoint): Use
6743 is_ada_exception_catchpoint.
6744 * ada-lang.c (class ada_catchpoint_location): Pass
6745 bp_loc_software_breakpoint to bp_location constructor.
6746 (is_ada_exception_catchpoint): New function.
6748 2019-07-10 Tom Tromey <tromey@adacore.com>
6750 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6752 (struct arm_exidx_entry): New method operator<.
6753 (struct arm_exidx_data) <section_maps>: Change type.
6754 (arm_exidx_data_free): Remove.
6755 (arm_exidx_data_key): Change type. Move lower.
6756 (arm_exidx_new_objfile): Update.
6757 (arm_compare_exidx_entries): Remove.
6758 (arm_find_exidx_entry, _initialize_arm_tdep)
6760 2019-07-10 Tom Tromey <tromey@adacore.com>
6762 * solib-spu.c (ocl_program_data_key): Change type.
6763 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6766 2019-07-10 Tom Tromey <tromey@adacore.com>
6768 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6769 (struct solib_aix_inferior_data) <library_list>: Change type.
6770 (solib_aix_inferior_data_handle): Change type.
6771 (get_solib_aix_inferior_data): Update.
6772 (solib_aix_free_library_list): Remove.
6773 (library_list_start_library): Update.
6774 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6776 (solib_aix_get_library_list)
6777 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6778 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6780 2019-07-10 Tom Tromey <tromey@adacore.com>
6782 * solib-dsbt.c (struct dsbt_info): Add initializers.
6783 (solib_dsbt_pspace_data): Change type.
6784 (dsbt_pspace_data_cleanup): Remove.
6785 (get_dsbt_info, _initialize_dsbt_solib): Update.
6787 2019-07-10 Tom Tromey <tromey@adacore.com>
6789 * spu-tdep.c (spu_overlay_data): Change type.
6790 (spu_get_overlay_table, spu_overlay_new_objfile)
6791 (_initialize_spu_tdep): Update.
6793 2019-07-10 Tom Tromey <tromey@adacore.com>
6795 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6797 (dbx_objfile_data_key): Change type and declare later.
6798 (DBX_SYMFILE_INFO): Rewrite.
6799 * dbxread.c (dbx_objfile_data_key): Change type.
6800 (dbx_symfile_init): Update.
6801 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6802 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6803 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6805 2019-07-10 Tom Tromey <tromey@adacore.com>
6807 * jit.c (jit_program_space_key): Change type. Move lower.
6808 (get_jit_program_space_data): Update.
6809 (jit_program_space_data_cleanup): Remove.
6810 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6812 (struct jit_program_space_data): Add initializers.
6814 2019-07-10 Tom Tromey <tromey@adacore.com>
6816 * solib-darwin.c (struct darwin_info): Add initializers.
6817 (solib_darwin_pspace_data): Change type.
6818 (darwin_pspace_data_cleanup): Remove.
6819 (get_darwin_info, _initialize_darwin_solib): Update.
6821 2019-07-10 Tom Tromey <tromey@adacore.com>
6823 * remote-sim.c (struct sim_inferior_data): Add initializers,
6824 constructor, and destructor.
6825 (sim_inferior_data_key): Change type. Move lower.
6826 (check_for_duplicate_sim_descriptor): Update.
6827 (get_sim_inferior_data): Use new. Update.
6828 (~sim_inferior_data_cleanup): Rename from
6829 sim_inferior_data_cleanup. Simplify.
6830 (gdbsim_close_inferior, simulator_command)
6831 (sim_command_completer, _initialize_remote_sim): Update.
6832 (next_pid, INITIAL_PID): Move earlier.
6834 2019-07-10 Tom Tromey <tromey@adacore.com>
6836 * python/python-internal.h (create_thread_object): Return
6838 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6839 * python/py-inferior.c (struct threadlist_entry): Add
6841 <thread_obj>: Now a gdbpy_ref.
6842 (thread_to_thread_object): Update.
6843 (add_thread_object): Use new.
6844 (delete_thread_object): Use delete.
6845 (infpy_threads): Update.
6846 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6849 2019-07-10 Tom Tromey <tromey@adacore.com>
6851 * valops.c (value_cast): Specialize error message for Ada.
6853 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6855 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6857 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6859 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6860 bpstat_should_step): Return bool, adjust comments.
6861 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6862 bpstat_should_step): Likewise.
6864 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6866 * features/Makefile: Use feature target descriptions for Arm.
6867 * features/arm/arm-core.c: Generate new file.
6868 * features/arm/arm-fpa.c: Likewise.
6869 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6870 * features/arm/arm-m-profile.c: Likewise.
6871 * features/arm/arm-vfpv2.c: Likewise.
6872 * features/arm/arm-vfpv3.c: Likewise.
6873 * features/arm/xscale-iwmmxt.c: Likewise.
6874 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6876 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6878 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6881 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6883 * features/aarch64-pauth.c: Regenerate.
6885 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6887 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6889 (bpstat_what): Use false instead of 0.
6891 2019-07-09 Pedro Alves <palves@redhat.com>
6893 * break-catch-throw.c (is_exception_catchpoint): New.
6894 * breakpoint.c (print_one_breakpoint_location): New parameter
6895 'raw_loc'. Handle it. Use
6896 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6897 looking at the breakpoint's type.
6898 (print_one_breakpoint): If handling "maint info breakpoints", also
6899 print locations of exception catchpoints.
6900 * breakpoint.h (is_exception_catchpoint): Declare.
6902 2019-07-09 Pedro Alves <palves@redhat.com>
6904 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6906 (allocate_location_exception_catchpoint): New.
6907 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6908 (initialize_throw_catchpoint_ops): Install
6909 allocate_location_exception_catchpoint as allocate_location
6911 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6912 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6914 (breakpoint_address_is_meaningful): Delete.
6915 (bl_address_is_meaningful): New.
6916 (breakpoint_locations_match): Adjust comment.
6917 (bp_location_from_bp_type): New, factored out of...
6918 (bp_location::bp_location(breakpoint *)): ... this.
6919 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6921 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6922 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6923 breakpoint_address_is_meaningful.
6924 (bp_locations_compare): Adjust comment.
6925 (update_global_location_list): Use bl_address_is_meaningful
6926 instead of breakpoint_address_is_meaningful.
6927 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6929 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6930 * python/py-breakpoint.c (bppy_get_location): No longer check
6931 whether location is null.
6933 2019-07-09 Pedro Alves <palves@redhat.com>
6936 * breakpoint.c (print_one_breakpoint_location): Remove
6937 single-location assert.
6939 2019-07-09 Tom Tromey <tom@tromey.com>
6941 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6942 * configure: Rebuild.
6943 * configure.ac: Change common to gdbsupport.
6944 * gdbsupport: Rename from common.
6945 * acinclude.m4: Change common to gdbsupport.
6946 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6947 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6949 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6950 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6951 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6952 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6953 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6954 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6955 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6956 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6957 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6958 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6959 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6960 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6961 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6962 coff-pe-read.c, command.h, compile/compile-c-support.c,
6963 compile/compile-c.h, compile/compile-cplus-symbols.c,
6964 compile/compile-cplus-types.c, compile/compile-cplus.h,
6965 compile/compile-loc2c.c, compile/compile.c, completer.c,
6966 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6967 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6968 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6969 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6970 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6971 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6972 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6973 features/aarch64-core.c, features/aarch64-fpu.c,
6974 features/aarch64-pauth.c, features/aarch64-sve.c,
6975 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6976 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6977 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6978 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6979 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6980 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6981 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6982 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6983 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6984 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6985 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6986 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6987 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6988 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6989 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6990 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6991 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6992 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6993 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6994 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6995 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6996 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6997 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6998 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6999 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7000 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7001 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7002 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7003 minsyms.c, mips-linux-tdep.c, namespace.h,
7004 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7005 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7006 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7007 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7008 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7009 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7010 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7011 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7012 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7013 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7014 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7015 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7016 procfs.c, producer.c, progspace.h, psymtab.h,
7017 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7018 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7019 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7020 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7021 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7022 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7023 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7024 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7025 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7026 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7027 target-memory.c, target.c, target.h, target/waitstatus.c,
7028 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7029 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7030 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7031 unittests/array-view-selftests.c,
7032 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7033 unittests/common-utils-selftests.c,
7034 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7035 unittests/format_pieces-selftests.c,
7036 unittests/function-view-selftests.c,
7037 unittests/lookup_name_info-selftests.c,
7038 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7039 unittests/mkdir-recursive-selftests.c,
7040 unittests/observable-selftests.c,
7041 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7042 unittests/parse-connection-spec-selftests.c,
7043 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7044 unittests/scoped_fd-selftests.c,
7045 unittests/scoped_mmap-selftests.c,
7046 unittests/scoped_restore-selftests.c,
7047 unittests/string_view-selftests.c, unittests/style-selftests.c,
7048 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7049 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7050 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7051 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7052 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7053 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7055 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7057 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7059 (decode_digits_ordinary): Set explicit_line field in sal.
7060 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7061 symtab_and_line that was set on an explicit line number in
7062 assembler code. Do always update the recorded symtab and line if
7063 we do skip the prologue.
7065 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7067 * breakpoint.c (set_breakpoint_location_function): Remove
7068 explicit_loc parameter.
7069 (momentary_breakpoint_from_master): Update call to
7070 set_breakpoint_location_function.
7071 (add_location_to_breakpoint): Likewise.
7073 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7075 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7076 required features based on default bfd type when no specific bfd
7079 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7081 * NEWS: Mention that GDB printf and eval commands can now print
7082 C-style and Ada-style convenience var strings without
7083 calling the inferior.
7084 * printcmd.c (printf_c_string): Locally print GDB internal var
7085 instead of transiting via the inferior.
7086 (printf_wide_c_string): Likewise.
7088 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7090 PR breakpoints/25011
7091 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7093 2019-07-04 Tom Tromey <tom@tromey.com>
7096 * tui/tui-winsource.c (tui_clear_source_content): Update.
7097 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7098 (tui_update_breakpoint_info): Update.
7099 (tui_set_exec_info_content): Update.
7100 * tui/tui-source.c (tui_set_source_content_nil): Update.
7101 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7103 * tui/tui-data.h (enum tui_bp_flag): New.
7104 (tui_bp_flags): New enum flags type.
7105 (struct tui_source_element) <break_mode>: Change type. Rename
7107 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7108 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7110 * tui/tui-winsource.h: Fix comment.
7112 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7114 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7115 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7116 (store_fpregs_to_thread)
7117 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7118 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7119 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7120 (IWMMXT_REGS_SIZE): Add define.
7121 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7122 (fetch_vfp_regs, store_vfp_regs)
7123 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7124 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7126 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7128 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7130 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7131 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7132 (ARM_INT_REGISTER_SIZE): ...to this.
7133 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7134 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7135 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7136 (arm_linux_collect_gregset, supply_nwfpe_register)
7137 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7139 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7140 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7141 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7142 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7143 (arm_return_in_memory, arm_store_return_value)
7144 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7145 (arm_record_ld_st_multiple): Likewise.
7146 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7147 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7149 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7151 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7152 AARCH64_DISPLACED_MODIFIED_INSNS.
7153 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7154 (aarch64_displaced_step_copy_insn): Likewise.
7155 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7156 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7157 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7158 ARM_DISPLACED_MODIFIED_INSNS.
7159 * arm-tdep.c (arm_gdbarch_init): Likewise.
7160 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7161 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7162 (struct arm_displaced_step_closure): Use
7163 ARM_DISPLACED_MODIFIED_INSNS.
7165 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7167 * features/Makefile: Remove unused xml files.
7168 * features/aarch64.xml: Remove.
7169 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7170 * features/i386/amd64-avx-avx512.xml: Remove.
7171 * features/i386/amd64-avx-linux.xml: Remove.
7172 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7173 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7174 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7175 * features/i386/amd64-avx-mpx.xml: Remove.
7176 * features/i386/amd64-avx.xml: Remove.
7177 * features/i386/amd64-linux.xml: Remove.
7178 * features/i386/amd64-mpx-linux.xml: Remove.
7179 * features/i386/amd64-mpx.xml: Remove.
7180 * features/i386/amd64.xml: Remove.
7181 * features/i386/i386-avx-avx512-linux.xml: Remove.
7182 * features/i386/i386-avx-avx512.xml: Remove.
7183 * features/i386/i386-avx-linux.xml: Remove.
7184 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7185 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7186 * features/i386/i386-avx-mpx-linux.xml: Remove.
7187 * features/i386/i386-avx-mpx.xml: Remove.
7188 * features/i386/i386-avx.xml: Remove.
7189 * features/i386/i386-linux.xml: Remove.
7190 * features/i386/i386-mmx-linux.xml: Remove.
7191 * features/i386/i386-mmx.xml: Remove.
7192 * features/i386/i386-mpx-linux.xml: Remove.
7193 * features/i386/i386-mpx.xml: Remove.
7194 * features/i386/i386.xml: Remove.
7195 * features/i386/x32-avx-avx512-linux.xml: Remove.
7196 * features/i386/x32-avx-linux.xml: Remove.
7197 * features/i386/x32-linux.xml: Remove.
7199 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7201 * regformats/aarch64.dat: Remove.
7202 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7203 * regformats/i386/amd64-avx-linux.dat: Remove.
7204 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7205 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7206 * regformats/i386/amd64-linux.dat: Remove.
7207 * regformats/i386/amd64-mpx-linux.dat: Remove.
7208 * regformats/i386/amd64.dat: Remove.
7209 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7210 * regformats/i386/i386-avx-linux.dat: Remove.
7211 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7212 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7213 * regformats/i386/i386-linux.dat: Remove.
7214 * regformats/i386/i386-mmx-linux.dat: Remove.
7215 * regformats/i386/i386-mpx-linux.dat: Remove.
7216 * regformats/i386/i386.dat: Remove.
7217 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7218 * regformats/i386/x32-avx-linux.dat: Remove.
7219 * regformats/i386/x32-linux.dat: Remove.
7221 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7223 * aarch64-tdep.c: Remove xml self tests.
7224 * amd64-linux-tdep.c: Likewise.
7225 * amd64-tdep.c: Likewise.
7226 * i386-linux-tdep.c: Likewise.
7227 * i386-tdep.c: Likewise.
7229 2019-07-03 Pedro Alves <palves@redhat.com>
7232 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7233 (pipe_cmd_option_defs): New.
7234 (make_pipe_cmd_options_def_group): New.
7235 (pipe_command): Use gdb::option::process_options.
7236 (pipe_command_completer): New function.
7237 (_initialize_cli_cmds): Install completer for "pipe" command.
7239 2019-07-03 Pedro Alves <palves@redhat.com>
7241 * cli/cli-option.c (union option_value) <string>: New field.
7242 (struct option_def_and_value): Add ctor, move ctor, dtor and
7243 use DISABLE_COPY_AND_ASSIGN.
7244 (option_def_and_value::clear_value): New.
7245 (parse_option, save_option_value_in_ctx, get_val_type_str)
7246 (add_setshow_cmds_for_options): Handle var_string.
7247 * cli-option.h (union option_def::var_address) <string>: New
7249 (struct string_option_def): New.
7250 * maint-test-options.c (struct test_options_opts): Add default
7251 ctor and use DISABLE_COPY_AND_ASSIGN.
7252 <string_opt>: New field.
7253 (test_options_opts::~test_options_opts): New.
7254 (test_options_opts::dump): Also dump "-string".
7255 (test_options_option_defs): Install "string.
7257 2019-07-03 Pedro Alves <palves@redhat.com>
7259 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7260 option_value with a null enumeration.
7261 (complete_options): Save the option values in the context.
7262 (save_option_value_in_ctx): New, factored out from ...
7263 (process_options): ... here.
7264 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7266 * maint-test-options.c (test_options_opts::dump): New, factored
7268 (maintenance_test_options_command_mode): ... here.
7269 (maintenance_test_options_command_completion_result): Delete.
7270 (maintenance_test_options_command_completion_text): Update
7272 (maintenance_show_test_options_completion_result): Change
7273 prototype. Just print
7274 maintenance_test_options_command_completion_text.
7275 (save_completion_result): New.
7276 (maintenance_test_options_completer_mode): Pass options context to
7277 complete_options, and then save a dump.
7278 (_initialize_maint_test_options): Use add_cmd to install "maint
7279 show test-options-completion-result".
7281 2019-07-03 Pedro Alves <palves@redhat.com>
7283 * NEWS (New commands): Mention "with" and "maint with".
7284 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7285 (with_command, with_command_completer): New.
7286 (pipe_command): Adjust to new repeat_previous
7288 (_initialize_cli_cmds): Install the "with" command and its "w"
7290 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7292 * cli/cli-setshow.c (parse_cli_var_uinteger)
7293 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7294 argument strings for all var_types.
7295 (get_setshow_command_value_string): New, factored out from ...
7296 (do_show_command): ... this.
7297 * cli/cli-setshow.h: Include <string>.
7298 (get_setshow_command_value_string): Declare.
7299 * command.h (repeat_previous): Now returns const char *. Adjust
7301 * maint.c: Include "cli/cli-cmds.h".
7302 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7303 (_initialize_maint_cmds): Register the "maintenance with" command.
7304 * top.c (repeat_previous): Move bits from pipe_command here:
7305 Return the saved command line, if any; error out if there's no
7306 command to relaunch.
7308 2019-07-03 Pedro Alves <palves@redhat.com>
7310 * NEWS (New commands): Mention "maint set/show test-settings"
7311 instead of "maint test-settings".
7312 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7313 (maintenance_test_settings_set_list): Rename to ...
7314 (maintenance_set_test_settings_list): ... this.
7315 (maintenance_test_settings_show_list): Rename to ...
7316 (maintenance_show_test_settings_list): ... this.
7317 (maintenance_test_settings_cmd): Delete.
7318 (maintenance_test_settings_set_cmd): ...
7319 (maintenance_set_test_settings_cmd): ... this.
7320 (maintenance_test_settings_show_cmd): ...
7321 (maintenance_show_test_settings_cmd): ... this.
7322 (maintenance_test_settings_show_value_cmd):
7323 (maintenance_show_test_settings_value_cmd): ... this.
7324 (_initialize_maint_test_settings): No longer install the "maint
7325 test-settings" prefix command. Rename "maint test-settings set"
7326 to "maint set test-settings", and "maint test-settings show" to
7327 "maint show test-settings". Adjust all subcommands.
7329 2019-07-03 Pedro Alves <palves@redhat.com>
7331 * maint-test-settings.c: Fix file's intro comment. Replace all
7332 references to "test-options" with references to "test-settings",
7335 2019-07-03 Pedro Alves <palves@redhat.com>
7337 * maint-test-settings.c (maintenance_test_settings_xxx)
7338 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7340 (maintenance_test_settings_enums): Use them.
7341 (maintenance_test_settings_enum): Default to
7342 maintenance_test_settings_xxx.
7343 (_initialize_maint_test_settings): Initialize
7344 MAINTENANCE_TEST_SETTINGS_FILENAME.
7346 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7348 * breakpoint.h (remove_breakpoints_inf): Change return type to
7349 void, move function documentation here.
7350 * breakpoint.c (remove_breakpoints_inf): Change return type to
7351 void, move function documentation to header.
7353 2019-07-02 Pedro Alves <palves@redhat.com>
7355 * NEWS (Completion improvements): Mention "info threads".
7356 * thread.c (struct info_threads_opts, info_threads_option_defs)
7357 (make_info_threads_options_def_group): New.
7358 (info_threads_command): Use gdb::option::process_options.
7359 (info_threads_command_completer): New.
7360 (_initialize_thread): Use gdb::option::build_help to build the
7361 help text for "info threads".
7363 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7365 * defs.h (generic_load): Move from here...
7366 * symfile.h (generic_load): ... to here. Rename name parameter
7368 * symfile.c (generic_load): Add comment.
7370 2019-07-01 Tom Tromey <tromey@adacore.com>
7373 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7374 declaration of without_params. Fix formatting.
7376 2019-07-01 Tom Tromey <tromey@adacore.com>
7378 * ada-exp.y (find_primitive_type): Update.
7379 * ada-lang.h (ada_lookup_symbol): Update.
7380 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7382 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7384 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7386 PR breakpoints/24541
7387 * gdbarch.c: Regenerate.
7388 * gdbarch.h: Regenerate.
7389 * gdbarch.sh: Add 'stap_adjust_register'.
7390 * i386-tdep.c: Include '<unordered_set>'.
7391 (i386_stap_adjust_register): New function.
7392 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7393 * stap-probe.c (stap_parse_register_operand): Call
7394 'gdbarch_stap_adjust_register'.
7396 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7399 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7400 * python/python.c (do_start_initialization): Use 'xmalloc'
7401 instead of 'PyMem_Malloc'.
7403 2019-06-28 Tom Tromey <tromey@adacore.com>
7405 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7408 2019-06-27 Tom Tromey <tromey@adacore.com>
7410 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7412 (arm_find_mapping_symbol, arm_record_special_symbol)
7413 (_initialize_arm_tdep): Update.
7414 (arm_objfile_data_free): Remove.
7416 2019-06-27 Tom Tromey <tromey@adacore.com>
7418 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7419 to cp_print_static_field.
7421 2019-06-26 Tom Tromey <tromey@adacore.com>
7423 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7424 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7427 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7429 * features/aarch64-core.c (create_feature_aarch64_core):
7431 * features/aarch64-core.xml: Add cpsr flags.
7433 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7435 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7436 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7438 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7440 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7442 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7444 (arm_record_special_symbol): Don't insert new symbol in sorted
7445 position, push it at the end.
7447 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7449 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7450 (arm_mapping_symbol_s): Remove.
7451 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7452 (arm_mapping_symbol_vec): New typedef.
7453 (struct arm_per_objfile): Add constructor.
7454 <section_maps>: Change type to
7455 std::unique_ptr<arm_mapping_symbol_vec[]>.
7456 (arm_compare_mapping_symbols): Remove.
7457 (arm_find_mapping_symbol): Adjust to section_maps type change.
7458 (arm_objfile_data_free): Call delete on arm_per_objfile.
7459 (arm_record_special_symbol): Adjust to section_maps type change.
7460 Allocate arm_per_objfile with new.
7462 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7464 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7465 with the command prefix.
7467 2019-06-25 Tom Tromey <tom@tromey.com>
7469 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7470 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7472 2019-06-25 Tom Tromey <tom@tromey.com>
7474 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7476 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7481 * tui/tui-winsource.c
7482 (tui_source_window_base::set_is_exec_point_at): Add check against
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7487 * tui/tui-source.c (tui_set_source_content): Don't check before
7489 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7493 * tui/tui-winsource.h (tui_update_source_window_as_is)
7494 (tui_alloc_source_buffer, tui_line_is_displayed)
7495 (tui_addr_is_displayed): Change type of win_info.
7496 * tui/tui-winsource.c (tui_update_source_window_as_is)
7497 (tui_clear_source_content, tui_show_source_line)
7498 (tui_show_source_content, tui_source_window_base::refill)
7499 (tui_source_window_base::set_is_exec_point_at)
7500 (tui_source_window_base::set_is_exec_point_at)
7501 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7502 (tui_alloc_source_buffer, tui_line_is_displayed)
7503 (tui_addr_is_displayed): Change type of win_info. Update.
7504 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7505 (tui_source_window_base::do_make_visible_with_new_height):
7507 * tui/tui-source.c (tui_set_source_content)
7508 (tui_set_source_content_nil)
7509 (tui_source_window::do_scroll_vertical): Update.
7510 * tui/tui-layout.c (show_layout): Update.
7511 * tui/tui-disasm.c (tui_set_disassem_content)
7512 (tui_disasm_window::do_scroll_vertical): Update.
7513 * tui/tui-data.h (tui_win_content): Remove.
7514 (struct tui_gen_win_info) <content, content_size>: Remove.
7515 (struct tui_source_element): Add initializers and destructor.
7516 (union tui_which_element, struct tui_win_element): Remove.
7517 (struct tui_source_window_base) <content>: New field.
7518 (struct tui_data_window): Remove destructor.
7519 (tui_alloc_content, tui_free_win_content)
7520 (tui_free_all_source_wins_content): Don't declare.
7521 * tui/tui-data.c (tui_initialize_static_data): Update.
7522 (init_content_element, tui_alloc_content): Remove.
7523 (~tui_gen_win_info): Update.
7524 (~tui_data_window, tui_free_all_source_wins_content)
7525 (tui_free_win_content, free_content, free_content_elements):
7528 2019-06-25 Tom Tromey <tom@tromey.com>
7530 * tui/tui-winsource.h (tui_clear_source_content)
7531 (tui_erase_source_content, tui_show_source_content): Change type
7533 * tui/tui-winsource.c (tui_clear_source_content)
7534 (tui_erase_source_content, tui_show_source_content): Change type
7536 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7537 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7539 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7541 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7545 * tui/tui-winsource.c (tui_clear_source_content)
7546 (tui_source_window_base::set_is_exec_point_at): Update.
7547 * tui/tui-source.c (tui_set_source_content_nil): Update.
7548 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7550 * tui/tui-data.c (init_content_element): Update.
7552 2019-06-25 Tom Tromey <tom@tromey.com>
7554 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7555 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7556 * tui/tui-layout.c (init_and_make_win): Update.
7557 * tui/tui.h (enum tui_win_type): Update.
7558 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7559 tui_win_is_auxillary.
7560 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7561 tui_win_is_auxillary.
7563 2019-06-25 Tom Tromey <tom@tromey.com>
7565 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7566 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7567 (tui_delete_data_content_windows, tui_display_all_data)
7568 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7570 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7571 * tui/tui-regs.c (tui_last_regs_line_no)
7572 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7573 (tui_show_registers): Update.
7574 (tui_show_register_group): Return void. Update.
7575 (tui_display_registers_from, tui_display_reg_element_at_line)
7576 (tui_display_registers_from_line, tui_check_register_values):
7578 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7580 (struct tui_data_window) <regs_content>: Now a std::vector.
7581 <regs_content_count>: Remove.
7582 (tui_add_content_elements, tui_free_data_content): Don't declare.
7583 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7584 (init_content_element): Remove DATA_WIN case. Add assert.
7585 (tui_add_content_elements): Remove.
7586 (tui_data_window): Update.
7587 (tui_free_data_content): Remove.
7588 (free_content_elements): Remove DATA_WIN case.
7590 2019-06-25 Tom Tromey <tom@tromey.com>
7592 * tui/tui-data.c (tui_data_item_window): Update.
7593 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7594 * tui/tui-windata.c (tui_display_all_data)
7595 (tui_display_data_from_line): Update.
7596 (tui_check_data_values): Remove.
7597 * tui/tui-regs.c (tui_show_register_group)
7598 (tui_display_reg_element_at_line): Update.
7599 * tui/tui-hooks.c (tui_register_changed)
7600 (tui_refresh_frame_and_register_information): Call
7601 tui_check_register_values.
7602 * tui/tui-data.h (struct tui_data_window) <data_content,
7603 data_content_count, data_type>: Remove.
7604 (enum tui_data_type): Remove.
7606 * tui/tui-data.c (tui_data_window::clear_detail)
7607 (~tui_data_window): Update.
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7611 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7613 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7614 Rename from tui_first_data_item_displayed. Update.
7615 (tui_data_window::refresh_all)
7616 (tui_data_window::do_scroll_vertical): Update.
7617 * tui/tui-data.h (struct tui_data_window)
7618 <first_data_item_displayed>: Declare new method.
7620 2019-06-25 Tom Tromey <tom@tromey.com>
7622 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7623 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7625 (tui_initialize_static_data): ...here.
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7629 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7630 (tui_display_registers_from, tui_check_register_values): Update.
7631 (tui_display_register): Remove win_info parameter; update.
7632 (tui_get_register): Change type of parameters.
7633 * tui/tui-data.h (struct tui_data_element): Remove.
7634 (union tui_which_element) <data>: Remove.
7635 <data_window>: Change type.
7636 (struct tui_data_item_window): New.
7637 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7639 (~tui_data_item_window): New destructor.
7640 (free_content_elements): Remove DATA_ITEM_WIN case.
7642 2019-06-25 Tom Tromey <tom@tromey.com>
7644 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7647 2019-06-25 Tom Tromey <tom@tromey.com>
7649 * tui/tui-data.h (struct tui_command_element): Remove.
7650 (union tui_which_element) <command>: Remove.
7651 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7653 (free_content_elements): Remove CMD_WIN case.
7655 2019-06-25 Tom Tromey <tom@tromey.com>
7657 * tui/tui-layout.c (tui_set_layout): Update.
7658 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7659 * tui/tui-data.c (layout_def): Update.
7661 2019-06-25 Tom Tromey <tom@tromey.com>
7663 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7664 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7665 (tui_source_window_base::set_new_height): Update.
7666 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7668 (tui_set_locator_fullname, tui_set_locator_info)
7669 (tui_show_frame_info): Update.
7670 * tui/tui-source.c (tui_set_source_content)
7671 (tui_source_is_displayed): Update.
7672 * tui/tui-layout.c (show_source_disasm_command, show_data)
7673 (show_source_or_disasm_and_command): Update.
7674 * tui/tui-disasm.c (tui_set_disassem_content)
7675 (tui_get_begin_asm_address): Update.
7676 * tui/tui-data.h (struct tui_locator_element): Remove.
7677 (union tui_which_element) <locator>: Remove.
7678 (struct tui_locator_window): New.
7679 (tui_locator_win_info_ptr): Change return type.
7680 * tui/tui-data.c (_locator): Change type.
7681 (tui_locator_win_info_ptr): Change return type.
7682 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7683 (tui_alloc_content): Add assert.
7685 2019-06-25 Tom Tromey <tom@tromey.com>
7687 * tui/tui-winsource.c
7688 (tui_exec_info_window::maybe_allocate_content): New method.
7689 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7690 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7691 (make_source_or_disasm_window): Add cast.
7692 * tui/tui-data.h (union tui_which_element) <simple_string>:
7694 (struct tui_source_info): New.
7695 (struct tui_source_window_base) <execution_info>: Change type.
7696 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7697 case, and add assert.
7698 (tui_alloc_content): Add assert.
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7702 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7703 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7704 * tui/tui-data.c (tui_alloc_win_info): Remove.
7706 2019-06-25 Tom Tromey <tom@tromey.com>
7708 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7709 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7712 2019-06-25 Tom Tromey <tom@tromey.com>
7714 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7715 make_visible_with_new_height method.
7716 (tui_win_info::make_visible_with_new_height): New method.
7717 (tui_source_window_base::do_make_visible_with_new_height)
7718 (tui_data_window::do_make_visible_with_new_height)
7719 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7720 (make_visible_with_new_height): Remove.
7721 (tui_resize_all, tui_adjust_win_heights): Use
7722 make_visible_with_new_height method.
7723 * tui/tui-data.h (struct tui_win_info)
7724 <do_make_visible_with_new_height, make_visible_with_new_height>:
7726 (struct tui_source_window_base, struct tui_data_window)
7727 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7732 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7734 (update_tab_width): Call update_tab_width method.
7735 * tui/tui-data.h (struct tui_win_info)
7736 (struct tui_source_window_base) <update_tab_width>: New methods.
7738 2019-06-25 Tom Tromey <tom@tromey.com>
7740 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7742 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7744 (tui_gen_win_info::make_visible): Update.
7745 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7747 * tui/tui-data.h (enum tui_box): New enum.
7748 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7750 2019-06-25 Tom Tromey <tom@tromey.com>
7752 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7753 init_and_make_win for EXEC_INFO_WIN.
7754 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7756 (struct tui_win_info) <~tui_win_info>: Inline.
7757 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7759 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7760 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7762 (tui_initialize_static_data): Update.
7763 (~tui_gen_win_info): Handle more cleanup here.
7764 (~tui_source_window_base): Delete "execution_info".
7765 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7767 2019-06-25 Tom Tromey <tom@tromey.com>
7769 * tui/tui-layout.c (make_command_window): Don't set
7771 (show_source_disasm_command): Call the reset method.
7772 (show_data): Don't set can_highlight. Call the reset method.
7773 (tui_gen_win_info::reset): Rename from init_gen_win_info
7774 (init_and_make_win): Simplify. Return tui_gen_win_info.
7775 (show_source_or_disasm_and_command): Call the reset method.
7776 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7777 (struct tui_cmd_window): Set can_highlight.
7779 2019-06-25 Tom Tromey <tom@tromey.com>
7781 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7783 (tui_make_visible, tui_make_invisible): Rewrite.
7784 (tui_win_info::make_visible): Remove.
7785 (tui_source_window_base::make_visible): Update.
7786 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7787 method. Moved from...
7788 (struct tui_win_info) <make_visible>: ...here.
7790 2019-06-25 Tom Tromey <tom@tromey.com>
7792 * tui/tui-winsource.c
7793 (tui_source_window_base::do_scroll_horizontal): Remove direction
7795 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7796 direction parameter.
7797 * tui/tui-win.c (tui_win_info::forward_scroll)
7798 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7799 (tui_win_info::right_scroll): Update.
7800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7801 direction parameter.
7802 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7803 direction parameter.
7804 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7805 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7806 Remove direction parameter.
7807 (struct tui_source_window_base, struct tui_source_window)
7808 (struct tui_disasm_window, struct tui_data_window)
7809 (struct tui_cmd_window): Update.
7811 2019-06-25 Tom Tromey <tom@tromey.com>
7813 * tui/tui-winsource.h (tui_set_exec_info_content)
7814 (tui_show_exec_info_content, tui_erase_exec_info_content)
7815 (tui_clear_exec_info_content, tui_update_exec_info): Change
7816 argument to tui_source_window_base.
7817 * tui/tui-winsource.c (tui_set_exec_info_content)
7818 (tui_show_exec_info_content, tui_erase_exec_info_content)
7819 (tui_clear_exec_info_content, tui_update_exec_info): Change
7820 argument to tui_source_window_base.
7822 2019-06-25 Tom Tromey <tom@tromey.com>
7824 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7825 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7827 2019-06-25 Tom Tromey <tom@tromey.com>
7829 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7832 2019-06-25 Tom Tromey <tom@tromey.com>
7834 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7836 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7838 * tui/tui-source.c (tui_set_source_content): Update.
7839 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7841 2019-06-25 Tom Tromey <tom@tromey.com>
7843 * tui/tui-win.c (window_name_completer, tui_set_focus)
7844 (tui_all_windows_info): Use name method.
7845 * tui/tui-data.h (struct tui_gen_win_info)
7846 (struct tui_source_window, struct tui_disasm_window)
7847 (struct tui_data_window, struct tui_cmd_window) <name>: New
7849 (tui_win_name): Don't declare.
7850 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7851 (tui_win_name): Remove.
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7855 * tui/tui-winsource.h (tui_update_source_window)
7856 (tui_update_source_window_as_is): Change parameter type.
7857 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7858 to be a tui_source_window_base.
7859 (tui_update_source_window_as_is): Likewise.
7860 * tui/tui-win.c (make_visible_with_new_height): Update.
7862 2019-06-25 Tom Tromey <tom@tromey.com>
7864 * tui/tui-winsource.c (tui_erase_source_content)
7865 (tui_show_source_content, tui_show_exec_info_content)
7866 (tui_erase_exec_info_content): Use refresh_window method.
7867 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7868 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7869 from tui_refresh_win.
7870 (tui_data_window::refresh_window): New method.
7871 (tui_win_info::refresh, tui_source_window_base::refresh)
7872 (tui_refresh_all): Use refresh_window method.
7873 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7875 * tui/tui-regs.c (tui_display_register): Call refresh_window
7877 * tui/tui-layout.c (show_source_disasm_command)
7878 (show_source_or_disasm_and_command): Call refresh_window method.
7879 * tui/tui-data.h (struct tui_gen_win_info)
7880 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7883 2019-06-25 Tom Tromey <tom@tromey.com>
7885 * tui/tui.c (tui_rl_other_window, tui_enable)
7886 (tui_is_window_visible, tui_get_command_dimension): Update.
7887 * tui/tui-winsource.c (tui_update_source_window_as_is)
7888 (tui_clear_source_content, tui_erase_source_content)
7889 (tui_show_source_line, tui_source_window_base::refill)
7890 (tui_source_window_base::do_scroll_horizontal)
7891 (tui_source_window_base::set_is_exec_point_at)
7892 (tui_update_breakpoint_info, tui_set_exec_info_content)
7893 (tui_alloc_source_buffer, tui_line_is_displayed)
7894 (tui_addr_is_displayed): Update.
7895 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7896 (tui_check_and_display_highlight_if_needed)
7897 (tui_win_info::make_visible, tui_win_info::refresh)
7898 (tui_refresh_all): Update.
7899 * tui/tui-windata.c (tui_first_data_item_displayed)
7900 (tui_delete_data_content_windows, tui_erase_data_content)
7901 (tui_display_all_data, tui_data_window::refresh_all)
7902 (tui_check_data_values): Update.
7903 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7904 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7905 (tui_win_info::backward_scroll, tui_refresh_all_win)
7906 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7907 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7908 (tui_source_window_base::set_new_height)
7909 (tui_data_window::set_new_height)
7910 (make_invisible_and_set_new_height)
7911 (make_visible_with_new_height, new_height_ok)
7912 (parse_scrolling_args): Update.
7913 * tui/tui-stack.c (tui_show_frame_info): Update.
7914 * tui/tui-source.c (tui_set_source_content)
7915 (tui_set_source_content_nil, tui_source_is_displayed)
7916 (tui_source_window::do_scroll_vertical): Update.
7917 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7918 (tui_display_registers_from, tui_display_reg_element_at_line)
7919 (tui_check_register_values, tui_reg_command): Update.
7920 * tui/tui-layout.c (tui_default_win_height)
7921 (show_source_disasm_command, show_data, init_and_make_win)
7922 (show_source_or_disasm_and_command): Update.
7923 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7924 (tui_redisplay_readline, tui_mld_flush)
7925 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7927 * tui/tui-disasm.c (tui_set_disassem_content)
7928 (tui_disasm_window::do_scroll_vertical): Update.
7929 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7931 (struct tui_win_info): Derive from tui_gen_win_info.
7932 <~tui_win_info>: Mark as override.
7933 <generic>: Remove member.
7934 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7935 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7936 (~tui_data_window, ~tui_win_info)
7937 (tui_free_all_source_wins_content): Update.
7938 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7940 2019-06-25 Tom Tromey <tom@tromey.com>
7942 * tui/tui-layout.c (init_and_make_win): Use new.
7943 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7944 destructor, initializers.
7945 (tui_alloc_generic_win_info): Don't declare.
7946 * tui/tui-data.c (_locator): Add argument to constructor.
7947 (source_win, disasm_win): New globals.
7948 (exec_info): Remove.
7949 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7951 (tui_alloc_generic_win_info): Remove.
7952 (init_content_element): Use new.
7953 (tui_win_info::tui_win_info): Update.
7954 (free_content_elements) <case DATA_WIN>: Use delete.
7956 2019-06-25 Tom Tromey <tom@tromey.com>
7958 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7959 * tui/tui-windata.c (tui_first_data_item_displayed)
7960 (tui_delete_data_content_windows): Update.
7961 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7962 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7963 (tui_display_registers_from, tui_check_register_values): Update.
7964 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7966 * tui/tui-data.c (init_content_element): Update. Allocate the new
7968 (tui_free_data_content): Update.
7969 (free_content_elements) <case DATA_WIN>: Free the window.
7971 2019-06-25 Tom Tromey <tom@tromey.com>
7973 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7975 * tui/tui-layout.c (make_command_window)
7976 (show_source_disasm_command, show_data, init_and_make_win)
7977 (show_source_or_disasm_and_command): Update.
7978 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7980 <can_highight, is_highlighted>: Now bool.
7981 (tui_set_win_highlight): Don't declare.
7982 * tui/tui-data.c (tui_set_win_highlight): Remove.
7984 2019-06-25 Tom Tromey <tom@tromey.com>
7986 * tui/tui-wingeneral.c (make_visible): Remove check of window
7989 2019-06-25 Tom Tromey <tom@tromey.com>
7991 * tui/tui-win.c (tui_win_info::max_height)
7992 (tui_cmd_window::max_height): New methods.
7993 (new_height_ok): Call max_height.
7994 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7995 <max_height>: New method.
7997 2019-06-25 Tom Tromey <tom@tromey.com>
7999 * tui/tui-win.c (tui_source_window_base::set_new_height)
8000 (tui_data_window::set_new_height): New methods.
8001 (make_invisible_and_set_new_height): Call set_new_height method.
8002 * tui/tui-data.h (struct tui_win_info)
8003 (struct tui_source_window_base, struct tui_data_window)
8004 <set_new_height>: New method.
8006 2019-06-25 Tom Tromey <tom@tromey.com>
8008 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8009 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8010 tui_refresh_data_win.
8011 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8013 (tui_refresh_all_win): Call the refresh_all method.
8014 (tui_set_focus): Likewise.
8015 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8016 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8019 2019-06-25 Tom Tromey <tom@tromey.com>
8021 * tui/tui-winsource.h (tui_refill_source_window)
8022 (tui_set_is_exec_point_at): Don't declare.
8023 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8024 (tui_source_window_base::refill): Rename from
8025 tui_refill_source_window.
8026 (tui_source_window_base::do_scroll_horizontal): Update.
8027 (tui_source_window_base::set_is_exec_point_at): Rename from
8028 tui_set_is_exec_point_at.
8029 (tui_update_all_breakpoint_info): Update.
8030 * tui/tui-stack.c (tui_show_frame_info): Update.
8031 * tui/tui-layout.c (show_data): Add cast.
8032 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8033 * tui/tui-data.h (struct tui_source_window_base) <refill,
8034 set_is_exec_point_at>: New methods.
8035 (tui_source_windows, tui_add_to_source_windows): Update types.
8036 (tui_add_to_source_windows): Remove redundant declaration.
8037 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8038 (tui_source_windows): Change return type.
8039 (tui_clear_source_windows_detail): Update.
8040 (tui_add_to_source_windows): Change type of parameter.
8041 (tui_free_all_source_wins_content): Update.
8043 2019-06-25 Tom Tromey <tom@tromey.com>
8045 * tui/tui-wingeneral.c (tui_win_info::refresh)
8046 (tui_source_window_base::refresh): New methods.
8047 (tui_refresh_all): Call the refresh method.
8048 * tui/tui-data.h (struct tui_win_info)
8049 (struct tui_source_window_base) <refresh>: New method.
8051 2019-06-25 Tom Tromey <tom@tromey.com>
8053 * tui/tui.h (tui_is_window_visible): Return bool.
8054 * tui/tui.c (tui_is_window_visible): Return bool.
8055 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8056 (tui_make_visible, tui_make_invisible)
8057 (tui_win_info::make_visible)
8058 (tui_source_window_base::make_visible, make_all_visible)
8059 (tui_make_all_visible, tui_make_all_invisible): Update.
8060 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8061 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8063 (struct tui_win_info, struct tui_source_window_base)
8064 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8065 * tui/tui-data.c (tui_init_generic_part): Update.
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8069 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8070 (tui_source_window_base::make_visible): New methods.
8071 (make_all_visible): Make method call.
8072 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8073 (struct tui_source_window_base, struct tui_cmd_window): Override
8075 (tui_win_is_source_type): Don't declare.
8076 * tui/tui-data.c (tui_win_is_source_type): Remove.
8078 2019-06-25 Tom Tromey <tom@tromey.com>
8080 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8083 2019-06-25 Tom Tromey <tom@tromey.com>
8085 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8086 Inline constructor. Add initializers for members.
8087 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8088 constructors; now inline in class.
8090 2019-06-25 Tom Tromey <tom@tromey.com>
8092 * tui/tui-regs.c (tui_show_registers): Update.
8093 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8095 * tui/tui-data.c (tui_data_window::clear_detail)
8096 (tui_data_window): Update.
8098 2019-06-25 Tom Tromey <tom@tromey.com>
8100 * tui/tui-windata.c (tui_display_all_data)
8101 (tui_display_data_from_line, tui_display_data_from)
8102 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8104 * tui/tui-regs.c (tui_last_regs_line_no)
8105 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8106 (tui_show_registers, tui_show_register_group)
8107 (tui_display_registers_from, tui_display_reg_element_at_line)
8108 (tui_display_registers_from_line, tui_check_register_values)
8109 (tui_reg_next, tui_reg_prev): Update.
8110 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8111 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8113 (struct tui_win_info) <detail>: Remove. Add new fields from
8115 (TUI_DATA_WIN): Add cast.
8116 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8117 (~tui_data_window): Simplify.
8119 2019-06-25 Tom Tromey <tom@tromey.com>
8121 * tui/tui-layout.c (show_source_disasm_command)
8122 (show_source_or_disasm_and_command): Update.
8123 * tui/tui-io.c (update_cmdwin_start_line)
8124 (tui_redisplay_readline): Update.
8125 * tui/tui-data.h (struct tui_command_info): Remove.
8126 (struct tui_win_info) <detail>: Remove command_info member.
8127 (struct tui_data_window) <start_line>: New member, from
8129 (TUI_CMD_WIN): Add casts.
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8133 * tui/tui-winsource.c (tui_update_source_window)
8134 (tui_refill_source_window)
8135 (tui_source_window_base::do_scroll_horizontal)
8136 (tui_update_breakpoint_info, tui_set_exec_info_content)
8137 (tui_show_exec_info_content, tui_erase_exec_info_content)
8138 (tui_clear_exec_info_content): Update.
8139 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8141 * tui/tui-win.c (make_invisible_and_set_new_height)
8142 (make_visible_with_new_height): Update.
8143 * tui/tui-source.c (tui_set_source_content)
8144 (tui_show_symtab_source): Update.
8145 * tui/tui-layout.c (extract_display_start_addr)
8146 (show_source_disasm_command, show_data)
8147 (make_source_or_disasm_window)
8148 (show_source_or_disasm_and_command): Update.
8149 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8150 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8152 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8153 to tui_source_window_base.
8154 (struct tui_win_info) <detail>: Remove source_info member.
8155 (struct tui_source_window_base) <has_locator>: Inline.
8156 Move contents from tui_source_info; rename has_locator member to
8158 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8159 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8161 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8163 (tui_free_all_source_wins_content): Cast to
8164 tui_source_window_base.
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8168 * tui/tui-win.c (make_invisible_and_set_new_height)
8169 (make_visible_with_new_height): Call has_locator method.
8170 * tui/tui-layout.c (show_source_disasm_command, show_data)
8171 (show_source_or_disasm_and_command): Update for bool change.
8172 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8173 (tui_win_info) <has_locator>: New method.
8174 (struct tui_source_window_base) <has_locator>: New method.
8175 (tui_win_has_locator): Don't declare.
8176 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8177 from tui_win_has_locator.
8178 (tui_source_window_base): Use false, not FALSE.
8180 2019-06-25 Tom Tromey <tom@tromey.com>
8182 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8183 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8184 clear_detail method directly.
8185 (tui_clear_win_detail): Remove.
8187 2019-06-25 Tom Tromey <tom@tromey.com>
8189 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8190 "this", not TUI_DISASM_WIN.
8192 2019-06-25 Tom Tromey <tom@tromey.com>
8194 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8196 * tui/tui-winsource.c
8197 (tui_source_window_base::do_scroll_horizontal): Rename from
8198 tui_horizontal_source_scroll.
8199 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8200 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8201 from tui_vertical_data_scroll.
8202 * tui/tui-win.h (tui_scroll): Don't declare.
8203 * tui/tui-win.c (tui_win_info::forward_scroll)
8204 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8205 (tui_win_info::right_scroll): Rename and update.
8206 (tui_scroll_forward_command, tui_scroll_backward_command)
8207 (tui_scroll_left_command, tui_scroll_right_command): Update.
8208 (tui_scroll): Remove.
8209 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8210 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8211 from tui_vertical_source_scroll.
8212 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8213 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8214 from tui_vertical_disassem_scroll.
8215 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8216 do_scroll_horizontal>: New methods.
8217 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8219 (struct tui_source_window_base): Add do_scroll_horizontal.
8220 (struct tui_source_window, struct tui_disasm_window): Add
8222 (struct tui_data_window, struct tui_cmd_window): Add
8223 do_scroll_horizontal and do_scroll_vertical.
8224 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8226 2019-06-25 Tom Tromey <tom@tromey.com>
8228 * tui/tui-data.h (struct tui_source_window_base): New struct.
8229 (struct tui_source_window): Derive from tui_source_window_base.
8230 (struct tui_disasm_window): New struct.
8231 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8232 from tui_source_window::clear_detail.
8233 (tui_source_window_base): Rename from tui_source_window.
8234 (~tui_source_window_base): Rename from ~tui_source_window.
8235 (tui_alloc_win_info): Create a tui_disasm_window.
8237 2019-06-25 Tom Tromey <tom@tromey.com>
8239 * tui/tui-data.h (struct tui_source_window)
8240 (struct tui_data_window): Declare destructors.
8241 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8243 (tui_win_info): Simplify.
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8247 * tui/tui-winsource.c (tui_display_main)
8248 (tui_update_source_windows_with_addr)
8249 (tui_update_all_breakpoint_info): Update.
8250 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8251 (new_height_ok, parse_scrolling_args): Update.
8252 * tui/tui-stack.c (tui_show_frame_info): Update.
8253 * tui/tui-data.h (struct tui_list): Remove.
8254 (tui_source_windows): Return a reference to a std::vector.
8255 * tui/tui-data.c (source_windows): Now a std::vector.
8256 (tui_source_windows): Change return type.
8257 (tui_clear_source_windows): Rewrite.
8258 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8259 (tui_free_all_source_wins_content): Rewrite.
8261 2019-06-25 Tom Tromey <tom@tromey.com>
8263 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8264 (struct tui_data_window, struct tui_cmd_window): Declare
8265 clear_detail method.
8266 * tui/tui-data.c (tui_source_window::clear_detail)
8267 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8269 (tui_clear_win_detail): Simplify.
8271 2019-06-25 Tom Tromey <tom@tromey.com>
8273 * tui/tui-layout.c (make_source_window, make_disasm_window)
8274 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8275 Return the new window.
8276 (show_source_disasm_command, show_data)
8277 (show_source_or_disasm_and_command): Update.
8279 2019-06-25 Tom Tromey <tom@tromey.com>
8281 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8282 parameter. Return the new window.
8283 (show_source_disasm_command): Update and remove NULL check.
8284 (show_source_or_disasm_and_command): Update.
8286 2019-06-25 Tom Tromey <tom@tromey.com>
8288 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8290 2019-06-25 Tom Tromey <tom@tromey.com>
8292 * tui/tui-data.h (struct tui_win_info): Make constructor
8293 protected. Make destructor virtual. Add initializers.
8294 (tui_source_window, tui_data_window, tui_cmd_window): New
8296 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8297 constructor. Add "type" parameter.
8298 (tui_source_window, tui_data_window, tui_cmd_window): New
8300 (tui_alloc_win_info): Instantiate the appropriate subclass.
8302 2019-06-25 Tom Tromey <tom@tromey.com>
8304 * tui/tui-win.c (tui_resize_all): Use delete.
8305 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8307 (tui_free_window): Don't declare.
8308 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8311 2019-06-25 Tom Tromey <tom@tromey.com>
8313 * tui/tui-data.h (struct tui_win_info): Add constructor.
8314 * tui/tui-data.c (tui_alloc_win_info): Use new.
8315 (tui_free_window): Use delete.
8317 2019-06-22 Tom Tromey <tom@tromey.com>
8319 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8321 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8323 2019-06-22 Tom Tromey <tom@tromey.com>
8325 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8327 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8329 2019-06-22 Tom de Vries <tdevries@suse.de>
8331 * dwarf2read.c (create_addrmap_from_aranges)
8332 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8335 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8337 * dwarf2read.h (dwarf2_section_info_def): Remove.
8338 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8339 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8340 std::vector<dwarf2_section_info>.
8341 (struct dwo_file) <~dwo_file>: Remove.
8342 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8344 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8345 (dwarf2_read_debug_names): Likewise.
8346 (create_debug_types_hash_table): Change parameter type to
8347 array_view, adjust code accordingly.
8348 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8349 (partial_die_info::fixup): Likewise.
8350 (determine_prefix): Likewise.
8351 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8353 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8355 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8357 <~dwo_file>: Remove call to gdb_bfd_unref.
8358 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8359 gdb_bfd_ref_ptr::get.
8361 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8363 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8365 * dwarf2read.c (struct dwo_file): Initialize fields.
8367 (free_dwo_file): Remove, move content to ~dwo_file.
8368 (struct dwo_file_deleter): Remove.
8369 (dwo_file_up>: Remove custom deleter.
8370 (free_dwo_files): Remove.
8371 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8373 (process_skeletonless_type_units): Call unique_ptr::get.
8374 (allocate_dwo_file_hash_table): Add deleter to created hash
8375 table. Change return type to htab_up.
8376 (lookup_dwo_file_slot): Don't memset dwo_file, call
8378 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8379 (create_dwo_unit_in_dwp_v2): Likewise.
8380 (open_and_init_dwo_file): Likewise.
8381 (free_dwo_file_from_slot): Remove.
8383 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8385 * dwarf2read.h (struct dwarf2_section_info) <readin,
8386 is_virtual>: Change type to bool.
8387 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8390 2019-06-19 Tom Tromey <tom@tromey.com>
8392 * tui/tui-data.h (tui_init_content_element): Don't declare.
8394 2019-06-19 Tom Tromey <tom@tromey.com>
8396 * tui/tui-data.h (tui_init_win_info): Don't declare.
8398 2019-06-19 Tom de Vries <tdevries@suse.de>
8400 * dwarf2read.h (abstract_to_concrete): Change type to
8401 std::unordered_map<sect_offset, std::vector<sect_offset>,
8402 gdb::hash_enum<sect_offset>>.
8404 2019-06-19 Tom Tromey <tromey@adacore.com>
8406 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8407 EVAL_AVOID_SIDE_EFFECTS specially.
8409 2019-06-19 Tom Tromey <tromey@adacore.com>
8411 * source-cache.c (highlighter): New global.
8412 (source_cache::get_source_lines): Create a highlighter on demand.
8414 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8416 * defs.h (deprecated_interactive_hook): Delete declaration.
8417 * interps.c (clear_interpreter_hooks): Remove use of
8418 deprecated_interactive_hook.
8419 * top.c (deprecated_interactive_hook): Delete definition.
8420 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8422 2019-06-18 Tom de Vries <tdevries@suse.de>
8425 * dwarf2read.h (abstract_to_concrete): Change type from
8426 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8427 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8428 * dwarf2read.c (read_variable): Update.
8429 (dwarf2_fetch_die_loc_sect_off): Update.
8431 2019-06-17 Tom de Vries <tdevries@suse.de>
8434 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8435 accessing parent[parent_len - 1].
8437 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8440 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8441 call dtrace_process_dof with NULL dof.
8443 2019-06-16 Tom de Vries <tdevries@suse.de>
8446 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8448 2019-06-16 Tom Tromey <tom@tromey.com>
8450 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8451 (make_all_visible): Use address of member.
8453 2019-06-16 Tom Tromey <tom@tromey.com>
8455 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8456 (tui_free_window, free_content, free_content_elements): Remove
8458 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8460 * tui/tui-regs.c (tui_show_register_group)
8461 (tui_display_registers_from, tui_display_reg_element_at_line):
8462 Remove unnecessary cast.
8464 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8466 * linux-nat.c (normal_mask): Delete.
8467 (_initialize_linux_nat): Don't initialise normal_mask.
8469 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8472 * dwarf-index-write.h (write_psymtabs_to_index): Add
8473 dwz_basename parameter.
8474 * dwarf-index-write.c (write_gdbindex): Move file writing to
8475 write_gdbindex_1. Change return type void.
8476 (assert_file_size): Move up, remove filename parameter.
8477 (write_gdbindex_1): New function.
8478 (write_debug_names): Change return type to void, call
8480 (struct index_wip_file): New struct.
8481 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8482 file logic to index_wip_file. Write index for dwz file if
8484 (save_gdb_index_command): Pass basename of dwz file, if present.
8485 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8486 build-id of dwz file, if present.
8487 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8488 (dwarf2_get_dwz_file): Likewise.
8489 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8490 (dwarf2_get_dwz_file): Likewise.
8492 2019-06-16 Tom Tromey <tom@tromey.com>
8494 * coffread.c (process_coff_symbol): Use xstrdup.
8495 * value.c (create_internalvar): Use xstrdup.
8497 2019-06-16 Tom Tromey <tom@tromey.com>
8499 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8500 * breakpoint.c (stopin_command, stopat_command)
8501 (until_break_command, decode_location_default): Remove unnecessary
8503 * utils.c (subset_compare): Remove unnecessary cast.
8504 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8506 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8508 * infcmd.c (path_command): Remove unnecessary cast.
8509 * coffread.c (decode_type): Remove unnecessary cast.
8510 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8511 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8512 * tui/tui-stack.c (tui_show_locator_content)
8513 (tui_show_frame_info): Remove unnecessary cast.
8514 * tui/tui-win.c (tui_scroll_forward_command)
8515 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8516 (parse_scrolling_args): Remove unnecessary cast.
8517 * tui/tui-data.c (init_win_info, tui_del_window)
8518 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8519 (free_content_elements): Remove unnecessary cast.
8520 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8522 * tui/tui-source.c (tui_set_source_content)
8523 (tui_vertical_source_scroll): Remove unnecessary cast.
8524 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8526 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8527 * tui/tui-regs.c (tui_display_registers_from)
8528 (tui_display_register): Remove unnecessary cast.
8529 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8530 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8531 (make_visible): Remove unnecessary cast.
8532 * tui/tui-winsource.c (tui_erase_source_content)
8533 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8535 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8536 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8537 * stabsread.c (read_type, read_array_type, read_range_type):
8538 Remove unnecessary cast.
8539 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8540 (parse_symbol, parse_type, upgrade_type, parse_external)
8541 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8543 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8545 2019-06-16 Tom Tromey <tom@tromey.com>
8547 * tui/tui-data.c (tui_alloc_generic_win_info)
8548 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8551 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8552 Andrew Burgess <andrew.burgess@embecosm.com>
8554 * f-typeprint.c (f_print_type): Don't return early for not
8555 associated or not allocated types.
8556 (f_type_print_varspec_suffix): Add print_rank parameter and print
8557 ranks of array types in case they dangling.
8558 (f_type_print_base): Add print_rank parameter.
8560 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8562 * NEWS: Mention new MI commands.
8563 * break-catch-throw.c (enum exception_event_kind): Move to
8565 (print_mention_exception_catchpoint): Output text as a single
8567 (catch_exception_command_1): Rename to...
8568 (catch_exception_event): ...this, make non-static, update header
8569 command, and change some parameter types.
8570 (catch_catch_command): Update for changes to
8571 catch_exception_command_1.
8572 (catch_throw_command): Likewise.
8573 (catch_rethrow_command): Likewise.
8574 * breakpoint.c (enum exception_event_kind): Delete.
8575 * breakpoint.h (enum exception_event_kind): Moved here from
8576 break-catch-throw.c.
8577 (catch_exception_event): Declare.
8578 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8579 (mi_cmd_catch_throw): New function.
8580 (mi_cmd_catch_rethrow): New function.
8581 (mi_cmd_catch_catch): New function.
8582 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8583 'catch-catch' entries.
8584 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8585 (mi_cmd_catch_rethrow): Declare.
8586 (mi_cmd_catch_catch): Declare.
8588 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8590 * annotate.c (annotate_source_line): Change return type to void,
8591 update implementation to match.
8592 * annotate.h (annotate_source_line): Change return type to void,
8593 update header comment.
8594 * stack.c (print_frame_info): Don't change what frame information
8595 is printed based on whether annotations are on or not.
8597 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8599 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8600 (annotate_source): Make static.
8601 (annotate_source_line): Moved from source.c and renamed from
8602 identify_source_line. Update the return type.
8603 * annotate.h (annotate_source): Delete declaration.
8604 (annotate_source_line): Declaration moved from source.h, and
8605 renamed from identify_source_line. Return type updated.
8606 * source.c (identify_source_line): Moved to annotate.c and renamed
8607 to annotate_source_line.
8608 (info_line_command): Remove check of annotation_level.
8609 * source.h (identify_source_line): Move declaration to annotate.h
8610 and rename to annotate_source_line.
8611 * stack.c: Add 'annotate.h' include.
8612 (print_frame_info): Remove check of annotation_level before
8613 calling annotate_source_line.
8615 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8617 * source-cache.c (source_cache::get_plain_source_lines): Use
8618 open_source_file_with_line_charpos instead of just
8619 open_source_file, remove call to find_source_lines.
8620 (source_cache::get_source_lines): Likewise.
8621 * source.c (find_source_lines): Make static.
8622 (get_filename_and_charpos): Renamed into...
8623 (open_source_file_with_line_charpos): ..this along with changes to
8624 return a scoped_fd, and some other minor clean ups.
8625 (identify_source_line): Use open_source_file_with_line_charpos.
8626 (search_command_helper): Use open_source_file_with_line_charpos
8627 instead of just open_source_file, remove call to
8629 * source.h (open_source_file_with_line_charpos): Declare new
8631 (find_source_lines): Delete declaration.
8633 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8635 * source.c (get_filename_and_charpos): Remove fullname
8637 (identify_source_line): Update call to get_filename_and_charpos.
8639 2019-06-14 Tom Tromey <tromey@adacore.com>
8642 * ui-style.h (skip_ansi_escape): Update comment.
8643 * ui-file.h (class no_terminal_escape_file): New class.
8644 * ui-file.c (no_terminal_escape_file::write)
8645 (no_terminal_escape_file::puts): New methods.
8646 * cli/cli-logging.c (handle_redirections): Use
8647 no_terminal_escape_file.
8649 2019-06-14 Tom Tromey <tromey@adacore.com>
8651 * NEWS: Move convenience variable news above Python news.
8653 2019-06-14 Tom Tromey <tom@tromey.com>
8655 * gnulib: Move directory to top-level.
8656 * configure.ac: Don't configure gnulib.
8657 * configure: Rebuild.
8658 * common/common-defs.h: Use new path to gnulib.
8659 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8661 (INCGNU): Look in new gnulib location.
8662 (HFILES_NO_SRCDIR): Remove gnulib files.
8663 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8664 (generated_files): Remove GNULIB_H.
8665 ($(LIBGNU), all-lib): Remove targets.
8666 (distclean): Don't mention GNULIB_BUILDDIR.
8667 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8669 2019-06-14 Tom Tromey <tromey@adacore.com>
8671 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8672 Warn if symbol file does not provide any symbols.
8674 2019-06-14 Tom Tromey <tromey@adacore.com>
8676 * source.c (find_and_open_source): Respect basenames_may_differ.
8678 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8680 * annotate.c (annotate_breakpoints_invalid): Make use of
8681 scoped_restore_terminal_state.
8682 (annotate_frames_invalid): Likewise.
8684 2019-06-14 Tom Tromey <tromey@adacore.com>
8686 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8687 allow assignment to an internalvar.
8689 2019-06-14 Tom Tromey <tromey@adacore.com>
8691 * ada-lex.l: Allow "_" in attribute names.
8693 2019-06-14 Tom Tromey <tromey@adacore.com>
8696 * regcache.c (registers_changed): Don't call alloca.
8697 * top.c (execute_command): Don't call alloca.
8699 2019-06-13 Pedro Alves <palves@redhat.com>
8701 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8702 'expression'. When parsing an expression, error out if there's
8703 junk after "unlimited".
8704 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8705 (do_set_command): Adjust calls to is_unlimited_literal.
8707 2019-06-13 Pedro Alves <palves@redhat.com>
8709 * compile/compile.c (make_compile_options_def_group): Add braces
8710 around array_view initializer.
8711 * thread.c (make_thread_apply_all_options_def_group)
8712 (make_thread_apply_all_options_def_group): Likewise.
8714 2019-06-13 Pedro Alves <palves@redhat.com>
8716 * NEWS (New commands): Mention "maint test-options
8717 require-delimiter", "maint test-options unknown-is-error", "maint
8718 test-options unknown-is-operand" and "maint show
8719 test-options-completion-result".
8720 (New command options, command completion): New section.
8721 (Completion improvements): New section.
8722 Mention that you can abbreviate "unlimited".
8724 2019-06-13 Pedro Alves <palves@redhat.com>
8726 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8727 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8728 * unittests/cli-utils-selftests.c (test_parse_flags)
8729 (test_parse_flags_qcs): Delete.
8730 (test_cli_utils): Don't call deleted functions.
8732 2019-06-13 Pedro Alves <palves@redhat.com>
8734 * thread.c: Include "cli/cli-option.h".
8735 (tp_array_compar_ascending): Global.
8736 (tp_array_compar): Delete function.
8737 (tp_array_compar_ascending, tp_array_compar_descending): New
8739 (ascending_option_def, qcs_flag_option_def)
8740 (thr_qcs_flags_option_defs)
8741 (make_thread_apply_all_options_def_group)
8742 (make_thread_apply_options_def_group): New.
8743 (thread_apply_all_command): Use gdb::option::process_options.
8744 (thread_apply_command_completer)
8745 (thread_apply_all_command_completer): New.
8746 (thread_apply_command): Use gdb::option::process_options.
8747 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8748 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8749 to generate help text of "thread apply". Adjust "taas"'s help.
8750 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8751 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8753 2019-06-13 Pedro Alves <palves@redhat.com>
8755 * thread.c (thread_apply_command): Check for invalid TID with
8756 isdigit instead of !isalpha.
8758 2019-06-13 Pedro Alves <palves@redhat.com>
8760 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8761 (validate_flags_qcs): New.
8762 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8763 (validate_flags_qcs): Declare.
8764 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8765 (make_frame_apply_options_def_group): New.
8766 (frame_apply_command_count): Process options with
8767 gdb::option::process_options.
8768 (frame_apply_completer): New.
8769 (frame_apply_level_completer, frame_apply_all_completer)
8770 (frame_apply_completer): New.
8771 (_initialize_stack): Update help of "frame apply", "frame apply
8772 level", "frame apply all" and "faas" to mention supported options
8773 and install command completers.
8774 * stack.h (frame_apply_all_completer): Declare.
8775 * thread.c: Include "stack.h".
8776 (tfaas_command): Add "--".
8777 (_initialize_thread): Update help "tfaas" to mention supported
8778 options and install command completer.
8780 2019-06-13 Pedro Alves <palves@redhat.com>
8782 * completer.c (complete_nested_command_line): New.
8783 (gdb_completion_word_break_characters_throw): Add assertion.
8784 * completer.h (complete_nested_command_line): Declare.
8786 2019-06-13 Pedro Alves <palves@redhat.com>
8788 * stack.c (parse_backtrace_qualifiers): New.
8789 (backtrace_command): Use it.
8790 (backtrace_command_completer): Complete on qualifiers.
8792 2019-06-13 Pedro Alves <palves@redhat.com>
8794 * frame.c: Include "cli/cli-option.h.
8795 (user_set_backtrace_options): New.
8796 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8798 (get_prev_frame): Adjust.
8799 (boolean_option_def, uinteger_option_def)
8800 (set_backtrace_option_defs): New.
8801 (_initialize_frame): Adjust and use
8802 gdb::option::add_setshow_cmds_for_options to install "set
8803 backtrace past-main" and "set backtrace past-entry".
8804 * frame.h: Include "cli/cli-option.h".
8805 (struct frame_print_options): Forward declare.
8806 (print_frame_arguments_all, print_frame_arguments_scalars)
8807 (print_frame_arguments_none): Declare.
8808 (print_entry_values): Delete declaration.
8809 (struct frame_print_options, user_frame_print_options): New.
8810 (struct set_backtrace_options): New.
8811 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8812 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8813 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8814 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8815 (list_args_or_locals): Add frame_print_options parameter.
8816 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8817 * python/py-framefilter.c (enumerate_args): Pass down
8818 USER_FRAME_PRINT_OPTIONS.
8819 * stack.c: Include "cli/cli-option.h".
8820 (print_frame_arguments_all, print_frame_arguments_scalars)
8821 (print_frame_arguments_none): Declare.
8822 (print_raw_frame_arguments, print_entry_values): Delete.
8823 (user_frame_print_options): New.
8824 (boolean_option_def, enum_option_def, frame_print_option_defs):
8826 (struct backtrace_cmd_options): New.
8827 (bt_flag_option_def): New.
8828 (backtrace_command_option_defs): New.
8829 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8830 (print_frame_arg, read_frame_arg, print_frame_args)
8831 (print_frame_info, print_frame): Add frame_print_options parameter
8833 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8834 (backtrace_command_1): Add frame_print_options and
8835 backtrace_cmd_options parameters and use them.
8836 (make_backtrace_options_def_group): New.
8837 (backtrace_command): Process command options with
8838 gdb::option::process_options.
8839 (backtrace_command_completer): New.
8840 (_initialize_stack): Extend "backtrace"'s help to mention
8841 supported options. Install completer for "backtrace".
8842 Install some settings commands with add_setshow_cmds_for_options.
8844 2019-06-13 Pedro Alves <palves@redhat.com>
8846 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8847 and that "set/show print raw frame-arguments" are now deprecated.
8849 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8851 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8852 * stack.c (_initialize_stack): Install "set/show print
8853 raw-frame-arguments", and deprecate "set/show print raw
8855 * valprint.c (_initialize_valprint): Deprecate "set/show print
8858 2019-06-13 Pedro Alves <palves@redhat.com>
8860 * compile/compile.c (struct compile_options): New.
8861 (compile_flag_option_def, compile_command_option_defs)
8862 (make_compile_options_def_group): New.
8863 (compile_file_command): Handle options with
8864 gdb::option::process_options.
8865 (compile_file_command_completer): New function.
8866 (compile_code_command): Handle options with
8867 gdb::option::process_options.
8868 (compile_code_command_completer): New function.
8869 (_initialize_compiler): Install completers for "compile code" and
8870 "compile file". Mention available options in "compile code" and
8871 "compile code"'s help.
8872 * completer.c (advance_to_completion_word): New, factored out from
8874 (advance_to_expression_complete_word_point): ... this.
8875 (advance_to_filename_complete_word_point): New.
8876 * completer.h (advance_to_filename_complete_word_point): New
8879 2019-06-13 Pedro Alves <palves@redhat.com>
8881 * compile/compile.c: Include "cli/cli-option.h".
8882 (compile_print_value): Scope data pointer is now a
8883 value_print_options pointer; adjust.
8884 (compile_print_command): Process options. Scope data pointer is
8885 now a value_print_options pointer; adjust.
8886 (_initialize_compile): Update "compile print"'s help to include
8887 supported options. Install a completer for "compile print".
8888 * cp-valprint.c (show_vtblprint, show_objectprint)
8889 (show_static_field_print): Delete.
8890 (_initialize_cp_valprint): Don't install "set print
8891 static-members", "set print vtbl", "set print object" here.
8892 * printcmd.c: Include "cli/cli-option.h" and
8893 "common/gdb_optional.h".
8894 (print_command_parse_format): Rework to fill in a
8895 value_print_options instead of a format_data.
8896 (print_value): Change parameter type from format_data pointer to
8897 value_print_options reference. Adjust.
8898 (print_command_1): Process options. Adjust to pass down a
8899 value_print_options.
8900 (print_command_completer): New.
8901 (_initialize_printcmd): Install print_command_completer as
8902 handle_brkchars completer for the "print" command. Update
8903 "print"'s help to include supported options.
8904 * valprint.c: Include "cli/cli-option.h".
8905 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8906 here from cp-valprint.c.
8907 (boolean_option_def, uinteger_option_def)
8908 (value_print_option_defs, make_value_print_options_def_group):
8909 New. Use gdb::option::add_setshow_cmds_for_options to install
8910 "set print elements", "set print null-stop", "set print repeats",
8911 "set print pretty", "set print union", "set print array", "set
8912 print address", "set print symbol", "set print array-indexes".
8913 * valprint.h: Include <string> and "cli/cli-option.h".
8914 (make_value_print_options_def_group): Declare.
8915 (print_value): Change parameter type from format_data pointer to
8916 value_print_options reference.
8917 (print_command_completer): Declare.
8919 2019-06-13 Pedro Alves <palves@redhat.com>
8921 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8922 (COMMON_SFILES): Add maint-test-settings.c.
8923 * cli/cli-decode.c (boolean_enums): New global, factored out from
8925 (add_setshow_boolean_cmd): ... here.
8926 * cli/cli-decode.h (boolean_enums): Declare.
8927 * cli/cli-option.c: New file.
8928 * cli/cli-option.h: New file.
8929 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8930 factored out from ...
8931 (parse_cli_boolean_value(const char *)): ... this.
8932 (is_unlimited_literal): Change parameter type to pointer to
8933 pointer. Adjust and advance ARG pointer.
8934 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8935 (parse_cli_var_enum): New, factored out from ...
8936 (do_set_command): ... this. Adjust.
8937 * cli/cli-setshow.h (parse_cli_boolean_value)
8938 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8939 (parse_cli_var_enum): Declare.
8940 * cli/cli-utils.c: Include "cli/cli-option.h".
8941 (get_ulongest): New.
8942 * cli/cli-utils.h (get_ulongest): Declare.
8943 (check_for_argument): New overloads.
8944 * maint-test-options.c: New file.
8946 2019-06-13 Pedro Alves <palves@redhat.com>
8948 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8949 parse a range if "-" is at the end of the string.
8951 2019-06-13 Pedro Alves <palves@redhat.com>
8953 * cli/cli-setshow.c (parse_auto_binary_operation)
8954 (parse_cli_boolean_value): Don't allow "o".
8956 2019-06-13 Pedro Alves <palves@redhat.com>
8958 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8959 * NEWS: Mention maint test-settings KIND.
8960 * maint-test-settings.c: New file.
8962 2019-06-13 Pedro Alves <palves@redhat.com>
8964 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8966 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8969 2019-06-13 Pedro Alves <palves@redhat.com>
8971 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8974 2019-06-13 Pedro Alves <palves@redhat.com>
8976 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8978 2019-06-13 Pedro Alves <palves@redhat.com>
8980 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8981 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8983 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8984 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8986 (check_for_argument): Skip spaces after argument.
8988 2019-06-13 Pedro Alves <palves@redhat.com>
8990 * thread.c (thread_apply_command): Adjust TID parsing.
8991 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8992 detected before end of string.
8993 (tid_is_in_list): Error out if LIST is invalid.
8995 2019-06-13 Pedro Alves <palves@redhat.com>
8997 * completer.c (complete_line_internal_1): Rewind completion word
8999 (completion_tracker::advance_custom_word_point_by): Change
9000 parameter type to int.
9001 * completer.h (completion_tracker::advance_custom_word_point_by):
9004 2019-06-13 Pedro Alves <palves@redhat.com>
9006 * completer.c (advance_to_completion_word): Handle delimiters.
9008 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9010 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9012 2019-06-11 Tom Tromey <tom@tromey.com>
9014 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9015 (xmalloc_failed): Move to alloc.c.
9016 * alloc.c: New file.
9017 * Makefile.in (COMMON_SFILES): Add alloc.c.
9019 2019-06-11 Tom Tromey <tom@tromey.com>
9021 * nat/linux-waitpid.c: Don't include server.h.
9022 (linux_debug): Remove.
9023 (my_waitpid): Update.
9025 2019-06-11 Tom Tromey <tromey@adacore.com>
9027 * infcall.c (_initialize_infcall): Remove trailing newline from
9029 * user-regs.c (_initialize_user_regs): Remove trailing newline
9031 * typeprint.c (_initialize_typeprint): Remove trailing newline
9033 * reverse.c (_initialize_reverse): Remove trailing newlines from
9035 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9037 * language.c (add_set_language_command): Remove trailing newline
9039 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9041 * disasm.c (_initialize_disasm): Remove trailing newline from
9043 * top.c (init_main): Remove trailing newline from help.
9044 * interps.c (_initialize_interpreter): Remove trailing newline
9046 * btrace.c (_initialize_btrace): Remove trailing newlines from
9048 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9050 * python/python.c (_initialize_python): Remove trailing newline
9052 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9054 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9055 from help. Reformat some text.
9056 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9058 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9061 2019-06-11 Tom Tromey <tromey@adacore.com>
9063 * darwin-nat.c (darwin_decode_exception_message)
9064 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9066 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9068 * valops.c (value_slice): Check for not allocated or not
9071 2019-06-10 Tom de Vries <tdevries@suse.de>
9074 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9075 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9078 2019-06-10 Tom de Vries <tdevries@suse.de>
9081 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9082 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9084 2019-06-10 Tom de Vries <tdevries@suse.de>
9087 * symtab.c (struct demangled_name_entry): Add language field.
9088 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9089 static minimal symbol". Set and use language field.
9091 2019-06-10 Tom Tromey <tromey@adacore.com>
9093 * ada-lang.c (_initialize_ada_language): Update help text.
9095 2019-06-10 Tom Tromey <tromey@adacore.com>
9097 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9099 * guile/guile.c (handle_boot_error): Don't end warning with a
9101 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9102 warning with a newline.
9103 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9105 (s12z_frame_cache): Likewise.
9106 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9108 * solib-svr4.c (disable_probes_interface): Don't end warning with
9110 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9112 * python/python.c (do_finish_initialization): Don't end warning
9115 2019-06-10 Tom Tromey <tom@tromey.com>
9117 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9118 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9121 2019-06-10 Tom Tromey <tromey@adacore.com>
9123 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9125 (elf_new_init): Don't call stabsread_new_init.
9126 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9127 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9128 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9130 2019-06-10 Tom de Vries <tdevries@suse.de>
9134 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9136 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9138 * source.c (find_and_open_source): Also rewrite relative file
9141 2019-04-26 Amos Bird <amosbird@gmail.com>
9143 * annotate.c (annotate_thread_exited): Add "thread-exited"
9146 2019-06-06 Tom Tromey <tromey@adacore.com>
9148 * maint.h (class scoped_command_stats): Use
9149 DISABLE_COPY_AND_ASSIGN.
9150 <print_time>: New method.
9151 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9153 (scoped_command_stats::print_time): New method.
9155 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9157 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9158 instructions of lengths 6 or 8 bytes.
9160 2019-06-04 Pedro Alves <palves@redhat.com>
9162 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9164 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9165 * breakpoint.c (condition_completer): Likewise.
9166 * cli/cli-dump.c (scan_expression): Likewise.
9167 * common/filestuff.c (mkdir_recursive): Likewise.
9168 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9169 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9170 (gdb_abspath): Likewise.
9171 * compile/compile-cplus-types.c
9172 (compile_cplus_instance::decl_name): Likewise.
9173 * completer.c (complete_explicit_location):
9174 (signal_completer, reg_or_group_completer_1): Likewise.
9175 * cp-support.c (cp_remove_params_if_any): Likewise.
9176 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9177 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9178 * infcmd.c (strip_bg_char): Likewise.
9179 * linespec.c (copy_token_string): Likewise.
9180 * mi/mi-main.c (output_cores): Likewise.
9181 * psymtab.c (psymtab_search_name):
9182 * symfile.c (test_set_ext_lang_command): Likewise.
9183 * target.c (target_fileio_read_stralloc): Likewise.
9184 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9185 * value.c (complete_internalvar): Likewise.
9187 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9189 Add objfile property to gdb.Type.
9190 * NEWS: Mention Python API addition.
9191 * python/py-type.c (typy_get_objfile): New method.
9193 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9195 * NEWS: Mention the new set|show style [title|highlight].
9196 Mention changes to "show style", "help" and "apropos".
9198 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9200 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9201 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9202 instead of print_help_for_command.
9203 (print_doc_of_command): New function.
9204 (help_list): Add 'apropos -v word' suggestion.
9205 (print_help_for_command): Style the command name using title style.
9206 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9207 (_initialize_cli_cmds): Describe -v in apropos_command help.
9209 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9211 * cli/cli-style.h (cli_style_option): Add name in constructor,
9212 add m_name class member, add constructor with intensity,
9213 add name class function.
9214 (cli_style_option::add_setshow_commands): Remove name argument.
9215 (highlight_style, title_style): New styles.
9216 * cli/cli-style.c (do_show): New function that shows a style
9217 characteristic styling the style name with itself.
9218 (set_style_name): New function.
9219 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9220 Update all callers according to the changes in cli/cli-style.h.
9221 * utils.h (fputs_highlighted): New function.
9222 * utils.c (fputs_highlighted): Likewise.
9224 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9226 * NEWS: Mention new pipe command and new convenience variables.
9228 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9230 * cli/cli-cmds.c (pipe_command): New function.
9231 (_initialize_cli_cmds): Call add_com for pipe_command.
9232 Define | as an alias for pipe.
9233 (exit_status_set_internal_vars): New function.
9234 (shell_escape): Call exit_status_set_internal_vars.
9235 cli/cli-decode.c (find_command_name_length): Recognize | as
9236 a single character command.
9238 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9240 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9241 top.c (execute_command_to_ui_file): New function, mostly a copy
9242 of execute_command_to_string.
9243 (execute_command_to_string): Implement by calling
9244 execute_command_to_ui_file.
9246 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9248 * top.h (saved_command_line): Remove declaration.
9249 * top.c (previous_saved_command_line, previous_repeat_arguments):
9251 (saved_command_line): Make static, define together with other
9253 (dont_repeat): Clear repeat_arguments.
9254 (repeat_previous, get_saved_command_line, save_command_line):
9256 (gdb_init): Initialize saved_command_line
9257 and previous_saved_command_line.
9258 * main.c (captured_main_1): Remove saved_command_line initialization.
9259 * event-top.c (handle_line_of_input): Update to use
9260 the new 'repeat' related functions instead of direct access to
9262 * command.h (repeat_previous, get_saved_command_line,
9263 save_command_line): New declarations.
9264 (dont_repeat): Add comment.
9266 2019-05-30 Tom Tromey <tromey@adacore.com>
9268 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9270 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9272 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9275 * completer.c (complete): Initialize variable word.
9277 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9279 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9280 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9281 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9282 'body' is NULL to the outter 'if', protecting the '!is_define'
9285 2019-05-29 Tom Tromey <tromey@adacore.com>
9287 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9288 (dwarf_unknown): New function.
9289 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9290 (dwarf_type_encoding_name): Use dwarf_unknown.
9292 2019-05-29 Tom Tromey <tromey@adacore.com>
9295 * cp-valprint.c (cp_print_value_fields): Call
9296 cp_print_static_field inside "try".
9298 2019-05-29 Tom Tromey <tromey@adacore.com>
9300 * inflow.c (struct terminal_info): Add default operator=.
9301 * configure: Rebuild.
9302 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9303 -Wdeprecated-copy-dtor, -Wredundant-move.
9305 2019-05-29 Tom Tromey <tromey@adacore.com>
9308 * infcmd.c (print_return_value_1): Handle finish_print
9310 (show_print_finish): New function.
9311 (_initialize_infcmd): Add "set/show print finish" commands.
9312 * valprint.c (user_print_options): Initialize new member.
9313 * valprint.h (struct value_print_options) <finish_print>: New
9316 2019-05-28 Tom Tromey <tromey@adacore.com>
9318 * ada-lang.c (ada_remove_Xbn_suffix)
9319 (find_old_style_renaming_symbol)
9320 (parse_old_style_renaming): Remove.
9321 (ada_find_renaming_symbol): Don't call
9322 find_old_style_renaming_symbol.
9323 (ada_is_renaming_symbol): Rename from
9324 ada_find_renaming_symbol. Remove "block" parameter. Return
9326 (ada_read_var_value): Update and simplify.
9327 * ada-exp.y (write_var_or_type): Remove old code.
9329 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9332 * event-top.c: Remove include comment.
9333 * inflow.c (class scoped_ignore_sigttou): Move from here...
9334 * inflow.h (class scoped_ignore_sigttou): ...to here.
9335 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9336 * top.c: Remove include comment.
9338 2019-05-27 Tom Tromey <tom@tromey.com>
9342 2019-05-22 Tom Tromey <tromey@adacore.com>
9344 * target.c (target_follow_exec): Constify parameter.
9345 * target-delegates.c: Rebuild.
9346 * remote.c (remote_target::follow_exec): Constify parameter.
9347 * infrun.c (follow_exec): Constify parameter.
9348 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9349 (target_follow_exec): Likewise.
9351 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9353 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9354 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9356 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9358 * NEWS: Add debugredirect and testsuite sections.
9360 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9362 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9363 target descriptions using exclusively floating point register name
9366 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9369 * f-lang.c (build_fortran_types): Handle the case where
9370 gdbarch_floatformat_for_type returns a nullptr.
9372 2019-05-21 Tom de Vries <tdevries@suse.de>
9375 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9377 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9380 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9382 * i386-tdep.c (i386_floatformat_for_type): Use
9383 floatformats_ia64_quad for the 16-byte floating point component
9384 within a fortran 32-byte complex number.
9386 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9388 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9389 delete default constructor.
9390 (find_partial_die): Update to return const struct.
9391 (partial_die_parent_scope): Move variable declaration into scope
9392 of its use and change its type to auto.
9393 (guess_partial_die_structure_name): Likewise.
9394 (partial_die_info::fixup): Likewise.
9396 2019-05-17 Tom Tromey <tromey@adacore.com>
9398 * source.c (find_and_open_source): Remove cast.
9400 2019-05-17 Tom Tromey <tromey@adacore.com>
9402 * annotate.c (annotate_source): Make "filename" const.
9403 * annotate.h (annotate_source): Use const.
9405 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9407 * disasm.c (set_disassembler_options): Send errors to stderr.
9409 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9411 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9412 (cli_interp_base::set_logging): Check debug_redirect.
9413 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9414 * cli/cli-logging.c (debug_redirect): Add static variable.
9415 (pop_output_files): Add default param.
9416 (handle_redirections): Print debug setting.
9417 (show_logging_command): Likewise.
9418 (_initialize_cli_logging): Add debugredirect command.
9419 * interps.c (current_interp_set_logging): Add debug_redirect
9421 * interps.h (set_logging): Add debug_redirect parameter.
9422 (current_interp_set_logging): Likewise.
9423 * mi/mi-common.h: Likewise.
9424 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9426 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9427 Tom Tromey <tromey@adacore.com>
9429 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9431 * cli/cli-interp.h (make_logging_output): Remove declaration.
9432 * cli/cli-logging.c (make_logging_output): Remove function.
9433 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9435 * ui-file.c (tee_file::tee_file): Remove bools.
9436 (tee_file::~tee_file): Remove deletes.
9437 * ui-file.h (tee_file): Remove bools.
9439 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9441 * mi/mi-cmds.h (mi_cmd_complete): New function.
9442 * mi/mi-main.c (mi_cmd_complete): Likewise.
9443 * mi/mi-cmds.c: Define new MI command -complete.
9444 * NEWS: Mention new -complete command.
9446 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9448 * completer.h (complete): New function.
9449 * completer.c (complete): Likewise.
9450 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9451 function defined in completer.h.
9453 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9455 * MAINTAINERS (Write After Approval): Add myself.
9457 2019-05-17 Tom de Vries <tdevries@suse.de>
9460 * dwarf2read.c (struct cu_partial_die_info): New struct.
9461 (find_partial_die): Return cu_partial_die_info.
9462 (partial_die_parent_scope, guess_partial_die_structure_name)
9463 (partial_die_info::fixup): Handle new return type of find_partial_die.
9465 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9467 PR breakpoints/24541
9468 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9469 "std::string", simplifying the algorithm.
9471 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9473 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9474 (stap_static_probe_ops::get_probes): Likewise.
9476 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9478 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9479 '-')" and "else if".
9480 (stap_parse_single_operand): Join checks for
9481 "gdbarch_stap_parse_special_token_p" and
9482 "gdbarch_stap_parse_special_token" in the same "if" statement.
9483 Invert check when verifying for operation on register
9486 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9488 * stap-probe.c (stap_get_opcode): Update comment.
9489 (stap_get_expected_argument_type): Likewise.
9490 (handle_stap_probe): Likewise.
9492 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9494 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9495 return type to 'bool'. Adjust comment. Use 'bool' when
9497 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9498 * stap-probe.c (stap_parse_argument_1): Likewise.
9499 (stap_is_operator): Likewise.
9500 (stap_is_generic_prefix): Likewise.
9501 (stap_is_register_prefix): Likewise.
9502 (stap_is_register_indirection_prefix): Likewise.
9503 (stap_is_integer_prefix): Likewise.
9504 (stap_generic_check_suffix): Likewise.
9505 (stap_check_integer_suffix): Likewise.
9506 (stap_check_register_suffix): Likewise.
9507 (stap_check_register_indirection_suffix): Likewise.
9508 (stap_parse_register_operand): Likewise.
9509 (stap_parse_single_operand): Likewise.
9510 (stap_parse_argument_1): Likewise.
9511 (stap_probe::get_argument_count): Likewise.
9512 (stap_is_operator): Likewise.
9514 2019-05-16 Tom Tromey <tromey@adacore.com>
9516 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9519 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9521 * linux-thread-db.c (try_thread_db_load_1): Change return type
9523 (try_thread_db_load): Likewise.
9524 (try_thread_db_load_from_pdir_1): Likewise.
9525 (try_thread_db_load_from_pdir): Likewise.
9526 (try_thread_db_load_from_sdir): Likewise.
9527 (try_thread_db_load_from_dir): Likewise.
9528 (thread_db_load_search): Likewise.
9529 (has_libpthread): Likewise.
9530 (thread_db_load): Likewise.
9532 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9534 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9535 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9536 NULL, and complain/return if that's the case.
9538 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9540 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9541 (advance, posn, abstract_read_memory): New functions.
9542 [struct mem_read_abstraction]: New struct.
9543 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9545 2019-05-14 Tom Tromey <tromey@adacore.com>
9547 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9548 value is not lval_memory.
9550 2019-05-14 Tom Tromey <tromey@adacore.com>
9552 * solib.c (info_sharedlibrary_command): Style the file name.
9554 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9556 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9557 (aarch64_vnv_type): Likewise.
9558 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9559 * common/tdesc.c: Likewise.
9560 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9561 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9562 * features/aarch64-fpu.xml: Add ieee half view.
9563 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9564 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9565 * gdbtypes.h (struct builtin_type): Likewise.
9566 (struct objfile_type): Likewise.
9568 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9570 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9572 * location.h (string_to_event_location): Likewise.
9574 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9578 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9580 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9581 New variable declaration.
9582 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9584 (print_one_breakpoint): Use ui_out::test_flags and new global
9585 variable to compute use_fixed_output.
9586 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9588 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9589 (mi_multi_location_breakpoint_output_fixed): Remove.
9590 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9592 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9593 fix_multi_location_breakpoint_output flag if version >= 3.
9594 * ui-out.h (enum ui_out_flag)
9595 <fix_multi_location_breakpoint_output>: New enumerator.
9597 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9599 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9601 2019-05-10 Tom Tromey <tromey@adacore.com>
9603 * ada-lang.c (catch_ada_completer): New function.
9604 (_initialize_ada_language): Use it.
9606 2019-05-10 Tom Tromey <tromey@adacore.com>
9608 * thread.c (print_thread_info): Make "requested_threads" const.
9609 * gdbthread.h (print_thread_info): Make "requested_threads"
9611 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9612 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9614 2019-05-08 Tom Tromey <tom@tromey.com>
9616 * gdbtypes.c (objfile_type_data): Change type.
9617 (objfile_type, _initialize_gdbtypes): Update.
9619 2019-05-08 Tom Tromey <tom@tromey.com>
9621 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9622 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9623 (_initialize_dwarf2_frame): Update.
9625 2019-05-08 Tom Tromey <tom@tromey.com>
9627 * objc-lang.c (objc_objfile_data): Change type.
9628 (find_methods): Update.
9629 (_initialize_objc_lang): Remove.
9631 2019-05-08 Tom Tromey <tom@tromey.com>
9633 * stabsread.c (rs6000_builtin_type_data): Change type.
9634 (rs6000_builtin_type, _initialize_stabsread): Update.
9636 2019-05-08 Tom Tromey <tom@tromey.com>
9638 * mips-tdep.c (mips_pdr_data): Remove.
9639 (_initialize_mips_tdep): Update.
9641 2019-05-08 Tom Tromey <tom@tromey.com>
9643 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9644 (hppa_init_objfile_priv_data, read_unwind_info)
9645 (find_unwind_entry, _initialize_hppa_tdep): Update.
9647 2019-05-08 Tom Tromey <tom@tromey.com>
9649 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9650 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9652 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9654 2019-05-08 Tom Tromey <tom@tromey.com>
9656 * mdebugread.c (basic_type_data): Change type.
9657 (basic_type, _initialize_mdebugread): Update.
9659 2019-05-08 Tom Tromey <tom@tromey.com>
9661 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9663 2019-05-08 Tom Tromey <tom@tromey.com>
9665 * nto-tdep.c (nto_inferior_data_reg): Change type.
9666 (nto_inferior_data): Update.
9667 (nto_inferior_data_cleanup, nto_new_inferior_data)
9668 (_initialize_nto_tdep): Remove.
9669 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9671 2019-05-08 Tom Tromey <tom@tromey.com>
9673 * ada-lang.c (struct ada_inferior_data): Add initializers.
9674 (ada_inferior_data): Change type.
9675 (ada_inferior_data_cleanup): Remove.
9676 (get_ada_inferior_data, ada_inferior_exit)
9677 (struct ada_pspace_data): Add initializers, destructor.
9678 (ada_pspace_data_handle): Change type.
9679 (get_ada_pspace_data): Update.
9680 (ada_pspace_data_cleanup): Remove.
9682 2019-05-08 Tom Tromey <tom@tromey.com>
9684 * coffread.c (struct coff_symfile_info): Add initializers.
9685 (coff_objfile_data_key): Move lower. Change type.
9686 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9688 (coff_free_info): Remove.
9690 2019-05-08 Tom Tromey <tom@tromey.com>
9692 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9693 (fbsd_pspace_data_handle): Move lower. Change type.
9694 (get_fbsd_pspace_data): Update.
9695 (fbsd_pspace_data_cleanup): Remove.
9696 (_initialize_fbsd_tdep): Update.
9698 2019-05-08 Tom Tromey <tom@tromey.com>
9700 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9701 (get_ada_tasks_pspace_data): Update.
9702 (ada_tasks_pspace_data_cleanup): Remove.
9703 (_initialize_tasks): Update.
9704 (ada_tasks_inferior_data_handle): Change type.
9705 (get_ada_tasks_inferior_data): Update.
9706 (ada_tasks_inferior_data_cleanup): Remove.
9707 (struct ada_tasks_pspace_data): Add initializers.
9709 2019-05-08 Tom Tromey <tom@tromey.com>
9711 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9712 * symfile-debug.c (debug_sym_get_probes): Change type.
9713 * stap-probe.c (handle_stap_probe):
9714 (stap_static_probe_ops::get_probes): Change type.
9715 * probe.h (class static_probe_ops) <get_probes>: Change type.
9716 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9717 (parse_probes_in_pspace): Update.
9718 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9720 (any_static_probe_ops::get_probes): Change type.
9721 * elfread.c (elfread_data): New typedef.
9722 (probe_key): Change type.
9723 (elf_get_probes): Likewise. Update.
9724 (probe_key_free): Remove.
9725 (_initialize_elfread): Update.
9726 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9728 (dtrace_process_dof_probe, dtrace_process_dof)
9729 (dtrace_static_probe_ops::get_probe): Change type.
9731 2019-05-08 Tom Tromey <tom@tromey.com>
9733 * xcoffread.c (struct xcoff_symfile_info): Rename from
9734 coff_symfile_info. Add initializers.
9735 (xcoff_objfile_data_key): Move lower. Change type.
9736 (XCOFF_DATA): Rewrite.
9737 (xcoff_free_info): Remove.
9738 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9739 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9740 (xcoff_initial_scan): Update.
9742 2019-05-08 Tom Tromey <tom@tromey.com>
9744 * solib-svr4.c (struct svr4_info): Add initializers and
9746 <probes_table>: Now an htab_up.
9747 (solib_svr4_pspace_data): Change type.
9748 (free_probes_table): Simplify.
9749 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9750 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9751 (probes_table_remove_objfile_probes, register_solib_event_probe)
9752 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9753 (_initialize_svr4_solib): Update.
9755 2019-05-08 Tom Tromey <tom@tromey.com>
9757 * remote.c (remote_pspace_data): Change type.
9758 (remote_pspace_data_cleanup): Remove.
9759 (get_remote_exec_file, set_pspace_remote_exec_file)
9760 (_initialize_remote): Update.
9762 2019-05-08 Tom Tromey <tom@tromey.com>
9764 * breakpoint.c (breakpoint_objfile_key): Change type.
9765 (get_breakpoint_objfile_data): Update.
9766 (free_breakpoint_objfile_data): Remove.
9767 (_initialize_breakpoint): Update.
9769 2019-05-08 Tom Tromey <tom@tromey.com>
9771 * linux-tdep.c (struct linux_info): Add initializers.
9772 (linux_inferior_data): Move. Change type.
9773 (invalidate_linux_cache_inf): Update.
9774 (linux_inferior_data_cleanup): Remove.
9775 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9777 2019-05-08 Tom Tromey <tom@tromey.com>
9779 * auxv.c (auxv_inferior_data): Move. Change type.
9780 (auxv_inferior_data_cleanup): Remove.
9781 (invalidate_auxv_cache_inf): Rewrite.
9782 (get_auxv_inferior_data, _initialize_auxv): Update.
9784 2019-05-08 Tom Tromey <tom@tromey.com>
9786 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9787 (symfile_debug_objfile_data_key): Change type.
9788 (symfile_debug_installed, debug_qf_has_symbols)
9789 (debug_qf_find_last_source_symtab)
9790 (debug_qf_forget_cached_source_info)
9791 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9792 (debug_qf_print_stats, debug_qf_dump)
9793 (debug_qf_expand_symtabs_for_function)
9794 (debug_qf_expand_all_symtabs)
9795 (debug_qf_expand_symtabs_with_fullname)
9796 (debug_qf_map_matching_symbols)
9797 (debug_qf_expand_symtabs_matching)
9798 (debug_qf_find_pc_sect_compunit_symtab)
9799 (debug_qf_map_symbol_filenames)
9800 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9801 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9802 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9803 (debug_sym_read_linetable, debug_sym_relocate): Update.
9804 (symfile_debug_free_objfile): Remove.
9805 (install_symfile_debug_logging, _initialize_symfile_debug):
9808 2019-05-08 Tom Tromey <tom@tromey.com>
9810 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9811 allocate_on_obstack.
9812 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9813 (get_dwarf2_per_objfile): Update.
9814 (set_dwarf2_per_objfile): Remove.
9815 (dwarf2_has_info, dwarf2_get_section_info): Update.
9816 (dwarf2_free_objfile): Remove.
9817 (_initialize_dwarf2_read): Update.
9819 2019-05-08 Tom Tromey <tom@tromey.com>
9821 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9823 <unsupported_script_warning_printed,
9824 script_not_found_warning_printed>: Now bool.
9825 (auto_load_pspace_data): Change type.
9826 (~auto_load_pspace_info): Rename from
9827 auto_load_pspace_data_cleanup.
9828 (get_auto_load_pspace_data, init_loaded_scripts_info)
9829 (clear_section_scripts, maybe_print_unsupported_script_warning)
9830 (maybe_print_script_not_found_warning, _initialize_auto_load):
9833 2019-05-08 Tom Tromey <tom@tromey.com>
9835 * objfiles.c (objfile_pspace_info): Add destructor and
9837 (objfiles_pspace_data): Change type.
9838 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9839 (get_objfile_pspace_data): Update.
9840 (objfiles_bfd_data): Change type.
9841 (get_objfile_bfd_data): Update.
9842 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9844 2019-05-08 Tom Tromey <tom@tromey.com>
9846 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9848 (get_catch_syscall_inferior_data): Update.
9849 (catch_syscall_inferior_data_cleanup): Remove.
9850 (_initialize_break_catch_syscall): Update.
9852 2019-05-08 Tom Tromey <tom@tromey.com>
9854 * inflow.c (struct terminal_info): Add destructor and
9856 (inflow_inferior_data): Change type.
9857 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9858 (get_inflow_inferior_data, inflow_inferior_exit)
9859 (swap_terminal_info, _initialize_inflow): Update.
9861 2019-05-08 Tom Tromey <tom@tromey.com>
9863 * target-dcache.c (target_dcache_cleanup): Remove.
9864 (target_dcache_aspace_key): Change type.
9865 (target_dcache_init_p, target_dcache_invalidate)
9866 (target_dcache_get, target_dcache_get_or_init)
9867 (_initialize_target_dcache): Update.
9868 * dcache.h (struct dcache_deleter): New.
9870 2019-05-08 Tom Tromey <tom@tromey.com>
9872 * symtab.c (struct symbol_cache): Add destructor and
9874 (symbol_cache_key): Move. Change type.
9875 (make_symbol_cache, free_symbol_cache): Remove.
9876 (get_symbol_cache): Update.
9877 (symbol_cache_cleanup): Remove.
9878 (ALL_PSPACES, symbol_cache_flush)
9879 (maintenance_print_symbol_cache)
9880 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9883 2019-05-08 Tom Tromey <tom@tromey.com>
9885 * symtab.c (struct main_info): Add destructor and initializers.
9886 (main_progspace_key): Move. Change type.
9887 (get_main_info): Update.
9888 (main_info_cleanup): Remove.
9889 (_initialize_symtab): Update.
9891 2019-05-08 Tom Tromey <tom@tromey.com>
9893 * registry.h (DECLARE_REGISTRY): Define the _key class.
9895 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9897 * NEWS: Merge two 'New commands' sections.
9899 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9901 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9902 parameter and use Ada language definition instead.
9903 (ada_val_print_ptr): Remove unused language parameter.
9904 (ada_val_print_num): Remove language parameter and use Ada language
9906 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9908 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9909 parameter and use Ada language definition instead.
9910 (ada_val_print_1): Update all ada_val_print_xxx calls.
9911 Remove language parameter.
9912 (ada_val_print): Update ada_val_print_1 call.
9914 2019-05-08 Tom Tromey <tromey@adacore.com>
9916 * remote.c (remote_hw_watchpoint_limit)
9917 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9920 2019-05-08 Tom Tromey <tromey@adacore.com>
9922 * maint.c (_initialize_maint_cmds): Move initialization code to
9924 (watchdog, show_watchdog): Move to remote.c.
9925 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9927 (_initialize_remote): Move initialization code from maint.c.
9928 * defs.h (watchdog): Don't declare.
9930 2019-05-08 Tom Tromey <tromey@adacore.com>
9932 * tui/tui-interp.c: Include main.h.
9933 * interps.c: Include main.h.
9934 * main.h (interpreter_p): Declare.
9935 * defs.h (interpreter_p): Don't declare.
9937 2019-05-08 Tom Tromey <tromey@adacore.com>
9939 * dwarf2loc.c: Include dwarf2read.h.
9940 * defs.h (read_unsigned_leb128): Don't declare.
9941 * dwarf2read.h (read_unsigned_leb128): Declare.
9943 2019-05-08 Tom Tromey <tromey@adacore.com>
9945 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9948 2019-05-08 Tom Tromey <tromey@adacore.com>
9950 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9951 when no wrap column is set.
9953 2019-05-08 Tom Tromey <tromey@adacore.com>
9955 * c-lang.c (c_get_string): Handle non-C-style arrays.
9957 2019-05-08 Tom Tromey <tromey@adacore.com>
9959 * typeprint.c (print_offset_data::update): Print the bit offset,
9960 not the number of bits remaining.
9962 2019-05-08 Tom Tromey <tromey@adacore.com>
9964 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9965 padding at end of comment.
9967 2019-05-08 Tom Tromey <tromey@adacore.com>
9969 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9972 2019-05-06 Tom Tromey <tom@tromey.com>
9974 * common/scoped_mmap.c: Include common-defs.h.
9975 * common/scoped_mmap.h: Don't include config.h.
9977 2019-05-04 Tom Tromey <tom@tromey.com>
9979 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9980 (struct aarch64_call_info): Add initializers.
9981 <si>: Now a std::vector.
9982 (pass_on_stack, aarch64_push_dummy_call): Update.
9984 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9985 Tom Tromey <tom@tromey.com>
9987 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9988 (ppc_threads): Now a std::vector. Now static.
9989 (hwdebug_find_thread_points_by_tid)
9990 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9993 2019-05-04 Tom Tromey <tom@tromey.com>
9995 * arc-tdep.c (arc_tdesc_init): Return bool.
9997 2019-05-04 Tom Tromey <tom@tromey.com>
9999 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10000 Use gdb_assert_not_reached.
10002 2019-05-04 Tom Tromey <tom@tromey.com>
10004 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10007 2019-05-04 Tom Tromey <tom@tromey.com>
10009 * arc-tdep.c (arc_tdesc_init): Use bool.
10011 2019-05-04 Tom Tromey <tom@tromey.com>
10013 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10015 2019-05-04 Tom Tromey <tom@tromey.com>
10017 * cli/cli-cmds.c (valid_command_p): Return bool.
10019 2019-05-04 Tom Tromey <tom@tromey.com>
10021 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10022 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10024 2019-05-04 Raul Tambre <raul@tambre.ee>
10026 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10027 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10028 operator for comparison.
10030 2019-05-04 Tom Tromey <tom@tromey.com>
10032 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10033 (lookup_partial_symbol, print_partial_symbols)
10034 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10035 (psymbol_compare): Update.
10036 (add_psymbol_to_bcache): Clear the entire psymbol.
10037 (maintenance_check_psymtabs): Update.
10038 * psympriv.h (struct partial_symbol): Don't derive from
10039 general_symbol_info.
10040 <obj_section, unrelocated_address, address,
10041 set_unrelocated_address>: Update.
10042 <ginfo>: New member.
10043 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10044 (debug_names::write_psymbols): Update.
10046 2019-05-04 Tom de Vries <tdevries@suse.de>
10048 * contrib/cc-with-tweaks.sh: Support -n arg.
10050 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10052 * corelow.c (core_target::detach): Ensure frame cache and
10053 register caches are cleared.
10054 inferior.c (exit_inferior_1): Likewise.
10056 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10057 Tom Tromey <tom@tromey.com>
10059 * dictionary.c (collate_pending_symbols_by_language): Remove
10060 "struct" from foreach.
10061 * symtab.c (lookup_global_symbol_from_objfile)
10062 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10064 * ser-tcp.c (net_open): Remove "struct" from foreach.
10065 * objfiles.c (objfile_relocate, objfile_rebase)
10066 (objfile_has_symbols): Remove "struct" from foreach.
10067 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10069 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10071 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10072 "struct" from foreach.
10073 * ada-lang.c (create_excep_cond_exprs)
10074 (ada_exception_catchpoint_cond_string): Remove "struct" from
10077 2019-05-03 Tom Tromey <tromey@adacore.com>
10079 * ada-exp.y (convert_char_literal): Check suffix of each
10082 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10085 * ada-exp.y (yywrap): Don't define.
10086 * ada-lex.l (%option): Add noyywrap
10089 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10091 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10092 _WIN32_WINNT to the XP level, unless already defined to a higher
10095 * unittests/parse-connection-spec-selftests.c:
10097 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10100 * symfile.c (find_separate_debug_file): Remove colon from the
10101 drive spec of DOS/Windows file names of the target, so that the
10102 file name produced from DEBUGDIR and the target's directory will
10103 be valid on DOS/Windows systems.
10105 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10107 * rust-lang.c (val_print_struct): Handle printing structures
10108 containing strings.
10110 2019-05-02 Tom Tromey <tromey@adacore.com>
10112 * valarith.c (_initialize_valarith): Remove.
10114 2019-05-01 Tom Tromey <tromey@adacore.com>
10116 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10119 2019-05-01 Tom Tromey <tromey@adacore.com>
10121 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10122 for big-endian copies.
10124 2019-04-30 Ali Tamur <tamur@google.com>
10125 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10126 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10127 (read_3_bytes): New function.
10129 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10131 * windows-nat.c (main_thread_id): Delete.
10132 (handle_output_debug_string): Replace main_thread_id by
10133 current_event.dwThreadId.
10134 (fake_create_process): Likewise.
10135 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10136 Do not set main_thread_id.
10137 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10138 current_event.dwThreadId.
10139 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10141 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10143 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10144 Use current_event.dwThreadId instead of main_thread_id.
10146 2019-04-30 Tom Tromey <tromey@adacore.com>
10148 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10149 (create_excep_cond_exprs): Iterate over program spaces.
10150 (ada_exception_catchpoint_cond_string): Examine all minimal
10151 symbols for exception types.
10153 2019-04-30 Tom Tromey <tromey@adacore.com>
10156 * dwarf2read.c (process_structure_scope): Handle case where type
10157 has template parameters but no symbol was created.
10159 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10160 Chris January <chris.january@arm.com>
10162 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10164 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10168 * f-typeprint.c (f_print_type): Update rules for printing
10170 (f_type_print_varspec_suffix): Likewise.
10172 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10173 Chris January <chris.january@arm.com>
10175 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10176 function arguments.
10178 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10180 * f-lang.c (build_fortran_types): Change name of void type to
10182 * f-typeprint.c (f_type_print_base): Print the name of the void
10183 type, rather than a fixed string.
10184 * f-valprint.c (f_decorations): Use lower case void string.
10186 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10187 Chris January <chris.january@arm.com>
10189 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10192 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10193 Chris January <chris.january@arm.com>
10194 David Lecomber <david.lecomber@arm.com>
10196 * f-exp.y (BINOP_INTRINSIC): New token.
10197 (exp): New parser rule handling BINOP_INTRINSIC.
10198 (f77_keywords): Add new builtin procedures.
10199 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10200 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10201 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10202 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10203 (print_unop_subexp_f): New function.
10204 (print_binop_subexp_f): New function.
10205 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10206 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10207 (dump_subexp_body_f): Likewise.
10208 (operator_check_f): Likewise.
10209 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10210 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10212 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10214 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10216 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10217 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10218 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10219 (operator_length_f): New fuction.
10220 (print_subexp_f): New function.
10221 (op_name_f): New function.
10222 (dump_subexp_body_f): New function.
10223 (operator_check_f): New function.
10224 (exp_descriptor_f): Replace standard expression handling functions
10225 with new functions.
10226 * gdb/fortran-operator.def: New file.
10227 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10228 * gdb/std-operator.def: Remove UNOP_KIND.
10230 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10232 * std-operator.def: Remove unbalanced, stray double quote
10235 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10236 Chris January <chris.january@arm.com>
10237 Daniel Everett <daniel.everett@arm.com>
10238 Nick Forrington <nick.forrington@arm.com>
10239 Richard Bunt <richard.bunt@arm.com>
10241 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10242 of depth when printing anonymous structs or unions.
10243 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10244 Don't print either the top-level value, or the children if the
10245 max-depth is exceeded.
10246 (ppscm_print_children): When printing the key of a map, allow one
10247 extra level of depth.
10248 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10249 print either the top-level value, or the children if the max-depth
10251 (print_children): When printing the key of a map, allow one extra
10253 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10254 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10255 (user_print_options): Initialise max_depth field.
10256 (val_print_scalar_or_string_type_p): New function.
10257 (val_print): Check to see if the max depth has been reached.
10258 (val_print_check_max_depth): Define new function.
10259 (show_print_max_depth): New function.
10260 (_initialize_valprint): Add 'print max-depth' option.
10261 * valprint.h (struct value_print_options) <max_depth>: New field.
10262 (val_print_check_max_depth): Declare new function.
10263 * NEWS: Document new feature.
10265 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10267 * ada-lang.c (ada_language_defn): Initialise new field.
10268 * c-lang.c (c_is_string_type_p): New function.
10269 (c_language_defn): Initialise new field.
10270 (cplus_language_defn): Initialise new field.
10271 (asm_language_defn): Initialise new field.
10272 (minimal_language_defn): Initialise new field.
10273 * c-lang.h (c_is_string_type_p): Declare new function.
10274 * d-lang.c (d_language_defn): Initialise new field.
10275 * f-lang.c (f_is_string_type_p): New function.
10276 (f_language_defn): Initialise new field.
10277 * go-lang.c (go_is_string_type_p): New function.
10278 (go_language_defn): Initialise new field.
10279 * language.c (default_is_string_type_p): New function.
10280 (unknown_language_defn): Initialise new field.
10281 (auto_language_defn): Initialise new field.
10282 * language.h (struct language_defn) <la_is_string_type_p>: New
10284 (default_is_string_type_p): Declare new function.
10285 * m2-lang.c (m2_language_defn): Initialise new field.
10286 * objc-lang.c (objc_language_defn): Initialise new field.
10287 * opencl-lang.c (opencl_language_defn): Initialise new field.
10288 * p-lang.c (pascal_is_string_type_p): New function.
10289 (pascal_language_defn): Initialise new field.
10290 * rust-lang.c (rust_is_string_type_p): New function.
10291 (rust_language_defn): Initialise new field.
10293 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10295 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10297 * ada-lang.c (ada_language_defn): Initialise new field.
10298 * c-lang.c (c_language_defn): Likewise.
10299 (cplus_language_defn): Likewise.
10300 (asm_language_defn): Likewise.
10301 (minimal_language_defn): Likewise.
10302 * d-lang.c (d_language_defn): Likewise.
10303 * f-lang.c (f_language_defn): Likewise.
10304 * go-lang.c (go_language_defn): Likewise.
10305 * language.c (unknown_language_defn): Likewise.
10306 (auto_language_defn): Likewise.
10307 * m2-lang.c (m2_language_defn): Likewise.
10308 * objc-lang.c (objc_language_defn): Likewise.
10309 * opencl-lang.c (opencl_language_defn): Likewise.
10310 * p-lang.c (pascal_language_defn): Likewise.
10311 * rust-lang.c (rust_language_defn): Likewise.
10313 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10315 * ada-lang.c (ada_is_character_type): Change return type to bool.
10316 (ada_is_string_type): Likewise.
10317 * ada-lang.h (ada_is_character_type): Update declaration
10318 (ada_is_string_type): Likewise.
10320 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10322 Support style in 'frame|thread apply'
10324 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10325 * record.c (record_start, record_stop): Update callers of
10326 execute_command_to_string with false.
10327 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10328 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10330 (class string_file): New constructor with term_out parameter.
10331 Override methods term_out and can_emit_style_escape. New member
10333 (class stdio_file): Override can_emit_style_escape.
10334 (class tee_file): Override term_out and can_emit_style_escape.
10335 * utils.h (can_emit_style_escape): Remove.
10336 * utils.c (can_emit_style_escape): Likewise.
10337 Update all callers of can_emit_style_escape (SOMESTREAM) to
10338 SOMESTREAM->can_emit_style_escape.
10339 * source-cache.c (source_cache::get_source_lines): Likewise.
10340 * stack.c (frame_apply_command_count): Call execute_command_to_string
10341 passing the term_out characteristic of the current gdb_stdout.
10342 * thread.c (thr_try_catch_cmd): Likewise.
10343 * top.c (execute_command_to_string): pass term_out parameter
10344 to construct the string_file for the command output.
10345 * ui-file.c (term_cli_styling): New function (most code moved
10346 from utils.c can_emit_style_escape).
10347 (string_file::string_file, string_file::can_emit_style_escape,
10348 stdio_file::can_emit_style_escape, tee_file::term_out,
10349 tee_file::can_emit_style_escape): New functions.
10351 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10353 * NEWS: Mention the new set|show may-call-functions.
10354 * infcall.c (may_call_functions_p): New variable.
10355 (show_may_call_functions_p): New function.
10356 (call_function_by_hand_dummy): Throws an error if not
10357 may-call-functions.
10358 (_initialize_infcall): Call add_setshow_boolean_cmd for
10359 may-call-functions.
10361 2019-04-25 Keith Seitz <keiths@redhat.com>
10364 * cp-support.c (inspect_type): Don't attempt substitutions
10365 of symbol with the same name.
10367 2019-04-25 Tom Tromey <tromey@adacore.com>
10370 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10373 2019-04-25 Tom Tromey <tromey@adacore.com>
10375 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10377 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10378 (gdb_xml_parser::parse): Use std::move.
10379 * python/python-internal.h (gdbpy_convert_exception): Take a const
10381 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10383 * python/py-utils.c (gdbpy_convert_exception): Take a const
10385 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10387 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10389 * mi/mi-main.c (mi_print_exception): Take a const reference.
10390 * main.c (handle_command_errors): Take a const reference.
10391 * linespec.c (parse_linespec): Use std::move.
10392 * infcall.c (run_inferior_call): Use std::move.
10393 (call_function_by_hand_dummy): Use std::move.
10394 * exec.c (try_open_exec_file): Use std::move.
10395 * exceptions.h (exception_print, exception_fprintf)
10396 (exception_print_same): Update.
10397 * exceptions.c (print_exception, exception_print)
10398 (exception_fprintf, exception_print_same): Change parameters to
10400 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10401 * common/new-op.c: Use std::move.
10402 * common/common-exceptions.h (struct gdb_exception): Add move
10404 (struct gdb_exception_error, struct gdb_exception_quit, struct
10405 gdb_quit_bad_alloc): Change constructor to move constructor.
10406 (throw_exception): Change parameter to rvalue reference.
10407 * common/common-exceptions.c (throw_exception): Take rvalue
10409 * cli/cli-interp.c (safe_execute_command): Use std::move.
10410 * breakpoint.c (insert_bp_location, location_to_sals): Use
10413 2019-04-25 Tom Tromey <tromey@adacore.com>
10415 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10416 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10417 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10418 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10419 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10420 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10421 guile/scm-value.c: Use unpack.
10422 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10423 gdbscm_gdb_exception.
10424 (gdbscm_throw_gdb_exception): Likewise.
10425 (struct gdbscm_gdb_exception): New.
10426 (unpack): New function.
10427 (gdbscm_wrap): Use unpack.
10429 2019-04-25 Tom Tromey <tromey@adacore.com>
10431 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10432 (gdb_rl_callback_handler): Use std::move.
10433 * common/common-exceptions.h (struct gdb_exception): Add move
10434 assignment operator.
10435 (throw_exception_sjlj): Change "exception" to const reference.
10436 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10437 (throw_exception_sjlj): Change "exception" to const reference.
10439 2019-04-25 Tom Tromey <tromey@adacore.com>
10441 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10442 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10443 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10445 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10447 * mi/mi-interp.c (mi_interp::exec): Update.
10448 * linespec.c (parse_linespec): Update.
10449 * infcall.c (run_inferior_call): Update.
10450 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10451 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10452 (gdbscm_lookup_global_symbol): Update.
10453 * guile/scm-param.c (gdbscm_parameter_value): Update.
10454 * guile/scm-frame.c (gdbscm_frame_read_register)
10455 (gdbscm_frame_read_var): Update.
10456 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10457 * exec.c (try_open_exec_file): Update.
10458 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10459 (gdb_rl_callback_handler): Update.
10460 * common/common-exceptions.h (exception_none): Don't declare.
10461 * common/common-exceptions.c (exception_none): Don't define.
10462 (struct catcher) <exception>: Update.
10463 * cli/cli-interp.c (safe_execute_command): Update.
10464 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10466 2019-04-25 Ali Tamur <tamur@google.com>
10468 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10469 (read_attribute_value): Likewise.
10470 (dwarf2_read_addr_index): Update comment.
10471 (read_str_index): Add DW_FORM_strx.
10472 (dwarf2_string_attr): Likewise.
10473 (dwarf2_const_value_attr): Likewise.
10474 (dump_die_shallow): Likewise.
10475 (dwarf2_fetch_constant_bytes): Likewise.
10476 (skip_form_bytes): Likewise.
10477 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10479 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10483 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10484 OFFSET. Verify if current mapping contains an ELF header.
10485 (linux_find_memory_regions_full): Adjust call to
10488 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10489 Kang Li <kanglictf@gmail.com>
10493 * dwarf2-frame.c (read_initial_length): Be consistent about using
10494 unsigned representation of length.
10495 (decode_frame_entry_1): Likewise. Check for wraparound of
10496 end pointer as well as buffer overflow.
10498 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10500 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10503 2019-04-24 Tom Tromey <tromey@adacore.com>
10505 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10507 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10509 * s12z-tdep.c (s12z_unwind_pc): Delete.
10510 (s12z_unwind_sp): Delete.
10511 (s12z_gdbarch_init): Don't register deleted functions with
10514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10516 * rl78-tdep.c (rl78_unwind_sp): Delete.
10517 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10519 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10521 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10522 (xstormy16_unwind_pc): Delete.
10523 (xstormy16_dummy_id): Delete.
10524 (xstormy16_gdbarch_init): Don't register deleted functions with
10527 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10529 * vax-tdep.c (vax_unwind_pc): Delete.
10530 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10534 * v850-tdep.c (v850_unwind_sp): Delete.
10535 (v850_unwind_pc): Delete.
10536 (v850_dummy_id): Delete.
10537 (v850_gdbarch_init): Don't register deleted functions with
10540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10542 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10543 (tilegx_unwind_pc): Delete.
10544 (tilegx_unwind_dummy_id): Delete.
10545 (tilegx_gdbarch_init): Don't register deleted functions with
10548 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10550 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10551 (tic6x_dummy_id): Delete.
10552 (tic6x_gdbarch_init): Don't register deleted functions with
10555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10557 * sparc-tdep.c (sparc_unwind_pc): Delete.
10558 (sparc32_gdbarch_init): Don't register deleted function with
10561 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10563 * sh-tdep.c (sh_unwind_sp): Delete.
10564 (sh_unwind_pc): Delete.
10565 (sh_dummy_id): Delete.
10566 (sh_gdbarch_init): Don't register deleted functions with
10569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10571 * score-tdep.c (score_unwind_sp): Delete.
10572 (score_unwind_pc): Delete.
10573 (score_dummy_id): Delete.
10574 (score_gdbarch_init): Don't register deleted functions with
10577 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10579 * rx-tdep.c (rx_unwind_pc): Delete.
10580 (rx_unwind_sp): Delete.
10581 (rx_dummy_id): Delete.
10582 (rx_gdbarch_init): Don't register deleted functions with
10583 gdbarch. Update comment.
10585 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10587 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10588 (rs6000_dummy_id): Delete.
10589 (rs6000_gdbarch_init): Don't register deleted functions with
10592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10594 * or1k-tdep.c (or1k_dummy_id): Delete.
10595 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10599 * nios2-tdep.c (nios2_dummy_id): Delete.
10600 (nios2_unwind_sp): Delete.
10601 (nios2_gdbarch_init): Don't register deleted functions with
10604 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10606 * nds32-tdep.c (nds32_dummy_id): Delete.
10607 (nds32_unwind_pc): Delete.
10608 (nds32_unwind_sp): Delete.
10609 (nds32_gdbarch_init): Don't register deleted functions with
10612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10614 * msp430-tdep.c (msp430_unwind_pc): Delete.
10615 (msp430_unwind_sp): Delete.
10616 (msp430_dummy_id): Delete.
10617 (msp430_gdbarch_init): Don't register deleted functions with
10620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10622 * moxie-tdep.c (moxie_unwind_sp): Delete.
10623 (moxie_unwind_pc): Delete.
10624 (moxie_dummy_id): Delete.
10625 (moxie_gdbarch_init): Don't register deleted functions with
10628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10630 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10631 (mn10300_unwind_pc): Delete.
10632 (mn10300_unwind_sp): Delete.
10633 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10635 (mn10300_frame_unwind_init): Don't register deleted functions with
10638 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10640 * mep-tdep.c (mep_unwind_pc): Delete.
10641 (mep_unwind_sp): Delete.
10642 (mep_dummy_id): Delete.
10643 (mep_gdbarch_init): Don't register deleted functions with
10646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10648 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10649 (m68hc11_unwind_sp): Delete.
10650 (m68hc11_gdbarch_init): Don't register deleted functions with
10653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10655 * m32r-tdep.c (m32r_unwind_sp): Delete.
10656 (m32r_unwind_pc): Delete.
10657 (m32r_dummy_id): Delete.
10658 (m32r_gdbarch_init): Don't register deleted functions with
10661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10663 * m32c-tdep.c (m32c_unwind_pc): Delete.
10664 (m32c_unwind_sp): Delete.
10665 (m32c_dummy_id): Delete.
10666 (m32c_gdbarch_init): Don't register deleted functions with
10669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10671 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10672 (lm32_unwind_pc): Delete.
10673 (lm32_dummy_id): Delete.
10674 (lm32_gdbarch_init): Don't register deleted functions with
10677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10679 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10680 (iq2000_unwind_pc): Delete.
10681 (iq2000_dummy_id): Delete.
10682 (iq2000_gdbarch_init): Don't register deleted functions with
10685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10687 * nds32-tdep.c (nds32_type_align): Delete.
10688 (nds32_push_dummy_call): Use type_align instead.
10690 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10692 * arm-tdep.c (arm_type_align): Only handle vector override case.
10693 (arm_push_dummy_call): Use type_align.
10694 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10696 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10698 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10700 (pass_on_stack): Use type_align.
10701 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10704 2019-04-23 Tom Tromey <tromey@adacore.com>
10706 * dwarf2read.c (line_header::file_name_at): Remove unused
10709 2019-04-23 Tom de Vries <tdevries@suse.de>
10712 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10716 2019-03-27 Ali Tamur <tamur@google.com>
10718 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10719 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10720 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10721 (dwarf_expr_context::get_addr_index): Likewise
10722 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10723 (symbol_needs_eval_context::get_addr_index): Likewise
10724 (disassemble_dwarf_expression): Add DW_OP_addrx
10725 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10726 (read_cutu_die_from_dwo): Update comment
10727 (skip_one_die): Add DW_FORM_addrx
10728 (read_attribute_value): Likewise
10729 (var_decode_location): Add DW_OP_addrx
10730 (dwarf2_const_value_attr): Add DW_FORM_addrx
10731 (dump_die_shallow): Likewise
10732 (dwarf2_fetch_constant_bytes): Likewise
10733 (decode_locdesc): Add DW_OP_addrx
10734 (skip_form_bytes): Add DW_FORM_addrx
10736 2019-04-22 Ali Tamur <tamur@google.com>
10738 * MAINTAINERS (Write After Approval): Add self.
10740 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10742 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10743 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10744 (open_symbol_file_object): Likewise.
10745 (svr4_default_sos): Add info parameter.
10746 (svr4_read_so_list): Likewise.
10747 (svr4_current_sos_direct): Adjust functions calls to pass down
10749 (svr4_current_sos_1): Add info parameter.
10750 (svr4_current_sos): Call get_svr4_info, pass info down to
10751 svr4_current_sos_1.
10752 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10754 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10756 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10758 (probes_table_remove_objfile_probes): Likewise.
10759 (register_solib_event_probe): Add info parameter.
10760 (solist_update_incremental): Pass info parameter down to
10762 (disable_probes_interface): Add info parameter.
10763 (svr4_handle_solib_event): Pass current_program_space to
10764 get_svr4_info. Adjust disable_probes_interface cleanup.
10765 (svr4_create_probe_breakpoints): Add info parameter, pass it
10766 down to register_solib_event_probe.
10767 (svr4_create_solib_event_breakpoints): Add info parameter,
10768 pass it down to svr4_create_probe_breakpoints.
10769 (enable_break): Pass info down to
10770 svr4_create_solib_event_breakpoints.
10771 (svr4_solib_create_inferior_hook): Pass current_program_space to
10773 (svr4_clear_solib): Likewise.
10775 2019-04-22 Pedro Alves <palves@redhat.com>
10777 * solib-svr4.c (svr4_free_objfile_observer): New.
10778 (probe_and_action::objfile): New field.
10779 (probes_table_htab_remove_objfile_probes)
10780 (probes_table_remove_objfile_probes): New functions.
10781 (register_solib_event_probe): Add 'objfile' parameter. Store it
10782 in the new probe_and_action. Don't store the probe in 'lookup'.
10783 (svr4_create_probe_breakpoints): Pass objfile to
10784 register_solib_event_probe.
10785 (_initialize_svr4_solib): Register a free_objfile observer.
10787 2019-04-19 Tom Tromey <tom@tromey.com>
10789 * common/queue.h: Remove.
10791 2019-04-19 Tom Tromey <tom@tromey.com>
10793 * event-loop.c: Don't include "common/queue.h".
10795 2019-04-19 Tom Tromey <tom@tromey.com>
10797 * remote.c (remote_target): Use delete.
10798 * remote-notif.h: Include <list>, not "common/queue.h".
10799 (notif_client_p): Remove typedef.
10800 (remote_notif_state): Add constructor, destructor, initializer.
10801 <notif_queue>: Now a std::list.
10802 (remote_notif_state_xfree): Don't declare.
10803 * remote-notif.c (remote_notif_process, handle_notification)
10804 (remote_notif_state_allocate): Update.
10805 (~remote_notif_state): Rename from remote_notif_state_xfree.
10807 2019-04-19 Tom Tromey <tom@tromey.com>
10809 * symfile.c (reread_symbols): Update.
10810 * objfiles.c (objfile_register_static_link)
10811 (objfile_lookup_static_link): Update
10812 (~objfile) Don't delete static_links.
10813 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10815 2019-04-19 Tom Tromey <tom@tromey.com>
10817 * type-stack.h (struct type_stack) <insert>: Constify string.
10818 * type-stack.c (type_stack::insert): Constify string.
10819 * gdbtypes.h (lookup_template_type): Update.
10820 (address_space_name_to_int): Update.
10821 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10823 (lookup_template_type): Make name const.
10824 * c-exp.y: Update rules.
10825 (lex_one_token, classify_name, classify_inner_name)
10826 (c_print_token): Update.
10827 * p-exp.y: Update rules.
10829 * f-exp.y: Update rules.
10831 * d-exp.y: Update rules.
10832 (lex_one_token, classify_name, classify_inner_name): Update.
10833 * parse.c (write_dollar_variable, copy_name): Return std::string.
10834 * parser-defs.h (copy_name): Change return type.
10835 * m2-exp.y: Update rules.
10837 * go-exp.y (lex_one_token): Update.
10839 (classify_unsafe_function, classify_packaged_name)
10840 (classify_name, yylex): Update.
10842 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10844 * configure.ac: add --enable-source-highlight switch.
10845 * configure: Regenerate.
10846 * top.c (print_gdb_version): plumb --enable-source-highlight
10847 status to "show configuration".
10849 2019-04-19 Tom Tromey <tromey@adacore.com>
10851 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10853 (empty_record, ada_template_to_fixed_record_type_1)
10854 (template_to_static_fixed_type)
10855 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10856 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10857 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10860 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10863 * source.c (print_source_lines_base): Advance "iter" when a
10864 control character is seen.
10866 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10868 * inferior.h (struct infcall_suspend_state_deleter):
10869 Catch exception in destructor to avoid crash.
10871 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10873 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10874 close to the add_com "shell".
10876 2019-04-18 Tom Tromey <tromey@adacore.com>
10878 * process-stratum-target.h (class process_stratum_target)
10879 <stratum>: Add "final".
10881 2019-04-17 Tom Tromey <tromey@adacore.com>
10883 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10884 against nullptr before use.
10886 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10888 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10890 2019-04-17 Jim Wilson <jimw@sifive.com>
10891 Andrew Burgess <andrew.burgess@embecosm.com>
10893 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10894 code read might fail, assume 4-byte breakpoint in that case.
10896 2019-04-15 Leszek Swirski <leszeks@google.com>
10898 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10899 rather than a hand-rolled POD check when checking for forced MEMORY
10902 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10904 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10905 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10907 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10908 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10909 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10912 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10914 * aarch64-linux-nat.c
10915 (aarch64_linux_nat_target::thread_architecture): Add override.
10916 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10919 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10921 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10923 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10925 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10926 target types of size 96-bits, add some additional comments, and
10927 check that the builtin type we found was the correct size.
10929 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10931 * utils.c (prompt_for_continue): Don't restore the styling at the
10932 end, as applied_style has the wrong value. This fixes styling in
10933 long lists of file names that are interrupted by the "Continue?"
10936 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10938 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10939 * c-lang.c (c_language_defn): Likewise.
10940 (cplus_language_defn): Likewise.
10941 (asm_language_defn): Likewise.
10942 (minimal_language_defn): Likewise.
10943 * d-lang.c (d_language_defn): Likewise.
10944 * f-lang.c (f_language_defn): Likewise.
10945 * go-lang.c (go_language_defn): Likewise.
10946 * language.c (unknown_language_defn): Likewise.
10947 (auto_language_defn): Likewise.
10948 * language.h (struct language_defn): Remove la_magic field.
10949 (LANG_MAGIC): Delete.
10950 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10951 * objc-lang.c (objc_language_defn): Likewise.
10952 * opencl-lang.c (opencl_language_defn): Likewise.
10953 * p-lang.c (pascal_language_defn): Likewise.
10954 * rust-lang.c (rust_language_defn): Likewise.
10956 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10958 * riscv-tdep.c (riscv_type_align): New function.
10959 (riscv_type_alignment): Delete.
10960 (riscv_arg_location): Use 'type_align'.
10961 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10963 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10965 * gdbtypes.c (type_align): A struct with no non-static fields also
10966 has alignment of 1.
10968 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10970 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10972 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10974 (riscv_struct_info::analyse): New implementation using new
10975 analyse_inner member function.
10976 (riscv_struct_info::field_offset): New member function.
10977 (riscv_struct_info::m_offsets): New member variable.
10978 (riscv_struct_info::analyse_inner): New private member function,
10979 takes the old implementation of riscv_struct_info::analyse but
10980 extended to track field offsets.
10981 (riscv_call_arg_struct): Update the struct folding special cases
10982 to handle cases where empty C++ structs, which are non-zero
10984 (riscv_arg_location): Initialise the length of each location, a
10985 non-zero length now indicates the location is in use.
10986 (riscv_push_dummy_call): Allow for the first location having a
10987 non-zero offset when setting up arguments.
10988 (riscv_return_value): Likewise, but for return values.
10990 2019-04-11 Tom Tromey <tromey@adacore.com>
10992 * utils.c (internal_vproblem): Make "msg" const.
10994 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10996 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10997 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10998 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10999 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11001 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11003 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11005 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11006 of amd64_collect_native_gregset.
11007 (amd64_linux_nat_target::store_registers): Likewise.
11009 2019-04-10 Tom Tromey <tom@tromey.com>
11011 * symtab.c (lookup_global_symbol_from_objfile)
11012 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11013 * objfiles.h (class separate_debug_iterator): New.
11014 (class separate_debug_range): New.
11015 (struct objfile) <separate_debug_objfiles>: New method.
11016 (objfile_separate_debug_iterate): Don't declare.
11017 * objfiles.c (separate_debug_iterator::operator++): Rename from
11018 objfile_separate_debug_iterate.
11019 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11021 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11024 2019-04-10 Tom Tromey <tom@tromey.com>
11026 * symfile.c (reread_symbols): Remove old comment.
11027 * objfiles.c (free_all_objfiles): Fix a typo.
11029 2019-04-10 Tom Tromey <tom@tromey.com>
11031 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11032 * minsyms.c (lookup_minimal_symbol): Use foreach.
11033 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11034 (lookup_minimal_symbol_solib_trampoline): Likewise.
11035 * symfile.c (reread_symbols): Use foreach.
11037 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11038 Tom Tromey <tromey@adacore.com>
11041 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11042 (rust_lex_int_test): Change "value" to be LONGEST.
11043 (rust_lex_tests): Add test for long integer literal.
11045 2019-04-09 Tom Tromey <tromey@adacore.com>
11047 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11049 (extended_remote_target::attach): Update.
11050 (remote_target::remote_notice_new_inferior): Update.
11051 (remote_target::add_current_inferior_and_thread): Update.
11052 * inferior.c (exit_inferior_1): Use "false".
11053 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11055 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11057 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11058 the "start" command.
11060 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11062 * python/py-inferior.c (infpy_thread_from_thread_handle):
11063 Adjust comments to reflect renaming of thread_from_thread_handle
11064 to thread_from_handle. Adjust keywords. Fix type error message.
11065 (inferior_object_methods): Add thread_from_handle. Retain
11066 thread_from_thread_handle, but mark it as deprecated.
11068 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11070 * gdbthread.h (find_thread_by_handle): Revise declaration.
11071 * thread.c (find_thread_by_handle): Likewise. Adjust
11072 implementation too.
11073 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11074 support for buffer objects as handles.
11076 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11078 * python/py-infthread.c (thpy_thread_handle): New function.
11079 (thread_object_methods): Register thpy_thread_handle.
11081 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11083 * gdbthread.h (thread_to_thread_handle): Declare.
11084 * thread.c (gdbtypes.h): Include.
11085 (thread_to_thread_handle): New function.
11087 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11088 (target_thread_info_to_thread_handle): Declare.
11089 * target.c (target_thread_info_to_thread_handle): New function.
11090 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11091 * target-delegates.c: Regenerate.
11093 * linux-thread-db.c (class thread_db_target): Add method
11094 thread_info_to_thread_handle.
11095 (thread_db_target::thread_info_to_thread_handle): Define.
11096 * remote.c (class remote_target): Add new method
11097 thread_info_to_thread_handle.
11098 (remote_target::thread_info_to_thread_handle): Define.
11100 2019-04-08 Pedro Alves <palves@redhat.com>
11102 * common/common-exceptions.c (throw_exception): Don't create
11103 named object to throw; throw directly.
11104 (throw_it): Likewise. Don't initialize gdb_exception::message
11105 here, with new; pass FMT and AP to the ctor instead.
11106 * common/common-exceptions.h: Include <string>.
11107 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11108 const char *, va_list)): New ctor. Use std::make_shared.
11109 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11111 (gdb_exception_error::gdb_exception_error(enum errors, const char
11113 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11115 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11117 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11118 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11121 2019-04-08 Tom Tromey <tom@tromey.com>
11123 * valops.c (value_rtti_indirect_type): Replace throw_exception
11125 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11127 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11129 * target.c (target_translate_tls_address): Replace throw_exception
11131 * stack.c (frame_apply_command_count): Replace throw_exception
11133 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11135 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11137 * rs6000-tdep.c (rs6000_frame_cache)
11138 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11139 * remote.c: Replace throw_exception with throw.
11140 * record-full.c (record_full_message, record_full_wait_1)
11141 (record_full_restore): Replace throw_exception with throw.
11143 (get_thread_current_frame_id, record_btrace_start_replaying)
11144 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11145 (cmd_record_btrace_start): Replace throw_exception with throw.
11146 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11148 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11149 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11151 (find_linespec_symbols): Replace throw_exception with throw.
11152 * infrun.c (displaced_step_prepare, resume): Replace
11153 throw_exception with throw.
11154 * infcmd.c (post_create_inferior): Replace throw_exception with
11156 * inf-loop.c (inferior_event_handler): Replace throw_exception
11158 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11159 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11160 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11161 (get_prev_frame_always, get_frame_pc_if_available)
11162 (get_frame_address_in_block_if_available, get_frame_language):
11163 Replace throw_exception with throw.
11164 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11165 throw_exception with throw.
11166 * eval.c (fetch_subexp_value, evaluate_var_value)
11167 (evaluate_funcall, evaluate_subexp_standard): Replace
11168 throw_exception with throw.
11169 * dwarf2loc.c (call_site_find_chain)
11170 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11171 Replace throw_exception with throw.
11172 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11174 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11176 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11177 * completer.c (complete_line_internal): Replace throw_exception
11179 * compile/compile-object-run.c (compile_object_run): Replace
11180 throw_exception with throw.
11181 * cli/cli-script.c (process_next_line): Replace throw_exception
11183 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11184 (btrace_enable, btrace_maint_update_pt_packets): Replace
11185 throw_exception with throw.
11186 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11187 throw_exception with throw.
11188 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11189 throw_exception with throw.
11190 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11191 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11192 * aarch64-tdep.c (aarch64_make_prologue_cache)
11193 (aarch64_make_stub_cache): Replace throw_exception with throw.
11195 2019-04-08 Tom Tromey <tom@tromey.com>
11197 * common/common-exceptions.c (throw_exception): Rename from
11198 throw_exception_cxx. Remove old copy. Make argument const.
11199 (throw_it): Create and throw exception objects directly.
11200 * common/common-exceptions.h (throw_exception): Make argument
11202 (struct gdb_exception_error): Add constructor.
11203 (struct gdb_exception_quit): Add constructor.
11205 2019-04-08 Tom Tromey <tom@tromey.com>
11207 * common/common-exceptions.h (exception_rethrow): Don't declare.
11208 (TRY_SJLJ): Update comment.
11209 (TRY, CATCH, END_CATCH): Remove.
11210 * common/common-exceptions.c (exception_rethrow): Remove.
11212 2019-04-08 Tom Tromey <tom@tromey.com>
11214 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11216 (gdb_exception_error): Rename from
11217 gdb_exception_RETURN_MASK_ERROR.
11218 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11219 (gdb_quit_bad_alloc): Update.
11220 * aarch64-tdep.c: Update.
11221 * ada-lang.c: Update.
11222 * ada-typeprint.c: Update.
11223 * ada-valprint.c: Update.
11224 * amd64-tdep.c: Update.
11225 * arch-utils.c: Update.
11226 * break-catch-throw.c: Update.
11227 * breakpoint.c: Update.
11228 * btrace.c: Update.
11229 * c-varobj.c: Update.
11230 * cli/cli-cmds.c: Update.
11231 * cli/cli-interp.c: Update.
11232 * cli/cli-script.c: Update.
11233 * common/common-exceptions.c: Update.
11234 * common/new-op.c: Update.
11235 * common/selftest.c: Update.
11236 * compile/compile-c-symbols.c: Update.
11237 * compile/compile-cplus-symbols.c: Update.
11238 * compile/compile-object-load.c: Update.
11239 * compile/compile-object-run.c: Update.
11240 * completer.c: Update.
11241 * corelow.c: Update.
11242 * cp-abi.c: Update.
11243 * cp-support.c: Update.
11244 * cp-valprint.c: Update.
11245 * darwin-nat.c: Update.
11246 * disasm-selftests.c: Update.
11247 * dtrace-probe.c: Update.
11248 * dwarf-index-cache.c: Update.
11249 * dwarf-index-write.c: Update.
11250 * dwarf2-frame-tailcall.c: Update.
11251 * dwarf2-frame.c: Update.
11252 * dwarf2loc.c: Update.
11253 * dwarf2read.c: Update.
11255 * event-loop.c: Update.
11256 * event-top.c: Update.
11258 * f-valprint.c: Update.
11259 * fbsd-tdep.c: Update.
11260 * frame-unwind.c: Update.
11262 * gdbtypes.c: Update.
11263 * gnu-v3-abi.c: Update.
11264 * guile/guile-internal.h: Update.
11265 * guile/scm-block.c: Update.
11266 * guile/scm-breakpoint.c: Update.
11267 * guile/scm-cmd.c: Update.
11268 * guile/scm-disasm.c: Update.
11269 * guile/scm-frame.c: Update.
11270 * guile/scm-lazy-string.c: Update.
11271 * guile/scm-math.c: Update.
11272 * guile/scm-param.c: Update.
11273 * guile/scm-ports.c: Update.
11274 * guile/scm-pretty-print.c: Update.
11275 * guile/scm-symbol.c: Update.
11276 * guile/scm-symtab.c: Update.
11277 * guile/scm-type.c: Update.
11278 * guile/scm-value.c: Update.
11279 * i386-linux-tdep.c: Update.
11280 * i386-tdep.c: Update.
11281 * inf-loop.c: Update.
11282 * infcall.c: Update.
11283 * infcmd.c: Update.
11284 * infrun.c: Update.
11286 * language.c: Update.
11287 * linespec.c: Update.
11288 * linux-fork.c: Update.
11289 * linux-nat.c: Update.
11290 * linux-tdep.c: Update.
11291 * linux-thread-db.c: Update.
11293 * mi/mi-cmd-break.c: Update.
11294 * mi/mi-cmd-stack.c: Update.
11295 * mi/mi-interp.c: Update.
11296 * mi/mi-main.c: Update.
11297 * objc-lang.c: Update.
11298 * p-valprint.c: Update.
11300 * ppc-linux-tdep.c: Update.
11301 * printcmd.c: Update.
11302 * python/py-arch.c: Update.
11303 * python/py-breakpoint.c: Update.
11304 * python/py-cmd.c: Update.
11305 * python/py-finishbreakpoint.c: Update.
11306 * python/py-frame.c: Update.
11307 * python/py-framefilter.c: Update.
11308 * python/py-gdb-readline.c: Update.
11309 * python/py-inferior.c: Update.
11310 * python/py-infthread.c: Update.
11311 * python/py-lazy-string.c: Update.
11312 * python/py-linetable.c: Update.
11313 * python/py-objfile.c: Update.
11314 * python/py-param.c: Update.
11315 * python/py-prettyprint.c: Update.
11316 * python/py-progspace.c: Update.
11317 * python/py-record-btrace.c: Update.
11318 * python/py-record.c: Update.
11319 * python/py-symbol.c: Update.
11320 * python/py-type.c: Update.
11321 * python/py-unwind.c: Update.
11322 * python/py-utils.c: Update.
11323 * python/py-value.c: Update.
11324 * python/python.c: Update.
11325 * record-btrace.c: Update.
11326 * record-full.c: Update.
11327 * remote-fileio.c: Update.
11328 * remote.c: Update.
11329 * riscv-tdep.c: Update.
11330 * rs6000-aix-tdep.c: Update.
11331 * rs6000-tdep.c: Update.
11332 * rust-exp.y: Update.
11333 * rust-lang.c: Update.
11334 * s390-tdep.c: Update.
11335 * selftest-arch.c: Update.
11336 * solib-dsbt.c: Update.
11337 * solib-frv.c: Update.
11338 * solib-spu.c: Update.
11339 * solib-svr4.c: Update.
11341 * sparc64-linux-tdep.c: Update.
11343 * symfile-mem.c: Update.
11344 * symmisc.c: Update.
11345 * target.c: Update.
11346 * thread.c: Update.
11348 * tracefile-tfile.c: Update.
11349 * tui/tui.c: Update.
11350 * typeprint.c: Update.
11351 * unittests/cli-utils-selftests.c: Update.
11352 * unittests/parse-connection-spec-selftests.c: Update.
11353 * valops.c: Update.
11354 * valprint.c: Update.
11356 * varobj.c: Update.
11357 * windows-nat.c: Update.
11358 * x86-linux-nat.c: Update.
11359 * xml-support.c: Update.
11361 2019-04-08 Tom Tromey <tom@tromey.com>
11363 * xml-support.c: Use C++ exception handling.
11364 * x86-linux-nat.c: Use C++ exception handling.
11365 * windows-nat.c: Use C++ exception handling.
11366 * varobj.c: Use C++ exception handling.
11367 * value.c: Use C++ exception handling.
11368 * valprint.c: Use C++ exception handling.
11369 * valops.c: Use C++ exception handling.
11370 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11372 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11373 * typeprint.c: Use C++ exception handling.
11374 * tui/tui.c: Use C++ exception handling.
11375 * tracefile-tfile.c: Use C++ exception handling.
11376 * top.c: Use C++ exception handling.
11377 * thread.c: Use C++ exception handling.
11378 * target.c: Use C++ exception handling.
11379 * symmisc.c: Use C++ exception handling.
11380 * symfile-mem.c: Use C++ exception handling.
11381 * stack.c: Use C++ exception handling.
11382 * sparc64-linux-tdep.c: Use C++ exception handling.
11383 * solib.c: Use C++ exception handling.
11384 * solib-svr4.c: Use C++ exception handling.
11385 * solib-spu.c: Use C++ exception handling.
11386 * solib-frv.c: Use C++ exception handling.
11387 * solib-dsbt.c: Use C++ exception handling.
11388 * selftest-arch.c: Use C++ exception handling.
11389 * s390-tdep.c: Use C++ exception handling.
11390 * rust-lang.c: Use C++ exception handling.
11391 * rust-exp.y: Use C++ exception handling.
11392 * rs6000-tdep.c: Use C++ exception handling.
11393 * rs6000-aix-tdep.c: Use C++ exception handling.
11394 * riscv-tdep.c: Use C++ exception handling.
11395 * remote.c: Use C++ exception handling.
11396 * remote-fileio.c: Use C++ exception handling.
11397 * record-full.c: Use C++ exception handling.
11398 * record-btrace.c: Use C++ exception handling.
11399 * python/python.c: Use C++ exception handling.
11400 * python/py-value.c: Use C++ exception handling.
11401 * python/py-utils.c: Use C++ exception handling.
11402 * python/py-unwind.c: Use C++ exception handling.
11403 * python/py-type.c: Use C++ exception handling.
11404 * python/py-symbol.c: Use C++ exception handling.
11405 * python/py-record.c: Use C++ exception handling.
11406 * python/py-record-btrace.c: Use C++ exception handling.
11407 * python/py-progspace.c: Use C++ exception handling.
11408 * python/py-prettyprint.c: Use C++ exception handling.
11409 * python/py-param.c: Use C++ exception handling.
11410 * python/py-objfile.c: Use C++ exception handling.
11411 * python/py-linetable.c: Use C++ exception handling.
11412 * python/py-lazy-string.c: Use C++ exception handling.
11413 * python/py-infthread.c: Use C++ exception handling.
11414 * python/py-inferior.c: Use C++ exception handling.
11415 * python/py-gdb-readline.c: Use C++ exception handling.
11416 * python/py-framefilter.c: Use C++ exception handling.
11417 * python/py-frame.c: Use C++ exception handling.
11418 * python/py-finishbreakpoint.c: Use C++ exception handling.
11419 * python/py-cmd.c: Use C++ exception handling.
11420 * python/py-breakpoint.c: Use C++ exception handling.
11421 * python/py-arch.c: Use C++ exception handling.
11422 * printcmd.c: Use C++ exception handling.
11423 * ppc-linux-tdep.c: Use C++ exception handling.
11424 * parse.c: Use C++ exception handling.
11425 * p-valprint.c: Use C++ exception handling.
11426 * objc-lang.c: Use C++ exception handling.
11427 * mi/mi-main.c: Use C++ exception handling.
11428 * mi/mi-interp.c: Use C++ exception handling.
11429 * mi/mi-cmd-stack.c: Use C++ exception handling.
11430 * mi/mi-cmd-break.c: Use C++ exception handling.
11431 * main.c: Use C++ exception handling.
11432 * linux-thread-db.c: Use C++ exception handling.
11433 * linux-tdep.c: Use C++ exception handling.
11434 * linux-nat.c: Use C++ exception handling.
11435 * linux-fork.c: Use C++ exception handling.
11436 * linespec.c: Use C++ exception handling.
11437 * language.c: Use C++ exception handling.
11438 * jit.c: Use C++ exception handling.
11439 * infrun.c: Use C++ exception handling.
11440 * infcmd.c: Use C++ exception handling.
11441 * infcall.c: Use C++ exception handling.
11442 * inf-loop.c: Use C++ exception handling.
11443 * i386-tdep.c: Use C++ exception handling.
11444 * i386-linux-tdep.c: Use C++ exception handling.
11445 * guile/scm-value.c: Use C++ exception handling.
11446 * guile/scm-type.c: Use C++ exception handling.
11447 * guile/scm-symtab.c: Use C++ exception handling.
11448 * guile/scm-symbol.c: Use C++ exception handling.
11449 * guile/scm-pretty-print.c: Use C++ exception handling.
11450 * guile/scm-ports.c: Use C++ exception handling.
11451 * guile/scm-param.c: Use C++ exception handling.
11452 * guile/scm-math.c: Use C++ exception handling.
11453 * guile/scm-lazy-string.c: Use C++ exception handling.
11454 * guile/scm-frame.c: Use C++ exception handling.
11455 * guile/scm-disasm.c: Use C++ exception handling.
11456 * guile/scm-cmd.c: Use C++ exception handling.
11457 * guile/scm-breakpoint.c: Use C++ exception handling.
11458 * guile/scm-block.c: Use C++ exception handling.
11459 * guile/guile-internal.h: Use C++ exception handling.
11460 * gnu-v3-abi.c: Use C++ exception handling.
11461 * gdbtypes.c: Use C++ exception handling.
11462 * frame.c: Use C++ exception handling.
11463 * frame-unwind.c: Use C++ exception handling.
11464 * fbsd-tdep.c: Use C++ exception handling.
11465 * f-valprint.c: Use C++ exception handling.
11466 * exec.c: Use C++ exception handling.
11467 * event-top.c: Use C++ exception handling.
11468 * event-loop.c: Use C++ exception handling.
11469 * eval.c: Use C++ exception handling.
11470 * dwarf2read.c: Use C++ exception handling.
11471 * dwarf2loc.c: Use C++ exception handling.
11472 * dwarf2-frame.c: Use C++ exception handling.
11473 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11474 * dwarf-index-write.c: Use C++ exception handling.
11475 * dwarf-index-cache.c: Use C++ exception handling.
11476 * dtrace-probe.c: Use C++ exception handling.
11477 * disasm-selftests.c: Use C++ exception handling.
11478 * darwin-nat.c: Use C++ exception handling.
11479 * cp-valprint.c: Use C++ exception handling.
11480 * cp-support.c: Use C++ exception handling.
11481 * cp-abi.c: Use C++ exception handling.
11482 * corelow.c: Use C++ exception handling.
11483 * completer.c: Use C++ exception handling.
11484 * compile/compile-object-run.c: Use C++ exception handling.
11485 * compile/compile-object-load.c: Use C++ exception handling.
11486 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11487 * compile/compile-c-symbols.c: Use C++ exception handling.
11488 * common/selftest.c: Use C++ exception handling.
11489 * common/new-op.c: Use C++ exception handling.
11490 * cli/cli-script.c: Use C++ exception handling.
11491 * cli/cli-interp.c: Use C++ exception handling.
11492 * cli/cli-cmds.c: Use C++ exception handling.
11493 * c-varobj.c: Use C++ exception handling.
11494 * btrace.c: Use C++ exception handling.
11495 * breakpoint.c: Use C++ exception handling.
11496 * break-catch-throw.c: Use C++ exception handling.
11497 * arch-utils.c: Use C++ exception handling.
11498 * amd64-tdep.c: Use C++ exception handling.
11499 * ada-valprint.c: Use C++ exception handling.
11500 * ada-typeprint.c: Use C++ exception handling.
11501 * ada-lang.c: Use C++ exception handling.
11502 * aarch64-tdep.c: Use C++ exception handling.
11504 2019-04-08 Tom Tromey <tom@tromey.com>
11506 * xml-support.c (gdb_xml_parser::parse): Update.
11507 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11508 * value.c (show_convenience): Update.
11509 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11510 (test_parse_flags_qcs): Update.
11511 * thread.c (thr_try_catch_cmd): Update.
11512 * target.c (target_translate_tls_address): Update.
11513 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11514 (info_frame_command_core, frame_apply_command_count): Update.
11515 * rust-exp.y (rust_lex_exception_test): Update.
11516 * riscv-tdep.c (riscv_print_one_register_info): Update.
11517 * remote.c (remote_target::enable_btrace): Update.
11518 * record-btrace.c (record_btrace_enable_warn): Update.
11519 * python/py-utils.c (gdbpy_convert_exception): Update.
11520 * printcmd.c (do_one_display, print_variable_and_value): Update.
11521 * mi/mi-main.c (mi_print_exception): Update.
11522 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11523 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11524 * linux-nat.c (linux_nat_target::attach): Update.
11525 * linux-fork.c (class scoped_switch_fork_info): Update.
11526 * infrun.c (displaced_step_prepare): Update.
11527 * infcall.c (call_function_by_hand_dummy): Update.
11528 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11529 * gnu-v3-abi.c (print_one_vtable): Update.
11530 * frame.c (get_prev_frame_always): Update.
11531 * f-valprint.c (info_common_command_for_block): Update.
11532 * exec.c (try_open_exec_file): Update.
11533 * exceptions.c (print_exception, exception_print)
11534 (exception_fprintf, exception_print_same): Update.
11535 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11536 * dwarf-index-cache.c (index_cache::store)
11537 (index_cache::lookup_gdb_index): Update.
11538 * darwin-nat.c (maybe_cache_shell): Update.
11539 * cp-valprint.c (cp_print_value_fields): Update.
11540 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11541 (gcc_cplus_symbol_address): Update.
11542 * compile/compile-c-symbols.c (gcc_convert_symbol)
11543 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11544 * common/selftest.c: Update.
11545 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11547 (exception_try_scope_entry, exception_try_scope_exit): Don't
11549 (struct exception_try_scope): Remove.
11550 (TRY): Don't use exception_try_scope.
11551 (struct gdb_exception): Add constructor, operator=.
11552 <what>: New method.
11553 (struct gdb_exception_RETURN_MASK_ALL)
11554 (struct gdb_exception_RETURN_MASK_ERROR)
11555 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11556 (struct gdb_quit_bad_alloc): Update.
11557 * common/common-exceptions.c (exception_none): Change
11559 (struct catcher) <state, exception>: Initialize inline.
11560 <prev>: Remove member.
11561 (current_catcher): Remove.
11562 (catchers): New global.
11563 (exceptions_state_mc_init): Simplify.
11564 (catcher_pop): Remove.
11565 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11566 (try_scope_depth, exception_try_scope_entry)
11567 (exception_try_scope_exit): Remove.
11568 (throw_exception_sjlj): Update.
11569 (exception_messages, exception_messages_size): Remove.
11570 (throw_it): Simplify.
11571 (gdb_exception_sliced_copy): Remove.
11572 (throw_exception_cxx): Update.
11573 * cli/cli-script.c (script_from_file): Update.
11574 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11576 * ada-valprint.c (ada_val_print): Update.
11577 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11578 (create_excep_cond_exprs): Update.
11580 2019-04-08 Tom Tromey <tom@tromey.com>
11582 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11583 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11584 (TRY, CATCH, END_CATCH): Remove some definitions.
11585 * common/common-exceptions.c: Don't use GDB_XCPT.
11586 (catcher_list_size): Remove.
11587 (throw_exception, throw_it): Simplify.
11589 2019-04-05 Tom Tromey <tom@tromey.com>
11591 Revert the header-sorting patch.
11592 * ft32-tdep.c: Revert.
11593 * frv-tdep.c: Revert.
11594 * frv-linux-tdep.c: Revert.
11596 * frame-unwind.c: Revert.
11597 * frame-base.c: Revert.
11598 * fork-child.c: Revert.
11599 * findvar.c: Revert.
11600 * findcmd.c: Revert.
11601 * filesystem.c: Revert.
11602 * filename-seen-cache.h: Revert.
11603 * filename-seen-cache.c: Revert.
11604 * fbsd-tdep.c: Revert.
11605 * fbsd-nat.h: Revert.
11606 * fbsd-nat.c: Revert.
11607 * f-valprint.c: Revert.
11608 * f-typeprint.c: Revert.
11609 * f-lang.c: Revert.
11610 * extension.h: Revert.
11611 * extension.c: Revert.
11612 * extension-priv.h: Revert.
11613 * expprint.c: Revert.
11616 * exceptions.c: Revert.
11617 * event-top.c: Revert.
11618 * event-loop.c: Revert.
11620 * elfread.c: Revert.
11621 * dwarf2read.h: Revert.
11622 * dwarf2read.c: Revert.
11623 * dwarf2loc.c: Revert.
11624 * dwarf2expr.h: Revert.
11625 * dwarf2expr.c: Revert.
11626 * dwarf2-frame.c: Revert.
11627 * dwarf2-frame-tailcall.c: Revert.
11628 * dwarf-index-write.h: Revert.
11629 * dwarf-index-write.c: Revert.
11630 * dwarf-index-common.c: Revert.
11631 * dwarf-index-cache.h: Revert.
11632 * dwarf-index-cache.c: Revert.
11633 * dummy-frame.c: Revert.
11634 * dtrace-probe.c: Revert.
11635 * disasm.h: Revert.
11636 * disasm.c: Revert.
11637 * disasm-selftests.c: Revert.
11638 * dictionary.c: Revert.
11639 * dicos-tdep.c: Revert.
11640 * demangle.c: Revert.
11641 * dcache.h: Revert.
11642 * dcache.c: Revert.
11643 * darwin-nat.h: Revert.
11644 * darwin-nat.c: Revert.
11645 * darwin-nat-info.c: Revert.
11646 * d-valprint.c: Revert.
11647 * d-namespace.c: Revert.
11648 * d-lang.c: Revert.
11650 * csky-tdep.c: Revert.
11651 * csky-linux-tdep.c: Revert.
11652 * cris-tdep.c: Revert.
11653 * cris-linux-tdep.c: Revert.
11654 * cp-valprint.c: Revert.
11655 * cp-support.c: Revert.
11656 * cp-namespace.c: Revert.
11657 * cp-abi.c: Revert.
11658 * corelow.c: Revert.
11659 * corefile.c: Revert.
11660 * continuations.c: Revert.
11661 * completer.h: Revert.
11662 * completer.c: Revert.
11663 * complaints.c: Revert.
11664 * coffread.c: Revert.
11665 * coff-pe-read.c: Revert.
11666 * cli-out.h: Revert.
11667 * cli-out.c: Revert.
11668 * charset.c: Revert.
11669 * c-varobj.c: Revert.
11670 * c-valprint.c: Revert.
11671 * c-typeprint.c: Revert.
11672 * c-lang.c: Revert.
11673 * buildsym.c: Revert.
11674 * buildsym-legacy.c: Revert.
11675 * build-id.h: Revert.
11676 * build-id.c: Revert.
11677 * btrace.c: Revert.
11678 * bsd-uthread.c: Revert.
11679 * breakpoint.h: Revert.
11680 * breakpoint.c: Revert.
11681 * break-catch-throw.c: Revert.
11682 * break-catch-syscall.c: Revert.
11683 * break-catch-sig.c: Revert.
11684 * blockframe.c: Revert.
11686 * bfin-tdep.c: Revert.
11687 * bfin-linux-tdep.c: Revert.
11688 * bfd-target.c: Revert.
11689 * bcache.c: Revert.
11690 * ax-general.c: Revert.
11691 * ax-gdb.h: Revert.
11692 * ax-gdb.c: Revert.
11693 * avr-tdep.c: Revert.
11695 * auto-load.c: Revert.
11696 * arm-wince-tdep.c: Revert.
11697 * arm-tdep.c: Revert.
11698 * arm-symbian-tdep.c: Revert.
11699 * arm-pikeos-tdep.c: Revert.
11700 * arm-obsd-tdep.c: Revert.
11701 * arm-nbsd-tdep.c: Revert.
11702 * arm-nbsd-nat.c: Revert.
11703 * arm-linux-tdep.c: Revert.
11704 * arm-linux-nat.c: Revert.
11705 * arm-fbsd-tdep.c: Revert.
11706 * arm-fbsd-nat.c: Revert.
11707 * arm-bsd-tdep.c: Revert.
11708 * arch-utils.c: Revert.
11709 * arc-tdep.c: Revert.
11710 * arc-newlib-tdep.c: Revert.
11711 * annotate.h: Revert.
11712 * annotate.c: Revert.
11713 * amd64-windows-tdep.c: Revert.
11714 * amd64-windows-nat.c: Revert.
11715 * amd64-tdep.c: Revert.
11716 * amd64-sol2-tdep.c: Revert.
11717 * amd64-obsd-tdep.c: Revert.
11718 * amd64-obsd-nat.c: Revert.
11719 * amd64-nbsd-tdep.c: Revert.
11720 * amd64-nbsd-nat.c: Revert.
11721 * amd64-nat.c: Revert.
11722 * amd64-linux-tdep.c: Revert.
11723 * amd64-linux-nat.c: Revert.
11724 * amd64-fbsd-tdep.c: Revert.
11725 * amd64-fbsd-nat.c: Revert.
11726 * amd64-dicos-tdep.c: Revert.
11727 * amd64-darwin-tdep.c: Revert.
11728 * amd64-bsd-nat.c: Revert.
11729 * alpha-tdep.c: Revert.
11730 * alpha-obsd-tdep.c: Revert.
11731 * alpha-nbsd-tdep.c: Revert.
11732 * alpha-mdebug-tdep.c: Revert.
11733 * alpha-linux-tdep.c: Revert.
11734 * alpha-linux-nat.c: Revert.
11735 * alpha-bsd-tdep.c: Revert.
11736 * alpha-bsd-nat.c: Revert.
11737 * aix-thread.c: Revert.
11739 * addrmap.c: Revert.
11740 * ada-varobj.c: Revert.
11741 * ada-valprint.c: Revert.
11742 * ada-typeprint.c: Revert.
11743 * ada-tasks.c: Revert.
11744 * ada-lang.c: Revert.
11745 * aarch64-tdep.c: Revert.
11746 * aarch64-ravenscar-thread.c: Revert.
11747 * aarch64-newlib-tdep.c: Revert.
11748 * aarch64-linux-tdep.c: Revert.
11749 * aarch64-linux-nat.c: Revert.
11750 * aarch64-fbsd-tdep.c: Revert.
11751 * aarch64-fbsd-nat.c: Revert.
11752 * aarch32-linux-nat.c: Revert.
11754 2019-04-05 Tom Tromey <tom@tromey.com>
11756 * ft32-tdep.c: Sort headers.
11757 * frv-tdep.c: Sort headers.
11758 * frv-linux-tdep.c: Sort headers.
11759 * frame.c: Sort headers.
11760 * frame-unwind.c: Sort headers.
11761 * frame-base.c: Sort headers.
11762 * fork-child.c: Sort headers.
11763 * findvar.c: Sort headers.
11764 * findcmd.c: Sort headers.
11765 * filesystem.c: Sort headers.
11766 * filename-seen-cache.h: Sort headers.
11767 * filename-seen-cache.c: Sort headers.
11768 * fbsd-tdep.c: Sort headers.
11769 * fbsd-nat.h: Sort headers.
11770 * fbsd-nat.c: Sort headers.
11771 * f-valprint.c: Sort headers.
11772 * f-typeprint.c: Sort headers.
11773 * f-lang.c: Sort headers.
11774 * extension.h: Sort headers.
11775 * extension.c: Sort headers.
11776 * extension-priv.h: Sort headers.
11777 * expprint.c: Sort headers.
11778 * exec.h: Sort headers.
11779 * exec.c: Sort headers.
11780 * exceptions.c: Sort headers.
11781 * event-top.c: Sort headers.
11782 * event-loop.c: Sort headers.
11783 * eval.c: Sort headers.
11784 * elfread.c: Sort headers.
11785 * dwarf2read.h: Sort headers.
11786 * dwarf2read.c: Sort headers.
11787 * dwarf2loc.c: Sort headers.
11788 * dwarf2expr.h: Sort headers.
11789 * dwarf2expr.c: Sort headers.
11790 * dwarf2-frame.c: Sort headers.
11791 * dwarf2-frame-tailcall.c: Sort headers.
11792 * dwarf-index-write.h: Sort headers.
11793 * dwarf-index-write.c: Sort headers.
11794 * dwarf-index-common.c: Sort headers.
11795 * dwarf-index-cache.h: Sort headers.
11796 * dwarf-index-cache.c: Sort headers.
11797 * dummy-frame.c: Sort headers.
11798 * dtrace-probe.c: Sort headers.
11799 * disasm.h: Sort headers.
11800 * disasm.c: Sort headers.
11801 * disasm-selftests.c: Sort headers.
11802 * dictionary.c: Sort headers.
11803 * dicos-tdep.c: Sort headers.
11804 * demangle.c: Sort headers.
11805 * dcache.h: Sort headers.
11806 * dcache.c: Sort headers.
11807 * darwin-nat.h: Sort headers.
11808 * darwin-nat.c: Sort headers.
11809 * darwin-nat-info.c: Sort headers.
11810 * d-valprint.c: Sort headers.
11811 * d-namespace.c: Sort headers.
11812 * d-lang.c: Sort headers.
11813 * ctf.c: Sort headers.
11814 * csky-tdep.c: Sort headers.
11815 * csky-linux-tdep.c: Sort headers.
11816 * cris-tdep.c: Sort headers.
11817 * cris-linux-tdep.c: Sort headers.
11818 * cp-valprint.c: Sort headers.
11819 * cp-support.c: Sort headers.
11820 * cp-namespace.c: Sort headers.
11821 * cp-abi.c: Sort headers.
11822 * corelow.c: Sort headers.
11823 * corefile.c: Sort headers.
11824 * continuations.c: Sort headers.
11825 * completer.h: Sort headers.
11826 * completer.c: Sort headers.
11827 * complaints.c: Sort headers.
11828 * coffread.c: Sort headers.
11829 * coff-pe-read.c: Sort headers.
11830 * cli-out.h: Sort headers.
11831 * cli-out.c: Sort headers.
11832 * charset.c: Sort headers.
11833 * c-varobj.c: Sort headers.
11834 * c-valprint.c: Sort headers.
11835 * c-typeprint.c: Sort headers.
11836 * c-lang.c: Sort headers.
11837 * buildsym.c: Sort headers.
11838 * buildsym-legacy.c: Sort headers.
11839 * build-id.h: Sort headers.
11840 * build-id.c: Sort headers.
11841 * btrace.c: Sort headers.
11842 * bsd-uthread.c: Sort headers.
11843 * breakpoint.h: Sort headers.
11844 * breakpoint.c: Sort headers.
11845 * break-catch-throw.c: Sort headers.
11846 * break-catch-syscall.c: Sort headers.
11847 * break-catch-sig.c: Sort headers.
11848 * blockframe.c: Sort headers.
11849 * block.c: Sort headers.
11850 * bfin-tdep.c: Sort headers.
11851 * bfin-linux-tdep.c: Sort headers.
11852 * bfd-target.c: Sort headers.
11853 * bcache.c: Sort headers.
11854 * ax-general.c: Sort headers.
11855 * ax-gdb.h: Sort headers.
11856 * ax-gdb.c: Sort headers.
11857 * avr-tdep.c: Sort headers.
11858 * auxv.c: Sort headers.
11859 * auto-load.c: Sort headers.
11860 * arm-wince-tdep.c: Sort headers.
11861 * arm-tdep.c: Sort headers.
11862 * arm-symbian-tdep.c: Sort headers.
11863 * arm-pikeos-tdep.c: Sort headers.
11864 * arm-obsd-tdep.c: Sort headers.
11865 * arm-nbsd-tdep.c: Sort headers.
11866 * arm-nbsd-nat.c: Sort headers.
11867 * arm-linux-tdep.c: Sort headers.
11868 * arm-linux-nat.c: Sort headers.
11869 * arm-fbsd-tdep.c: Sort headers.
11870 * arm-fbsd-nat.c: Sort headers.
11871 * arm-bsd-tdep.c: Sort headers.
11872 * arch-utils.c: Sort headers.
11873 * arc-tdep.c: Sort headers.
11874 * arc-newlib-tdep.c: Sort headers.
11875 * annotate.h: Sort headers.
11876 * annotate.c: Sort headers.
11877 * amd64-windows-tdep.c: Sort headers.
11878 * amd64-windows-nat.c: Sort headers.
11879 * amd64-tdep.c: Sort headers.
11880 * amd64-sol2-tdep.c: Sort headers.
11881 * amd64-obsd-tdep.c: Sort headers.
11882 * amd64-obsd-nat.c: Sort headers.
11883 * amd64-nbsd-tdep.c: Sort headers.
11884 * amd64-nbsd-nat.c: Sort headers.
11885 * amd64-nat.c: Sort headers.
11886 * amd64-linux-tdep.c: Sort headers.
11887 * amd64-linux-nat.c: Sort headers.
11888 * amd64-fbsd-tdep.c: Sort headers.
11889 * amd64-fbsd-nat.c: Sort headers.
11890 * amd64-dicos-tdep.c: Sort headers.
11891 * amd64-darwin-tdep.c: Sort headers.
11892 * amd64-bsd-nat.c: Sort headers.
11893 * alpha-tdep.c: Sort headers.
11894 * alpha-obsd-tdep.c: Sort headers.
11895 * alpha-nbsd-tdep.c: Sort headers.
11896 * alpha-mdebug-tdep.c: Sort headers.
11897 * alpha-linux-tdep.c: Sort headers.
11898 * alpha-linux-nat.c: Sort headers.
11899 * alpha-bsd-tdep.c: Sort headers.
11900 * alpha-bsd-nat.c: Sort headers.
11901 * aix-thread.c: Sort headers.
11902 * agent.c: Sort headers.
11903 * addrmap.c: Sort headers.
11904 * ada-varobj.c: Sort headers.
11905 * ada-valprint.c: Sort headers.
11906 * ada-typeprint.c: Sort headers.
11907 * ada-tasks.c: Sort headers.
11908 * ada-lang.c: Sort headers.
11909 * aarch64-tdep.c: Sort headers.
11910 * aarch64-ravenscar-thread.c: Sort headers.
11911 * aarch64-newlib-tdep.c: Sort headers.
11912 * aarch64-linux-tdep.c: Sort headers.
11913 * aarch64-linux-nat.c: Sort headers.
11914 * aarch64-fbsd-tdep.c: Sort headers.
11915 * aarch64-fbsd-nat.c: Sort headers.
11916 * aarch32-linux-nat.c: Sort headers.
11918 2019-04-04 Tom Tromey <tom@tromey.com>
11920 * varobj.c (varobj_create): Update.
11921 * rust-exp.y (struct rust_parser) <update_innermost_block,
11922 lookup_symbol>: New methods.
11923 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11925 (rust_parser::rust_lookup_type)
11926 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11927 * printcmd.c (display_command, do_one_display): Update.
11928 * parser-defs.h (struct parser_state) <parser_state>: Add
11929 "tracker" parameter.
11930 (block_tracker): New member.
11931 (class innermost_block_tracker) <innermost_block_tracker>: Add
11933 <reset>: Remove method.
11934 (innermost_block): Don't declare.
11935 (null_post_parser): Update.
11936 * parse.c (innermost_block): Remove global.
11937 (write_dollar_variable): Update.
11938 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11939 Remove "tracker_types" parameter.
11940 (parse_expression): Add "tracker" parameter.
11941 (parse_expression_for_completion): Update.
11942 (null_post_parser): Add "tracker" parameter.
11943 * p-exp.y: Update rules.
11944 * m2-exp.y: Update rules.
11945 * language.h (struct language_defn) <la_post_parser>: Add
11946 "tracker" parameter.
11947 * go-exp.y: Update rules.
11948 * f-exp.y: Update rules.
11949 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11951 * d-exp.y: Update rules.
11952 * c-exp.y: Update rules.
11953 * breakpoint.c (set_breakpoint_condition): Create an
11954 innermost_block_tracker.
11955 (watch_command_1): Likewise.
11956 * ada-lang.c (resolve): Add "tracker" parameter.
11957 (resolve_subexp): Likewise.
11958 * ada-exp.y (write_var_from_sym): Update.
11960 2019-04-04 Tom Tromey <tom@tromey.com>
11962 * type-stack.h: New file.
11963 * type-stack.c: New file.
11964 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11966 (insert_into_type_stack, insert_type, push_type, push_type_int)
11967 (insert_type_address_space, pop_type, pop_type_int)
11968 (pop_typelist, pop_type_stack, append_type_stack)
11969 (push_type_stack, get_type_stack, push_typelist)
11970 (follow_type_instance_flags, follow_types): Don't declare.
11971 * parse.c (type_stack): Remove global.
11972 (parse_exp_in_context): Update.
11973 (insert_into_type_stack, insert_type, push_type, push_type_int)
11974 (insert_type_address_space, pop_type, pop_type_int)
11975 (pop_typelist, pop_type_stack, append_type_stack)
11976 (push_type_stack, get_type_stack, push_typelist)
11977 (follow_type_instance_flags, follow_types): Remove (moved to
11979 * f-exp.y (type_stack): New global.
11981 (push_kind_type, f_parse): Update.
11982 * d-exp.y (type_stack): New global.
11985 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11987 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11988 (HFILES_NO_SRCDIR): Add type-stack.h.
11990 2019-04-04 Tom Tromey <tom@tromey.com>
11992 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11993 (rust_parser::convert_ast_to_expression, rust_parse)
11994 (rust_lex_test_completion, rust_lex_tests): Update.
11995 * parser-defs.h (struct expr_completion_state): New.
11996 (struct parser_state) <parser_state>: Add completion parameter.
11997 <mark_struct_expression, mark_completion_tag>: New methods.
11998 <parse_completion, m_completion_state>: New members.
11999 (prefixify_expression, null_post_parser): Update.
12000 (mark_struct_expression, mark_completion_tag): Don't declare.
12001 * parse.c (parse_completion, expout_last_struct)
12002 (expout_tag_completion_type, expout_completion_name): Remove
12004 (parser_state::mark_struct_expression)
12005 (parser_state::mark_completion_tag): Now methods.
12006 (prefixify_expression): Add last_struct parameter.
12007 (prefixify_subexp): Likewise.
12008 (parse_exp_1): Update.
12009 (parse_exp_in_context): Add cstate parameter. Update.
12010 (parse_expression_for_completion): Create an
12011 expr_completion_state.
12012 (null_post_parser): Add "completion" parameter.
12013 * p-exp.y: Update rules.
12015 * language.h (struct language_defn) <la_post_parser>: Add
12016 "completing" parameter.
12017 * go-exp.y: Update rules.
12018 (lex_one_token): Update.
12019 * expression.h (parse_completion): Don't declare.
12020 * d-exp.y: Update rules.
12021 (lex_one_token): Update rules.
12022 * c-exp.y: Update rules.
12023 (lex_one_token): Update.
12024 * ada-lang.c (resolve): Add "parse_completion" parameter.
12025 (resolve_subexp): Likewise.
12026 (ada_resolve_function): Likewise.
12028 2019-04-04 Tom Tromey <tom@tromey.com>
12030 * parser-defs.h (struct parser_state) <start_arglist,
12031 end_arglist>: New methods.
12032 <arglist_len, m_funcall_chain>: New members.
12033 (arglist_len, start_arglist, end_arglist): Don't declare.
12034 * parse.c (arglist_len, funcall_chain): Remove global.
12035 (start_arglist, end_arglist): Remove functions.
12036 (parse_exp_in_context): Update.
12037 * p-exp.y: Update rules.
12038 * m2-exp.y: Update rules.
12039 * go-exp.y: Update rules.
12040 * f-exp.y: Update rules.
12041 * d-exp.y: Update rules.
12042 * c-exp.y: Update rules.
12044 2019-04-04 Tom Tromey <tom@tromey.com>
12046 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12047 lex_operator, push_back>: New methods.
12049 (rust_parser::lex_hex, lex_escape): Rename and update.
12050 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12051 (rust_parser::lex_operator): Rename and update.
12052 (rust_parser::lex_number, rustyylex, rustyyerror)
12053 (rust_lex_test_init, rust_lex_test_sequence)
12054 (rust_lex_test_push_back, rust_lex_tests): Update.
12055 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12057 <lexptr, prev_lexptr>: New members.
12058 (lexptr, prev_lexptr): Don't declare.
12059 * parse.c (lexptr, prev_lexptr): Remove globals.
12060 (parse_exp_in_context): Update.
12061 * p-exp.y (yylex, yyerror): Update.
12062 * m2-exp.y (parse_number, yylex, yyerror): Update.
12063 * go-exp.y (lex_one_token, yyerror): Update.
12064 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12065 * d-exp.y (lex_one_token, yyerror): Update.
12066 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12067 (lex_one_token, yyerror): Update.
12068 * ada-lex.l (YY_INPUT): Update.
12069 (rewind_to_char): Update.
12070 * ada-exp.y (yyerror): Update.
12072 2019-04-04 Tom Tromey <tom@tromey.com>
12074 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12075 * parser-defs.h (struct parser_state) <parser_state>: Add new
12077 <comma_terminates>: New member.
12078 (comma_terminates): Don't declare global.
12079 * parse.c (comma_terminates): Remove global.
12080 (parse_exp_in_context): Update.
12081 * p-exp.y (yylex): Update.
12082 * m2-exp.y (yylex): Update.
12083 * go-exp.y (lex_one_token): Update.
12084 * f-exp.y (yylex): Update.
12085 * d-exp.y (lex_one_token): Update.
12086 * c-exp.y (lex_one_token): Update.
12087 * ada-lex.l: Update.
12089 2019-04-04 Tom Tromey <tom@tromey.com>
12091 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12092 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12093 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12094 * parser-defs.h (paren_depth): Don't declare.
12095 * parse.c (paren_depth): Remove global.
12096 (parse_exp_in_context): Update.
12097 * p-exp.y (paren_depth): New global.
12098 (pascal_parse): Initialize it.
12099 * m2-exp.y (paren_depth): New global.
12100 (m2_parse): Initialize it.
12101 * go-exp.y (paren_depth): New global.
12102 (go_parse): Initialize it.
12103 * f-exp.y (paren_depth): New global.
12104 (f_parse): Initialize it.
12105 * d-exp.y (paren_depth): New global.
12106 (d_parse): Initialize it.
12107 * c-exp.y (paren_depth): New global.
12108 (c_parse): Initialize it.
12109 * ada-lex.l (paren_depth): New global.
12110 (lexer_init): Initialize it.
12112 2019-04-04 Tom Tromey <tom@tromey.com>
12114 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12115 (rust_parser::convert_ast_to_type)
12116 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12117 * parser-defs.h (struct parser_state) <parser_state>: Add
12118 parameters. Initialize new members.
12119 <expression_context_block, expression_context_pc>: New members.
12120 * parse.c (expression_context_block, expression_context_pc):
12122 (parse_exp_in_context): Update.
12123 * p-exp.y: Update all rules.
12125 * m2-exp.y: Update all rules.
12127 * go-exp.y (yylex): Update.
12128 * f-exp.y (yylex): Update.
12129 * d-exp.y: Update all rules.
12131 * c-exp.y: Update all rules.
12132 (lex_one_token, classify_name, yylex, c_parse): Update.
12133 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12135 2019-04-04 Tom Tromey <tom@tromey.com>
12137 * gdbarch.h, gdbarch.c: Rebuild.
12138 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12140 (struct stap_parse_info): Replace "parser_state" with
12142 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12143 (parser_state): New class.
12144 * parse.c (expr_builder): Rename.
12145 (expr_builder::release): Rename.
12146 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12147 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12148 (write_exp_elt_longcst, write_exp_elt_floatcst)
12149 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12150 (write_exp_string_vector, write_exp_bitstring)
12151 (write_exp_msymbol, mark_struct_expression)
12152 (write_dollar_variable)
12153 (insert_type_address_space, increase_expout_size): Replace
12154 "parser_state" with "expr_builder".
12155 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12156 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12157 "parser_state" with "expr_builder".
12159 2019-04-04 Tom Tromey <tom@tromey.com>
12161 * rust-exp.y: Replace "parse_language" with method call.
12163 (yylex): Replace "parse_language" with method call.
12165 (yylex): Replace "parse_language" with method call.
12166 * go-exp.y (classify_name): Replace "parse_language" with method
12168 * f-exp.y (yylex): Replace "parse_language" with method call.
12169 * d-exp.y (lex_one_token): Replace "parse_language" with method
12172 (lex_one_token, classify_name, yylex): Replace "parse_language"
12174 * ada-exp.y (find_primitive_type, type_char)
12175 (type_system_address): Replace "parse_language" with method call.
12177 2019-04-04 Tom Tromey <tom@tromey.com>
12179 * rust-exp.y: Replace "parse_gdbarch" with method call.
12180 * parse.c (write_dollar_variable, insert_type_address_space):
12181 Replace "parse_gdbarch" with method call.
12182 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12184 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12186 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12187 "parse_gdbarch" with method call.
12188 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12190 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12191 "parse_gdbarch" with method call.
12192 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12193 "parse_gdbarch" with method call.
12194 * c-exp.y (parse_type, parse_number, classify_name): Replace
12195 "parse_gdbarch" with method call.
12196 * ada-lex.l: Replace "parse_gdbarch" with method call.
12197 * ada-exp.y (parse_type, find_primitive_type, type_char)
12198 (type_system_address): Replace "parse_gdbarch" with method call.
12200 2019-04-04 Tom Tromey <tom@tromey.com>
12202 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12203 * stap-probe.c (stap_parse_argument): Update.
12204 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12205 initial_size parameter.
12206 * rust-exp.y (rust_lex_tests): Update.
12207 * parse.c (parser_state): Update.
12208 (parse_exp_in_context): Update.
12209 * parser-defs.h (struct parser_state) <parser_state>: Remove
12210 "initial_size" parameter.
12212 2019-04-04 Tom Tromey <tom@tromey.com>
12214 * parser-defs.h (increase_expout_size): Don't declare.
12215 * parse.c (increase_expout_size): Now static.
12217 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12219 * gnu-nat.c (gnu_nat_target::wait): Fix
12220 target_waitstatus_to_string call.
12222 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12224 * eval.c (evaluate_subexp_standard): Handle internal functions
12225 during Fortran function call handling.
12227 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12229 * NEWS: Mention new internal functions.
12230 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12231 (read_base_type): Use dwarf2_init_complex_target_type.
12232 * value.c (creal_internal_fn): New function.
12233 (cimag_internal_fn): New function.
12234 (_initialize_values): Register new internal functions.
12236 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12238 * infrun.c (stop_all_threads): If debug_infrun, always
12239 trace the wait status after wait_one, using
12240 target_waitstatus_to_string and target_pid_to_str.
12241 (handle_inferior_event): Replace various trace of
12242 wait status kind by a single trace.
12243 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12244 wait status kind image by target_waitstatus_to_string.
12245 * target/waitstatus.c (target_waitstatus_to_string): Fix
12248 2019-04-01 Tom Tromey <tromey@adacore.com>
12251 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12253 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12254 Pedro Alves <palves@redhat.com>
12256 * top.c (quit_force): Call 'finalize_values'.
12257 * value.c (finalize_values): New function.
12258 * value.h (finalize_values): Declare.
12260 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12262 * NEWS: Announce $_gdb_major and $_gdb_minor.
12264 * top.c (init_gdb_version_vars): New function.
12265 (gdb_init): Call init_gdb_version_vars.
12267 2019-03-29 Tom Tromey <tromey@adacore.com>
12269 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12270 help text. Remove dead code.
12272 2019-03-29 Keith Seitz <keiths@redhat.com>
12274 From Siddhesh Poyarekar:
12275 * f-lang.h (f77_get_upperbound): Return LONGEST.
12276 (f77_get_lowerbound): Likewise.
12277 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12278 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12280 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12281 plongest to format print it.
12282 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12283 (f77_get_upperbound): Likewise.
12284 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12285 LOWER_BOUND to LONGEST.
12286 (f77_create_arrayprint_offset_tbl): Likewise.
12288 2019-03-29 Keith Seitz <keiths@redhat.com>
12290 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12291 %s/pulongest for TYPE_LENGTH instead of %d in format
12293 * ada-typerint.c (ada_print_type): Likewise.
12294 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12295 * compile/compile-c-support.c (generate_register_struct): Likewise.
12296 * gdbtypes.c (recursive_dump_type): Likewise.
12297 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12298 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12299 instead of %d in format strings.
12300 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12301 to std::min to ULONGEST.
12302 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12303 instead of %d in format strings.
12304 * tracepoint.c (info_scope_command): Likewise.
12305 * typeprint.c (print_offset_data::update)
12306 (print_offset_data::finish): Likewise.
12307 * xtensa-tdep.c (xtensa_store_return_value)
12308 (xtensa_push_dummy_call): Likewise.
12310 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12312 * windows-nat.c (display_selector): Fixed format specifications
12315 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12317 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12319 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12321 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12322 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12323 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12324 (nios2_linux_init_abi): Install it.
12326 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12328 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12330 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12332 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12334 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12335 Tom Tromey <tromey@adacore.com>
12337 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12339 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12341 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12342 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12343 method to compute the bounds of range types. Also print "[evaluated]"
12344 if the bounds' values come from a dynamic evaluation.
12346 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12348 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12349 whitespace when pretty printing is on.
12351 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12353 * ppc-linux-nat.c: Add include.
12355 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12357 * NEWS: Mention AArch64 Pointer Authentication.
12359 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12361 * arm-linux-nat.c: Add include.
12363 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12365 * source-cache.c (source_cache::get_source_lines): Re-read
12366 fullname after calling open_source_file.
12368 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12370 * NEWS: Mention TLS support for FreeBSD.
12372 2019-03-25 Tom Tromey <tromey@adacore.com>
12374 * minsyms.c (BUNCH_SIZE): Update comment.
12375 (~minimal_symbol_reader): Remove old comment.
12376 (compact_minimal_symbols): Update comment.
12377 (minimal_symbol_reader::install): Remove old comment. Update
12380 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12382 * s390-linux-nat.c: Add include.
12384 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12386 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12387 Call linux_get_hwcap.
12388 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12390 (aarch64_linux_get_hwcap): Remove function.
12391 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12393 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12395 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12396 * linux-tdep.c (linux_get_hwcap): Add function.
12397 (linux_get_hwcap2): Likewise.
12398 * linux-tdep.h (linux_get_hwcap): Add declaration.
12399 (linux_get_hwcap2): Likewise.
12400 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12401 (ppc_linux_get_hwcap2): Likewise.
12402 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12404 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12405 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12406 (ppc_linux_nat_target::read_description): Likewise.
12407 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12408 * s390-linux-nat.c: Likewise.
12409 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12411 2019-03-24 Tom Tromey <tom@tromey.com>
12413 * ada-lang.c (standard_lookup): Simplify initialization.
12414 (ada_lookup_symbol_nonlocal): Simplify return.
12415 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12416 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12417 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12418 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12420 * solib.c (solib_global_lookup): Simplify.
12421 * symtab.c (null_block_symbol): Remove.
12422 (symbol_cache_lookup): Simplify returns.
12423 (lookup_language_this): Simplify returns.
12424 (lookup_symbol_aux): Simplify return.
12425 (lookup_local_symbol): Simplify returns.
12426 (lookup_global_symbol_from_objfile): Simplify return.
12427 (lookup_symbol_in_objfile_symtabs)
12428 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12429 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12430 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12431 * cp-namespace.c (cp_lookup_bare_symbol)
12432 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12433 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12434 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12435 (cp_lookup_symbol_via_imports): Simplify initialization.
12436 (find_symbol_in_baseclass): Likewise.
12437 * symtab.h (null_block_symbol): Remove.
12438 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12439 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12440 (d_lookup_symbol_module): Likewise.
12441 (find_symbol_in_baseclass): Simplify initialization.
12443 2019-03-24 Tom Tromey <tom@tromey.com>
12445 * expression.h: Don't include symtab.h.
12446 (struct block): Forward declare.
12448 2019-03-24 Tom Tromey <tom@tromey.com>
12450 * c-exp.y (typebase): Remove casts.
12451 * gdbtypes.c (lookup_unsigned_typename, )
12452 (lookup_signed_typename): Remove cast.
12453 * eval.c (parse_to_comma_and_eval): Remove cast.
12454 * parse.c (write_dollar_variable): Remove cast.
12455 * block.h (struct block) <superblock>: Now const.
12456 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12457 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12458 (map_block): Make "block" const.
12459 * symfile.h (struct quick_symbol_functions)
12460 <map_matching_symbols>: Constify block argument to "callback".
12461 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12463 (find_pc_sect_compunit_symtab): Make "b" const.
12464 (find_symbol_at_address): Likewise.
12465 (search_symbols): Likewise.
12466 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12467 (dw2_debug_names_lookup_symbol): Likewise.
12468 (dw2_map_matching_symbols): Update.
12469 * p-valprint.c (pascal_val_print): Remove "block".
12470 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12471 (aux_add_nonlocal_symbols): Make "block" const.
12472 (resolve_subexp): Remove cast.
12473 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12475 (iterate_over_file_blocks): Likewise.
12476 * f-exp.y (%union) <bval>: Remove.
12477 * coffread.c (patch_opaque_types): Make "b" const.
12478 * spu-tdep.c (spu_catch_start): Make "block" const.
12479 * c-valprint.c (print_unpacked_pointer): Remove "block".
12480 * symmisc.c (dump_symtab_1): Make "b" const.
12481 (block_depth): Make "block" const.
12482 * d-exp.y (%union) <bval>: Remove.
12483 * cp-support.h (cp_lookup_rtti_type): Update.
12484 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12485 * psymtab.c (psym_lookup_symbol): Make "block" const.
12486 (maintenance_check_psymtabs): Make "b" const.
12487 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12488 (enumerate_locals, enumerate_args): Update.
12489 * python/py-symtab.c (stpy_global_block): Make "block" const.
12490 (stpy_static_block): Likewise.
12491 * inline-frame.c (block_starting_point_at): Make "new_block"
12493 * block.c (find_block_in_blockvector): Make return type const.
12494 (blockvector_for_pc_sect): Make "b" const.
12495 (find_block_in_blockvector): Make "b" const.
12497 2019-03-23 Tom Tromey <tom@tromey.com>
12499 * varobj.c (varobj_create): Update.
12500 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12501 * printcmd.c (display_command, do_one_display): Don't reset
12503 * parser-defs.h (enum innermost_block_tracker_type): Move to
12505 (innermost_block): Update comment.
12506 * parse.c (parse_exp_1): Add tracker_types parameter.
12507 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12508 tracker_types parameter. Reset innermost_block.
12509 (parse_exp_in_context): Remove.
12510 (parse_expression_for_completion): Update.
12511 * objfiles.c (~objfile): Don't reset expression_context_block or
12513 * expression.h (enum innermost_block_tracker_type): Move from
12515 (parse_exp_1): Add tracker_types parameter.
12516 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12517 reset innermost_block.
12519 2019-03-23 Tom Tromey <tom@tromey.com>
12521 * objfiles.h: Include bcache.h.
12523 2019-03-23 Tom Tromey <tom@tromey.com>
12525 * linespec.c (get_current_search_block): Use
12526 scoped_restore_current_language.
12527 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12529 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12530 Jiong Wang <jiong.wang@arm.com>
12532 * aarch64-linux-tdep.c
12533 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12535 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12538 Jiong Wang <jiong.wang@arm.com>
12540 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12542 (aarch64_analyze_prologue_test): Add PACIASP test.
12543 (aarch64_prologue_prev_register): Unmask PC value.
12545 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12546 Jiong Wang <jiong.wang@arm.com>
12548 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12549 (aarch64_dwarf2_prev_register): Unmask PC value.
12550 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12551 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12552 DW_CFA_AARCH64_negate_ra_state.
12553 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12555 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12556 Jiong Wang <jiong.wang@arm.com>
12558 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12560 (aarch64_pseudo_register_name): Likewise.
12561 (aarch64_pseudo_register_type): Likewise.
12562 (aarch64_pseudo_register_reggroup_p): Likewise.
12563 (aarch64_gdbarch_init): Add pauth registers.
12564 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12565 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12566 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12567 (struct gdbarch_tdep): Add regnum for ra_state.
12569 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12570 Jiong Wang <jiong.wang@arm.com>
12572 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12574 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12575 Jiong Wang <jiong.wang@arm.com>
12577 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12579 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12580 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12581 (aarch64_gdbarch_init): Add puth registers.
12582 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12583 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12584 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12586 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12587 Jiong Wang <jiong.wang@arm.com>
12589 * aarch64-linux-nat.c
12590 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12591 * aarch64-linux-tdep.c
12592 (aarch64_linux_core_read_description): Likewise.
12593 (aarch64_linux_get_hwcap): New function.
12594 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12595 (aarch64_linux_get_hwcap): New declaration.
12597 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12598 Jiong Wang <jiong.wang@arm.com>
12600 * aarch64-linux-nat.c
12601 (aarch64_linux_nat_target::read_description): Add pauth param.
12602 * aarch64-linux-tdep.c
12603 (aarch64_linux_core_read_description): Likewise.
12604 * aarch64-tdep.c (struct target_desc): Add in pauth.
12605 (aarch64_read_description): Add pauth param.
12606 (aarch64_gdbarch_init): Likewise.
12607 * aarch64-tdep.h (aarch64_read_description): Likewise.
12608 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12609 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12610 * features/Makefile: Add new files.
12611 * features/aarch64-pauth.c: New file.
12612 * features/aarch64-pauth.xml: New file.
12614 2019-03-20 Tom Tromey <tromey@adacore.com>
12616 * infrun.c (handle_inferior_event): Rename from
12617 handle_inferior_event_1. Create a scoped_value_mark.
12618 (handle_inferior_event): Remove.
12620 2019-03-19 Tom Tromey <tromey@adacore.com>
12622 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12623 * infrun.h (print_stop_event): Add "displays" parameter.
12624 * infrun.c (print_stop_event): Add "displays" parameter.
12626 2019-03-19 Pedro Alves <palves@redhat.com>
12628 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12629 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12630 to -1. Fix TABs vs spaces.
12631 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12632 * tui/tui-out.h (tui_ui_out) Add intro comments.
12633 <m_line, m_start_of_line>: In-class initialize, and add describing
12636 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12638 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12640 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12642 2019-03-18 Pedro Alves <palves@redhat.com>
12643 Eli Zaretskii <eliz@gnu.org>
12645 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12646 m_line and m_start_of_line.
12648 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12650 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12651 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12652 it returns a newline. This fixes a regression in TU mode, whereby
12653 the next line is output on the same screen line as the user input.
12655 2019-03-18 Tom Tromey <tromey@adacore.com>
12657 * minsyms.c (minimal_symbol_reader::install): Remove call to
12660 2019-03-18 Pedro Alves <palves@redhat.com>
12662 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12664 (apply_style): New, factored out from ...
12665 (apply_ansi_escape): ... this. Handle reverse video mode.
12666 (tui_set_reverse_mode): New function.
12667 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12668 * tui/tui-winsource.c (tui_show_source_line): Use
12669 tui_set_reverse_mode instead of setting A_STANDOUT.
12670 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12671 New setter methods.
12673 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12675 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12678 2019-03-18 Tom Tromey <tromey@adacore.com>
12680 * ada-lang.c (empty_array): Add "high" parameter.
12681 (ada_evaluate_subexp): Update.
12683 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12685 * unittests/string_view-selftests.c: Define
12686 _initialize_string_view_selftests unconditionally.
12688 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12691 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12693 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12696 * windows-nat.c (display_selector): Fix format specifiers.
12698 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12700 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12701 tui_refill_source_window instead of tui_refresh_win, to update the
12702 current execution line. This fixes redisplay of the current line
12703 when stepping through the code with "next" or "step".
12705 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12707 * source-cache.c (source_cache::get_source_lines): Call
12708 find_source_lines to initialize s->nlines. This fixes vertical
12709 scrolling of TUI source window when the DOWN arrow is pressed.
12711 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12713 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12714 linux-thread-db.c (_initialize_thread_db): Likewise.
12716 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12718 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12719 wclrtoeol in tui_show_source_line". This reverts changes made in
12720 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12722 2019-03-15 Tom Tromey <tom@tromey.com>
12724 * symtab.h (struct minimal_symbol): Derive from
12725 general_symbol_info.
12726 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12727 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12728 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12729 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12730 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12731 (MSYMBOL_SEARCH_NAME): Update.
12732 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12733 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12734 * minsyms.c (minimal_symbol_reader::record_full): Update.
12736 2019-03-15 Tom Tromey <tom@tromey.com>
12738 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12740 2019-03-15 Tom Tromey <tom@tromey.com>
12742 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12743 unique_xmalloc_ptr.
12744 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12746 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12747 (build_minimal_symbol_hash_tables)
12748 (minimal_symbol_reader::install): Update.
12750 2019-03-15 Tom Tromey <tom@tromey.com>
12752 * symtab.c (create_demangled_names_hash): Update.
12753 (symbol_set_names): Update.
12754 * objfiles.h (struct objfile_per_bfd_storage)
12755 <demangled_names_hash>: Now an htab_up.
12756 * objfiles.c (objfile_per_bfd_storage): Simplify.
12758 2019-03-15 Tom Tromey <tom@tromey.com>
12760 * objfiles.h (struct objfile_per_bfd_storage): Declare
12762 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12764 (get_objfile_bfd_data): Use new. Don't initialize
12766 (free_objfile_per_bfd_storage): Remove.
12767 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12769 2019-03-15 Tom Tromey <tom@tromey.com>
12771 * symfile.c (reread_symbols): Update.
12772 * objfiles.c (objfile::objfile): Update.
12773 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12774 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12776 (minimal_symbol_reader::install): Update.
12777 (terminate_minimal_symbol_table): Remove.
12778 * jit.c (jit_object_close_impl): Update.
12780 2019-03-15 Tom Tromey <tom@tromey.com>
12782 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12785 2019-03-15 Tom Tromey <tom@tromey.com>
12787 * objfiles.h (struct objfile_per_bfd_storage)
12788 <demangled_hash_languages>: Now a bitset.
12789 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12790 (lookup_minimal_symbol): Update.
12792 2019-03-15 Tom Tromey <tom@tromey.com>
12794 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12795 Don't return the symbol.
12796 * coffread.c (record_minimal_symbol): Use record_full.
12798 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12800 The MS-Windows port of ncurses fails to switch to a color pair if
12801 one or both of the colors are the implicit default colors. This
12802 change records the default colors when TUI is initialized, and
12803 then specifies them explicitly when a color pair uses the default
12804 colors. This allows color styling in TUI mode on MS-Windows.
12806 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12808 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12809 colors in ncurses_norm_attr.
12810 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12811 "none", replace it with the default color recorded in
12814 2019-03-14 Tom Tromey <tromey@adacore.com>
12816 * source-cache.h (class source_cache) <get_source_lines>: Return
12818 * source-cache.c (source_cache::extract_lines): Handle case where
12819 first_pos==npos. Return std::string.
12820 (source_cache::get_source_lines): Update.
12822 2019-03-14 Tom Tromey <tromey@adacore.com>
12824 * NEWS: Add item for "style sources" commands.
12825 * source-cache.c (source_cache::get_source_lines): Check
12827 * cli/cli-style.c (source_styling): New global.
12828 (_initialize_cli_style): Add "style sources" commands.
12829 (show_style_sources): New function.
12830 * cli/cli-style.h (source_styling): Declare.
12832 2019-03-14 Pedro Alves <palves@redhat.com>
12833 Tom Tromey <tromey@adacore.com>
12835 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12836 * tui/tui-winsource.c (tui_refill_source_window): New function,
12838 (tui_horizontal_source_scroll): ... here. Move some logic.
12839 * cli/cli-style.c (set_style_enabled): Notify new observable.
12840 * tui/tui-hooks.c (tui_redisplay_source): New function.
12841 (tui_attach_detach_observers): Attach or detach
12842 tui_redisplay_source.
12843 * observable.h (source_styling_changed): New observable.
12844 * observable.c: Define source_styling_changed observable.
12846 2019-03-13 Tom Tromey <tromey@adacore.com>
12848 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12849 (i386_gnu_nat_target::store_registers): Update.
12850 * target-debug.h (target_debug_print_std_string): New macro.
12851 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12852 * windows-tdep.c (display_one_tib): Update.
12853 * tui/tui-stack.c (tui_make_status_line): Update.
12854 * top.c (print_inferior_quit_action): Update.
12855 * thread.c (thr_try_catch_cmd): Update.
12856 (add_thread_with_info): Update.
12857 (thread_target_id_str): Update.
12858 (thr_try_catch_cmd): Update.
12859 (thread_command): Update.
12860 (thread_find_command): Update.
12861 * record-btrace.c (record_btrace_target::info_record)
12862 (record_btrace_resume_thread, record_btrace_target::resume)
12863 (record_btrace_cancel_resume, record_btrace_step_thread)
12864 (record_btrace_target::wait, record_btrace_target::wait)
12865 (record_btrace_target::wait, record_btrace_target::stop): Update.
12866 * progspace.c (print_program_space): Update.
12867 * process-stratum-target.c
12868 (process_stratum_target::thread_address_space): Update.
12869 * linux-fork.c (linux_fork_mourn_inferior)
12870 (detach_checkpoint_command, info_checkpoints_command)
12871 (linux_fork_context): Update.
12872 (linux_fork_detach): Update.
12873 (class scoped_switch_fork_info): Update.
12874 (delete_checkpoint_command): Update.
12875 * infrun.c (follow_fork_inferior): Update.
12876 (follow_fork_inferior): Update.
12877 (proceed_after_vfork_done): Update.
12878 (handle_vfork_child_exec_or_exit): Update.
12879 (follow_exec): Update.
12880 (displaced_step_prepare_throw): Update.
12881 (displaced_step_restore): Update.
12882 (start_step_over): Update.
12883 (resume_1): Update.
12884 (clear_proceed_status_thread): Update.
12886 (print_target_wait_results): Update.
12887 (do_target_wait): Update.
12888 (context_switch): Update.
12889 (stop_all_threads): Update.
12890 (restart_threads): Update.
12891 (finish_step_over): Update.
12892 (handle_signal_stop): Update.
12893 (switch_back_to_stepped_thread): Update.
12894 (keep_going_pass_signal): Update.
12895 (print_exited_reason): Update.
12896 (normal_stop): Update.
12897 * inferior.c (inferior_pid_to_str): Change return type.
12898 (print_selected_inferior): Update.
12899 (add_inferior): Update.
12900 (detach_inferior): Update.
12901 * dummy-frame.c (fprint_dummy_frames): Update.
12902 * dcache.c (dcache_info_1): Update.
12903 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12904 (btrace_fetch, btrace_clear): Update.
12905 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12906 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12908 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12909 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12910 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12911 * gdbarch.c, gdbarch.h: Rebuild.
12912 * gdbarch.sh (core_pid_to_str): Change return type.
12913 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12915 (windows_nat_target::pid_to_str): Change return type.
12916 (windows_delete_thread): Update.
12917 (windows_nat_target::attach): Update.
12918 (windows_nat_target::files_info): Update.
12919 * target-delegates.c: Rebuild.
12920 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12922 (sol_thread_target::pid_to_str): Change return type.
12923 * remote.c (class remote_target) <pid_to_str>: Change return
12925 (remote_target::pid_to_str): Change return type.
12926 (extended_remote_target::attach, remote_target::remote_stop_ns)
12927 (remote_target::remote_notif_remove_queued_reply)
12928 (remote_target::push_stop_reply, remote_target::disable_btrace):
12930 (extended_remote_target::attach): Update.
12931 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12933 (gdbsim_target::pid_to_str): Change return type.
12934 * ravenscar-thread.c (struct ravenscar_thread_target)
12935 <pid_to_str>: Change return type.
12936 (ravenscar_thread_target::pid_to_str): Change return type.
12937 * procfs.c (class procfs_target) <pid_to_str>: Change return
12939 (procfs_target::pid_to_str): Change return type.
12940 (procfs_target::attach): Update.
12941 (procfs_target::detach): Update.
12942 (procfs_target::fetch_registers): Update.
12943 (procfs_target::store_registers): Update.
12944 (procfs_target::wait): Update.
12945 (procfs_target::files_info): Update.
12946 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12947 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12949 (nto_procfs_target::pid_to_str): Change return type.
12950 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12951 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12953 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12954 (exit_lwp): Update.
12955 (attach_proc_task_lwp_callback, get_detach_signal)
12956 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12957 (linux_nat_target::resume, wait_lwp, stop_callback)
12958 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12959 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12960 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12961 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12962 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12964 (inf_ptrace_target::attach): Update.
12965 (inf_ptrace_target::files_info): Update.
12966 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12968 (go32_nat_target::pid_to_str): Change return type.
12969 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12970 (gnu_nat_target::wait): Update.
12971 (gnu_nat_target::wait): Update.
12972 (gnu_nat_target::resume): Update.
12973 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12974 (fbsd_nat_target::wait): Update.
12975 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12977 (darwin_nat_target::attach): Update.
12978 * corelow.c (class core_target) <pid_to_str>: Change return type.
12979 (core_target::pid_to_str): Change return type.
12980 * target.c (normal_pid_to_str): Change return type.
12981 (default_pid_to_str): Likewise.
12982 (target_pid_to_str): Change return type.
12983 (target_translate_tls_address): Update.
12984 (target_announce_detach): Update.
12985 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12987 (bsd_uthread_target::pid_to_str): Change return type.
12988 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12990 (bsd_kvm_target::pid_to_str): Change return type.
12991 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12993 (aix_thread_target::pid_to_str): Change return type.
12994 * target.h (struct target_ops) <pid_to_str>: Change return type.
12995 (target_pid_to_str, normal_pid_to_str): Likewise.
12996 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12998 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13000 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13002 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13004 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13006 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13009 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13011 * NEWS: Mention that the new default MI version is 3. Mention
13012 changes to the output of commands and events that deal with
13013 multi-location breakpoints.
13014 * breakpoint.c: Include "mi/mi-out.h".
13015 (print_one_breakpoint): Change output syntax if using MI version
13017 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13019 (mi_multi_location_breakpoint_output_fixed): New.
13020 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13021 (mi_cmd_fix_multi_location_breakpoint_output): New.
13022 (mi_multi_location_breakpoint_output_fixed): New.
13023 * mi/mi-cmds.c (mi_cmds): Register command
13024 -fix-multi-location-breakpoint-output.
13025 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13028 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13030 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13031 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13032 instantiate mi_ui_out based on interpreter name.
13033 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13034 * mi/mi-main.c (mi_load_progress): Likewise.
13036 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13038 * NEWS: Combine separate "New targets" sections for 8.3.
13040 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13042 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13043 (ppcfbsd_init_abi): Install gdbarch
13044 "fetch_tls_load_module_address" and "get_thread_local_address"
13047 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13049 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13050 (riscv_fbsd_init_abi): Install gdbarch
13051 "fetch_tls_load_module_address" and "get_thread_local_address"
13054 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13056 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13057 (i386fbsd_init_abi): Install gdbarch
13058 "fetch_tls_load_module_address" and "get_thread_local_address"
13061 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13063 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13064 (amd64fbsd_init_abi): Install gdbarch
13065 "fetch_tls_load_module_address" and "get_thread_local_address"
13068 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13070 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13071 (struct fbsd_pspace_data): New type.
13072 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13073 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13074 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13075 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13076 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13078 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13080 * gdbtypes.c (lookup_struct_elt): New function.
13081 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13082 * gdbtypes.h (struct struct_elt): New type.
13083 (lookup_struct_elt): New prototype.
13085 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13087 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13088 remove disabled code block.
13090 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13092 * gdbarch.sh (get_thread_local_address): New method.
13093 * gdbarch.h, gdbarch.c: Regenerate.
13094 * target.c (target_translate_tls_address): Use
13095 gdbarch_get_thread_local_address if present instead of
13096 target::get_thread_local_address.
13098 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13100 * target.h (target::get_thread_local_address): Update comment.
13102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13104 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13105 objfile->separate_debug_objfile_backlink if not NULL.
13107 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13109 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13110 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13111 (amd64bsd_store_inferior_registers): Likewise.
13112 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13113 Enable segment base registers.
13114 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13115 PT_GETFSBASE and PT_GETGSBASE.
13116 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13118 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13119 segment base registers.
13120 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13122 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13124 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13125 Update calls to i386_target_description to add 'segments'
13127 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13128 add segment base registers.
13129 * arch/i386.c (i386_create_target_description): Add 'segments'
13130 parameter to enable segment base registers.
13131 * arch/i386.h (i386_create_target_description): Likewise.
13132 * features/i386/32bit-segments.xml: New file.
13133 * features/i386/32bit-segments.c: Generate.
13134 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13135 call to i386_target_description to add 'segments' parameter.
13136 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13137 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13138 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13139 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13140 if feature is present.
13141 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13142 Add 'segments' parameter to call to i386_target_description.
13143 (i386_target_description): Add 'segments' parameter to enable
13144 segment base registers.
13145 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13146 to call to i386_target_description.
13147 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13148 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13149 Define I386_NUM_REGS.
13150 (i386_target_description): Add 'segments' parameter to enable
13151 segment base registers.
13153 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13156 * source-cache.c: #undef open and close, to avoid unresolved
13157 externals during linking.
13159 2019-03-12 Tom Tromey <tromey@adacore.com>
13161 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13162 const. Add initializers.
13163 (_initialize_remote): Don't initialize ptid globals.
13165 2019-03-12 Pedro Alves <palves@redhat.com>
13167 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13169 2019-03-12 Pedro Alves <palves@redhat.com>
13171 * cp-name-parser.y (main): Remove unused 'len' variable.
13173 2019-03-12 Tom Tromey <tromey@adacore.com>
13175 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13176 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13178 2019-03-12 Tom Tromey <tromey@adacore.com>
13180 * linux-nat.c (iterate_over_lwps): Update.
13181 (stop_callback): Remove parameter.
13182 (stop_wait_callback, detach_callback, resume_set_callback)
13183 (select_singlestep_lwp_callback, set_ignore_sigint)
13184 (status_callback, resumed_callback, resume_clear_callback)
13185 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13187 (linux_nat_target::detach, linux_nat_target::resume)
13188 (linux_stop_and_wait_all_lwps, select_event_lwp)
13189 (linux_nat_filter_event, linux_nat_wait_1)
13190 (linux_nat_target::kill, linux_nat_target::stop)
13191 (linux_nat_target::stop): Update.
13192 (linux_nat_resume_callback): Change type.
13193 (resume_stopped_resumed_lwps, count_events_callback)
13194 (select_event_lwp_callback): Likewise.
13195 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13196 * arm-linux-nat.c (struct update_registers_data): Remove.
13197 (update_registers_callback): Change type.
13198 (arm_linux_insert_hw_breakpoint1): Update.
13199 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13201 (x86_linux_dr_set_addr): Update.
13202 (x86_linux_dr_set_control): Update.
13203 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13204 (iterate_over_lwps): Use gdb::function_view.
13205 * nat/aarch64-linux-hw-point.c (struct
13206 aarch64_dr_update_callback_param): Remove.
13207 (debug_reg_change_callback): Change type.
13208 (aarch64_notify_debug_reg_change): Update.
13209 * s390-linux-nat.c (s390_refresh_per_info): Update.
13211 2019-03-11 Tom Tromey <tromey@adacore.com>
13213 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13214 redundant assignment to "this_cu".
13216 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13218 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13222 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13224 (rank_one_type): ... this.
13226 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13228 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13230 (rank_one_type): ... this.
13232 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13234 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13236 (rank_one_type): ... this.
13238 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13240 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13242 (rank_one_type): ... this.
13244 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13246 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13248 (rank_one_type): ... this.
13250 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13252 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13254 (rank_one_type): ... this.
13256 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13258 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13260 (rank_one_type): ... this.
13262 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13264 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13266 (rank_one_type): ... this.
13268 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13270 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13272 (rank_one_type): ... this.
13274 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13276 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13278 (rank_one_type): ... this.
13280 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13282 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13284 (rank_one_type): ... this.
13286 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13288 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13290 (rank_one_type): ... this.
13292 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13294 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13295 inferior-events' shows the example events.
13297 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13299 Support styling on native MS-Windows console
13302 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13303 on MS-Windows if $TERM is not defined.
13305 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13307 * posix-hdep.c (gdb_console_fputs):
13308 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13310 * ui-file.h (gdb_console_fputs): Add prototype.
13312 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13313 back to fputs only if the former returns zero.
13315 2019-03-07 Tom Tromey <tom@tromey.com>
13317 * symmisc.c (print_symbol_bcache_statistics): Update.
13318 (print_objfile_statistics): Update.
13319 * symfile.c (allocate_symtab): Update.
13320 * stabsread.c: Don't include bcache.h.
13321 * psymtab.h (struct psymbol_bcache): Don't declare.
13322 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13323 (psymbol_bcache_init, psymbol_bcache_free)
13324 (psymbol_bcache_get_bcache): Don't declare.
13325 * psymtab.c (struct psymbol_bcache): Remove.
13326 (psymtab_storage::psymtab_storage): Update.
13327 (psymtab_storage::~psymtab_storage): Update.
13328 (psymbol_bcache_init, psymbol_bcache_free)
13329 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13330 (add_psymbol_to_bcache): Update.
13331 (allocate_psymtab): Update.
13332 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13333 macro_cache>: No longer pointers.
13334 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13335 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13336 * macrotab.c (macro_bcache): Update.
13337 * macroexp.c: Don't include bcache.h.
13338 * gdbtypes.c (check_types_worklist): Update.
13339 (types_deeply_equal): Remove TRY/CATCH. Update.
13340 * elfread.c (elf_symtab_read): Update.
13341 * dwarf2read.c: Don't include bcache.h.
13342 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13343 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13344 (print_bcache_statistics, bcache_memory_used): Don't declare.
13345 (struct bcache): Move from bcache.c. Add constructor, destructor,
13346 methods. Rename all data members.
13347 * bcache.c (struct bcache): Move to bcache.h.
13348 (bcache::expand_hash_table): Rename from expand_hash_table.
13350 (bcache::insert): Rename from bcache_full.
13351 (bcache::compare): Rename from bcache_compare.
13352 (bcache_xmalloc): Remove.
13353 (bcache::~bcache): Rename from bcache_xfree.
13354 (bcache::print_statistics): Rename from print_bcache_statistics.
13355 (bcache::memory_used): Rename from bcache_memory_used.
13357 2019-03-07 Pedro Alves <palves@redhat.com>
13359 * infrun.c (normal_stop): Also check for
13360 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13362 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13364 * f-lang.c (value_from_host_double): Moved to...
13365 * value.c (value_from_host_double): ...here.
13366 * value.h (value_from_host_double): Declare.
13367 * guile/scm-math.c (vlscm_convert_typed_number): Use
13368 value_from_host_double.
13369 (vlscm_convert_number): Likewise.
13370 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13371 * python/py-value.c (convert_value_from_python): Likewise.
13373 2019-03-06 Tom Tromey <tom@tromey.com>
13375 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13377 2019-03-06 Tom Tromey <tom@tromey.com>
13379 * utils.h (free_current_contents): Don't declare.
13380 * utils.c (free_current_contents): Remove.
13382 2019-03-06 Tom Tromey <tom@tromey.com>
13384 * top.c (quit_force): Update.
13385 * main.c (captured_command_loop): Update.
13386 * common/new-op.c (operator new): Update.
13387 * common/common-exceptions.c (struct catcher)
13388 <save_cleanup_chain>: Remove member.
13389 (exceptions_state_mc_init): Update.
13390 (exception_try_scope_entry): Return nullptr.
13391 (exception_try_scope_exit, exception_rethrow)
13392 (throw_exception_sjlj, throw_exception_cxx): Update.
13393 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13394 (all_cleanups, do_cleanups, discard_cleanups)
13395 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13396 (restore_cleanups, restore_final_cleanups): Don't declare.
13397 (do_final_cleanups): Remove parameter.
13398 * common/cleanups.c (cleanup_chain, make_cleanup)
13399 (make_cleanup_dtor, all_cleanups, do_cleanups)
13400 (discard_my_cleanups, discard_cleanups)
13401 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13402 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13403 (null_cleanup): Remove.
13404 (do_final_cleanups): Remove parameter.
13406 2019-03-06 Tom Tromey <tom@tromey.com>
13408 * remote.c (remote_target::remote_parse_stop_reply): Use
13409 unique_xmalloc_ptr.
13411 2019-03-06 Tom Tromey <tom@tromey.com>
13413 * stabsread.c (struct stabs_field_info): Rename from field_info.
13414 <list, fnlist>: Add initializers.
13415 <obstack>: New member.
13416 (read_member_functions, read_struct_fields, read_baseclasses):
13417 Allocate on obstack. Don't use cleanups.
13418 (read_one_struct_field, read_member_functions, read_struct_fields)
13419 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13420 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13421 (read_struct_type): Update.
13423 2019-03-06 Tom Tromey <tom@tromey.com>
13425 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13426 * common/filestuff.h (make_cleanup_close): Don't declare.
13427 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13430 2019-03-06 Tom Tromey <tom@tromey.com>
13432 * solib-aix.c: Use make_scope_exit.
13434 2019-03-06 Tom Tromey <tom@tromey.com>
13436 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13437 Use make_scope_exit.
13439 2019-03-06 Tom Tromey <tom@tromey.com>
13441 * solib-svr4.c (disable_probes_interface): Remove parameter.
13442 (svr4_handle_solib_event): Use make_scope_exit.
13444 2019-03-06 Tom Tromey <tom@tromey.com>
13446 * remote.c (struct stop_reply_deleter): Remove.
13447 (stop_reply_up): Update.
13448 (struct stop_reply): Derive from notif_event. Don't typedef.
13449 <regcache>: Now a std::vector.
13450 (stop_reply_xfree): Remove.
13451 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13452 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13453 (remote_target::discard_pending_stop_replies): Use delete.
13454 (remote_target::remote_parse_stop_reply): Update.
13455 (remote_target::process_stop_reply): Update.
13456 * remote-notif.h (struct notif_event): Add virtual destructor.
13457 Remove "dtr" member.
13458 (struct notif_client) <alloc_event>: Return a unique_ptr.
13459 (notif_event_xfree): Don't declare.
13460 (notif_event_up): New typedef.
13461 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13462 (notif_event_xfree, do_notif_event_xfree): Remove.
13463 (remote_notif_state_xfree): Update.
13465 2019-03-06 Tom Tromey <tom@tromey.com>
13467 * infrun.c (displaced_step_clear_cleanup): Now a
13468 forward_scope_exit type.
13469 (displaced_step_prepare_throw): Update.
13470 (displaced_step_fixup): Update.
13472 2019-03-06 Tom Tromey <tom@tromey.com>
13474 * inferior.h (class inferior): Update comment.
13475 * gdbthread.h (class thread_info): Update comment.
13477 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13478 Tom Tromey <tom@tromey.com>
13480 * stabsread.h (struct stab_section_list): Remove.
13481 (coffstab_build_psymtabs): Update.
13482 * dbxread.c (symbuf_sections): Now a std::vector.
13483 (sect_idx): New global.
13484 (fill_symbuf): Update.
13485 (coffstab_build_psymtabs): Change type of stabsects parameter.
13487 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13489 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13490 (coff_locate_sections): Update.
13491 (coff_symfile_read): Remove cleanups. Update.
13492 (init_stringtab): Add storage parameter.
13493 (free_stringtab, free_stringtab_cleanup): Remove.
13494 (init_lineno): Add storage parameter.
13495 (free_linetab, free_linetab_cleanup): Remove.
13497 2019-03-06 Pedro Alves <palves@redhat.com>
13499 * linux-fork.c (fork_info::clobber_regs): Delete.
13500 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13501 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13503 (scoped_switch_fork_info::scoped_switch_fork_info)
13504 (checkpoint_command, linux_fork_context): Adjust
13505 fork_save_infrun_state calls.
13507 2019-03-06 Pedro Alves <palves@redhat.com>
13509 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13510 (inf_has_multiple_threads): Return 'bool' and rewrite using
13511 inferior_info::threads().
13513 2019-03-06 Pedro Alves <palves@redhat.com>
13515 * linux-fork.c: Include <list>.
13516 (fork_list): Now a std::list instance.
13517 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13518 (forks_exist_p, find_last_fork): Adjust.
13519 (new_fork): Delete.
13521 (add_fork): Adjust.
13522 (free_fork): Delete, folded into fork_info::~fork_info().
13523 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13525 (init_fork_list): Delete.
13526 (linux_fork_killall, linux_fork_mourn_inferior)
13527 (linux_fork_detach, info_checkpoints_command): Adjust.
13528 (_initialize_linux_fork): No longer call init_fork_list.
13530 2019-03-06 Pedro Alves <palves@redhat.com>
13532 * linux-fork.c (new_fork): New, split out of ...
13533 (add_fork): ... this. Return void. Move "first fork" special
13534 case from here, to ...
13535 (checkpoint_command): ... here.
13536 * linux-linux.h (add_fork): Return void.
13538 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13540 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13543 Chris January <chris.january@arm.com>
13544 David Lecomber <david.lecomber@arm.com>
13546 * f-exp.y: New token, UNOP_INTRINSIC.
13547 (exp): New pattern using UNOP_INTRINSIC token.
13548 (f77_keywords): Add 'abs' keyword.
13549 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13550 (value_from_host_double): New function.
13551 (evaluate_subexp_f): Support UNOP_ABS.
13553 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13555 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13558 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13560 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13561 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13562 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13564 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13566 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13568 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13569 Chris January <chris.january@arm.com>
13571 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13572 * f-exp.y: Define 'KIND' token.
13573 (exp): New pattern for KIND expressions.
13574 (ptype): Handle types with a kind extension.
13575 (direct_abs_decl): Extend to spot kind extensions.
13576 (f77_keywords): Add 'kind' to the list.
13577 (push_kind_type): New function.
13578 (convert_to_kind_type): New function.
13579 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13580 * parse.c (operator_length_standard): Likewise.
13581 * parser-defs.h (enum type_pieces): Add tp_kind.
13582 * std-operator.def: Add UNOP_KIND.
13584 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13586 * f-exp.y (f_parse): Set yydebug.
13588 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13590 * f-lang.c (evaluate_subexp_f): New function.
13591 (exp_descriptor_f): New global.
13592 (f_language_defn): Use exp_descriptor_f instead of
13593 exp_descriptor_standard.
13595 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13597 * f-exp.y (struct token): Add comments.
13598 (dot_ops): Remove uppercase versions and the end marker.
13599 (f77_keywords): Likewise.
13600 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13601 entries in the dot_ops array are case insensitive, and use
13602 strncasecmp to compare strings. Also some whitespace cleanup in
13603 this area. Similar for the f77_keywords array, except entries in
13604 this list might be case sensitive.
13606 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13608 * f-exp.y (struct f77_boolean_val): Add comments.
13609 (boolean_values): Remove uppercase versions, and end marker.
13610 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13611 and use strncasecmp to achieve case insensitivity. Additionally,
13612 perform whitespace cleanup around this code.
13614 2019-03-06 Tom Tromey <tromey@adacore.com>
13616 * remote-sim.c (gdbsim_target_open): Use result of
13619 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13620 Dirk Schubert <dirk.schubert@arm.com>
13621 Chris January <chris.january@arm.com>
13623 * eval.c (evaluate_subexp_standard): Call Fortran argument
13625 * f-lang.c (struct value): A value which can be passed into a
13626 Fortran function call.
13627 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13629 (struct type): Value ready for a Fortran function call.
13630 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13632 * f-lang.h (fortran_argument_convert): Declaration.
13633 (fortran_preserve_arg_pointer): Declaration.
13634 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13636 2019-03-05 Tom Tromey <tromey@adacore.com>
13638 * python/py-prettyprint.c (print_string_repr): Remove #if.
13639 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13641 2019-03-05 Tom Tromey <tromey@adacore.com>
13643 * target.c (the_dummy_target): Move later. Change type to
13645 (initialize_targets): Don't initialize the_dummy_target.
13647 2019-03-05 Tom Tromey <tromey@adacore.com>
13649 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13650 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13652 2019-03-05 Tom Tromey <tromey@adacore.com>
13654 * windows-nat.c (windows_nat_target::attach)
13655 (windows_nat_target::detach): Don't call gdb_flush.
13656 * valprint.c (generic_val_print, val_print, val_print_string):
13657 Don't call gdb_flush.
13658 * utils.c (defaulted_query): Don't call gdb_flush.
13659 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13660 * target.c (target_announce_detach): Don't call gdb_flush.
13661 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13662 * remote.c (extended_remote_target::attach): Don't call
13664 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13665 * printcmd.c (do_examine): Don't call gdb_flush.
13666 (info_display_command): Don't call gdb_flush.
13667 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13668 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13669 * memattr.c (info_mem_command): Don't call gdb_flush.
13670 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13671 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13672 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13673 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13674 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13675 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13676 (gnu_nat_target::detach): Don't call gdb_flush.
13677 * f-valprint.c (f_val_print): Don't call gdb_flush.
13678 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13679 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13680 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13682 * c-valprint.c (c_val_print): Don't call gdb_flush.
13683 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13685 2019-03-05 Tom Tromey <tromey@adacore.com>
13687 * varobj.c (update_dynamic_varobj_children): Update.
13688 (install_default_visualizer): Use reset, not release.
13689 * value.c (set_internalvar): Update.
13690 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13691 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13692 ATTRIBUTE_UNUSED_RESULT.
13694 2019-03-05 Tom Tromey <tromey@adacore.com>
13696 * remote.c (class scoped_remote_fd) <release>: Add
13697 ATTRIBUTE_UNUSED_RESULT.
13699 2019-03-05 Tom Tromey <tromey@adacore.com>
13701 * macroexp.c (struct macro_buffer) <release>: Add
13702 ATTRIBUTE_UNUSED_RESULT.
13704 2019-03-05 Tom Tromey <tromey@adacore.com>
13706 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13707 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13708 ATTRIBUTE_UNUSED_RESULT.
13710 2019-03-05 Tom Tromey <tromey@adacore.com>
13712 * common/scoped_fd.h (class scoped_fd) <release>: Add
13713 ATTRIBUTE_UNUSED_RESULT.
13715 2019-03-05 Tom Tromey <tromey@adacore.com>
13717 * parser-defs.h (struct parser_state) <release>: Add
13718 ATTRIBUTE_UNUSED_RESULT.
13720 2019-03-05 Tom Tromey <tromey@adacore.com>
13722 * utils.h (class gdb_argv) <release>: Add
13723 ATTRIBUTE_UNUSED_RESULT.
13724 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13726 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13728 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13729 for-loop range, to avoid compiler warnings.
13731 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13732 avoid compiler warnings about unused variables.
13734 * NEWS: Mention end of support for native debugging on MS-Windows
13738 * common/netstuff.c:
13739 * gdbserver/gdbreplay.c
13740 * gdbserver/remote-utils.c:
13742 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13743 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13744 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13745 'getaddrinfo' and 'freeaddrinfo' were not available before
13746 Windows XP, and mingw.org's MinGW headers by default define
13747 _WIN32_WINNT to 0x500.
13749 2019-03-01 Gary Benson <gbenson@redhat.com>
13751 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13753 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13754 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13757 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13758 set_sigint_trap, clear_sigint_trap.
13760 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13762 * target.c (target_detach): Clear the regcache and the
13765 2019-02-27 Pedro Alves <palves@redhat.com>
13767 * utils.c (set_screen_size): When we cap the height/width sizes,
13768 tweak the corresponding command variable to show "unlimited":
13770 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13771 Pedro Alves <palves@redhat.com>
13773 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13774 before calling rl_set_screen_size.
13776 2019-02-27 Tom Tromey <tromey@adacore.com>
13778 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13780 * python/py-value.c: Remove Python 2.4 workaround.
13781 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13783 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13784 Python 2.4 workaround.
13785 * python/python-internal.h: Remove Python 2.4 comment.
13786 (Py_ssize_t): Don't define.
13787 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13788 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13789 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13790 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13791 * python/python.c (do_start_initialization): Remove Python 2.4
13793 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13794 (print_children): Remove Python 2.4 workaround.
13795 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13797 (CHARBUFFERPROC_NAME): Remove.
13798 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13799 Python 2.4 workaround.
13801 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13803 * NEWS: Note minimum Python version.
13805 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13807 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13808 code from these functions. Remove corresponding ifdefs. Use
13809 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13810 Remove gotos and target of gotos.
13811 (infpy_search_memory): Likewise.
13813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13815 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13816 (hppa_gdbarch_init): Don't register deleted functions with
13819 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13821 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13822 (h8300_unwind_sp): Delete.
13823 (h8300_dummy_id): Delete.
13824 (h8300_gdbarch_init): Don't register deleted functions with
13827 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13829 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13830 (ft32_unwind_pc): Delete.
13831 (ft32_unwind_sp): Delete.
13832 (ft32_gdbarch_init): Don't register deleted functions with
13835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13837 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13838 (frv_unwind_pc): Delete.
13839 (frv_unwind_sp): Delete.
13840 (frv_gdbarch_init): Don't register deleted functions with
13843 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13845 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13846 (riscv_unwind_pc): Delete.
13847 (riscv_unwind_sp): Delete.
13848 (riscv_gdbarch_init): Don't register deleted functions with
13851 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13853 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13854 (csky_unwind_pc): Delete.
13855 (csky_unwind_sp): Delete.
13856 (csky_gdbarch_init): Don't register deleted functions with
13859 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13861 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13862 (cris_unwind_pc): Delete.
13863 (cris_unwind_sp): Delete.
13864 (cris_gdbarch_init): Don't register deleted functions with
13867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13869 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13870 (bfin_unwind_pc): Delete.
13871 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13873 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13875 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13876 (arm_unwind_pc): Delete.
13877 (arm_unwind_sp): Delete.
13878 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13880 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13882 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13883 (arc_unwind_pc): Delete.
13884 (arc_unwind_sp): Delete.
13885 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13887 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13889 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13890 (alpha_unwind_pc): Delete.
13891 (alpha_gdbarch_init): Don't register deleted functions with
13894 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13896 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13897 (aarch64_unwind_pc): Delete.
13898 (aarch64_unwind_sp): Delete.
13899 (aarch64_gdbarch_init): Don't register deleted functions with
13902 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13904 * gdbtypes.c (type_align): Don't consider static members when
13905 computing structure alignment.
13907 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13909 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13910 return 0 for other types.
13911 * arch-utils.c (default_type_align): Always return 0.
13912 * gdbarch.h: Regenerate.
13913 * gdbarch.sh (type_align): Extend comment.
13914 * gdbtypes.c (type_align): Add additional comments, always call
13915 gdbarch_type_align before applying the default rules.
13916 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13917 generic code will then apply a suitable default.
13918 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13919 types, return 0 for other types.
13921 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13923 * NEWS: Create a new section for the next release branch.
13924 Rename the section of the current branch, now that it has
13927 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13929 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13930 * version.in: Bump version to 8.3.50.DATE-git.
13932 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13934 * aix-thread.c (ptid_cmp): Remove unused variable.
13935 (get_signaled_thread): Likewise.
13936 (store_regs_user_thread): Likewise.
13937 (store_regs_kernel_thread): Likewise.
13938 (fetch_regs_kernel_thread): Remove shadowed variable.
13940 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13942 * features/riscv/32bit-cpu.xml: Add register numbers.
13943 * features/riscv/32bit-fpu.c: Regenerate.
13944 * features/riscv/32bit-fpu.xml: Add register numbers.
13945 * features/riscv/64bit-cpu.xml: Add register numbers.
13946 * features/riscv/64bit-fpu.c: Regenerate.
13947 * features/riscv/64bit-fpu.xml: Add register numbers.
13949 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13951 * NEWS: Mention two argument form of gdb.Value constructor.
13952 * python/py-value.c (convert_buffer_and_type_to_value): New
13954 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13955 Add support for handling an optional second argument. Call
13956 convert_buffer_and_type_to_value as appropriate.
13957 * python/python-internal.h (Py_buffer_deleter): New struct.
13958 (Py_buffer_up): New typedef.
13960 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13962 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13963 instead of releasing ownership.
13965 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13967 * dwarf2read.c (open_and_init_dwp_file): Call
13968 elf_numsections instead of bfd_count_sections to initialize
13969 dwp_file->num_sections.
13971 2019-02-25 Tom Tromey <tromey@adacore.com>
13973 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13975 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13977 * gcore.in: Add '--readnever' option when invoking GDB.
13979 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13981 * MAINTAINERS: Update my email address.
13983 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13985 * build-id.c (build_id_to_debug_bfd_1): New function.
13986 (build_id_to_debug_bfd): Look for separate debug file in
13989 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13991 * gdbarch.sh: Update the copyright year range that is placed into
13994 2019-02-22 Keith Seitz <keiths@redhat.com>
13997 * linespec.c (create_sals_line_offset): Search for the default
13998 symtab's filename instead of its fullname.
14000 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14002 * NEWS: Update style defaults.
14004 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14006 * main.c (captured_main_1): Disable styling in batch mode.
14008 2019-02-20 Tom Tromey <tom@tromey.com>
14010 * symtab.c (symtab_symbol_info): Fix typos.
14012 2019-02-20 Tom Tromey <tromey@adacore.com>
14014 * findcmd.c (_initialize_mem_search): Use upper case for
14015 metasyntactic variables.
14017 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14019 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14020 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14022 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14024 * top.h (source_file_name): Change to std::string.
14025 * top.c (source_file_name): Likewise.
14026 (command_line_input): Adjust.
14027 * cli/cli-script.c (script_from_file): Adjust.
14029 2019-02-19 Tom Tromey <tromey@adacore.com>
14031 * ravenscar-thread.c
14032 (ravenscar_thread_target::update_thread_list): Don't call
14033 ada_build_task_list.
14034 * ada-lang.h (ada_build_task_list): Don't declare.
14035 * ada-tasks.c (struct ada_tasks_inferior_data)
14036 <task_list_valid_p>: Now bool.
14037 (read_known_tasks, ada_task_list_changed)
14038 (ada_tasks_invalidate_inferior_data): Update.
14039 (read_known_tasks_array): Return bool.
14040 (read_known_tasks_list): Likewise.
14041 (read_known_tasks): Return void.
14042 (ada_build_task_list): Now static.
14044 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14046 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14047 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14049 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14051 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14052 variant for ada_tasks_pspace_data_handle and
14053 ada_tasks_inferior_data_handle.
14054 (ada_tasks_pspace_data_cleanup): New function.
14055 (ada_tasks_inferior_data_cleanup): New function.
14057 2019-02-17 Tom Tromey <tom@tromey.com>
14059 * macrotab.h (macro_source_fullname): Return a std::string.
14060 * macrotab.c (macro_include, check_for_redefinition)
14061 (macro_undef, macro_lookup_definition, foreach_macro)
14062 (foreach_macro_in_scope): Update.
14063 (macro_source_fullname): Return a std::string.
14064 * macrocmd.c (show_pp_source_pos): Update.
14066 2019-02-17 Tom Tromey <tom@tromey.com>
14068 * macrocmd.c (show_pp_source_pos): Style the file names.
14070 2019-02-17 Tom Tromey <tom@tromey.com>
14073 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14075 2019-02-17 Tom Tromey <tom@tromey.com>
14077 * ada-lang.c (user_select_syms): Use filtered printing.
14078 * utils.c (wrap_style): New global.
14079 (desired_style): Remove.
14080 (emit_style_escape): Add stream parameter.
14081 (set_output_style, reset_terminal_style, prompt_for_continue):
14083 (flush_wrap_buffer): Only flush gdb_stdout.
14084 (wrap_here): Set wrap_style.
14085 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14086 treat escape sequences as a character. Change when wrap buffer is
14088 (fputs_styled): Do not set the output style when the default is
14090 * ui-style.h (struct ui_file_style) <is_default>: New method.
14091 * source.c (print_source_lines_base): Emit escape sequences in one
14094 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14096 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14097 integers and enumeration types.
14099 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14101 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14102 instead of lookup_symbol_in_language
14103 (do_exact_match): New function.
14104 (ada_get_symbol_name_matcher): Return do_exact_match when
14105 doing a verbatim match.
14107 2019-02-15 Tom Tromey <tromey@adacore.com>
14109 * ravenscar-thread.c (ravenscar_thread_target::resume)
14110 (ravenscar_thread_target::wait): Special case wildcard requests.
14112 2019-02-15 Tom Tromey <tromey@adacore.com>
14114 * ravenscar-thread.c (base_ptid): Remove.
14115 (struct ravenscar_thread_target) <close>: New method.
14116 <m_base_ptid>: New member.
14117 <update_inferior_ptid, active_task, task_is_currently_active,
14118 runtime_initialized>: Declare methods.
14119 <ravenscar_thread_target>: Add constructor.
14120 (ravenscar_thread_target::task_is_currently_active)
14121 (ravenscar_thread_target::update_inferior_ptid)
14122 (ravenscar_runtime_initialized): Rename. Now methods.
14123 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14124 (ravenscar_thread_target::update_thread_list): Update.
14125 (ravenscar_thread_target::active_task): Now method.
14126 (ravenscar_thread_target::store_registers)
14127 (ravenscar_thread_target::prepare_to_store)
14128 (ravenscar_thread_target::prepare_to_store)
14129 (ravenscar_thread_target::mourn_inferior): Update.
14130 (ravenscar_inferior_created): Use "new" to create target.
14131 (ravenscar_thread_target::get_ada_task_ptid): Update.
14132 (_initialize_ravenscar): Don't initialize base_ptid.
14133 (ravenscar_ops): Remove global.
14135 2019-02-15 Tom Tromey <tromey@adacore.com>
14137 * target.h (push_target): Declare new overload.
14138 * target.c (push_target): New overload, taking an rvalue reference.
14139 * remote.c (remote_target::open_1): Use push_target overload.
14140 * corelow.c (core_target_open): Use push_target overload.
14142 2019-02-15 Tom Tromey <tromey@adacore.com>
14144 * ravenscar-thread.c (is_ravenscar_task)
14145 (ravenscar_task_is_currently_active): Return bool.
14146 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14147 (_initialize_ravenscar): Remove "(void)".
14148 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14151 2019-02-15 Tom Tromey <tromey@adacore.com>
14153 * ravenscar-thread.c (ravenscar_runtime_initializer)
14154 (has_ravenscar_runtime, get_running_thread_id)
14155 (ravenscar_thread_target::resume): Fix indentation.
14157 2019-02-15 Tom Tromey <tromey@adacore.com>
14159 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14160 from ravenscar_arch_ops.
14161 (sparc_ravenscar_ops::fetch_registers)
14162 (sparc_ravenscar_ops::store_registers): Now methods.
14163 (sparc_ravenscar_prepare_to_store): Remove.
14164 (sparc_ravenscar_ops): Redefine.
14165 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14166 methods and destructor. Remove members.
14167 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14168 (ravenscar_thread_target::store_registers)
14169 (ravenscar_thread_target::prepare_to_store): Update.
14170 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14172 (struct ppc_ravenscar_powerpc_ops): Derive from
14173 ravenscar_arch_ops.
14174 (ppc_ravenscar_powerpc_ops::fetch_registers)
14175 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14176 (ppc_ravenscar_powerpc_ops): Redefine.
14177 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14178 (ppc_ravenscar_e500_ops::fetch_registers)
14179 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14180 (ppc_ravenscar_e500_ops): Redefine.
14181 * aarch64-ravenscar-thread.c
14182 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14183 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14184 (aarch64_ravenscar_fetch_registers)
14185 (aarch64_ravenscar_store_registers): Now methods.
14186 (aarch64_ravenscar_ops): Redefine.
14188 2019-02-15 Tom Tromey <tromey@adacore.com>
14190 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14191 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14192 (ravenscar_thread_target::stopped_by_watchpoint)
14193 (ravenscar_thread_target::stopped_data_address)
14194 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14196 2019-02-15 Tom Tromey <tromey@adacore.com>
14198 * ravenscar-thread.c: Fix some typos.
14200 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14201 Tom Tromey <tromey@adacore.com>
14203 * ada-lang.c (ada_exception_sal): Change addr_string to a
14205 (create_ada_exception_catchpoint): Update.
14207 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14208 Tom Tromey <tromey@adacore.com>
14210 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14211 (bp_location_ops): Remove.
14212 (base_breakpoint_allocate_location): Update.
14213 (free_bp_location): Update.
14214 * ada-lang.c (class ada_catchpoint_location)
14215 <ada_catchpoint_location>: Remove ops parameter.
14216 (ada_catchpoint_location_dtor): Remove.
14217 (ada_catchpoint_location_ops): Remove.
14218 (allocate_location_exception): Update.
14219 * breakpoint.h (struct bp_location_ops): Remove.
14220 (class bp_location) <bp_location>: Remove bp_location_ops
14222 <~bp_location>: Add destructor.
14225 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14226 Pedro Alves <palves@redhat.com>
14228 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14231 2019-02-14 David Michael <fedora.dm0@gmail.com>
14232 Samuel Thibault <samuel.thibault@gnu.org>
14233 Thomas Schwinge <thomas@codesourcery.com>
14235 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14236 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14238 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14240 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14241 (check_empty): Use "const char *".
14243 * gnu-nat.c (gnu_nat_target::detach): Instead of
14244 'detach_inferior (pid)' call
14245 'detach_inferior (find_inferior_pid (pid))'.
14247 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14248 'nat/fork-inferior.o'.
14249 * gnu-nat.c: #include "nat/fork-inferior.h".
14251 * gnu-nat.c (gnu_nat_target::detach): Instead of
14252 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14253 * gnu-nat.h: #include "inf-child.h".
14254 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14255 'i386_gnu_nat_target::fetch_registers'.
14256 (gnu_store_registers): Rename/move to
14257 'i386_gnu_nat_target::store_registers'.
14259 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14260 * gnu-nat.h (mach_thread_info): New function.
14261 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14263 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14265 2019-02-14 Frederic Konrad <konrad@adacore.com>
14267 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14269 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14271 * windows-nat.c (windows_add_thread): Add new parameter
14272 "main_thread_p" with default value set to false. Update
14273 function documentation as well as all callers.
14274 (windows_delete_thread): Likewise.
14275 (fake_create_process): Update call to windows_add_thread.
14276 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14277 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14278 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14279 call to windows_delete_thread.
14281 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14283 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14285 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14287 * symfile.c (find_separate_debug_file): Use canonical path of
14288 sysroot with child_path instead of gdb_sysroot if it is valid.
14290 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14292 * symfile.c (find_separate_debug_file): Use child_path to
14293 determine if an object file is under a sysroot.
14295 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14297 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14298 unittests/child-path-selftests.c.
14299 * common/pathstuff.c (child_path): New function.
14300 * common/pathstuff.h (child_path): New prototype.
14301 * unittests/child-path-selftests.c: New file.
14303 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14305 * symfile.c (find_separate_debug_file): Look for separate debug
14306 files in debug directories under the sysroot.
14308 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14310 * symtab.h (struct minimal_symbol data_p): New const method.
14311 (struct minimal_symbol text_p): Likewise.
14312 * symtab.c (output_source_filename): Use file name style
14313 to print file name.
14314 (print_symbol_info): Likewise.
14315 (print_msymbol_info): Use address style to print addresses.
14316 Use function name style to print executable text symbols.
14317 (expand_symtab_containing_pc): Use data_p.
14318 (find_pc_sect_compunit_symtab): Likewise.
14320 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14322 * breakpoint.c (describe_other_breakpoints): Use address style
14323 to print addresses.
14324 (say_where): Likewise.
14326 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14328 * ada-typeprint.c (print_func_type): Print function name
14329 style to print function name.
14330 * c-typeprint.c (c_print_type_1): Likewise.
14332 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14334 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14337 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14339 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14342 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14344 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14345 TYPE_CODE_REF types.
14347 2019-02-08 Jim Wilson <jimw@sifive.com>
14349 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14350 (riscv_linux_fregset): New.
14351 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14353 2019-02-07 Tom Tromey <tom@tromey.com>
14355 * thread.c (thread_cancel_execution_command): Update.
14356 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14358 (struct thread_fsm_ops): Remove.
14359 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14360 (thread_fsm_should_stop, thread_fsm_return_value)
14361 (thread_fsm_set_finished, thread_fsm_finished_p)
14362 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14364 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14365 * infrun.c (clear_proceed_status_thread)
14366 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14367 (print_stop_event): Update.
14368 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14370 (step_command_fsm_ops): Remove.
14371 (new_step_command_fsm): Remove.
14373 (step_command_fsm::should_stop): Rename from
14374 step_command_fsm_should_stop.
14375 (step_command_fsm::clean_up): Rename from
14376 step_command_fsm_clean_up.
14377 (step_command_fsm::do_async_reply_reason): Rename from
14378 step_command_fsm_async_reply_reason.
14379 (struct until_next_fsm): Inherit from thread_fsm. Add
14381 (until_next_fsm_ops): Remove.
14382 (new_until_next_fsm): Remove.
14383 (until_next_fsm::should_stop): Rename from
14384 until_next_fsm_should_stop.
14385 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14386 (until_next_fsm::do_async_reply_reason): Rename from
14387 until_next_fsm_async_reply_reason.
14388 (struct finish_command_fsm): Inherit from thread_fsm. Add
14389 constructor. Change type of breakpoint.
14390 (finish_command_fsm_ops): Remove.
14391 (new_finish_command_fsm): Remove.
14392 (finish_command_fsm::should_stop): Rename from
14393 finish_command_fsm_should_stop.
14394 (finish_command_fsm::clean_up): Rename from
14395 finish_command_fsm_clean_up.
14396 (finish_command_fsm::return_value): Rename from
14397 finish_command_fsm_return_value.
14398 (finish_command_fsm::do_async_reply_reason): Rename from
14399 finish_command_fsm_async_reply_reason.
14400 (finish_command): Update.
14401 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14403 (call_thread_fsm_ops): Remove.
14404 (call_thread_fsm::call_thread_fsm): Rename from
14405 new_call_thread_fsm.
14406 (call_thread_fsm::should_stop): Rename from
14407 call_thread_fsm_should_stop.
14408 (call_thread_fsm::should_notify_stop): Rename from
14409 call_thread_fsm_should_notify_stop.
14410 (run_inferior_call, call_function_by_hand_dummy): Update.
14411 * cli/cli-interp.c (should_print_stop_to_console): Update.
14412 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14413 Add constructor. Change type of location_breakpoint,
14415 (until_break_fsm_ops): Remove.
14416 (new_until_break_fsm): Remove.
14417 (until_break_fsm::should_stop): Rename from
14418 until_break_fsm_should_stop.
14419 (until_break_fsm::clean_up): Rename from
14420 until_break_fsm_clean_up.
14421 (until_break_fsm::do_async_reply_reason): Rename from
14422 until_break_fsm_async_reply_reason.
14423 (until_break_command): Update.
14424 * thread-fsm.c: Remove.
14425 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14427 2019-02-07 Tom Tromey <tom@tromey.com>
14429 * yy-remap.h: Add include guard.
14430 * xtensa-tdep.h: Add include guard.
14431 * xcoffread.h: Rename include guard.
14432 * varobj-iter.h: Add include guard.
14433 * tui/tui.h: Rename include guard.
14434 * tui/tui-winsource.h: Rename include guard.
14435 * tui/tui-wingeneral.h: Rename include guard.
14436 * tui/tui-windata.h: Rename include guard.
14437 * tui/tui-win.h: Rename include guard.
14438 * tui/tui-stack.h: Rename include guard.
14439 * tui/tui-source.h: Rename include guard.
14440 * tui/tui-regs.h: Rename include guard.
14441 * tui/tui-out.h: Rename include guard.
14442 * tui/tui-layout.h: Rename include guard.
14443 * tui/tui-io.h: Rename include guard.
14444 * tui/tui-hooks.h: Rename include guard.
14445 * tui/tui-file.h: Rename include guard.
14446 * tui/tui-disasm.h: Rename include guard.
14447 * tui/tui-data.h: Rename include guard.
14448 * tui/tui-command.h: Rename include guard.
14449 * tic6x-tdep.h: Add include guard.
14450 * target/waitstatus.h: Rename include guard.
14451 * target/wait.h: Rename include guard.
14452 * target/target.h: Rename include guard.
14453 * target/resume.h: Rename include guard.
14454 * target-float.h: Rename include guard.
14455 * stabsread.h: Add include guard.
14456 * rs6000-tdep.h: Add include guard.
14457 * riscv-fbsd-tdep.h: Add include guard.
14458 * regformats/regdef.h: Rename include guard.
14459 * record.h: Rename include guard.
14460 * python/python.h: Rename include guard.
14461 * python/python-internal.h: Rename include guard.
14462 * python/py-stopevent.h: Rename include guard.
14463 * python/py-ref.h: Rename include guard.
14464 * python/py-record.h: Rename include guard.
14465 * python/py-record-full.h: Rename include guard.
14466 * python/py-record-btrace.h: Rename include guard.
14467 * python/py-instruction.h: Rename include guard.
14468 * python/py-events.h: Rename include guard.
14469 * python/py-event.h: Rename include guard.
14470 * procfs.h: Add include guard.
14471 * proc-utils.h: Add include guard.
14472 * p-lang.h: Add include guard.
14473 * or1k-tdep.h: Rename include guard.
14474 * observable.h: Rename include guard.
14475 * nto-tdep.h: Rename include guard.
14476 * nat/x86-linux.h: Rename include guard.
14477 * nat/x86-linux-dregs.h: Rename include guard.
14478 * nat/x86-gcc-cpuid.h: Add include guard.
14479 * nat/x86-dregs.h: Rename include guard.
14480 * nat/x86-cpuid.h: Rename include guard.
14481 * nat/ppc-linux.h: Rename include guard.
14482 * nat/mips-linux-watch.h: Rename include guard.
14483 * nat/linux-waitpid.h: Rename include guard.
14484 * nat/linux-ptrace.h: Rename include guard.
14485 * nat/linux-procfs.h: Rename include guard.
14486 * nat/linux-osdata.h: Rename include guard.
14487 * nat/linux-nat.h: Rename include guard.
14488 * nat/linux-namespaces.h: Rename include guard.
14489 * nat/linux-btrace.h: Rename include guard.
14490 * nat/glibc_thread_db.h: Rename include guard.
14491 * nat/gdb_thread_db.h: Rename include guard.
14492 * nat/gdb_ptrace.h: Rename include guard.
14493 * nat/fork-inferior.h: Rename include guard.
14494 * nat/amd64-linux-siginfo.h: Rename include guard.
14495 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14496 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14497 * nat/aarch64-linux.h: Rename include guard.
14498 * nat/aarch64-linux-hw-point.h: Rename include guard.
14499 * mn10300-tdep.h: Add include guard.
14500 * mips-linux-tdep.h: Add include guard.
14501 * mi/mi-parse.h: Rename include guard.
14502 * mi/mi-out.h: Rename include guard.
14503 * mi/mi-main.h: Rename include guard.
14504 * mi/mi-interp.h: Rename include guard.
14505 * mi/mi-getopt.h: Rename include guard.
14506 * mi/mi-console.h: Rename include guard.
14507 * mi/mi-common.h: Rename include guard.
14508 * mi/mi-cmds.h: Rename include guard.
14509 * mi/mi-cmd-break.h: Rename include guard.
14510 * m2-lang.h: Add include guard.
14511 * location.h: Rename include guard.
14512 * linux-record.h: Rename include guard.
14513 * linux-nat.h: Add include guard.
14514 * linux-fork.h: Add include guard.
14515 * i386-darwin-tdep.h: Rename include guard.
14516 * hppa-linux-offsets.h: Add include guard.
14517 * guile/guile.h: Rename include guard.
14518 * guile/guile-internal.h: Rename include guard.
14519 * gnu-nat.h: Rename include guard.
14520 * gdb-stabs.h: Rename include guard.
14521 * frv-tdep.h: Add include guard.
14522 * f-lang.h: Add include guard.
14523 * event-loop.h: Add include guard.
14524 * darwin-nat.h: Rename include guard.
14525 * cp-abi.h: Rename include guard.
14526 * config/sparc/nm-sol2.h: Rename include guard.
14527 * config/nm-nto.h: Rename include guard.
14528 * config/nm-linux.h: Add include guard.
14529 * config/i386/nm-i386gnu.h: Rename include guard.
14530 * config/djgpp/nl_types.h: Rename include guard.
14531 * config/djgpp/langinfo.h: Rename include guard.
14532 * compile/gcc-cp-plugin.h: Add include guard.
14533 * compile/gcc-c-plugin.h: Add include guard.
14534 * compile/compile.h: Rename include guard.
14535 * compile/compile-object-run.h: Rename include guard.
14536 * compile/compile-object-load.h: Rename include guard.
14537 * compile/compile-internal.h: Rename include guard.
14538 * compile/compile-cplus.h: Rename include guard.
14539 * compile/compile-c.h: Rename include guard.
14540 * common/xml-utils.h: Rename include guard.
14541 * common/x86-xstate.h: Rename include guard.
14542 * common/version.h: Rename include guard.
14543 * common/vec.h: Rename include guard.
14544 * common/tdesc.h: Rename include guard.
14545 * common/selftest.h: Rename include guard.
14546 * common/scoped_restore.h: Rename include guard.
14547 * common/scoped_mmap.h: Rename include guard.
14548 * common/scoped_fd.h: Rename include guard.
14549 * common/safe-iterator.h: Rename include guard.
14550 * common/run-time-clock.h: Rename include guard.
14551 * common/refcounted-object.h: Rename include guard.
14552 * common/queue.h: Rename include guard.
14553 * common/ptid.h: Rename include guard.
14554 * common/print-utils.h: Rename include guard.
14555 * common/preprocessor.h: Rename include guard.
14556 * common/pathstuff.h: Rename include guard.
14557 * common/observable.h: Rename include guard.
14558 * common/netstuff.h: Rename include guard.
14559 * common/job-control.h: Rename include guard.
14560 * common/host-defs.h: Rename include guard.
14561 * common/gdb_wait.h: Rename include guard.
14562 * common/gdb_vecs.h: Rename include guard.
14563 * common/gdb_unlinker.h: Rename include guard.
14564 * common/gdb_unique_ptr.h: Rename include guard.
14565 * common/gdb_tilde_expand.h: Rename include guard.
14566 * common/gdb_sys_time.h: Rename include guard.
14567 * common/gdb_string_view.h: Rename include guard.
14568 * common/gdb_splay_tree.h: Rename include guard.
14569 * common/gdb_setjmp.h: Rename include guard.
14570 * common/gdb_ref_ptr.h: Rename include guard.
14571 * common/gdb_optional.h: Rename include guard.
14572 * common/gdb_locale.h: Rename include guard.
14573 * common/gdb_assert.h: Rename include guard.
14574 * common/filtered-iterator.h: Rename include guard.
14575 * common/filestuff.h: Rename include guard.
14576 * common/fileio.h: Rename include guard.
14577 * common/environ.h: Rename include guard.
14578 * common/common-utils.h: Rename include guard.
14579 * common/common-types.h: Rename include guard.
14580 * common/common-regcache.h: Rename include guard.
14581 * common/common-inferior.h: Rename include guard.
14582 * common/common-gdbthread.h: Rename include guard.
14583 * common/common-exceptions.h: Rename include guard.
14584 * common/common-defs.h: Rename include guard.
14585 * common/common-debug.h: Rename include guard.
14586 * common/cleanups.h: Rename include guard.
14587 * common/buffer.h: Rename include guard.
14588 * common/btrace-common.h: Rename include guard.
14589 * common/break-common.h: Rename include guard.
14590 * cli/cli-utils.h: Rename include guard.
14591 * cli/cli-style.h: Rename include guard.
14592 * cli/cli-setshow.h: Rename include guard.
14593 * cli/cli-script.h: Rename include guard.
14594 * cli/cli-interp.h: Rename include guard.
14595 * cli/cli-decode.h: Rename include guard.
14596 * cli/cli-cmds.h: Rename include guard.
14597 * charset-list.h: Add include guard.
14598 * buildsym-legacy.h: Rename include guard.
14599 * bfin-tdep.h: Add include guard.
14600 * ax.h: Rename include guard.
14601 * arm-linux-tdep.h: Add include guard.
14602 * arm-fbsd-tdep.h: Add include guard.
14603 * arch/xtensa.h: Rename include guard.
14604 * arch/tic6x.h: Add include guard.
14605 * arch/i386.h: Add include guard.
14606 * arch/arm.h: Rename include guard.
14607 * arch/arm-linux.h: Rename include guard.
14608 * arch/arm-get-next-pcs.h: Rename include guard.
14609 * arch/amd64.h: Add include guard.
14610 * arch/aarch64-insn.h: Rename include guard.
14611 * arch-utils.h: Rename include guard.
14612 * annotate.h: Add include guard.
14613 * amd64-darwin-tdep.h: Rename include guard.
14614 * aarch64-linux-tdep.h: Add include guard.
14615 * aarch64-fbsd-tdep.h: Add include guard.
14616 * aarch32-linux-nat.h: Add include guard.
14618 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14620 * macrotab.c (macro_define_internal): New function that
14621 factorizes macro_define_object_internal and macro_define_function
14623 (macro_define_object_internal): Use macro_define_internal.
14624 (macro_define_function): Likewise.
14626 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14628 * macrocmd.c (extract_identifier): Return
14629 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14632 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14634 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14636 2019-02-05 Tom Tromey <tom@tromey.com>
14638 * target.c (target_stack::unpush): Move assertion earlier.
14640 2019-01-30 Tom Tromey <tom@tromey.com>
14643 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14644 (gdbpy_parse_and_eval): Likewise.
14645 * python/python-internal.h (gdbpy_allow_threads): New class.
14647 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14649 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14650 (aarch64_fbsd_fpregmap): Move earlier.
14651 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14652 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14653 instead of individual calls to trad_frame_set_reg_addr.
14654 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14656 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14657 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14658 instead of individual calls to trad_frame_set_reg_addr.
14660 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14662 * CONTRIBUTE: Replace contribution list with wiki link.
14664 2019-01-25 Tom Tromey <tom@tromey.com>
14666 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14668 2019-01-25 Tom Tromey <tom@tromey.com>
14670 * xtensa-linux-nat.c: Fix common/ includes.
14671 * xml-support.h: Fix common/ includes.
14672 * xml-support.c: Fix common/ includes.
14673 * x86-linux-nat.c: Fix common/ includes.
14674 * windows-nat.c: Fix common/ includes.
14675 * varobj.h: Fix common/ includes.
14676 * varobj.c: Fix common/ includes.
14677 * value.c: Fix common/ includes.
14678 * valops.c: Fix common/ includes.
14679 * utils.c: Fix common/ includes.
14680 * unittests/xml-utils-selftests.c: Fix common/ includes.
14681 * unittests/utils-selftests.c: Fix common/ includes.
14682 * unittests/unpack-selftests.c: Fix common/ includes.
14683 * unittests/tracepoint-selftests.c: Fix common/ includes.
14684 * unittests/style-selftests.c: Fix common/ includes.
14685 * unittests/string_view-selftests.c: Fix common/ includes.
14686 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14687 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14688 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14689 * unittests/rsp-low-selftests.c: Fix common/ includes.
14690 * unittests/parse-connection-spec-selftests.c: Fix common/
14692 * unittests/optional-selftests.c: Fix common/ includes.
14693 * unittests/offset-type-selftests.c: Fix common/ includes.
14694 * unittests/observable-selftests.c: Fix common/ includes.
14695 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14696 * unittests/memrange-selftests.c: Fix common/ includes.
14697 * unittests/memory-map-selftests.c: Fix common/ includes.
14698 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14699 * unittests/function-view-selftests.c: Fix common/ includes.
14700 * unittests/environ-selftests.c: Fix common/ includes.
14701 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14702 * unittests/common-utils-selftests.c: Fix common/ includes.
14703 * unittests/cli-utils-selftests.c: Fix common/ includes.
14704 * unittests/array-view-selftests.c: Fix common/ includes.
14705 * ui-file.c: Fix common/ includes.
14706 * tui/tui-io.c: Fix common/ includes.
14707 * tracepoint.h: Fix common/ includes.
14708 * tracepoint.c: Fix common/ includes.
14709 * tracefile-tfile.c: Fix common/ includes.
14710 * top.h: Fix common/ includes.
14711 * top.c: Fix common/ includes.
14712 * thread.c: Fix common/ includes.
14713 * target/waitstatus.h: Fix common/ includes.
14714 * target/waitstatus.c: Fix common/ includes.
14715 * target.h: Fix common/ includes.
14716 * target.c: Fix common/ includes.
14717 * target-memory.c: Fix common/ includes.
14718 * target-descriptions.c: Fix common/ includes.
14719 * symtab.h: Fix common/ includes.
14720 * symfile.c: Fix common/ includes.
14721 * stap-probe.c: Fix common/ includes.
14722 * spu-linux-nat.c: Fix common/ includes.
14723 * sparc-nat.c: Fix common/ includes.
14724 * source.c: Fix common/ includes.
14725 * solib.c: Fix common/ includes.
14726 * solib-target.c: Fix common/ includes.
14727 * ser-unix.c: Fix common/ includes.
14728 * ser-tcp.c: Fix common/ includes.
14729 * ser-pipe.c: Fix common/ includes.
14730 * ser-base.c: Fix common/ includes.
14731 * selftest-arch.c: Fix common/ includes.
14732 * s12z-tdep.c: Fix common/ includes.
14733 * rust-exp.y: Fix common/ includes.
14734 * rs6000-aix-tdep.c: Fix common/ includes.
14735 * riscv-tdep.c: Fix common/ includes.
14736 * remote.c: Fix common/ includes.
14737 * remote-notif.h: Fix common/ includes.
14738 * remote-fileio.h: Fix common/ includes.
14739 * remote-fileio.c: Fix common/ includes.
14740 * regcache.h: Fix common/ includes.
14741 * regcache.c: Fix common/ includes.
14742 * record-btrace.c: Fix common/ includes.
14743 * python/python.c: Fix common/ includes.
14744 * python/py-type.c: Fix common/ includes.
14745 * python/py-inferior.c: Fix common/ includes.
14746 * progspace.h: Fix common/ includes.
14747 * producer.c: Fix common/ includes.
14748 * procfs.c: Fix common/ includes.
14749 * proc-api.c: Fix common/ includes.
14750 * printcmd.c: Fix common/ includes.
14751 * ppc-linux-nat.c: Fix common/ includes.
14752 * parser-defs.h: Fix common/ includes.
14753 * osdata.c: Fix common/ includes.
14754 * obsd-nat.c: Fix common/ includes.
14755 * nat/x86-linux.c: Fix common/ includes.
14756 * nat/x86-linux-dregs.c: Fix common/ includes.
14757 * nat/x86-dregs.h: Fix common/ includes.
14758 * nat/x86-dregs.c: Fix common/ includes.
14759 * nat/ppc-linux.c: Fix common/ includes.
14760 * nat/mips-linux-watch.h: Fix common/ includes.
14761 * nat/mips-linux-watch.c: Fix common/ includes.
14762 * nat/linux-waitpid.c: Fix common/ includes.
14763 * nat/linux-ptrace.h: Fix common/ includes.
14764 * nat/linux-ptrace.c: Fix common/ includes.
14765 * nat/linux-procfs.c: Fix common/ includes.
14766 * nat/linux-personality.c: Fix common/ includes.
14767 * nat/linux-osdata.c: Fix common/ includes.
14768 * nat/linux-namespaces.c: Fix common/ includes.
14769 * nat/linux-btrace.h: Fix common/ includes.
14770 * nat/linux-btrace.c: Fix common/ includes.
14771 * nat/fork-inferior.c: Fix common/ includes.
14772 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14773 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14774 * nat/aarch64-linux.c: Fix common/ includes.
14775 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14776 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14777 * namespace.h: Fix common/ includes.
14778 * mips-linux-tdep.c: Fix common/ includes.
14779 * minsyms.c: Fix common/ includes.
14780 * mi/mi-parse.h: Fix common/ includes.
14781 * mi/mi-main.c: Fix common/ includes.
14782 * mi/mi-cmd-env.c: Fix common/ includes.
14783 * memrange.h: Fix common/ includes.
14784 * memattr.c: Fix common/ includes.
14785 * maint.h: Fix common/ includes.
14786 * maint.c: Fix common/ includes.
14787 * main.c: Fix common/ includes.
14788 * machoread.c: Fix common/ includes.
14789 * location.c: Fix common/ includes.
14790 * linux-thread-db.c: Fix common/ includes.
14791 * linux-nat.c: Fix common/ includes.
14792 * linux-fork.c: Fix common/ includes.
14793 * inline-frame.c: Fix common/ includes.
14794 * infrun.c: Fix common/ includes.
14795 * inflow.c: Fix common/ includes.
14796 * inferior.h: Fix common/ includes.
14797 * inferior.c: Fix common/ includes.
14798 * infcmd.c: Fix common/ includes.
14799 * inf-ptrace.c: Fix common/ includes.
14800 * inf-child.c: Fix common/ includes.
14801 * ia64-linux-nat.c: Fix common/ includes.
14802 * i387-tdep.c: Fix common/ includes.
14803 * i386-tdep.c: Fix common/ includes.
14804 * i386-linux-tdep.c: Fix common/ includes.
14805 * i386-linux-nat.c: Fix common/ includes.
14806 * i386-go32-tdep.c: Fix common/ includes.
14807 * i386-fbsd-tdep.c: Fix common/ includes.
14808 * i386-fbsd-nat.c: Fix common/ includes.
14809 * guile/scm-type.c: Fix common/ includes.
14810 * guile/guile.c: Fix common/ includes.
14811 * go32-nat.c: Fix common/ includes.
14812 * gnu-nat.c: Fix common/ includes.
14813 * gdbthread.h: Fix common/ includes.
14814 * gdbarch-selftests.c: Fix common/ includes.
14815 * gdb_usleep.c: Fix common/ includes.
14816 * gdb_select.h: Fix common/ includes.
14817 * gdb_bfd.c: Fix common/ includes.
14818 * gcore.c: Fix common/ includes.
14819 * fork-child.c: Fix common/ includes.
14820 * findvar.c: Fix common/ includes.
14821 * fbsd-nat.c: Fix common/ includes.
14822 * event-top.c: Fix common/ includes.
14823 * event-loop.c: Fix common/ includes.
14824 * dwarf2read.c: Fix common/ includes.
14825 * dwarf2loc.c: Fix common/ includes.
14826 * dwarf2-frame.c: Fix common/ includes.
14827 * dwarf-index-cache.c: Fix common/ includes.
14828 * dtrace-probe.c: Fix common/ includes.
14829 * disasm-selftests.c: Fix common/ includes.
14830 * defs.h: Fix common/ includes.
14831 * csky-tdep.c: Fix common/ includes.
14832 * cp-valprint.c: Fix common/ includes.
14833 * cp-support.h: Fix common/ includes.
14834 * cp-support.c: Fix common/ includes.
14835 * corelow.c: Fix common/ includes.
14836 * completer.h: Fix common/ includes.
14837 * completer.c: Fix common/ includes.
14838 * compile/compile.c: Fix common/ includes.
14839 * compile/compile-loc2c.c: Fix common/ includes.
14840 * compile/compile-cplus-types.c: Fix common/ includes.
14841 * compile/compile-cplus-symbols.c: Fix common/ includes.
14842 * command.h: Fix common/ includes.
14843 * cli/cli-dump.c: Fix common/ includes.
14844 * cli/cli-cmds.c: Fix common/ includes.
14845 * charset.c: Fix common/ includes.
14846 * build-id.c: Fix common/ includes.
14847 * btrace.h: Fix common/ includes.
14848 * btrace.c: Fix common/ includes.
14849 * breakpoint.h: Fix common/ includes.
14850 * breakpoint.c: Fix common/ includes.
14852 (enum agent_op): Fix common/ includes.
14853 * ax-general.c (struct aop_map): Fix common/ includes.
14854 * ax-gdb.c: Fix common/ includes.
14855 * auxv.c: Fix common/ includes.
14856 * auto-load.c: Fix common/ includes.
14857 * arm-tdep.c: Fix common/ includes.
14858 * arch/riscv.c: Fix common/ includes.
14859 * arch/ppc-linux-common.c: Fix common/ includes.
14860 * arch/i386.c: Fix common/ includes.
14861 * arch/arm.c: Fix common/ includes.
14862 * arch/arm-linux.c: Fix common/ includes.
14863 * arch/arm-get-next-pcs.c: Fix common/ includes.
14864 * arch/amd64.c: Fix common/ includes.
14865 * arch/aarch64.c: Fix common/ includes.
14866 * arch/aarch64-insn.c: Fix common/ includes.
14867 * arch-utils.c: Fix common/ includes.
14868 * amd64-windows-tdep.c: Fix common/ includes.
14869 * amd64-tdep.c: Fix common/ includes.
14870 * amd64-sol2-tdep.c: Fix common/ includes.
14871 * amd64-obsd-tdep.c: Fix common/ includes.
14872 * amd64-nbsd-tdep.c: Fix common/ includes.
14873 * amd64-linux-tdep.c: Fix common/ includes.
14874 * amd64-linux-nat.c: Fix common/ includes.
14875 * amd64-fbsd-tdep.c: Fix common/ includes.
14876 * amd64-fbsd-nat.c: Fix common/ includes.
14877 * amd64-dicos-tdep.c: Fix common/ includes.
14878 * amd64-darwin-tdep.c: Fix common/ includes.
14879 * agent.c: Fix common/ includes.
14880 * ada-lang.h: Fix common/ includes.
14881 * ada-lang.c: Fix common/ includes.
14882 * aarch64-tdep.c: Fix common/ includes.
14884 2019-01-25 Tom Tromey <tom@tromey.com>
14886 * common/create-version.sh: Use common/version.h.
14888 2019-01-24 Pedro Alves <palves@redhat.com>
14890 * infrun.c (signal_stop, signal_print, signal_program)
14891 (signal_catch, signal_pass): Now arrays instead of pointers.
14892 (update_signals_program_target, do_target_resume)
14893 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14894 * linux-nat.c (linux_nat_target::pass_signals)
14895 (linux_nat_target::create_inferior, linux_nat_target::attach):
14897 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14898 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14899 * procfs.c (procfs_target::pass_signals): Adjust.
14900 * record-full.c (record_full_target::resume): Adjust.
14901 * remote.c (remote_target::pass_signals)
14902 (remote_target::program_signals): Adjust.
14903 * target-debug.h (target_debug_print_signals): Now takes a
14904 gdb::array_view as parameter. Adjust.
14905 * target.h (target_ops) <pass_signals, program_signals>: Replace
14906 pointer and length parameters with gdb::array_view.
14907 (target_pass_signals, target_program_signals): Likewise.
14908 * target-delegates.c: Regenerate.
14910 2019-01-24 Pedro Alves <palves@redhat.com>
14912 * common/forward-scope-exit.h
14913 (forward_scope_exit::forward_scope_exit): Pass arguments to
14914 m_bind_function directly, instead of creating a std::bind and
14917 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14919 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14920 for static members.
14921 (pass_in_v_vfp_candidate): Likewise.
14923 2019-01-23 Tom Tromey <tom@tromey.com>
14924 Pedro Alves <palves@redhat.com>
14926 * regcache.c (class regcache_invalidator): Remove.
14927 (regcache::raw_write): Use make_scope_exit.
14929 2019-01-23 Tom Tromey <tom@tromey.com>
14931 * ui-out.h (class ui_out_emit_type): Update comment.
14933 2019-01-23 Tom Tromey <tom@tromey.com>
14935 * infrun.c (fetch_inferior_event): Update comment.
14937 2019-01-23 Tom Tromey <tom@tromey.com>
14938 Pedro Alves <palves@redhat.com>
14940 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14942 (fetch_inferior_event): Use SCOPE_EXIT.
14945 2019-01-23 Tom Tromey <tom@tromey.com>
14946 Pedro Alves <palves@redhat.com>
14948 * infrun.c (disable_thread_events): Delete.
14949 (stop_all_threads): Use SCOPE_EXIT.
14951 2019-01-23 Tom Tromey <tom@tromey.com>
14952 Pedro Alves <palves@redhat.com>
14954 * symfile.c: Include forward-scope-exit.h.
14955 (clear_symtab_users_cleanup): Replace forward declaration with
14956 a FORWARD_SCOPE_EXIT.
14957 (syms_from_objfile_1): Use the forward_scope_exit and
14958 gdb::optional instead of cleanup_function.
14959 (reread_symbols): Use the forward_scope_exit instead of
14961 (clear_symtab_users_cleanup): Remove function.
14963 2019-01-23 Tom Tromey <tom@tromey.com>
14964 Pedro Alves <palves@redhat.com>
14966 * linux-nat.c: Include scope-exit.h.
14967 (cleanup_target_stop): Remove.
14968 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14971 2019-01-23 Tom Tromey <tom@tromey.com>
14972 Pedro Alves <palves@redhat.com>
14974 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14975 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14977 2019-01-23 Tom Tromey <tom@tromey.com>
14978 Andrew Burgess <andrew.burgess@embecosm.com>
14979 Pedro Alves <palves@redhat.com>
14981 * infrun.c (fetch_inferior_event): Use scope_exit.
14982 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14983 * top.c (execute_command): Use scope_exit.
14984 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14985 * utils.c (do_bpstat_clear_actions_cleanup)
14986 (make_bpstat_clear_actions_cleanup): Remove.
14988 2019-01-23 Tom Tromey <tom@tromey.com>
14989 Pedro Alves <palves@redhat.com>
14991 * infrun.c: Include "common/scope-exit.h"
14992 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14993 (wait_for_inferior): Use SCOPE_EXIT.
14994 (fetch_inferior_event): Use scope_exit.
14996 2019-01-23 Tom Tromey <tom@tromey.com>
14997 Pedro Alves <palves@redhat.com>
14999 * breakpoint.c (create_breakpoint): Remove cleanup.
15001 2019-01-23 Tom Tromey <tom@tromey.com>
15002 Andrew Burgess <andrew.burgess@embecosm.com>
15003 Pedro Alves <palves@redhat.com>
15005 2019-01-23 Pedro Alves <palves@redhat.com>
15007 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15009 2019-01-23 Pedro Alves <palves@redhat.com>
15010 Andrew Burgess <andrew.burgess@embecosm.com>
15012 * gdbthread.h: Include "common/forward-scope-exit.h".
15013 (scoped_finish_thread_state): Redefine custom class in terms of
15014 forward_scope_exit.
15016 2019-01-23 Pedro Alves <palves@redhat.com>
15017 Andrew Burgess <andrew.burgess@embecosm.com>
15019 * common/forward-scope-exit.h: New file.
15021 2019-01-23 Pedro Alves <palves@redhat.com>
15022 Andrew Burgess <andrew.burgess@embecosm.com>
15023 Tom Tromey <tom@tromey.com>
15025 * common/scope-exit.h: New file.
15027 2019-01-23 Pedro Alves <palves@redhat.com>
15029 * common/preprocessor.h (ESC): Rename to ...
15030 (ESC_PARENS): ... this.
15031 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15032 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15034 2019-01-23 Tom Tromey <tom@tromey.com>
15036 * language.h (class scoped_switch_to_sym_language_if_auto):
15037 Initialize m_lang in both cases.
15039 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15041 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15044 2019-01-22 Tom Tromey <tom@tromey.com>
15046 * corelow.c: Do not include sys/file.h.
15048 2019-01-22 Tom Tromey <tom@tromey.com>
15050 * tui/tui-wingeneral.h: Include gdb_curses.h.
15052 2019-01-22 Tom Tromey <tom@tromey.com>
15054 * source-cache.h (class source_cache) <get_source_lines,
15055 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15057 2019-01-22 Tom Tromey <tom@tromey.com>
15059 * remote-fileio.h (struct remote_target): Declare.
15061 2019-01-22 Tom Tromey <tom@tromey.com>
15063 * python/py-arch.c: Do not include py-ref.h.
15064 * python/py-bpevent.c: Do not include py-ref.h.
15065 * python/py-cmd.c: Do not include py-ref.h.
15066 * python/py-continueevent.c: Do not include py-ref.h.
15067 * python/py-event.h: Do not include py-ref.h.
15068 * python/py-evtregistry.c: Do not include py-ref.h.
15069 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15070 * python/py-frame.c: Do not include py-ref.h.
15071 * python/py-framefilter.c: Do not include py-ref.h.
15072 * python/py-function.c: Do not include py-ref.h.
15073 * python/py-infevents.c: Do not include py-ref.h.
15074 * python/py-linetable.c: Do not include py-ref.h.
15075 * python/py-objfile.c: Do not include py-ref.h.
15076 * python/py-param.c: Do not include py-ref.h.
15077 * python/py-prettyprint.c: Do not include py-ref.h.
15078 * python/py-progspace.c: Do not include py-ref.h.
15079 * python/py-symbol.c: Do not include py-ref.h.
15080 * python/py-symtab.c: Do not include py-ref.h.
15081 * python/py-type.c: Do not include py-ref.h.
15082 * python/py-unwind.c: Do not include py-ref.h.
15083 * python/py-utils.c: Do not include py-ref.h.
15084 * python/py-value.c: Do not include py-ref.h.
15085 * python/py-varobj.c: Do not include py-ref.h.
15086 * python/py-xmethods.c: Do not include py-ref.h.
15087 * python/python.c: Do not include py-ref.h.
15088 * varobj.c: Do not include py-ref.h.
15090 2019-01-22 Tom Tromey <tom@tromey.com>
15092 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15093 keyword for bcache.
15095 2019-01-22 Tom Tromey <tom@tromey.com>
15097 * compile/compile-cplus-types.c: Remove a comment by #include.
15099 2019-01-22 Tom Tromey <tom@tromey.com>
15101 * compile/gcc-c-plugin.h: Include compile-internal.h.
15103 2019-01-22 Tom Tromey <tom@tromey.com>
15105 * stabsread.c (EXTERN): Do not define.
15106 (symnum, next_symbol_text_func, processing_gcc_compilation)
15107 (within_function, global_sym_chain, global_stabs)
15108 (previous_stab_code, this_object_header_files)
15109 (n_this_object_header_files)
15110 (n_allocated_this_object_header_files): Define.
15111 * stabsread.h (EXTERN): Never define. Use "extern".
15113 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15115 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15118 2019-01-21 Tom Tromey <tom@tromey.com>
15120 * ui-out.c: Fix includes.
15121 * tui/tui-source.c: Fix includes.
15122 * target.c: Fix includes.
15123 * remote.c: Fix includes.
15124 * regcache.c: Fix includes.
15125 * python/py-block.c: Fix includes.
15126 * printcmd.c: Fix includes.
15127 * or1k-tdep.c: Fix includes.
15128 * mi/mi-main.c: Fix includes.
15129 * m32r-tdep.c: Fix includes.
15130 * csky-tdep.c: Fix includes.
15131 * compile/compile-cplus-types.c: Fix includes.
15132 * cli/cli-interp.c: Fix includes.
15134 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15136 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15139 2019-01-16 Tom Tromey <tom@tromey.com>
15141 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15143 (struct objfile) <msymbols_range>: Move from top level.
15144 <msymbols>: New method.
15145 (class objfile_msymbols): Remove.
15146 * symtab.c (default_collect_symbol_completion_matches_break_on):
15148 * symmisc.c (dump_msymbols): Update.
15149 * stabsread.c (scan_file_globals): Update.
15150 * objc-lang.c (info_selectors_command, info_classes_command)
15151 (find_methods): Update.
15152 * minsyms.c (find_solib_trampoline_target): Update.
15153 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15154 * coffread.c (coff_symfile_read): Update.
15155 * ada-lang.c (ada_lookup_simple_minsym)
15156 (ada_collect_symbol_completion_matches): Update.
15158 2019-01-16 Tom Tromey <tom@tromey.com>
15160 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15161 type. Remove no-argument constructor.
15162 <iterator::operator++>: Simplify.
15164 <end>: Use minimal_symbol_count.
15166 2019-01-16 Tom Tromey <tom@tromey.com>
15168 * objfiles.h (struct objfile) <psymtabs>: New method.
15169 (class objfile_psymtabs): Remove.
15170 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15172 <range>: New method.
15173 (require_partial_symbols): Change return type.
15174 * psymtab.c (require_partial_symbols)
15175 (psym_expand_symtabs_matching): Update.
15176 * mdebugread.c (parse_partial_symbols): Update.
15177 * dbxread.c (dbx_end_psymtab): Update.
15179 2019-01-15 Tom Tromey <tom@tromey.com>
15181 * symtab.c (lookup_objfile_from_block)
15182 (lookup_symbol_in_objfile_symtabs)
15183 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15184 (find_line_symtab, info_sources_command)
15185 (default_collect_symbol_completion_matches_break_on)
15186 (make_source_files_completion_list): Update.
15187 * symmisc.c (print_objfile_statistics, dump_objfile)
15188 (maintenance_print_symbols, maintenance_info_symtabs)
15189 (maintenance_check_symtabs, maintenance_info_line_tables):
15191 * source.c (select_source_symtab)
15192 (forget_cached_source_info_for_objfile): Update.
15193 * objfiles.h (class objfile_compunits): Remove.
15194 (struct objfile) <compunits_range>: New typedef.
15195 (compunits): New method.
15196 * objfiles.c (objfile_relocate1): Update.
15197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15198 * maint.c (count_symtabs_and_blocks): Update.
15199 * linespec.c (iterate_over_all_matching_symtabs): Update.
15200 * cp-support.c (add_symbol_overload_list_qualified): Update.
15201 * coffread.c (coff_symtab_read): Update.
15202 * ada-lang.c (add_nonlocal_symbols)
15203 (ada_collect_symbol_completion_matches)
15204 (ada_add_global_exceptions): Update.
15206 2019-01-15 Tom Tromey <tom@tromey.com>
15208 * progspace.h (program_space) <objfiles_safe_range>: New
15210 <objfiles_safe>: New method.
15211 * objfiles.h (class all_objfiles_safe): Remove.
15212 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15213 * jit.c (jit_inferior_exit_hook): Update.
15215 2019-01-17 Tom Tromey <tom@tromey.com>
15217 * progspace.h (program_space) <objfiles_range>: New typedef.
15218 <objfiles>: New method.
15219 <objfiles_head>: Rename from objfiles.
15220 (object_files): Update.
15221 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15222 * guile/scm-pretty-print.c
15223 (ppscm_find_pretty_printer_from_objfiles): Update.
15224 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15225 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15227 * python/py-progspace.c (pspy_get_objfiles): Update.
15228 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15230 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15231 (objfpy_lookup_objfile_by_build_id): Update.
15232 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15233 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15235 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15236 (expand_symtab_containing_pc, lookup_objfile_from_block)
15237 (lookup_static_symbol, basic_lookup_transparent_type)
15238 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15239 (find_line_symtab, info_sources_command)
15240 (default_collect_symbol_completion_matches_break_on)
15241 (make_source_files_completion_list, find_main_name): Update.
15242 * symmisc.c (print_symbol_bcache_statistics)
15243 (print_objfile_statistics, maintenance_print_symbols)
15244 (maintenance_print_msymbols, maintenance_print_objfiles)
15245 (maintenance_info_symtabs, maintenance_check_symtabs)
15246 (maintenance_expand_symtabs, maintenance_info_line_tables):
15248 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15249 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15250 (map_overlay_command, unmap_overlay_command)
15251 (simple_overlay_update, expand_symtabs_matching)
15252 (map_symbol_filenames): Update.
15253 * symfile-debug.c (set_debug_symfile): Update.
15254 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15256 * source.c (select_source_symtab, forget_cached_source_info):
15258 * solib.c (solib_read_symbols): Update.
15259 * solib-spu.c (append_ocl_sos): Update.
15260 * psymtab.c (maintenance_print_psymbols)
15261 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15262 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15263 * printcmd.c (info_symbol_command): Update.
15264 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15266 * objfiles.h (class all_objfiles): Remove.
15267 * objfiles.c (have_partial_symbols, have_full_symbols)
15268 (have_minimal_symbols, qsort_cmp, update_section_map)
15269 (shared_objfile_contains_address_p)
15270 (default_iterate_over_objfiles_in_search_order): Update.
15271 * objc-lang.c (info_selectors_command, info_classes_command)
15272 (find_methods): Update.
15273 * minsyms.c (find_solib_trampoline_target): Update.
15274 * maint.c (maintenance_info_sections)
15275 (maintenance_translate_address, count_symtabs_and_blocks):
15277 * main.c (captured_main_1): Update.
15278 * linux-thread-db.c (try_thread_db_load_from_pdir)
15279 (has_libpthread): Update.
15280 * linespec.c (iterate_over_all_matching_symtabs)
15281 (search_minsyms_for_name): Update.
15282 * jit.c (jit_find_objf_with_entry_addr): Update.
15283 * hppa-tdep.c (find_unwind_entry)
15284 (hppa_lookup_stub_minimal_symbol): Update.
15285 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15287 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15288 (elf_gnu_ifunc_resolve_by_got): Update.
15289 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15290 * dwarf-index-write.c (save_gdb_index_command): Update.
15291 * cp-support.c (add_symbol_overload_list_qualified): Update.
15292 * breakpoint.c (create_overlay_event_breakpoint)
15293 (create_longjmp_master_breakpoint)
15294 (create_std_terminate_master_breakpoint)
15295 (create_exception_master_breakpoint): Update.
15296 * blockframe.c (find_pc_partial_function): Update.
15297 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15298 (ada_collect_symbol_completion_matches)
15299 (ada_add_global_exceptions): Update.
15301 2019-01-17 Tom Tromey <tom@tromey.com>
15303 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15305 (solib_target_parse_libraries): Change return type.
15306 (library_list_start_segment, library_list_start_section)
15307 (library_list_end_library, library_list_start_library); Update.
15308 (solib_target_free_library_list): Remove.
15309 (solib_target_parse_libraries): Remove cleanup. Change return
15311 (solib_target_current_sos): Update.
15313 2019-01-17 Tom Tromey <tromey@bapiya>
15315 * valprint.c: Replace "the the" with "the".
15316 * symtab.c: Replace "the the" with "the".
15317 * solib.c: Replace "the the" with "the".
15318 * solib-dsbt.c: Replace "the the" with "the".
15319 * linespec.c: Replace "the the" with "the".
15320 * dwarf2loc.h: Replace "the the" with "the".
15321 * amd64-windows-tdep.c: Replace "the the" with "the".
15322 * aarch64-tdep.c: Replace "the the" with "the".
15324 2019-01-16 Keith Seitz <keiths@redhat.com>
15327 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15328 <builder>: Rename to ..
15329 <m_builder>: ... this and make private.
15330 (dwarf2_cu::get_builder): New method. Change all users of
15331 `builder' to use this method.
15332 (dwarf2_start_symtab): Move to ...
15333 (dwarf2_cu::start_symtab): ... here. Update all callers
15334 (setup_type_unit_groups): Move to ...
15335 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15337 (dwarf2_cu::reset_builder): New method.
15338 (process_full_compunit, process_full_type_unit): Use
15339 dwarf2_cu::reset_builder.
15340 (follow_die_offset): Record the ancestor CU if it is different
15341 from the followed DIE's CU.
15342 (follow_die_sig_1): Likewise.
15344 2019-01-15 Tom Tromey <tom@tromey.com>
15346 * remote.c (class remote_state) <buf>: Now a char_vector.
15347 <buf_size>: Remove.
15348 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15350 (remote_target::getpkt_or_notif_sane_1)
15351 (remote_target::getpkt_sane)
15352 (remote_target::getpkt_or_notif_sane): Likewise.
15353 (class remote_target) <putpkt>: New overload.
15354 (remote_target::read_frame): Change type of "buf_p". Remove
15355 sizeof_p parameter.
15356 (packet_ok): New overload.
15357 (packet_check_result): New overload.
15360 2019-01-14 Tom Tromey <tom@tromey.com>
15362 * remote-notif.c (handle_notification, remote_notif_ack)
15363 (remote_notif_parse): Make "buf" const.
15364 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15366 (remote_notif_parse, remote_notif_ack, handle_notification):
15368 * remote.c (remote_notif_stop_parse): Make "buf" const.
15369 (remote_target::remote_parse_stop_reply): Make "buf" const.
15370 (remote_notif_stop_ack): Make "buf" const.
15372 2019-01-14 Tom Tromey <tom@tromey.com>
15374 * remote.c (remote_console_output): Make parameter const.
15376 2019-01-14 Tom Tromey <tom@tromey.com>
15378 * target-debug.h (target_debug_print_signals): Constify.
15379 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15380 * procfs.c (procfs_target::pass_signals): Update.
15381 * linux-nat.c (linux_nat_target::pass_signals): Update.
15382 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15383 * target-delegates.c: Rebuild.
15384 * remote.c (remote_target::program_signals): Update.
15385 (remote_target::pass_signals): Update.
15386 * target.c (target_pass_signals): Constify argument.
15387 (target_program_signals): Likewise.
15388 * target.h (struct target_ops) <pass_signals, program_signals>:
15390 (target_pass_signals, target_program_signals): Constify argument.
15392 2019-01-14 Tom Tromey <tom@tromey.com>
15395 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15397 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15399 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15401 * rs6000-tdep.c: Include reggroups.h.
15402 (IS_V_ALIAS_PSEUDOREG): Define.
15403 (rs6000_register_name): Return names for the "vX" aliases.
15404 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15405 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15406 aliases. Call default_register_reggroup_p for all other
15408 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15410 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15411 Handle "vX" aliases.
15412 (v_alias_pseudo_register_collect): New function.
15413 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15414 (rs6000_gdbarch_init): Initialize "vX" aliases as
15415 pseudo-registers. Restore registration of
15416 rs6000_pseudo_register_reggroup_p with
15417 set_tdesc_pseudo_register_reggroup_p.
15419 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15421 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15422 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15423 set_gdbarch_num_pseudo_regs.
15425 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15427 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15428 Remove arg prefixname, add do_set and do_show.
15429 Add member functions set_list and show_list.
15430 * cli/cli-style.c (class cli_style_option): Update accordingly.
15431 (style_set_list): Move to file scope.
15432 (style_show_list): Likewise.
15433 (set_style): Call help_list.
15434 (show_style): Call cmd_show_list.
15435 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15436 Update to use the new macro.
15438 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15440 * ada-lang.c (_initialize_ada_language): Expand the help text
15441 for the "catch exception" command.
15443 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15445 * symtab.c (matching_obj_sections): Initialize obj,
15446 declare it closer to its usage.
15448 2019-01-10 Tom Tromey <tom@tromey.com>
15450 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15451 (basic_inf_threads_range): Remove.
15452 (inf_threads_range, inf_non_exited_threads_range)
15453 (safe_inf_threads_range): Use next_adapter.
15455 2019-01-10 Keith Seitz <keiths@redhat.com>
15459 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15460 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15462 2019-01-10 Keith Seitz <keiths@redhat.com>
15466 * dictionary.c (pending_to_vector): Remove.
15467 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15468 Remove _1 suffix, replacing functions of the same name. Update
15470 (dict_create_hashed, dict_create_hashed_expandable)
15471 (dict_create_linear, dict_create_linear_expandable, dict_free)
15472 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15473 Make functions static.
15475 2019-01-10 Keith Seitz <keiths@redhat.com>
15479 * dictionary.h (struct dictionary): Replace declaration with
15481 (dict_create_hashed, dict_create_hashed_expandable)
15482 (dict_create_linear, dict_create_linear_expandable)
15483 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15484 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15485 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15486 taking multidictionary argument.
15487 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15488 * block.h (struct block) <dict>: Change to multidictionary
15489 and rename `multidict'.
15490 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15491 symmisc.c: Update all dictionary references to multidictionary.
15493 2019-01-10 Keith Seitz <keiths@redhat.com>
15497 * dictionary.c: Include unordered_map.
15498 (pending_to_vector): New function.
15499 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15500 Rewrite the non-"_1" functions to take vector instead
15502 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15503 "new" _1 versions of the same name.
15504 (multidictionary): Define.
15505 (std::hash<enum language): New definition.
15506 (collate_pending_symbols_by_language, mdict_create_hashed)
15507 (mdict_create_hashed_expandable, mdict_create_linear)
15508 (mdict_create_linear_expandable, mdict_free)
15509 (find_language_dictionary, create_new_language_dictionary)
15510 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15511 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15512 (mdict_size, mdict_empty): New functions.
15513 * dictionary.h (mdict_iterator): Define.
15515 2019-01-10 Pedro Alves <palves@redhat.com>
15517 * breakpoint.c (read_uploaded_action)
15518 (create_tracepoint_from_upload): Adjust to use
15519 gdb::unique_xmalloc_ptr.
15520 * ctf.c (ctf_write_uploaded_tp):
15521 (SET_ARRAY_FIELD): Use emplace_back.
15522 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15523 * tracefile-tfile.c (tfile_write_uploaded_tp):
15524 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15525 gdb::unique_xmalloc_ptr.
15526 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15527 at_string, cond_string, cmd_strings>: Replace char pointers
15528 with gdb::unique_xmalloc_ptr.
15530 2019-01-10 Pedro Alves <palves@redhat.com>
15532 * solib-target.c (library_list_start_library): Don't xstrdup name.
15534 2019-01-10 Pedro Alves <palves@redhat.com>
15536 * mdebugread.c (parse_partial_symbols): Use
15537 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15539 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15541 * linux-fork.c (scoped_switch_fork_info)
15542 <~scoped_switch_fork_info>: Fix incorrect variable name.
15544 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15546 * linux-fork.c (scoped_switch_fork_info)
15547 <scoped_switch_fork_info>: Make explicit.
15548 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15550 2019-01-10 Tom Tromey <tom@tromey.com>
15552 * objfiles.h (objfile::reset_psymtabs): Update.
15553 * objfiles.c (objfile::objfile): Update.
15554 * psymtab.h (psymtab_storage::obstack): Update.
15555 (psymtab_storage::m_obstack): Use gdb::optional.
15556 (class psymtab_storage): Update comment. Remove objfile
15558 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15560 2019-01-10 Tom Tromey <tom@tromey.com>
15562 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15563 <free_psymtabs>: Now private.
15564 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15565 (allocate_psymtab): Use new method.
15567 2019-01-10 Tom Tromey <tom@tromey.com>
15569 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15570 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15571 * mdebugread.c (parse_partial_symbols): Use
15572 allocate_dependencies.
15573 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15574 allocate_dependencies.
15575 (process_psymtab_comp_unit_reader)
15576 (build_type_psymtab_dependencies): Likewise.
15577 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15579 2019-01-10 Tom Tromey <tom@tromey.com>
15581 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15582 PSYMBOL_SET_LANGUAGE.
15583 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15585 2019-01-10 Tom Tromey <tom@tromey.com>
15587 * psymtab.h (psymtab_storage::obstack): New method.
15588 <m_obstack>: Rename from obstack; now private.
15589 * psymtab.c (psymtab_storage): Update.
15590 * dwarf2read.c (create_addrmap_from_index)
15591 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15594 2019-01-10 Tom Tromey <tom@tromey.com>
15596 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15597 * objfiles.h (objfile::reset_psymtabs): New method.
15599 2019-01-10 Tom Tromey <tom@tromey.com>
15601 * symmisc.c (print_symbol_bcache_statistics): Update.
15602 (print_objfile_statistics): Update.
15603 * symfile.c (reread_symbols): Update.
15604 * psymtab.h (class psymtab_storage): New.
15605 * psymtab.c (psymtab_storage): New constructor.
15606 (~psymtab_storage): New destructor.
15607 (require_partial_symbols): Update.
15608 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15609 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15610 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15611 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15612 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15613 (start_psymtab_common, end_psymtab_common)
15614 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15615 (allocate_psymtab): Update.
15616 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15618 (dump_psymtab_addrmap, maintenance_print_psymbols)
15619 (maintenance_check_psymtabs): Update.
15620 (class objfile_psymtabs): Move to objfiles.h.
15621 * psympriv.h (discard_psymtab): Now inline.
15622 (psymtab_discarder::psymtab_discarder): Update.
15623 (psymtab_discarder::~psymtab_discarder): Update.
15624 (ALL_OBJFILE_PSYMTABS): Rewrite.
15625 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15626 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15628 <partial_symtabs>: New field.
15629 (class objfile_psymtabs): Move from psymtab.h. Update.
15630 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15632 (objfile::~objfile): Don't destroy psymbol_cache.
15633 * mdebugread.c (parse_partial_symbols): Update.
15634 * dwarf2read.c (create_addrmap_from_index)
15635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15636 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15637 (add_partial_subprogram, dwarf2_ranges_read): Update.
15638 * dwarf-index-write.c (write_address_map)
15639 (write_one_signatured_type, recursively_write_psymbols)
15640 (class debug_names, class debug_names, write_psymtabs_to_index):
15643 2019-01-10 Tom Tromey <tom@tromey.com>
15645 * symtab.h (SYMBOL_SET_NAMES): Update.
15646 (symbol_set_names): Update.
15647 (MSYMBOL_SET_NAMES): Update.
15648 * symtab.c (symbol_set_names): Change argument to be an
15649 objfile_per_bfd_storage.
15650 * psymtab.c (add_psymbol_to_bcache): Update.
15651 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15653 2019-01-10 Tom Tromey <tom@tromey.com>
15655 * symtab.c (create_demangled_names_hash): Change argument to be an
15656 objfile_per_bfd_storage.
15657 (symbol_set_names): Update.
15659 2019-01-10 Tom Tromey <tom@tromey.com>
15661 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15663 * psymtab.c (init_psymbol_list): Do nothing if already called.
15664 * psympriv.h (init_psymbol_list): Add comment.
15665 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15667 * dbxread.c (dbx_symfile_read): Unconditionally call
15670 2019-01-10 Tom Tromey <tom@tromey.com>
15672 * xcoffread.c (scan_xcoff_symtab): Update.
15673 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15675 * mdebugread.c (parse_partial_symbols)
15676 (handle_psymbol_enumerators): Update.
15677 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15678 * dbxread.c (read_dbx_symtab): Update.
15679 * psympriv.h (psymbol_placement): New enum.
15680 (add_psymbol_to_list): Update.
15682 2019-01-10 Tom Tromey <tom@tromey.com>
15684 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15685 static_psymbols parameters.
15686 (scan_xcoff_symtab): Update.
15687 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15688 static_psymbols parameters.
15689 * psympriv.h (start_psymtab_common): Update.
15690 * mdebugread.c (parse_partial_symbols): Update.
15691 * dwarf2read.c (create_partial_symtab): Update.
15692 * dbxread.c (read_dbx_symtab): Update.
15693 (start_psymtab): Remove global_psymbols and static_psymbols
15696 2019-01-10 Tom Tromey <tom@tromey.com>
15698 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15699 * psymtab.c (allocate_psymtab): Add comment.
15700 * psympriv.h (allocate_psymtab): Add comment.
15701 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15703 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15705 2019-01-10 Tom Tromey <tom@tromey.com>
15707 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15709 * mipsread.c: Include mdebugread.h.
15710 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15712 * elfread.c: Include mdebugread.h.
15714 2019-01-09 Tom Tromey <tom@tromey.com>
15716 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15717 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15718 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15719 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15720 (psym_lookup_symbol, psym_find_last_source_symtab)
15721 (psym_forget_cached_source_info, psym_print_stats)
15722 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15723 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15724 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15725 (psym_find_compunit_symtab_by_address)
15726 (maintenance_print_psymbols, maintenance_info_psymtabs)
15727 (maintenance_check_psymtabs): Use ranged for.
15728 * psymtab.h (class objfile_psymtabs): New.
15729 (require_partial_symbols): Return objfile_psymtabs.
15730 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15732 2019-01-09 Tom Tromey <tom@tromey.com>
15734 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15735 (find_pc_mapped_section, list_overlays_command)
15736 (map_overlay_command, unmap_overlay_command)
15737 (simple_overlay_update): Use all_objfiles.
15738 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15739 * printcmd.c (info_symbol_command): Use all_objfiles.
15740 * objfiles.h (ALL_OBJSECTIONS): Remove.
15741 * maint.c (maintenance_translate_address): Use all_objfiles.
15742 * gcore.c (gcore_create_callback): Use all_objfiles.
15743 (objfile_find_memory_regions): Likewise.
15745 2019-01-09 Tom Tromey <tom@tromey.com>
15747 * symtab.c (find_line_symtab, info_sources_command)
15748 (make_source_files_completion_list): Use objfile_compunits.
15749 * source.c (select_source_symtab): Use objfile_compunits.
15750 * objfiles.h (struct objfile): Update comment.
15751 (ALL_OBJFILES): Remove.
15752 (ALL_FILETABS): Remove.
15753 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15756 2019-01-09 Tom Tromey <tom@tromey.com>
15758 * symmisc.c (print_objfile_statistics, dump_objfile)
15759 (maintenance_print_symbols): Use compunit_filetabs.
15760 * source.c (forget_cached_source_info_for_objfile): Use
15762 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15763 (ALL_FILETABS): Use compunit_filetabs.
15764 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15765 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15767 2019-01-09 Tom Tromey <tom@tromey.com>
15769 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15770 (compunit_filetabs): New.
15771 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15773 (info_sources_command, make_source_files_completion_list): Remove
15775 * symmisc.c (print_objfile_statistics, dump_objfile)
15776 (maintenance_print_symbols): Remove declaration.
15777 (maintenance_info_symtabs): Use compunit_filetabs.
15778 (maintenance_info_line_tables): Likewise.
15779 * source.c (select_source_symtab): Change local variable name.
15780 (forget_cached_source_info_for_objfile): Remove declaration.
15781 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15782 * objfiles.c (objfile_relocate1): Remove declaration.
15783 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15785 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15786 * coffread.c (coff_symtab_read): Remove declaration.
15787 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15790 2019-01-09 Tom Tromey <tom@tromey.com>
15792 * symtab.c (lookup_objfile_from_block)
15793 (find_pc_sect_compunit_symtab, search_symbols)
15794 (default_collect_symbol_completion_matches_break_on): Use
15796 * objfiles.h (ALL_COMPUNITS): Remove.
15797 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15798 * cp-support.c (add_symbol_overload_list_qualified): Use
15800 * ada-lang.c (ada_collect_symbol_completion_matches)
15801 (ada_add_global_exceptions): Use objfile_compunits.
15803 2019-01-09 Tom Tromey <tom@tromey.com>
15805 * source.c (select_source_symtab)
15806 (forget_cached_source_info_for_objfile): Remove declaration.
15807 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15809 * maint.c (count_symtabs_and_blocks): Remove declaration.
15810 * cp-support.c (add_symbol_overload_list_qualified): Remove
15812 * coffread.c (coff_symtab_read): Remove declaration.
15813 * symtab.c (lookup_symbol_in_objfile_symtabs)
15814 (basic_lookup_transparent_type_1): Use objfile_compunits.
15815 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15816 (info_sources_command, search_symbols)
15817 (default_collect_symbol_completion_matches_break_on)
15818 (make_source_files_completion_list): Remove declaration.
15819 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15820 (ada_collect_symbol_completion_matches)
15821 (ada_add_global_exceptions): Remove declaration.
15822 * linespec.c (iterate_over_all_matching_symtabs): Use
15824 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15825 (class objfile_compunits): New.
15826 (ALL_COMPUNITS): Use objfile_compunits.
15827 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15828 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15830 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15832 2019-01-09 Tom Tromey <tom@tromey.com>
15834 * symtab.c (search_symbols)
15835 (default_collect_symbol_completion_matches_break_on): Use
15837 * ada-lang.c (ada_lookup_simple_minsym)
15838 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15839 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15840 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15842 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15843 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15844 * objc-lang.c (find_methods): Use objfile_msymbols.
15845 (info_selectors_command, info_classes_command): Likewise.
15846 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15847 * objfiles.h (class objfile_msymbols): New.
15848 (ALL_OBJFILE_MSYMBOLS): Remove.
15849 (ALL_MSYMBOLS): Remove.
15851 2019-01-09 Tom Tromey <tom@tromey.com>
15853 * common/next-iterator.h (next_adapter): Add Iterator template
15855 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15856 (class all_objfiles_safe): New.
15857 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15858 * objfiles.c (put_objfile_before): Update comment.
15859 (add_separate_debug_objfile): Likewise.
15860 (free_all_objfiles): Use all_objfiles_safe.
15861 (objfile_purge_solibs): Likewise.
15863 2019-01-09 Tom Tromey <tom@tromey.com>
15865 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15866 (expand_symtab_containing_pc, lookup_static_symbol)
15867 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15868 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15870 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15871 * breakpoint.c (create_overlay_event_breakpoint)
15872 (create_longjmp_master_breakpoint)
15873 (create_std_terminate_master_breakpoint)
15874 (create_exception_master_breakpoint): Use all_objfiles.
15875 * linux-thread-db.c (try_thread_db_load_from_pdir)
15876 (has_libpthread): Use all_objfiles.
15877 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15878 * linespec.c (iterate_over_all_matching_symtabs)
15879 (search_minsyms_for_name): Use all_objfiles.
15880 * maint.c (maintenance_info_sections): Use all_objfiles.
15881 * main.c (captured_main_1): Use all_objfiles.
15882 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15883 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15884 * guile/scm-pretty-print.c
15885 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15886 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15887 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15888 (maintenance_print_msymbols): Use all_objfiles.
15889 * source.c (select_source_symtab): Use all_objfiles.
15890 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15891 * symfile.c (remove_symbol_file_command)
15892 (expand_symtabs_matching, map_symbol_filenames): Use
15894 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15896 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15897 * objc-lang.c (find_methods): Use all_objfiles.
15898 * objfiles.c (have_partial_symbols, have_full_symbols)
15899 (have_minimal_symbols, qsort_cmp)
15900 (default_iterate_over_objfiles_in_search_order): Use
15902 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15903 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15904 (maintenance_check_psymtabs): Use all_objfiles.
15905 (ALL_PSYMTABS): Remove.
15906 * compile/compile-object-run.c (do_module_cleanup): Use
15908 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15909 * cp-support.c (add_symbol_overload_list_qualified): Use
15911 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15913 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15914 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15916 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15917 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15918 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15920 * solib.c (solib_read_symbols): Use all_objfiles
15922 2019-01-09 Tom Tromey <tom@tromey.com>
15924 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15925 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15927 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15928 * symmisc.c (print_symbol_bcache_statistics)
15929 (print_objfile_statistics, maintenance_print_objfiles)
15930 (maintenance_info_symtabs, maintenance_check_symtabs)
15931 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15933 * source.c (forget_cached_source_info): Use all_objfiles.
15934 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15935 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15936 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15937 * objfiles.c (update_section_map): Use all_objfiles.
15938 (shared_objfile_contains_address_p): Likewise.
15939 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15940 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15942 2019-01-09 Tom Tromey <tom@tromey.com>
15944 * common/next-iterator.h: New file.
15945 * objfiles.h (class all_objfiles): New.
15946 (struct objfile_iterator): New.
15948 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15950 * NEWS: Move the description of the changed "frame", "select-frame",
15951 and "info frame" commands to the Changed commands section.
15953 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15955 * gdbtypes.c (check_stub_method_group): Remove handling of old
15957 * linespec.c (find_methods): Likewise.
15958 * stabsread.c (read_member_functions): Likewise.
15959 * valops.c (search_struct_method): Likewise.
15960 (value_struct_elt_for_reference): Likewise.
15961 * NEWS: Mention this change.
15963 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15965 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15966 print_source_lines.
15967 * source.c (print_source_lines_base): Update line number check.
15968 (print_source_lines): New function.
15969 (source_lines_range::source_lines_range): New function.
15970 * source.h (class source_lines_range): New class.
15971 (print_source_lines): New declaration.
15973 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15975 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15977 2019-01-08 Tom Tromey <tom@tromey.com>
15978 Simon Marchi <simon.marchi@ericsson.com>
15981 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15982 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15983 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15984 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15985 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15986 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15988 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15990 * source.c (select_source_symtab): Move header comment to
15991 declaration in source.h.
15992 (forget_cached_source_info_for_objfile): Likewise.
15993 (forget_cached_source_info): Likewise.
15994 (identify_source_line): Likewise.
15995 * source.h (identify_source_line): Move declaration from symtab.h
15996 and add comment from source.c
15997 (print_source_lines): Likewise.
15998 (forget_cached_source_info_for_objfile): Likewise.
15999 (forget_cached_source_info): Likewise.
16000 (select_source_symtab): Likewise.
16001 (enum print_source_lines_flag): Move definition from symtab.h.
16002 * symtab.h (identify_source_line): Move declaration to source.h.
16003 (print_source_lines): Likewise.
16004 (forget_cached_source_info_for_objfile): Likewise.
16005 (forget_cached_source_info): Likewise.
16006 (select_source_symtab): Likewise.
16007 (enum print_source_lines_flag): Move definition to source.h.
16008 * tui/tui-hooks.c: Add 'source.h' include.
16010 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16012 * source.c (print_source_lines_base): Handle requests to print
16013 reverse line number sequences, and guard against empty lines
16016 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16018 * source.c (print_source_lines_base): Fix skip of '\r' if next
16021 2019-01-06 Tom Tromey <tom@tromey.com>
16023 * c-exp.y (struct c_parse_state) <macro_original_text,
16024 expansion_obstack>: New member.
16025 (macro_original_text, expansion_obstack): Remove globals.
16026 (scan_macro_expansion, scanning_macro_expansion)
16027 (finished_macro_expansion): Update.
16028 (scan_macro_cleanup): Remove.
16029 (yylex, c_parse): Update.
16031 2019-01-06 Tom Tromey <tom@tromey.com>
16033 * c-exp.y (struct c_parse_state) <strings>: New member.
16034 (operator_stoken): Update.
16036 2019-01-06 Tom Tromey <tom@tromey.com>
16038 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16039 (union type_stack_elt) <typelist_val>: Now a pointer to
16041 (type_stack_cleanup): Don't declare.
16042 (push_typelist): Update.
16043 * parse.c (pop_typelist): Return a std::vector.
16044 (push_typelist): Take a std::vector.
16045 (follow_types): Update. Do not free args.
16046 (type_stack_cleanup): Remove.
16047 * c-exp.y (struct c_parse_state): New.
16048 (cpstate): New global.
16049 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16050 (nonempty_typelist): Update.
16051 (func_mod): Create a new vector.
16052 (c_parse): Create a c_parse_state.
16053 (check_parameter_typelist): Do not delete params.
16054 (function_method): Update. Do not delete type_list.
16056 2019-01-06 Tom Tromey <tom@tromey.com>
16059 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16061 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16062 (print_return_value): Likewise.
16064 2019-01-05 Tom Tromey <tom@tromey.com>
16066 * contrib/cleanup_check.py: Remove.
16067 * contrib/gcc-with-excheck: Remove.
16068 * contrib/exsummary.py: Remove.
16069 * contrib/excheck.py: Remove.
16071 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16073 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16074 NULL. Initialize tpprev to NULL instead of assigning it
16075 to NULL on the next statement.
16076 * windows-nat.c (windows_delete_thread): Remove check for
16077 main_thread_id before printing thread exit notifications.
16078 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16079 Remove thread ID check against main_thread_id.
16080 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16081 windows_delete_thread.
16082 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16084 2019-01-04 Tom Tromey <tom@tromey.com>
16086 * compile/compile.c (_initialize_compile): Use upper case for
16087 metasyntactic variables.
16088 * symmisc.c (_initialize_symmisc): Use upper case for
16089 metasyntactic variables.
16090 * psymtab.c (_initialize_psymtab): Use upper case for
16091 metasyntactic variables.
16092 * demangle.c (demangle_command): Use upper case for metasyntactic
16094 (_initialize_demangler): Likewise.
16095 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16098 2019-01-03 Tom Tromey <tom@tromey.com>
16100 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16102 2019-01-03 Tom Tromey <tom@tromey.com>
16104 * python/py-symtab.c (salpy_str): Update.
16105 (struct salpy_sal_object) <symtab>: Now a PyObject.
16106 (salpy_dealloc): Update.
16107 (del_objfile_sal): Use gdbpy_ref.
16109 2019-01-03 Tom Tromey <tom@tromey.com>
16111 * python/py-type.c (convert_field): Use new_reference. Return
16113 (make_fielditem): Return gdbpy_ref.
16114 (typy_fields): Update.
16115 (typy_getitem): Update.
16116 (field_name): Return gdbpy_ref. Use new_reference.
16117 (typy_iterator_iternext): Update.
16119 2019-01-03 Tom Tromey <tom@tromey.com>
16121 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16123 2019-01-03 Tom Tromey <tom@tromey.com>
16125 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16126 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16127 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16128 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16129 (pspy_set_type_printers): Likewise.
16130 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16131 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16132 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16133 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16134 (objfpy_set_type_printers): Likewise.
16136 2019-01-03 Tom Tromey <tom@tromey.com>
16138 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16139 (gdbpy_print_stack): Use gdbpy_err_fetch.
16140 * python/python-internal.h (class gdbpy_err_fetch): New class.
16141 (class gdbpy_enter) <m_error_type, m_error_value,
16142 m_error_traceback>: Remove.
16143 <m_error>: New member.
16144 (gdbpy_exception_to_string): Don't declare.
16145 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16146 * python/py-value.c (convert_value_from_python): Use
16148 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16149 gdbpy_exception_to_string.
16150 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16151 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16154 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16156 * linux-nat.c (delete_lwp_cleanup): Delete.
16157 (struct lwp_deleter): New struct.
16158 (lwp_info_up): New typedef.
16159 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16162 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16164 * linux-fork.c (class scoped_switch_fork_info): New class.
16165 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16167 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16169 * valops.c (find_overload_match): Remove use of null_cleanup, and
16170 calls to do_cleanups.
16172 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16174 * compile/compile-cplus-types.c
16175 (compile_cplus_instance::decl_name): Handle changes to
16177 * cp-support.c (cp_func_name): Update header comment, update
16179 * cp-support.h (cp_func_name): Update return type in declaration.
16180 * valops.c (find_overload_match): Move temp_func local to top
16181 level of function and change its type. Use temp_func to hold and
16182 delete temporary string obtained from cp_func_name.
16184 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16186 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16187 gdb::char_vector, remove cleanup, and update uses of `msg`.
16189 2019-01-03 Jim Wilson <jimw@sifive.com>
16191 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16193 2019-01-02 Tom Tromey <tom@tromey.com>
16195 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16196 (tdesc_parse_xml): Remove cleanups.
16197 * target-descriptions.h (make_cleanup_free_target_description):
16199 (target_desc_deleter): New struct.
16200 (target_desc_up): New typedef.
16201 * target-descriptions.c (target_desc_deleter::operator()): Rename
16202 from free_target_description.
16203 (make_cleanup_free_target_description): Remove.
16205 2019-01-02 Tom Tromey <tom@tromey.com>
16207 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16208 constructor, destructor.
16209 (linespec_parser): Remove typedef.
16210 (~linespec_parser): Rename from linespec_parser_delete.
16211 (linespec_lex_to_end, linespec_complete_label)
16212 (linespec_complete): Update.
16213 (decode_line_full): Remove cleanups.
16214 (decode_line_1): Update.
16216 2019-01-02 Tom Tromey <tom@tromey.com>
16218 * python/python-internal.h (inferior_to_inferior_object): Change
16220 * python/py-exitedevent.c (create_exited_event_object): Update.
16221 * python/py-inferior.c (inferior_to_inferior_object): Return
16223 (python_new_inferior, python_inferior_deleted)
16224 (thread_to_thread_object, delete_thread_object)
16225 (build_inferior_list, gdbpy_selected_inferior): Update.
16226 * python/py-infthread.c (create_thread_object): Update. Also fail
16227 if inferior_to_inferior_object fails.
16229 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16231 * inferior.h (class inferior) <displaced_step_state>: New field.
16232 * infrun.h (struct displaced_step_state): Move here from
16233 infrun.c. Initialize fields, add constructor.
16234 <inf>: Remove field.
16235 <reset>: New method.
16236 * infrun.c (struct displaced_step_inferior_state): Move to
16238 (displaced_step_inferior_states): Remove.
16239 (get_displaced_stepping_state): Adust.
16240 (displaced_step_in_progress_any_inferior): Adjust.
16241 (displaced_step_in_progress_thread): Adjust.
16242 (displaced_step_in_progress): Adjust.
16243 (add_displaced_stepping_state): Remove.
16244 (get_displaced_step_closure_by_addr): Adjust.
16245 (remove_displaced_stepping_state): Remove.
16246 (infrun_inferior_exit): Call displaced_step_state.reset.
16247 (use_displaced_stepping): Don't check for NULL.
16248 (displaced_step_prepare_throw): Call
16249 get_displaced_stepping_state.
16250 (displaced_step_fixup): Don't check for NULL.
16251 (prepare_for_detach): Don't check for NULL.
16253 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16255 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16256 in case of call that did not complete.
16258 2019-01-02 Andrey Utkin <autkin@undo.io>
16260 * symfile.c (find_separate_debug_file): Fix search of debug files for
16263 2019-01-02 Tom Tromey <tom@tromey.com>
16265 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16267 * python/py-frame.c (frapy_older): Remove cast.
16268 (frapy_newer): Likewise.
16269 * python/py-breakpoint.c (local_setattro): Remove cast.
16270 * python/py-arch.c (archpy_name): Remove local variable.
16271 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16273 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16275 * unittests/basic_string_view/element_access/char/empty.cc:
16276 Fix year range in copyright header.
16278 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16280 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16282 <operator==>: Update with for removed field.
16284 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16285 <isa_features>: ...this.
16286 <abi_features>: New field.
16287 (riscv_isa_flen): Update comment.
16288 (riscv_abi_xlen): New declaration.
16289 (riscv_abi_flen): New declaration.
16290 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16292 (riscv_abi_xlen): New function.
16293 (riscv_isa_flen): Update to get answer from isa_features.
16294 (riscv_abi_flen): New function.
16295 (riscv_has_fp_abi): Update to get answer from abi_features.
16296 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16298 (riscv_call_info) <xlen, flen>: Update comment.
16299 (riscv_call_arg_struct): Remove invalid assertions
16300 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16302 (riscv_gdbarch_init): Gather isa features and abi features
16303 separately, ensure both match on the gdbarch when reusing an old
16304 gdbarch. Relax an error check to allow 32-bit abi float to run on
16305 a target with 64-bit float hardware.
16307 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16309 * source.c (search_command_helper): Stop reverse search
16310 when line 1 has been searched.
16312 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16314 * record-full.c (record_full_base_target::close): Rewrite
16315 record_full_core_buf_list free logic.
16317 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16319 * break-catch-syscall.c (print_one_catch_syscall): xfree
16322 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16324 * top.c (print_gdb_version): Update Copyright year in version
16327 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16329 Update copyright year range in all GDB files.
16331 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16333 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16335 For older changes see ChangeLog-2018.
16341 version-control: never