1 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
3 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
4 add it into the search spec.
5 (parse_max_results_option): New function.
6 (mi_info_functions_or_variables): Parse -max-results flag and pass
8 (mi_cmd_symbol_info_modules): Likewise.
9 (mi_cmd_symbol_info_types): Likewise.
10 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
11 return type to bool, change result container into a set, and don't
12 add new results if we have enough already.
13 (global_symbol_searcher::add_matching_msymbols): Change return
14 type to bool, and don't add new results if we have enough already.
15 (sort_search_symbols_remove_dups): Delete.
16 (global_symbol_searcher::search): Early exit from search loop when
17 we have enough results. Use a std::set to collect the results
18 from calling add_matching_symbols.
19 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
21 (global_symbol_searcher) <m_max_search_results>: New member
23 (global_symbol_searcher) <add_matching_symbols>: Update header
24 comment and change return type to bool.
25 (global_symbol_searcher) <add_matching_msymbols>: Update header
26 comment and change return type to bool.
28 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
30 * symtab.c (symbol_search::compare_search_syms): Update header
32 (global_symbol_searcher::is_suitable_msymbol): New function.
33 (global_symbol_searcher::expand_symtabs): New function.
34 (global_symbol_searcher::add_matching_symbols): New function.
35 (global_symbol_searcher::add_matching_msymbols): New function.
36 (global_symbol_searcher::search): Move most of the content
37 into the new functions above, and call them as needed.
38 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
40 (global_symbol_searcher) <add_matching_symbols>: New member
42 (global_symbol_searcher) <add_matching_msymbols>: New member
44 (global_symbol_searcher) <is_suitable_msymbol>: New member
47 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
49 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
50 -symbol-info-module-variables entries.
51 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
52 (mi_cmd_symbol_info_module_variables): Declare.
54 (module_symbol_search_iterator): New typedef.
55 (output_module_symbols_in_single_module_and_file): New function.
56 (output_module_symbols_in_single_module): New function.
57 (mi_info_module_functions_or_variables): New function.
58 (mi_cmd_symbol_info_module_functions): New function.
59 (mi_cmd_symbol_info_module_variables): New function.
60 * NEWS: Mention new MI command.
62 2019-12-03 Christian Biesinger <cbiesinger@google.com>
64 * bcache.c (hash): Remove.
65 (hash_continue): Remove.
66 * bcache.h (hash): Remove.
67 (hash_continue): Remove.
68 (struct bcache) <ctor>: Update.
69 * psymtab.c (psymbol_hash): Update.
70 * stabsread.c (hashname): Update.
71 * utils.h (fast_hash): Add an argument for a start value,
74 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
75 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
76 (destroy_block_symbol_cache): New function.
77 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
78 (resize_symbol_cache): Likewise.
80 2019-12-02 Tom Tromey <tom@tromey.com>
82 * unittests/tui-selftests.c (run_tests): Make conditional.
83 (_initialize_tui_selftest): Make conditional.
85 2019-12-02 Christian Biesinger <cbiesinger@google.com>
87 * aix-thread.c (debug_aix_thread): Change type to bool.
89 2019-12-02 Luis Machado <luis.machado@linaro.org>
91 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
93 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
95 * dwarf2read.c (read_tag_string_type): Read the fields required to
96 make a dynamic string, and possibly create a dynamic range for the
98 (attr_to_dynamic_prop): Setup is_reference based on the type of
99 attribute being processed.
100 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
101 (resolve_dynamic_array): Rename to...
102 (resolve_dynamic_array_or_string): ...this, update header comment,
103 and accept TYPE_CODE_STRING.
104 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
106 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
108 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
109 of its implementation from...
110 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
113 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
115 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
116 create a range with stride where appropriate.
117 * f-valprint.c: Include 'gdbarch.h'.
118 (f77_print_array_1): Take the stride into account when walking the
119 array. Also convert the stride into addressable units.
120 * gdbtypes.c (create_range_type): Initialise the stride to
122 (create_range_type_with_stride): New function, initialise the
123 range as normal, and then setup the stride.
124 (has_static_range): Include the stride here. Also change the
126 (create_array_type_with_stride): Consider the range stride if the
127 array isn't given its own stride.
128 (resolve_dynamic_range): Resolve the stride if needed.
129 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
130 (struct range_bounds) <flag_is_byte_stride>: New member variable.
131 (TYPE_BIT_STRIDE): Define.
132 (TYPE_ARRAY_BIT_STRIDE): Define.
133 (create_range_type_with_stride): Declare.
134 * valarith.c (value_subscripted_rvalue): Take range stride into
135 account when walking the array.
137 2019-12-01 Tom Tromey <tom@tromey.com>
139 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
142 2019-12-01 Tom Tromey <tom@tromey.com>
144 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
146 * unittests/tui-selftests.c: New file.
147 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
149 2019-12-01 Tom Tromey <tom@tromey.com>
151 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
153 2019-12-01 Tom Tromey <tom@tromey.com>
155 * NEWS: Document new settings.
156 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
157 * tui/tui-win.c (_initialize_tui_win): Add border style
159 * tui/tui-io.h (tui_apply_style): Declare.
160 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
162 (apply_ansi_escape, tui_set_reverse_mode): Update.
163 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
164 Add "skip_intensity" parameter.
165 <changed>: New member.
166 <do_set_value>: Declare.
167 (tui_border_style, tui_active_border_style): Declare.
168 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
170 (cli_style_option): Initialize "changed".
171 (cli_style_option::do_set_value): New function.
172 (cli_style_option::add_setshow_commands): Add "skip_intensity"
174 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
175 (_initialize_cli_style): Update. Create TUI border style
178 2019-12-01 Tom Tromey <tom@tromey.com>
180 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
182 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
184 * tui/tui-win.h (compact_source): Declare.
185 * tui/tui-win.c (compact_source): New global.
186 (tui_set_compact_source, tui_show_compact_source): New functions.
187 (_initialize_tui_win): Add "compact-source" setting.
188 * tui/tui-source.c (tui_source_window::set_contents): Handle
189 compact_source setting.
190 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
191 * NEWS: Document new setting.
193 2019-11-30 Tom Tromey <tom@tromey.com>
195 * dwarf2read.c (dwarf2_add_field): Include field offset when
196 computing variant part length.
198 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
199 * NEWS: Mention define-prefix. Tell that command names can now
200 contain a . character.
202 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
204 * command.h (valid_cmd_char_p): Declare.
205 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
206 the check of valid command char.
207 (find_command_name_length, valid_user_defined_cmd_name_p): Use
209 * cli/cli-script.c (validate_comname): Likewise.
210 * completer.c (gdb_completer_command_word_break_characters):
211 Do not remove . from the word break char, update comments.
212 (complete_line_internal_1): Use valid_cmd_char_p.
213 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
214 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
216 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
218 * cli/cli-script.c (do_define_command): Ensure a redefined
219 prefix command is kept as a prefix command.
220 (define_prefix_command): New function.
221 (show_user_1): Report user defined prefixes.
222 (_initialize_cli_script): Create the new 'define-prefix' command.
223 Add completers for 'define' and 'document'.
224 * top.c (execute_command): If command is a user-defined prefix only
225 command, report the list of commands for this prefix command.
227 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
229 * valops.c (find_oload_champ): Improve debug output.
231 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233 * valops.c (find_oload_champ): Print part of debug messages
234 before the badness vector is std::move'd.
236 2019-11-28 Tom Tromey <tom@tromey.com>
238 * value.c (creal_internal_fn): Fix comment.
240 2019-11-28 Tom Tromey <tom@tromey.com>
242 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
243 flag_bound_evaluated>: Now unsigned.
245 2019-11-28 Tom Tromey <tom@tromey.com>
247 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
250 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
252 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
254 * jit.c (jit_unregister_code): Add debug print to match
257 2019-11-27 Christian Biesinger <cbiesinger@google.com>
259 * NEWS: Mention the new multithreaded symbol loading.
261 2019-11-27 Christian Biesinger <cbiesinger@google.com>
263 * maint.c (n_worker_threads): Default to 0.
264 (worker_threads_disabled): New function.
265 * maint.h (worker_threads_disabled): New function.
266 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
267 here if worker_threads_disabled () is true.
268 (minimal_symbol_reader::install): Skip all threading if
269 worker_threads_disabled () is true.
271 2019-11-27 Christian Biesinger <cbiesinger@google.com>
273 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
274 hash code if possible.
275 (add_minsym_to_demangled_hash_table): Likewise.
276 (minimal_symbol_reader::install): Compute the hash codes for msymbol
277 on the background thread.
278 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
281 2019-11-27 Christian Biesinger <cbiesinger@google.com>
283 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
284 of the mangled name on the background thread.
285 * symtab.c (symbol_set_names): Allow passing in the hash of the
287 * symtab.h (symbol_set_names): Likewise.
289 2019-11-27 Kevin Buettner <kevinb@redhat.com>
291 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
292 physnames are computed for inherited DIEs.
294 2019-11-27 Tom Tromey <tromey@adacore.com>
296 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
298 * cp-support.c: Remove unnecessary backslashes.
300 2019-11-27 Christian Biesinger <cbiesinger@google.com>
302 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
303 with sym->set_linkage_name.
304 * coffread.c (coff_read_enum_type): Likewise.
305 * mdebugread.c (parse_symbol): Likewise.
306 * stabsread.c (patch_block_stabs): Likewise.
307 (define_symbol): Likewise.
308 (read_enum_type): Likewise.
309 (common_block_end): Likewise.
310 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
312 (SYMBOL_SET_LINKAGE_NAME): Remove.
313 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
314 with sym->set_linkage_name.
316 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
318 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
319 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
320 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
321 * NEWS: Mention new MI command.
323 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
325 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
326 '-symbol-info-types', and '-symbol-info-variables'.
327 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
328 (mi_cmd_symbol_info_types): Declare.
329 (mi_cmd_symbol_info_variables): Declare.
330 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
331 (output_debug_symbol): New function.
332 (output_nondebug_symbol): New function.
333 (mi_symbol_info): New function.
334 (mi_info_functions_or_variables): New function.
335 (mi_cmd_symbol_info_functions): New function.
336 (mi_cmd_symbol_info_types): New function.
337 (mi_cmd_symbol_info_variables): New function.
338 * NEWS: Mention new commands.
340 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
342 * symtab.c (symbol_to_info_string): New function, most content
343 moved from print_symbol_info, but updated to return a std::string.
344 (print_symbol_info): Update to use symbol_to_info_string and print
346 * symtab.h (symbol_to_info_string): Declare new function.
348 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
350 * python/python.c (gdbpy_rbreak): Convert to using
351 global_symbol_searcher.
352 * symtab.c (file_matches): Convert return type to bool, change
353 file list to std::vector, update header comment.
354 (search_symbols): Rename to...
355 (global_symbol_searcher::search): ...this and update now its
356 a member function of global_symbol_searcher. Take account of the
357 changes to file_matches.
358 (symtab_symbol_info): Convert to using global_symbol_searcher.
359 (rbreak_command): Likewise.
360 (search_module_symbols): Likewise.
361 * symtab.h (enum symbol_search): Update comment.
362 (search_symbols): Remove declaration.
363 (class global_symbol_searcher): New class.
365 2019-11-26 Tom Tromey <tromey@adacore.com>
367 * cp-support.c (_initialize_cp_support): Conditionally initialize
368 gdb_demangle_attempt_core_dump.
370 2019-11-26 Tom Tromey <tom@tromey.com>
372 * python/py-function.c (fnpy_init): Update.
373 * value.h (add_internal_function): Adjust declaration.
374 * value.c (function_destroyer): Remove.
375 (do_add_internal_function): Don't set destroyer or copy name.
376 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
378 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
379 (cmdpy_init): Set name_allocated.
380 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
382 (~cmd_list_element): Free "name" if needed.
384 2019-11-26 Tom Tromey <tom@tromey.com>
386 * value.h (add_internal_function): Add new overload. Move
387 documentation from value.h.
388 * value.c (do_add_internal_function): New function.
389 (add_internal_function): Use it. Add new overload.
390 (function_destroyer): Don't free doc.
391 * python/py-function.c (fnpy_init): Update.
393 2019-11-26 Tom Tromey <tom@tromey.com>
395 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
396 (cmdpy_init): Set "doc_allocated".
398 2019-11-26 Tom Tromey <tom@tromey.com>
400 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
401 name of worker thread.
402 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
404 * configure, config.in: Rebuild.
406 2019-11-26 Tom Tromey <tom@tromey.com>
408 * python/python.c (class gdbpy_gil): New.
409 (struct gdbpy_event): Add constructor, destructor, operator().
410 (gdbpy_post_event): Use run_on_main_thread.
411 (gdbpy_initialize_events): Remove.
412 (do_start_initialization): Update.
414 2019-11-26 Tom Tromey <tom@tromey.com>
417 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
418 commands. Call update_thread_pool_size.
419 (update_thread_pool_size, maintenance_set_worker_threads): New
421 (n_worker_threads): New global.
423 2019-11-26 Christian Biesinger <cbiesinger@google.com>
424 Tom Tromey <tom@tromey.com>
426 * minsyms.c (minimal_symbol_reader::install): Use
428 * gdbsupport/parallel-for.h: New file.
429 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
431 2019-11-26 Christian Biesinger <cbiesinger@google.com>
432 Tom Tromey <tom@tromey.com>
434 * gdbsupport/thread-pool.h: New file.
435 * gdbsupport/thread-pool.c: New file.
436 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
437 (HFILES_NO_SRCDIR): Add thread-pool.h.
439 2019-11-26 Tom Tromey <tom@tromey.com>
441 * event-top.h (thread_local_segv_handler): Declare.
442 * event-top.c (thread_local_segv_handler): New global.
443 (install_handle_sigsegv, handle_sigsegv): New functions.
444 (async_init_signals): Install SIGSEGV handler.
445 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
447 (report_failed_demangle): New function.
448 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
449 handler-setting code, instead use segv_handler. Run warning code
452 2019-11-26 Tom Tromey <tom@tromey.com>
454 * run-on-main-thread.c: New file.
455 * run-on-main-thread.h: New file.
456 * unittests/main-thread-selftests.c: New file.
457 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
458 main-thread-selftests.c.
459 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
460 (COMMON_SFILES): Add run-on-main-thread.c.
462 2019-11-26 Tom Tromey <tom@tromey.com>
464 * main.c (setup_alternate_signal_stack): Remove.
465 (captured_main_1): Use gdb::alternate_signal_stack.
466 * gdbsupport/alt-stack.h: New file.
468 2019-11-26 Tom Tromey <tom@tromey.com>
470 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
472 (save_original_signals_state, restore_original_signals_state): Use
474 * linux-nat.c (block_child_signals, restore_child_signals_mask)
475 (_initialize_linux_nat): Use gdb_sigmask.
476 * guile/guile.c (_initialize_guile): Use block_signals.
477 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
478 * gdbsupport/gdb-sigmask.h: New file.
479 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
480 * cp-support.c (gdb_demangle): Use gdb_sigmask.
481 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
483 * configure, config.in: Rebuild.
484 * gdbsupport/block-signals.h: New file.
486 2019-11-26 Tom Tromey <tom@tromey.com>
488 * acinclude.m4: Include ax_pthread.m4.
489 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
490 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
491 (CLIBS): Use PTHREAD_LIBS.
492 (aclocal_m4_deps): Add ax_pthread.m4.
493 * config.in, configure: Rebuild.
494 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
496 2019-11-26 Tom Tromey <tom@tromey.com>
498 * symtab.h (struct minimal_symbol) <name_set>: New member.
499 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
500 Don't call symbol_set_names.
501 (minimal_symbol_reader::install): Call symbol_set_names.
503 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
505 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
506 restore_active_ext_lang, as GIL is needed for (indirectly)
507 called PyOS_InterruptOccurred.
509 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
511 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
514 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
516 * remote-sim.c (simulator_command): Make static, remove
519 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
521 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
523 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
524 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
526 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
528 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
530 * unittests/basic_string_view/element_access/char/1.cc (test01):
533 * unittests/basic_string_view/element_access/char/empty.cc (main):
535 * unittests/basic_string_view/element_access/char/front_back.cc
538 * unittests/basic_string_view/inserters/char/2.cc (test05):
541 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
544 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
547 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
549 * unittests/basic_string_view/operations/compare/char/1.cc
552 * unittests/basic_string_view/operations/compare/char/13650.cc
554 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
557 * unittests/basic_string_view/operations/data/char/1.cc (test01):
560 * unittests/basic_string_view/operations/find/char/1.cc (test01):
563 * unittests/basic_string_view/operations/find/char/2.cc (test02):
566 * unittests/basic_string_view/operations/find/char/3.cc (test03):
569 * unittests/basic_string_view/operations/find/char/4.cc (main):
571 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
574 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
577 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
580 * unittests/basic_string_view/operations/substr/char/1.cc
583 * unittests/basic_string_view/operators/char/2.cc (main):
585 * unittests/optional/assignment/1.cc (test): Likewise.
586 * unittests/optional/assignment/2.cc (test): Likewise.
587 * unittests/optional/assignment/3.cc (test): Likewise.
588 * unittests/optional/assignment/4.cc (test): Likewise.
589 * unittests/optional/assignment/5.cc (test): Likewise.
590 * unittests/optional/assignment/6.cc (test): Likewise.
591 * unittests/optional/assignment/7.cc (test): Likewise.
592 * unittests/optional/cons/copy.cc (test): Likewise.
593 * unittests/optional/cons/default.cc (test): Likewise.
594 * unittests/optional/cons/move.cc (test): Likewise.
595 * unittests/optional/cons/value.cc (test): Likewise.
596 * unittests/optional/in_place.cc (test): Likewise.
597 * unittests/optional/observers/1.cc (test): Likewise.
598 * unittests/optional/observers/2.cc (test): Likewise.
600 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
602 * tui-win.h (tui_set_var_cmd): Remove.
603 * tui-win.c (tui_set_var_cmd): Make static.
605 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
607 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
608 rbreak_command_wrapper): Remove.
609 * symtab.c (rbreak_command_wrapper): Remove.
611 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
613 * inferior.h (info_terminal_command): Remove declaration.
614 * inflow.c (info_terminal_command): Make static.
616 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
618 * inferior.c (exit_inferior_silent): Remove.
620 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
622 * dictionary.c (dict_empty, mdict_empty): Remove.
623 * dictionary.c (mdict_empty): Remove.
625 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
627 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
628 (arc_insn_get_memory_offset): Likewise.
629 (arc_insn_dump): Likewise.
630 * cp-support.c (test_cp_symbol_name_matches): Likewise.
631 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
632 * dictionary.c (dict_iterator_next): Likewise.
633 (dict_iter_match_first): Likewise.
634 (dict_iter_match_next): Likewise.
635 * f-lang.c (evaluate_subexp_f): Likewise.
636 * hppa-tdep.c (hppa_read_pc): Likewise.
637 * i386-tdep.c (i386_floatformat_for_type): Likewise.
638 * parse.c (write_exp_elt_msym): Likewise.
639 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
640 * remote.c (remote_packet_size): Likewise.
641 (remote_notif_stop_parse): Likewise.
642 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
643 * s12z-tdep.c (s12z_disassemble_info): Likewise.
644 * source.c (prepare_path_for_appending): Likewise.
645 * sparc64-linux-tdep.c
646 (sparc64_linux_handle_segmentation_fault); Likewise.
647 * stack.c (frame_selection_by_function_completer): Likewise.
649 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
651 * completer.c (set_gdb_completion_word_break_characters):
654 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
656 * dwarf-index-write.c: Include dwarf-index-write.h.
657 * mi/mi-interp.c: Include mi/mi-interp.h.
659 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
661 * aarch32-tdep.c: Include aarch32-tdep.h.
662 * aarch32-tdep.h: Forward-declare struct target_desc.
664 2019-11-26 Christian Biesinger <cbiesinger@google.com>
666 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
668 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
669 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
671 2019-11-25 Tom de Vries <tdevries@suse.de>
673 * contrib/words.sh: Add -c option.
675 2019-11-25 Christian Biesinger <cbiesinger@google.com>
677 * solib.c (solib_find_1): Change int to bool.
678 (exec_file_find): Change int to bool.
679 (solib_find): Change int to bool.
680 (solib_read_symbols): Change int to bool.
681 (solib_used): Change int to bool.
682 (solib_add): Change int to bool.
683 (info_sharedlibrary_command): Change int to bool.
684 (solib_contains_address_p): Change int to bool.
685 (solib_keep_data_in_core): Change int to bool.
686 (in_solib_dynsym_resolve_code): Change int to bool.
687 (reload_shared_libraries_1): Change int to bool.
688 (gdb_sysroot_changed): Change int to bool.
689 * solib.h (solib_read_symbols): Change int to bool.
690 (solib_contains_address_p): Change int to bool.
691 (solib_keep_data_in_core): Change int to bool.
692 (in_solib_dynsym_resolve_code): Change int to bool.
693 (libpthread_name_p): Change int to bool.
695 2019-11-25 Luis Machado <luis.machado@linaro.org>
697 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
698 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
699 (remote_packet_max_chars): New static global.
700 (show_remote_packet_max_chars): New function.
701 (remote_target::putpkt_binary): Adjust to use new
702 remote_packet_max_chars option.
703 (remote_target::getpkt_or_notif_sane_1): Likewise.
704 (_initialize_remote): Register new remote-packet-max-chars option.
706 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
708 * m68k-linux-nat.c: Include gdbarch.h.
710 2019-11-24 Tom Tromey <tom@tromey.com>
712 * symfile.c (read_symbols): Update.
713 * psymtab.c (require_partial_symbols): Change type of "verbose" to
715 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
716 (psym_lookup_symbol, psym_find_last_source_symtab)
717 (psym_forget_cached_source_info, psym_print_stats)
718 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
719 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
720 (psym_map_matching_symbols, psym_expand_symtabs_matching)
721 (psym_find_compunit_symtab_by_address)
722 (maintenance_print_psymbols, maintenance_info_psymtabs)
723 (maintenance_check_psymtabs): Update.
724 * psymtab.h (require_partial_symbols): Change type of "verbose" to
727 2019-11-22 Tom Tromey <tom@tromey.com>
729 * observable.h: Update comments.
731 2019-11-22 Tom Tromey <tromey@adacore.com>
733 * ada-tasks.c (ada_task_is_alive): Make parameter const.
734 (print_ada_task_info): Don't try to fetch thread id if task is not
737 2019-11-22 Christian Biesinger <cbiesinger@google.com>
740 * ada-lang.c (sort_choices): Update.
741 (ada_print_symbol_signature): Update.
742 (resolve_subexp): Update.
743 (ada_parse_renaming): Update.
744 (ada_read_renaming_var_value): Update.
745 (lesseq_defined_than): Update.
746 (remove_extra_symbols): Update.
747 (remove_irrelevant_renamings): Update.
748 (ada_add_block_symbols): Update.
749 (ada_collect_symbol_completion_matches): Update.
750 (ada_is_renaming_symbol): Update.
751 (aggregate_assign_from_choices): Update.
752 (ada_evaluate_subexp): Update.
753 (ada_has_this_exception_support): Update.
754 (ada_is_non_standard_exception_sym): Update.
755 (ada_add_exceptions_from_frame): Update.
756 (ada_add_global_exceptions): Update.
757 (ada_print_subexp): Update.
758 * ax-gdb.c (gen_var_ref): Update.
759 (gen_maybe_namespace_elt): Update.
760 (gen_expr_for_cast): Update.
763 * blockframe.c (find_pc_partial_function): Update.
764 * breakpoint.c (print_breakpoint_location): Update.
765 (update_static_tracepoint): Update.
766 * btrace.c (ftrace_print_function_name): Update.
767 (ftrace_function_switched): Update.
768 * buildsym.c (find_symbol_in_list): Update.
770 * c-typeprint.c (c_print_typedef): Update.
771 (c_type_print_template_args): Update.
772 * cli/cli-cmds.c (edit_command): Update.
773 (list_command): Update.
774 (print_sal_location): Update.
775 * coffread.c (patch_opaque_types): Update.
776 (process_coff_symbol): Update.
777 (coff_read_enum_type): Update.
778 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
779 (convert_one_symbol): Update.
780 (hash_symname): Update.
781 (eq_symname): Update.
782 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
783 * compile/compile-cplus-types.c (debug_print_scope): Update.
784 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
785 * compile/compile-object-load.c (get_out_value_type): Update.
786 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
787 (search_symbol_list): Update.
788 (cp_lookup_symbol_imports_or_template): Update.
789 * cp-support.c (overload_list_add_symbol): Update.
790 * ctfread.c (psymtab_to_symtab): Update.
791 * dbxread.c (cp_set_block_scope): Update.
792 * dictionary.c (iter_match_first_hashed): Update.
793 (iter_match_next_hashed): Update.
794 (insert_symbol_hashed): Update.
795 (iter_match_next_linear): Update.
796 * dictionary.h: Update.
797 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
798 (locexpr_describe_location_piece): Update.
799 (locexpr_describe_location_1): Update.
800 (locexpr_generate_c_location): Update.
801 (loclist_describe_location): Update.
802 (loclist_generate_c_location): Update.
803 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
804 (read_func_scope): Update.
805 (process_enumeration_scope): Update.
806 (new_symbol): Update.
807 (dwarf2_const_value): Update.
808 (dwarf2_symbol_mark_computed): Update.
809 * eval.c (evaluate_funcall): Update.
810 (evaluate_subexp_standard): Update.
811 * expprint.c (print_subexp_standard): Update.
812 (dump_subexp_body_standard): Update.
813 * f-valprint.c (info_common_command_for_block): Update.
814 * findvar.c (get_hosting_frame): Update.
815 (default_read_var_value): Update.
816 * go-lang.c (go_symbol_package_name): Update.
817 * guile/scm-block.c (bkscm_print_block_smob): Update.
818 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
819 (gdbscm_symbol_name): Update.
820 (gdbscm_symbol_linkage_name): Update.
821 (gdbscm_symbol_print_name): Update.
822 * infcall.c (get_function_name): Update.
823 * infcmd.c (jump_command): Update.
824 (finish_command): Update.
825 * infrun.c (insert_exception_resume_breakpoint): Update.
826 * linespec.c (canonicalize_linespec): Update.
827 (create_sals_line_offset): Update.
828 (convert_linespec_to_sals): Update.
829 (complete_label): Update.
830 (find_label_symbols_in_block): Update.
831 * m2-typeprint.c (m2_print_typedef): Update.
832 * mdebugread.c (mdebug_reg_to_regnum): Update.
833 (parse_symbol): Update.
834 (mylookup_symbol): Update.
835 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
836 (list_args_or_locals): Update.
837 * objc-lang.c (compare_selectors): Update.
838 (info_selectors_command): Update.
839 (compare_classes): Update.
840 (info_classes_command): Update.
842 * p-typeprint.c (pascal_print_typedef): Update.
843 * printcmd.c (build_address_symbolic): Update.
844 (info_address_command): Update.
845 (print_variable_and_value): Update.
846 * python/py-framefilter.c (extract_sym): Update.
847 (py_print_single_arg): Update.
848 * python/py-symbol.c (sympy_str): Update.
849 (sympy_get_name): Update.
850 (sympy_get_linkage_name): Update.
851 * python/python.c (gdbpy_rbreak): Update.
852 * record-btrace.c (btrace_get_bfun_name): Update.
853 (btrace_call_history): Update.
854 * rust-lang.c (rust_print_typedef): Update.
855 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
856 * stabsread.c (stab_reg_to_regnum): Update.
857 (define_symbol): Update.
858 (read_enum_type): Update.
859 (common_block_end): Update.
860 (cleanup_undefined_types_1): Update.
861 (scan_file_globals): Update.
862 * stack.c (print_frame_arg): Update.
863 (print_frame_args): Update.
864 (find_frame_funname): Update.
865 (info_frame_command_core): Update.
866 (iterate_over_block_locals): Update.
867 (print_block_frame_labels): Update.
868 (do_print_variable_and_value): Update.
869 (iterate_over_block_arg_vars): Update.
870 (return_command): Update.
871 * symmisc.c (dump_symtab_1): Update.
872 (print_symbol): Update.
873 * symtab.c (eq_symbol_entry): Update.
874 (symbol_cache_dump): Update.
875 (lookup_language_this): Update.
876 (find_pc_sect_line): Update.
877 (skip_prologue_sal): Update.
878 (symbol_search::compare_search_syms): Update.
879 (treg_matches_sym_type_name): Update.
880 (search_symbols): Update.
881 (print_symbol_info): Update.
882 (rbreak_command): Update.
883 (completion_list_add_symbol): Update.
884 (find_gnu_ifunc): Update.
885 (get_symbol_address): Update.
886 (search_module_symbols): Update.
887 (info_module_subcommand): Update.
888 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
889 (SYMBOL_LINKAGE_NAME): Remove.
890 (SYMBOL_DEMANGLED_NAME): Remove.
891 (SYMBOL_PRINT_NAME): Remove.
892 (SYMBOL_SEARCH_NAME): Remove.
893 * tracepoint.c (set_traceframe_context): Update.
894 (validate_actionline): Update.
895 (collection_list::collect_symbol): Update.
896 (encode_actions_1): Update.
897 (info_scope_command): Update.
898 (print_one_static_tracepoint_marker): Update.
899 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
900 * valops.c (address_of_variable): Update.
901 (find_overload_match): Update.
902 (find_oload_champ): Update.
904 2019-11-22 Christian Biesinger <cbiesinger@google.com>
906 * ada-lang.c (ada_lookup_simple_minsym): Update.
907 (ada_collect_symbol_completion_matches): Update.
908 * ada-tasks.c (read_atcb): Update.
909 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
910 (amd64_windows_skip_trampoline_code): Update.
911 * arm-tdep.c (skip_prologue_function): Update.
912 (arm_skip_stack_protector): Update.
913 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
914 (arm_wince_skip_main_prologue): Update.
915 * ax-gdb.c (gen_expr): Update.
916 * block.c (call_site_for_pc): Update.
917 * blockframe.c (find_pc_partial_function): Update.
918 * breakpoint.c (set_breakpoint_location_function): Update.
919 * btrace.c (ftrace_print_function_name): Update.
920 (ftrace_function_switched): Update.
921 * c-valprint.c (print_unpacked_pointer): Update.
922 * coffread.c (coff_symfile_read): Update.
923 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
924 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
925 * dwarf-index-write.c (write_psymbols): Update.
926 * dwarf2loc.c (call_site_to_target_addr): Update.
927 (func_verify_no_selftailcall): Update.
928 (tailcall_dump): Update.
929 (call_site_find_chain_1): Update.
930 (dwarf_expr_reg_to_entry_parameter): Update.
931 * elfread.c (elf_gnu_ifunc_record_cache): Update.
932 * eval.c (evaluate_funcall): Update.
933 (evaluate_subexp_standard): Update.
934 (evaluate_subexp_for_sizeof): Update.
935 * expprint.c (print_subexp_standard): Update.
936 (dump_subexp_body_standard): Update.
937 * frame.c (get_prev_frame_always_1): Update.
938 * frv-tdep.c (frv_skip_main_prologue): Update.
939 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
940 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
941 (gnuv3_get_typename_from_type_info): Update.
942 (gnuv3_skip_trampoline): Update.
943 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
944 * i386-tdep.c (i386_skip_main_prologue): Update.
945 (i386_pe_skip_trampoline_code): Update.
946 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
947 * infcall.c (get_function_name): Update.
948 * linespec.c (minsym_found): Update.
949 * linux-fork.c (info_checkpoints_command): Update.
950 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
951 (m32c_m16c_pointer_to_address): Update.
952 * maint.c (maintenance_translate_address): Update.
953 * minsyms.c (add_minsym_to_hash_table): Update.
954 (add_minsym_to_demangled_hash_table): Update.
955 (lookup_minimal_symbol_mangled): Update.
956 (lookup_minimal_symbol_demangled): Update.
957 (lookup_minimal_symbol_linkage): Update.
958 (lookup_minimal_symbol_text): Update.
959 (lookup_minimal_symbol_by_pc_name): Update.
960 (minimal_symbol_is_less_than): Update.
961 (compact_minimal_symbols): Update.
962 (build_minimal_symbol_hash_tables): Update.
963 (find_solib_trampoline_target): Update.
964 * mips-tdep.c (mips_stub_frame_sniffer): Update.
965 (mips_skip_pic_trampoline_code): Update.
966 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
967 * objc-lang.c (info_selectors_command): Update.
968 (info_classes_command): Update.
969 (find_methods): Update.
971 * p-valprint.c (pascal_val_print): Update.
972 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
973 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
974 * printcmd.c (build_address_symbolic): Update.
975 (info_symbol_command): Update.
976 * psymtab.c (psymbol_name_matches): Update.
977 (match_partial_symbol): Update.
978 (lookup_partial_symbol): Update.
979 (print_partial_symbols): Update.
980 (sort_pst_symbols): Update.
981 (maintenance_check_psymtabs): Update.
982 * python/py-framefilter.c (py_print_frame): Update.
983 * python/python.c (gdbpy_rbreak): Update.
984 * record-btrace.c (btrace_get_bfun_name): Update.
985 (btrace_call_history): Update.
986 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
987 (rs6000_skip_trampoline_code): Update.
988 * sol-thread.c (info_cb): Update.
989 * stabsread.c (scan_file_globals): Update.
990 * stack.c (find_frame_funname): Update.
991 (info_frame_command_core): Update.
992 * symmisc.c (dump_msymbols): Update.
993 * symtab.c (symbol_natural_name): Rename to..,
994 (general_symbol_info::natural_name): ...this.
995 (symbol_demangled_name): Rename to...
996 (general_symbol_info::demangled_name): ...this.
997 (symbol_search_name): Rename to...
998 (general_symbol_info::search_name): ...this.
999 (symbol_matches_search_name): Update.
1000 (find_pc_sect_line): Update.
1001 (skip_prologue_sal): Update.
1002 (search_symbols): Update.
1003 (print_msymbol_info): Update.
1004 (rbreak_command): Update.
1005 (completion_list_add_msymbol): Update.
1006 (completion_list_objc_symbol): Update.
1007 (get_msymbol_address): Update.
1008 * symtab.h (struct general_symbol_info): Add member functions
1009 natural_name (), linkage_name (), print_name (), demangled_name (),
1011 (SYMBOL_NATURAL_NAME): Update.
1012 (symbol_natural_name): Move to a member function on general_symbol_info.
1013 (SYMBOL_DEMANGLED_NAME): Update.
1014 (symbol_demangled_name): Move to a member function on
1015 general_symbol_info.
1016 (SYMBOL_SEARCH_NAME): Update.
1017 (symbol_search_name): Move to a member function on general_symbol_info.
1018 (MSYMBOL_NATURAL_NAME): Remove.
1019 (MSYMBOL_LINKAGE_NAME): Remove.
1020 (MSYMBOL_PRINT_NAME): Remove.
1021 (MSYMBOL_DEMANGLED_NAME): Remove.
1022 (MSYMBOL_SEARCH_NAME): Remove.
1023 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1025 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1027 * symtab.c (create_demangled_names_hash): Use per_bfd->
1028 minimal_symbol_count for computing the initial size, if greater
1029 than our default size.
1031 2019-11-22 Tom de Vries <tdevries@suse.de>
1033 * contrib/words.sh: Improve words extraction.
1035 2019-11-22 Tom de Vries <tdevries@suse.de>
1037 * contrib/words.sh: Combine sed invocations.
1039 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1041 * Makefile.in: Update.
1042 * demangle.c: Rename to...
1043 * gdb-demangle.c: ..this.
1044 (is_cplus_marker): Change return type to bool.
1045 (_initialize_demangler): Rename to...
1046 (_initialize_gdb_demangle): ...this.
1047 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1048 * symtab.h (demangle): Remove declaration; instead include
1051 2019-11-21 Tom Tromey <tromey@adacore.com>
1053 * gdbsupport/format.c (format_pieces): Parse %I64d.
1054 * unittests/format_pieces-selftests.c (test_windows_formats): New
1056 (run_tests): Call it.
1058 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1060 Byte reverse display of variables with DW_END_big, DW_END_little
1061 (DW_AT_endianity) dwarf attributes if different than the native
1063 * ada-lang.c (ada_value_binop):
1064 Use type_byte_order instead of gdbarch_byte_order.
1065 * ada-valprint.c (printstr):
1066 (ada_val_print_string):
1067 * ada-lang.c (value_pointer):
1069 Use type_byte_order instead of gdbarch_byte_order.
1070 * c-lang.c (c_get_string):
1071 Use type_byte_order instead of gdbarch_byte_order.
1072 * c-valprint.c (c_val_print_array):
1073 Use type_byte_order instead of gdbarch_byte_order.
1074 * cp-valprint.c (cp_print_class_member):
1075 Use type_byte_order instead of gdbarch_byte_order.
1076 * dwarf2loc.c (rw_pieced_value):
1077 Use type_byte_order instead of gdbarch_byte_order.
1078 * dwarf2read.c (read_base_type): Handle DW_END_big,
1080 * f-lang.c (f_get_encoding):
1081 Use type_byte_order instead of gdbarch_byte_order.
1082 * findvar.c (default_read_var_value):
1083 Use type_byte_order instead of gdbarch_byte_order.
1084 * gdbtypes.c (check_types_equal):
1085 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1086 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1087 and TYPE_ENDIANITY_LITTLE if set.
1088 (type_byte_order): new function.
1089 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1090 (struct main_type) <flag_endianity_not_default>:
1092 (type_byte_order): New function.
1093 * infcmd.c (default_print_one_register_info):
1094 Use type_byte_order instead of gdbarch_byte_order.
1095 * p-lang.c (pascal_printstr):
1096 Use type_byte_order instead of gdbarch_byte_order.
1097 * p-valprint.c (pascal_val_print):
1098 Use type_byte_order instead of gdbarch_byte_order.
1099 * printcmd.c (print_scalar_formatted):
1100 Use type_byte_order instead of gdbarch_byte_order.
1101 * solib-darwin.c (darwin_current_sos):
1102 Use type_byte_order instead of gdbarch_byte_order.
1103 * solib-svr4.c (solib_svr4_r_ldsomap):
1104 Use type_byte_order instead of gdbarch_byte_order.
1105 * stap-probe.c (stap_modify_semaphore):
1106 Use type_byte_order instead of gdbarch_byte_order.
1107 * target-float.c (target_float_same_format_p):
1108 Use type_byte_order instead of gdbarch_byte_order.
1109 * valarith.c (scalar_binop):
1111 Use type_byte_order instead of gdbarch_byte_order.
1112 * valops.c (value_cast):
1113 Use type_byte_order instead of gdbarch_byte_order.
1114 * valprint.c (generic_emit_char):
1117 Use type_byte_order instead of gdbarch_byte_order.
1118 * value.c (unpack_long):
1119 (unpack_bits_as_long):
1120 (unpack_value_bitfield):
1123 (pack_unsigned_long):
1124 Use type_byte_order instead of gdbarch_byte_order.
1125 * findvar.c (unsigned_pointer_to_address):
1126 (signed_pointer_to_address):
1127 (unsigned_address_to_pointer):
1128 (address_to_signed_pointer):
1129 (default_read_var_value):
1130 (default_value_from_register):
1131 Use type_byte_order instead of gdbarch_byte_order.
1132 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1133 Use type_byte_order instead of gdbarch_byte_order.
1134 * riscv-tdep.c (riscv_print_one_register_info):
1135 Use type_byte_order instead of gdbarch_byte_order.
1137 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1139 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1140 (current_ui_gdb_stdin_ptr): Likewise.
1141 (current_ui_gdb_stderr_ptr): Likewise.
1142 (current_ui_gdb_stdlog_ptr): Likewise.
1143 (current_ui_current_uiout_ptr): Likewise.
1144 (gen_ret_current_ui_field_ptr): Remove.
1146 2019-11-21 Tom de Vries <tdevries@suse.de>
1149 * cli/cli-script.c (execute_control_command): Only switch to
1150 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1152 2019-11-19 Tom Tromey <tom@tromey.com>
1154 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1155 Now static. Change type of "name".
1156 (tui_set_win_height_command): Don't copy "arg".
1157 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1158 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1160 2019-11-19 Ali Tamur <tamur@google.com>
1162 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1163 "if (attr != nullptr)".
1164 (dwarf2_find_base_address): Likewise.
1165 (dwarf2_build_include_psymtabs): Likewise.
1166 (read_cutu_die_from_dwo): Likewise.
1167 (read_func_scope): Likewise.
1168 (read_call_site_scope): Likewise.
1169 (dwarf2_get_pc_bounds): Likewise.
1170 (dwarf2_record_block_ranges): Likewise.
1171 (dwarf2_add_field): Likewise.
1172 (dwarf2_add_member_fn): Likewise.
1173 (read_structure_type): Likewise.
1174 (read_enumeration_type): Likewise.
1175 (read_array_type): Likewise.
1176 (read_array_order): Likewise.
1177 (read_set_type): Likewise.
1178 (read_common_block): Likewise.
1179 (read_tag_reference_type): Likewise.
1180 (read_tag_string_type): Likewise.
1181 (read_subroutine_type): Likewise.
1182 (read_base_type): Likewise.
1183 (read_subrange_type): Likewise.
1184 (new_symbol): Likewise.
1185 (prepare_one_comp_unit): Likewise.
1187 2019-11-19 Tom Tromey <tromey@adacore.com>
1189 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1190 result in error when DebugActiveProcess fails.
1192 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1193 Pedro Alves <palves@redhat.com>
1195 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1196 * target.c (target_stack::push): Call 'unpush' if there's a
1197 target on top of the stack.
1199 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1201 * python/py-block.c (blpy_dealloc): Call tp_free.
1202 (blpy_block_syms_dealloc): Likewise.
1203 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1204 * python/py-inferior.c (infpy_dealloc): Likewise.
1205 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1206 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1207 * python/py-symbol.c (sympy_dealloc): Likewise.
1208 * python/py-symtab.c (stpy_dealloc): Likewise.
1209 * python/py-type.c (typy_iterator_dealloc): Likewise.
1211 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1213 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1214 constructor instead of using a class initializer.
1216 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1218 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1219 * configure: Regenerate.
1220 * configure.ac: Don't source common.host.
1221 * gdbsupport/common.host: Remove.
1222 * gdbsupport/mingw-strerror.c: Remove.
1223 * gdbsupport/posix-strerror.c: Rename to...
1224 * gdbsupport/safe-strerror.c: ...this.
1226 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1228 * maint.c (scoped_command_stats::print_time): Use localtime_r
1229 instead of localtime (provided through gnulib if necessary).
1230 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1233 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1235 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1236 avoid compile errors.
1238 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1240 * config.in: Regenerate.
1241 * configure: Regenerate.
1242 * gdbsupport/common.m4: No longer check for strerror_r.
1243 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1244 POSIX version of strerror_r, now that gnulib provides it if
1247 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1249 * README (`configure' options): Update.
1251 2019-11-14 Tom Tromey <tromey@adacore.com>
1253 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1254 expected type for the RHS if the LHS is a convenience variable.
1256 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1258 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1259 Provide explicit default and copy constructor.
1261 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1263 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1264 only call Py_INCREF (newbp) in the bppy_pending_object case.
1266 2019-11-13 Tom Tromey <tromey@adacore.com>
1269 * psympriv.h (partial_symbol): Remove static assert.
1270 * symtab.h (general_symbol_info, symbol): Remove static assert.
1272 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1274 * gdbsupport/format.c (format_pieces::format_pieces): Support
1275 printf 'z' size modifier.
1276 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1277 * printcmd.c (ui_printf): Handle size_t_arg.
1278 * ui-out.c (ui_out::vmessage): Likewise.
1279 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1281 (run_tests): Call test_format_int_sizes.
1283 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1285 * ada-exp.y (write_ambiguous_var): Update.
1286 * buildsym.c (add_symbol_to_list): Update.
1287 * dwarf2read.c (read_variable): Update.
1288 (new_symbol): Update.
1289 * jit.c (finalize_symtab): Update.
1290 * language.c (language_alloc_type_symbol): Update.
1291 * symtab.c (fixup_symbol_section): Update.
1292 (initialize_objfile_symbol_1): Move code to...
1293 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1294 (allocate_symbol): Update.
1295 (allocate_template_symbol): Update.
1296 (get_symbol_address): Update.
1297 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1298 of having as a field, and add a constructor.
1299 (SYMBOL_VALUE): Update.
1300 (SYMBOL_VALUE_ADDRESS): Update.
1301 (SET_SYMBOL_VALUE_ADDRESS): Update.
1302 (SYMBOL_VALUE_BYTES): Update.
1303 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1304 (SYMBOL_BLOCK_VALUE): Update.
1305 (SYMBOL_VALUE_CHAIN): Update.
1306 (SYMBOL_LANGUAGE): Update.
1307 (SYMBOL_SECTION): Update.
1308 (SYMBOL_OBJ_SECTION): Update.
1309 (SYMBOL_SET_LANGUAGE): Update.
1310 (SYMBOL_SET_LINKAGE_NAME): Update.
1311 (SYMBOL_SET_NAMES): Update.
1312 (SYMBOL_NATURAL_NAME): Update.
1313 (SYMBOL_LINKAGE_NAME): Update.
1314 (SYMBOL_DEMANGLED_NAME): Update.
1315 (SYMBOL_SEARCH_NAME): Update.
1316 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1317 (struct symbol): Update.
1318 (struct template_symbol): Update.
1319 (struct rust_vtable_symbol): Update.
1320 * xcoffread.c (SYMBOL_DUP): Update.
1322 2019-11-12 Tom Tromey <tom@tromey.com>
1324 * tui/tui-layout.c (show_layout): Set current_layout.
1325 (show_source_disasm_command, show_data)
1326 (show_source_or_disasm_and_command): Don't set current_layout.
1328 2019-11-12 Tom Tromey <tom@tromey.com>
1330 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1332 2019-11-12 Tom Tromey <tom@tromey.com>
1334 * tui/tui-win.c (resize_message): New global.
1335 (show_tui_resize_message): New function.
1336 (tui_async_resize_screen): Print message if requested.
1337 (_initialize_tui_win): Add tui-resize-message setting.
1338 * NEWS: Add entry for new commands.
1340 2019-11-11 Tom Tromey <tom@tromey.com>
1342 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1345 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1347 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1349 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1351 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1353 * python/python-internal.h (gdbpy_lookup_static_symbols):
1354 Declare new function.
1355 * python/python.c (python_GdbMethods): Add
1356 gdb.lookup_static_symbols method.
1357 * NEWS: Mention gdb.lookup_static_symbols.
1359 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1361 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1362 static block of current object file first. Also fix typo in
1365 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1367 * stack.c (set_last_displayed_sal): Delete.
1368 (last_displayed_sal_valid): Delete.
1369 (last_displayed_pspace): Delete.
1370 (last_displayed_addr): Delete.
1371 (last_displayed_symtab): Delete.
1372 (last_displayed_line): Delete.
1373 (class last_displayed_symtab_info_type): New.
1374 (last_displayed_symtab_info): New static global variable.
1375 (print_frame_info): Call methods on last_displayed_symtab_info.
1376 (clear_last_displayed_sal): Update header comment, and make use of
1377 last_displayed_symtab_info.
1378 (last_displayed_sal_is_valid): Likewise.
1379 (get_last_displayed_pspace): Likewise.
1380 (get_last_displayed_addr): Likewise.
1381 (get_last_displayed_symtab): Likewise.
1382 (get_last_displayed_line): Likewise.
1383 (get_last_displayed_sal): Likewise.
1384 * stack.h (clear_last_displayed_sal): Update header comment.
1385 (last_displayed_sal_is_valid): Likewise.
1386 (get_last_displayed_pspace): Likewise.
1387 (get_last_displayed_addr): Likewise.
1388 (get_last_displayed_symtab): Likewise.
1389 (get_last_displayed_line): Likewise.
1390 (get_last_displayed_sal): Likewise.
1392 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1394 * stack.c (frame_show_address): Convert return type to bool.
1395 * stack.h (frame_show_address): Likewise, and update header
1398 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1401 * unittests/vec-utils-selftests.c: New file.
1402 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1404 2019-11-10 Tom Tromey <tom@tromey.com>
1406 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1407 (tui_highlight_win): Likewise.
1408 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1409 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1410 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1411 Don't set can_highlight.
1413 2019-11-10 Tom Tromey <tom@tromey.com>
1415 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1416 Remove unused declaration.
1418 2019-11-08 Tom Tromey <tromey@adacore.com>
1420 * top.c (read_command_file): Update.
1421 (command_line_input): Make return type const.
1422 * python/py-gdb-readline.c: Update.
1423 * linespec.c (decode_line_2): Update.
1424 * defs.h (command_line_input): Make return type const.
1425 * cli/cli-script.c (read_next_line): Make return type const.
1426 * ada-lang.c (get_selections): Update.
1428 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1430 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1431 * mi/mi-main.c (output_cores): Likewise.
1432 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1433 (linux_xfer_osdata_modules): Likewise.
1434 * remote.c (register_remote_support_xml): Likewise.
1435 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1436 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1438 2019-11-06 Tom Tromey <tom@tromey.com>
1440 * tui/tui-interp.c: Don't include readline.h.
1441 * tui/tui-hooks.c: Don't include readline.h.
1442 * symmisc.c: Include tilde.h, not readline.h.
1443 * symfile.c: Include tilde.h, not readline.h.
1444 * source.c: Include tilde.h, not readline.h.
1445 * solib.c: Include tilde.h, not readline.h.
1446 * psymtab.c: Include tilde.h, not readline.h.
1447 * exec.c: Include tilde.h, not readline.h.
1448 * corelow.c: Include tilde.h, not readline.h.
1449 * cli/cli-dump.c: Include tilde.h, not readline.h.
1450 * cli/cli-cmds.c: Don't include readline.h.
1452 2019-11-05 Tom Tromey <tom@tromey.com>
1454 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1455 (tui_disassemble): Set addr_size.
1456 (tui_disasm_window::set_contents): Use addr_size.
1458 2019-11-05 Tom Tromey <tom@tromey.com>
1460 * rust-lang.c (rust_language_defn): Update.
1461 * python/py-value.c (valpy_string): Call c_get_string.
1462 * p-lang.c (pascal_language_defn): Update.
1463 * opencl-lang.c (opencl_language_defn): Update.
1464 * objc-lang.c (objc_language_defn): Update.
1465 * m2-lang.c (m2_language_defn): Update.
1466 * language.c (unknown_language_defn, auto_language_defn): Update.
1467 (default_get_string): Remove.
1468 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1469 * go-lang.c (go_language_defn): Update.
1470 * f-lang.c (f_language_defn): Update.
1471 * d-lang.c (d_language_defn): Update.
1472 * c-lang.c (c_language_defn, cplus_language_defn)
1473 (asm_language_defn, minimal_language_defn): Update.
1474 * ada-lang.c (ada_language_defn): Update.
1475 * language.h (struct language_defn) <la_get_string>: Remove.
1476 (LA_GET_STRING): Remove.
1477 (default_get_string): Don't declare.
1479 2019-11-05 Tom Tromey <tom@tromey.com>
1481 * tui/tui-source.h (struct tui_source_window): Inline
1482 constructor. Remove destructor.
1483 <style_changed, m_observable>: Move to superclass.
1484 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1485 (struct tui_source_window_base): Move private members to end.
1486 <style_changed, m_observable>: Move from tui_source_window.
1487 * tui/tui-winsource.c (tui_copy_source_line): Move from
1488 tui-source.c. Rename from copy_source_line. Add special handling
1489 for negative line number.
1490 (tui_source_window_base::style_changed): Move from
1492 (tui_source_window_base): Register observer.
1493 (~tui_source_window_base): New.
1494 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1496 (tui_source_window::set_contents): Use tui_copy_source_line.
1497 (tui_source_window::tui_source_window): Move to tui-source.h.
1498 (tui_source_window::~tui_source_window): Remove.
1499 (tui_source_window::style_changed): Move to superclass.
1500 * tui/tui-disasm.c (tui_disassemble): Create string file with
1501 styling, when possible. Add "addr_size" parameter.
1502 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1503 Don't compute maximum size.
1504 (len_without_escapes): New function
1506 2019-11-05 Tom Tromey <tom@tromey.com>
1508 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1510 * tui/tui-winsource.c (tui_show_source_line): Update.
1511 * tui/tui-source.c (tui_source_window::set_contents): Update.
1512 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1514 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1516 * symtab.h (gdb_static_assert): Put && operator at the beginning
1517 of the line instead of the end.
1519 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1521 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1522 and sizeof (symbol).
1523 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1525 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1527 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1528 * configure.host: Mark *-*-solaris2.10* obsolete.
1529 * configure.tgt: Mark Solaris < 11 obsolete.
1530 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1531 Update target triplet.
1533 2019-11-01 Tom Tromey <tromey@adacore.com>
1535 * utils.c (print_sys_errmsg): Simplify.
1537 2019-11-01 Tom Tromey <tromey@adacore.com>
1539 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1541 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1543 * configure: Regenerate.
1544 * configure.ac: Remove check for strerror_r.
1545 * gdbsupport/common.m4: Check for strerror_r.
1547 2019-11-01 Luis Machado <luis.machado@linaro.org>
1551 * arm-tdep.c (arm_per_objfile): Rename to ...
1552 (arm_per_bfd): ... this.
1553 (arm_objfile_data_key): Rename to ...
1554 (arm_bfd_data_key): ... this.
1555 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1557 (arm_record_special_symbol): Likewise.
1559 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1563 * c-typeprint.c (c_print_typedef): Likewise.
1564 * f-typeprint.c (f_print_typedef): Likewise.
1565 * m2-typeprint.c (m2_print_typedef): Likewise.
1566 * p-typeprint.c (pascal_print_typedef): Likewise.
1567 * rust-lang.c (rust_print_typedef): Likewise.
1568 * symtab.c (print_symbol_info): Print a newline after calling
1571 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1573 * symtab.c (info_module_cmdlist): New variable.
1574 (info_module_command): New function.
1575 (search_module_symbols): New function.
1576 (info_module_subcommand): New function.
1577 (struct info_modules_var_func_options): New struct.
1578 (info_modules_var_func_options_defs): New variable.
1579 (make_info_modules_var_func_options_def_group): New function.
1580 (info_module_functions_command): New function.
1581 (info_module_variables_command): New function.
1582 (info_module_var_func_command_completer): New function.
1583 (_initialize_symtab): Register new 'info module functions' and
1584 'info module variables' commands.
1585 * symtab.h (typedef symbol_search_in_module): New typedef.
1586 (search_module_symbols): Declare new function.
1587 * NEWS: Mention new commands.
1589 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1591 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1592 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1593 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1595 (scan_partial_symbols): Only create partial module symbols for non
1597 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1599 * symtab.c (search_domain_name): Likewise.
1600 (search_symbols): Likewise.
1601 (print_symbol_info): Likewise.
1602 (symtab_symbol_info): Likewise.
1603 (info_modules_command): New function.
1604 (_initialize_symtab): Register 'info modules' command.
1605 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1606 * NEWS: Mention new 'info modules' command.
1608 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1610 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1611 and $_gdb_maint_setting_str.
1613 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1615 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1616 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1617 (str_value_from_setting, gdb_setting_str_internal_fn)
1618 (gdb_maint_setting_str_internal_fn): New functions.
1619 (_initialize_cli_cmds): Define the new convenience functions.
1620 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1621 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1623 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1625 * agent.c (set_can_use_agent): When the setting is turned on,
1626 look up agent symbols if we don't have them yet.
1627 (agent_new_objfile): Don't look up agent symbols when the agent
1630 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1632 * config.in: Regenerate.
1634 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1636 * configure: Regenerate.
1637 * configure.ac: Check for strerror_r.
1638 * gdbsupport/common-utils.h (safe_strerror): Change return value
1639 to const char * and document that this function is now threadsafe.
1640 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1641 thread_local and call strerror_r, if available.
1642 * utils.c (perror_string): Update.
1643 (print_sys_errmsg): Update.
1645 2019-10-31 Luis Machado <luis.machado@linaro.org>
1647 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1649 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1650 objfile to fetch per-bfd data.
1651 (arm_find_exidx_entry): Likewise.
1653 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1655 * gdbsupport/agent.c (debug_agent): Change type to bool.
1656 (use_agent): Likewise.
1657 (all_agent_symbols_look_up): Likewise.
1658 (agent_loaded_p): Change return value to bool.
1659 (agent_look_up_symbols): Update.
1660 (agent_capability_check): Change return value to bool.
1661 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1662 (debug_agent): Change type to bool.
1663 (use_agent): Likewise.
1664 (agent_capability_check): Change return value to bool.
1666 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1668 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1669 (build_minimal_symbol_hash_tables): Code to clear the table moved
1670 to clear_minimal_symbol_hash_tables.
1671 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1674 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1676 * infcmd.c: Remove includes.
1677 * infrun.c: Remove includes.
1679 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1681 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1682 (grow_vect): Remove declaration.
1683 (ada_type_of_array): Remove declaration.
1684 (ada_update_initial_language): Remove declaration.
1685 (ada_fold_name): Remove declaration.
1686 (ada_fill_in_ada_prototype): Remove declaration.
1687 (user_select_syms): Remove declaration.
1688 (get_selections): Remove declaration.
1689 (ada_tag_type): Remove declaration.
1690 (ada_value_tag): Remove declaration.
1691 (ada_is_others_clause): Remove declaration.
1692 (ada_in_variant): Remove declaration.
1693 (ada_value_struct_elt): Remove declaration.
1694 (ada_attribute_name): Remove declaration.
1695 (ada_system_address_type): Remove declaration.
1696 * ada-lang.c (ada_watch_location_expression): Make static.
1697 (GROW_VECT): Move here from ada-lang.h.
1698 (grow_vect): Make static.
1699 (ada_update_initial_language): Make static.
1700 (ada_fold_name): Make static.
1701 (ada_type_of_array): Make static.
1702 (encoded_ordered_before): Move up.
1703 (sort_choices): Move up.
1704 (print_signatures): Move up.
1705 (ada_print_symbol_signature): Move up.
1706 (get_selections): Move up and make static.
1707 (user_select_syms): Move up and make static.
1708 (ada_value_struct_elt): Move up and make static.
1709 (ada_tag_type): Make static.
1710 (ada_value_tag): Make static.
1711 (ada_is_others_clause): Make static.
1712 (ada_in_variant): Make static.
1713 (ada_attribute_name): Make static.
1715 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1717 * ada-lang.c: Remove includes.
1718 * ada-typeprint.c: Remove includes.
1719 * ada-valprint.c: Remove includes.
1721 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1723 * addrmap.c: Add static assertions of type size, moved from
1724 _initialize_addrmap.
1725 (_initialize_addrmap): Remove.
1727 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1729 * coffread.c (record_minimal_symbol): Update.
1730 (process_coff_symbol): Update.
1731 * dbxread.c (read_dbx_symtab): Update.
1732 * dwarf2read.c (add_partial_symbol): Update.
1733 (fixup_go_packaging): Update.
1734 (load_partial_dies): Update.
1735 (new_symbol): Update.
1736 * elfread.c (record_minimal_symbol): Change signature to use
1737 gdb::string_view instead of name+len.
1738 (elf_symtab_read): Update.
1739 (elf_rel_plt_read): Update.
1740 * mdebugread.c (parse_partial_symbols): Update.
1741 (handle_psymbol_enumerators): Update.
1742 (new_symbol): Update.
1743 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1744 to use gdb::string_view instead of name+len.
1745 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1746 * psympriv.h (add_psymbol_to_list): Likewise.
1747 * psymtab.c (add_psymbol_to_bcache): Likewise.
1748 (add_psymbol_to_list): Likewise.
1749 * stabsread.c (define_symbol): Update.
1750 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1751 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1752 (symbol_set_names): Likewise.
1753 * xcoffread.c (scan_xcoff_symtab): Update.
1755 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1757 * symtab.h (symbol_set_names): Document that copy_name must be
1758 set to true for non-nullterminated strings.
1759 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1760 linkage_name if the entry was not found and we need to demangle.
1762 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1764 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1765 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1766 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1767 * gdbsupport/gdb_binary_search.h: New file.
1769 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1771 * NEWS: Mention new --with-system-gdbinit-dir option.
1772 * config.in: Regenerate.
1773 * configure: Regenerate.
1774 * configure.ac: Add new option --with-system-gdbinit-dir.
1775 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1776 for a ".gdb" suffix.
1777 * main.c (get_init_files): Change system_gdbinit argument to
1778 a vector and return the files in SYSTEM_GDBINIT_DIR in
1779 addition to SYSTEM_GDBINIT.
1780 (captured_main_1): Update.
1781 (print_gdb_help): Update.
1782 * top.c (print_gdb_configuration): Also print the value of
1785 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1787 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1788 that takes gdb::string_view arguments.
1790 2019-10-26 Tom de Vries <tdevries@suse.de>
1792 * aarch64-linux-tdep.c: Fix typos in comments.
1793 * aarch64-tdep.c: Same.
1795 * amd64-nat.c: Same.
1797 * arch/aarch64-insn.c: Same.
1799 * breakpoint.h: Same.
1802 * cli/cli-decode.c: Same.
1803 * cli/cli-script.c: Same.
1804 * cli/cli-utils.h: Same.
1805 * coff-pe-read.c: Same.
1807 * compile/compile-cplus-symbols.c: Same.
1808 * compile/compile-object-run.c: Same.
1809 * completer.c: Same.
1811 * cp-support.c: Same.
1813 * dwarf-index-write.c: Same.
1814 * dwarf2-frame.c: Same.
1815 * dwarf2-frame.h: Same.
1817 * frame-base.h: Same.
1822 * guile/scm-objfile.c: Same.
1823 * i386-tdep.c: Same.
1824 * i386-tdep.h: Same.
1827 * linux-nat.c: Same.
1828 * m68k-tdep.c: Same.
1831 * mi/mi-cmd-disas.c: Same.
1832 * mi/mi-getopt.h: Same.
1833 * mi/mi-main.c: Same.
1835 * nat/aarch64-sve-linux-sigcontext.h: Same.
1837 * ppc-linux-nat.c: Same.
1838 * ppc-linux-tdep.c: Same.
1840 * progspace.h: Same.
1841 * prologue-value.h: Same.
1842 * python/py-evtregistry.c: Same.
1843 * python/py-instruction.h: Same.
1844 * record-btrace.c: Same.
1845 * record-full.c: Same.
1847 * rs6000-tdep.c: Same.
1849 * sol-thread.c: Same.
1850 * sparc-sol2-tdep.c: Same.
1851 * sparc64-tdep.c: Same.
1852 * stabsread.c: Same.
1856 * tracepoint.c: Same.
1857 * tui/tui-data.h: Same.
1858 * tui/tui-io.c: Same.
1859 * tui/tui-win.c: Same.
1861 * unittests/rsp-low-selftests.c: Same.
1862 * user-regs.h: Same.
1873 * xtensa-tdep.c: Same.
1875 2019-10-25 Ali Tamur <tamur@google.com>
1877 * charset.c (find_charset_names): Reflect API change.
1879 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1881 * symtab.c (struct demangled_name_entry): Change demangled name
1882 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1883 part of the struct anymore.
1884 (symbol_set_names): No longer obstack allocate + copy the demangled
1885 name, just store the allocated name from bfd.
1887 2019-10-25 Tom Tromey <tromey@adacore.com>
1889 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1890 (bsearch_cie_cmp, add_cie): Remove.
1891 (find_cie): Reimplement.
1892 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1893 (dwarf2_build_frame_info): Update.
1895 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1898 * symfile.c (reread_symbols): Call forget_cached_source_info to
1899 clear the stale source cache.
1901 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1903 * configure: Regenerate.
1904 * configure.ac: Remove code that sets python_has_threads.
1906 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1908 * config.in: Regenerate.
1909 * configure: Regenerate.
1910 * configure.ac: Remove the code that uses sed to get the python
1911 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1913 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1915 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1918 2019-10-23 Tom Tromey <tom@tromey.com>
1920 * arc-tdep.c: Remove ".." from include.
1921 * frv-tdep.c: Remove ".." from include.
1922 * lm32-tdep.c: Remove ".." from include.
1923 * microblaze-tdep.c: Remove ".." from include.
1924 * or1k-tdep.h: Remove ".." from include.
1925 * s12z-tdep.c: Remove ".." from include.
1926 * Makefile.in (OPCODES_CFLAGS): Add comment.
1927 (TOP_CFLAGS): New variable.
1928 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1930 2019-10-23 Tom Tromey <tom@tromey.com>
1932 * Makefile.in (READLINE_DIR): Update.
1934 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1936 * infcall.c (call_function_by_hand_dummy): Fix the function
1937 comment. And extract out a code section into...
1938 (reserve_stack_space): ...this new function.
1940 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1942 * infcall.c (value_arg_coerce): Remove an unused parameter.
1943 (call_function_by_hand_dummy): Update the call to
1946 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1948 * infcall.c (call_function_by_hand_dummy): Refactor.
1950 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1952 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1954 2019-10-23 Tom Tromey <tom@tromey.com>
1956 * configure: Rebuild.
1957 * configure.ac: Don't check for sigprocmask.
1958 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1960 2019-10-23 Tom Tromey <tom@tromey.com>
1962 * configure: Rebuild.
1963 * acinclude.m4: Use m4_include, not sinclude.
1965 2019-10-23 Tom de Vries <tdevries@suse.de>
1967 PR breakpoints/24687
1968 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1970 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1972 * symtab.c (struct demangled_name_entry) <language>: Change from
1973 bitfield to regular variable.
1975 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1977 * symtab.c (struct demangled_name_entry): Add a constructor.
1978 (free_demangled_name_entry): New function to call the destructor
1979 for demangled_name_entry.
1980 (create_demangled_names_hash): Pass free_demangled_name_entry to
1982 (symbol_set_names): Call placement new for demangled_name_entry.
1983 * utils.c: No longer include xxhash.h here, now that fast_hash
1984 is inlined in the header.
1985 * utils.h: Instead, include it here.
1987 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1989 * Makefile.in: Link with libxxhash.
1990 * config.in: Regenerate.
1991 * configure: Regenerate.
1992 * configure.ac: Search for libxxhash.
1993 * utils.c (fast_hash): Use xxhash if present.
1995 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1997 * utils.h (fast_hash): New function.
1998 * symtab.c (hash_demangled_name_entry): Call new function
2001 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2003 * symtab.c (struct demangled_name_entry): Change type of mangled
2004 to gdb::string_view. Also adds a constructor that takes the
2006 (hash_demangled_name_entry): Update.
2007 (eq_demangled_name_entry): Update.
2008 (free_demangled_name_entry): New function to call the destructor
2009 now that this is not a POD anymore.
2010 (create_demangled_names_hash): Pass free_demangled_name_entry to
2012 (symbol_set_names): Update.
2014 2019-10-21 Ali Tamur <tamu@google.com>
2016 * dwarf2read.c (dir_index): Change type.
2017 (file_name_index): Likewise.
2018 (line_header::include_dir_at): Change comment and implementation on
2019 whether it is DWARF 5.
2020 (line_header::is_valid_file_index): New function.
2021 (line_header::file_name_at): Change comment and implementation on
2022 whether it is DWARF 5.
2023 (line_header::file_names): Change to private field renamed as
2024 m_file_names and introduce a new accessor method.
2025 (line_header::file_names_size): New method.
2026 (line_header::include_dirs): Change to private field and rename as
2028 (dw2_get_file_names_reader): Define local var at a smaller scope and
2030 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2031 (process_structure_scope): Likewise.
2032 (line_header::add_include_dir): Change message and reflect renaming.
2033 (line_header::add_file_name): Likewise.
2034 (read_formatted_entries): Handle DW_FORM_data16.
2035 (dwarf_decode_line_header): Fix line header length calculation.
2036 (psymtab_include_file_name): Change comment and API.
2037 (lnp_state_machine::m_file): Update comment and reflect type change.
2038 (lnp_state_machine::record_line): Reflect type change.
2039 (dwarf_decode_lines): Reflect API change.
2040 (file_file_name): Likewise.
2041 (file_full_name): Likewise.
2043 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2045 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2047 2019-10-21 Tom Tromey <tom@tromey.com>
2049 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2051 2019-10-21 Tom Tromey <tom@tromey.com>
2053 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2054 NM_H. Use AC_CONFIG_LINKS.
2055 * configure: Rebuild.
2056 * Makefile.in (NM_H): New variable.
2057 (generated_files): Add NM_H. Remove gcore.
2058 (nm.h, stamp-nmh): New targets.
2060 2019-10-20 Tom Tromey <tom@tromey.com>
2062 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2063 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2065 (put_objfile_before): Now static.
2067 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2069 * gdbsupport/common-utils.h (startswith): Change return type to
2072 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2074 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2075 * breakpoint.c (bp_locations_compare): Rename to...
2076 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2077 (update_global_location_list): Use std::sort instead of qsort.
2078 * buildsym.c (compare_line_numbers): Rename to...
2079 (lte_is_less_than): ...this, and change to std::sort semantics.
2080 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2082 * disasm.c (compare_lines): Rename to...
2083 (line_is_less_than): ...this, and change to std::sort semantics.
2084 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2086 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2087 (fde_is_less_than): ...this, and change to std::sort semantics.
2088 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2089 * mdebugread.c (compare_blocks):
2090 (block_is_less_than): ...this, and change to std::sort semantics.
2091 (sort_blocks): Call std::sort instead of qsort.
2092 * objfiles.c (qsort_cmp): Rename to...
2093 (sort_cmp): ...this, and change to std::sort semantics.
2094 (update_section_map): Call std::sort instead of qsort.
2095 * remote.c (compare_pnums): Remove.
2096 (map_regcache_remote_table): Call std::sort instead of qsort.
2097 * utils.c (compare_positive_ints): Remove.
2098 * utils.h (compare_positive_ints): Remove.
2099 * xcoffread.c (compare_lte): Remove.
2100 (arrange_linetable): Call std::sort instead of qsort.
2102 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2104 * symfile.c (init_entry_point_info): Fix typo.
2105 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2107 2019-10-18 Tom de Vries <tdevries@suse.de>
2109 * aarch64-tdep.c: Fix typos in comments.
2111 * ada-tasks.c: Same.
2112 * alpha-tdep.c: Same.
2113 * alpha-tdep.h: Same.
2114 * amd64-nat.c: Same.
2115 * amd64-windows-tdep.c: Same.
2118 * arch-utils.c: Same.
2119 * arm-nbsd-tdep.c: Same.
2122 * blockframe.c: Same.
2125 * coff-pe-read.c: Same.
2127 * cris-tdep.c: Same.
2128 * darwin-nat.c: Same.
2132 * dtrace-probe.c: Same.
2133 * dwarf-index-write.c: Same.
2134 * dwarf2-frame-tailcall.c: Same.
2135 * dwarf2-frame.c: Same.
2136 * dwarf2read.c: Same.
2138 * exceptions.c: Same.
2139 * fbsd-tdep.c: Same.
2143 * gnu-v3-abi.c: Same.
2145 * h8300-tdep.c: Same.
2146 * hppa-tdep.c: Same.
2147 * i386-linux-tdep.c: Same.
2148 * i386-tdep.c: Same.
2149 * ia64-libunwind-tdep.c: Same.
2150 * ia64-tdep.c: Same.
2154 * linux-nat.c: Same.
2155 * linux-thread-db.c: Same.
2156 * machoread.c: Same.
2157 * mdebugread.c: Same.
2159 * mn10300-tdep.c: Same.
2160 * namespace.c: Same.
2162 * opencl-lang.c: Same.
2163 * or1k-tdep.c: Same.
2165 * ppc-linux-nat.c: Same.
2166 * ppc-linux-tdep.c: Same.
2167 * ppc-sysv-tdep.c: Same.
2170 * record-btrace.c: Same.
2171 * record-full.c: Same.
2172 * remote-fileio.c: Same.
2174 * rs6000-tdep.c: Same.
2175 * s12z-tdep.c: Same.
2176 * score-tdep.c: Same.
2180 * sol-thread.c: Same.
2181 * solib-svr4.c: Same.
2184 * sparc-nat.c: Same.
2185 * sparc-sol2-tdep.c: Same.
2186 * sparc-tdep.c: Same.
2187 * sparc64-tdep.c: Same.
2188 * stabsread.c: Same.
2192 * target-descriptions.c: Same.
2193 * target-float.c: Same.
2200 * windows-nat.c: Same.
2201 * xcoffread.c: Same.
2202 * xstormy16-tdep.c: Same.
2203 * xtensa-tdep.c: Same.
2205 2019-10-17 Tom Tromey <tromey@adacore.com>
2207 * configure: Rebuild.
2208 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2209 in AC_CONFIG_FILES invocation.
2210 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2211 new-style config.status invocation.
2213 2019-10-17 Tom de Vries <tdevries@suse.de>
2215 * arm-nbsd-nat.c: Fix typos in comments.
2217 * darwin-nat-info.c: Same.
2218 * dwarf2read.c: Same.
2220 * event-top.c: Same.
2223 * hppa-tdep.c: Same.
2224 * i386-tdep.c: Same.
2227 * mdebugread.c: Same.
2228 * moxie-tdep.c: Same.
2229 * nto-procfs.c: Same.
2231 * ppc-linux-tdep.c: Same.
2233 * riscv-tdep.c: Same.
2234 * s390-tdep.c: Same.
2236 * sparc-linux-tdep.c: Same.
2237 * sparc-nat.c: Same.
2239 * target-descriptions.c: Same.
2243 2019-10-16 Tom Tromey <tom@tromey.com>
2245 * objfiles.h (struct objfile) <original_name>: Now const.
2247 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2249 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2250 pass on to sigsetjmp's second argument.
2251 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2253 2019-10-16 Keith Seitz <keiths@redhat.com>
2256 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2257 sections whose size is greater than the file size.
2259 2019-10-16 Jim Wilson <jimw@sifive.com>
2261 * riscv-tdep.c (riscv_gcc_target_options): New.
2262 (riscv_gnu_triplet_regexp): New.
2263 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2264 set_gdbarch_gnu_triplet_regexp.
2266 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2268 * Makefile.in: Add xml-builtin.h.
2269 * features/feature_to_c.sh: Add an include for xml-builtin.h
2270 to ensure that the compiler checks that the types match.
2271 * xml-builtin.h: New file.
2272 * xml-support.c (fetch_xml_builtin): Add missing const.
2273 * xml-support.h: Remove declaration of xml_builtins.
2275 2019-10-16 Tom de Vries <tdevries@suse.de>
2278 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2279 (amd64_classify_aggregate): ... here.
2280 (amd64_classify_aggregate_field): Handled fiels of nested structs
2283 2019-10-16 Tom de Vries <tdevries@suse.de>
2286 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2287 that handles 'theclass'.
2289 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2291 * linespec.c (decode_digits_ordinary): Update comment.
2292 * make-target-delegates: No longer need to handle VEC case.
2293 * memrange.c (normalize_mem_ranges): Update comment.
2294 * namespace.c (add_using_directive): Update comment.
2295 * objc-lang.c (uniquify_strings): Update comment.
2296 * ppc-linux-nat.c (struct thread_points): Update comment.
2297 * probe.h (find_probes_in_objfile): Update comment.
2298 * target.h (enum flash_preserve_mode): Update comment.
2299 * varobj.c (varobj_restrict_range): Update comment.
2300 * varobj.h (varobj_list_children): Update comment.
2302 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2304 * Makefile.in: Remove references to vec.h and vec.c.
2305 * aarch64-tdep.c: No longer include vec.h.
2306 * ada-lang.c: Likewise.
2307 * ada-lang.h: Likewise.
2308 * arm-tdep.c: Likewise.
2310 * breakpoint.h: Likewise.
2311 * charset.c: Likewise.
2312 * cp-support.h: Likewise.
2313 * dtrace-probe.c: Likewise.
2314 * dwarf2read.c: Likewise.
2315 * extension.h: Likewise.
2316 * gdb_bfd.c: Likewise.
2317 * gdbsupport/gdb_vecs.h: Likewise.
2318 * gdbsupport/vec.c: Remove.
2319 * gdbsupport/vec.h: Remove.
2320 * gdbthread.h: Likewise.
2321 * guile/scm-type.c: Likewise.
2322 * inline-frame.c: Likewise.
2323 * machoread.c: Likewise.
2324 * memattr.c: Likewise.
2325 * memrange.h: Likewise.
2326 * namespace.h: Likewise.
2327 * nat/linux-btrace.h: Likewise.
2328 * osdata.c: Likewise.
2329 * parser-defs.h: Likewise.
2330 * progspace.h: Likewise.
2331 * python/py-type.c: Likewise.
2332 * record-btrace.c: Likewise.
2333 * rust-exp.y: Likewise.
2334 * solib-target.c: Likewise.
2335 * stap-probe.c: Likewise.
2336 * target-descriptions.c: Likewise.
2337 * target-memory.c: Likewise.
2338 * target.h: Likewise.
2339 * varobj.c: Likewise.
2340 * varobj.h: Likewise.
2341 * xml-support.h: Likewise.
2343 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2345 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2346 Update for new std::vector based implementation.
2347 (process_psymtab_comp_unit_reader): Likewise.
2348 (scan_partial_symbols): Likewise.
2349 (recursively_compute_inclusions): Likewise.
2350 (compute_compunit_symtab_includes): Likewise.
2351 (process_imported_unit_die): Likewise.
2352 (queue_and_load_dwo_tu): Likewise.
2353 (follow_die_sig_1): Likewise.
2354 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2355 (typedef dwarf2_per_cu_ptr): Remove.
2356 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2358 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2359 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2360 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2361 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2364 2019-10-15 Tom Tromey <tromey@adacore.com>
2366 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2369 2019-10-15 Tom Tromey <tromey@adacore.com>
2371 * windows-nat.c (windows_nat_target::fetch_registers)
2372 (windows_nat_target::store_registers): Rename "pid" to "tid".
2374 2019-10-15 Tom Tromey <tromey@adacore.com>
2376 * gdbarch.h, gdbarch.c: Rebuild.
2377 * gdbarch.sh (gcc_target_options): Change return type to
2379 * compile/compile.c (get_args): Update.
2380 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2381 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2383 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2385 * arch-utils.c (default_gcc_target_options): Return std::string.
2386 * arch-utils.h (default_gcc_target_options): Return std::string.
2387 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2389 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2391 * breakpoint.c (breakpoint_chain): Make static.
2392 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2393 of accessing breakpoint_chain.
2395 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2397 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2398 to a gdb::function_view and return value to bool.
2399 * breakpoint.h (iterate_over_breakpoints): Likewise.
2400 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2401 (pop_dummy_frame): Update.
2402 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2403 (gdbscm_breakpoints): Update.
2404 * python/py-breakpoint.c (build_bp_list): Update.
2405 (gdbpy_breakpoints): Update.
2406 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2408 (bpfinishpy_handle_stop): Update.
2409 (bpfinishpy_handle_exit): Update.
2410 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2411 (svr4_update_solib_event_breakpoints): Update.
2413 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2415 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2416 when unwrapping single-field structs.
2418 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2420 * dwarf2read.c: Remove includes.
2422 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2424 * ui-out.c (ui_out::call_do_message): Silence
2425 -Wformat-nonliteral warning.
2427 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2429 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2430 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2431 include: readline/tilde.h.
2433 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2435 * remote.c (remote_target::get_trace_status): Remove declaration of
2436 trace_regblock_size.
2438 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2440 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2441 (show_user): Remove declaration of cmdlist.
2442 * cli/cli-cmds.h (max_user_call_depth): Declare.
2443 * cli/cli-script.c (execute_user_command): Remove declaration
2444 of max_user_call_depth.
2446 2019-10-11 Jim Wilson <jimw@sifive.com>
2448 * gdbsupport/print-utils.h (pulongest): Fix comment.
2449 (plongest): Likewise.
2450 (phex): Add missing comment, mention leading zeros.
2451 (phex_nz): Add mention of no leading zeros to comment.
2453 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2454 plongest instead of unsigned long long cast.
2456 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2458 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2459 for external_editor_command and gdbtk_test.
2461 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2463 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2464 * varobj.c (varobjdebug): Move comment to...
2465 * varobj.h (varobjdebug): ...here, and declare.
2467 2019-10-09 Tom Tromey <tom@tromey.com>
2469 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2472 2019-10-09 Tom Tromey <tom@tromey.com>
2474 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2475 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2476 * tui/tui-command.c (tui_cmd_window::resize)
2477 (tui_refresh_cmd_win): Update.
2478 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2479 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2480 * tui/tui-data.c (~tui_gen_win_info): Remove.
2481 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2482 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2483 (tui_redisplay_readline, tui_mld_flush)
2484 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2485 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2486 (tui_data_window::erase_data_content)
2487 (tui_data_item_window::rerender)
2488 (tui_data_item_window::refresh_window): Update.
2489 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2490 (box_win, tui_gen_win_info::make_window)
2491 (tui_gen_win_info::make_visible): Update.
2492 (tui_delete_win): Remove.
2493 * tui/tui-winsource.c
2494 (tui_source_window_base::do_erase_source_content): Update.
2495 (tui_show_source_line, tui_source_window_base::update_tab_width)
2496 (tui_source_window_base::update_exec_info): Update.
2497 * tui/tui-data.h (struct curses_deleter): New.
2498 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2499 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2501 2019-10-09 Tom Tromey <tom@tromey.com>
2503 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2505 2019-10-09 Tom Tromey <tom@tromey.com>
2507 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2508 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2510 2019-10-09 Tom Tromey <tom@tromey.com>
2512 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2513 window height directly.
2514 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2516 * tui/tui-layout.c (tui_default_win_height): Remove.
2517 (tui_default_win_viewport_height): Remove.
2519 2019-10-09 Tom Tromey <tom@tromey.com>
2521 * tui/tui.h: Remove comments.
2523 2019-10-09 Tom de Vries <tdevries@suse.de>
2525 * python/lib/gdb/printer/bound_registers.py: Use
2526 '^builtin_type_bound128' as regexp argument for
2527 add_builtin_pretty_printer.
2529 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2531 * guile/guile.c (guile_extension_script_ops): Remove forward
2532 declaration and mark as static.
2533 (guile_script_ops): Likewise.
2534 (extension_language_guile): Move further down in the file so
2535 it can reference the definitions for guile_{extension_,}script_ops.
2537 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2539 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2540 except SORTL, DFLTCC, and KDSA.
2542 2019-10-08 Tom Tromey <tromey@adacore.com>
2544 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2545 (struct safe_symbol_file_add_args): Remove.
2547 2019-10-08 Tom Tromey <tromey@adacore.com>
2549 * windows-nat.c: Don't include buildsym-legacy.h.
2551 2019-10-08 Tom Tromey <tromey@adacore.com>
2553 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2555 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2557 * gdbtypes.c (overload_debug): Move comment to header.
2558 * gdbtypes.h (overload_debug): Declare.
2559 * valops.c: Remove declaration of overload_debug, instead
2562 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2564 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2566 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2568 * language.h (lang_frame_mismatch_warn): ... here. Also add
2570 * top.c (lang_frame_mismatch_warn): Remove declaration.
2571 (check_frame_language_change): Pass lang_frame_mismatch_warn
2574 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2576 * c-lang.h (vtbl_ptr_name): Declare.
2577 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2579 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2581 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2583 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2586 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2588 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2589 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2590 * ctfread.c: New file.
2591 * ctfread.h: New file.
2592 * elfread.c: Include ctfread.h.
2593 (struct elfinfo text_p): New member ctfsect.
2594 (elf_locate_sections): Mark CTF section.
2595 (elf_symfile_read): Call elfctf_build_psymtabs.
2596 * Makefile.in (LIBCTF): Add.
2599 (DIST): Add ctfread.c.
2601 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2603 * ctfread.c (struct nextfield): Renamed to ...
2604 (struct ctf_nextfield): ... this.
2605 (struct field_info): Renamed to ...
2606 (strut ctf_field_info): ... this.
2607 (attach_fields_to_type): Update for renamed structures.
2608 (ctf_add_member_cb): Likewise.
2609 (ctf_add_enum_member_cb): Likewise.
2610 (process_struct_members): Likewise.
2611 (process_enum_type): Likewise.
2613 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2615 * tracectf.h: Rename, was ctf.h.
2616 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2617 * tracefile.c: Likewise.
2618 * tracepoint.c: Remove unused include ctf.h.
2619 * mi/mi-main.c: Likewise.
2620 * Makefile.in Replace ctf.c with tracectf.c.
2622 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2624 * version.in: Change version number to "9.0.50.DATE-git".
2626 2019-10-03 Tom Tromey <tom@tromey.com>
2629 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2631 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2633 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2634 cp_search_name_hash.
2635 * NEWS: Add entry about nested function support.
2637 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2638 Andrew Burgess <andrew.burgess@embecosm.com>
2640 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2641 for nested static variables when searchin VAR_DOMAIN.
2642 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2643 global scope, update comment.
2644 (add_partial_subprogram): Call add_partial_subprogram recursively
2645 for nested subroutines when processinng Fortran.
2646 (load_partial_dies): Process the child entities of a subprogram
2647 when processing Fortran.
2648 (partial_die_parent_scope): Handle building scope
2649 for Fortran nested functions.
2650 (process_die): Record that nested functions have a scope.
2651 (new_symbol): Always record Fortran subprograms on the global
2653 (determine_prefix): How to build the prefix for Fortran
2656 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2658 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2659 have just sent the thread a SIGSTOP and are waiting for it to
2662 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2664 * btrace.c (btrace_add_pc): Remove whitespace before the template
2665 parameter in 'std::vector <...>'.
2666 (parse_xml_btrace_block): Likewise.
2667 (btrace_maint_decode_pt): Likewise.
2668 (btrace_maint_update_packets): Likewise.
2669 (btrace_maint_print_packets): Likewise.
2670 * btrace.h (struct btrace_maint_info): Likewise.
2671 * dwarf2read.c (struct type_unit_group): Likewise.
2672 (build_type_psymtabs_reader): Likewise.
2673 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2674 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2675 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2677 2019-10-03 Tom de Vries <tdevries@suse.de>
2679 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2680 the first line of the help text for set/show style metadata.
2682 2019-10-02 Tom Tromey <tromey@adacore.com>
2684 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2685 * gdbsupport/common-inferior.c: New file.
2686 * infcmd.c (startup_with_shell): Don't define.
2687 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2688 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2689 * inferior.h (startup_with_shell): Don't declare.
2691 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2693 * gdbsupport/gdb_assert.h: Include errors.h.
2694 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2696 2019-10-02 Tom Tromey <tromey@adacore.com>
2698 * NEWS: Add $_ada_exception entry.
2699 * ada-lang.c (struct ada_catchpoint): Add constructor.
2700 <m_kind>: New member.
2701 (allocate_location_exception, re_set_exception): Remove
2703 (should_stop_exception): Compute $_ada_exception.
2704 (check_status_exception, print_it_exception)
2705 (print_one_exception, print_mention_exception): Remove
2707 (allocate_location_catch_exception, re_set_catch_exception)
2708 (check_status_exception, print_it_catch_exception)
2709 (print_one_catch_exception, print_mention_catch_exception)
2710 (print_recreate_catch_exception)
2711 (allocate_location_catch_exception_unhandled)
2712 (re_set_catch_exception_unhandled)
2713 (check_status_exception, print_it_catch_exception_unhandled)
2714 (print_one_catch_exception_unhandled)
2715 (print_mention_catch_exception_unhandled)
2716 (print_recreate_catch_exception_unhandled)
2717 (allocate_location_catch_assert, re_set_catch_assert)
2718 (check_status_assert, print_it_catch_assert)
2719 (print_one_catch_assert, print_mention_catch_assert)
2720 (print_recreate_catch_assert)
2721 (allocate_location_catch_handlers, re_set_catch_handlers)
2722 (check_status_handlers, print_it_catch_handlers)
2723 (print_one_catch_handlers, print_mention_catch_handlers)
2724 (print_recreate_catch_handlers): Remove.
2725 (create_ada_exception_catchpoint): Update.
2726 (initialize_ada_catchpoint_ops): Update.
2728 2019-10-02 Tom Tromey <tromey@adacore.com>
2730 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2731 (create_excep_cond_exprs): Simplify exception string computation.
2732 (ada_exception_catchpoint_cond_string): Likewise.
2734 2019-10-02 Tom Tromey <tromey@adacore.com>
2736 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2737 * ada-lang.c (lesseq_defined_than): Handle
2739 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2741 (dwarf2_has_info): Likewise.
2742 (new_symbol): Set maybe_copied on symbol when
2744 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2746 <can_copy>: New member.
2747 * elfread.c (record_minimal_symbol): Set maybe_copied
2748 on symbol when appropriate.
2749 (elf_symfile_read): Update call to dwarf2_has_info.
2750 * minsyms.c (lookup_minimal_symbol_linkage): New
2752 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2753 * symtab.c (get_symbol_address, get_msymbol_address):
2755 * symtab.h (get_symbol_address, get_msymbol_address):
2757 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2759 (struct symbol, struct minimal_symbol) <maybe_copied>:
2762 2019-10-02 Tom Tromey <tromey@adacore.com>
2764 * source.c (struct current_source_location): New.
2765 (current_source_key): New global.
2766 (current_source_symtab, current_source_line)
2767 (current_source_pspace): Remove.
2768 (get_source_location): New function.
2769 (get_current_source_symtab_and_line)
2770 (set_default_source_symtab_and_line)
2771 (set_current_source_symtab_and_line)
2772 (clear_current_source_symtab_and_line, select_source_symtab)
2773 (info_source_command, print_source_lines_base)
2774 (info_line_command, search_command_helper, _initialize_source):
2777 2019-10-02 Tom Tromey <tromey@adacore.com>
2779 * source.c (select_source_symtab): Don't call
2780 decode_line_with_current_source.
2782 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2784 * symtab.c (lookup_global_symbol): Search global block.
2786 2019-10-02 Tom Tromey <tromey@adacore.com>
2788 * coffread.c (process_coff_symbol): Update.
2789 * dwarf2read.c (var_decode_location, new_symbol): Update.
2790 * mdebugread.c (parse_symbol): Update.
2791 * objfiles.c (relocate_one_symbol): Update.
2792 * stabsread.c (define_symbol, fix_common_block)
2793 (scan_file_globals): Update.
2794 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2795 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2796 * xcoffread.c (process_xcoff_symbol): Update.
2798 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2800 * MAINTAINERS: Update my email address.
2802 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2804 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2806 (build_type_psymtabs_reader): Update for std::vector.
2807 (build_type_psymtab_dependencies): Likewise.
2808 * dwarf2read.h: Remove use of DEF_VEC_P.
2809 (typedef sig_type_ptr): Delete.
2811 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2813 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2815 (btrace_maint_decode_pt): Likewise, and move allocation of the
2816 vector outside of the loop.
2817 (btrace_maint_update_packets): Update to handle change from VEC to
2819 (btrace_maint_print_packets): Likewise.
2820 (maint_info_btrace_cmd): Likewise.
2821 * btrace.h: Remove use of DEF_VEC_O.
2822 (typedef btrace_pt_packet_s): Delete.
2823 (struct btrace_maint_info) <packets>: Change fromm VEC to
2825 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2827 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2829 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2830 make accesses into the vector constant references.
2831 (btrace_add_pc): Update for std::vector.
2832 (btrace_stitch_bts): Likewise.
2833 (parse_xml_btrace_block): Likewise.
2834 (btrace_maint_update_packets): Likewise.
2835 (btrace_maint_print_packets): Likewise.
2836 (maint_info_btrace_cmd): Likewise.
2837 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2839 (btrace_data::empty): Likewise.
2840 (btrace_data_append): Likewise.
2841 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2842 (typedef btrace_block_s): Delete.
2843 (struct btrace_block): Add constructor.
2844 (struct btrace_data_bts) <blocks>: Change to std::vector.
2845 * nat/linux-btrace.c (perf_event_read_bts): Update for
2847 (linux_read_bts): Likewise.
2849 2019-10-01 Tom Tromey <tom@tromey.com>
2851 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2853 2019-10-01 Tom Tromey <tom@tromey.com>
2855 * stack.c (print_frame, info_frame_command_core): Use
2857 * linux-thread-db.c (try_thread_db_load_1)
2858 (try_thread_db_load_from_pdir_1): Use styled_string.
2859 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2860 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2861 (maybe_print_unsupported_script_warning)
2862 (maybe_print_script_not_found_warning): Use styled_string.
2863 * ada-lang.c (user_select_syms): Use styled_string.
2865 2019-10-01 Tom Tromey <tom@tromey.com>
2867 * p-lang.c (pascal_printstr): Use metadata style.
2868 * value.c (show_convenience): Use metadata style.
2869 * valprint.c (valprint_check_validity, val_print_optimized_out)
2870 (val_print_not_saved, val_print_unavailable)
2871 (val_print_invalid_address, generic_val_print, val_print)
2872 (value_check_printable, val_print_array_elements): Use metadata
2874 * ui-out.h (class ui_out) <field_fmt>: New overload.
2875 <do_field_fmt>: Add style parameter.
2876 * ui-out.c (ui_out::field_fmt): New overload.
2877 * typeprint.c (type_print_unknown_return_type)
2878 (val_print_not_allocated, val_print_not_associated): Use metadata
2880 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2882 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2883 * tracepoint.c (tvariables_info_1): Use metadata style.
2884 * stack.c (print_frame_arg, print_frame_info, print_frame)
2885 (info_frame_command_core): Use metadata style.
2886 * skip.c (info_skip_command): Use metadata style.
2887 * rust-lang.c (rust_print_enum): Use metadata style.
2888 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2890 * python/py-framefilter.c (py_print_single_arg): Use metadata
2892 * printcmd.c (do_one_display, print_variable_and_value): Use
2894 * p-valprint.c (pascal_val_print)
2895 (pascal_object_print_value_fields): Use metadata style.
2896 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2897 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2899 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2900 * m2-valprint.c (m2_print_long_set): Use metadata style.
2901 * m2-typeprint.c (m2_print_type): Use metadata style.
2902 * infcmd.c (print_return_value_1): Use metadata style.
2903 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2904 * f-valprint.c (info_common_command_for_block): Use metadata
2906 * f-typeprint.c (f_type_print_base): Use metadata style.
2907 * expprint.c (print_subexp_standard): Use metadata style.
2908 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2909 * cli/cli-style.h (class cli_style_option): Add constructor.
2910 (metadata_style): Declare.
2911 * cli/cli-style.c (metadata_style): New global.
2912 (_initialize_cli_style): Register metadata style.
2913 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2915 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2916 * c-typeprint.c (c_type_print_base_struct_union)
2917 (c_type_print_base_1): Use metadata style.
2918 * breakpoint.c (watchpoint_value_print)
2919 (print_one_breakpoint_location): Use metadata style.
2920 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2922 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2924 * ada-valprint.c (val_print_packed_array_elements, printstr)
2925 (print_field_values, ada_val_print_ref, ada_val_print): Use
2927 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2929 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2931 * ada-lang.c (user_select_syms): Use metadata style.
2933 2019-10-01 Tom Tromey <tom@tromey.com>
2935 * cli/cli-cmds.c (pwd_command): Style output.
2937 2019-10-01 Pedro Alves <palves@redhat.com>
2938 Tom Tromey <tom@tromey.com>
2940 * symtab.c (print_symbol_info): Use %ps.
2941 (print_msymbol_info): Use %ps.
2942 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2943 * printcmd.c (print_variable_and_value): Use %ps.
2944 * macrocmd.c (show_pp_source_pos): Use %ps.
2945 * infrun.c (print_exited_reason): Use ui_out::message.
2946 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2947 (describe_other_breakpoints): Use ui_out::message and new
2949 (say_where): Use new formats.
2950 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2953 2019-10-01 Pedro Alves <palves@redhat.com>
2954 Tom Tromey <tom@tromey.com>
2956 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2957 (test_gdb_formats): New function.
2958 (run_tests): Call it.
2959 (test_format_specifier): Update.
2960 * utils.h (fputs_filtered): Update comment.
2961 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2962 (fputs_styled_unfiltered): Declare.
2963 * utils.c (fputs_styled_unfiltered): New function.
2964 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2965 (vfprintf_filtered): Update.
2966 (vfprintf_unfiltered, vprintf_filtered): Update.
2967 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2968 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2969 disallow_ui_out_field>: New constants.
2970 (enum class field_kind): New.
2971 (struct base_field_s, struct signed_field_s): New.
2972 (signed_field): New function.
2973 (struct string_field_s): New.
2974 (string_field): New function.
2975 (struct styled_string_s): New.
2976 (styled_string): New function.
2977 (class ui_out) <message>: Add comment.
2978 <vmessage, call_do_message>: New methods.
2979 <do_message>: Add style parameter.
2980 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2982 (ui_out::message): Rewrite.
2983 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2985 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2986 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2987 gdb_extensions parameter.
2988 (class format_piece): Add parameter to constructor.
2989 (n_int_args): New field.
2990 * gdbsupport/format.c (format_pieces::format_pieces): Add
2991 gdb_extensions parameter. Handle '*'.
2992 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2993 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2994 vfprintf_styled_no_gdbfmt.
2995 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2996 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2998 * ui-style.h (struct ui_file_style) <ptr>: New method.
3000 2019-10-01 Tom Tromey <tom@tromey.com>
3002 * unittests/format_pieces-selftests.c: Update. Add final format.
3003 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3004 empty literal pieces.
3006 2019-10-01 Tom Tromey <tom@tromey.com>
3008 * ui-out.h (enum class ui_out_style_kind): Remove.
3009 (class ui_out) <field_string, field_stsream, do_field_string>:
3010 Change type of "style".
3011 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3012 (ui_out::field_string): Update.
3013 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3015 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3016 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3017 * stack.c (print_frame_arg, print_frame_info, print_frame):
3019 * source.c (print_source_lines_base): Update.
3020 * solib.c (info_sharedlibrary_command): Update.
3021 * skip.c (info_skip_command): Update.
3022 * record-btrace.c (btrace_call_history_src_line)
3023 (btrace_call_history): Update.
3024 * python/py-framefilter.c (py_print_frame): Update.
3025 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3027 * mi/mi-out.c (mi_ui_out::do_table_header)
3028 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3029 (mi_ui_out::do_field_string): Update.
3030 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3032 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3034 * cli-out.c (cli_ui_out::do_table_header)
3035 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3036 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3037 (cli_ui_out::do_field_fmt): Update.
3038 * breakpoint.c (print_breakpoint_location): Update.
3039 (update_static_tracepoint): Update.
3041 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3043 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3044 conversion of gdb_datadir.
3045 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3046 remove not needed c_str ().
3048 2019-09-30 Ali Tamur <tamur@google.com>
3050 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3051 (dwarf2_string_attr): Likewise.
3053 2019-09-30 Ali Tamur <tamur@google.com>
3055 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3056 (process_full_type_unit): Likewise.
3057 (dump_die_shallow): Likewise.
3058 (cu_debug_loc_section): Likewise.
3060 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3062 * minsyms.c (compare_minimal_symbols): Rename to...
3063 (minimal_symbol_is_less_than): ...this, and adjust to STL
3064 conventions (return bool, take arguments as references)
3065 (minimal_symbol_reader::install): Call std::sort instead
3068 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3070 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3072 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3073 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3075 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3077 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3078 * psympriv.h (add_psymbol_to_list): Move comment here and update
3081 2019-09-29 Tom de Vries <tdevries@suse.de>
3083 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3084 Use $tmpdir/$(basename "$output_file").dwz instead of
3085 "${output_file}.dwz".
3087 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3090 * hppa-linux-nat.c: Include gdbarch.h.
3092 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3094 * blockframe.c (find_pc_partial_function): Change return type to bool.
3095 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3096 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3097 (stub_gnu_ifunc_resolve_name): Likewise.
3098 * symtab.c (compare_filenames_for_search): Likewise.
3099 (compare_glob_filenames_for_search): Likewise.
3100 (matching_obj_sections): Likewise.
3101 (symbol_matches_domain): Likewise.
3102 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3103 (find_line_pc): Change return type to bool.
3104 (find_line_pc_range): Likewise.
3105 (producer_is_realview): Likewise.
3106 * symtab.h (symbol_matches_domain): Likewise.
3107 (find_pc_partial_function): Likewise.
3108 (find_pc_line_pc_range): Likewise.
3109 (in_gnu_ifunc_stub): Likewise.
3110 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3111 (find_line_pc): Likewise.
3112 (find_line_pc_range): Likewise.
3113 (matching_obj_sections): Likewise.
3114 (find_line_symtab): Change out parameter to bool.
3115 (producer_is_realview): Change return type to bool.
3116 (compare_filenames_for_search): Likewise.
3117 (compare_glob_filenames_for_search): Likewise.
3119 2019-09-26 Tom Tromey <tom@tromey.com>
3121 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3122 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3123 * gdb_usleep.h: Remove.
3124 * gdb_usleep.c: Remove.
3125 * utils.c: Don't include gdb_usleep.h.
3127 2019-09-26 Tom Tromey <tromey@adacore.com>
3129 * python/py-type.c (type_to_type_object): Call check_typedef
3132 2019-09-26 Tom Tromey <tom@tromey.com>
3134 * utils.h (initialize_utils): Don't declare.
3135 * top.c (gdb_init): Don't call initialize_utils.
3136 * utils.c (initialize_utils): Remove. Move contents...
3137 (_initialize_utils): ... here.
3139 2019-09-25 Tom Tromey <tom@tromey.com>
3141 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3142 * utils.h (make_hex_string): Don't declare.
3143 * utils.c (make_hex_string): Remove.
3145 2019-09-24 Tom de Vries <tdevries@suse.de>
3148 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3149 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3151 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3153 * NEWS: Mention new simulator port for PRU.
3155 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3157 * ada-exp.y (write_object_remaining): Update.
3158 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3159 and eliminate the static buffer.
3160 (ada_decode_symbol): Update.
3161 (ada_la_decode): Update.
3162 (ada_sniff_from_mangled_name): Update.
3163 (is_valid_name_for_wild_match): Update.
3164 (ada_lookup_name_info::matches): Update and simplify.
3165 (name_matches_regex): Update.
3166 (ada_add_global_exceptions): Update.
3167 * ada-lang.h (ada_decode): Update signature.
3168 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3169 * dwarf-index-write.c (debug_names::insert): Update.
3171 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3173 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3176 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3178 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3179 Change "nonzero" to "true" in documentation.
3181 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3183 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3184 (_initialize_darwin_solib): Don't set
3185 darwin_so_ops.lookup_lib_global_symbol.
3186 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3187 set_gdbarch_iterate_over_objfiles_in_search_order.
3188 (elf_lookup_lib_symbol): Rename to...
3189 (svr4_iterate_over_objfiles_in_search_order): this, and update
3190 to iterate semantics.
3191 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3192 * solib.c (solib_global_lookup): Remove.
3193 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3194 (solib_global_lookup): Remove.
3195 * symtab.c (lookup_global_or_static_symbol): Remove call to
3196 solib_global_lookup.
3198 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3200 * NEWS: Move entries about default MI version now being
3201 version 3, and about the GDB/MI fix for multi-location
3202 breakpoints to the "since GDB 8.3" section.
3204 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3208 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3210 * NEWS: Mention that Cell/B.E. debugging support was removed.
3211 * MAINTAINERS: Remove spu target.
3213 * config/djgpp/fnchange.lst: Remove entries for removed files.
3215 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3216 spu-multiarch.o, and spu-tdep.o.
3217 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3218 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3219 spu-multiarch.c, and spu-tdep.c.
3220 * spu-linux-nat.c: Remove file.
3221 * spu-multiarch.c: Remove file.
3222 * spu-tdep.c: Remove file.
3223 * spu-tdep.h: Remove file.
3224 * solib-spu.c: Remove file.
3225 * solib-spu.h: Remove file.
3227 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3228 * configure.nat (spu-linux): Remove.
3229 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3230 solib-multiarch.o from gdb_target_obs.
3233 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3235 (ppc_linux_no_features): Update.
3236 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3238 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3239 (tdesc_powerpc_cell64l): Likewise.
3240 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3241 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3243 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3244 Do not include "features/rs6000/powerpc-cell32l.c" or
3245 "features/rs6000/powerpc-cell64l.c".
3246 (ppc_linux_spu_section): Remove.
3247 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3248 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3249 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3250 (ppc_linux_spe_context_lookup): Remove.
3251 (ppc_linux_spe_context_inferior_created): Remove.
3252 (ppc_linux_spe_context_solib_loaded): Remove.
3253 (ppc_linux_spe_context_solib_unloaded): Remove.
3254 (ppc_linux_spe_context): Remove.
3255 (struct ppu2spu_cache): Remove.
3256 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3257 (struct ppu2spu_data): Remove.
3258 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3259 ppu2spu_unwind): Remove.
3260 (ppc_linux_init_abi): Remove Cell/B.E. support.
3261 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3263 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3264 (rs6000/powerpc-cell64l-expedite): Likewise
3265 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3266 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3267 rs6000/powerpc-cell64l.xml.
3268 * features/rs6000/powerpc-cell32l.xml: Remove.
3269 * features/rs6000/powerpc-cell64l.xml: Likewise.
3270 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3271 * features/rs6000/powerpc-cell64l.c: Likewise.
3272 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3273 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3274 * regformats/reg-spu.dat: Remove.
3276 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3277 * corelow.c (struct spuid_list): Remove.
3278 (add_to_spuid_list): Remove.
3279 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3280 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3281 (remote_protocol_features): Remove associated entries.
3282 (_initialize_remote): No longer initialize them.
3283 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3284 * linux-nat.c (SPUFS_MAGIC): Remove.
3285 (linux_proc_xfer_spu): Remove.
3286 (spu_enumerate_spu_ids): Remove.
3287 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3288 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3289 (linux_make_corefile_notes): No longer call it.
3291 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3292 (cooked_write_test): Likewise.
3294 2019-09-20 Tom Tromey <tom@tromey.com>
3296 * NEWS: Mention case-sensitivity of TUI commands.
3297 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3298 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3299 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3301 2019-09-20 Tom Tromey <tom@tromey.com>
3303 * tui/tui-source.c (tui_source_window::set_contents): Use
3304 make_unique_xstrdup.
3305 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3306 make_unique_xstrdup.
3308 2019-09-20 Tom Tromey <tom@tromey.com>
3310 * tui/tui-data.c: Remove separator comments.
3311 * tui/tui-layout.c: Remove separator comments.
3312 * tui/tui-win.c: Remove separator comments.
3313 * tui/tui-wingeneral.c: Remove separator comments.
3315 2019-09-20 Tom Tromey <tom@tromey.com>
3317 * tui/tui.h (strcat_to_buf): Don't declare.
3318 * tui/tui.c (strcat_to_buf): Remove.
3320 2019-09-20 Tom Tromey <tom@tromey.com>
3322 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3324 * tui/tui-source.c (tui_source_window::set_contents)
3325 (tui_source_window::location_matches_p)
3326 (tui_source_window::maybe_update): Update.
3328 2019-09-20 Tom Tromey <tom@tromey.com>
3330 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3332 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3334 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3335 (tui_data_window::line_from_reg_element_no)
3336 (tui_data_window::first_reg_element_no_inline)
3337 (tui_data_window::show_registers)
3338 (tui_data_window::show_register_group)
3339 (tui_data_window::display_registers_from)
3340 (tui_data_window::display_registers_from_line)
3341 (tui_data_window::first_data_item_displayed)
3342 (tui_data_window::delete_data_content_windows)
3343 (tui_data_window::erase_data_content)
3344 (tui_data_window::do_scroll_vertical)
3345 (tui_data_window::refresh_window)
3346 (tui_data_window::check_register_values): Update.
3348 2019-09-20 Tom Tromey <tom@tromey.com>
3350 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3351 (struct tui_locator_window) <full_name, proc_name>: Now
3353 * tui/tui-stack.c (tui_locator_window::make_status_line)
3354 (tui_locator_window::set_locator_fullname)
3355 (tui_locator_window::set_locator_info): Update.
3356 * tui/tui-source.c (tui_source_window::set_contents)
3357 (tui_source_window::showing_source_p): Update.
3359 2019-09-20 Tom Tromey <tom@tromey.com>
3361 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3362 Don't call tui_locator_win_info_ptr.
3364 2019-09-20 Tom Tromey <tom@tromey.com>
3366 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3368 2019-09-20 Tom Tromey <tom@tromey.com>
3370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3372 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3373 * tui/tui-layout.c (show_source_disasm_command, show_data)
3374 (show_source_or_disasm_and_command): Use 1 as height for locator.
3376 2019-09-20 Tom Tromey <tom@tromey.com>
3378 * tui/tui.c (tui_enable): Update.
3379 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3381 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3383 * tui/tui-data.c (win_resized): Now bool.
3384 (tui_win_resized): Return bool.
3385 (tui_set_win_resized_to): Accept a bool.
3387 2019-09-20 Tom Tromey <tom@tromey.com>
3389 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3390 Change type of "refresh_values_only".
3391 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3392 type of "refresh_values_only".
3394 2019-09-20 Tom Tromey <tom@tromey.com>
3396 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3398 (tui_disassemble): Add "pos" parameter.
3399 (tui_disasm_window::set_contents): Simplify.
3401 2019-09-20 Tom Tromey <tom@tromey.com>
3403 * tui/tui-winsource.h (struct tui_source_window_base)
3404 <show_source_content>: Now private.
3405 * tui/tui-winsource.c
3406 (tui_source_window_base::show_source_content): Don't handle empty
3409 2019-09-20 Tom Tromey <tom@tromey.com>
3411 * tui/tui-layout.c (show_source_disasm_command)
3412 (show_source_or_disasm_and_command): Don't call
3413 show_source_content.
3415 2019-09-20 Tom Tromey <tom@tromey.com>
3417 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3419 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3420 from tui_make_status_line.
3421 (tui_locator_window::rerender): Update.
3423 2019-09-20 Tom Tromey <tom@tromey.com>
3425 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3426 (tui_locator_window::rerender): Update.
3428 2019-09-20 Tom Tromey <tom@tromey.com>
3430 * tui/tui-winsource.h (struct tui_source_window_base)
3431 <~tui_source_window_base>: Don't declare.
3433 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3434 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3436 * tui/tui-source.c (tui_source_window::set_contents): Update.
3437 (tui_source_window::location_matches_p)
3438 (tui_source_window::maybe_update): Update.
3440 2019-09-20 Tom Tromey <tom@tromey.com>
3442 * tui/tui-winsource.h (~tui_source_element): Remove.
3443 (tui_source_element): Update.
3444 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3445 * tui/tui-winsource.c (tui_show_source_line): Update.
3446 * tui/tui-source.c (tui_source_window::set_contents): Update.
3447 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3449 2019-09-20 Tom Tromey <tom@tromey.com>
3451 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3453 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3454 tui_clear_source_windows_detail.
3455 * tui/tui-winsource.h (struct tui_source_window_base)
3456 <clear_detail>: Don't declare.
3457 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3459 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3461 2019-09-20 Tom Tromey <tromey@adacore.com>
3464 * block.c (contained_in): Fix final return value.
3466 2019-09-20 Alan Modra <amodra@gmail.com>
3468 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3469 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3470 (read_indirect_string_from_dwz): Use bfd accessor.
3471 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3472 * machoread.c (macho_symfile_read_all_oso): Likewise.
3473 * solib.c (solib_bfd_open): Likewise.
3475 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3477 * eval.c: Move declaration of overload_resolution to...
3480 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3482 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3483 * arm-linux-tdep.c: Likewise.
3484 * arm-nbsd-nat.c: Likewise.
3485 * arm-tdep.h: Declare arm_apcs_32.
3486 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3488 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3490 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3491 * dwarf2read.h: Declare dwarf_always_disassemble.
3493 2019-09-19 Tom de Vries <tdevries@suse.de>
3496 * source-cache.c (source_cache::ensure): Catch exception thrown during
3497 construction of the highlighter.
3499 2019-09-18 Alan Modra <amodra@gmail.com>
3501 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3502 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3503 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3504 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3505 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3506 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3507 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3508 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3509 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3510 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3511 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3512 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3513 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3514 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3515 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3516 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3517 * mi/mi-interp.c: Update throughout for bfd section macro and
3519 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3520 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3522 2019-09-18 Tom Tromey <tom@tromey.com>
3525 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3527 (tui_enable): Do not call rl_initialize.
3529 2019-09-18 Christian Groessler <chris@groessler.org>
3531 * alpha-linux-nat.c: Include gdbarch.h.
3533 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3535 * ui-file.c: Include cli/cli-style.h.
3536 (term_cli_styling): Remove cli_styling declaration.
3538 2019-09-18 Alan Modra <amodra@gmail.com>
3540 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3541 to bfd_asymbol_section.
3543 2019-09-18 Alan Modra <amodra@gmail.com>
3545 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3546 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3547 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3549 2019-09-18 Alan Modra <amodra@gmail.com>
3551 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3552 * spu-linux-nat.c (spu_bfd_open): Likewise.
3554 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3556 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3557 to bool to match definition in dwarf2read.c.
3559 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3561 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3562 (print_signatures): Likewise.
3563 (trust_pad_over_xvs): Likewise.
3564 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3565 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3566 * arm-linux-nat.c (arm_apcs_32): Likewise.
3567 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3568 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3569 * arm-tdep.c (arm_debug): Likewise.
3570 (arm_apcs_32): Likewise.
3571 * auto-load.c (debug_auto_load): Likewise.
3572 (auto_load_gdb_scripts): Likewise.
3573 (global_auto_load): Likewise.
3574 (auto_load_local_gdbinit): Likewise.
3575 (auto_load_local_gdbinit_loaded): Likewise.
3576 * auto-load.h (global_auto_load): Likewise.
3577 (auto_load_local_gdbinit): Likewise.
3578 (auto_load_local_gdbinit_loaded): Likewise.
3579 * breakpoint.c (disconnected_dprintf): Likewise.
3580 (breakpoint_proceeded): Likewise.
3581 (automatic_hardware_breakpoints): Likewise.
3582 (always_inserted_mode): Likewise.
3583 (target_exact_watchpoints): Likewise.
3584 (_initialize_breakpoint): Update.
3585 * breakpoint.h (target_exact_watchpoints): Change to bool.
3586 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3587 * cli/cli-cmds.c (trace_commands): Likewise.
3588 * cli/cli-cmds.h (trace_commands): Likewise.
3589 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3591 * cli/cli-logging.c (logging_overwrite): Change to bool.
3592 (logging_redirect): Likewise.
3593 (debug_redirect): Likewise.
3594 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3595 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3597 <boolean_option_def>: Update.
3598 (struct flag_option_def): Change default type of Context to bool
3600 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3601 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3602 (get_setshow_command_value_string): Likewise.
3603 * cli/cli-style.c (cli_styling): Change to bool.
3604 (source_styling): Likewise.
3605 * cli/cli-style.h (source_styling): Likewise.
3606 (cli_styling): Likewise.
3607 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3609 * command.h (var_types): Update comment.
3610 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3611 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3613 (debug_compile_cplus_scopes): Likewise.
3614 * compile/compile-internal.h (compile_debug): Likewise.
3615 * compile/compile.c (compile_debug): Likewise.
3616 (struct compile_options) <raw>: Likewise.
3617 * cp-support.c (catch_demangler_crashes): Likewise.
3618 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3619 (usr_cmd_cris_dwarf2_cfi): Likewise.
3620 * csky-tdep.c (csky_debug): Likewise.
3621 * darwin-nat.c (enable_mach_exceptions): Likewise.
3622 * dcache.c (dcache_enabled_p): Likewise.
3623 * defs.h (info_verbose): Likewise.
3624 * demangle.c (demangle): Likewise.
3625 (asm_demangle): Likewise.
3626 * dwarf-index-cache.c (debug_index_cache): Likewise.
3627 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3628 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3629 * dwarf2read.c (check_physname): Likewise.
3630 (use_deprecated_index_sections): Likewise.
3631 (dwarf_always_disassemble): Likewise.
3632 * eval.c (overload_resolution): Likewise.
3633 * event-top.c (set_editing_cmd_var): Likewise.
3634 (exec_done_display_p): Likewise.
3635 * event-top.h (set_editing_cmd_var): Likewise.
3636 (exec_done_display_p): Likewise.
3637 * exec.c (write_files): Likewise.
3638 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3639 (debug_fbsd_nat): Likewise.
3640 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3642 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3643 <backtrace_past_entry> Likewise.
3644 * gdb-demangle.h (demangle): Likewise.
3645 (asm_demangle): Likewise.
3646 * gdb_bfd.c (bfd_sharing): Likewise.
3647 * gdbcore.h (write_files): Likewise.
3648 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3649 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3650 * gdbthread.h (print_thread_events): Likewise.
3651 * gdbtypes.c (opaque_type_resolution): Likewise.
3652 (strict_type_checking): Likewise.
3653 * gnu-nat.c (gnu_debug_flag): Likewise.
3654 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3655 * guile/scm-param.c (pascm_variable): Add boolval.
3656 (add_setshow_generic): Update.
3657 (pascm_param_value): Update.
3658 (pascm_set_param_value_x): Update.
3659 * hppa-tdep.c (hppa_debug): Change to bool..
3660 * infcall.c (may_call_functions_p): Likewise.
3661 (coerce_float_to_double_p): Likewise.
3662 (unwind_on_signal_p): Likewise.
3663 (unwind_on_terminating_exception_p): Likewise.
3664 * infcmd.c (startup_with_shell): Likewise.
3665 * inferior.c (print_inferior_events): Likewise.
3666 * inferior.h (startup_with_shell): Likewise.
3667 (print_inferior_events): Likewise.
3668 * infrun.c (step_stop_if_no_debug): Likewise.
3669 (detach_fork): Likewise.
3670 (debug_displaced): Likewise.
3671 (disable_randomization): Likewise.
3672 (non_stop): Likewise.
3673 (non_stop_1): Likewise.
3674 (observer_mode): Likewise.
3675 (observer_mode_1): Likewise.
3676 (set_observer_mode): Update.
3677 (sched_multi): Change to bool.
3678 * infrun.h (debug_displaced): Likewise.
3679 (sched_multi): Likewise.
3680 (step_stop_if_no_debug): Likewise.
3681 (non_stop): Likewise.
3682 (disable_randomization): Likewise.
3683 * linux-tdep.c (use_coredump_filter): Likewise.
3684 (dump_excluded_mappings): Likewise.
3685 * linux-thread-db.c (auto_load_thread_db): Likewise.
3686 (check_thread_db_on_load): Likewise.
3687 * main.c (captured_main_1): Update.
3688 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3689 xx2_opt, boolean_opt>: Change to bool.
3690 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3691 * maint.c (maintenance_profile_p): Likewise.
3692 (per_command_time): Likewise.
3693 (per_command_space): Likewise.
3694 (per_command_symtab): Likewise.
3695 * memattr.c (inaccessible_by_default): Likewise.
3696 * mi/mi-main.c (mi_async): Likewise.
3697 (mi_async_1): Likewise.
3698 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3699 * nat/fork-inferior.h (startup_with_shell): Likewise.
3700 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3701 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3702 * nios2-tdep.c (nios2_debug): Likewise.
3703 * or1k-tdep.c (or1k_debug): Likewise.
3704 * parse.c (parser_debug): Likewise.
3705 * parser-defs.h (parser_debug): Likewise.
3706 * printcmd.c (print_symbol_filename): Likewise.
3707 * proc-api.c (procfs_trace): Likewise.
3708 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3709 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3710 (set_parameter_value): Update.
3711 (add_setshow_generic): Update.
3712 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3714 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3716 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3717 * record-btrace.c (record_btrace_target::store_registers): Update.
3718 * record-full.c (record_full_memory_query): Change to bool.
3719 (record_full_stop_at_limit): Likewise.
3720 * record-full.h (record_full_memory_query): Likewise.
3721 * remote-notif.c (notif_debug): Likewise.
3722 * remote-notif.h (notif_debug): Likewise.
3723 * remote.c (use_range_stepping): Likewise.
3724 (interrupt_on_connect): Likewise.
3725 (remote_break): Likewise.
3726 * ser-tcp.c (tcp_auto_retry): Likewise.
3727 * ser-unix.c (serial_hwflow): Likewise.
3728 * skip.c (debug_skip): Likewise.
3729 * solib-aix.c (solib_aix_debug): Likewise.
3730 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3731 (spu_auto_flush_cache_p): Likewise.
3732 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3734 (struct info_print_options) <quiet>: Likewise.
3735 * symfile-debug.c (debug_symfile): Likewise.
3736 * symfile.c (auto_solib_add): Likewise.
3737 (separate_debug_file_debug): Likewise.
3738 * symfile.h (auto_solib_add): Likewise.
3739 (separate_debug_file_debug): Likewise.
3740 * symtab.c (basenames_may_differ): Likewise.
3741 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3742 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3743 (struct info_types_options) <quiet>: Likewise.
3744 * symtab.h (demangle): Likewise.
3745 (basenames_may_differ): Likewise.
3746 * target-dcache.c (stack_cache_enabled_1): Likewise.
3747 (code_cache_enabled_1): Likewise.
3748 * target.c (trust_readonly): Likewise.
3749 (may_write_registers): Likewise.
3750 (may_write_memory): Likewise.
3751 (may_insert_breakpoints): Likewise.
3752 (may_insert_tracepoints): Likewise.
3753 (may_insert_fast_tracepoints): Likewise.
3754 (may_stop): Likewise.
3755 (auto_connect_native_target): Likewise.
3756 (target_stop_and_wait): Update.
3757 (target_async_permitted): Change to bool.
3758 (target_async_permitted_1): Likewise.
3759 (may_write_registers_1): Likewise.
3760 (may_write_memory_1): Likewise.
3761 (may_insert_breakpoints_1): Likewise.
3762 (may_insert_tracepoints_1): Likewise.
3763 (may_insert_fast_tracepoints_1): Likewise.
3764 (may_stop_1): Likewise.
3765 * target.h (target_async_permitted): Likewise.
3766 (may_write_registers): Likewise.
3767 (may_write_memory): Likewise.
3768 (may_insert_breakpoints): Likewise.
3769 (may_insert_tracepoints): Likewise.
3770 (may_insert_fast_tracepoints): Likewise.
3771 (may_stop): Likewise.
3772 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3773 (make_thread_apply_all_options_def_group): Change argument from int*
3775 (thread_apply_all_command): Update.
3776 (print_thread_events): Change to bool.
3777 * top.c (confirm): Likewise.
3778 (command_editing_p): Likewise.
3779 (history_expansion_p): Likewise.
3780 (write_history_p): Likewise.
3781 (info_verbose): Likewise.
3782 * top.h (confirm): Likewise.
3783 (history_expansion_p): Likewise.
3784 * tracepoint.c (disconnected_tracing): Likewise.
3785 (circular_trace_buffer): Likewise.
3786 * typeprint.c (print_methods): Likewise.
3787 (print_typedefs): Likewise.
3788 * utils.c (debug_timestamp): Likewise.
3789 (sevenbit_strings): Likewise.
3790 (pagination_enabled): Likewise.
3791 * utils.h (sevenbit_strings): Likewise.
3792 (pagination_enabled): Likewise.
3793 * valops.c (overload_resolution): Likewise.
3794 * valprint.h (struct value_print_options) <prettyformat_arrays,
3795 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3796 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3797 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3799 * windows-nat.c (new_console): Likewise.
3800 (cygwin_exceptions): Likewise.
3801 (new_group): Likewise.
3802 (debug_exec): Likewise.
3803 (debug_events): Likewise.
3804 (debug_memory): Likewise.
3805 (debug_exceptions): Likewise.
3806 (useshell): Likewise.
3807 * windows-tdep.c (maint_display_all_tib): Likewise.
3808 * xml-support.c (debug_xml): Likewise.
3810 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3812 * source.c (prepare_path_for_appending): New function.
3813 (openp): Make use of new function.
3814 (find_and_open_source): Search for the compilation directory and
3815 source file as a relative path beneath the directory search path.
3817 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3819 * source-cache.c (source_cache::get_line_charpos): Catch
3820 exceptions and return false, this matches the behaviour documented
3823 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3825 * ada-tasks.c (info_task): Remove quoting of the task's name.
3827 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3829 * symfile.c (auto_solib_add): Replace comment with a reference
3832 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3834 * NEWS: Mention that gdb can now be compiled with Python 3
3837 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3839 * maint.c (maint_print_section_data::maint_print_section_data):
3840 Force use of 'float log10 (float)' by casting the argument to
3843 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3845 * maint.c: Add 'cmath' include.
3846 (struct maint_print_section_data): New structure.
3847 (print_section_index): New function.
3848 (print_bfd_section_info): Add header comment, small whitespace
3849 cleanup, and update to call new print_section_index function.
3850 (print_objfile_section_info): Likewise.
3851 (maint_obj_section_from_bfd_section): New function.
3852 (print_bfd_section_info_maybe_relocated): New function.
3853 (maintenance_info_sections): Add header comment, always use
3854 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3856 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3858 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3859 inner scope, add check that the objfile has psymtabs before
3860 checking psymtabs_addrmap.
3861 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3863 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3865 * NEWS: Announce that Ada task names are now shown at more places,
3866 and between quotes (except in info task output).
3867 * gdb/ada-tasks.c (task_to_str): New function.
3868 (display_current_task_id): Call task_to_str.
3869 (task_command_1): Likewise.
3870 (print_ada_task_info): In non-mi mode, Properly align headers and data
3871 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3873 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3875 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3876 prstatus.pr_lwp.pr_info instead of making it up.
3878 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3880 * auto-load.c (auto_load_expand_dir_vars): Update.
3881 * defs.h (gdb_datadir): Change to std::string.
3882 (python_libdir): Likewise.
3883 (relocate_gdb_directory): Change return type to std::string.
3884 * guile/guile.c (gdbscm_data_directory): Update.
3885 (initialize_scheme_side): Update.
3886 * jit.c (jit_reader_dir): Change to std::string.
3887 (jit_reader_load_command): Update.
3888 * main.c (gdb_datadir): Change to std::string.
3889 (python_libdir): Likewise.
3890 (set_gdb_data_directory): Update.
3891 (relocate_path): Change to return std::string.
3892 (relocate_gdb_directory): Change to return std::string.
3893 (relocate_gdbinit_path_maybe_in_datadir): Update.
3894 (captured_main_1): Update.
3895 * python/python.c (do_start_initialization): Update.
3896 * top.c (show_gdb_datadir): Update.
3897 * xml-syscall.c (xml_init_syscalls_info): Update.
3898 (init_syscalls_info): Update.
3900 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3902 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3903 out of get_init_files.
3904 (get_init_files): Update.
3906 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3908 * main.c (get_init_files): Change to use std::string.
3909 (captured_main_1): Update.
3910 (print_gdb_help): Update.
3912 2019-09-11 Ali Tamur <tamur@google.com>
3914 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3917 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3919 * dbxread.c (read_dbx_symtab): Update.
3920 * dwarf2read.c (load_partial_dies): Update.
3921 * mdebugread.c (parse_partial_symbols): Update.
3922 (handle_psymbol_enumerators): Update.
3923 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3924 * psymtab.c (add_psymbol_to_bcache): Likewise.
3925 (add_psymbol_to_list): Likewise.
3926 * symtab.c (symbol_set_names): Likewise.
3927 * symtab.h (symbol_set_names): Likewise.
3928 * xcoffread.c (scan_xcoff_symtab): Update.
3930 2019-09-11 Tom Tromey <tom@tromey.com>
3932 * symfile-mem.c (symbol_file_add_from_memory): Use
3934 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3935 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3937 2019-09-10 Tom Tromey <tromey@adacore.com>
3939 * dwarf-index-write.c (write_psymbols): Extend error message.
3940 (debug_names::insert): Add Ada code.
3941 (debug_names::write_psymbols): Remove Ada check.
3942 (debug_names) <m_string_obstack>: New member.
3943 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3944 (gdb_index_symbol_name_matcher::matches): Remove.
3945 (mapped_index_base::find_name_components_bounds): Add "lang"
3947 (mapped_index_base::build_name_components): Also split names
3948 according to Ada syntax.
3949 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3950 type of "match_callback".
3951 (check_match, check_find_bounds_finds)
3952 (dw2_expand_symtabs_matching): Update.
3953 (dw2_debug_names_iterator): Add new constructor.
3954 (dw2_debug_names_map_matching_symbols): New function.
3955 (dw2_debug_names_expand_symtabs_matching): Update.
3956 (dwarf2_debug_names_functions): Use
3957 dw2_debug_names_map_matching_symbols.
3959 2019-09-10 Tom Tromey <tromey@adacore.com>
3961 * dwarf2read.c (dw2_get_file_names_reader): Add the
3962 CU's file name to the results.
3964 2019-09-10 Tom Tromey <tromey@adacore.com>
3966 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3967 map_matching_symbols. Update.
3968 * dwarf2read.c (dw2_map_matching_symbols): Update.
3969 * psymtab.c (match_partial_symbol): Change type; update.
3970 (psym_map_matching_symbols): Likewise.
3971 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3973 * symfile.h (struct quick_symbol_functions)
3974 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3977 2019-09-10 Tom Tromey <tromey@adacore.com>
3979 * psymtab.c (map_block): Remove.
3980 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3981 * symtab.c (iterate_over_symbols_terminated): New function.
3982 * symtab.c (iterate_over_symbols_terminated): Declare.
3984 2019-09-10 Tom Tromey <tromey@adacore.com>
3986 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3987 * language.h (struct language_defn) <la_iterate_over_symbols>:
3989 * symtab.c (iterate_over_symbols): Return bool.
3990 * symtab.h (iterate_over_symbols): Return bool.
3992 2019-09-10 Tom Tromey <tromey@adacore.com>
3994 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3995 (add_nonlocal_symbols): Update.
3996 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3997 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3998 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3999 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4000 Change type of "callback". Remove "data".
4003 2019-09-09 Ali Tamur <tamur@google.com>
4005 * dwarf2read.c (comp_unit_head): Update comment.
4006 (dwarf2_dwo_name): New function declaration.
4007 (dwarf_unit_type_name): New function declaration.
4008 (read_comp_unit_head): Add support for new compilation units,
4009 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4010 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4011 (currently named as "signature") in their header. Also clarify error
4013 (lookup_dwo_id): New function. Returns the dwo id of the given
4015 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4016 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4018 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4019 (dwarf2_dwo_name): Get the dwo name if present.
4020 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4023 2019-09-09 Tom Tromey <tom@tromey.com>
4025 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4027 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4029 * python/python.c (do_start_initialization): Make progname_copy static,
4030 to avoid a leak report.
4032 2019-09-08 Tom Tromey <tom@tromey.com>
4034 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4036 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4038 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4039 Change type to gdb::optional<block_enum>.
4040 (dw2_symtab_iter_init): Change block_index parameter type
4041 to gdb::optional<block_enum>.
4042 (dw2_lookup_symbol): Change block_index parameter
4043 type to block_enum.c
4044 (dw2_debug_names_lookup_symbol): Likewise.
4045 * psymtab.c (psym_lookup_symbol): Likewise.
4046 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4047 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4050 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4052 * defs.h (relocate_gdb_directory): Change int to bool in
4053 signature and rename flag to relocatable.
4054 * main.c (relocate_path): Likewise.
4055 (relocate_gdb_directory): Likewise.
4057 2019-09-06 Alan Modra <amodra@gmail.com>
4059 * coffread.c (coff_symfile_read): Constify filename variable.
4060 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4061 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4062 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4063 * solib.c (reload_shared_libraries_1): Likewise.
4064 * symfile.c (reread_symbols): Likewise.
4065 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4066 * solib-darwin.c (darwin_bfd_open): Likewise.
4067 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4069 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4071 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4072 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4074 2019-09-03 Tom Tromey <tromey@adacore.com>
4076 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4078 (has_negatives): Unbias a range type bound.
4079 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4080 * gdbtypes.c (operator==): Handle new field.
4081 (create_range_type): Add "bias" parameter.
4082 (create_static_range_type, resolve_dynamic_range): Update.
4083 * gdbtypes.h (struct range_bounds) <bias>: New member.
4084 (create_range_type): Add bias parameter.
4085 * printcmd.c (print_scalar_formatted): Unbias range types.
4086 * value.c (unpack_long): Unbias range types.
4087 (pack_long): Bias range types.
4089 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4091 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4094 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4096 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4097 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4098 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4099 (compile_probe_arg): Likewise.
4100 * probe.h (get_argument_count): Likewise.
4101 * solib-svr4.c (solib_event_probe_action): Likewise.
4102 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4104 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4106 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4108 (svr4_create_solib_event_breakpoints): ...from here.
4110 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4112 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4113 suffix from warning message.
4115 2019-08-30 Tom Tromey <tom@tromey.com>
4117 * tui/tui-winsource.h (struct tui_source_window_base)
4118 <refresh_all>: Don't declare.
4119 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4121 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4122 tui_show_locator_content.
4123 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4125 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4126 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4129 2019-08-30 Tom Tromey <tom@tromey.com>
4131 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4133 2019-08-30 Tom Tromey <tom@tromey.com>
4135 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4136 Remove unnecessary forward declarations.
4138 2019-08-30 Tom Tromey <tom@tromey.com>
4140 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4142 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4143 tui_show_locator_content.
4145 2019-08-30 Tom Tromey <tom@tromey.com>
4147 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4148 (tui_locator_window::rerender): Rewrite using body of previous
4149 tui_show_locator_content.
4151 2019-08-30 Tom Tromey <tom@tromey.com>
4153 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4154 set_locator_fullname>: New methods.
4155 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4156 Rename from tui_set_locator_fullname.
4157 (tui_locator_window::set_locator_info): Rename from
4158 tui_set_locator_info. Return bool.
4159 (tui_update_locator_fullname, tui_show_frame_info): Update.
4161 2019-08-30 Tom Tromey <tom@tromey.com>
4163 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4165 2019-08-30 Tom Tromey <tom@tromey.com>
4167 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4170 2019-08-30 Tom Tromey <tom@tromey.com>
4172 * tui/tui-wingeneral.c (box_win): Assume win_info and
4173 win_info->handle cannot be NULL.
4175 2019-08-30 Tom Tromey <tom@tromey.com>
4177 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4178 refresh_window>: Declare.
4179 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4181 (tui_data_item_window::rerender): Rename from
4182 tui_display_register.
4183 (tui_data_item_window::refresh_window): New method.
4184 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4187 2019-08-30 Tom Tromey <tom@tromey.com>
4189 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4190 regs_column_count, current_group>: Move later. Now private.
4191 <get_current_group>: New method.
4192 * tui/tui-regs.c (tui_reg_command): Update.
4193 * tui/tui-layout.c (tui_set_layout): Update.
4195 2019-08-30 Tom Tromey <tom@tromey.com>
4197 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4198 (tui_data_window::rerender): Don't call
4199 check_and_display_highlight_if_needed.
4200 (tui_data_window::refresh_all): Remove call to
4203 2019-08-30 Tom Tromey <tom@tromey.com>
4205 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4206 (tui_data_window::display_registers_from)
4207 (tui_data_window::display_reg_element_at_line)
4208 (tui_data_window::display_registers_from_line): Remove checks of
4211 2019-08-30 Tom Tromey <tom@tromey.com>
4213 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4215 * tui/tui-regs.c (tui_data_window::show_registers): Call
4217 (tui_data_window::rerender): Rename from display_all_data.
4218 (tui_data_window::rerender): Remove old implementation.
4220 2019-08-30 Tom Tromey <tom@tromey.com>
4222 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4224 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4226 2019-08-29 Bernhard Wodok <barto@gmx.net>
4227 Sergio Durigan Junior <sergiodj@redhat.com>
4230 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4232 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4234 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4235 when searching for types.
4237 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4239 * f-lang.c (f_language_defn): Use f_print_typedef.
4240 * f-lang.h (f_print_typedef): Declare.
4241 * f-typeprint.c (f_print_typedef): Define.
4243 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4245 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4247 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4249 * cli/cli-utils.c (info_print_options_defs): Delete.
4250 (make_info_print_options_def_group): Delete.
4251 (extract_info_print_options): Delete.
4252 (info_print_command_completer): Delete.
4253 (info_print_args_help): Add extra parameter, and optionally
4254 include text about -n flag.
4255 * cli/cli-utils.h (struct info_print_options): Delete.
4256 (extract_info_print_options): Delete declaration.
4257 (info_print_command_completer): Delete declaration.
4258 (info_print_args_help): Add extra parameter, extend header
4260 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4262 * stack.c (struct info_print_options): New type.
4263 (info_print_options_defs): New file scoped variable.
4264 (make_info_print_options_def_group): New static function.
4265 (info_print_command_completer): New static function.
4266 (info_locals_command): Update to use new local functions.
4267 (info_args_command): Likewise.
4268 (_initialize_stack): Add extra parameter to calls to
4269 info_print_args_help.
4270 * symtab.c (search_symbols): Add extra parameter, use this to
4271 possibly excluse non-debug symbols.
4272 (symtab_symbol_info): Add extra parameter, which is passed on to
4274 (struct info_print_options): New type.
4275 (info_print_options_defs): New file scoped variable.
4276 (make_info_print_options_def_group): New static function.
4277 (info_print_command_completer): New static function.
4278 (info_variables_command): Update to use local functions, and pass
4279 extra parameter through to symtab_symbol_info.
4280 (info_functions_command): Likewise.
4281 (info_types_command): Pass additional argument through to
4283 (rbreak_command): Pass extra argument to search_symbols.
4284 (_initialize_symtab): Add extra arguments for calls to
4285 info_print_args_help, and update help text for 'info variables',
4286 'whereis', and 'info functions' commands.
4287 * symtab.h (search_symbols): Add extra argument to declaration.
4288 * NEWS: Mention new flags.
4290 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4292 * symtab.c (lookup_static_symbol): Call the new function (and move
4293 it down to be next to lookup_global_symbol).
4294 (struct global_sym_lookup_data): Add block_enum member and rename to...
4295 (struct global_or_static_sym_lookup_data): ...this.
4296 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4297 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4298 (lookup_symbol_global_or_static_iterator_cb): ...this.
4299 (lookup_global_or_static_symbol): New function.
4300 (lookup_global_symbol): Call new function.
4302 2019-08-26 Tom de Vries <tdevries@suse.de>
4305 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4306 when pc_probe.prob == NULL.
4308 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4310 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4311 variable symbol_linkage to symbol_linkage_.
4313 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4315 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4316 represent whether the symbol is static, dynamic, or we don't
4319 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4321 * gdb/rx-tdep.c (rx_register_names): New.
4322 (rx_register_name): Delete.
4323 (rx_psw_type): Delete.
4324 (rx_fpsw_type): Delete.
4325 (rx_register_type): Delete.
4326 (rx_gdbarch_init): Convert target-descriptions.
4327 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4328 * gdb/features/Makefile: Add rx.xml.
4329 * gdb/features/rx.xml: New.
4330 * gdb/features/rx.c: Generated.
4331 * gdb/NEWS: Mention target description support.
4333 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4335 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4338 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4340 * configure.ac: Don't check for 'dlfcn.h' (moved to
4341 gdbsupport/common.m4).
4342 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4344 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4345 * compile/compile-c-support.c: Include
4346 'gdbsupport/gdb-dlfcn.h'.
4347 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4348 * gdb-dlfcn.c: Move to...
4349 * gdbsupport/gdb-dlfcn.c: ... here.
4350 * gdb-dlfcn.h: Move to...
4351 * gdbsupport/gdb-dlfcn.h: ... here.
4353 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4355 * nios2-tdep.c (struct reg_value): Improve comments. Make
4356 the offset field signed.
4358 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4360 * python/lib/gdb/__init__.py (_execute_file): New function.
4361 * python/python.c (python_run_simple_file): Call gdb._execute_file
4364 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4366 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4367 all uses as this was never set to anything but a zero value.
4369 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4371 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4373 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4375 * tui/tui-data.h (tui_gen_win_info): Add an =default
4376 move constructor, required by some GCC versions.
4378 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4380 * go32-nat.c (go32_sysinfo): Add hygon_p.
4382 2019-08-20 Tom Tromey <tom@tromey.com>
4384 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4385 line_from_reg_element_no, first_reg_element_no_inline,
4386 display_all_data, delete_data_content_windows,
4387 erase_data_content>: Now private.
4389 2019-08-20 Tom Tromey <tom@tromey.com>
4391 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4392 (tui_unhighlight_win, tui_highlight_win)
4393 (tui_win_info::make_window): Update.
4394 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4396 2019-08-20 Tom Tromey <tom@tromey.com>
4398 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4399 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4400 (MAX_PID_WIDTH): Move to tui-stack.c.
4401 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4402 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4403 (MAX_PID_WIDTH): Move from tui-data.h.
4405 2019-08-20 Tom Tromey <tom@tromey.com>
4407 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4408 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4410 (tui_gen_win_info::make_window): Rename from tui_make_window.
4411 (tui_win_info::make_window): New method.
4412 (tui_gen_win_info::make_visible): Update.
4413 * tui/tui-source.c (tui_source_window::set_contents): Update.
4414 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4415 (tui_data_window::display_registers_from): Update.
4416 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4417 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4421 (struct tui_win_info) <make_window>: Declare.
4422 <can_box>: Now virtual.
4423 <title>: New member.
4424 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4425 * tui/tui-command.c (tui_cmd_window::resize): Update.
4427 2019-08-20 Tom Tromey <tom@tromey.com>
4429 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4430 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4431 (tui_data_window::check_register_values): Update.
4433 2019-08-20 Tom Tromey <tom@tromey.com>
4435 * tui/tui-regs.h (struct tui_data_window): Use
4436 DISABLE_COPY_AND_ASSIGN.
4437 <regs_content>: Change type, removing unique_ptr.
4438 <tui_data_window>: Add move constructor.
4439 * tui/tui-regs.c (tui_data_window::show_registers)
4440 (tui_data_window::show_register_group)
4441 (tui_data_window::display_registers_from)
4442 (tui_data_window::display_registers_from)
4443 (tui_data_window::first_data_item_displayed)
4444 (tui_data_window::delete_data_content_windows)
4445 (tui_data_window::rerender, tui_data_window::refresh_window)
4446 (tui_data_window::check_register_values): Update.
4448 2019-08-20 Tom Tromey <tom@tromey.com>
4450 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4451 show_register_group>: Declare.
4452 (tui_show_register_group): Don't declare.
4453 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4455 (tui_data_window::show_register_group): Rename from
4456 tui_show_register_group.
4457 (tui_data_window::check_register_values, tui_reg_command):
4459 * tui/tui-layout.c (tui_set_layout): Update.
4461 2019-08-20 Tom Tromey <tom@tromey.com>
4463 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4465 (tui_check_register_values): Don't declare.
4466 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4467 from tui_check_register_values.
4468 * tui/tui-hooks.c (tui_register_changed): Update.
4470 2019-08-20 Tom Tromey <tom@tromey.com>
4472 * tui/tui-regs.c (tui_reg_layout): Move later.
4473 (tui_show_registers): Don't enable TUI mode or change layout.
4475 2019-08-20 Tom Tromey <tom@tromey.com>
4477 * tui/tui-regs.h (struct tui_data_item_window)
4478 <~tui_data_item_window>: Remove.
4479 <content>: Now a unique_xmalloc_ptr.
4480 * tui/tui-regs.c (tui_register_format): Return a
4482 (tui_get_register): Update.
4483 (~tui_data_item_window): Remove.
4484 (tui_data_window::display_registers_from, tui_display_register):
4486 * tui/tui-io.h (tui_expand_tabs): Update.
4487 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4488 Remove "col" parameter.
4490 2019-08-20 Tom Tromey <tom@tromey.com>
4492 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4494 * tui/tui-regs.c (~tui_data_item_window): Update.
4496 2019-08-20 Tom Tromey <tom@tromey.com>
4498 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4501 2019-08-20 Tom Tromey <tom@tromey.com>
4503 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4505 2019-08-20 Tom Tromey <tom@tromey.com>
4507 * tui/tui-source.h (struct tui_source_window): Update.
4508 * tui/tui-regs.c (tui_show_registers): Update.
4509 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4510 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4511 (NO_REGS_STRING): Remove defines.
4513 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4515 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4516 unnecessary thread walk if remote doesn't support the packet.
4518 2019-08-19 Tom Tromey <tromey@adacore.com>
4520 * python/py-value.c (value_has_field): Fix indentation.
4522 2019-08-19 Tom Tromey <tromey@adacore.com>
4524 * printcmd.c (do_one_display, info_display_command): Update.
4525 * block.h (contained_in): Return bool. Add allow_nested
4527 * block.c (contained_in): Return bool. Add allow_nested
4530 2019-08-19 Tom Tromey <tom@tromey.com>
4532 * configure: Rebuild.
4533 * configure.ac: Disallow the combination of -static-libstdc++ and
4535 * source-cache.c (get_language_name): Handle rust.
4536 (source_cache::get_source_lines): Ignore highlighting exceptions.
4538 2019-08-16 Tom Tromey <tom@tromey.com>
4540 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4541 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4542 (struct tui_source_window_base) <make_visible, refresh_window,
4543 resize>: Remove methods.
4544 <execution_info>: Remove field.
4545 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4546 (tui_show_source_line, tui_source_window_base)
4547 (~tui_source_window_base): Update.
4548 (tui_source_window_base::resize)
4549 (tui_source_window_base::make_visible)
4550 (tui_source_window_base::refresh_window): Remove.
4551 (tui_source_window_base::update_exec_info): Update.
4552 * tui/tui-source.c (tui_source_window::set_contents): Update.
4553 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4555 2019-08-16 Tom Tromey <tom@tromey.com>
4557 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4558 deprecated_query_hook.
4560 2019-08-16 Tom Tromey <tom@tromey.com>
4562 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4563 (tui_update_source_windows_with_line): Update.
4564 * tui/tui-source.h (struct tui_source_window)
4565 <show_symtab_source>: Declare.
4566 (tui_show_symtab_source): Don't declare.
4567 * tui/tui-source.c (tui_show_symtab_source): Rename from
4568 tui_show_symtab_source.
4570 2019-08-16 Tom Tromey <tom@tromey.com>
4572 * tui/tui-winsource.h (struct tui_source_window_base)
4573 <set_contents>: Declare.
4574 * tui/tui-winsource.c
4575 (tui_source_window_base::update_source_window_as_is): Update.
4576 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4578 (tui_set_source_content): Don't declare.
4579 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4580 tui_set_source_content.
4581 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4583 (tui_set_disassem_content): Don't declare.
4584 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4585 tui_set_disassem_content.
4587 2019-08-16 Tom Tromey <tom@tromey.com>
4589 * tui/tui-winsource.h (struct tui_source_window_base)
4590 <update_breakpoint_info>: Declare.
4591 (tui_update_breakpoint_info): Don't declare.
4592 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4593 (tui_update_all_breakpoint_info): Update.
4594 (tui_source_window_base::update_breakpoint_info): Rename from
4595 tui_update_breakpoint_info.
4596 (tui_source_window_base::update_exec_info): Update.
4598 2019-08-16 Tom Tromey <tom@tromey.com>
4600 * tui/tui-winsource.h (struct tui_source_window_base)
4601 <update_source_window>: Declare.
4602 (tui_update_source_window): Don't declare.
4603 * tui/tui-winsource.c
4604 (tui_source_window_base::update_source_window): Rename from
4605 tui_update_source_window.
4606 (tui_source_window_base::rerender): Update.
4607 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4608 * tui/tui-disasm.c (tui_show_disassem)
4609 (tui_show_disassem_and_update_source)
4610 (tui_disasm_window::maybe_update): Update.
4612 2019-08-16 Tom Tromey <tom@tromey.com>
4614 * tui/tui-winsource.h (struct tui_source_window_base)
4615 <update_source_window_as_is>: Declare.
4616 (tui_update_source_window_as_is): Don't declare.
4617 * tui/tui-winsource.c (tui_update_source_window): Update
4618 (tui_source_window_base::update_source_window_as_is): Rename from
4619 tui_update_source_window_as_is.
4620 (tui_source_window_base::refill): Update.
4621 * tui/tui-source.c (tui_show_symtab_source): Update.
4622 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4625 2019-08-16 Tom Tromey <tom@tromey.com>
4627 * tui/tui-winsource.h (tui_update_source_window)
4628 (tui_update_source_window_as_is): Remove "noerror" parameter.
4629 * tui/tui-winsource.c (tui_update_source_window)
4630 (tui_update_source_window_as_is): Remove "noerror" parameter.
4631 (tui_update_source_windows_with_addr)
4632 (tui_update_source_windows_with_line)
4633 (tui_source_window_base::rerender)
4634 (tui_source_window_base::refill): Update.
4635 * tui/tui-source.h (tui_set_source_content)
4636 (tui_show_symtab_source): Remove "noerror" parameter.
4637 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4639 (tui_show_symtab_source): Likewise.
4640 (tui_source_window::maybe_update): Update.
4641 * tui/tui-disasm.c (tui_show_disassem)
4642 (tui_show_disassem_and_update_source)
4643 (tui_disasm_window::do_scroll_vertical)
4644 (tui_disasm_window::maybe_update): Update.
4646 2019-08-16 Tom Tromey <tom@tromey.com>
4648 * tui/tui.c (tui_is_window_visible): Update.
4649 * tui/tui-wingeneral.c (tui_make_window)
4650 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4651 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4652 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4653 (tui_set_win_height_command, parse_scrolling_args): Update.
4654 * tui/tui-source.c (tui_source_window::style_changed): Update.
4655 * tui/tui-regs.c (tui_show_registers)
4656 (tui_data_window::first_data_item_displayed)
4657 (tui_data_window::delete_data_content_windows)
4658 (tui_check_register_values, tui_reg_command): Update.
4659 * tui/tui-disasm.c (tui_show_disassem): Update.
4660 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4662 <is_visible>: Remove field.
4663 * tui/tui-data.c (tui_next_win, tui_prev_win)
4664 (tui_delete_invisible_windows): Update.
4666 2019-08-16 Tom Tromey <tom@tromey.com>
4668 * tui/tui-winsource.h (struct tui_source_window_base)
4669 <m_has_locator>: Remove.
4670 * tui/tui-layout.c (show_source_disasm_command, show_data)
4671 (show_source_or_disasm_and_command): Update.
4673 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4675 * NEWS (Other MI changes): New subsection.
4676 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4677 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4678 * arch-utils.c (default_get_pc_address_flags): New function.
4679 * arch-utils.h (default_get_pc_address_flags): New declaration.
4680 * gdbarch.sh: Add get_pc_address_flags.
4681 * gdbarch.c: Regenerate.
4682 * gdbarch.h: Likewise.
4683 * stack.c (print_pc): New function.
4684 (print_frame_info) (print_frame): Call print_pc.
4686 2019-08-16 Tom de Vries <tdevries@suse.de>
4688 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4689 print_objfile_section_info.
4691 2019-08-15 Tom Tromey <tom@tromey.com>
4693 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4694 calling update_cmdwin_start_line.
4695 * tui/tui-winsource.h (struct tui_source_window_base)
4696 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4697 <rerender>: Declare.
4698 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4700 (tui_source_window_base::set_new_height): Remove.
4701 (tui_source_window_base::rerender): Rename from
4702 do_make_visible_with_new_height.
4703 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4705 (tui_win_info::make_invisible_and_set_new_height)
4706 (tui_win_info::make_visible_with_new_height): Remove.
4707 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4709 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4710 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4711 do_make_visible_with_new_height>: Don't declare.
4712 <rerender>: Declare.
4713 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4715 (tui_data_window::do_make_visible_with_new_height): Remove.
4716 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4717 call tui_show_locator_content.
4718 (tui_gen_win_info::resize): Call rerender.
4719 (show_source_or_disasm_and_command): Don't call
4720 tui_show_locator_content.
4721 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4723 (struct tui_win_info) <rerender>: Declare.
4724 <set_new_height, make_invisible_and_set_new_height,
4725 make_visible_with_new_height>: Don't declare.
4726 * tui/tui-data.c (tui_win_list::rerender): New method.
4727 * tui/tui-command.h (struct tui_cmd_window)
4728 <do_make_visible_with_new_height>: Don't declare.
4730 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4732 2019-08-15 Tom Tromey <tromey@adacore.com>
4734 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4735 * ada-lang.c (ada_enum_name): Likewise.
4737 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4739 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4741 (GdbOutputErrorFile): Likewise.
4742 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4744 (execute_unwinders): Rename to have a leading underscore.
4745 (auto_load_packages): Likewise.
4746 (global scope): Adjust call to auto_load_packages accordingly.
4747 (GdbSetPythonDirectory): Likewise.
4748 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4749 instead of execute_unwinders.
4751 2019-08-15 Tom Tromey <tom@tromey.com>
4753 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4754 (show_data): Don't change window visibility.
4755 (tui_gen_win_info::resize): Remove special case for command
4756 window. Use wresize, when available.
4757 (show_source_or_disasm_and_command): Don't change window
4759 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4760 <make_visible>: New method.
4761 * tui/tui-command.c (tui_cmd_window::resize): New method.
4763 2019-08-15 Tom Tromey <tom@tromey.com>
4765 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4766 (struct tui_source_windows): New.
4767 * tui/tui-winsource.c (tui_display_main): Update.
4768 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4769 (new_height_ok, parse_scrolling_args): Update.
4770 * tui/tui-layout.c (show_layout, show_data): Update.
4771 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4772 (tui_add_to_source_windows): Don't declare.
4773 * tui/tui-data.c (source_windows, tui_source_windows)
4774 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4776 2019-08-15 Tom Tromey <tom@tromey.com>
4778 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4780 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4781 * tui/tui-layout.c (show_source_disasm_command, show_data):
4783 (tui_gen_win_info::resize): Rename.
4784 (show_source_or_disasm_and_command): Update.
4785 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4788 2019-08-15 Tom Tromey <tom@tromey.com>
4790 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4791 * tui/tui-interp.c (tui_interp::init): Don't call
4792 tui_initialize_static_data.
4793 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4795 2019-08-15 Tom Tromey <tom@tromey.com>
4797 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4798 examine tui_win_list.
4800 2019-08-15 Tom Tromey <tom@tromey.com>
4802 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4803 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4804 tui_clear_source_content.
4805 (tui_clear_source_content): Remove.
4806 (tui_source_window_base::do_erase_source_content): Hoist call to
4808 * tui/tui-stack.c (tui_show_frame_info): Don't call
4809 tui_clear_source_content.
4811 2019-08-15 Tom Tromey <tom@tromey.com>
4813 * tui/tui-winsource.h (struct tui_source_window_base)
4814 <do_erase_source_content>: New method.
4815 <erase_source_content>: New method.
4816 (tui_erase_source_content): Don't declare.
4817 * tui/tui-winsource.c (tui_clear_source_content): Update.
4818 (tui_source_window_base::do_erase_source_content): Rename from
4819 tui_erase_source_content.
4820 (tui_source_window_base::show_source_content): Update.
4821 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4822 * tui/tui-source.h (struct tui_source_window)
4823 <erase_source_content>: New method.
4824 * tui/tui-disasm.h (struct tui_disasm_window)
4825 <erase_source_content>: New method.
4827 2019-08-15 Tom Tromey <tom@tromey.com>
4829 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4830 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4832 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4833 * tui/tui-source.c (tui_set_source_content): Update.
4834 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4836 2019-08-15 Tom Tromey <tom@tromey.com>
4838 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4839 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4841 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4843 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4845 (tui_source_window::maybe_update): Update.
4847 2019-08-15 Tom Tromey <tom@tromey.com>
4849 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4850 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4852 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4856 (tui_disasm_window::maybe_update): Update.
4858 2019-08-15 Tom Tromey <tom@tromey.com>
4860 * tui/tui-winsource.h (struct tui_source_window_base)
4861 <maybe_update>: Declare.
4862 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4864 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4866 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4867 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4869 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4871 2019-08-15 Tom Tromey <tom@tromey.com>
4873 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4875 2019-08-15 Tom Tromey <tom@tromey.com>
4877 * tui/tui-wingeneral.c: Include tui-stack.h.
4878 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4879 (struct tui_locator_window): Move from tui-data.h.
4880 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4881 (tui_initialize_static_data): Move from tui-data.c.
4882 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4883 (struct tui_locator_window): Move to tui-stack.c.
4884 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4885 (tui_initialize_static_data): Move to tui-stack.c.
4887 2019-08-15 Tom Tromey <tom@tromey.com>
4889 * tui/tui-layout.c (show_source_disasm_command)
4890 (show_source_or_disasm_and_command): Use make_visible method, not
4892 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4895 2019-08-15 Tom Tromey <tom@tromey.com>
4897 * tui/tui-wingeneral.h (tui_make_window): Update.
4898 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4900 (tui_gen_win_info::make_visible): Update.
4901 * tui/tui-regs.c (tui_data_window::display_registers_from):
4903 * tui/tui-layout.c (show_source_disasm_command)
4904 (show_source_or_disasm_and_command): Update.
4905 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4906 (enum tui_box): Remove.
4907 (struct tui_win_info) <can_box>: New method.
4908 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4911 2019-08-15 Tom de Vries <tdevries@suse.de>
4913 * linux-nat-trad.c: Include gdbarch.h.
4915 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4917 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4920 2019-08-14 Tom Tromey <tromey@adacore.com>
4922 * darwin-nat.c: Include gdbarch.h.
4923 * darwin-nat-info.c: Include gdbarch.h.
4925 2019-08-13 Tom Tromey <tom@tromey.com>
4927 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4929 * tui/tui-data.c (tui_initialize_static_data): Update.
4931 2019-08-13 Tom Tromey <tom@tromey.com>
4933 * tui/tui-winsource.h (struct tui_exec_info_window)
4934 <~tui_exec_info_window, maybe_allocate_content, get_content,
4936 (struct tui_source_window_base) <set_exec_info_content,
4937 show_exec_info_content>: Don't declare.
4938 * tui/tui-winsource.c
4939 (tui_exec_info_window::maybe_allocate_content): Remove.
4940 (tui_source_window_base::update_exec_info): Rename from
4941 set_exec_info_content.
4942 (tui_source_window_base::show_exec_info_content)
4943 (tui_source_window_base::update_exec_info): Remove.
4945 2019-08-13 Tom Tromey <tom@tromey.com>
4947 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4949 * tui/tui-winsource.c (tui_update_source_window_as_is)
4950 (tui_update_source_windows_with_addr, tui_erase_source_content):
4952 (tui_clear_exec_info_content): Remove.
4954 2019-08-13 Tom Tromey <tom@tromey.com>
4956 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4958 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4959 call tui_erase_exec_info_content.
4960 (tui_clear_exec_info_content): Rename from
4961 tui_erase_exec_info_content.
4962 (tui_clear_exec_info_content): Delete.
4964 2019-08-13 Tom Tromey <tom@tromey.com>
4966 * tui/tui-winsource.h (struct tui_source_window_base)
4967 <show_exec_info_content>: Declare.
4968 (tui_show_exec_info_content): Don't declare.
4969 * tui/tui-winsource.c
4970 (tui_source_window_base::show_exec_info_content): Rename from
4971 tui_show_exec_info_content.
4972 (tui_source_window_base::update_exec_info): Update.
4974 2019-08-13 Tom Tromey <tom@tromey.com>
4976 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4977 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4978 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4979 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4980 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4981 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4984 2019-08-13 Tom Tromey <tom@tromey.com>
4986 * tui/tui-winsource.h (struct tui_source_window_base)
4987 <update_exec_info>: Declare.
4988 (tui_update_exec_info): Don't declare.
4989 * tui/tui-winsource.c (tui_update_source_window_as_is)
4990 (tui_source_window_base::refresh_all)
4991 (tui_update_all_breakpoint_info): Update.
4992 (tui_source_window_base::update_exec_info): Rename from
4993 tui_update_exec_info.
4994 * tui/tui-stack.c (tui_show_frame_info): Update.
4996 2019-08-13 Tom Tromey <tom@tromey.com>
4998 * tui/tui-winsource.h (struct tui_source_window_base)
4999 <set_exec_info_content>: Declare.
5000 (tui_set_exec_info_content): Don't declare.
5001 * tui/tui-winsource.c
5002 (tui_source_window_base::set_exec_info_content): Rename from
5003 tui_set_exec_info_content.
5004 (tui_update_exec_info): Update.
5006 2019-08-13 Tom Tromey <tom@tromey.com>
5008 * tui/tui-winsource.h (struct tui_source_window_base)
5009 <show_source_content>: Declare.
5010 (tui_show_source_content): Don't declare.
5011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5012 (tui_source_window_base::show_source_content): Rename from
5013 tui_show_source_content.
5014 (tui_source_window_base::refresh_all): Update.
5015 * tui/tui-layout.c (show_source_disasm_command)
5016 (show_source_or_disasm_and_command): Update.
5018 2019-08-13 Tom Tromey <tom@tromey.com>
5020 * tui/tui-winsource.c (tui_erase_source_content)
5021 (tui_show_source_content, tui_source_window_base::refresh_all):
5023 * tui/tui-wingeneral.h
5024 (tui_check_and_display_highlight_if_needed): Don't declare.
5025 * tui/tui-wingeneral.c
5026 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5027 check_and_display_highlight_if_needed.
5028 * tui/tui-win.c (tui_rehighlight_all)
5029 (tui_win_info::make_visible_with_new_height): Update.
5030 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5031 (tui_data_window::erase_data_content)
5032 (tui_data_window::display_all_data): Update.
5033 * tui/tui-data.h (struct tui_win_info)
5034 <check_and_display_highlight_if_needed>: Declare.
5036 2019-08-13 Tom Tromey <tom@tromey.com>
5038 * tui/tui-win.c (tui_resize_all): Call
5039 tui_delete_invisible_windows.
5040 * tui/tui-layout.c (show_layout): Call
5041 tui_delete_invisible_windows.
5042 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5043 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5045 2019-08-13 Tom Tromey <tom@tromey.com>
5047 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5048 tui_add_win_to_layout.
5050 2019-08-13 Tom Tromey <tom@tromey.com>
5052 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5053 * tui/tui-layout.c (tui_default_win_height): Now static.
5055 2019-08-13 Tom Tromey <tom@tromey.com>
5057 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5059 (show_source_disasm_command, show_source_or_disasm_and_command):
5060 Don't check current layout.
5062 2019-08-13 Tom Tromey <tom@tromey.com>
5064 * tui/tui-wingeneral.c (make_all_visible): Remove.
5065 (tui_make_all_invisible): Simplify.
5066 * tui/tui-layout.c (tui_make_all_invisible): Move from
5067 tui-wingeneral.c; simplify.
5068 (show_layout): Hoist call to tui_make_all_invisible.
5069 (show_data): Don't call tui_make_all_invisible.
5071 2019-08-13 Tom Tromey <tom@tromey.com>
5073 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5074 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5076 2019-08-13 Tom Tromey <tom@tromey.com>
5078 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5080 (show_source_disasm_command, show_data)
5081 (show_source_or_disasm_and_command): Don't use
5082 tui_set_current_layout_to.
5083 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5084 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5086 (tui_set_current_layout_to): Remove.
5088 2019-08-13 Tom Tromey <tom@tromey.com>
5090 * tui/tui-layout.c (tui_set_layout): Update.
5091 * tui/tui-data.h (struct tui_layout_def): Remove.
5092 (tui_layout_def): Don't declare.
5093 * tui/tui-data.c (layout_def): Remove.
5094 (tui_layout_def): Remove.
5096 2019-08-13 Tom Tromey <tom@tromey.com>
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <clear_detail>: No longer "override".
5100 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5101 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5102 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5103 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5105 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5107 2019-08-13 Tom Tromey <tromey@adacore.com>
5109 * tracepoint.c: Don't include readline.h or history.h.
5111 2019-08-12 Tom Tromey <tom@tromey.com>
5113 * configure: Rebuild.
5114 * configure.ac: Check for readline 7.
5115 * NEWS: Mention readline 7 requirement.
5118 2019-08-12 Tom Tromey <tom@tromey.com>
5120 * mingw-hdep.c (gdb_select): Remove readline hack.
5122 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5124 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5125 when the function fails.
5127 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5129 * s390-tdep.c (s390_type_align): New function.
5130 (s390_gdbarch_init): Set it as type_align gdbarch method.
5132 2019-08-09 Tom de Vries <tdevries@suse.de>
5135 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5136 pc_low with relocation offset.
5138 2019-08-07 Tom Tromey <tromey@adacore.com>
5140 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5141 (print_frame_args): Update.
5142 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5144 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5145 * frame.h (struct frame_arg): Add initializers.
5146 <error>: Now a unique_xmalloc_ptr.
5148 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5150 * NEWS: Expand the Pointer Authentication entry.
5151 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5152 (aarch64_frame_unmask_lr): ... to this.
5153 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5154 Call aarch64_frame_unmask_lr.
5155 * frame.c (struct frame_info): Add "masked" variable.
5156 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5157 (fprint_frame): Check for masked pc.
5158 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5160 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5161 * stack.c (print_frame): Check for masked pc.
5163 2019-08-06 Tom Tromey <tom@tromey.com>
5165 * stabsread.c (patch_block_stabs, read_one_struct_field)
5166 (read_enum_type): Use obstack_strndup.
5167 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5168 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5169 * dwarf2read.c (guess_full_die_structure_name)
5170 (anonymous_struct_prefix): Use obstack_strndup.
5171 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5172 * c-exp.y (yylex): Use obstack_strndup.
5173 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5174 (write_var_or_type): Use obstack_strndup.
5176 2019-08-06 Tom Tromey <tom@tromey.com>
5178 * symfile.c (reread_symbols): Use obstack_strdup.
5179 * stabsread.c (read_type): Use obstack_strdup.
5180 * gdb_obstack.h (obstack_strdup): New overload.
5181 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5182 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5183 (dwarf2_canonicalize_name): Use obstack_strdup.
5184 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5185 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5188 2019-08-06 Tom Tromey <tom@tromey.com>
5190 * gdb_obstack.h (obstack_strdup): Define.
5191 * gdb_obstack.c (obstack_strdup): Don't define.
5193 2019-08-06 Tom Tromey <tom@tromey.com>
5195 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5197 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5199 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5200 * stabsread.c (common_block_start): Use obstack_strdup.
5201 * objfiles.c (set_objfile_main_name, objfile): Use
5203 * namespace.c (add_using_directive): Use obstack_strdup.
5204 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5205 * jit.c (finalize_symtab): Use obstack_strdup.
5206 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5207 (guess_partial_die_structure_name, partial_die_info::fixup)
5208 (dwarf2_name): Use obstack_strdup.
5209 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5211 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5212 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5214 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5216 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5218 * unittests/help-doc-selftests.c: New file.
5219 * Makefile.in: Add the new file.
5221 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5223 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5224 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5225 the full first line, except when FOR_VALUE_PREFIX. In this case,
5226 the trailing '.' is not output, and the first character is uppercased.
5227 (print_help_for_command): Update call to print_doc_line.
5228 (print_doc_of_command): Likewise.
5229 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5230 * cli/cli-option.c (append_indented_doc): Do not append newline.
5231 (build_help_option): Append newline after first appended_indented_doc
5232 only if a second call is done.
5233 (build_help): Append 2 new lines before each option, except the first
5235 * compile/compile.c (_initialize_compile): Add new lines after
5236 %OPTIONS%, when not at the end of the help.
5237 Change help doc or code
5238 producing the help doc to respect the invariants.
5239 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5240 Also removed the new line after 'Options:', as all other commands
5241 do not put an empty line between 'Options:' and the first option.
5242 * printcmd.c (_initialize_printcmd): Likewise.
5243 * stack.c (_initialize_stack): Likewise.
5244 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5245 incorrectly telling COMMAND is optional.
5246 * ada-lang.c (_initialize_ada_language): Change help doc or code
5247 producing the help doc to respect the invariants.
5248 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5249 * breakpoint.c (_initialize_breakpoint): Likewise.
5250 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5251 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5252 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5253 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5254 _initialize_cli_style): Likewise.
5255 * corelow.c (core_target_info): Likewise.
5256 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5257 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5258 * filesystem.c (_initialize_filesystem): Likewise.
5259 * frame.c (_initialize_frame): Likewise.
5260 * gnu-nat.c (add_task_commands): Likewise.
5261 * infcall.c (_initialize_infcall): Likewise.
5262 * infcmd.c (_initialize_infcmd): Likewise.
5263 * interps.c (_initialize_interpreter): Likewise.
5264 * language.c (_initialize_language): Likewise.
5265 * linux-fork.c (_initialize_linux_fork): Likewise.
5266 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5267 * maint.c (_initialize_maint_cmds): Likewise.
5268 * memattr.c (_initialize_mem): Likewise.
5269 * printcmd.c (_initialize_printcmd): Likewise.
5270 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5272 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5273 * record-btrace.c (_initialize_record_btrace): Likewise.
5274 * record-full.c (_initialize_record_full): Likewise.
5275 * record.c (_initialize_record): Likewise.
5276 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5277 * regcache.c (_initialize_regcache): Likewise.
5278 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5279 _initialize_remote): Likewise.
5280 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5281 * serial.c (_initialize_serial): Likewise.
5282 * skip.c (_initialize_step_skip): Likewise.
5283 * source.c (_initialize_source): Likewise.
5284 * stack.c (_initialize_stack): Likewise.
5285 * symfile.c (_initialize_symfile): Likewise.
5286 * symtab.c (_initialize_symtab): Likewise.
5287 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5288 * top.c (init_main): Likewise.
5289 * tracefile-tfile.c (tfile_target_info): Likewise.
5290 * tracepoint.c (_initialize_tracepoint): Likewise.
5291 * tui/tui-win.c (_initialize_tui_win): Likewise.
5292 * utils.c (add_internal_problem_command): Likewise.
5293 * valprint.c (value_print_option_defs): Likewise.
5295 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5298 * configure.ac: Drop enable-libmcheck support.
5299 * configure, config.in: Rebuild.
5300 * libmcheck.m4: Remove.
5301 * acinclude.m4: Don't include it.
5302 * Makefile.in: Don't distribute it.
5303 * top.c (print_gdb_configuration): Don't mention it.
5305 2019-08-06 Tom Tromey <tom@tromey.com>
5307 * utils.c (set_output_style): Sometimes pass stream to
5309 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5310 * record-btrace.c (btrace_insn_history): Update.
5311 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5313 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5314 Update initializers.
5315 <m_uiout>: New field.
5317 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5318 Remove "uiout" parameter.
5319 (dump_insns): Update.
5320 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5321 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5323 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5325 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5326 (error_in_psymtab_expansion): Likewise.
5327 (lookup_symbol_via_quick_fns): Likewise.
5328 (basic_lookup_transparent_type_quick): Likewise.
5329 (basic_lookup_transparent_type_1): Likewise.
5331 2019-08-06 Tom Tromey <tromey@adacore.com>
5333 * source.c (last_source_error): Now bool.
5334 (print_source_lines_base): Make "noprint" bool. Only open
5335 source file when last_source_visited changes.
5337 2019-08-06 Tom Tromey <tromey@adacore.com>
5339 * annotate.c (annotate_source_line): Use g_source_cache.
5340 * source-cache.c (source_cache::get_plain_source_lines): Change
5341 parameters. Populate m_offset_cache.
5342 (source_cache::ensure): New method.
5343 (source_cache::get_line_charpos): New method.
5344 (extract_lines): Move lower. Change parameters.
5345 (source_cache::get_source_lines): Move lower.
5346 * source-cache.h (class source_cache): Update comment.
5347 <get_line_charpos>: New method.
5348 <get_source_lines>: Update comment.
5349 <clear>: Clear m_offset_cache.
5350 <get_plain_source_lines>: Change parameters.
5351 <ensure>: New method
5352 <m_offset_cache>: New member.
5353 * source.c (forget_cached_source_info_for_objfile): Update.
5354 (info_source_command): Use g_source_cache.
5355 (find_source_lines, open_source_file_with_line_charpos): Remove.
5356 (print_source_lines_base, search_command_helper): Use g_source_cache.
5357 * source.h (open_source_file_with_line_charpos): Don't declare.
5358 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5359 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5362 2019-08-06 Tom Tromey <tromey@adacore.com>
5364 * source-cache.c (source_cache::get_plain_source_lines):
5365 Remove "first_line" and "last_line" parameters.
5366 (source_cache::get_source_lines): Cache plain text.
5367 * source-cache.h (class source_cache)
5368 <get_plain_source_lines>: Update.
5370 2019-08-06 Tom Tromey <tromey@adacore.com>
5372 * source-cache.c (extract_lines): No longer a method.
5373 Changed type of parameter. Include final newline.
5374 (selftests::extract_lines_test): New function.
5375 (_initialize_source_cache): Likewise.
5376 * source-cache.h (class source_cache)
5377 <extract_lines>: Don't declare.
5379 2019-08-06 Tom Tromey <tromey@adacore.com>
5381 * breakpoint.c (init_breakpoint_sal): Update.
5382 (breakpoint): Update.
5383 * breakpoint.h (struct breakpoint) <filter>: Now a
5386 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5388 * NEWS: Mention dictionary access on blocks.
5389 * python/py-block.c (blpy_getitem): New function.
5390 (block_object_as_mapping): New struct.
5391 (block_object_type): Use new struct for tp_as_mapping field.
5393 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5395 * objfiles.h (objfile): Add a comment describing partial symbols.
5397 2019-08-05 Tom Tromey <tromey@adacore.com>
5399 * compile/compile.c (_initialize_compile): Use _(), not N_().
5400 * thread.c (_initialize_thread): Use _(), not N_().
5401 * stack.c (_initialize_stack): Use _(), not N_().
5402 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5404 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5406 * dwarf2read.c (struct dw2_symtab_iterator):
5407 <want_specific_block>: Remove.
5408 <block_index>: Change type to gdb::optional.
5409 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5410 change type of BLOCK_INDEX parameter to gdb::optional.
5411 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5412 (dw2_lookup_symbol): Don't pass argument for
5413 WANT_SPECIFIC_BLOCK.
5414 (dw2_expand_symtabs_for_function): Don't pass argument for
5415 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5416 (class dw2_debug_names_iterator)
5417 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5418 parameter, change BLOCK_INDEX type to gdb::optional.
5419 <m_want_specific_block>: Remove.
5420 <m_block_index>: Change type to gdb::optional.
5421 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5422 gdb::optional. Re-write in function of gdb::optional.
5423 (dw2_debug_names_lookup_symbol): Don't pass argument for
5424 WANT_SPECIFIC_BLOCK.
5425 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5426 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5429 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5431 * NEWS: Mention changes to "info sources" command.
5433 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5435 * symtab.c (filename_partial_match_opts): New struct type.
5436 (struct output_source_filename_data): New members
5437 regexp, c_regexp, partial_match.
5438 (output_source_filename): Use new members to decide to print file.
5439 (info_sources_option_defs): New variable.
5440 (make_info_sources_options_def_group, print_info_sources_header,
5441 info_sources_command_completer):
5443 (info_sources_command): Read new optional arguments.
5444 (_initialize_symtab): Update info sources help.
5446 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5448 * ada-lang.c (exception_support_info_v0): Renamed from...
5449 (default_exception_support_info): ... this. Create new
5451 (ada_has_this_exception_support): Look up catch_handlers_sym.
5452 (ada_exception_support_info_sniffer): Try v0 after default.
5454 2019-08-01 Tom Tromey <tromey@adacore.com>
5456 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5459 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5461 * s12z-tdep.c: Fix include path for s12z-opc.h.
5463 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5465 * NEWS: Require GNU make 3.82.
5467 2019-07-16 Tom Tromey <tom@tromey.com>
5469 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5472 2019-07-30 Tom Tromey <tromey@adacore.com>
5474 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5476 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5478 * printcmd.c (print_address_symbolic): Print negative offsets.
5479 (build_address_symbolic): Force signed arithmetic when computing
5482 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5484 PR/24474: Add a function to lookup static variables.
5485 * NEWS: Mention this new function.
5486 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5487 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5488 * python/python.c (python_GdbMethods): Add new function.
5490 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5492 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5493 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5494 (objfpy_lookup_static_symbol): New function.
5495 (objfile_object_methods): Add new functions.
5497 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5499 * NEWS: Mention 'set|show print frame-info'. Mention new
5500 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5501 backtrace argument. Mention that python frame filtering code
5502 is now consistent with what 'backtrace' command prints.
5504 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5506 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5508 (print_frame_info_auto, print_frame_info_source_line,
5509 print_frame_info_location, print_frame_info_source_and_location,
5510 print_frame_info_location_and_address, print_frame_info_short_location):
5512 (struct frame_print_options): New member print_frame_info.
5513 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5514 * stack.h (get_user_print_what_frame_info): New declaration.
5515 (frame_show_address): New declaration.
5516 * stack.c (print_frame_arguments_choices): New value 'presence'.
5517 (print_frame_info_auto, print_frame_info_source_line,
5518 print_frame_info_location, print_frame_info_source_and_location,
5519 print_frame_info_location_and_address, print_frame_info_short_location,
5520 print_frame_info_choices, print_frame_info_print_what): New definitions.
5521 (print_frame_args): Only print dots for args if print frame-arguments
5523 (frame_print_option_defs): New element for "frame-info".
5524 (get_user_print_what_frame_info): New function.
5525 (frame_show_address): Make non static. Move comment to stack.h.
5526 (print_frame_info_to_print_what): New function.
5527 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5528 to decide what to print.
5529 (backtrace_command_1): Handle the new print_frame_arguments_presence
5531 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5532 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5533 (py_print_frame): In non-mi mode, use LOCATION as default for
5534 print_what, similarly to frame information printed directly by
5535 backtrace command. Handle frame-info user option in non MI mode.
5537 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5539 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5540 Add case for debugging 32-bit target on 64-bit host. Revise
5543 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5545 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5546 instead of find_function_entry_range_from_pc.
5548 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5550 * stack.c (find_frame_funname): Remove code which preferred
5551 minsym over symtab sym in "certain pathological cases".
5553 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5554 parameter. Change type of "do_demangle" to bool.
5555 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5556 Pass suitable "prefer_sym_over_minsym" flag to
5557 build_address_symbolic(). Don't output "+" for negative offsets.
5558 * printcmd.c (print_address_symbolic): Update invocation of
5559 build_address_symbolic to include a "prefer_sym_over_minsym"
5561 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5562 Restrict cases in which use of minimal symbol is preferred to that
5563 of a found symbol. Update comments.
5565 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5566 for entry pc when entry pc is out of range for that FDE.
5568 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5571 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5574 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5576 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5577 this function's Python signature.
5580 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5582 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5583 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5584 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5585 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5586 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5589 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5591 * h8300-tdep.c (h8300_register_name_common): New.
5592 h8300_register_name): Use h8300_register_name_common.
5593 (h8300s_register_name): Likewise.
5594 (h8300sx_register_name): Likewise.
5595 (h8300h_register_nam): New.
5596 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5599 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5601 * arm-tdep.c (arm_skip_cmse_entry): New function.
5602 (arm_is_sgstubs_section): New function.
5603 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5605 2019-07-22 Tom Tromey <tom@tromey.com>
5607 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5610 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5612 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5615 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5617 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5618 so that GDB doesn't match any msymbols when searching in the
5620 (print_symbol_info): Print using typedef_print or type_print based
5621 on the type of the symbol. Add updated FIXME comment moved from...
5622 (_initialize_symtab): ... move and update FIXME comment to above.
5624 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5626 * NEWS: Mention adding -q option to "info types".
5627 * symtab.c (struct info_types_options): New struct.
5628 (info_types_options_defs): New variable.
5629 (make_info_types_options_def_group): New function.
5630 (info_types_command): Use gdb::option framework to parse options.
5631 (info_types_command_completer): New function.
5632 (_initialize_symtab): Extend the help text on "info types" and
5633 register command completer.
5635 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5637 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5638 (lookup_symbol_in_objfile): Change int to block_enum and add a
5639 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5641 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5643 * MAINTAINERS (Write After Approval): Add self.
5645 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5647 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5648 instruction to the dummy code region.
5650 2019-07-19 Tom Tromey <tromey@adacore.com>
5652 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5653 (ARGSUSED, PARAMS, __func__): Remove rules.
5655 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5657 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5658 * features/arm/arm-with-iwmmxt.c: Remove.
5659 * features/arm/arm-with-iwmmxt.xml: Remove.
5660 * features/arm/arm-with-m-fpa-layout.c: Remove.
5661 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5662 * features/arm/arm-with-m-vfp-d16.c: Remove.
5663 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5664 * features/arm/arm-with-m.c: Remove.
5665 * features/arm/arm-with-m.xml: Remove.
5666 * features/arm/arm-with-neon.c: Remove.
5667 * features/arm/arm-with-neon.xml: Remove.
5668 * features/arm/arm-with-vfpv2.c: Remove.
5669 * features/arm/arm-with-vfpv2.xml: Remove.
5670 * features/arm/arm-with-vfpv3.c: Remove.
5671 * features/arm/arm-with-vfpv3.xml: Remove.
5673 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5675 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5677 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5679 * arch/aarch32.c (aarch32_create_target_description): Create
5680 target descriptions using features.
5681 * arch/arm.c (arm_create_target_description)
5682 (arm_create_mprofile_target_description): Likewise.
5683 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5685 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5687 * Makefile.in: Add new files.
5688 * aarch32-tdep.c: New file.
5689 * aarch32-tdep.h: New file.
5690 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5691 Call aarch32_read_description.
5692 * arch/aarch32.c: New file.
5693 * arch/aarch32.h: New file.
5694 * arch/arm.c (arm_create_target_description)
5695 (arm_create_mprofile_target_description): New function.
5696 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5697 (arm_create_target_description)
5698 (arm_create_mprofile_target_description): New declaration.
5699 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5700 read_description functions.
5701 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5703 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5704 * arm-tdep.c (tdesc_arm_list): New variable.
5705 (arm_register_g_packet_guesses): Call create description functions.
5706 (arm_read_description) (arm_read_mprofile_description): New
5708 * arm-tdep.h (arm_read_description)
5709 (arm_read_mprofile_description): Add declaration.
5710 * configure.tgt: Add new files.
5712 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5714 * top.c (new_ui_command): Open specified terminal just once.
5716 2019-07-18 Tom Tromey <tromey@adacore.com>
5718 * symtab.c (main_name): Constify return type.
5719 * symfile.c (set_initial_language): Update.
5720 * symtab.h (main_name): Constify return type.
5722 2019-07-17 Tom Tromey <tom@tromey.com>
5724 * tui/tui-winsource.c (tui_update_source_window)
5725 (tui_update_source_window_as_is)
5726 (tui_update_source_windows_with_line): Remove return.
5727 * tui/tui-disasm.c (tui_show_disassem)
5728 (tui_show_disassem_and_update_source): Remove return.
5729 * tui/tui.c (tui_reset): Remove return.
5730 * tui/tui-wingeneral.c
5731 (tui_check_and_display_highlight_if_needed): Remove return.
5733 2019-07-17 Tom Tromey <tom@tromey.com>
5735 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5737 2019-07-17 Tom Tromey <tom@tromey.com>
5739 * tui/tui-winsource.h (struct tui_exec_info_window)
5740 (struct tui_source_window_base): Move from tui-data.h.
5741 * tui/tui-winsource.c: Move many method definitions from
5742 elsewhere. Remove "structuring" comments.
5743 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5744 (tui_source_window_base::refresh_window): Move to
5746 * tui/tui-win.c (tui_source_window_base::refresh_all)
5747 (tui_source_window_base::update_tab_width)
5748 (tui_source_window_base::set_new_height)
5749 (tui_source_window_base::do_make_visible_with_new_height): Move to
5751 * tui/tui-source.h: Update.
5752 * tui/tui-source.c (tui_source_window_base::reset): Move to
5754 * tui/tui-disasm.h: Update.
5755 * tui/tui-data.h (struct tui_exec_info_window): Move to
5757 (struct tui_source_window_base): Likewise.
5758 * tui/tui-data.c (tui_source_window_base::clear_detail)
5759 (tui_source_window_base, ~tui_source_window_base): Move to
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5764 * tui/tui-win.c (tui_resize_all)
5765 (tui_source_window_base::update_tab_width)
5766 (tui_adjust_win_heights): Update.
5767 (tui_win_info::make_invisible_and_set_new_height): Rename from
5768 make_invisible_and_set_new_height.
5769 * tui/tui-data.h (struct tui_win_info)
5770 <make_invisible_and_set_new_height>: New method.
5772 2019-07-17 Tom Tromey <tom@tromey.com>
5774 * tui/tui.c: Update.
5775 * tui/tui-source.h (struct tui_source_window): Move from
5777 * tui/tui-layout.c: Update.
5778 * tui/tui-disasm.c: Update.
5779 * tui/tui-data.h (struct tui_source_window): Move to
5782 2019-07-17 Tom Tromey <tom@tromey.com>
5784 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5786 * tui/tui-data.h (struct tui_disasm_window): Move to
5789 2019-07-17 Tom Tromey <tom@tromey.com>
5791 * tui/tui-regs.h (struct tui_data_item_window): Move from
5793 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5794 * tui/tui-data.h (struct tui_data_item_window): Move to
5796 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5798 2019-07-17 Tom Tromey <tom@tromey.com>
5800 * tui/tui.c: Update.
5801 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5802 (tui_cmd_window::max_height): Move to tui-command.c.
5803 * tui/tui-layout.c: Update.
5804 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5805 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5807 * tui/tui-command.h (struct tui_cmd_window): Move from
5809 * tui/tui-command.c: Remove "structuring" comments.
5810 (tui_cmd_window::clear_detail)
5811 (tui_cmd_window::do_make_visible_with_new_height)
5812 (tui_cmd_window::max_height): Move from elsewhere.
5814 2019-07-17 Tom Tromey <tom@tromey.com>
5816 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5818 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5819 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5821 2019-07-17 Tom Tromey <tom@tromey.com>
5823 * tui/tui.c: Update.
5824 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5826 * tui/tui-windata.h: Remove file.
5827 * tui/tui-windata.c: Remove file.
5828 * tui/tui-win.c (tui_data_window::set_new_height)
5829 (tui_data_window::do_make_visible_with_new_height): Move to
5831 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5832 * tui/tui-regs.c: Remove "structuring" comments.
5833 (tui_data_window::first_data_item_displayed)
5834 (tui_data_window::delete_data_content_windows)
5835 (tui_data_window::erase_data_content)
5836 (tui_data_window::display_all_data)
5837 (tui_data_window::refresh_all)
5838 (tui_data_window::do_scroll_vertical)
5839 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5840 (tui_data_window::do_make_visible_with_new_height)
5841 (tui_data_window::refresh_window): Move from elsewhere.
5842 (_initialize_tui_regs): Move to end of file.
5843 * tui/tui-layout.c: Update.
5844 * tui/tui-hooks.c: Update.
5845 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5846 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5848 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5850 2019-07-17 Tom Tromey <tom@tromey.com>
5852 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5855 2019-07-17 Tom Tromey <tom@tromey.com>
5857 * tui/tui-win.c (tui_source_window_base::set_new_height)
5858 (tui_source_window_base::do_make_visible_with_new_height): Use
5859 m_has_locator field directly.
5860 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5862 (struct tui_source_window_base) <has_locator>: Likewise.
5864 2019-07-17 Tom Tromey <tom@tromey.com>
5866 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5868 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5870 * tui/tui-win.c (tui_source_window_base::set_new_height)
5871 (tui_source_window_base::set_new_height)
5872 (make_invisible_and_set_new_height)
5873 (tui_source_window_base::do_make_visible_with_new_height)
5874 (tui_source_window_base::do_make_visible_with_new_height):
5876 * tui/tui-layout.c (show_source_disasm_command, show_data)
5877 (show_source_or_disasm_and_command): Update.
5878 * tui/tui-layout.c (show_layout): Update.
5880 2019-07-17 Tom Tromey <tom@tromey.com>
5882 * tui/tui-layout.c (make_data_window): Remove.
5883 (show_data): Unify creation and re-initialization cases.
5885 2019-07-17 Tom Tromey <tom@tromey.com>
5887 * tui/tui-layout.c (make_source_window, make_disasm_window):
5889 (show_data): Unify creation and re-initialization cases.
5891 2019-07-17 Tom Tromey <tom@tromey.com>
5893 * tui/tui-layout.c (make_command_window): Remove.
5894 (show_source_disasm_command, show_source_or_disasm_and_command):
5895 Unify creation and re-initialization cases.
5897 2019-07-17 Tom Tromey <tom@tromey.com>
5899 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5900 creation and re-initialization cases.
5902 2019-07-17 Tom Tromey <tom@tromey.com>
5904 * tui/tui-regs.c (tui_get_register): Return void.
5906 2019-07-17 Tom Tromey <tom@tromey.com>
5908 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5911 2019-07-17 Tom Tromey <tom@tromey.com>
5913 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5916 2019-07-17 Tom Tromey <tom@tromey.com>
5918 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5919 * tui/tui-regs.c (tui_reg_layout): New function.
5920 (tui_show_registers, tui_reg_command): Use it.
5921 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5922 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5924 (tui_layout_command): Remove.
5926 2019-07-17 Tom Tromey <tom@tromey.com>
5928 * tui/tui-layout.h (tui/tui-layout): Return void.
5929 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5931 2019-07-17 Tom Tromey <tom@tromey.com>
5933 * tui/tui-layout.c (show_source_disasm_command, show_data):
5935 (reset_locator): Remove.
5936 (show_source_or_disasm_and_command): Update.
5938 2019-07-17 Tom Tromey <tom@tromey.com>
5940 * tui/tui-source.c (tui_source_window_base::reset): Remove
5942 * tui/tui-layout.c (make_command_window, make_source_window)
5943 (make_disasm_window, make_data_window)
5944 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5945 (reset_locator, show_source_or_disasm_and_command): Update.
5946 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5948 (struct tui_source_window_base) <reset>: Likewise.
5950 2019-07-17 Tom Tromey <tom@tromey.com>
5952 * tui/tui-layout.c (show_source_disasm_command): Use
5954 (reset_locator): New function.
5955 (init_and_make_win): Remove.
5956 (show_source_or_disasm_and_command): Use reset_locator.
5958 2019-07-17 Tom Tromey <tom@tromey.com>
5960 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5962 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5964 * tui/tui-source.c (tui_source_window_base::reset): New method.
5965 * tui/tui-layout.c (make_command_window): Don't call
5967 (make_source_window, make_disasm_window): Don't call
5968 make_source_or_disasm_window.
5969 (make_data_window): Don't call init_and_make_win. Change calling
5971 (show_source_disasm_command, show_data): Simplify.
5972 (make_source_or_disasm_window): Remove.
5973 (show_source_or_disasm_and_command): Simplify.
5974 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5975 (struct tui_source_window_base) <reset>: Likewise.
5976 <execution_info>: Remove initializer.
5977 * tui/tui-data.c (tui_source_window_base): Initialize
5980 2019-07-17 Tom Tromey <tom@tromey.com>
5982 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5985 2019-07-17 Tom Tromey <tom@tromey.com>
5987 * tui/tui.c (tui_rl_other_window): Update.
5988 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5989 superclass method first. Always iterate over regs_content.
5990 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5992 * tui/tui-win.c (tui_set_focus_command): Update.
5994 2019-07-17 Tom Tromey <tom@tromey.com>
5996 * tui/tui-win.c (tui_set_focus_command): Rename from
5997 tui_set_focus. Call tui_enable.
5998 (tui_set_focus_command): Remove.
6000 2019-07-17 Tom Tromey <tom@tromey.com>
6002 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6004 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6006 (tui_data_window::refresh_window): Call refresh_window on data
6007 items. Always call superclass refresh_window.
6008 (tui_win_info::refresh): Remove.
6009 (tui_source_window_base::refresh_window): Update.
6010 (tui_refresh_all): Update.
6011 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6013 (show_source_or_disasm_and_command): Likewise.
6014 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6015 (struct tui_source_window_base) <refresh>: Likewise.
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6019 * tui/tui-winsource.c (tui_clear_source_content)
6020 (tui_show_source_content): Update.
6021 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6022 whether content is empty.
6023 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6026 2019-07-17 Tom Tromey <tom@tromey.com>
6028 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6030 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6031 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6033 2019-07-17 Tom Tromey <tom@tromey.com>
6035 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6036 (struct tui_data_item_window): Update.
6038 2019-07-17 Tom Tromey <tom@tromey.com>
6040 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6041 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6044 2019-07-17 Tom Tromey <tom@tromey.com>
6046 * tui/tui-winsource.h (tui_erase_source_content)
6047 (tui_clear_source_content): Remove "display_prompt" parameter.
6048 * tui/tui-winsource.c (tui_update_source_window_as_is)
6049 (tui_update_source_windows_with_addr): Update.
6050 (tui_clear_source_content): Remove "display_prompt" parameter.
6051 (tui_erase_source_content): Likewise. Simplify.
6052 (tui_show_source_content): Update.
6053 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6054 * tui/tui-stack.c (tui_show_frame_info): Update.
6055 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6058 2019-07-17 Tom Tromey <tom@tromey.com>
6060 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6061 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6063 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6066 2019-07-17 Tom Tromey <tom@tromey.com>
6068 * tui/tui-winsource.c (tui_clear_source_content)
6069 (tui_show_source_content, tui_show_exec_info_content)
6070 (tui_clear_exec_info_content): Update.
6071 * tui/tui-stack.c (tui_show_locator_content): Update.
6072 (tui_show_frame_info): Update.
6073 * tui/tui-source.h (tui_source_window): Don't declare.
6074 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6075 from tui_source_is_displayed.
6076 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6078 (struct tui_source_window_base) <content_in_use>: New field. Now
6080 (struct tui_source_window) <showing_source_p>: New method.
6081 (TUI_SRC_WIN): Change cast.
6082 * tui/tui-data.c (tui_initialize_static_data): Update.
6084 2019-07-17 Tom Tromey <tom@tromey.com>
6086 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6088 * tui/tui-source.c (tui_source_window::location_matches_p): New
6090 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6092 * tui/tui-data.h (struct tui_source_window_base)
6093 <location_matches_p>: New method.
6094 (struct tui_source_window, struct tui_disasm_window)
6095 <location_matches_p>: Likewise.
6097 2019-07-17 Tom Tromey <tom@tromey.com>
6099 * tui/tui-win.c (tui_set_win_height_command): Rename from
6101 (tui_set_win_height_command): Remove.
6103 2019-07-17 Tom Tromey <tom@tromey.com>
6105 * tui/tui-source.c (tui_source_window): New constructor. Add
6107 (~tui_source_window): New destructor.
6108 (tui_source_window::style_changed): New method.
6109 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6110 (tui_attach_detach_observers): Update.
6111 * tui/tui-data.h (struct tui_source_window): Make constructor not
6112 inline. Add destructor.
6113 (struct tui_source_window) <style_changed>: New method.
6114 <m_observable>: New member.
6116 2019-07-17 Tom Tromey <tom@tromey.com>
6118 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6119 * tui/tui-win.c (tui_resize_all): Fix typo.
6121 2019-07-17 Tom Tromey <tom@tromey.com>
6123 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6124 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6125 (tui_refresh_all): Remove "list" parameter. Use foreach.
6126 * tui/tui-win.c (window_name_completer): Use foreach.
6127 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6128 (update_tab_width): Likewise.
6129 * tui/tui-layout.c (show_layout): Update.
6130 * tui/tui-data.h (class tui_window_iterator): New.
6131 (struct all_tui_windows): New.
6132 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6134 2019-07-17 Tom Tromey <tom@tromey.com>
6136 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6137 parameter. Don't reference globals.
6138 (tui_reg_command): Update.
6140 2019-07-17 Tom Tromey <tom@tromey.com>
6142 * tui/tui-regs.c (tui_show_registers): Simplify.
6144 2019-07-17 Tom Tromey <tom@tromey.com>
6146 * tui/tui-regs.c (tui_show_registers): Update.
6147 (tui_show_register_group): Add win_info parameter.
6149 2019-07-17 Tom Tromey <tom@tromey.com>
6151 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6152 Rename from tui_display_reg_element_at_line.
6153 (tui_data_window::display_registers_from_line): Update.
6154 * tui/tui-data.h (struct tui_data_window)
6155 <display_reg_element_at_line>: New method.
6157 2019-07-17 Tom Tromey <tom@tromey.com>
6159 * tui/tui-regs.h (tui_display_registers_from)
6160 (tui_display_registers_from_line): Don't declare.
6161 * tui/tui-windata.c (tui_data_window::display_all_data)
6162 (tui_data_window::refresh_all)
6163 (tui_data_window::do_scroll_vertical): Update.
6164 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6165 from tui_display_registers_from.
6166 (tui_display_reg_element_at_line): Update.
6167 (tui_data_window::display_registers_from_line): Rename from
6168 tui_display_registers_from_line.
6169 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6170 display_registers_from_line>: New methods.
6172 2019-07-17 Tom Tromey <tom@tromey.com>
6174 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6175 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6176 from tui_erase_data_content.
6177 (tui_data_window::display_all_data)
6178 (tui_data_window::refresh_all)
6179 (tui_data_window::do_scroll_vertical): Update.
6180 * tui/tui-regs.c (tui_show_registers): Update.
6181 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6184 2019-07-17 Tom Tromey <tom@tromey.com>
6186 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6189 (tui_data_window::delete_data_content_windows): Rename from
6190 tui_delete_data_content_windows.
6191 (tui_data_window::display_all_data)
6192 (tui_data_window::do_scroll_vertical): Update.
6193 * tui/tui-data.h (struct tui_data_window)
6194 <delete_data_content_windows>: New method.
6196 2019-07-17 Tom Tromey <tom@tromey.com>
6198 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6199 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6201 2019-07-17 Tom Tromey <tom@tromey.com>
6203 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6204 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6205 from tui_display_all_data.
6207 (tui_data_window::do_make_visible_with_new_height): Update.
6208 * tui/tui-regs.c (tui_show_registers): Update.
6209 * tui/tui-layout.c (tui_set_layout): Update.
6210 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6213 2019-07-17 Tom Tromey <tom@tromey.com>
6215 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6216 * tui/tui-windata.c (tui_display_data_from): Remove.
6217 (tui_data_window::refresh_all): Update.
6219 2019-07-17 Tom Tromey <tom@tromey.com>
6221 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6222 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6223 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6224 tui_display_registers_from_line.
6225 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6226 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6227 "force_display" parameter.
6229 2019-07-17 Tom Tromey <tom@tromey.com>
6231 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6233 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6234 Rename from tui_first_reg_element_no_inline.
6235 (tui_display_reg_element_at_line)
6236 (tui_display_registers_from_line): Update.
6237 * tui/tui-data.h (struct tui_data_window)
6238 <first_reg_element_no_inline>: New method.
6240 2019-07-17 Tom Tromey <tom@tromey.com>
6242 * tui/tui-windata.c (tui_display_data_from)
6243 (tui_data_window::do_scroll_vertical): Update.
6244 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6245 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6246 Rename from tui_line_from_reg_element_no.
6247 (tui_display_registers_from_line): Update.
6248 * tui/tui-data.h (struct tui_data_window)
6249 <line_from_reg_element_no>: New method.
6251 2019-07-17 Tom Tromey <tom@tromey.com>
6253 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6254 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6255 tui_last_regs_line_no.
6256 (tui_display_reg_element_at_line)
6257 (tui_display_registers_from_line): Update.
6258 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6261 2019-07-17 Tom Tromey <tom@tromey.com>
6264 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6265 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6266 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6267 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6268 (tui_update_breakpoint_info): Likewise.
6269 * tui/tui-hooks.c (tui_event_create_breakpoint)
6270 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6273 2019-07-17 Tom Tromey <tom@tromey.com>
6275 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6277 2019-07-17 Tom Tromey <tom@tromey.com>
6279 * tui/tui-winsource.c (tui_update_source_window_as_is)
6280 (tui_update_source_windows_with_addr): Update.
6281 * tui/tui-source.h (tui_set_source_content)
6282 (tui_show_symtab_source): Add "win_info" parameter.
6283 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6285 (tui_show_symtab_source): Likewise.
6287 2019-07-17 Tom Tromey <tom@tromey.com>
6289 * tui/tui-wingeneral.c
6290 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6292 2019-07-17 Tom Tromey <tom@tromey.com>
6294 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6295 (struct tui_cmd_window) <can_scroll>: New method.
6296 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6299 2019-07-17 Tom Tromey <tromey@adacore.com>
6301 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6302 do_field_signed>: Rename. Change type of "value".
6303 * ui-out.c (ui_out::field_signed): Rename from field_int.
6304 Change type of "value".
6305 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6307 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6308 do_field_int. Change type of "value".
6309 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6310 do_field_int. Change type of "value".
6311 * tracepoint.c (trace_status_mi, tfind_1)
6312 (print_one_static_tracepoint_marker): Update.
6313 * thread.c (print_thread_info_1, print_selected_thread_frame):
6315 * stack.c (print_frame, print_frame_info): Update.
6316 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6318 * source.c (print_source_lines_base): Update.
6319 * skip.c (info_skip_command): Update.
6320 * record-btrace.c (btrace_ui_out_decode_error)
6321 (btrace_call_history_src_line): Update.
6322 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6324 * progspace.c (print_program_space): Update.
6325 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6326 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6327 do_field_int. Change type of "value".
6328 * mi/mi-out.c (mi_ui_out::do_table_begin)
6329 (mi_ui_out::do_table_header): Update.
6330 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6332 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6333 (mi_cmd_data_list_changed_registers, output_register)
6334 (mi_cmd_data_read_memory, mi_load_progress)
6335 (mi_cmd_trace_frame_collected): Update.
6336 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6338 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6339 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6340 (mi_cmd_var_list_children, varobj_update_one): Update.
6341 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6342 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6343 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6344 * inferior.c (print_inferior): Update.
6345 * gdb_bfd.c (print_one_bfd): Update.
6346 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6348 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6349 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6350 do_field_int. Change type of "value".
6351 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6352 do_field_int. Change type of "value".
6353 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6354 (print_one_breakpoint_location, print_it_catch_fork)
6355 (print_one_catch_fork, print_it_catch_vfork)
6356 (print_one_catch_vfork, print_it_catch_solib)
6357 (print_it_catch_exec, print_it_ranged_breakpoint)
6358 (print_mention_watchpoint, print_mention_masked_watchpoint)
6359 (bkpt_print_it, update_static_tracepoint): Update.
6360 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6361 * break-catch-syscall.c (print_it_catch_syscall): Update.
6362 * ada-tasks.c (print_ada_task_info): Update.
6363 * ada-lang.c (print_it_exception, print_mention_exception):
6366 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6368 PR breakpoints/24541
6369 * gdbarch.c: Regenerate.
6370 * gdbarch.h: Regenerate.
6371 * gdbarch.sh: Adjust return type and parameter types for
6372 'stap_adjust_register'.
6373 (i386_stap_adjust_register): Adjust signature and return new
6375 * stap-probe.c (stap_parse_register_operand): Adjust use of
6376 'gdbarch_stap_adjust_register'.
6378 2019-07-17 Tom Tromey <tromey@adacore.com>
6380 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6382 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6384 (struct s390_process_info): Add initializers.
6385 (s390_add_process): Use new.
6386 (s390_linux_nat_target::low_forget_process): Use delete.
6387 (s390_linux_nat_target::low_new_fork)
6388 (s390_linux_nat_target::stopped_by_watchpoint)
6389 (s390_linux_nat_target::low_prepare_to_resume)
6390 (s390_linux_nat_target::insert_watchpoint)
6391 (s390_linux_nat_target::insert_hw_breakpoint)
6392 (s390_linux_nat_target::remove_watchpoint)
6393 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6395 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6397 * aarch64-fbsd-nat.c: Include regcache.h.
6398 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6400 (aarch64_fbsd_nat_target::fetch_registers)
6401 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6403 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6405 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6407 * fbsd-nat.c: Include gdbarch.h.
6409 2019-07-15 Tom Tromey <tromey@adacore.com>
6411 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6413 2019-07-15 Tom Tromey <tromey@adacore.com>
6415 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6416 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6417 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6418 * cli-out.c (cli_ui_out::do_field_int): New method.
6419 * ui-out.c (ui_out::field_unsigned): New method.
6420 * symfile.c (generic_load): Use field_unsigned.
6421 (print_transfer_performance): Likewise.
6422 * record-btrace.c (ui_out_field_uint): Remove.
6423 (btrace_call_history_insn_range, btrace_call_history): Use
6425 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6427 * ui-out.h (class ui_out) <field_unsigned>: New method.
6428 <do_field_unsigned>: Likewise.
6430 2019-07-15 Tom Tromey <tromey@adacore.com>
6432 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6433 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6434 * target.c (flash_erase_command): Use field_string.
6435 * infrun.c (print_signal_received_reason): Use field_string.
6436 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6437 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6439 * ada-tasks.c (print_ada_task_info): Use field_string.
6441 2019-07-15 Tom Tromey <tromey@adacore.com>
6443 * target.c (flash_erase_command): Use field_core_addr.
6444 * symfile.c (generic_load): Use field_core_addr.
6445 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6446 Use field_core_addr.
6447 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6450 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6452 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6453 value if its desired type is smaller than a CORE_ADDR and signed.
6455 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6458 of changes to field names, and use new is_reference field to
6459 decide if a property is a reference or not.
6460 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6462 (struct dwarf2_property_baton): Update header comment, rename
6463 'referenced_type' to 'property_type' and update comments.
6464 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6465 default property type, store in property baton, update to take
6466 accound of renamed field.
6467 (read_func_scope): Update call to attr_to_dynamic_prop.
6468 (read_array_type): Likewise.
6469 (dwarf2_per_cu_addr_sized_int_type): New function.
6470 (read_subrange_index_type): Move type finding code to
6471 dwarf2_per_cu_addr_sized_int_type.
6472 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6473 (dwarf2_per_cu_addr_type): New function.
6474 (set_die_type): Update calls to attr_to_dynamic_prop.
6476 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6478 * dwarf2read.c (read_subrange_index_type): New function.
6479 (read_subrange_type): Move code into new function and call it.
6480 * gdbtypes.c (create_range_type): Add some asserts.
6482 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6484 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6485 update return statements.
6486 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6487 declaration, and update comment to match.
6488 * gdbtypes.c (resolve_dynamic_array): Update call to
6489 dwarf2_evaluate_property to match new return type.
6491 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6493 * valarith.c (value_subscripted_rvalue): Change lowerbound
6494 parameter type from int to LONGEST.
6495 * value.h (value_subscripted_rvalue): Likewise in declaration.
6497 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6499 * cli/cli-utils.c (info_print_command_completer): New function.
6500 * cli/cli-utils.h: Add 'completer.h' include, and forward
6501 declaration for 'struct cmd_list_element'.
6502 (info_print_command_completer): Declare.
6503 * stack.c (_initialize_stack): Add completer for 'info locals' and
6505 * symtab.c (_initialize_symtab): Add completer for 'info
6506 variables' and 'info functions'.
6507 * NEWS: Mention completion for additional info commands.
6509 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6511 * cli/cli-utils.c (extract_info_print_args): Delete.
6512 (extract_arg_maybe_quoted): Delete.
6513 (info_print_options_defs): New variable.
6514 (make_info_print_options_def_group): New function.
6515 (extract_info_print_options): Define new function.
6516 * cli/cli-utils.h (extract_info_print_args): Delete.
6517 (struct info_print_options): New structure.
6518 (extract_info_print_options): Declare new function.
6519 * stack.c (info_locals_command): Update to use new
6520 extract_info_print_options, also add a header comment.
6521 (info_args_command): Likewise.
6522 * symtab.c (info_variables_command): Likewise.
6523 (info_functions_command): Likewise.
6525 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6527 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6528 to extract string arguments.
6529 * common/common-utils.c (extract_string_maybe_quoted): New function.
6530 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6532 2019-07-11 Tom Tromey <tromey@adacore.com>
6534 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6535 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6536 * top.h (gdbinit): Don't declare.
6537 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6539 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6540 * top.c (gdb_init): Don't call init_cli_cmds.
6542 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6544 2019-07-11 Tom Tromey <tromey@adacore.com>
6546 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6547 after it has been moved.
6549 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6551 * valops.c (value_must_coerce_to_target): Change return type to
6553 * value.h (value_must_coerce_to_target): Likewise.
6555 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6557 * breakpoint.c (is_hardware_watchpoint): Remove
6558 forward-declaration.
6559 (is_masked_watchpoint): Change return type to bool.
6560 (is_tracepoint): Likewise.
6561 (is_breakpoint): Likewise.
6562 (is_hardware_watchpoint): Likewise.
6563 (is_watchpoint): Likewise.
6564 (is_no_memory_software_watchpoint): Likewise.
6565 (is_catchpoint): Likewise.
6566 (breakpoint_1): Make FILTER parameter's return type bool.
6567 is_masked_watchpoint): Change return type to bool.
6568 (save_breakpoints): Make FILTER parameter's return type bool.
6569 * breakpoint.h (is_breakpoint): Change return type to bool.
6570 (is_watchpoint): Likewise.
6571 (is_catchpoint): Likewise.
6572 (is_tracepoint): Likewise.
6574 2019-07-10 Tom Tromey <tom@tromey.com>
6576 * defs.h: Don't include gdbarch.h.
6577 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6578 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6579 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6580 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6581 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6582 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6583 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6584 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6585 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6586 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6587 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6588 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6589 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6590 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6591 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6592 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6593 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6594 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6595 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6596 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6597 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6598 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6599 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6600 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6601 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6602 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6603 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6605 2019-07-10 Tom Tromey <tromey@adacore.com>
6607 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6608 * breakpoint.c (init_ada_exception_breakpoint): Register as
6610 (print_one_breakpoint_location, print_one_breakpoint): Use
6611 is_ada_exception_catchpoint.
6612 * ada-lang.c (class ada_catchpoint_location): Pass
6613 bp_loc_software_breakpoint to bp_location constructor.
6614 (is_ada_exception_catchpoint): New function.
6616 2019-07-10 Tom Tromey <tromey@adacore.com>
6618 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6620 (struct arm_exidx_entry): New method operator<.
6621 (struct arm_exidx_data) <section_maps>: Change type.
6622 (arm_exidx_data_free): Remove.
6623 (arm_exidx_data_key): Change type. Move lower.
6624 (arm_exidx_new_objfile): Update.
6625 (arm_compare_exidx_entries): Remove.
6626 (arm_find_exidx_entry, _initialize_arm_tdep)
6628 2019-07-10 Tom Tromey <tromey@adacore.com>
6630 * solib-spu.c (ocl_program_data_key): Change type.
6631 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6634 2019-07-10 Tom Tromey <tromey@adacore.com>
6636 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6637 (struct solib_aix_inferior_data) <library_list>: Change type.
6638 (solib_aix_inferior_data_handle): Change type.
6639 (get_solib_aix_inferior_data): Update.
6640 (solib_aix_free_library_list): Remove.
6641 (library_list_start_library): Update.
6642 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6644 (solib_aix_get_library_list)
6645 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6646 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6648 2019-07-10 Tom Tromey <tromey@adacore.com>
6650 * solib-dsbt.c (struct dsbt_info): Add initializers.
6651 (solib_dsbt_pspace_data): Change type.
6652 (dsbt_pspace_data_cleanup): Remove.
6653 (get_dsbt_info, _initialize_dsbt_solib): Update.
6655 2019-07-10 Tom Tromey <tromey@adacore.com>
6657 * spu-tdep.c (spu_overlay_data): Change type.
6658 (spu_get_overlay_table, spu_overlay_new_objfile)
6659 (_initialize_spu_tdep): Update.
6661 2019-07-10 Tom Tromey <tromey@adacore.com>
6663 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6665 (dbx_objfile_data_key): Change type and declare later.
6666 (DBX_SYMFILE_INFO): Rewrite.
6667 * dbxread.c (dbx_objfile_data_key): Change type.
6668 (dbx_symfile_init): Update.
6669 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6670 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6671 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6673 2019-07-10 Tom Tromey <tromey@adacore.com>
6675 * jit.c (jit_program_space_key): Change type. Move lower.
6676 (get_jit_program_space_data): Update.
6677 (jit_program_space_data_cleanup): Remove.
6678 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6680 (struct jit_program_space_data): Add initializers.
6682 2019-07-10 Tom Tromey <tromey@adacore.com>
6684 * solib-darwin.c (struct darwin_info): Add initializers.
6685 (solib_darwin_pspace_data): Change type.
6686 (darwin_pspace_data_cleanup): Remove.
6687 (get_darwin_info, _initialize_darwin_solib): Update.
6689 2019-07-10 Tom Tromey <tromey@adacore.com>
6691 * remote-sim.c (struct sim_inferior_data): Add initializers,
6692 constructor, and destructor.
6693 (sim_inferior_data_key): Change type. Move lower.
6694 (check_for_duplicate_sim_descriptor): Update.
6695 (get_sim_inferior_data): Use new. Update.
6696 (~sim_inferior_data_cleanup): Rename from
6697 sim_inferior_data_cleanup. Simplify.
6698 (gdbsim_close_inferior, simulator_command)
6699 (sim_command_completer, _initialize_remote_sim): Update.
6700 (next_pid, INITIAL_PID): Move earlier.
6702 2019-07-10 Tom Tromey <tromey@adacore.com>
6704 * python/python-internal.h (create_thread_object): Return
6706 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6707 * python/py-inferior.c (struct threadlist_entry): Add
6709 <thread_obj>: Now a gdbpy_ref.
6710 (thread_to_thread_object): Update.
6711 (add_thread_object): Use new.
6712 (delete_thread_object): Use delete.
6713 (infpy_threads): Update.
6714 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6717 2019-07-10 Tom Tromey <tromey@adacore.com>
6719 * valops.c (value_cast): Specialize error message for Ada.
6721 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6723 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6725 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6727 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6728 bpstat_should_step): Return bool, adjust comments.
6729 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6730 bpstat_should_step): Likewise.
6732 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6734 * features/Makefile: Use feature target descriptions for Arm.
6735 * features/arm/arm-core.c: Generate new file.
6736 * features/arm/arm-fpa.c: Likewise.
6737 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6738 * features/arm/arm-m-profile.c: Likewise.
6739 * features/arm/arm-vfpv2.c: Likewise.
6740 * features/arm/arm-vfpv3.c: Likewise.
6741 * features/arm/xscale-iwmmxt.c: Likewise.
6742 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6744 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6746 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6749 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6751 * features/aarch64-pauth.c: Regenerate.
6753 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6755 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6757 (bpstat_what): Use false instead of 0.
6759 2019-07-09 Pedro Alves <palves@redhat.com>
6761 * break-catch-throw.c (is_exception_catchpoint): New.
6762 * breakpoint.c (print_one_breakpoint_location): New parameter
6763 'raw_loc'. Handle it. Use
6764 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6765 looking at the breakpoint's type.
6766 (print_one_breakpoint): If handling "maint info breakpoints", also
6767 print locations of exception catchpoints.
6768 * breakpoint.h (is_exception_catchpoint): Declare.
6770 2019-07-09 Pedro Alves <palves@redhat.com>
6772 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6774 (allocate_location_exception_catchpoint): New.
6775 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6776 (initialize_throw_catchpoint_ops): Install
6777 allocate_location_exception_catchpoint as allocate_location
6779 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6780 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6782 (breakpoint_address_is_meaningful): Delete.
6783 (bl_address_is_meaningful): New.
6784 (breakpoint_locations_match): Adjust comment.
6785 (bp_location_from_bp_type): New, factored out of...
6786 (bp_location::bp_location(breakpoint *)): ... this.
6787 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6789 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6790 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6791 breakpoint_address_is_meaningful.
6792 (bp_locations_compare): Adjust comment.
6793 (update_global_location_list): Use bl_address_is_meaningful
6794 instead of breakpoint_address_is_meaningful.
6795 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6797 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6798 * python/py-breakpoint.c (bppy_get_location): No longer check
6799 whether location is null.
6801 2019-07-09 Pedro Alves <palves@redhat.com>
6804 * breakpoint.c (print_one_breakpoint_location): Remove
6805 single-location assert.
6807 2019-07-09 Tom Tromey <tom@tromey.com>
6809 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6810 * configure: Rebuild.
6811 * configure.ac: Change common to gdbsupport.
6812 * gdbsupport: Rename from common.
6813 * acinclude.m4: Change common to gdbsupport.
6814 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6815 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6817 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6818 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6819 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6820 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6821 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6822 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6823 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6824 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6825 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6826 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6827 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6828 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6829 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6830 coff-pe-read.c, command.h, compile/compile-c-support.c,
6831 compile/compile-c.h, compile/compile-cplus-symbols.c,
6832 compile/compile-cplus-types.c, compile/compile-cplus.h,
6833 compile/compile-loc2c.c, compile/compile.c, completer.c,
6834 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6835 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6836 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6837 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6838 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6839 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6840 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6841 features/aarch64-core.c, features/aarch64-fpu.c,
6842 features/aarch64-pauth.c, features/aarch64-sve.c,
6843 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6844 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6845 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6846 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6847 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6848 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6849 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6850 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6851 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6852 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6853 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6854 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6855 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6856 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6857 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6858 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6859 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6860 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6861 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6862 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6863 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6864 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6865 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6866 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6867 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6868 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6869 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6870 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6871 minsyms.c, mips-linux-tdep.c, namespace.h,
6872 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6873 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6874 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6875 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6876 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6877 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6878 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6879 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6880 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6881 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6882 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6883 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6884 procfs.c, producer.c, progspace.h, psymtab.h,
6885 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6886 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6887 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6888 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6889 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6890 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6891 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6892 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6893 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6894 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6895 target-memory.c, target.c, target.h, target/waitstatus.c,
6896 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6897 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6898 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6899 unittests/array-view-selftests.c,
6900 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6901 unittests/common-utils-selftests.c,
6902 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6903 unittests/format_pieces-selftests.c,
6904 unittests/function-view-selftests.c,
6905 unittests/lookup_name_info-selftests.c,
6906 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6907 unittests/mkdir-recursive-selftests.c,
6908 unittests/observable-selftests.c,
6909 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6910 unittests/parse-connection-spec-selftests.c,
6911 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6912 unittests/scoped_fd-selftests.c,
6913 unittests/scoped_mmap-selftests.c,
6914 unittests/scoped_restore-selftests.c,
6915 unittests/string_view-selftests.c, unittests/style-selftests.c,
6916 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6917 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6918 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6919 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6920 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6921 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6923 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6925 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6927 (decode_digits_ordinary): Set explicit_line field in sal.
6928 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6929 symtab_and_line that was set on an explicit line number in
6930 assembler code. Do always update the recorded symtab and line if
6931 we do skip the prologue.
6933 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6935 * breakpoint.c (set_breakpoint_location_function): Remove
6936 explicit_loc parameter.
6937 (momentary_breakpoint_from_master): Update call to
6938 set_breakpoint_location_function.
6939 (add_location_to_breakpoint): Likewise.
6941 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6943 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6944 required features based on default bfd type when no specific bfd
6947 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6949 * NEWS: Mention that GDB printf and eval commands can now print
6950 C-style and Ada-style convenience var strings without
6951 calling the inferior.
6952 * printcmd.c (printf_c_string): Locally print GDB internal var
6953 instead of transiting via the inferior.
6954 (printf_wide_c_string): Likewise.
6956 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6958 PR breakpoints/25011
6959 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6961 2019-07-04 Tom Tromey <tom@tromey.com>
6964 * tui/tui-winsource.c (tui_clear_source_content): Update.
6965 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6966 (tui_update_breakpoint_info): Update.
6967 (tui_set_exec_info_content): Update.
6968 * tui/tui-source.c (tui_set_source_content_nil): Update.
6969 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6971 * tui/tui-data.h (enum tui_bp_flag): New.
6972 (tui_bp_flags): New enum flags type.
6973 (struct tui_source_element) <break_mode>: Change type. Rename
6975 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6976 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6978 * tui/tui-winsource.h: Fix comment.
6980 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6982 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6983 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6984 (store_fpregs_to_thread)
6985 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6986 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6987 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6988 (IWMMXT_REGS_SIZE): Add define.
6989 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6990 (fetch_vfp_regs, store_vfp_regs)
6991 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6992 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6994 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6996 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6998 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6999 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7000 (ARM_INT_REGISTER_SIZE): ...to this.
7001 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7002 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7003 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7004 (arm_linux_collect_gregset, supply_nwfpe_register)
7005 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7007 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7008 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7009 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7010 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7011 (arm_return_in_memory, arm_store_return_value)
7012 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7013 (arm_record_ld_st_multiple): Likewise.
7014 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7015 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7017 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7019 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7020 AARCH64_DISPLACED_MODIFIED_INSNS.
7021 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7022 (aarch64_displaced_step_copy_insn): Likewise.
7023 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7024 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7025 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7026 ARM_DISPLACED_MODIFIED_INSNS.
7027 * arm-tdep.c (arm_gdbarch_init): Likewise.
7028 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7029 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7030 (struct arm_displaced_step_closure): Use
7031 ARM_DISPLACED_MODIFIED_INSNS.
7033 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7035 * features/Makefile: Remove unused xml files.
7036 * features/aarch64.xml: Remove.
7037 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7038 * features/i386/amd64-avx-avx512.xml: Remove.
7039 * features/i386/amd64-avx-linux.xml: Remove.
7040 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7041 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7042 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7043 * features/i386/amd64-avx-mpx.xml: Remove.
7044 * features/i386/amd64-avx.xml: Remove.
7045 * features/i386/amd64-linux.xml: Remove.
7046 * features/i386/amd64-mpx-linux.xml: Remove.
7047 * features/i386/amd64-mpx.xml: Remove.
7048 * features/i386/amd64.xml: Remove.
7049 * features/i386/i386-avx-avx512-linux.xml: Remove.
7050 * features/i386/i386-avx-avx512.xml: Remove.
7051 * features/i386/i386-avx-linux.xml: Remove.
7052 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7053 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7054 * features/i386/i386-avx-mpx-linux.xml: Remove.
7055 * features/i386/i386-avx-mpx.xml: Remove.
7056 * features/i386/i386-avx.xml: Remove.
7057 * features/i386/i386-linux.xml: Remove.
7058 * features/i386/i386-mmx-linux.xml: Remove.
7059 * features/i386/i386-mmx.xml: Remove.
7060 * features/i386/i386-mpx-linux.xml: Remove.
7061 * features/i386/i386-mpx.xml: Remove.
7062 * features/i386/i386.xml: Remove.
7063 * features/i386/x32-avx-avx512-linux.xml: Remove.
7064 * features/i386/x32-avx-linux.xml: Remove.
7065 * features/i386/x32-linux.xml: Remove.
7067 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7069 * regformats/aarch64.dat: Remove.
7070 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7071 * regformats/i386/amd64-avx-linux.dat: Remove.
7072 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7073 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7074 * regformats/i386/amd64-linux.dat: Remove.
7075 * regformats/i386/amd64-mpx-linux.dat: Remove.
7076 * regformats/i386/amd64.dat: Remove.
7077 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7078 * regformats/i386/i386-avx-linux.dat: Remove.
7079 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7080 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7081 * regformats/i386/i386-linux.dat: Remove.
7082 * regformats/i386/i386-mmx-linux.dat: Remove.
7083 * regformats/i386/i386-mpx-linux.dat: Remove.
7084 * regformats/i386/i386.dat: Remove.
7085 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7086 * regformats/i386/x32-avx-linux.dat: Remove.
7087 * regformats/i386/x32-linux.dat: Remove.
7089 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7091 * aarch64-tdep.c: Remove xml self tests.
7092 * amd64-linux-tdep.c: Likewise.
7093 * amd64-tdep.c: Likewise.
7094 * i386-linux-tdep.c: Likewise.
7095 * i386-tdep.c: Likewise.
7097 2019-07-03 Pedro Alves <palves@redhat.com>
7100 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7101 (pipe_cmd_option_defs): New.
7102 (make_pipe_cmd_options_def_group): New.
7103 (pipe_command): Use gdb::option::process_options.
7104 (pipe_command_completer): New function.
7105 (_initialize_cli_cmds): Install completer for "pipe" command.
7107 2019-07-03 Pedro Alves <palves@redhat.com>
7109 * cli/cli-option.c (union option_value) <string>: New field.
7110 (struct option_def_and_value): Add ctor, move ctor, dtor and
7111 use DISABLE_COPY_AND_ASSIGN.
7112 (option_def_and_value::clear_value): New.
7113 (parse_option, save_option_value_in_ctx, get_val_type_str)
7114 (add_setshow_cmds_for_options): Handle var_string.
7115 * cli-option.h (union option_def::var_address) <string>: New
7117 (struct string_option_def): New.
7118 * maint-test-options.c (struct test_options_opts): Add default
7119 ctor and use DISABLE_COPY_AND_ASSIGN.
7120 <string_opt>: New field.
7121 (test_options_opts::~test_options_opts): New.
7122 (test_options_opts::dump): Also dump "-string".
7123 (test_options_option_defs): Install "string.
7125 2019-07-03 Pedro Alves <palves@redhat.com>
7127 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7128 option_value with a null enumeration.
7129 (complete_options): Save the option values in the context.
7130 (save_option_value_in_ctx): New, factored out from ...
7131 (process_options): ... here.
7132 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7134 * maint-test-options.c (test_options_opts::dump): New, factored
7136 (maintenance_test_options_command_mode): ... here.
7137 (maintenance_test_options_command_completion_result): Delete.
7138 (maintenance_test_options_command_completion_text): Update
7140 (maintenance_show_test_options_completion_result): Change
7141 prototype. Just print
7142 maintenance_test_options_command_completion_text.
7143 (save_completion_result): New.
7144 (maintenance_test_options_completer_mode): Pass options context to
7145 complete_options, and then save a dump.
7146 (_initialize_maint_test_options): Use add_cmd to install "maint
7147 show test-options-completion-result".
7149 2019-07-03 Pedro Alves <palves@redhat.com>
7151 * NEWS (New commands): Mention "with" and "maint with".
7152 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7153 (with_command, with_command_completer): New.
7154 (pipe_command): Adjust to new repeat_previous
7156 (_initialize_cli_cmds): Install the "with" command and its "w"
7158 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7160 * cli/cli-setshow.c (parse_cli_var_uinteger)
7161 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7162 argument strings for all var_types.
7163 (get_setshow_command_value_string): New, factored out from ...
7164 (do_show_command): ... this.
7165 * cli/cli-setshow.h: Include <string>.
7166 (get_setshow_command_value_string): Declare.
7167 * command.h (repeat_previous): Now returns const char *. Adjust
7169 * maint.c: Include "cli/cli-cmds.h".
7170 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7171 (_initialize_maint_cmds): Register the "maintenance with" command.
7172 * top.c (repeat_previous): Move bits from pipe_command here:
7173 Return the saved command line, if any; error out if there's no
7174 command to relaunch.
7176 2019-07-03 Pedro Alves <palves@redhat.com>
7178 * NEWS (New commands): Mention "maint set/show test-settings"
7179 instead of "maint test-settings".
7180 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7181 (maintenance_test_settings_set_list): Rename to ...
7182 (maintenance_set_test_settings_list): ... this.
7183 (maintenance_test_settings_show_list): Rename to ...
7184 (maintenance_show_test_settings_list): ... this.
7185 (maintenance_test_settings_cmd): Delete.
7186 (maintenance_test_settings_set_cmd): ...
7187 (maintenance_set_test_settings_cmd): ... this.
7188 (maintenance_test_settings_show_cmd): ...
7189 (maintenance_show_test_settings_cmd): ... this.
7190 (maintenance_test_settings_show_value_cmd):
7191 (maintenance_show_test_settings_value_cmd): ... this.
7192 (_initialize_maint_test_settings): No longer install the "maint
7193 test-settings" prefix command. Rename "maint test-settings set"
7194 to "maint set test-settings", and "maint test-settings show" to
7195 "maint show test-settings". Adjust all subcommands.
7197 2019-07-03 Pedro Alves <palves@redhat.com>
7199 * maint-test-settings.c: Fix file's intro comment. Replace all
7200 references to "test-options" with references to "test-settings",
7203 2019-07-03 Pedro Alves <palves@redhat.com>
7205 * maint-test-settings.c (maintenance_test_settings_xxx)
7206 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7208 (maintenance_test_settings_enums): Use them.
7209 (maintenance_test_settings_enum): Default to
7210 maintenance_test_settings_xxx.
7211 (_initialize_maint_test_settings): Initialize
7212 MAINTENANCE_TEST_SETTINGS_FILENAME.
7214 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7216 * breakpoint.h (remove_breakpoints_inf): Change return type to
7217 void, move function documentation here.
7218 * breakpoint.c (remove_breakpoints_inf): Change return type to
7219 void, move function documentation to header.
7221 2019-07-02 Pedro Alves <palves@redhat.com>
7223 * NEWS (Completion improvements): Mention "info threads".
7224 * thread.c (struct info_threads_opts, info_threads_option_defs)
7225 (make_info_threads_options_def_group): New.
7226 (info_threads_command): Use gdb::option::process_options.
7227 (info_threads_command_completer): New.
7228 (_initialize_thread): Use gdb::option::build_help to build the
7229 help text for "info threads".
7231 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7233 * defs.h (generic_load): Move from here...
7234 * symfile.h (generic_load): ... to here. Rename name parameter
7236 * symfile.c (generic_load): Add comment.
7238 2019-07-01 Tom Tromey <tromey@adacore.com>
7241 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7242 declaration of without_params. Fix formatting.
7244 2019-07-01 Tom Tromey <tromey@adacore.com>
7246 * ada-exp.y (find_primitive_type): Update.
7247 * ada-lang.h (ada_lookup_symbol): Update.
7248 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7250 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7252 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7254 PR breakpoints/24541
7255 * gdbarch.c: Regenerate.
7256 * gdbarch.h: Regenerate.
7257 * gdbarch.sh: Add 'stap_adjust_register'.
7258 * i386-tdep.c: Include '<unordered_set>'.
7259 (i386_stap_adjust_register): New function.
7260 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7261 * stap-probe.c (stap_parse_register_operand): Call
7262 'gdbarch_stap_adjust_register'.
7264 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7267 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7268 * python/python.c (do_start_initialization): Use 'xmalloc'
7269 instead of 'PyMem_Malloc'.
7271 2019-06-28 Tom Tromey <tromey@adacore.com>
7273 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7276 2019-06-27 Tom Tromey <tromey@adacore.com>
7278 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7280 (arm_find_mapping_symbol, arm_record_special_symbol)
7281 (_initialize_arm_tdep): Update.
7282 (arm_objfile_data_free): Remove.
7284 2019-06-27 Tom Tromey <tromey@adacore.com>
7286 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7287 to cp_print_static_field.
7289 2019-06-26 Tom Tromey <tromey@adacore.com>
7291 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7292 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7295 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7297 * features/aarch64-core.c (create_feature_aarch64_core):
7299 * features/aarch64-core.xml: Add cpsr flags.
7301 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7303 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7304 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7306 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7308 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7310 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7312 (arm_record_special_symbol): Don't insert new symbol in sorted
7313 position, push it at the end.
7315 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7317 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7318 (arm_mapping_symbol_s): Remove.
7319 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7320 (arm_mapping_symbol_vec): New typedef.
7321 (struct arm_per_objfile): Add constructor.
7322 <section_maps>: Change type to
7323 std::unique_ptr<arm_mapping_symbol_vec[]>.
7324 (arm_compare_mapping_symbols): Remove.
7325 (arm_find_mapping_symbol): Adjust to section_maps type change.
7326 (arm_objfile_data_free): Call delete on arm_per_objfile.
7327 (arm_record_special_symbol): Adjust to section_maps type change.
7328 Allocate arm_per_objfile with new.
7330 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7332 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7333 with the command prefix.
7335 2019-06-25 Tom Tromey <tom@tromey.com>
7337 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7338 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7340 2019-06-25 Tom Tromey <tom@tromey.com>
7342 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7344 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7347 2019-06-25 Tom Tromey <tom@tromey.com>
7349 * tui/tui-winsource.c
7350 (tui_source_window_base::set_is_exec_point_at): Add check against
7353 2019-06-25 Tom Tromey <tom@tromey.com>
7355 * tui/tui-source.c (tui_set_source_content): Don't check before
7357 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7359 2019-06-25 Tom Tromey <tom@tromey.com>
7361 * tui/tui-winsource.h (tui_update_source_window_as_is)
7362 (tui_alloc_source_buffer, tui_line_is_displayed)
7363 (tui_addr_is_displayed): Change type of win_info.
7364 * tui/tui-winsource.c (tui_update_source_window_as_is)
7365 (tui_clear_source_content, tui_show_source_line)
7366 (tui_show_source_content, tui_source_window_base::refill)
7367 (tui_source_window_base::set_is_exec_point_at)
7368 (tui_source_window_base::set_is_exec_point_at)
7369 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7370 (tui_alloc_source_buffer, tui_line_is_displayed)
7371 (tui_addr_is_displayed): Change type of win_info. Update.
7372 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7373 (tui_source_window_base::do_make_visible_with_new_height):
7375 * tui/tui-source.c (tui_set_source_content)
7376 (tui_set_source_content_nil)
7377 (tui_source_window::do_scroll_vertical): Update.
7378 * tui/tui-layout.c (show_layout): Update.
7379 * tui/tui-disasm.c (tui_set_disassem_content)
7380 (tui_disasm_window::do_scroll_vertical): Update.
7381 * tui/tui-data.h (tui_win_content): Remove.
7382 (struct tui_gen_win_info) <content, content_size>: Remove.
7383 (struct tui_source_element): Add initializers and destructor.
7384 (union tui_which_element, struct tui_win_element): Remove.
7385 (struct tui_source_window_base) <content>: New field.
7386 (struct tui_data_window): Remove destructor.
7387 (tui_alloc_content, tui_free_win_content)
7388 (tui_free_all_source_wins_content): Don't declare.
7389 * tui/tui-data.c (tui_initialize_static_data): Update.
7390 (init_content_element, tui_alloc_content): Remove.
7391 (~tui_gen_win_info): Update.
7392 (~tui_data_window, tui_free_all_source_wins_content)
7393 (tui_free_win_content, free_content, free_content_elements):
7396 2019-06-25 Tom Tromey <tom@tromey.com>
7398 * tui/tui-winsource.h (tui_clear_source_content)
7399 (tui_erase_source_content, tui_show_source_content): Change type
7401 * tui/tui-winsource.c (tui_clear_source_content)
7402 (tui_erase_source_content, tui_show_source_content): Change type
7404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7405 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7407 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7409 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7411 2019-06-25 Tom Tromey <tom@tromey.com>
7413 * tui/tui-winsource.c (tui_clear_source_content)
7414 (tui_source_window_base::set_is_exec_point_at): Update.
7415 * tui/tui-source.c (tui_set_source_content_nil): Update.
7416 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7418 * tui/tui-data.c (init_content_element): Update.
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7422 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7423 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7424 * tui/tui-layout.c (init_and_make_win): Update.
7425 * tui/tui.h (enum tui_win_type): Update.
7426 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7427 tui_win_is_auxillary.
7428 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7429 tui_win_is_auxillary.
7431 2019-06-25 Tom Tromey <tom@tromey.com>
7433 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7434 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7435 (tui_delete_data_content_windows, tui_display_all_data)
7436 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7438 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7439 * tui/tui-regs.c (tui_last_regs_line_no)
7440 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7441 (tui_show_registers): Update.
7442 (tui_show_register_group): Return void. Update.
7443 (tui_display_registers_from, tui_display_reg_element_at_line)
7444 (tui_display_registers_from_line, tui_check_register_values):
7446 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7448 (struct tui_data_window) <regs_content>: Now a std::vector.
7449 <regs_content_count>: Remove.
7450 (tui_add_content_elements, tui_free_data_content): Don't declare.
7451 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7452 (init_content_element): Remove DATA_WIN case. Add assert.
7453 (tui_add_content_elements): Remove.
7454 (tui_data_window): Update.
7455 (tui_free_data_content): Remove.
7456 (free_content_elements): Remove DATA_WIN case.
7458 2019-06-25 Tom Tromey <tom@tromey.com>
7460 * tui/tui-data.c (tui_data_item_window): Update.
7461 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7462 * tui/tui-windata.c (tui_display_all_data)
7463 (tui_display_data_from_line): Update.
7464 (tui_check_data_values): Remove.
7465 * tui/tui-regs.c (tui_show_register_group)
7466 (tui_display_reg_element_at_line): Update.
7467 * tui/tui-hooks.c (tui_register_changed)
7468 (tui_refresh_frame_and_register_information): Call
7469 tui_check_register_values.
7470 * tui/tui-data.h (struct tui_data_window) <data_content,
7471 data_content_count, data_type>: Remove.
7472 (enum tui_data_type): Remove.
7474 * tui/tui-data.c (tui_data_window::clear_detail)
7475 (~tui_data_window): Update.
7477 2019-06-25 Tom Tromey <tom@tromey.com>
7479 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7481 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7482 Rename from tui_first_data_item_displayed. Update.
7483 (tui_data_window::refresh_all)
7484 (tui_data_window::do_scroll_vertical): Update.
7485 * tui/tui-data.h (struct tui_data_window)
7486 <first_data_item_displayed>: Declare new method.
7488 2019-06-25 Tom Tromey <tom@tromey.com>
7490 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7491 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7493 (tui_initialize_static_data): ...here.
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7497 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7498 (tui_display_registers_from, tui_check_register_values): Update.
7499 (tui_display_register): Remove win_info parameter; update.
7500 (tui_get_register): Change type of parameters.
7501 * tui/tui-data.h (struct tui_data_element): Remove.
7502 (union tui_which_element) <data>: Remove.
7503 <data_window>: Change type.
7504 (struct tui_data_item_window): New.
7505 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7507 (~tui_data_item_window): New destructor.
7508 (free_content_elements): Remove DATA_ITEM_WIN case.
7510 2019-06-25 Tom Tromey <tom@tromey.com>
7512 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7515 2019-06-25 Tom Tromey <tom@tromey.com>
7517 * tui/tui-data.h (struct tui_command_element): Remove.
7518 (union tui_which_element) <command>: Remove.
7519 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7521 (free_content_elements): Remove CMD_WIN case.
7523 2019-06-25 Tom Tromey <tom@tromey.com>
7525 * tui/tui-layout.c (tui_set_layout): Update.
7526 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7527 * tui/tui-data.c (layout_def): Update.
7529 2019-06-25 Tom Tromey <tom@tromey.com>
7531 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7533 (tui_source_window_base::set_new_height): Update.
7534 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7536 (tui_set_locator_fullname, tui_set_locator_info)
7537 (tui_show_frame_info): Update.
7538 * tui/tui-source.c (tui_set_source_content)
7539 (tui_source_is_displayed): Update.
7540 * tui/tui-layout.c (show_source_disasm_command, show_data)
7541 (show_source_or_disasm_and_command): Update.
7542 * tui/tui-disasm.c (tui_set_disassem_content)
7543 (tui_get_begin_asm_address): Update.
7544 * tui/tui-data.h (struct tui_locator_element): Remove.
7545 (union tui_which_element) <locator>: Remove.
7546 (struct tui_locator_window): New.
7547 (tui_locator_win_info_ptr): Change return type.
7548 * tui/tui-data.c (_locator): Change type.
7549 (tui_locator_win_info_ptr): Change return type.
7550 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7551 (tui_alloc_content): Add assert.
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7555 * tui/tui-winsource.c
7556 (tui_exec_info_window::maybe_allocate_content): New method.
7557 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7558 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7559 (make_source_or_disasm_window): Add cast.
7560 * tui/tui-data.h (union tui_which_element) <simple_string>:
7562 (struct tui_source_info): New.
7563 (struct tui_source_window_base) <execution_info>: Change type.
7564 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7565 case, and add assert.
7566 (tui_alloc_content): Add assert.
7568 2019-06-25 Tom Tromey <tom@tromey.com>
7570 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7571 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7572 * tui/tui-data.c (tui_alloc_win_info): Remove.
7574 2019-06-25 Tom Tromey <tom@tromey.com>
7576 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7577 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7580 2019-06-25 Tom Tromey <tom@tromey.com>
7582 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7583 make_visible_with_new_height method.
7584 (tui_win_info::make_visible_with_new_height): New method.
7585 (tui_source_window_base::do_make_visible_with_new_height)
7586 (tui_data_window::do_make_visible_with_new_height)
7587 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7588 (make_visible_with_new_height): Remove.
7589 (tui_resize_all, tui_adjust_win_heights): Use
7590 make_visible_with_new_height method.
7591 * tui/tui-data.h (struct tui_win_info)
7592 <do_make_visible_with_new_height, make_visible_with_new_height>:
7594 (struct tui_source_window_base, struct tui_data_window)
7595 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7598 2019-06-25 Tom Tromey <tom@tromey.com>
7600 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7602 (update_tab_width): Call update_tab_width method.
7603 * tui/tui-data.h (struct tui_win_info)
7604 (struct tui_source_window_base) <update_tab_width>: New methods.
7606 2019-06-25 Tom Tromey <tom@tromey.com>
7608 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7610 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7612 (tui_gen_win_info::make_visible): Update.
7613 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7615 * tui/tui-data.h (enum tui_box): New enum.
7616 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7618 2019-06-25 Tom Tromey <tom@tromey.com>
7620 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7621 init_and_make_win for EXEC_INFO_WIN.
7622 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7624 (struct tui_win_info) <~tui_win_info>: Inline.
7625 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7627 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7628 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7630 (tui_initialize_static_data): Update.
7631 (~tui_gen_win_info): Handle more cleanup here.
7632 (~tui_source_window_base): Delete "execution_info".
7633 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7635 2019-06-25 Tom Tromey <tom@tromey.com>
7637 * tui/tui-layout.c (make_command_window): Don't set
7639 (show_source_disasm_command): Call the reset method.
7640 (show_data): Don't set can_highlight. Call the reset method.
7641 (tui_gen_win_info::reset): Rename from init_gen_win_info
7642 (init_and_make_win): Simplify. Return tui_gen_win_info.
7643 (show_source_or_disasm_and_command): Call the reset method.
7644 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7645 (struct tui_cmd_window): Set can_highlight.
7647 2019-06-25 Tom Tromey <tom@tromey.com>
7649 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7651 (tui_make_visible, tui_make_invisible): Rewrite.
7652 (tui_win_info::make_visible): Remove.
7653 (tui_source_window_base::make_visible): Update.
7654 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7655 method. Moved from...
7656 (struct tui_win_info) <make_visible>: ...here.
7658 2019-06-25 Tom Tromey <tom@tromey.com>
7660 * tui/tui-winsource.c
7661 (tui_source_window_base::do_scroll_horizontal): Remove direction
7663 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7664 direction parameter.
7665 * tui/tui-win.c (tui_win_info::forward_scroll)
7666 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7667 (tui_win_info::right_scroll): Update.
7668 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7669 direction parameter.
7670 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7671 direction parameter.
7672 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7673 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7674 Remove direction parameter.
7675 (struct tui_source_window_base, struct tui_source_window)
7676 (struct tui_disasm_window, struct tui_data_window)
7677 (struct tui_cmd_window): Update.
7679 2019-06-25 Tom Tromey <tom@tromey.com>
7681 * tui/tui-winsource.h (tui_set_exec_info_content)
7682 (tui_show_exec_info_content, tui_erase_exec_info_content)
7683 (tui_clear_exec_info_content, tui_update_exec_info): Change
7684 argument to tui_source_window_base.
7685 * tui/tui-winsource.c (tui_set_exec_info_content)
7686 (tui_show_exec_info_content, tui_erase_exec_info_content)
7687 (tui_clear_exec_info_content, tui_update_exec_info): Change
7688 argument to tui_source_window_base.
7690 2019-06-25 Tom Tromey <tom@tromey.com>
7692 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7693 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7695 2019-06-25 Tom Tromey <tom@tromey.com>
7697 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7702 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7704 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7706 * tui/tui-source.c (tui_set_source_content): Update.
7707 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7709 2019-06-25 Tom Tromey <tom@tromey.com>
7711 * tui/tui-win.c (window_name_completer, tui_set_focus)
7712 (tui_all_windows_info): Use name method.
7713 * tui/tui-data.h (struct tui_gen_win_info)
7714 (struct tui_source_window, struct tui_disasm_window)
7715 (struct tui_data_window, struct tui_cmd_window) <name>: New
7717 (tui_win_name): Don't declare.
7718 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7719 (tui_win_name): Remove.
7721 2019-06-25 Tom Tromey <tom@tromey.com>
7723 * tui/tui-winsource.h (tui_update_source_window)
7724 (tui_update_source_window_as_is): Change parameter type.
7725 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7726 to be a tui_source_window_base.
7727 (tui_update_source_window_as_is): Likewise.
7728 * tui/tui-win.c (make_visible_with_new_height): Update.
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7732 * tui/tui-winsource.c (tui_erase_source_content)
7733 (tui_show_source_content, tui_show_exec_info_content)
7734 (tui_erase_exec_info_content): Use refresh_window method.
7735 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7736 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7737 from tui_refresh_win.
7738 (tui_data_window::refresh_window): New method.
7739 (tui_win_info::refresh, tui_source_window_base::refresh)
7740 (tui_refresh_all): Use refresh_window method.
7741 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7743 * tui/tui-regs.c (tui_display_register): Call refresh_window
7745 * tui/tui-layout.c (show_source_disasm_command)
7746 (show_source_or_disasm_and_command): Call refresh_window method.
7747 * tui/tui-data.h (struct tui_gen_win_info)
7748 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7751 2019-06-25 Tom Tromey <tom@tromey.com>
7753 * tui/tui.c (tui_rl_other_window, tui_enable)
7754 (tui_is_window_visible, tui_get_command_dimension): Update.
7755 * tui/tui-winsource.c (tui_update_source_window_as_is)
7756 (tui_clear_source_content, tui_erase_source_content)
7757 (tui_show_source_line, tui_source_window_base::refill)
7758 (tui_source_window_base::do_scroll_horizontal)
7759 (tui_source_window_base::set_is_exec_point_at)
7760 (tui_update_breakpoint_info, tui_set_exec_info_content)
7761 (tui_alloc_source_buffer, tui_line_is_displayed)
7762 (tui_addr_is_displayed): Update.
7763 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7764 (tui_check_and_display_highlight_if_needed)
7765 (tui_win_info::make_visible, tui_win_info::refresh)
7766 (tui_refresh_all): Update.
7767 * tui/tui-windata.c (tui_first_data_item_displayed)
7768 (tui_delete_data_content_windows, tui_erase_data_content)
7769 (tui_display_all_data, tui_data_window::refresh_all)
7770 (tui_check_data_values): Update.
7771 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7772 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7773 (tui_win_info::backward_scroll, tui_refresh_all_win)
7774 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7775 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7776 (tui_source_window_base::set_new_height)
7777 (tui_data_window::set_new_height)
7778 (make_invisible_and_set_new_height)
7779 (make_visible_with_new_height, new_height_ok)
7780 (parse_scrolling_args): Update.
7781 * tui/tui-stack.c (tui_show_frame_info): Update.
7782 * tui/tui-source.c (tui_set_source_content)
7783 (tui_set_source_content_nil, tui_source_is_displayed)
7784 (tui_source_window::do_scroll_vertical): Update.
7785 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7786 (tui_display_registers_from, tui_display_reg_element_at_line)
7787 (tui_check_register_values, tui_reg_command): Update.
7788 * tui/tui-layout.c (tui_default_win_height)
7789 (show_source_disasm_command, show_data, init_and_make_win)
7790 (show_source_or_disasm_and_command): Update.
7791 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7792 (tui_redisplay_readline, tui_mld_flush)
7793 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7795 * tui/tui-disasm.c (tui_set_disassem_content)
7796 (tui_disasm_window::do_scroll_vertical): Update.
7797 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7799 (struct tui_win_info): Derive from tui_gen_win_info.
7800 <~tui_win_info>: Mark as override.
7801 <generic>: Remove member.
7802 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7803 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7804 (~tui_data_window, ~tui_win_info)
7805 (tui_free_all_source_wins_content): Update.
7806 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7808 2019-06-25 Tom Tromey <tom@tromey.com>
7810 * tui/tui-layout.c (init_and_make_win): Use new.
7811 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7812 destructor, initializers.
7813 (tui_alloc_generic_win_info): Don't declare.
7814 * tui/tui-data.c (_locator): Add argument to constructor.
7815 (source_win, disasm_win): New globals.
7816 (exec_info): Remove.
7817 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7819 (tui_alloc_generic_win_info): Remove.
7820 (init_content_element): Use new.
7821 (tui_win_info::tui_win_info): Update.
7822 (free_content_elements) <case DATA_WIN>: Use delete.
7824 2019-06-25 Tom Tromey <tom@tromey.com>
7826 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7827 * tui/tui-windata.c (tui_first_data_item_displayed)
7828 (tui_delete_data_content_windows): Update.
7829 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7830 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7831 (tui_display_registers_from, tui_check_register_values): Update.
7832 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7834 * tui/tui-data.c (init_content_element): Update. Allocate the new
7836 (tui_free_data_content): Update.
7837 (free_content_elements) <case DATA_WIN>: Free the window.
7839 2019-06-25 Tom Tromey <tom@tromey.com>
7841 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7843 * tui/tui-layout.c (make_command_window)
7844 (show_source_disasm_command, show_data, init_and_make_win)
7845 (show_source_or_disasm_and_command): Update.
7846 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7848 <can_highight, is_highlighted>: Now bool.
7849 (tui_set_win_highlight): Don't declare.
7850 * tui/tui-data.c (tui_set_win_highlight): Remove.
7852 2019-06-25 Tom Tromey <tom@tromey.com>
7854 * tui/tui-wingeneral.c (make_visible): Remove check of window
7857 2019-06-25 Tom Tromey <tom@tromey.com>
7859 * tui/tui-win.c (tui_win_info::max_height)
7860 (tui_cmd_window::max_height): New methods.
7861 (new_height_ok): Call max_height.
7862 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7863 <max_height>: New method.
7865 2019-06-25 Tom Tromey <tom@tromey.com>
7867 * tui/tui-win.c (tui_source_window_base::set_new_height)
7868 (tui_data_window::set_new_height): New methods.
7869 (make_invisible_and_set_new_height): Call set_new_height method.
7870 * tui/tui-data.h (struct tui_win_info)
7871 (struct tui_source_window_base, struct tui_data_window)
7872 <set_new_height>: New method.
7874 2019-06-25 Tom Tromey <tom@tromey.com>
7876 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7877 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7878 tui_refresh_data_win.
7879 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7881 (tui_refresh_all_win): Call the refresh_all method.
7882 (tui_set_focus): Likewise.
7883 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7884 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7887 2019-06-25 Tom Tromey <tom@tromey.com>
7889 * tui/tui-winsource.h (tui_refill_source_window)
7890 (tui_set_is_exec_point_at): Don't declare.
7891 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7892 (tui_source_window_base::refill): Rename from
7893 tui_refill_source_window.
7894 (tui_source_window_base::do_scroll_horizontal): Update.
7895 (tui_source_window_base::set_is_exec_point_at): Rename from
7896 tui_set_is_exec_point_at.
7897 (tui_update_all_breakpoint_info): Update.
7898 * tui/tui-stack.c (tui_show_frame_info): Update.
7899 * tui/tui-layout.c (show_data): Add cast.
7900 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7901 * tui/tui-data.h (struct tui_source_window_base) <refill,
7902 set_is_exec_point_at>: New methods.
7903 (tui_source_windows, tui_add_to_source_windows): Update types.
7904 (tui_add_to_source_windows): Remove redundant declaration.
7905 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7906 (tui_source_windows): Change return type.
7907 (tui_clear_source_windows_detail): Update.
7908 (tui_add_to_source_windows): Change type of parameter.
7909 (tui_free_all_source_wins_content): Update.
7911 2019-06-25 Tom Tromey <tom@tromey.com>
7913 * tui/tui-wingeneral.c (tui_win_info::refresh)
7914 (tui_source_window_base::refresh): New methods.
7915 (tui_refresh_all): Call the refresh method.
7916 * tui/tui-data.h (struct tui_win_info)
7917 (struct tui_source_window_base) <refresh>: New method.
7919 2019-06-25 Tom Tromey <tom@tromey.com>
7921 * tui/tui.h (tui_is_window_visible): Return bool.
7922 * tui/tui.c (tui_is_window_visible): Return bool.
7923 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7924 (tui_make_visible, tui_make_invisible)
7925 (tui_win_info::make_visible)
7926 (tui_source_window_base::make_visible, make_all_visible)
7927 (tui_make_all_visible, tui_make_all_invisible): Update.
7928 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7929 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7931 (struct tui_win_info, struct tui_source_window_base)
7932 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7933 * tui/tui-data.c (tui_init_generic_part): Update.
7935 2019-06-25 Tom Tromey <tom@tromey.com>
7937 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7938 (tui_source_window_base::make_visible): New methods.
7939 (make_all_visible): Make method call.
7940 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7941 (struct tui_source_window_base, struct tui_cmd_window): Override
7943 (tui_win_is_source_type): Don't declare.
7944 * tui/tui-data.c (tui_win_is_source_type): Remove.
7946 2019-06-25 Tom Tromey <tom@tromey.com>
7948 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7951 2019-06-25 Tom Tromey <tom@tromey.com>
7953 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7954 Inline constructor. Add initializers for members.
7955 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7956 constructors; now inline in class.
7958 2019-06-25 Tom Tromey <tom@tromey.com>
7960 * tui/tui-regs.c (tui_show_registers): Update.
7961 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7963 * tui/tui-data.c (tui_data_window::clear_detail)
7964 (tui_data_window): Update.
7966 2019-06-25 Tom Tromey <tom@tromey.com>
7968 * tui/tui-windata.c (tui_display_all_data)
7969 (tui_display_data_from_line, tui_display_data_from)
7970 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7972 * tui/tui-regs.c (tui_last_regs_line_no)
7973 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7974 (tui_show_registers, tui_show_register_group)
7975 (tui_display_registers_from, tui_display_reg_element_at_line)
7976 (tui_display_registers_from_line, tui_check_register_values)
7977 (tui_reg_next, tui_reg_prev): Update.
7978 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7979 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7981 (struct tui_win_info) <detail>: Remove. Add new fields from
7983 (TUI_DATA_WIN): Add cast.
7984 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7985 (~tui_data_window): Simplify.
7987 2019-06-25 Tom Tromey <tom@tromey.com>
7989 * tui/tui-layout.c (show_source_disasm_command)
7990 (show_source_or_disasm_and_command): Update.
7991 * tui/tui-io.c (update_cmdwin_start_line)
7992 (tui_redisplay_readline): Update.
7993 * tui/tui-data.h (struct tui_command_info): Remove.
7994 (struct tui_win_info) <detail>: Remove command_info member.
7995 (struct tui_data_window) <start_line>: New member, from
7997 (TUI_CMD_WIN): Add casts.
7999 2019-06-25 Tom Tromey <tom@tromey.com>
8001 * tui/tui-winsource.c (tui_update_source_window)
8002 (tui_refill_source_window)
8003 (tui_source_window_base::do_scroll_horizontal)
8004 (tui_update_breakpoint_info, tui_set_exec_info_content)
8005 (tui_show_exec_info_content, tui_erase_exec_info_content)
8006 (tui_clear_exec_info_content): Update.
8007 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8009 * tui/tui-win.c (make_invisible_and_set_new_height)
8010 (make_visible_with_new_height): Update.
8011 * tui/tui-source.c (tui_set_source_content)
8012 (tui_show_symtab_source): Update.
8013 * tui/tui-layout.c (extract_display_start_addr)
8014 (show_source_disasm_command, show_data)
8015 (make_source_or_disasm_window)
8016 (show_source_or_disasm_and_command): Update.
8017 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8018 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8020 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8021 to tui_source_window_base.
8022 (struct tui_win_info) <detail>: Remove source_info member.
8023 (struct tui_source_window_base) <has_locator>: Inline.
8024 Move contents from tui_source_info; rename has_locator member to
8026 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8027 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8029 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8031 (tui_free_all_source_wins_content): Cast to
8032 tui_source_window_base.
8034 2019-06-25 Tom Tromey <tom@tromey.com>
8036 * tui/tui-win.c (make_invisible_and_set_new_height)
8037 (make_visible_with_new_height): Call has_locator method.
8038 * tui/tui-layout.c (show_source_disasm_command, show_data)
8039 (show_source_or_disasm_and_command): Update for bool change.
8040 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8041 (tui_win_info) <has_locator>: New method.
8042 (struct tui_source_window_base) <has_locator>: New method.
8043 (tui_win_has_locator): Don't declare.
8044 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8045 from tui_win_has_locator.
8046 (tui_source_window_base): Use false, not FALSE.
8048 2019-06-25 Tom Tromey <tom@tromey.com>
8050 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8051 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8052 clear_detail method directly.
8053 (tui_clear_win_detail): Remove.
8055 2019-06-25 Tom Tromey <tom@tromey.com>
8057 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8058 "this", not TUI_DISASM_WIN.
8060 2019-06-25 Tom Tromey <tom@tromey.com>
8062 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8064 * tui/tui-winsource.c
8065 (tui_source_window_base::do_scroll_horizontal): Rename from
8066 tui_horizontal_source_scroll.
8067 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8068 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8069 from tui_vertical_data_scroll.
8070 * tui/tui-win.h (tui_scroll): Don't declare.
8071 * tui/tui-win.c (tui_win_info::forward_scroll)
8072 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8073 (tui_win_info::right_scroll): Rename and update.
8074 (tui_scroll_forward_command, tui_scroll_backward_command)
8075 (tui_scroll_left_command, tui_scroll_right_command): Update.
8076 (tui_scroll): Remove.
8077 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8078 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8079 from tui_vertical_source_scroll.
8080 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8081 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8082 from tui_vertical_disassem_scroll.
8083 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8084 do_scroll_horizontal>: New methods.
8085 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8087 (struct tui_source_window_base): Add do_scroll_horizontal.
8088 (struct tui_source_window, struct tui_disasm_window): Add
8090 (struct tui_data_window, struct tui_cmd_window): Add
8091 do_scroll_horizontal and do_scroll_vertical.
8092 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8094 2019-06-25 Tom Tromey <tom@tromey.com>
8096 * tui/tui-data.h (struct tui_source_window_base): New struct.
8097 (struct tui_source_window): Derive from tui_source_window_base.
8098 (struct tui_disasm_window): New struct.
8099 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8100 from tui_source_window::clear_detail.
8101 (tui_source_window_base): Rename from tui_source_window.
8102 (~tui_source_window_base): Rename from ~tui_source_window.
8103 (tui_alloc_win_info): Create a tui_disasm_window.
8105 2019-06-25 Tom Tromey <tom@tromey.com>
8107 * tui/tui-data.h (struct tui_source_window)
8108 (struct tui_data_window): Declare destructors.
8109 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8111 (tui_win_info): Simplify.
8113 2019-06-25 Tom Tromey <tom@tromey.com>
8115 * tui/tui-winsource.c (tui_display_main)
8116 (tui_update_source_windows_with_addr)
8117 (tui_update_all_breakpoint_info): Update.
8118 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8119 (new_height_ok, parse_scrolling_args): Update.
8120 * tui/tui-stack.c (tui_show_frame_info): Update.
8121 * tui/tui-data.h (struct tui_list): Remove.
8122 (tui_source_windows): Return a reference to a std::vector.
8123 * tui/tui-data.c (source_windows): Now a std::vector.
8124 (tui_source_windows): Change return type.
8125 (tui_clear_source_windows): Rewrite.
8126 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8127 (tui_free_all_source_wins_content): Rewrite.
8129 2019-06-25 Tom Tromey <tom@tromey.com>
8131 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8132 (struct tui_data_window, struct tui_cmd_window): Declare
8133 clear_detail method.
8134 * tui/tui-data.c (tui_source_window::clear_detail)
8135 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8137 (tui_clear_win_detail): Simplify.
8139 2019-06-25 Tom Tromey <tom@tromey.com>
8141 * tui/tui-layout.c (make_source_window, make_disasm_window)
8142 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8143 Return the new window.
8144 (show_source_disasm_command, show_data)
8145 (show_source_or_disasm_and_command): Update.
8147 2019-06-25 Tom Tromey <tom@tromey.com>
8149 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8150 parameter. Return the new window.
8151 (show_source_disasm_command): Update and remove NULL check.
8152 (show_source_or_disasm_and_command): Update.
8154 2019-06-25 Tom Tromey <tom@tromey.com>
8156 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8158 2019-06-25 Tom Tromey <tom@tromey.com>
8160 * tui/tui-data.h (struct tui_win_info): Make constructor
8161 protected. Make destructor virtual. Add initializers.
8162 (tui_source_window, tui_data_window, tui_cmd_window): New
8164 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8165 constructor. Add "type" parameter.
8166 (tui_source_window, tui_data_window, tui_cmd_window): New
8168 (tui_alloc_win_info): Instantiate the appropriate subclass.
8170 2019-06-25 Tom Tromey <tom@tromey.com>
8172 * tui/tui-win.c (tui_resize_all): Use delete.
8173 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8175 (tui_free_window): Don't declare.
8176 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8179 2019-06-25 Tom Tromey <tom@tromey.com>
8181 * tui/tui-data.h (struct tui_win_info): Add constructor.
8182 * tui/tui-data.c (tui_alloc_win_info): Use new.
8183 (tui_free_window): Use delete.
8185 2019-06-22 Tom Tromey <tom@tromey.com>
8187 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8189 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8191 2019-06-22 Tom Tromey <tom@tromey.com>
8193 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8195 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8197 2019-06-22 Tom de Vries <tdevries@suse.de>
8199 * dwarf2read.c (create_addrmap_from_aranges)
8200 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8203 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8205 * dwarf2read.h (dwarf2_section_info_def): Remove.
8206 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8207 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8208 std::vector<dwarf2_section_info>.
8209 (struct dwo_file) <~dwo_file>: Remove.
8210 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8212 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8213 (dwarf2_read_debug_names): Likewise.
8214 (create_debug_types_hash_table): Change parameter type to
8215 array_view, adjust code accordingly.
8216 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8217 (partial_die_info::fixup): Likewise.
8218 (determine_prefix): Likewise.
8219 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8221 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8223 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8225 <~dwo_file>: Remove call to gdb_bfd_unref.
8226 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8227 gdb_bfd_ref_ptr::get.
8229 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8231 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8233 * dwarf2read.c (struct dwo_file): Initialize fields.
8235 (free_dwo_file): Remove, move content to ~dwo_file.
8236 (struct dwo_file_deleter): Remove.
8237 (dwo_file_up>: Remove custom deleter.
8238 (free_dwo_files): Remove.
8239 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8241 (process_skeletonless_type_units): Call unique_ptr::get.
8242 (allocate_dwo_file_hash_table): Add deleter to created hash
8243 table. Change return type to htab_up.
8244 (lookup_dwo_file_slot): Don't memset dwo_file, call
8246 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8247 (create_dwo_unit_in_dwp_v2): Likewise.
8248 (open_and_init_dwo_file): Likewise.
8249 (free_dwo_file_from_slot): Remove.
8251 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8253 * dwarf2read.h (struct dwarf2_section_info) <readin,
8254 is_virtual>: Change type to bool.
8255 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8258 2019-06-19 Tom Tromey <tom@tromey.com>
8260 * tui/tui-data.h (tui_init_content_element): Don't declare.
8262 2019-06-19 Tom Tromey <tom@tromey.com>
8264 * tui/tui-data.h (tui_init_win_info): Don't declare.
8266 2019-06-19 Tom de Vries <tdevries@suse.de>
8268 * dwarf2read.h (abstract_to_concrete): Change type to
8269 std::unordered_map<sect_offset, std::vector<sect_offset>,
8270 gdb::hash_enum<sect_offset>>.
8272 2019-06-19 Tom Tromey <tromey@adacore.com>
8274 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8275 EVAL_AVOID_SIDE_EFFECTS specially.
8277 2019-06-19 Tom Tromey <tromey@adacore.com>
8279 * source-cache.c (highlighter): New global.
8280 (source_cache::get_source_lines): Create a highlighter on demand.
8282 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8284 * defs.h (deprecated_interactive_hook): Delete declaration.
8285 * interps.c (clear_interpreter_hooks): Remove use of
8286 deprecated_interactive_hook.
8287 * top.c (deprecated_interactive_hook): Delete definition.
8288 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8290 2019-06-18 Tom de Vries <tdevries@suse.de>
8293 * dwarf2read.h (abstract_to_concrete): Change type from
8294 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8295 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8296 * dwarf2read.c (read_variable): Update.
8297 (dwarf2_fetch_die_loc_sect_off): Update.
8299 2019-06-17 Tom de Vries <tdevries@suse.de>
8302 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8303 accessing parent[parent_len - 1].
8305 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8308 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8309 call dtrace_process_dof with NULL dof.
8311 2019-06-16 Tom de Vries <tdevries@suse.de>
8314 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8316 2019-06-16 Tom Tromey <tom@tromey.com>
8318 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8319 (make_all_visible): Use address of member.
8321 2019-06-16 Tom Tromey <tom@tromey.com>
8323 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8324 (tui_free_window, free_content, free_content_elements): Remove
8326 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8328 * tui/tui-regs.c (tui_show_register_group)
8329 (tui_display_registers_from, tui_display_reg_element_at_line):
8330 Remove unnecessary cast.
8332 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8334 * linux-nat.c (normal_mask): Delete.
8335 (_initialize_linux_nat): Don't initialise normal_mask.
8337 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8340 * dwarf-index-write.h (write_psymtabs_to_index): Add
8341 dwz_basename parameter.
8342 * dwarf-index-write.c (write_gdbindex): Move file writing to
8343 write_gdbindex_1. Change return type void.
8344 (assert_file_size): Move up, remove filename parameter.
8345 (write_gdbindex_1): New function.
8346 (write_debug_names): Change return type to void, call
8348 (struct index_wip_file): New struct.
8349 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8350 file logic to index_wip_file. Write index for dwz file if
8352 (save_gdb_index_command): Pass basename of dwz file, if present.
8353 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8354 build-id of dwz file, if present.
8355 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8356 (dwarf2_get_dwz_file): Likewise.
8357 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8358 (dwarf2_get_dwz_file): Likewise.
8360 2019-06-16 Tom Tromey <tom@tromey.com>
8362 * coffread.c (process_coff_symbol): Use xstrdup.
8363 * value.c (create_internalvar): Use xstrdup.
8365 2019-06-16 Tom Tromey <tom@tromey.com>
8367 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8368 * breakpoint.c (stopin_command, stopat_command)
8369 (until_break_command, decode_location_default): Remove unnecessary
8371 * utils.c (subset_compare): Remove unnecessary cast.
8372 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8374 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8376 * infcmd.c (path_command): Remove unnecessary cast.
8377 * coffread.c (decode_type): Remove unnecessary cast.
8378 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8379 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8380 * tui/tui-stack.c (tui_show_locator_content)
8381 (tui_show_frame_info): Remove unnecessary cast.
8382 * tui/tui-win.c (tui_scroll_forward_command)
8383 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8384 (parse_scrolling_args): Remove unnecessary cast.
8385 * tui/tui-data.c (init_win_info, tui_del_window)
8386 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8387 (free_content_elements): Remove unnecessary cast.
8388 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8390 * tui/tui-source.c (tui_set_source_content)
8391 (tui_vertical_source_scroll): Remove unnecessary cast.
8392 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8394 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8395 * tui/tui-regs.c (tui_display_registers_from)
8396 (tui_display_register): Remove unnecessary cast.
8397 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8398 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8399 (make_visible): Remove unnecessary cast.
8400 * tui/tui-winsource.c (tui_erase_source_content)
8401 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8403 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8404 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8405 * stabsread.c (read_type, read_array_type, read_range_type):
8406 Remove unnecessary cast.
8407 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8408 (parse_symbol, parse_type, upgrade_type, parse_external)
8409 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8411 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8413 2019-06-16 Tom Tromey <tom@tromey.com>
8415 * tui/tui-data.c (tui_alloc_generic_win_info)
8416 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8419 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8420 Andrew Burgess <andrew.burgess@embecosm.com>
8422 * f-typeprint.c (f_print_type): Don't return early for not
8423 associated or not allocated types.
8424 (f_type_print_varspec_suffix): Add print_rank parameter and print
8425 ranks of array types in case they dangling.
8426 (f_type_print_base): Add print_rank parameter.
8428 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8430 * NEWS: Mention new MI commands.
8431 * break-catch-throw.c (enum exception_event_kind): Move to
8433 (print_mention_exception_catchpoint): Output text as a single
8435 (catch_exception_command_1): Rename to...
8436 (catch_exception_event): ...this, make non-static, update header
8437 command, and change some parameter types.
8438 (catch_catch_command): Update for changes to
8439 catch_exception_command_1.
8440 (catch_throw_command): Likewise.
8441 (catch_rethrow_command): Likewise.
8442 * breakpoint.c (enum exception_event_kind): Delete.
8443 * breakpoint.h (enum exception_event_kind): Moved here from
8444 break-catch-throw.c.
8445 (catch_exception_event): Declare.
8446 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8447 (mi_cmd_catch_throw): New function.
8448 (mi_cmd_catch_rethrow): New function.
8449 (mi_cmd_catch_catch): New function.
8450 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8451 'catch-catch' entries.
8452 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8453 (mi_cmd_catch_rethrow): Declare.
8454 (mi_cmd_catch_catch): Declare.
8456 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8458 * annotate.c (annotate_source_line): Change return type to void,
8459 update implementation to match.
8460 * annotate.h (annotate_source_line): Change return type to void,
8461 update header comment.
8462 * stack.c (print_frame_info): Don't change what frame information
8463 is printed based on whether annotations are on or not.
8465 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8467 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8468 (annotate_source): Make static.
8469 (annotate_source_line): Moved from source.c and renamed from
8470 identify_source_line. Update the return type.
8471 * annotate.h (annotate_source): Delete declaration.
8472 (annotate_source_line): Declaration moved from source.h, and
8473 renamed from identify_source_line. Return type updated.
8474 * source.c (identify_source_line): Moved to annotate.c and renamed
8475 to annotate_source_line.
8476 (info_line_command): Remove check of annotation_level.
8477 * source.h (identify_source_line): Move declaration to annotate.h
8478 and rename to annotate_source_line.
8479 * stack.c: Add 'annotate.h' include.
8480 (print_frame_info): Remove check of annotation_level before
8481 calling annotate_source_line.
8483 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8485 * source-cache.c (source_cache::get_plain_source_lines): Use
8486 open_source_file_with_line_charpos instead of just
8487 open_source_file, remove call to find_source_lines.
8488 (source_cache::get_source_lines): Likewise.
8489 * source.c (find_source_lines): Make static.
8490 (get_filename_and_charpos): Renamed into...
8491 (open_source_file_with_line_charpos): ..this along with changes to
8492 return a scoped_fd, and some other minor clean ups.
8493 (identify_source_line): Use open_source_file_with_line_charpos.
8494 (search_command_helper): Use open_source_file_with_line_charpos
8495 instead of just open_source_file, remove call to
8497 * source.h (open_source_file_with_line_charpos): Declare new
8499 (find_source_lines): Delete declaration.
8501 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8503 * source.c (get_filename_and_charpos): Remove fullname
8505 (identify_source_line): Update call to get_filename_and_charpos.
8507 2019-06-14 Tom Tromey <tromey@adacore.com>
8510 * ui-style.h (skip_ansi_escape): Update comment.
8511 * ui-file.h (class no_terminal_escape_file): New class.
8512 * ui-file.c (no_terminal_escape_file::write)
8513 (no_terminal_escape_file::puts): New methods.
8514 * cli/cli-logging.c (handle_redirections): Use
8515 no_terminal_escape_file.
8517 2019-06-14 Tom Tromey <tromey@adacore.com>
8519 * NEWS: Move convenience variable news above Python news.
8521 2019-06-14 Tom Tromey <tom@tromey.com>
8523 * gnulib: Move directory to top-level.
8524 * configure.ac: Don't configure gnulib.
8525 * configure: Rebuild.
8526 * common/common-defs.h: Use new path to gnulib.
8527 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8529 (INCGNU): Look in new gnulib location.
8530 (HFILES_NO_SRCDIR): Remove gnulib files.
8531 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8532 (generated_files): Remove GNULIB_H.
8533 ($(LIBGNU), all-lib): Remove targets.
8534 (distclean): Don't mention GNULIB_BUILDDIR.
8535 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8537 2019-06-14 Tom Tromey <tromey@adacore.com>
8539 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8540 Warn if symbol file does not provide any symbols.
8542 2019-06-14 Tom Tromey <tromey@adacore.com>
8544 * source.c (find_and_open_source): Respect basenames_may_differ.
8546 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8548 * annotate.c (annotate_breakpoints_invalid): Make use of
8549 scoped_restore_terminal_state.
8550 (annotate_frames_invalid): Likewise.
8552 2019-06-14 Tom Tromey <tromey@adacore.com>
8554 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8555 allow assignment to an internalvar.
8557 2019-06-14 Tom Tromey <tromey@adacore.com>
8559 * ada-lex.l: Allow "_" in attribute names.
8561 2019-06-14 Tom Tromey <tromey@adacore.com>
8564 * regcache.c (registers_changed): Don't call alloca.
8565 * top.c (execute_command): Don't call alloca.
8567 2019-06-13 Pedro Alves <palves@redhat.com>
8569 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8570 'expression'. When parsing an expression, error out if there's
8571 junk after "unlimited".
8572 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8573 (do_set_command): Adjust calls to is_unlimited_literal.
8575 2019-06-13 Pedro Alves <palves@redhat.com>
8577 * compile/compile.c (make_compile_options_def_group): Add braces
8578 around array_view initializer.
8579 * thread.c (make_thread_apply_all_options_def_group)
8580 (make_thread_apply_all_options_def_group): Likewise.
8582 2019-06-13 Pedro Alves <palves@redhat.com>
8584 * NEWS (New commands): Mention "maint test-options
8585 require-delimiter", "maint test-options unknown-is-error", "maint
8586 test-options unknown-is-operand" and "maint show
8587 test-options-completion-result".
8588 (New command options, command completion): New section.
8589 (Completion improvements): New section.
8590 Mention that you can abbreviate "unlimited".
8592 2019-06-13 Pedro Alves <palves@redhat.com>
8594 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8595 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8596 * unittests/cli-utils-selftests.c (test_parse_flags)
8597 (test_parse_flags_qcs): Delete.
8598 (test_cli_utils): Don't call deleted functions.
8600 2019-06-13 Pedro Alves <palves@redhat.com>
8602 * thread.c: Include "cli/cli-option.h".
8603 (tp_array_compar_ascending): Global.
8604 (tp_array_compar): Delete function.
8605 (tp_array_compar_ascending, tp_array_compar_descending): New
8607 (ascending_option_def, qcs_flag_option_def)
8608 (thr_qcs_flags_option_defs)
8609 (make_thread_apply_all_options_def_group)
8610 (make_thread_apply_options_def_group): New.
8611 (thread_apply_all_command): Use gdb::option::process_options.
8612 (thread_apply_command_completer)
8613 (thread_apply_all_command_completer): New.
8614 (thread_apply_command): Use gdb::option::process_options.
8615 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8616 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8617 to generate help text of "thread apply". Adjust "taas"'s help.
8618 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8619 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8621 2019-06-13 Pedro Alves <palves@redhat.com>
8623 * thread.c (thread_apply_command): Check for invalid TID with
8624 isdigit instead of !isalpha.
8626 2019-06-13 Pedro Alves <palves@redhat.com>
8628 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8629 (validate_flags_qcs): New.
8630 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8631 (validate_flags_qcs): Declare.
8632 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8633 (make_frame_apply_options_def_group): New.
8634 (frame_apply_command_count): Process options with
8635 gdb::option::process_options.
8636 (frame_apply_completer): New.
8637 (frame_apply_level_completer, frame_apply_all_completer)
8638 (frame_apply_completer): New.
8639 (_initialize_stack): Update help of "frame apply", "frame apply
8640 level", "frame apply all" and "faas" to mention supported options
8641 and install command completers.
8642 * stack.h (frame_apply_all_completer): Declare.
8643 * thread.c: Include "stack.h".
8644 (tfaas_command): Add "--".
8645 (_initialize_thread): Update help "tfaas" to mention supported
8646 options and install command completer.
8648 2019-06-13 Pedro Alves <palves@redhat.com>
8650 * completer.c (complete_nested_command_line): New.
8651 (gdb_completion_word_break_characters_throw): Add assertion.
8652 * completer.h (complete_nested_command_line): Declare.
8654 2019-06-13 Pedro Alves <palves@redhat.com>
8656 * stack.c (parse_backtrace_qualifiers): New.
8657 (backtrace_command): Use it.
8658 (backtrace_command_completer): Complete on qualifiers.
8660 2019-06-13 Pedro Alves <palves@redhat.com>
8662 * frame.c: Include "cli/cli-option.h.
8663 (user_set_backtrace_options): New.
8664 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8666 (get_prev_frame): Adjust.
8667 (boolean_option_def, uinteger_option_def)
8668 (set_backtrace_option_defs): New.
8669 (_initialize_frame): Adjust and use
8670 gdb::option::add_setshow_cmds_for_options to install "set
8671 backtrace past-main" and "set backtrace past-entry".
8672 * frame.h: Include "cli/cli-option.h".
8673 (struct frame_print_options): Forward declare.
8674 (print_frame_arguments_all, print_frame_arguments_scalars)
8675 (print_frame_arguments_none): Declare.
8676 (print_entry_values): Delete declaration.
8677 (struct frame_print_options, user_frame_print_options): New.
8678 (struct set_backtrace_options): New.
8679 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8680 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8681 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8682 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8683 (list_args_or_locals): Add frame_print_options parameter.
8684 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8685 * python/py-framefilter.c (enumerate_args): Pass down
8686 USER_FRAME_PRINT_OPTIONS.
8687 * stack.c: Include "cli/cli-option.h".
8688 (print_frame_arguments_all, print_frame_arguments_scalars)
8689 (print_frame_arguments_none): Declare.
8690 (print_raw_frame_arguments, print_entry_values): Delete.
8691 (user_frame_print_options): New.
8692 (boolean_option_def, enum_option_def, frame_print_option_defs):
8694 (struct backtrace_cmd_options): New.
8695 (bt_flag_option_def): New.
8696 (backtrace_command_option_defs): New.
8697 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8698 (print_frame_arg, read_frame_arg, print_frame_args)
8699 (print_frame_info, print_frame): Add frame_print_options parameter
8701 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8702 (backtrace_command_1): Add frame_print_options and
8703 backtrace_cmd_options parameters and use them.
8704 (make_backtrace_options_def_group): New.
8705 (backtrace_command): Process command options with
8706 gdb::option::process_options.
8707 (backtrace_command_completer): New.
8708 (_initialize_stack): Extend "backtrace"'s help to mention
8709 supported options. Install completer for "backtrace".
8710 Install some settings commands with add_setshow_cmds_for_options.
8712 2019-06-13 Pedro Alves <palves@redhat.com>
8714 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8715 and that "set/show print raw frame-arguments" are now deprecated.
8717 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8719 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8720 * stack.c (_initialize_stack): Install "set/show print
8721 raw-frame-arguments", and deprecate "set/show print raw
8723 * valprint.c (_initialize_valprint): Deprecate "set/show print
8726 2019-06-13 Pedro Alves <palves@redhat.com>
8728 * compile/compile.c (struct compile_options): New.
8729 (compile_flag_option_def, compile_command_option_defs)
8730 (make_compile_options_def_group): New.
8731 (compile_file_command): Handle options with
8732 gdb::option::process_options.
8733 (compile_file_command_completer): New function.
8734 (compile_code_command): Handle options with
8735 gdb::option::process_options.
8736 (compile_code_command_completer): New function.
8737 (_initialize_compiler): Install completers for "compile code" and
8738 "compile file". Mention available options in "compile code" and
8739 "compile code"'s help.
8740 * completer.c (advance_to_completion_word): New, factored out from
8742 (advance_to_expression_complete_word_point): ... this.
8743 (advance_to_filename_complete_word_point): New.
8744 * completer.h (advance_to_filename_complete_word_point): New
8747 2019-06-13 Pedro Alves <palves@redhat.com>
8749 * compile/compile.c: Include "cli/cli-option.h".
8750 (compile_print_value): Scope data pointer is now a
8751 value_print_options pointer; adjust.
8752 (compile_print_command): Process options. Scope data pointer is
8753 now a value_print_options pointer; adjust.
8754 (_initialize_compile): Update "compile print"'s help to include
8755 supported options. Install a completer for "compile print".
8756 * cp-valprint.c (show_vtblprint, show_objectprint)
8757 (show_static_field_print): Delete.
8758 (_initialize_cp_valprint): Don't install "set print
8759 static-members", "set print vtbl", "set print object" here.
8760 * printcmd.c: Include "cli/cli-option.h" and
8761 "common/gdb_optional.h".
8762 (print_command_parse_format): Rework to fill in a
8763 value_print_options instead of a format_data.
8764 (print_value): Change parameter type from format_data pointer to
8765 value_print_options reference. Adjust.
8766 (print_command_1): Process options. Adjust to pass down a
8767 value_print_options.
8768 (print_command_completer): New.
8769 (_initialize_printcmd): Install print_command_completer as
8770 handle_brkchars completer for the "print" command. Update
8771 "print"'s help to include supported options.
8772 * valprint.c: Include "cli/cli-option.h".
8773 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8774 here from cp-valprint.c.
8775 (boolean_option_def, uinteger_option_def)
8776 (value_print_option_defs, make_value_print_options_def_group):
8777 New. Use gdb::option::add_setshow_cmds_for_options to install
8778 "set print elements", "set print null-stop", "set print repeats",
8779 "set print pretty", "set print union", "set print array", "set
8780 print address", "set print symbol", "set print array-indexes".
8781 * valprint.h: Include <string> and "cli/cli-option.h".
8782 (make_value_print_options_def_group): Declare.
8783 (print_value): Change parameter type from format_data pointer to
8784 value_print_options reference.
8785 (print_command_completer): Declare.
8787 2019-06-13 Pedro Alves <palves@redhat.com>
8789 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8790 (COMMON_SFILES): Add maint-test-settings.c.
8791 * cli/cli-decode.c (boolean_enums): New global, factored out from
8793 (add_setshow_boolean_cmd): ... here.
8794 * cli/cli-decode.h (boolean_enums): Declare.
8795 * cli/cli-option.c: New file.
8796 * cli/cli-option.h: New file.
8797 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8798 factored out from ...
8799 (parse_cli_boolean_value(const char *)): ... this.
8800 (is_unlimited_literal): Change parameter type to pointer to
8801 pointer. Adjust and advance ARG pointer.
8802 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8803 (parse_cli_var_enum): New, factored out from ...
8804 (do_set_command): ... this. Adjust.
8805 * cli/cli-setshow.h (parse_cli_boolean_value)
8806 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8807 (parse_cli_var_enum): Declare.
8808 * cli/cli-utils.c: Include "cli/cli-option.h".
8809 (get_ulongest): New.
8810 * cli/cli-utils.h (get_ulongest): Declare.
8811 (check_for_argument): New overloads.
8812 * maint-test-options.c: New file.
8814 2019-06-13 Pedro Alves <palves@redhat.com>
8816 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8817 parse a range if "-" is at the end of the string.
8819 2019-06-13 Pedro Alves <palves@redhat.com>
8821 * cli/cli-setshow.c (parse_auto_binary_operation)
8822 (parse_cli_boolean_value): Don't allow "o".
8824 2019-06-13 Pedro Alves <palves@redhat.com>
8826 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8827 * NEWS: Mention maint test-settings KIND.
8828 * maint-test-settings.c: New file.
8830 2019-06-13 Pedro Alves <palves@redhat.com>
8832 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8834 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8837 2019-06-13 Pedro Alves <palves@redhat.com>
8839 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8842 2019-06-13 Pedro Alves <palves@redhat.com>
8844 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8846 2019-06-13 Pedro Alves <palves@redhat.com>
8848 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8849 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8851 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8852 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8854 (check_for_argument): Skip spaces after argument.
8856 2019-06-13 Pedro Alves <palves@redhat.com>
8858 * thread.c (thread_apply_command): Adjust TID parsing.
8859 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8860 detected before end of string.
8861 (tid_is_in_list): Error out if LIST is invalid.
8863 2019-06-13 Pedro Alves <palves@redhat.com>
8865 * completer.c (complete_line_internal_1): Rewind completion word
8867 (completion_tracker::advance_custom_word_point_by): Change
8868 parameter type to int.
8869 * completer.h (completion_tracker::advance_custom_word_point_by):
8872 2019-06-13 Pedro Alves <palves@redhat.com>
8874 * completer.c (advance_to_completion_word): Handle delimiters.
8876 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8878 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8880 2019-06-11 Tom Tromey <tom@tromey.com>
8882 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8883 (xmalloc_failed): Move to alloc.c.
8884 * alloc.c: New file.
8885 * Makefile.in (COMMON_SFILES): Add alloc.c.
8887 2019-06-11 Tom Tromey <tom@tromey.com>
8889 * nat/linux-waitpid.c: Don't include server.h.
8890 (linux_debug): Remove.
8891 (my_waitpid): Update.
8893 2019-06-11 Tom Tromey <tromey@adacore.com>
8895 * infcall.c (_initialize_infcall): Remove trailing newline from
8897 * user-regs.c (_initialize_user_regs): Remove trailing newline
8899 * typeprint.c (_initialize_typeprint): Remove trailing newline
8901 * reverse.c (_initialize_reverse): Remove trailing newlines from
8903 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8905 * language.c (add_set_language_command): Remove trailing newline
8907 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8909 * disasm.c (_initialize_disasm): Remove trailing newline from
8911 * top.c (init_main): Remove trailing newline from help.
8912 * interps.c (_initialize_interpreter): Remove trailing newline
8914 * btrace.c (_initialize_btrace): Remove trailing newlines from
8916 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8918 * python/python.c (_initialize_python): Remove trailing newline
8920 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8922 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8923 from help. Reformat some text.
8924 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8926 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8929 2019-06-11 Tom Tromey <tromey@adacore.com>
8931 * darwin-nat.c (darwin_decode_exception_message)
8932 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8934 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8936 * valops.c (value_slice): Check for not allocated or not
8939 2019-06-10 Tom de Vries <tdevries@suse.de>
8942 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8943 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8946 2019-06-10 Tom de Vries <tdevries@suse.de>
8949 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8950 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8952 2019-06-10 Tom de Vries <tdevries@suse.de>
8955 * symtab.c (struct demangled_name_entry): Add language field.
8956 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8957 static minimal symbol". Set and use language field.
8959 2019-06-10 Tom Tromey <tromey@adacore.com>
8961 * ada-lang.c (_initialize_ada_language): Update help text.
8963 2019-06-10 Tom Tromey <tromey@adacore.com>
8965 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8967 * guile/guile.c (handle_boot_error): Don't end warning with a
8969 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8970 warning with a newline.
8971 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8973 (s12z_frame_cache): Likewise.
8974 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8976 * solib-svr4.c (disable_probes_interface): Don't end warning with
8978 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8980 * python/python.c (do_finish_initialization): Don't end warning
8983 2019-06-10 Tom Tromey <tom@tromey.com>
8985 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8986 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8989 2019-06-10 Tom Tromey <tromey@adacore.com>
8991 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8993 (elf_new_init): Don't call stabsread_new_init.
8994 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8995 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8996 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8998 2019-06-10 Tom de Vries <tdevries@suse.de>
9002 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9004 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9006 * source.c (find_and_open_source): Also rewrite relative file
9009 2019-04-26 Amos Bird <amosbird@gmail.com>
9011 * annotate.c (annotate_thread_exited): Add "thread-exited"
9014 2019-06-06 Tom Tromey <tromey@adacore.com>
9016 * maint.h (class scoped_command_stats): Use
9017 DISABLE_COPY_AND_ASSIGN.
9018 <print_time>: New method.
9019 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9021 (scoped_command_stats::print_time): New method.
9023 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9025 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9026 instructions of lengths 6 or 8 bytes.
9028 2019-06-04 Pedro Alves <palves@redhat.com>
9030 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9032 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9033 * breakpoint.c (condition_completer): Likewise.
9034 * cli/cli-dump.c (scan_expression): Likewise.
9035 * common/filestuff.c (mkdir_recursive): Likewise.
9036 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9037 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9038 (gdb_abspath): Likewise.
9039 * compile/compile-cplus-types.c
9040 (compile_cplus_instance::decl_name): Likewise.
9041 * completer.c (complete_explicit_location):
9042 (signal_completer, reg_or_group_completer_1): Likewise.
9043 * cp-support.c (cp_remove_params_if_any): Likewise.
9044 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9045 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9046 * infcmd.c (strip_bg_char): Likewise.
9047 * linespec.c (copy_token_string): Likewise.
9048 * mi/mi-main.c (output_cores): Likewise.
9049 * psymtab.c (psymtab_search_name):
9050 * symfile.c (test_set_ext_lang_command): Likewise.
9051 * target.c (target_fileio_read_stralloc): Likewise.
9052 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9053 * value.c (complete_internalvar): Likewise.
9055 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9057 Add objfile property to gdb.Type.
9058 * NEWS: Mention Python API addition.
9059 * python/py-type.c (typy_get_objfile): New method.
9061 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9063 * NEWS: Mention the new set|show style [title|highlight].
9064 Mention changes to "show style", "help" and "apropos".
9066 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9068 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9069 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9070 instead of print_help_for_command.
9071 (print_doc_of_command): New function.
9072 (help_list): Add 'apropos -v word' suggestion.
9073 (print_help_for_command): Style the command name using title style.
9074 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9075 (_initialize_cli_cmds): Describe -v in apropos_command help.
9077 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9079 * cli/cli-style.h (cli_style_option): Add name in constructor,
9080 add m_name class member, add constructor with intensity,
9081 add name class function.
9082 (cli_style_option::add_setshow_commands): Remove name argument.
9083 (highlight_style, title_style): New styles.
9084 * cli/cli-style.c (do_show): New function that shows a style
9085 characteristic styling the style name with itself.
9086 (set_style_name): New function.
9087 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9088 Update all callers according to the changes in cli/cli-style.h.
9089 * utils.h (fputs_highlighted): New function.
9090 * utils.c (fputs_highlighted): Likewise.
9092 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9094 * NEWS: Mention new pipe command and new convenience variables.
9096 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9098 * cli/cli-cmds.c (pipe_command): New function.
9099 (_initialize_cli_cmds): Call add_com for pipe_command.
9100 Define | as an alias for pipe.
9101 (exit_status_set_internal_vars): New function.
9102 (shell_escape): Call exit_status_set_internal_vars.
9103 cli/cli-decode.c (find_command_name_length): Recognize | as
9104 a single character command.
9106 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9108 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9109 top.c (execute_command_to_ui_file): New function, mostly a copy
9110 of execute_command_to_string.
9111 (execute_command_to_string): Implement by calling
9112 execute_command_to_ui_file.
9114 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9116 * top.h (saved_command_line): Remove declaration.
9117 * top.c (previous_saved_command_line, previous_repeat_arguments):
9119 (saved_command_line): Make static, define together with other
9121 (dont_repeat): Clear repeat_arguments.
9122 (repeat_previous, get_saved_command_line, save_command_line):
9124 (gdb_init): Initialize saved_command_line
9125 and previous_saved_command_line.
9126 * main.c (captured_main_1): Remove saved_command_line initialization.
9127 * event-top.c (handle_line_of_input): Update to use
9128 the new 'repeat' related functions instead of direct access to
9130 * command.h (repeat_previous, get_saved_command_line,
9131 save_command_line): New declarations.
9132 (dont_repeat): Add comment.
9134 2019-05-30 Tom Tromey <tromey@adacore.com>
9136 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9138 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9140 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9143 * completer.c (complete): Initialize variable word.
9145 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9147 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9148 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9149 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9150 'body' is NULL to the outter 'if', protecting the '!is_define'
9153 2019-05-29 Tom Tromey <tromey@adacore.com>
9155 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9156 (dwarf_unknown): New function.
9157 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9158 (dwarf_type_encoding_name): Use dwarf_unknown.
9160 2019-05-29 Tom Tromey <tromey@adacore.com>
9163 * cp-valprint.c (cp_print_value_fields): Call
9164 cp_print_static_field inside "try".
9166 2019-05-29 Tom Tromey <tromey@adacore.com>
9168 * inflow.c (struct terminal_info): Add default operator=.
9169 * configure: Rebuild.
9170 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9171 -Wdeprecated-copy-dtor, -Wredundant-move.
9173 2019-05-29 Tom Tromey <tromey@adacore.com>
9176 * infcmd.c (print_return_value_1): Handle finish_print
9178 (show_print_finish): New function.
9179 (_initialize_infcmd): Add "set/show print finish" commands.
9180 * valprint.c (user_print_options): Initialize new member.
9181 * valprint.h (struct value_print_options) <finish_print>: New
9184 2019-05-28 Tom Tromey <tromey@adacore.com>
9186 * ada-lang.c (ada_remove_Xbn_suffix)
9187 (find_old_style_renaming_symbol)
9188 (parse_old_style_renaming): Remove.
9189 (ada_find_renaming_symbol): Don't call
9190 find_old_style_renaming_symbol.
9191 (ada_is_renaming_symbol): Rename from
9192 ada_find_renaming_symbol. Remove "block" parameter. Return
9194 (ada_read_var_value): Update and simplify.
9195 * ada-exp.y (write_var_or_type): Remove old code.
9197 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9200 * event-top.c: Remove include comment.
9201 * inflow.c (class scoped_ignore_sigttou): Move from here...
9202 * inflow.h (class scoped_ignore_sigttou): ...to here.
9203 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9204 * top.c: Remove include comment.
9206 2019-05-27 Tom Tromey <tom@tromey.com>
9210 2019-05-22 Tom Tromey <tromey@adacore.com>
9212 * target.c (target_follow_exec): Constify parameter.
9213 * target-delegates.c: Rebuild.
9214 * remote.c (remote_target::follow_exec): Constify parameter.
9215 * infrun.c (follow_exec): Constify parameter.
9216 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9217 (target_follow_exec): Likewise.
9219 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9221 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9222 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9224 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9226 * NEWS: Add debugredirect and testsuite sections.
9228 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9230 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9231 target descriptions using exclusively floating point register name
9234 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9237 * f-lang.c (build_fortran_types): Handle the case where
9238 gdbarch_floatformat_for_type returns a nullptr.
9240 2019-05-21 Tom de Vries <tdevries@suse.de>
9243 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9245 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9248 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9250 * i386-tdep.c (i386_floatformat_for_type): Use
9251 floatformats_ia64_quad for the 16-byte floating point component
9252 within a fortran 32-byte complex number.
9254 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9256 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9257 delete default constructor.
9258 (find_partial_die): Update to return const struct.
9259 (partial_die_parent_scope): Move variable declaration into scope
9260 of its use and change its type to auto.
9261 (guess_partial_die_structure_name): Likewise.
9262 (partial_die_info::fixup): Likewise.
9264 2019-05-17 Tom Tromey <tromey@adacore.com>
9266 * source.c (find_and_open_source): Remove cast.
9268 2019-05-17 Tom Tromey <tromey@adacore.com>
9270 * annotate.c (annotate_source): Make "filename" const.
9271 * annotate.h (annotate_source): Use const.
9273 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9275 * disasm.c (set_disassembler_options): Send errors to stderr.
9277 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9279 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9280 (cli_interp_base::set_logging): Check debug_redirect.
9281 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9282 * cli/cli-logging.c (debug_redirect): Add static variable.
9283 (pop_output_files): Add default param.
9284 (handle_redirections): Print debug setting.
9285 (show_logging_command): Likewise.
9286 (_initialize_cli_logging): Add debugredirect command.
9287 * interps.c (current_interp_set_logging): Add debug_redirect
9289 * interps.h (set_logging): Add debug_redirect parameter.
9290 (current_interp_set_logging): Likewise.
9291 * mi/mi-common.h: Likewise.
9292 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9294 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9295 Tom Tromey <tromey@adacore.com>
9297 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9299 * cli/cli-interp.h (make_logging_output): Remove declaration.
9300 * cli/cli-logging.c (make_logging_output): Remove function.
9301 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9303 * ui-file.c (tee_file::tee_file): Remove bools.
9304 (tee_file::~tee_file): Remove deletes.
9305 * ui-file.h (tee_file): Remove bools.
9307 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9309 * mi/mi-cmds.h (mi_cmd_complete): New function.
9310 * mi/mi-main.c (mi_cmd_complete): Likewise.
9311 * mi/mi-cmds.c: Define new MI command -complete.
9312 * NEWS: Mention new -complete command.
9314 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9316 * completer.h (complete): New function.
9317 * completer.c (complete): Likewise.
9318 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9319 function defined in completer.h.
9321 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9323 * MAINTAINERS (Write After Approval): Add myself.
9325 2019-05-17 Tom de Vries <tdevries@suse.de>
9328 * dwarf2read.c (struct cu_partial_die_info): New struct.
9329 (find_partial_die): Return cu_partial_die_info.
9330 (partial_die_parent_scope, guess_partial_die_structure_name)
9331 (partial_die_info::fixup): Handle new return type of find_partial_die.
9333 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9335 PR breakpoints/24541
9336 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9337 "std::string", simplifying the algorithm.
9339 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9341 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9342 (stap_static_probe_ops::get_probes): Likewise.
9344 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9346 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9347 '-')" and "else if".
9348 (stap_parse_single_operand): Join checks for
9349 "gdbarch_stap_parse_special_token_p" and
9350 "gdbarch_stap_parse_special_token" in the same "if" statement.
9351 Invert check when verifying for operation on register
9354 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9356 * stap-probe.c (stap_get_opcode): Update comment.
9357 (stap_get_expected_argument_type): Likewise.
9358 (handle_stap_probe): Likewise.
9360 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9362 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9363 return type to 'bool'. Adjust comment. Use 'bool' when
9365 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9366 * stap-probe.c (stap_parse_argument_1): Likewise.
9367 (stap_is_operator): Likewise.
9368 (stap_is_generic_prefix): Likewise.
9369 (stap_is_register_prefix): Likewise.
9370 (stap_is_register_indirection_prefix): Likewise.
9371 (stap_is_integer_prefix): Likewise.
9372 (stap_generic_check_suffix): Likewise.
9373 (stap_check_integer_suffix): Likewise.
9374 (stap_check_register_suffix): Likewise.
9375 (stap_check_register_indirection_suffix): Likewise.
9376 (stap_parse_register_operand): Likewise.
9377 (stap_parse_single_operand): Likewise.
9378 (stap_parse_argument_1): Likewise.
9379 (stap_probe::get_argument_count): Likewise.
9380 (stap_is_operator): Likewise.
9382 2019-05-16 Tom Tromey <tromey@adacore.com>
9384 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9387 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9389 * linux-thread-db.c (try_thread_db_load_1): Change return type
9391 (try_thread_db_load): Likewise.
9392 (try_thread_db_load_from_pdir_1): Likewise.
9393 (try_thread_db_load_from_pdir): Likewise.
9394 (try_thread_db_load_from_sdir): Likewise.
9395 (try_thread_db_load_from_dir): Likewise.
9396 (thread_db_load_search): Likewise.
9397 (has_libpthread): Likewise.
9398 (thread_db_load): Likewise.
9400 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9402 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9403 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9404 NULL, and complain/return if that's the case.
9406 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9408 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9409 (advance, posn, abstract_read_memory): New functions.
9410 [struct mem_read_abstraction]: New struct.
9411 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9413 2019-05-14 Tom Tromey <tromey@adacore.com>
9415 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9416 value is not lval_memory.
9418 2019-05-14 Tom Tromey <tromey@adacore.com>
9420 * solib.c (info_sharedlibrary_command): Style the file name.
9422 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9424 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9425 (aarch64_vnv_type): Likewise.
9426 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9427 * common/tdesc.c: Likewise.
9428 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9429 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9430 * features/aarch64-fpu.xml: Add ieee half view.
9431 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9432 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9433 * gdbtypes.h (struct builtin_type): Likewise.
9434 (struct objfile_type): Likewise.
9436 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9438 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9440 * location.h (string_to_event_location): Likewise.
9442 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9446 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9448 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9449 New variable declaration.
9450 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9452 (print_one_breakpoint): Use ui_out::test_flags and new global
9453 variable to compute use_fixed_output.
9454 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9456 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9457 (mi_multi_location_breakpoint_output_fixed): Remove.
9458 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9460 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9461 fix_multi_location_breakpoint_output flag if version >= 3.
9462 * ui-out.h (enum ui_out_flag)
9463 <fix_multi_location_breakpoint_output>: New enumerator.
9465 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9467 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9469 2019-05-10 Tom Tromey <tromey@adacore.com>
9471 * ada-lang.c (catch_ada_completer): New function.
9472 (_initialize_ada_language): Use it.
9474 2019-05-10 Tom Tromey <tromey@adacore.com>
9476 * thread.c (print_thread_info): Make "requested_threads" const.
9477 * gdbthread.h (print_thread_info): Make "requested_threads"
9479 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9480 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9482 2019-05-08 Tom Tromey <tom@tromey.com>
9484 * gdbtypes.c (objfile_type_data): Change type.
9485 (objfile_type, _initialize_gdbtypes): Update.
9487 2019-05-08 Tom Tromey <tom@tromey.com>
9489 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9490 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9491 (_initialize_dwarf2_frame): Update.
9493 2019-05-08 Tom Tromey <tom@tromey.com>
9495 * objc-lang.c (objc_objfile_data): Change type.
9496 (find_methods): Update.
9497 (_initialize_objc_lang): Remove.
9499 2019-05-08 Tom Tromey <tom@tromey.com>
9501 * stabsread.c (rs6000_builtin_type_data): Change type.
9502 (rs6000_builtin_type, _initialize_stabsread): Update.
9504 2019-05-08 Tom Tromey <tom@tromey.com>
9506 * mips-tdep.c (mips_pdr_data): Remove.
9507 (_initialize_mips_tdep): Update.
9509 2019-05-08 Tom Tromey <tom@tromey.com>
9511 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9512 (hppa_init_objfile_priv_data, read_unwind_info)
9513 (find_unwind_entry, _initialize_hppa_tdep): Update.
9515 2019-05-08 Tom Tromey <tom@tromey.com>
9517 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9518 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9520 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9522 2019-05-08 Tom Tromey <tom@tromey.com>
9524 * mdebugread.c (basic_type_data): Change type.
9525 (basic_type, _initialize_mdebugread): Update.
9527 2019-05-08 Tom Tromey <tom@tromey.com>
9529 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9531 2019-05-08 Tom Tromey <tom@tromey.com>
9533 * nto-tdep.c (nto_inferior_data_reg): Change type.
9534 (nto_inferior_data): Update.
9535 (nto_inferior_data_cleanup, nto_new_inferior_data)
9536 (_initialize_nto_tdep): Remove.
9537 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9539 2019-05-08 Tom Tromey <tom@tromey.com>
9541 * ada-lang.c (struct ada_inferior_data): Add initializers.
9542 (ada_inferior_data): Change type.
9543 (ada_inferior_data_cleanup): Remove.
9544 (get_ada_inferior_data, ada_inferior_exit)
9545 (struct ada_pspace_data): Add initializers, destructor.
9546 (ada_pspace_data_handle): Change type.
9547 (get_ada_pspace_data): Update.
9548 (ada_pspace_data_cleanup): Remove.
9550 2019-05-08 Tom Tromey <tom@tromey.com>
9552 * coffread.c (struct coff_symfile_info): Add initializers.
9553 (coff_objfile_data_key): Move lower. Change type.
9554 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9556 (coff_free_info): Remove.
9558 2019-05-08 Tom Tromey <tom@tromey.com>
9560 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9561 (fbsd_pspace_data_handle): Move lower. Change type.
9562 (get_fbsd_pspace_data): Update.
9563 (fbsd_pspace_data_cleanup): Remove.
9564 (_initialize_fbsd_tdep): Update.
9566 2019-05-08 Tom Tromey <tom@tromey.com>
9568 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9569 (get_ada_tasks_pspace_data): Update.
9570 (ada_tasks_pspace_data_cleanup): Remove.
9571 (_initialize_tasks): Update.
9572 (ada_tasks_inferior_data_handle): Change type.
9573 (get_ada_tasks_inferior_data): Update.
9574 (ada_tasks_inferior_data_cleanup): Remove.
9575 (struct ada_tasks_pspace_data): Add initializers.
9577 2019-05-08 Tom Tromey <tom@tromey.com>
9579 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9580 * symfile-debug.c (debug_sym_get_probes): Change type.
9581 * stap-probe.c (handle_stap_probe):
9582 (stap_static_probe_ops::get_probes): Change type.
9583 * probe.h (class static_probe_ops) <get_probes>: Change type.
9584 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9585 (parse_probes_in_pspace): Update.
9586 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9588 (any_static_probe_ops::get_probes): Change type.
9589 * elfread.c (elfread_data): New typedef.
9590 (probe_key): Change type.
9591 (elf_get_probes): Likewise. Update.
9592 (probe_key_free): Remove.
9593 (_initialize_elfread): Update.
9594 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9596 (dtrace_process_dof_probe, dtrace_process_dof)
9597 (dtrace_static_probe_ops::get_probe): Change type.
9599 2019-05-08 Tom Tromey <tom@tromey.com>
9601 * xcoffread.c (struct xcoff_symfile_info): Rename from
9602 coff_symfile_info. Add initializers.
9603 (xcoff_objfile_data_key): Move lower. Change type.
9604 (XCOFF_DATA): Rewrite.
9605 (xcoff_free_info): Remove.
9606 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9607 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9608 (xcoff_initial_scan): Update.
9610 2019-05-08 Tom Tromey <tom@tromey.com>
9612 * solib-svr4.c (struct svr4_info): Add initializers and
9614 <probes_table>: Now an htab_up.
9615 (solib_svr4_pspace_data): Change type.
9616 (free_probes_table): Simplify.
9617 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9618 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9619 (probes_table_remove_objfile_probes, register_solib_event_probe)
9620 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9621 (_initialize_svr4_solib): Update.
9623 2019-05-08 Tom Tromey <tom@tromey.com>
9625 * remote.c (remote_pspace_data): Change type.
9626 (remote_pspace_data_cleanup): Remove.
9627 (get_remote_exec_file, set_pspace_remote_exec_file)
9628 (_initialize_remote): Update.
9630 2019-05-08 Tom Tromey <tom@tromey.com>
9632 * breakpoint.c (breakpoint_objfile_key): Change type.
9633 (get_breakpoint_objfile_data): Update.
9634 (free_breakpoint_objfile_data): Remove.
9635 (_initialize_breakpoint): Update.
9637 2019-05-08 Tom Tromey <tom@tromey.com>
9639 * linux-tdep.c (struct linux_info): Add initializers.
9640 (linux_inferior_data): Move. Change type.
9641 (invalidate_linux_cache_inf): Update.
9642 (linux_inferior_data_cleanup): Remove.
9643 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9645 2019-05-08 Tom Tromey <tom@tromey.com>
9647 * auxv.c (auxv_inferior_data): Move. Change type.
9648 (auxv_inferior_data_cleanup): Remove.
9649 (invalidate_auxv_cache_inf): Rewrite.
9650 (get_auxv_inferior_data, _initialize_auxv): Update.
9652 2019-05-08 Tom Tromey <tom@tromey.com>
9654 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9655 (symfile_debug_objfile_data_key): Change type.
9656 (symfile_debug_installed, debug_qf_has_symbols)
9657 (debug_qf_find_last_source_symtab)
9658 (debug_qf_forget_cached_source_info)
9659 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9660 (debug_qf_print_stats, debug_qf_dump)
9661 (debug_qf_expand_symtabs_for_function)
9662 (debug_qf_expand_all_symtabs)
9663 (debug_qf_expand_symtabs_with_fullname)
9664 (debug_qf_map_matching_symbols)
9665 (debug_qf_expand_symtabs_matching)
9666 (debug_qf_find_pc_sect_compunit_symtab)
9667 (debug_qf_map_symbol_filenames)
9668 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9669 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9670 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9671 (debug_sym_read_linetable, debug_sym_relocate): Update.
9672 (symfile_debug_free_objfile): Remove.
9673 (install_symfile_debug_logging, _initialize_symfile_debug):
9676 2019-05-08 Tom Tromey <tom@tromey.com>
9678 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9679 allocate_on_obstack.
9680 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9681 (get_dwarf2_per_objfile): Update.
9682 (set_dwarf2_per_objfile): Remove.
9683 (dwarf2_has_info, dwarf2_get_section_info): Update.
9684 (dwarf2_free_objfile): Remove.
9685 (_initialize_dwarf2_read): Update.
9687 2019-05-08 Tom Tromey <tom@tromey.com>
9689 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9691 <unsupported_script_warning_printed,
9692 script_not_found_warning_printed>: Now bool.
9693 (auto_load_pspace_data): Change type.
9694 (~auto_load_pspace_info): Rename from
9695 auto_load_pspace_data_cleanup.
9696 (get_auto_load_pspace_data, init_loaded_scripts_info)
9697 (clear_section_scripts, maybe_print_unsupported_script_warning)
9698 (maybe_print_script_not_found_warning, _initialize_auto_load):
9701 2019-05-08 Tom Tromey <tom@tromey.com>
9703 * objfiles.c (objfile_pspace_info): Add destructor and
9705 (objfiles_pspace_data): Change type.
9706 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9707 (get_objfile_pspace_data): Update.
9708 (objfiles_bfd_data): Change type.
9709 (get_objfile_bfd_data): Update.
9710 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9712 2019-05-08 Tom Tromey <tom@tromey.com>
9714 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9716 (get_catch_syscall_inferior_data): Update.
9717 (catch_syscall_inferior_data_cleanup): Remove.
9718 (_initialize_break_catch_syscall): Update.
9720 2019-05-08 Tom Tromey <tom@tromey.com>
9722 * inflow.c (struct terminal_info): Add destructor and
9724 (inflow_inferior_data): Change type.
9725 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9726 (get_inflow_inferior_data, inflow_inferior_exit)
9727 (swap_terminal_info, _initialize_inflow): Update.
9729 2019-05-08 Tom Tromey <tom@tromey.com>
9731 * target-dcache.c (target_dcache_cleanup): Remove.
9732 (target_dcache_aspace_key): Change type.
9733 (target_dcache_init_p, target_dcache_invalidate)
9734 (target_dcache_get, target_dcache_get_or_init)
9735 (_initialize_target_dcache): Update.
9736 * dcache.h (struct dcache_deleter): New.
9738 2019-05-08 Tom Tromey <tom@tromey.com>
9740 * symtab.c (struct symbol_cache): Add destructor and
9742 (symbol_cache_key): Move. Change type.
9743 (make_symbol_cache, free_symbol_cache): Remove.
9744 (get_symbol_cache): Update.
9745 (symbol_cache_cleanup): Remove.
9746 (ALL_PSPACES, symbol_cache_flush)
9747 (maintenance_print_symbol_cache)
9748 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9751 2019-05-08 Tom Tromey <tom@tromey.com>
9753 * symtab.c (struct main_info): Add destructor and initializers.
9754 (main_progspace_key): Move. Change type.
9755 (get_main_info): Update.
9756 (main_info_cleanup): Remove.
9757 (_initialize_symtab): Update.
9759 2019-05-08 Tom Tromey <tom@tromey.com>
9761 * registry.h (DECLARE_REGISTRY): Define the _key class.
9763 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9765 * NEWS: Merge two 'New commands' sections.
9767 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9769 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9770 parameter and use Ada language definition instead.
9771 (ada_val_print_ptr): Remove unused language parameter.
9772 (ada_val_print_num): Remove language parameter and use Ada language
9774 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9776 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9777 parameter and use Ada language definition instead.
9778 (ada_val_print_1): Update all ada_val_print_xxx calls.
9779 Remove language parameter.
9780 (ada_val_print): Update ada_val_print_1 call.
9782 2019-05-08 Tom Tromey <tromey@adacore.com>
9784 * remote.c (remote_hw_watchpoint_limit)
9785 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9788 2019-05-08 Tom Tromey <tromey@adacore.com>
9790 * maint.c (_initialize_maint_cmds): Move initialization code to
9792 (watchdog, show_watchdog): Move to remote.c.
9793 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9795 (_initialize_remote): Move initialization code from maint.c.
9796 * defs.h (watchdog): Don't declare.
9798 2019-05-08 Tom Tromey <tromey@adacore.com>
9800 * tui/tui-interp.c: Include main.h.
9801 * interps.c: Include main.h.
9802 * main.h (interpreter_p): Declare.
9803 * defs.h (interpreter_p): Don't declare.
9805 2019-05-08 Tom Tromey <tromey@adacore.com>
9807 * dwarf2loc.c: Include dwarf2read.h.
9808 * defs.h (read_unsigned_leb128): Don't declare.
9809 * dwarf2read.h (read_unsigned_leb128): Declare.
9811 2019-05-08 Tom Tromey <tromey@adacore.com>
9813 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9816 2019-05-08 Tom Tromey <tromey@adacore.com>
9818 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9819 when no wrap column is set.
9821 2019-05-08 Tom Tromey <tromey@adacore.com>
9823 * c-lang.c (c_get_string): Handle non-C-style arrays.
9825 2019-05-08 Tom Tromey <tromey@adacore.com>
9827 * typeprint.c (print_offset_data::update): Print the bit offset,
9828 not the number of bits remaining.
9830 2019-05-08 Tom Tromey <tromey@adacore.com>
9832 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9833 padding at end of comment.
9835 2019-05-08 Tom Tromey <tromey@adacore.com>
9837 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9840 2019-05-06 Tom Tromey <tom@tromey.com>
9842 * common/scoped_mmap.c: Include common-defs.h.
9843 * common/scoped_mmap.h: Don't include config.h.
9845 2019-05-04 Tom Tromey <tom@tromey.com>
9847 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9848 (struct aarch64_call_info): Add initializers.
9849 <si>: Now a std::vector.
9850 (pass_on_stack, aarch64_push_dummy_call): Update.
9852 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9853 Tom Tromey <tom@tromey.com>
9855 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9856 (ppc_threads): Now a std::vector. Now static.
9857 (hwdebug_find_thread_points_by_tid)
9858 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9861 2019-05-04 Tom Tromey <tom@tromey.com>
9863 * arc-tdep.c (arc_tdesc_init): Return bool.
9865 2019-05-04 Tom Tromey <tom@tromey.com>
9867 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9868 Use gdb_assert_not_reached.
9870 2019-05-04 Tom Tromey <tom@tromey.com>
9872 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9875 2019-05-04 Tom Tromey <tom@tromey.com>
9877 * arc-tdep.c (arc_tdesc_init): Use bool.
9879 2019-05-04 Tom Tromey <tom@tromey.com>
9881 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9883 2019-05-04 Tom Tromey <tom@tromey.com>
9885 * cli/cli-cmds.c (valid_command_p): Return bool.
9887 2019-05-04 Tom Tromey <tom@tromey.com>
9889 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9890 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9892 2019-05-04 Raul Tambre <raul@tambre.ee>
9894 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9895 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9896 operator for comparison.
9898 2019-05-04 Tom Tromey <tom@tromey.com>
9900 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9901 (lookup_partial_symbol, print_partial_symbols)
9902 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9903 (psymbol_compare): Update.
9904 (add_psymbol_to_bcache): Clear the entire psymbol.
9905 (maintenance_check_psymtabs): Update.
9906 * psympriv.h (struct partial_symbol): Don't derive from
9907 general_symbol_info.
9908 <obj_section, unrelocated_address, address,
9909 set_unrelocated_address>: Update.
9910 <ginfo>: New member.
9911 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9912 (debug_names::write_psymbols): Update.
9914 2019-05-04 Tom de Vries <tdevries@suse.de>
9916 * contrib/cc-with-tweaks.sh: Support -n arg.
9918 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9920 * corelow.c (core_target::detach): Ensure frame cache and
9921 register caches are cleared.
9922 inferior.c (exit_inferior_1): Likewise.
9924 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9925 Tom Tromey <tom@tromey.com>
9927 * dictionary.c (collate_pending_symbols_by_language): Remove
9928 "struct" from foreach.
9929 * symtab.c (lookup_global_symbol_from_objfile)
9930 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9932 * ser-tcp.c (net_open): Remove "struct" from foreach.
9933 * objfiles.c (objfile_relocate, objfile_rebase)
9934 (objfile_has_symbols): Remove "struct" from foreach.
9935 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9937 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9939 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9940 "struct" from foreach.
9941 * ada-lang.c (create_excep_cond_exprs)
9942 (ada_exception_catchpoint_cond_string): Remove "struct" from
9945 2019-05-03 Tom Tromey <tromey@adacore.com>
9947 * ada-exp.y (convert_char_literal): Check suffix of each
9950 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9953 * ada-exp.y (yywrap): Don't define.
9954 * ada-lex.l (%option): Add noyywrap
9957 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9959 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9960 _WIN32_WINNT to the XP level, unless already defined to a higher
9963 * unittests/parse-connection-spec-selftests.c:
9965 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9968 * symfile.c (find_separate_debug_file): Remove colon from the
9969 drive spec of DOS/Windows file names of the target, so that the
9970 file name produced from DEBUGDIR and the target's directory will
9971 be valid on DOS/Windows systems.
9973 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9975 * rust-lang.c (val_print_struct): Handle printing structures
9978 2019-05-02 Tom Tromey <tromey@adacore.com>
9980 * valarith.c (_initialize_valarith): Remove.
9982 2019-05-01 Tom Tromey <tromey@adacore.com>
9984 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9987 2019-05-01 Tom Tromey <tromey@adacore.com>
9989 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9990 for big-endian copies.
9992 2019-04-30 Ali Tamur <tamur@google.com>
9993 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9994 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9995 (read_3_bytes): New function.
9997 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9999 * windows-nat.c (main_thread_id): Delete.
10000 (handle_output_debug_string): Replace main_thread_id by
10001 current_event.dwThreadId.
10002 (fake_create_process): Likewise.
10003 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10004 Do not set main_thread_id.
10005 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10006 current_event.dwThreadId.
10007 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10009 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10011 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10012 Use current_event.dwThreadId instead of main_thread_id.
10014 2019-04-30 Tom Tromey <tromey@adacore.com>
10016 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10017 (create_excep_cond_exprs): Iterate over program spaces.
10018 (ada_exception_catchpoint_cond_string): Examine all minimal
10019 symbols for exception types.
10021 2019-04-30 Tom Tromey <tromey@adacore.com>
10024 * dwarf2read.c (process_structure_scope): Handle case where type
10025 has template parameters but no symbol was created.
10027 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10028 Chris January <chris.january@arm.com>
10030 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10032 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10034 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10036 * f-typeprint.c (f_print_type): Update rules for printing
10038 (f_type_print_varspec_suffix): Likewise.
10040 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10041 Chris January <chris.january@arm.com>
10043 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10044 function arguments.
10046 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10048 * f-lang.c (build_fortran_types): Change name of void type to
10050 * f-typeprint.c (f_type_print_base): Print the name of the void
10051 type, rather than a fixed string.
10052 * f-valprint.c (f_decorations): Use lower case void string.
10054 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10055 Chris January <chris.january@arm.com>
10057 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10060 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10061 Chris January <chris.january@arm.com>
10062 David Lecomber <david.lecomber@arm.com>
10064 * f-exp.y (BINOP_INTRINSIC): New token.
10065 (exp): New parser rule handling BINOP_INTRINSIC.
10066 (f77_keywords): Add new builtin procedures.
10067 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10068 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10069 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10070 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10071 (print_unop_subexp_f): New function.
10072 (print_binop_subexp_f): New function.
10073 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10074 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10075 (dump_subexp_body_f): Likewise.
10076 (operator_check_f): Likewise.
10077 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10078 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10080 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10082 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10084 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10085 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10086 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10087 (operator_length_f): New fuction.
10088 (print_subexp_f): New function.
10089 (op_name_f): New function.
10090 (dump_subexp_body_f): New function.
10091 (operator_check_f): New function.
10092 (exp_descriptor_f): Replace standard expression handling functions
10093 with new functions.
10094 * gdb/fortran-operator.def: New file.
10095 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10096 * gdb/std-operator.def: Remove UNOP_KIND.
10098 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10100 * std-operator.def: Remove unbalanced, stray double quote
10103 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10104 Chris January <chris.january@arm.com>
10105 Daniel Everett <daniel.everett@arm.com>
10106 Nick Forrington <nick.forrington@arm.com>
10107 Richard Bunt <richard.bunt@arm.com>
10109 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10110 of depth when printing anonymous structs or unions.
10111 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10112 Don't print either the top-level value, or the children if the
10113 max-depth is exceeded.
10114 (ppscm_print_children): When printing the key of a map, allow one
10115 extra level of depth.
10116 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10117 print either the top-level value, or the children if the max-depth
10119 (print_children): When printing the key of a map, allow one extra
10121 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10122 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10123 (user_print_options): Initialise max_depth field.
10124 (val_print_scalar_or_string_type_p): New function.
10125 (val_print): Check to see if the max depth has been reached.
10126 (val_print_check_max_depth): Define new function.
10127 (show_print_max_depth): New function.
10128 (_initialize_valprint): Add 'print max-depth' option.
10129 * valprint.h (struct value_print_options) <max_depth>: New field.
10130 (val_print_check_max_depth): Declare new function.
10131 * NEWS: Document new feature.
10133 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10135 * ada-lang.c (ada_language_defn): Initialise new field.
10136 * c-lang.c (c_is_string_type_p): New function.
10137 (c_language_defn): Initialise new field.
10138 (cplus_language_defn): Initialise new field.
10139 (asm_language_defn): Initialise new field.
10140 (minimal_language_defn): Initialise new field.
10141 * c-lang.h (c_is_string_type_p): Declare new function.
10142 * d-lang.c (d_language_defn): Initialise new field.
10143 * f-lang.c (f_is_string_type_p): New function.
10144 (f_language_defn): Initialise new field.
10145 * go-lang.c (go_is_string_type_p): New function.
10146 (go_language_defn): Initialise new field.
10147 * language.c (default_is_string_type_p): New function.
10148 (unknown_language_defn): Initialise new field.
10149 (auto_language_defn): Initialise new field.
10150 * language.h (struct language_defn) <la_is_string_type_p>: New
10152 (default_is_string_type_p): Declare new function.
10153 * m2-lang.c (m2_language_defn): Initialise new field.
10154 * objc-lang.c (objc_language_defn): Initialise new field.
10155 * opencl-lang.c (opencl_language_defn): Initialise new field.
10156 * p-lang.c (pascal_is_string_type_p): New function.
10157 (pascal_language_defn): Initialise new field.
10158 * rust-lang.c (rust_is_string_type_p): New function.
10159 (rust_language_defn): Initialise new field.
10161 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10163 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10165 * ada-lang.c (ada_language_defn): Initialise new field.
10166 * c-lang.c (c_language_defn): Likewise.
10167 (cplus_language_defn): Likewise.
10168 (asm_language_defn): Likewise.
10169 (minimal_language_defn): Likewise.
10170 * d-lang.c (d_language_defn): Likewise.
10171 * f-lang.c (f_language_defn): Likewise.
10172 * go-lang.c (go_language_defn): Likewise.
10173 * language.c (unknown_language_defn): Likewise.
10174 (auto_language_defn): Likewise.
10175 * m2-lang.c (m2_language_defn): Likewise.
10176 * objc-lang.c (objc_language_defn): Likewise.
10177 * opencl-lang.c (opencl_language_defn): Likewise.
10178 * p-lang.c (pascal_language_defn): Likewise.
10179 * rust-lang.c (rust_language_defn): Likewise.
10181 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10183 * ada-lang.c (ada_is_character_type): Change return type to bool.
10184 (ada_is_string_type): Likewise.
10185 * ada-lang.h (ada_is_character_type): Update declaration
10186 (ada_is_string_type): Likewise.
10188 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10190 Support style in 'frame|thread apply'
10192 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10193 * record.c (record_start, record_stop): Update callers of
10194 execute_command_to_string with false.
10195 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10196 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10198 (class string_file): New constructor with term_out parameter.
10199 Override methods term_out and can_emit_style_escape. New member
10201 (class stdio_file): Override can_emit_style_escape.
10202 (class tee_file): Override term_out and can_emit_style_escape.
10203 * utils.h (can_emit_style_escape): Remove.
10204 * utils.c (can_emit_style_escape): Likewise.
10205 Update all callers of can_emit_style_escape (SOMESTREAM) to
10206 SOMESTREAM->can_emit_style_escape.
10207 * source-cache.c (source_cache::get_source_lines): Likewise.
10208 * stack.c (frame_apply_command_count): Call execute_command_to_string
10209 passing the term_out characteristic of the current gdb_stdout.
10210 * thread.c (thr_try_catch_cmd): Likewise.
10211 * top.c (execute_command_to_string): pass term_out parameter
10212 to construct the string_file for the command output.
10213 * ui-file.c (term_cli_styling): New function (most code moved
10214 from utils.c can_emit_style_escape).
10215 (string_file::string_file, string_file::can_emit_style_escape,
10216 stdio_file::can_emit_style_escape, tee_file::term_out,
10217 tee_file::can_emit_style_escape): New functions.
10219 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10221 * NEWS: Mention the new set|show may-call-functions.
10222 * infcall.c (may_call_functions_p): New variable.
10223 (show_may_call_functions_p): New function.
10224 (call_function_by_hand_dummy): Throws an error if not
10225 may-call-functions.
10226 (_initialize_infcall): Call add_setshow_boolean_cmd for
10227 may-call-functions.
10229 2019-04-25 Keith Seitz <keiths@redhat.com>
10232 * cp-support.c (inspect_type): Don't attempt substitutions
10233 of symbol with the same name.
10235 2019-04-25 Tom Tromey <tromey@adacore.com>
10238 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10241 2019-04-25 Tom Tromey <tromey@adacore.com>
10243 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10245 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10246 (gdb_xml_parser::parse): Use std::move.
10247 * python/python-internal.h (gdbpy_convert_exception): Take a const
10249 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10251 * python/py-utils.c (gdbpy_convert_exception): Take a const
10253 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10255 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10257 * mi/mi-main.c (mi_print_exception): Take a const reference.
10258 * main.c (handle_command_errors): Take a const reference.
10259 * linespec.c (parse_linespec): Use std::move.
10260 * infcall.c (run_inferior_call): Use std::move.
10261 (call_function_by_hand_dummy): Use std::move.
10262 * exec.c (try_open_exec_file): Use std::move.
10263 * exceptions.h (exception_print, exception_fprintf)
10264 (exception_print_same): Update.
10265 * exceptions.c (print_exception, exception_print)
10266 (exception_fprintf, exception_print_same): Change parameters to
10268 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10269 * common/new-op.c: Use std::move.
10270 * common/common-exceptions.h (struct gdb_exception): Add move
10272 (struct gdb_exception_error, struct gdb_exception_quit, struct
10273 gdb_quit_bad_alloc): Change constructor to move constructor.
10274 (throw_exception): Change parameter to rvalue reference.
10275 * common/common-exceptions.c (throw_exception): Take rvalue
10277 * cli/cli-interp.c (safe_execute_command): Use std::move.
10278 * breakpoint.c (insert_bp_location, location_to_sals): Use
10281 2019-04-25 Tom Tromey <tromey@adacore.com>
10283 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10284 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10285 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10286 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10287 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10288 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10289 guile/scm-value.c: Use unpack.
10290 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10291 gdbscm_gdb_exception.
10292 (gdbscm_throw_gdb_exception): Likewise.
10293 (struct gdbscm_gdb_exception): New.
10294 (unpack): New function.
10295 (gdbscm_wrap): Use unpack.
10297 2019-04-25 Tom Tromey <tromey@adacore.com>
10299 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10300 (gdb_rl_callback_handler): Use std::move.
10301 * common/common-exceptions.h (struct gdb_exception): Add move
10302 assignment operator.
10303 (throw_exception_sjlj): Change "exception" to const reference.
10304 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10305 (throw_exception_sjlj): Change "exception" to const reference.
10307 2019-04-25 Tom Tromey <tromey@adacore.com>
10309 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10310 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10311 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10313 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10315 * mi/mi-interp.c (mi_interp::exec): Update.
10316 * linespec.c (parse_linespec): Update.
10317 * infcall.c (run_inferior_call): Update.
10318 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10319 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10320 (gdbscm_lookup_global_symbol): Update.
10321 * guile/scm-param.c (gdbscm_parameter_value): Update.
10322 * guile/scm-frame.c (gdbscm_frame_read_register)
10323 (gdbscm_frame_read_var): Update.
10324 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10325 * exec.c (try_open_exec_file): Update.
10326 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10327 (gdb_rl_callback_handler): Update.
10328 * common/common-exceptions.h (exception_none): Don't declare.
10329 * common/common-exceptions.c (exception_none): Don't define.
10330 (struct catcher) <exception>: Update.
10331 * cli/cli-interp.c (safe_execute_command): Update.
10332 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10334 2019-04-25 Ali Tamur <tamur@google.com>
10336 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10337 (read_attribute_value): Likewise.
10338 (dwarf2_read_addr_index): Update comment.
10339 (read_str_index): Add DW_FORM_strx.
10340 (dwarf2_string_attr): Likewise.
10341 (dwarf2_const_value_attr): Likewise.
10342 (dump_die_shallow): Likewise.
10343 (dwarf2_fetch_constant_bytes): Likewise.
10344 (skip_form_bytes): Likewise.
10345 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10347 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10351 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10352 OFFSET. Verify if current mapping contains an ELF header.
10353 (linux_find_memory_regions_full): Adjust call to
10356 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10357 Kang Li <kanglictf@gmail.com>
10361 * dwarf2-frame.c (read_initial_length): Be consistent about using
10362 unsigned representation of length.
10363 (decode_frame_entry_1): Likewise. Check for wraparound of
10364 end pointer as well as buffer overflow.
10366 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10368 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10371 2019-04-24 Tom Tromey <tromey@adacore.com>
10373 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10377 * s12z-tdep.c (s12z_unwind_pc): Delete.
10378 (s12z_unwind_sp): Delete.
10379 (s12z_gdbarch_init): Don't register deleted functions with
10382 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10384 * rl78-tdep.c (rl78_unwind_sp): Delete.
10385 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10387 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10389 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10390 (xstormy16_unwind_pc): Delete.
10391 (xstormy16_dummy_id): Delete.
10392 (xstormy16_gdbarch_init): Don't register deleted functions with
10395 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10397 * vax-tdep.c (vax_unwind_pc): Delete.
10398 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10400 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10402 * v850-tdep.c (v850_unwind_sp): Delete.
10403 (v850_unwind_pc): Delete.
10404 (v850_dummy_id): Delete.
10405 (v850_gdbarch_init): Don't register deleted functions with
10408 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10410 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10411 (tilegx_unwind_pc): Delete.
10412 (tilegx_unwind_dummy_id): Delete.
10413 (tilegx_gdbarch_init): Don't register deleted functions with
10416 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10418 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10419 (tic6x_dummy_id): Delete.
10420 (tic6x_gdbarch_init): Don't register deleted functions with
10423 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10425 * sparc-tdep.c (sparc_unwind_pc): Delete.
10426 (sparc32_gdbarch_init): Don't register deleted function with
10429 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10431 * sh-tdep.c (sh_unwind_sp): Delete.
10432 (sh_unwind_pc): Delete.
10433 (sh_dummy_id): Delete.
10434 (sh_gdbarch_init): Don't register deleted functions with
10437 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10439 * score-tdep.c (score_unwind_sp): Delete.
10440 (score_unwind_pc): Delete.
10441 (score_dummy_id): Delete.
10442 (score_gdbarch_init): Don't register deleted functions with
10445 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10447 * rx-tdep.c (rx_unwind_pc): Delete.
10448 (rx_unwind_sp): Delete.
10449 (rx_dummy_id): Delete.
10450 (rx_gdbarch_init): Don't register deleted functions with
10451 gdbarch. Update comment.
10453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10456 (rs6000_dummy_id): Delete.
10457 (rs6000_gdbarch_init): Don't register deleted functions with
10460 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10462 * or1k-tdep.c (or1k_dummy_id): Delete.
10463 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10467 * nios2-tdep.c (nios2_dummy_id): Delete.
10468 (nios2_unwind_sp): Delete.
10469 (nios2_gdbarch_init): Don't register deleted functions with
10472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10474 * nds32-tdep.c (nds32_dummy_id): Delete.
10475 (nds32_unwind_pc): Delete.
10476 (nds32_unwind_sp): Delete.
10477 (nds32_gdbarch_init): Don't register deleted functions with
10480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10482 * msp430-tdep.c (msp430_unwind_pc): Delete.
10483 (msp430_unwind_sp): Delete.
10484 (msp430_dummy_id): Delete.
10485 (msp430_gdbarch_init): Don't register deleted functions with
10488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10490 * moxie-tdep.c (moxie_unwind_sp): Delete.
10491 (moxie_unwind_pc): Delete.
10492 (moxie_dummy_id): Delete.
10493 (moxie_gdbarch_init): Don't register deleted functions with
10496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10498 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10499 (mn10300_unwind_pc): Delete.
10500 (mn10300_unwind_sp): Delete.
10501 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10503 (mn10300_frame_unwind_init): Don't register deleted functions with
10506 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10508 * mep-tdep.c (mep_unwind_pc): Delete.
10509 (mep_unwind_sp): Delete.
10510 (mep_dummy_id): Delete.
10511 (mep_gdbarch_init): Don't register deleted functions with
10514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10516 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10517 (m68hc11_unwind_sp): Delete.
10518 (m68hc11_gdbarch_init): Don't register deleted functions with
10521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10523 * m32r-tdep.c (m32r_unwind_sp): Delete.
10524 (m32r_unwind_pc): Delete.
10525 (m32r_dummy_id): Delete.
10526 (m32r_gdbarch_init): Don't register deleted functions with
10529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10531 * m32c-tdep.c (m32c_unwind_pc): Delete.
10532 (m32c_unwind_sp): Delete.
10533 (m32c_dummy_id): Delete.
10534 (m32c_gdbarch_init): Don't register deleted functions with
10537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10539 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10540 (lm32_unwind_pc): Delete.
10541 (lm32_dummy_id): Delete.
10542 (lm32_gdbarch_init): Don't register deleted functions with
10545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10547 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10548 (iq2000_unwind_pc): Delete.
10549 (iq2000_dummy_id): Delete.
10550 (iq2000_gdbarch_init): Don't register deleted functions with
10553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10555 * nds32-tdep.c (nds32_type_align): Delete.
10556 (nds32_push_dummy_call): Use type_align instead.
10558 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10560 * arm-tdep.c (arm_type_align): Only handle vector override case.
10561 (arm_push_dummy_call): Use type_align.
10562 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10564 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10566 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10568 (pass_on_stack): Use type_align.
10569 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10572 2019-04-23 Tom Tromey <tromey@adacore.com>
10574 * dwarf2read.c (line_header::file_name_at): Remove unused
10577 2019-04-23 Tom de Vries <tdevries@suse.de>
10580 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10584 2019-03-27 Ali Tamur <tamur@google.com>
10586 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10587 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10588 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10589 (dwarf_expr_context::get_addr_index): Likewise
10590 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10591 (symbol_needs_eval_context::get_addr_index): Likewise
10592 (disassemble_dwarf_expression): Add DW_OP_addrx
10593 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10594 (read_cutu_die_from_dwo): Update comment
10595 (skip_one_die): Add DW_FORM_addrx
10596 (read_attribute_value): Likewise
10597 (var_decode_location): Add DW_OP_addrx
10598 (dwarf2_const_value_attr): Add DW_FORM_addrx
10599 (dump_die_shallow): Likewise
10600 (dwarf2_fetch_constant_bytes): Likewise
10601 (decode_locdesc): Add DW_OP_addrx
10602 (skip_form_bytes): Add DW_FORM_addrx
10604 2019-04-22 Ali Tamur <tamur@google.com>
10606 * MAINTAINERS (Write After Approval): Add self.
10608 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10610 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10611 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10612 (open_symbol_file_object): Likewise.
10613 (svr4_default_sos): Add info parameter.
10614 (svr4_read_so_list): Likewise.
10615 (svr4_current_sos_direct): Adjust functions calls to pass down
10617 (svr4_current_sos_1): Add info parameter.
10618 (svr4_current_sos): Call get_svr4_info, pass info down to
10619 svr4_current_sos_1.
10620 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10622 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10624 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10626 (probes_table_remove_objfile_probes): Likewise.
10627 (register_solib_event_probe): Add info parameter.
10628 (solist_update_incremental): Pass info parameter down to
10630 (disable_probes_interface): Add info parameter.
10631 (svr4_handle_solib_event): Pass current_program_space to
10632 get_svr4_info. Adjust disable_probes_interface cleanup.
10633 (svr4_create_probe_breakpoints): Add info parameter, pass it
10634 down to register_solib_event_probe.
10635 (svr4_create_solib_event_breakpoints): Add info parameter,
10636 pass it down to svr4_create_probe_breakpoints.
10637 (enable_break): Pass info down to
10638 svr4_create_solib_event_breakpoints.
10639 (svr4_solib_create_inferior_hook): Pass current_program_space to
10641 (svr4_clear_solib): Likewise.
10643 2019-04-22 Pedro Alves <palves@redhat.com>
10645 * solib-svr4.c (svr4_free_objfile_observer): New.
10646 (probe_and_action::objfile): New field.
10647 (probes_table_htab_remove_objfile_probes)
10648 (probes_table_remove_objfile_probes): New functions.
10649 (register_solib_event_probe): Add 'objfile' parameter. Store it
10650 in the new probe_and_action. Don't store the probe in 'lookup'.
10651 (svr4_create_probe_breakpoints): Pass objfile to
10652 register_solib_event_probe.
10653 (_initialize_svr4_solib): Register a free_objfile observer.
10655 2019-04-19 Tom Tromey <tom@tromey.com>
10657 * common/queue.h: Remove.
10659 2019-04-19 Tom Tromey <tom@tromey.com>
10661 * event-loop.c: Don't include "common/queue.h".
10663 2019-04-19 Tom Tromey <tom@tromey.com>
10665 * remote.c (remote_target): Use delete.
10666 * remote-notif.h: Include <list>, not "common/queue.h".
10667 (notif_client_p): Remove typedef.
10668 (remote_notif_state): Add constructor, destructor, initializer.
10669 <notif_queue>: Now a std::list.
10670 (remote_notif_state_xfree): Don't declare.
10671 * remote-notif.c (remote_notif_process, handle_notification)
10672 (remote_notif_state_allocate): Update.
10673 (~remote_notif_state): Rename from remote_notif_state_xfree.
10675 2019-04-19 Tom Tromey <tom@tromey.com>
10677 * symfile.c (reread_symbols): Update.
10678 * objfiles.c (objfile_register_static_link)
10679 (objfile_lookup_static_link): Update
10680 (~objfile) Don't delete static_links.
10681 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10683 2019-04-19 Tom Tromey <tom@tromey.com>
10685 * type-stack.h (struct type_stack) <insert>: Constify string.
10686 * type-stack.c (type_stack::insert): Constify string.
10687 * gdbtypes.h (lookup_template_type): Update.
10688 (address_space_name_to_int): Update.
10689 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10691 (lookup_template_type): Make name const.
10692 * c-exp.y: Update rules.
10693 (lex_one_token, classify_name, classify_inner_name)
10694 (c_print_token): Update.
10695 * p-exp.y: Update rules.
10697 * f-exp.y: Update rules.
10699 * d-exp.y: Update rules.
10700 (lex_one_token, classify_name, classify_inner_name): Update.
10701 * parse.c (write_dollar_variable, copy_name): Return std::string.
10702 * parser-defs.h (copy_name): Change return type.
10703 * m2-exp.y: Update rules.
10705 * go-exp.y (lex_one_token): Update.
10707 (classify_unsafe_function, classify_packaged_name)
10708 (classify_name, yylex): Update.
10710 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10712 * configure.ac: add --enable-source-highlight switch.
10713 * configure: Regenerate.
10714 * top.c (print_gdb_version): plumb --enable-source-highlight
10715 status to "show configuration".
10717 2019-04-19 Tom Tromey <tromey@adacore.com>
10719 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10721 (empty_record, ada_template_to_fixed_record_type_1)
10722 (template_to_static_fixed_type)
10723 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10724 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10725 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10728 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10731 * source.c (print_source_lines_base): Advance "iter" when a
10732 control character is seen.
10734 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10736 * inferior.h (struct infcall_suspend_state_deleter):
10737 Catch exception in destructor to avoid crash.
10739 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10741 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10742 close to the add_com "shell".
10744 2019-04-18 Tom Tromey <tromey@adacore.com>
10746 * process-stratum-target.h (class process_stratum_target)
10747 <stratum>: Add "final".
10749 2019-04-17 Tom Tromey <tromey@adacore.com>
10751 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10752 against nullptr before use.
10754 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10756 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10758 2019-04-17 Jim Wilson <jimw@sifive.com>
10759 Andrew Burgess <andrew.burgess@embecosm.com>
10761 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10762 code read might fail, assume 4-byte breakpoint in that case.
10764 2019-04-15 Leszek Swirski <leszeks@google.com>
10766 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10767 rather than a hand-rolled POD check when checking for forced MEMORY
10770 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10772 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10773 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10775 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10776 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10777 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10780 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10782 * aarch64-linux-nat.c
10783 (aarch64_linux_nat_target::thread_architecture): Add override.
10784 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10787 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10789 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10791 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10793 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10794 target types of size 96-bits, add some additional comments, and
10795 check that the builtin type we found was the correct size.
10797 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10799 * utils.c (prompt_for_continue): Don't restore the styling at the
10800 end, as applied_style has the wrong value. This fixes styling in
10801 long lists of file names that are interrupted by the "Continue?"
10804 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10806 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10807 * c-lang.c (c_language_defn): Likewise.
10808 (cplus_language_defn): Likewise.
10809 (asm_language_defn): Likewise.
10810 (minimal_language_defn): Likewise.
10811 * d-lang.c (d_language_defn): Likewise.
10812 * f-lang.c (f_language_defn): Likewise.
10813 * go-lang.c (go_language_defn): Likewise.
10814 * language.c (unknown_language_defn): Likewise.
10815 (auto_language_defn): Likewise.
10816 * language.h (struct language_defn): Remove la_magic field.
10817 (LANG_MAGIC): Delete.
10818 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10819 * objc-lang.c (objc_language_defn): Likewise.
10820 * opencl-lang.c (opencl_language_defn): Likewise.
10821 * p-lang.c (pascal_language_defn): Likewise.
10822 * rust-lang.c (rust_language_defn): Likewise.
10824 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10826 * riscv-tdep.c (riscv_type_align): New function.
10827 (riscv_type_alignment): Delete.
10828 (riscv_arg_location): Use 'type_align'.
10829 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10831 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10833 * gdbtypes.c (type_align): A struct with no non-static fields also
10834 has alignment of 1.
10836 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10838 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10840 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10842 (riscv_struct_info::analyse): New implementation using new
10843 analyse_inner member function.
10844 (riscv_struct_info::field_offset): New member function.
10845 (riscv_struct_info::m_offsets): New member variable.
10846 (riscv_struct_info::analyse_inner): New private member function,
10847 takes the old implementation of riscv_struct_info::analyse but
10848 extended to track field offsets.
10849 (riscv_call_arg_struct): Update the struct folding special cases
10850 to handle cases where empty C++ structs, which are non-zero
10852 (riscv_arg_location): Initialise the length of each location, a
10853 non-zero length now indicates the location is in use.
10854 (riscv_push_dummy_call): Allow for the first location having a
10855 non-zero offset when setting up arguments.
10856 (riscv_return_value): Likewise, but for return values.
10858 2019-04-11 Tom Tromey <tromey@adacore.com>
10860 * utils.c (internal_vproblem): Make "msg" const.
10862 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10864 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10865 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10866 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10867 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10869 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10871 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10873 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10874 of amd64_collect_native_gregset.
10875 (amd64_linux_nat_target::store_registers): Likewise.
10877 2019-04-10 Tom Tromey <tom@tromey.com>
10879 * symtab.c (lookup_global_symbol_from_objfile)
10880 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10881 * objfiles.h (class separate_debug_iterator): New.
10882 (class separate_debug_range): New.
10883 (struct objfile) <separate_debug_objfiles>: New method.
10884 (objfile_separate_debug_iterate): Don't declare.
10885 * objfiles.c (separate_debug_iterator::operator++): Rename from
10886 objfile_separate_debug_iterate.
10887 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10889 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10892 2019-04-10 Tom Tromey <tom@tromey.com>
10894 * symfile.c (reread_symbols): Remove old comment.
10895 * objfiles.c (free_all_objfiles): Fix a typo.
10897 2019-04-10 Tom Tromey <tom@tromey.com>
10899 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10900 * minsyms.c (lookup_minimal_symbol): Use foreach.
10901 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10902 (lookup_minimal_symbol_solib_trampoline): Likewise.
10903 * symfile.c (reread_symbols): Use foreach.
10905 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10906 Tom Tromey <tromey@adacore.com>
10909 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10910 (rust_lex_int_test): Change "value" to be LONGEST.
10911 (rust_lex_tests): Add test for long integer literal.
10913 2019-04-09 Tom Tromey <tromey@adacore.com>
10915 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10917 (extended_remote_target::attach): Update.
10918 (remote_target::remote_notice_new_inferior): Update.
10919 (remote_target::add_current_inferior_and_thread): Update.
10920 * inferior.c (exit_inferior_1): Use "false".
10921 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10923 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10925 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10926 the "start" command.
10928 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10930 * python/py-inferior.c (infpy_thread_from_thread_handle):
10931 Adjust comments to reflect renaming of thread_from_thread_handle
10932 to thread_from_handle. Adjust keywords. Fix type error message.
10933 (inferior_object_methods): Add thread_from_handle. Retain
10934 thread_from_thread_handle, but mark it as deprecated.
10936 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10938 * gdbthread.h (find_thread_by_handle): Revise declaration.
10939 * thread.c (find_thread_by_handle): Likewise. Adjust
10940 implementation too.
10941 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10942 support for buffer objects as handles.
10944 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10946 * python/py-infthread.c (thpy_thread_handle): New function.
10947 (thread_object_methods): Register thpy_thread_handle.
10949 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10951 * gdbthread.h (thread_to_thread_handle): Declare.
10952 * thread.c (gdbtypes.h): Include.
10953 (thread_to_thread_handle): New function.
10955 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10956 (target_thread_info_to_thread_handle): Declare.
10957 * target.c (target_thread_info_to_thread_handle): New function.
10958 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10959 * target-delegates.c: Regenerate.
10961 * linux-thread-db.c (class thread_db_target): Add method
10962 thread_info_to_thread_handle.
10963 (thread_db_target::thread_info_to_thread_handle): Define.
10964 * remote.c (class remote_target): Add new method
10965 thread_info_to_thread_handle.
10966 (remote_target::thread_info_to_thread_handle): Define.
10968 2019-04-08 Pedro Alves <palves@redhat.com>
10970 * common/common-exceptions.c (throw_exception): Don't create
10971 named object to throw; throw directly.
10972 (throw_it): Likewise. Don't initialize gdb_exception::message
10973 here, with new; pass FMT and AP to the ctor instead.
10974 * common/common-exceptions.h: Include <string>.
10975 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10976 const char *, va_list)): New ctor. Use std::make_shared.
10977 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10979 (gdb_exception_error::gdb_exception_error(enum errors, const char
10981 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10983 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10985 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10986 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10989 2019-04-08 Tom Tromey <tom@tromey.com>
10991 * valops.c (value_rtti_indirect_type): Replace throw_exception
10993 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10995 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10997 * target.c (target_translate_tls_address): Replace throw_exception
10999 * stack.c (frame_apply_command_count): Replace throw_exception
11001 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11003 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11005 * rs6000-tdep.c (rs6000_frame_cache)
11006 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11007 * remote.c: Replace throw_exception with throw.
11008 * record-full.c (record_full_message, record_full_wait_1)
11009 (record_full_restore): Replace throw_exception with throw.
11011 (get_thread_current_frame_id, record_btrace_start_replaying)
11012 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11013 (cmd_record_btrace_start): Replace throw_exception with throw.
11014 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11016 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11017 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11019 (find_linespec_symbols): Replace throw_exception with throw.
11020 * infrun.c (displaced_step_prepare, resume): Replace
11021 throw_exception with throw.
11022 * infcmd.c (post_create_inferior): Replace throw_exception with
11024 * inf-loop.c (inferior_event_handler): Replace throw_exception
11026 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11027 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11028 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11029 (get_prev_frame_always, get_frame_pc_if_available)
11030 (get_frame_address_in_block_if_available, get_frame_language):
11031 Replace throw_exception with throw.
11032 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11033 throw_exception with throw.
11034 * eval.c (fetch_subexp_value, evaluate_var_value)
11035 (evaluate_funcall, evaluate_subexp_standard): Replace
11036 throw_exception with throw.
11037 * dwarf2loc.c (call_site_find_chain)
11038 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11039 Replace throw_exception with throw.
11040 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11042 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11044 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11045 * completer.c (complete_line_internal): Replace throw_exception
11047 * compile/compile-object-run.c (compile_object_run): Replace
11048 throw_exception with throw.
11049 * cli/cli-script.c (process_next_line): Replace throw_exception
11051 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11052 (btrace_enable, btrace_maint_update_pt_packets): Replace
11053 throw_exception with throw.
11054 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11055 throw_exception with throw.
11056 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11057 throw_exception with throw.
11058 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11059 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11060 * aarch64-tdep.c (aarch64_make_prologue_cache)
11061 (aarch64_make_stub_cache): Replace throw_exception with throw.
11063 2019-04-08 Tom Tromey <tom@tromey.com>
11065 * common/common-exceptions.c (throw_exception): Rename from
11066 throw_exception_cxx. Remove old copy. Make argument const.
11067 (throw_it): Create and throw exception objects directly.
11068 * common/common-exceptions.h (throw_exception): Make argument
11070 (struct gdb_exception_error): Add constructor.
11071 (struct gdb_exception_quit): Add constructor.
11073 2019-04-08 Tom Tromey <tom@tromey.com>
11075 * common/common-exceptions.h (exception_rethrow): Don't declare.
11076 (TRY_SJLJ): Update comment.
11077 (TRY, CATCH, END_CATCH): Remove.
11078 * common/common-exceptions.c (exception_rethrow): Remove.
11080 2019-04-08 Tom Tromey <tom@tromey.com>
11082 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11084 (gdb_exception_error): Rename from
11085 gdb_exception_RETURN_MASK_ERROR.
11086 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11087 (gdb_quit_bad_alloc): Update.
11088 * aarch64-tdep.c: Update.
11089 * ada-lang.c: Update.
11090 * ada-typeprint.c: Update.
11091 * ada-valprint.c: Update.
11092 * amd64-tdep.c: Update.
11093 * arch-utils.c: Update.
11094 * break-catch-throw.c: Update.
11095 * breakpoint.c: Update.
11096 * btrace.c: Update.
11097 * c-varobj.c: Update.
11098 * cli/cli-cmds.c: Update.
11099 * cli/cli-interp.c: Update.
11100 * cli/cli-script.c: Update.
11101 * common/common-exceptions.c: Update.
11102 * common/new-op.c: Update.
11103 * common/selftest.c: Update.
11104 * compile/compile-c-symbols.c: Update.
11105 * compile/compile-cplus-symbols.c: Update.
11106 * compile/compile-object-load.c: Update.
11107 * compile/compile-object-run.c: Update.
11108 * completer.c: Update.
11109 * corelow.c: Update.
11110 * cp-abi.c: Update.
11111 * cp-support.c: Update.
11112 * cp-valprint.c: Update.
11113 * darwin-nat.c: Update.
11114 * disasm-selftests.c: Update.
11115 * dtrace-probe.c: Update.
11116 * dwarf-index-cache.c: Update.
11117 * dwarf-index-write.c: Update.
11118 * dwarf2-frame-tailcall.c: Update.
11119 * dwarf2-frame.c: Update.
11120 * dwarf2loc.c: Update.
11121 * dwarf2read.c: Update.
11123 * event-loop.c: Update.
11124 * event-top.c: Update.
11126 * f-valprint.c: Update.
11127 * fbsd-tdep.c: Update.
11128 * frame-unwind.c: Update.
11130 * gdbtypes.c: Update.
11131 * gnu-v3-abi.c: Update.
11132 * guile/guile-internal.h: Update.
11133 * guile/scm-block.c: Update.
11134 * guile/scm-breakpoint.c: Update.
11135 * guile/scm-cmd.c: Update.
11136 * guile/scm-disasm.c: Update.
11137 * guile/scm-frame.c: Update.
11138 * guile/scm-lazy-string.c: Update.
11139 * guile/scm-math.c: Update.
11140 * guile/scm-param.c: Update.
11141 * guile/scm-ports.c: Update.
11142 * guile/scm-pretty-print.c: Update.
11143 * guile/scm-symbol.c: Update.
11144 * guile/scm-symtab.c: Update.
11145 * guile/scm-type.c: Update.
11146 * guile/scm-value.c: Update.
11147 * i386-linux-tdep.c: Update.
11148 * i386-tdep.c: Update.
11149 * inf-loop.c: Update.
11150 * infcall.c: Update.
11151 * infcmd.c: Update.
11152 * infrun.c: Update.
11154 * language.c: Update.
11155 * linespec.c: Update.
11156 * linux-fork.c: Update.
11157 * linux-nat.c: Update.
11158 * linux-tdep.c: Update.
11159 * linux-thread-db.c: Update.
11161 * mi/mi-cmd-break.c: Update.
11162 * mi/mi-cmd-stack.c: Update.
11163 * mi/mi-interp.c: Update.
11164 * mi/mi-main.c: Update.
11165 * objc-lang.c: Update.
11166 * p-valprint.c: Update.
11168 * ppc-linux-tdep.c: Update.
11169 * printcmd.c: Update.
11170 * python/py-arch.c: Update.
11171 * python/py-breakpoint.c: Update.
11172 * python/py-cmd.c: Update.
11173 * python/py-finishbreakpoint.c: Update.
11174 * python/py-frame.c: Update.
11175 * python/py-framefilter.c: Update.
11176 * python/py-gdb-readline.c: Update.
11177 * python/py-inferior.c: Update.
11178 * python/py-infthread.c: Update.
11179 * python/py-lazy-string.c: Update.
11180 * python/py-linetable.c: Update.
11181 * python/py-objfile.c: Update.
11182 * python/py-param.c: Update.
11183 * python/py-prettyprint.c: Update.
11184 * python/py-progspace.c: Update.
11185 * python/py-record-btrace.c: Update.
11186 * python/py-record.c: Update.
11187 * python/py-symbol.c: Update.
11188 * python/py-type.c: Update.
11189 * python/py-unwind.c: Update.
11190 * python/py-utils.c: Update.
11191 * python/py-value.c: Update.
11192 * python/python.c: Update.
11193 * record-btrace.c: Update.
11194 * record-full.c: Update.
11195 * remote-fileio.c: Update.
11196 * remote.c: Update.
11197 * riscv-tdep.c: Update.
11198 * rs6000-aix-tdep.c: Update.
11199 * rs6000-tdep.c: Update.
11200 * rust-exp.y: Update.
11201 * rust-lang.c: Update.
11202 * s390-tdep.c: Update.
11203 * selftest-arch.c: Update.
11204 * solib-dsbt.c: Update.
11205 * solib-frv.c: Update.
11206 * solib-spu.c: Update.
11207 * solib-svr4.c: Update.
11209 * sparc64-linux-tdep.c: Update.
11211 * symfile-mem.c: Update.
11212 * symmisc.c: Update.
11213 * target.c: Update.
11214 * thread.c: Update.
11216 * tracefile-tfile.c: Update.
11217 * tui/tui.c: Update.
11218 * typeprint.c: Update.
11219 * unittests/cli-utils-selftests.c: Update.
11220 * unittests/parse-connection-spec-selftests.c: Update.
11221 * valops.c: Update.
11222 * valprint.c: Update.
11224 * varobj.c: Update.
11225 * windows-nat.c: Update.
11226 * x86-linux-nat.c: Update.
11227 * xml-support.c: Update.
11229 2019-04-08 Tom Tromey <tom@tromey.com>
11231 * xml-support.c: Use C++ exception handling.
11232 * x86-linux-nat.c: Use C++ exception handling.
11233 * windows-nat.c: Use C++ exception handling.
11234 * varobj.c: Use C++ exception handling.
11235 * value.c: Use C++ exception handling.
11236 * valprint.c: Use C++ exception handling.
11237 * valops.c: Use C++ exception handling.
11238 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11240 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11241 * typeprint.c: Use C++ exception handling.
11242 * tui/tui.c: Use C++ exception handling.
11243 * tracefile-tfile.c: Use C++ exception handling.
11244 * top.c: Use C++ exception handling.
11245 * thread.c: Use C++ exception handling.
11246 * target.c: Use C++ exception handling.
11247 * symmisc.c: Use C++ exception handling.
11248 * symfile-mem.c: Use C++ exception handling.
11249 * stack.c: Use C++ exception handling.
11250 * sparc64-linux-tdep.c: Use C++ exception handling.
11251 * solib.c: Use C++ exception handling.
11252 * solib-svr4.c: Use C++ exception handling.
11253 * solib-spu.c: Use C++ exception handling.
11254 * solib-frv.c: Use C++ exception handling.
11255 * solib-dsbt.c: Use C++ exception handling.
11256 * selftest-arch.c: Use C++ exception handling.
11257 * s390-tdep.c: Use C++ exception handling.
11258 * rust-lang.c: Use C++ exception handling.
11259 * rust-exp.y: Use C++ exception handling.
11260 * rs6000-tdep.c: Use C++ exception handling.
11261 * rs6000-aix-tdep.c: Use C++ exception handling.
11262 * riscv-tdep.c: Use C++ exception handling.
11263 * remote.c: Use C++ exception handling.
11264 * remote-fileio.c: Use C++ exception handling.
11265 * record-full.c: Use C++ exception handling.
11266 * record-btrace.c: Use C++ exception handling.
11267 * python/python.c: Use C++ exception handling.
11268 * python/py-value.c: Use C++ exception handling.
11269 * python/py-utils.c: Use C++ exception handling.
11270 * python/py-unwind.c: Use C++ exception handling.
11271 * python/py-type.c: Use C++ exception handling.
11272 * python/py-symbol.c: Use C++ exception handling.
11273 * python/py-record.c: Use C++ exception handling.
11274 * python/py-record-btrace.c: Use C++ exception handling.
11275 * python/py-progspace.c: Use C++ exception handling.
11276 * python/py-prettyprint.c: Use C++ exception handling.
11277 * python/py-param.c: Use C++ exception handling.
11278 * python/py-objfile.c: Use C++ exception handling.
11279 * python/py-linetable.c: Use C++ exception handling.
11280 * python/py-lazy-string.c: Use C++ exception handling.
11281 * python/py-infthread.c: Use C++ exception handling.
11282 * python/py-inferior.c: Use C++ exception handling.
11283 * python/py-gdb-readline.c: Use C++ exception handling.
11284 * python/py-framefilter.c: Use C++ exception handling.
11285 * python/py-frame.c: Use C++ exception handling.
11286 * python/py-finishbreakpoint.c: Use C++ exception handling.
11287 * python/py-cmd.c: Use C++ exception handling.
11288 * python/py-breakpoint.c: Use C++ exception handling.
11289 * python/py-arch.c: Use C++ exception handling.
11290 * printcmd.c: Use C++ exception handling.
11291 * ppc-linux-tdep.c: Use C++ exception handling.
11292 * parse.c: Use C++ exception handling.
11293 * p-valprint.c: Use C++ exception handling.
11294 * objc-lang.c: Use C++ exception handling.
11295 * mi/mi-main.c: Use C++ exception handling.
11296 * mi/mi-interp.c: Use C++ exception handling.
11297 * mi/mi-cmd-stack.c: Use C++ exception handling.
11298 * mi/mi-cmd-break.c: Use C++ exception handling.
11299 * main.c: Use C++ exception handling.
11300 * linux-thread-db.c: Use C++ exception handling.
11301 * linux-tdep.c: Use C++ exception handling.
11302 * linux-nat.c: Use C++ exception handling.
11303 * linux-fork.c: Use C++ exception handling.
11304 * linespec.c: Use C++ exception handling.
11305 * language.c: Use C++ exception handling.
11306 * jit.c: Use C++ exception handling.
11307 * infrun.c: Use C++ exception handling.
11308 * infcmd.c: Use C++ exception handling.
11309 * infcall.c: Use C++ exception handling.
11310 * inf-loop.c: Use C++ exception handling.
11311 * i386-tdep.c: Use C++ exception handling.
11312 * i386-linux-tdep.c: Use C++ exception handling.
11313 * guile/scm-value.c: Use C++ exception handling.
11314 * guile/scm-type.c: Use C++ exception handling.
11315 * guile/scm-symtab.c: Use C++ exception handling.
11316 * guile/scm-symbol.c: Use C++ exception handling.
11317 * guile/scm-pretty-print.c: Use C++ exception handling.
11318 * guile/scm-ports.c: Use C++ exception handling.
11319 * guile/scm-param.c: Use C++ exception handling.
11320 * guile/scm-math.c: Use C++ exception handling.
11321 * guile/scm-lazy-string.c: Use C++ exception handling.
11322 * guile/scm-frame.c: Use C++ exception handling.
11323 * guile/scm-disasm.c: Use C++ exception handling.
11324 * guile/scm-cmd.c: Use C++ exception handling.
11325 * guile/scm-breakpoint.c: Use C++ exception handling.
11326 * guile/scm-block.c: Use C++ exception handling.
11327 * guile/guile-internal.h: Use C++ exception handling.
11328 * gnu-v3-abi.c: Use C++ exception handling.
11329 * gdbtypes.c: Use C++ exception handling.
11330 * frame.c: Use C++ exception handling.
11331 * frame-unwind.c: Use C++ exception handling.
11332 * fbsd-tdep.c: Use C++ exception handling.
11333 * f-valprint.c: Use C++ exception handling.
11334 * exec.c: Use C++ exception handling.
11335 * event-top.c: Use C++ exception handling.
11336 * event-loop.c: Use C++ exception handling.
11337 * eval.c: Use C++ exception handling.
11338 * dwarf2read.c: Use C++ exception handling.
11339 * dwarf2loc.c: Use C++ exception handling.
11340 * dwarf2-frame.c: Use C++ exception handling.
11341 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11342 * dwarf-index-write.c: Use C++ exception handling.
11343 * dwarf-index-cache.c: Use C++ exception handling.
11344 * dtrace-probe.c: Use C++ exception handling.
11345 * disasm-selftests.c: Use C++ exception handling.
11346 * darwin-nat.c: Use C++ exception handling.
11347 * cp-valprint.c: Use C++ exception handling.
11348 * cp-support.c: Use C++ exception handling.
11349 * cp-abi.c: Use C++ exception handling.
11350 * corelow.c: Use C++ exception handling.
11351 * completer.c: Use C++ exception handling.
11352 * compile/compile-object-run.c: Use C++ exception handling.
11353 * compile/compile-object-load.c: Use C++ exception handling.
11354 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11355 * compile/compile-c-symbols.c: Use C++ exception handling.
11356 * common/selftest.c: Use C++ exception handling.
11357 * common/new-op.c: Use C++ exception handling.
11358 * cli/cli-script.c: Use C++ exception handling.
11359 * cli/cli-interp.c: Use C++ exception handling.
11360 * cli/cli-cmds.c: Use C++ exception handling.
11361 * c-varobj.c: Use C++ exception handling.
11362 * btrace.c: Use C++ exception handling.
11363 * breakpoint.c: Use C++ exception handling.
11364 * break-catch-throw.c: Use C++ exception handling.
11365 * arch-utils.c: Use C++ exception handling.
11366 * amd64-tdep.c: Use C++ exception handling.
11367 * ada-valprint.c: Use C++ exception handling.
11368 * ada-typeprint.c: Use C++ exception handling.
11369 * ada-lang.c: Use C++ exception handling.
11370 * aarch64-tdep.c: Use C++ exception handling.
11372 2019-04-08 Tom Tromey <tom@tromey.com>
11374 * xml-support.c (gdb_xml_parser::parse): Update.
11375 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11376 * value.c (show_convenience): Update.
11377 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11378 (test_parse_flags_qcs): Update.
11379 * thread.c (thr_try_catch_cmd): Update.
11380 * target.c (target_translate_tls_address): Update.
11381 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11382 (info_frame_command_core, frame_apply_command_count): Update.
11383 * rust-exp.y (rust_lex_exception_test): Update.
11384 * riscv-tdep.c (riscv_print_one_register_info): Update.
11385 * remote.c (remote_target::enable_btrace): Update.
11386 * record-btrace.c (record_btrace_enable_warn): Update.
11387 * python/py-utils.c (gdbpy_convert_exception): Update.
11388 * printcmd.c (do_one_display, print_variable_and_value): Update.
11389 * mi/mi-main.c (mi_print_exception): Update.
11390 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11391 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11392 * linux-nat.c (linux_nat_target::attach): Update.
11393 * linux-fork.c (class scoped_switch_fork_info): Update.
11394 * infrun.c (displaced_step_prepare): Update.
11395 * infcall.c (call_function_by_hand_dummy): Update.
11396 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11397 * gnu-v3-abi.c (print_one_vtable): Update.
11398 * frame.c (get_prev_frame_always): Update.
11399 * f-valprint.c (info_common_command_for_block): Update.
11400 * exec.c (try_open_exec_file): Update.
11401 * exceptions.c (print_exception, exception_print)
11402 (exception_fprintf, exception_print_same): Update.
11403 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11404 * dwarf-index-cache.c (index_cache::store)
11405 (index_cache::lookup_gdb_index): Update.
11406 * darwin-nat.c (maybe_cache_shell): Update.
11407 * cp-valprint.c (cp_print_value_fields): Update.
11408 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11409 (gcc_cplus_symbol_address): Update.
11410 * compile/compile-c-symbols.c (gcc_convert_symbol)
11411 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11412 * common/selftest.c: Update.
11413 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11415 (exception_try_scope_entry, exception_try_scope_exit): Don't
11417 (struct exception_try_scope): Remove.
11418 (TRY): Don't use exception_try_scope.
11419 (struct gdb_exception): Add constructor, operator=.
11420 <what>: New method.
11421 (struct gdb_exception_RETURN_MASK_ALL)
11422 (struct gdb_exception_RETURN_MASK_ERROR)
11423 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11424 (struct gdb_quit_bad_alloc): Update.
11425 * common/common-exceptions.c (exception_none): Change
11427 (struct catcher) <state, exception>: Initialize inline.
11428 <prev>: Remove member.
11429 (current_catcher): Remove.
11430 (catchers): New global.
11431 (exceptions_state_mc_init): Simplify.
11432 (catcher_pop): Remove.
11433 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11434 (try_scope_depth, exception_try_scope_entry)
11435 (exception_try_scope_exit): Remove.
11436 (throw_exception_sjlj): Update.
11437 (exception_messages, exception_messages_size): Remove.
11438 (throw_it): Simplify.
11439 (gdb_exception_sliced_copy): Remove.
11440 (throw_exception_cxx): Update.
11441 * cli/cli-script.c (script_from_file): Update.
11442 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11444 * ada-valprint.c (ada_val_print): Update.
11445 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11446 (create_excep_cond_exprs): Update.
11448 2019-04-08 Tom Tromey <tom@tromey.com>
11450 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11451 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11452 (TRY, CATCH, END_CATCH): Remove some definitions.
11453 * common/common-exceptions.c: Don't use GDB_XCPT.
11454 (catcher_list_size): Remove.
11455 (throw_exception, throw_it): Simplify.
11457 2019-04-05 Tom Tromey <tom@tromey.com>
11459 Revert the header-sorting patch.
11460 * ft32-tdep.c: Revert.
11461 * frv-tdep.c: Revert.
11462 * frv-linux-tdep.c: Revert.
11464 * frame-unwind.c: Revert.
11465 * frame-base.c: Revert.
11466 * fork-child.c: Revert.
11467 * findvar.c: Revert.
11468 * findcmd.c: Revert.
11469 * filesystem.c: Revert.
11470 * filename-seen-cache.h: Revert.
11471 * filename-seen-cache.c: Revert.
11472 * fbsd-tdep.c: Revert.
11473 * fbsd-nat.h: Revert.
11474 * fbsd-nat.c: Revert.
11475 * f-valprint.c: Revert.
11476 * f-typeprint.c: Revert.
11477 * f-lang.c: Revert.
11478 * extension.h: Revert.
11479 * extension.c: Revert.
11480 * extension-priv.h: Revert.
11481 * expprint.c: Revert.
11484 * exceptions.c: Revert.
11485 * event-top.c: Revert.
11486 * event-loop.c: Revert.
11488 * elfread.c: Revert.
11489 * dwarf2read.h: Revert.
11490 * dwarf2read.c: Revert.
11491 * dwarf2loc.c: Revert.
11492 * dwarf2expr.h: Revert.
11493 * dwarf2expr.c: Revert.
11494 * dwarf2-frame.c: Revert.
11495 * dwarf2-frame-tailcall.c: Revert.
11496 * dwarf-index-write.h: Revert.
11497 * dwarf-index-write.c: Revert.
11498 * dwarf-index-common.c: Revert.
11499 * dwarf-index-cache.h: Revert.
11500 * dwarf-index-cache.c: Revert.
11501 * dummy-frame.c: Revert.
11502 * dtrace-probe.c: Revert.
11503 * disasm.h: Revert.
11504 * disasm.c: Revert.
11505 * disasm-selftests.c: Revert.
11506 * dictionary.c: Revert.
11507 * dicos-tdep.c: Revert.
11508 * demangle.c: Revert.
11509 * dcache.h: Revert.
11510 * dcache.c: Revert.
11511 * darwin-nat.h: Revert.
11512 * darwin-nat.c: Revert.
11513 * darwin-nat-info.c: Revert.
11514 * d-valprint.c: Revert.
11515 * d-namespace.c: Revert.
11516 * d-lang.c: Revert.
11518 * csky-tdep.c: Revert.
11519 * csky-linux-tdep.c: Revert.
11520 * cris-tdep.c: Revert.
11521 * cris-linux-tdep.c: Revert.
11522 * cp-valprint.c: Revert.
11523 * cp-support.c: Revert.
11524 * cp-namespace.c: Revert.
11525 * cp-abi.c: Revert.
11526 * corelow.c: Revert.
11527 * corefile.c: Revert.
11528 * continuations.c: Revert.
11529 * completer.h: Revert.
11530 * completer.c: Revert.
11531 * complaints.c: Revert.
11532 * coffread.c: Revert.
11533 * coff-pe-read.c: Revert.
11534 * cli-out.h: Revert.
11535 * cli-out.c: Revert.
11536 * charset.c: Revert.
11537 * c-varobj.c: Revert.
11538 * c-valprint.c: Revert.
11539 * c-typeprint.c: Revert.
11540 * c-lang.c: Revert.
11541 * buildsym.c: Revert.
11542 * buildsym-legacy.c: Revert.
11543 * build-id.h: Revert.
11544 * build-id.c: Revert.
11545 * btrace.c: Revert.
11546 * bsd-uthread.c: Revert.
11547 * breakpoint.h: Revert.
11548 * breakpoint.c: Revert.
11549 * break-catch-throw.c: Revert.
11550 * break-catch-syscall.c: Revert.
11551 * break-catch-sig.c: Revert.
11552 * blockframe.c: Revert.
11554 * bfin-tdep.c: Revert.
11555 * bfin-linux-tdep.c: Revert.
11556 * bfd-target.c: Revert.
11557 * bcache.c: Revert.
11558 * ax-general.c: Revert.
11559 * ax-gdb.h: Revert.
11560 * ax-gdb.c: Revert.
11561 * avr-tdep.c: Revert.
11563 * auto-load.c: Revert.
11564 * arm-wince-tdep.c: Revert.
11565 * arm-tdep.c: Revert.
11566 * arm-symbian-tdep.c: Revert.
11567 * arm-pikeos-tdep.c: Revert.
11568 * arm-obsd-tdep.c: Revert.
11569 * arm-nbsd-tdep.c: Revert.
11570 * arm-nbsd-nat.c: Revert.
11571 * arm-linux-tdep.c: Revert.
11572 * arm-linux-nat.c: Revert.
11573 * arm-fbsd-tdep.c: Revert.
11574 * arm-fbsd-nat.c: Revert.
11575 * arm-bsd-tdep.c: Revert.
11576 * arch-utils.c: Revert.
11577 * arc-tdep.c: Revert.
11578 * arc-newlib-tdep.c: Revert.
11579 * annotate.h: Revert.
11580 * annotate.c: Revert.
11581 * amd64-windows-tdep.c: Revert.
11582 * amd64-windows-nat.c: Revert.
11583 * amd64-tdep.c: Revert.
11584 * amd64-sol2-tdep.c: Revert.
11585 * amd64-obsd-tdep.c: Revert.
11586 * amd64-obsd-nat.c: Revert.
11587 * amd64-nbsd-tdep.c: Revert.
11588 * amd64-nbsd-nat.c: Revert.
11589 * amd64-nat.c: Revert.
11590 * amd64-linux-tdep.c: Revert.
11591 * amd64-linux-nat.c: Revert.
11592 * amd64-fbsd-tdep.c: Revert.
11593 * amd64-fbsd-nat.c: Revert.
11594 * amd64-dicos-tdep.c: Revert.
11595 * amd64-darwin-tdep.c: Revert.
11596 * amd64-bsd-nat.c: Revert.
11597 * alpha-tdep.c: Revert.
11598 * alpha-obsd-tdep.c: Revert.
11599 * alpha-nbsd-tdep.c: Revert.
11600 * alpha-mdebug-tdep.c: Revert.
11601 * alpha-linux-tdep.c: Revert.
11602 * alpha-linux-nat.c: Revert.
11603 * alpha-bsd-tdep.c: Revert.
11604 * alpha-bsd-nat.c: Revert.
11605 * aix-thread.c: Revert.
11607 * addrmap.c: Revert.
11608 * ada-varobj.c: Revert.
11609 * ada-valprint.c: Revert.
11610 * ada-typeprint.c: Revert.
11611 * ada-tasks.c: Revert.
11612 * ada-lang.c: Revert.
11613 * aarch64-tdep.c: Revert.
11614 * aarch64-ravenscar-thread.c: Revert.
11615 * aarch64-newlib-tdep.c: Revert.
11616 * aarch64-linux-tdep.c: Revert.
11617 * aarch64-linux-nat.c: Revert.
11618 * aarch64-fbsd-tdep.c: Revert.
11619 * aarch64-fbsd-nat.c: Revert.
11620 * aarch32-linux-nat.c: Revert.
11622 2019-04-05 Tom Tromey <tom@tromey.com>
11624 * ft32-tdep.c: Sort headers.
11625 * frv-tdep.c: Sort headers.
11626 * frv-linux-tdep.c: Sort headers.
11627 * frame.c: Sort headers.
11628 * frame-unwind.c: Sort headers.
11629 * frame-base.c: Sort headers.
11630 * fork-child.c: Sort headers.
11631 * findvar.c: Sort headers.
11632 * findcmd.c: Sort headers.
11633 * filesystem.c: Sort headers.
11634 * filename-seen-cache.h: Sort headers.
11635 * filename-seen-cache.c: Sort headers.
11636 * fbsd-tdep.c: Sort headers.
11637 * fbsd-nat.h: Sort headers.
11638 * fbsd-nat.c: Sort headers.
11639 * f-valprint.c: Sort headers.
11640 * f-typeprint.c: Sort headers.
11641 * f-lang.c: Sort headers.
11642 * extension.h: Sort headers.
11643 * extension.c: Sort headers.
11644 * extension-priv.h: Sort headers.
11645 * expprint.c: Sort headers.
11646 * exec.h: Sort headers.
11647 * exec.c: Sort headers.
11648 * exceptions.c: Sort headers.
11649 * event-top.c: Sort headers.
11650 * event-loop.c: Sort headers.
11651 * eval.c: Sort headers.
11652 * elfread.c: Sort headers.
11653 * dwarf2read.h: Sort headers.
11654 * dwarf2read.c: Sort headers.
11655 * dwarf2loc.c: Sort headers.
11656 * dwarf2expr.h: Sort headers.
11657 * dwarf2expr.c: Sort headers.
11658 * dwarf2-frame.c: Sort headers.
11659 * dwarf2-frame-tailcall.c: Sort headers.
11660 * dwarf-index-write.h: Sort headers.
11661 * dwarf-index-write.c: Sort headers.
11662 * dwarf-index-common.c: Sort headers.
11663 * dwarf-index-cache.h: Sort headers.
11664 * dwarf-index-cache.c: Sort headers.
11665 * dummy-frame.c: Sort headers.
11666 * dtrace-probe.c: Sort headers.
11667 * disasm.h: Sort headers.
11668 * disasm.c: Sort headers.
11669 * disasm-selftests.c: Sort headers.
11670 * dictionary.c: Sort headers.
11671 * dicos-tdep.c: Sort headers.
11672 * demangle.c: Sort headers.
11673 * dcache.h: Sort headers.
11674 * dcache.c: Sort headers.
11675 * darwin-nat.h: Sort headers.
11676 * darwin-nat.c: Sort headers.
11677 * darwin-nat-info.c: Sort headers.
11678 * d-valprint.c: Sort headers.
11679 * d-namespace.c: Sort headers.
11680 * d-lang.c: Sort headers.
11681 * ctf.c: Sort headers.
11682 * csky-tdep.c: Sort headers.
11683 * csky-linux-tdep.c: Sort headers.
11684 * cris-tdep.c: Sort headers.
11685 * cris-linux-tdep.c: Sort headers.
11686 * cp-valprint.c: Sort headers.
11687 * cp-support.c: Sort headers.
11688 * cp-namespace.c: Sort headers.
11689 * cp-abi.c: Sort headers.
11690 * corelow.c: Sort headers.
11691 * corefile.c: Sort headers.
11692 * continuations.c: Sort headers.
11693 * completer.h: Sort headers.
11694 * completer.c: Sort headers.
11695 * complaints.c: Sort headers.
11696 * coffread.c: Sort headers.
11697 * coff-pe-read.c: Sort headers.
11698 * cli-out.h: Sort headers.
11699 * cli-out.c: Sort headers.
11700 * charset.c: Sort headers.
11701 * c-varobj.c: Sort headers.
11702 * c-valprint.c: Sort headers.
11703 * c-typeprint.c: Sort headers.
11704 * c-lang.c: Sort headers.
11705 * buildsym.c: Sort headers.
11706 * buildsym-legacy.c: Sort headers.
11707 * build-id.h: Sort headers.
11708 * build-id.c: Sort headers.
11709 * btrace.c: Sort headers.
11710 * bsd-uthread.c: Sort headers.
11711 * breakpoint.h: Sort headers.
11712 * breakpoint.c: Sort headers.
11713 * break-catch-throw.c: Sort headers.
11714 * break-catch-syscall.c: Sort headers.
11715 * break-catch-sig.c: Sort headers.
11716 * blockframe.c: Sort headers.
11717 * block.c: Sort headers.
11718 * bfin-tdep.c: Sort headers.
11719 * bfin-linux-tdep.c: Sort headers.
11720 * bfd-target.c: Sort headers.
11721 * bcache.c: Sort headers.
11722 * ax-general.c: Sort headers.
11723 * ax-gdb.h: Sort headers.
11724 * ax-gdb.c: Sort headers.
11725 * avr-tdep.c: Sort headers.
11726 * auxv.c: Sort headers.
11727 * auto-load.c: Sort headers.
11728 * arm-wince-tdep.c: Sort headers.
11729 * arm-tdep.c: Sort headers.
11730 * arm-symbian-tdep.c: Sort headers.
11731 * arm-pikeos-tdep.c: Sort headers.
11732 * arm-obsd-tdep.c: Sort headers.
11733 * arm-nbsd-tdep.c: Sort headers.
11734 * arm-nbsd-nat.c: Sort headers.
11735 * arm-linux-tdep.c: Sort headers.
11736 * arm-linux-nat.c: Sort headers.
11737 * arm-fbsd-tdep.c: Sort headers.
11738 * arm-fbsd-nat.c: Sort headers.
11739 * arm-bsd-tdep.c: Sort headers.
11740 * arch-utils.c: Sort headers.
11741 * arc-tdep.c: Sort headers.
11742 * arc-newlib-tdep.c: Sort headers.
11743 * annotate.h: Sort headers.
11744 * annotate.c: Sort headers.
11745 * amd64-windows-tdep.c: Sort headers.
11746 * amd64-windows-nat.c: Sort headers.
11747 * amd64-tdep.c: Sort headers.
11748 * amd64-sol2-tdep.c: Sort headers.
11749 * amd64-obsd-tdep.c: Sort headers.
11750 * amd64-obsd-nat.c: Sort headers.
11751 * amd64-nbsd-tdep.c: Sort headers.
11752 * amd64-nbsd-nat.c: Sort headers.
11753 * amd64-nat.c: Sort headers.
11754 * amd64-linux-tdep.c: Sort headers.
11755 * amd64-linux-nat.c: Sort headers.
11756 * amd64-fbsd-tdep.c: Sort headers.
11757 * amd64-fbsd-nat.c: Sort headers.
11758 * amd64-dicos-tdep.c: Sort headers.
11759 * amd64-darwin-tdep.c: Sort headers.
11760 * amd64-bsd-nat.c: Sort headers.
11761 * alpha-tdep.c: Sort headers.
11762 * alpha-obsd-tdep.c: Sort headers.
11763 * alpha-nbsd-tdep.c: Sort headers.
11764 * alpha-mdebug-tdep.c: Sort headers.
11765 * alpha-linux-tdep.c: Sort headers.
11766 * alpha-linux-nat.c: Sort headers.
11767 * alpha-bsd-tdep.c: Sort headers.
11768 * alpha-bsd-nat.c: Sort headers.
11769 * aix-thread.c: Sort headers.
11770 * agent.c: Sort headers.
11771 * addrmap.c: Sort headers.
11772 * ada-varobj.c: Sort headers.
11773 * ada-valprint.c: Sort headers.
11774 * ada-typeprint.c: Sort headers.
11775 * ada-tasks.c: Sort headers.
11776 * ada-lang.c: Sort headers.
11777 * aarch64-tdep.c: Sort headers.
11778 * aarch64-ravenscar-thread.c: Sort headers.
11779 * aarch64-newlib-tdep.c: Sort headers.
11780 * aarch64-linux-tdep.c: Sort headers.
11781 * aarch64-linux-nat.c: Sort headers.
11782 * aarch64-fbsd-tdep.c: Sort headers.
11783 * aarch64-fbsd-nat.c: Sort headers.
11784 * aarch32-linux-nat.c: Sort headers.
11786 2019-04-04 Tom Tromey <tom@tromey.com>
11788 * varobj.c (varobj_create): Update.
11789 * rust-exp.y (struct rust_parser) <update_innermost_block,
11790 lookup_symbol>: New methods.
11791 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11793 (rust_parser::rust_lookup_type)
11794 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11795 * printcmd.c (display_command, do_one_display): Update.
11796 * parser-defs.h (struct parser_state) <parser_state>: Add
11797 "tracker" parameter.
11798 (block_tracker): New member.
11799 (class innermost_block_tracker) <innermost_block_tracker>: Add
11801 <reset>: Remove method.
11802 (innermost_block): Don't declare.
11803 (null_post_parser): Update.
11804 * parse.c (innermost_block): Remove global.
11805 (write_dollar_variable): Update.
11806 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11807 Remove "tracker_types" parameter.
11808 (parse_expression): Add "tracker" parameter.
11809 (parse_expression_for_completion): Update.
11810 (null_post_parser): Add "tracker" parameter.
11811 * p-exp.y: Update rules.
11812 * m2-exp.y: Update rules.
11813 * language.h (struct language_defn) <la_post_parser>: Add
11814 "tracker" parameter.
11815 * go-exp.y: Update rules.
11816 * f-exp.y: Update rules.
11817 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11819 * d-exp.y: Update rules.
11820 * c-exp.y: Update rules.
11821 * breakpoint.c (set_breakpoint_condition): Create an
11822 innermost_block_tracker.
11823 (watch_command_1): Likewise.
11824 * ada-lang.c (resolve): Add "tracker" parameter.
11825 (resolve_subexp): Likewise.
11826 * ada-exp.y (write_var_from_sym): Update.
11828 2019-04-04 Tom Tromey <tom@tromey.com>
11830 * type-stack.h: New file.
11831 * type-stack.c: New file.
11832 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11834 (insert_into_type_stack, insert_type, push_type, push_type_int)
11835 (insert_type_address_space, pop_type, pop_type_int)
11836 (pop_typelist, pop_type_stack, append_type_stack)
11837 (push_type_stack, get_type_stack, push_typelist)
11838 (follow_type_instance_flags, follow_types): Don't declare.
11839 * parse.c (type_stack): Remove global.
11840 (parse_exp_in_context): Update.
11841 (insert_into_type_stack, insert_type, push_type, push_type_int)
11842 (insert_type_address_space, pop_type, pop_type_int)
11843 (pop_typelist, pop_type_stack, append_type_stack)
11844 (push_type_stack, get_type_stack, push_typelist)
11845 (follow_type_instance_flags, follow_types): Remove (moved to
11847 * f-exp.y (type_stack): New global.
11849 (push_kind_type, f_parse): Update.
11850 * d-exp.y (type_stack): New global.
11853 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11855 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11856 (HFILES_NO_SRCDIR): Add type-stack.h.
11858 2019-04-04 Tom Tromey <tom@tromey.com>
11860 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11861 (rust_parser::convert_ast_to_expression, rust_parse)
11862 (rust_lex_test_completion, rust_lex_tests): Update.
11863 * parser-defs.h (struct expr_completion_state): New.
11864 (struct parser_state) <parser_state>: Add completion parameter.
11865 <mark_struct_expression, mark_completion_tag>: New methods.
11866 <parse_completion, m_completion_state>: New members.
11867 (prefixify_expression, null_post_parser): Update.
11868 (mark_struct_expression, mark_completion_tag): Don't declare.
11869 * parse.c (parse_completion, expout_last_struct)
11870 (expout_tag_completion_type, expout_completion_name): Remove
11872 (parser_state::mark_struct_expression)
11873 (parser_state::mark_completion_tag): Now methods.
11874 (prefixify_expression): Add last_struct parameter.
11875 (prefixify_subexp): Likewise.
11876 (parse_exp_1): Update.
11877 (parse_exp_in_context): Add cstate parameter. Update.
11878 (parse_expression_for_completion): Create an
11879 expr_completion_state.
11880 (null_post_parser): Add "completion" parameter.
11881 * p-exp.y: Update rules.
11883 * language.h (struct language_defn) <la_post_parser>: Add
11884 "completing" parameter.
11885 * go-exp.y: Update rules.
11886 (lex_one_token): Update.
11887 * expression.h (parse_completion): Don't declare.
11888 * d-exp.y: Update rules.
11889 (lex_one_token): Update rules.
11890 * c-exp.y: Update rules.
11891 (lex_one_token): Update.
11892 * ada-lang.c (resolve): Add "parse_completion" parameter.
11893 (resolve_subexp): Likewise.
11894 (ada_resolve_function): Likewise.
11896 2019-04-04 Tom Tromey <tom@tromey.com>
11898 * parser-defs.h (struct parser_state) <start_arglist,
11899 end_arglist>: New methods.
11900 <arglist_len, m_funcall_chain>: New members.
11901 (arglist_len, start_arglist, end_arglist): Don't declare.
11902 * parse.c (arglist_len, funcall_chain): Remove global.
11903 (start_arglist, end_arglist): Remove functions.
11904 (parse_exp_in_context): Update.
11905 * p-exp.y: Update rules.
11906 * m2-exp.y: Update rules.
11907 * go-exp.y: Update rules.
11908 * f-exp.y: Update rules.
11909 * d-exp.y: Update rules.
11910 * c-exp.y: Update rules.
11912 2019-04-04 Tom Tromey <tom@tromey.com>
11914 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11915 lex_operator, push_back>: New methods.
11917 (rust_parser::lex_hex, lex_escape): Rename and update.
11918 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11919 (rust_parser::lex_operator): Rename and update.
11920 (rust_parser::lex_number, rustyylex, rustyyerror)
11921 (rust_lex_test_init, rust_lex_test_sequence)
11922 (rust_lex_test_push_back, rust_lex_tests): Update.
11923 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11925 <lexptr, prev_lexptr>: New members.
11926 (lexptr, prev_lexptr): Don't declare.
11927 * parse.c (lexptr, prev_lexptr): Remove globals.
11928 (parse_exp_in_context): Update.
11929 * p-exp.y (yylex, yyerror): Update.
11930 * m2-exp.y (parse_number, yylex, yyerror): Update.
11931 * go-exp.y (lex_one_token, yyerror): Update.
11932 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11933 * d-exp.y (lex_one_token, yyerror): Update.
11934 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11935 (lex_one_token, yyerror): Update.
11936 * ada-lex.l (YY_INPUT): Update.
11937 (rewind_to_char): Update.
11938 * ada-exp.y (yyerror): Update.
11940 2019-04-04 Tom Tromey <tom@tromey.com>
11942 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11943 * parser-defs.h (struct parser_state) <parser_state>: Add new
11945 <comma_terminates>: New member.
11946 (comma_terminates): Don't declare global.
11947 * parse.c (comma_terminates): Remove global.
11948 (parse_exp_in_context): Update.
11949 * p-exp.y (yylex): Update.
11950 * m2-exp.y (yylex): Update.
11951 * go-exp.y (lex_one_token): Update.
11952 * f-exp.y (yylex): Update.
11953 * d-exp.y (lex_one_token): Update.
11954 * c-exp.y (lex_one_token): Update.
11955 * ada-lex.l: Update.
11957 2019-04-04 Tom Tromey <tom@tromey.com>
11959 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11960 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11961 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11962 * parser-defs.h (paren_depth): Don't declare.
11963 * parse.c (paren_depth): Remove global.
11964 (parse_exp_in_context): Update.
11965 * p-exp.y (paren_depth): New global.
11966 (pascal_parse): Initialize it.
11967 * m2-exp.y (paren_depth): New global.
11968 (m2_parse): Initialize it.
11969 * go-exp.y (paren_depth): New global.
11970 (go_parse): Initialize it.
11971 * f-exp.y (paren_depth): New global.
11972 (f_parse): Initialize it.
11973 * d-exp.y (paren_depth): New global.
11974 (d_parse): Initialize it.
11975 * c-exp.y (paren_depth): New global.
11976 (c_parse): Initialize it.
11977 * ada-lex.l (paren_depth): New global.
11978 (lexer_init): Initialize it.
11980 2019-04-04 Tom Tromey <tom@tromey.com>
11982 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11983 (rust_parser::convert_ast_to_type)
11984 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11985 * parser-defs.h (struct parser_state) <parser_state>: Add
11986 parameters. Initialize new members.
11987 <expression_context_block, expression_context_pc>: New members.
11988 * parse.c (expression_context_block, expression_context_pc):
11990 (parse_exp_in_context): Update.
11991 * p-exp.y: Update all rules.
11993 * m2-exp.y: Update all rules.
11995 * go-exp.y (yylex): Update.
11996 * f-exp.y (yylex): Update.
11997 * d-exp.y: Update all rules.
11999 * c-exp.y: Update all rules.
12000 (lex_one_token, classify_name, yylex, c_parse): Update.
12001 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12003 2019-04-04 Tom Tromey <tom@tromey.com>
12005 * gdbarch.h, gdbarch.c: Rebuild.
12006 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12008 (struct stap_parse_info): Replace "parser_state" with
12010 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12011 (parser_state): New class.
12012 * parse.c (expr_builder): Rename.
12013 (expr_builder::release): Rename.
12014 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12015 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12016 (write_exp_elt_longcst, write_exp_elt_floatcst)
12017 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12018 (write_exp_string_vector, write_exp_bitstring)
12019 (write_exp_msymbol, mark_struct_expression)
12020 (write_dollar_variable)
12021 (insert_type_address_space, increase_expout_size): Replace
12022 "parser_state" with "expr_builder".
12023 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12024 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12025 "parser_state" with "expr_builder".
12027 2019-04-04 Tom Tromey <tom@tromey.com>
12029 * rust-exp.y: Replace "parse_language" with method call.
12031 (yylex): Replace "parse_language" with method call.
12033 (yylex): Replace "parse_language" with method call.
12034 * go-exp.y (classify_name): Replace "parse_language" with method
12036 * f-exp.y (yylex): Replace "parse_language" with method call.
12037 * d-exp.y (lex_one_token): Replace "parse_language" with method
12040 (lex_one_token, classify_name, yylex): Replace "parse_language"
12042 * ada-exp.y (find_primitive_type, type_char)
12043 (type_system_address): Replace "parse_language" with method call.
12045 2019-04-04 Tom Tromey <tom@tromey.com>
12047 * rust-exp.y: Replace "parse_gdbarch" with method call.
12048 * parse.c (write_dollar_variable, insert_type_address_space):
12049 Replace "parse_gdbarch" with method call.
12050 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12052 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12054 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12055 "parse_gdbarch" with method call.
12056 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12058 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12059 "parse_gdbarch" with method call.
12060 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12061 "parse_gdbarch" with method call.
12062 * c-exp.y (parse_type, parse_number, classify_name): Replace
12063 "parse_gdbarch" with method call.
12064 * ada-lex.l: Replace "parse_gdbarch" with method call.
12065 * ada-exp.y (parse_type, find_primitive_type, type_char)
12066 (type_system_address): Replace "parse_gdbarch" with method call.
12068 2019-04-04 Tom Tromey <tom@tromey.com>
12070 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12071 * stap-probe.c (stap_parse_argument): Update.
12072 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12073 initial_size parameter.
12074 * rust-exp.y (rust_lex_tests): Update.
12075 * parse.c (parser_state): Update.
12076 (parse_exp_in_context): Update.
12077 * parser-defs.h (struct parser_state) <parser_state>: Remove
12078 "initial_size" parameter.
12080 2019-04-04 Tom Tromey <tom@tromey.com>
12082 * parser-defs.h (increase_expout_size): Don't declare.
12083 * parse.c (increase_expout_size): Now static.
12085 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12087 * gnu-nat.c (gnu_nat_target::wait): Fix
12088 target_waitstatus_to_string call.
12090 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12092 * eval.c (evaluate_subexp_standard): Handle internal functions
12093 during Fortran function call handling.
12095 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12097 * NEWS: Mention new internal functions.
12098 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12099 (read_base_type): Use dwarf2_init_complex_target_type.
12100 * value.c (creal_internal_fn): New function.
12101 (cimag_internal_fn): New function.
12102 (_initialize_values): Register new internal functions.
12104 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12106 * infrun.c (stop_all_threads): If debug_infrun, always
12107 trace the wait status after wait_one, using
12108 target_waitstatus_to_string and target_pid_to_str.
12109 (handle_inferior_event): Replace various trace of
12110 wait status kind by a single trace.
12111 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12112 wait status kind image by target_waitstatus_to_string.
12113 * target/waitstatus.c (target_waitstatus_to_string): Fix
12116 2019-04-01 Tom Tromey <tromey@adacore.com>
12119 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12121 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12122 Pedro Alves <palves@redhat.com>
12124 * top.c (quit_force): Call 'finalize_values'.
12125 * value.c (finalize_values): New function.
12126 * value.h (finalize_values): Declare.
12128 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12130 * NEWS: Announce $_gdb_major and $_gdb_minor.
12132 * top.c (init_gdb_version_vars): New function.
12133 (gdb_init): Call init_gdb_version_vars.
12135 2019-03-29 Tom Tromey <tromey@adacore.com>
12137 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12138 help text. Remove dead code.
12140 2019-03-29 Keith Seitz <keiths@redhat.com>
12142 From Siddhesh Poyarekar:
12143 * f-lang.h (f77_get_upperbound): Return LONGEST.
12144 (f77_get_lowerbound): Likewise.
12145 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12146 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12148 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12149 plongest to format print it.
12150 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12151 (f77_get_upperbound): Likewise.
12152 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12153 LOWER_BOUND to LONGEST.
12154 (f77_create_arrayprint_offset_tbl): Likewise.
12156 2019-03-29 Keith Seitz <keiths@redhat.com>
12158 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12159 %s/pulongest for TYPE_LENGTH instead of %d in format
12161 * ada-typerint.c (ada_print_type): Likewise.
12162 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12163 * compile/compile-c-support.c (generate_register_struct): Likewise.
12164 * gdbtypes.c (recursive_dump_type): Likewise.
12165 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12166 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12167 instead of %d in format strings.
12168 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12169 to std::min to ULONGEST.
12170 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12171 instead of %d in format strings.
12172 * tracepoint.c (info_scope_command): Likewise.
12173 * typeprint.c (print_offset_data::update)
12174 (print_offset_data::finish): Likewise.
12175 * xtensa-tdep.c (xtensa_store_return_value)
12176 (xtensa_push_dummy_call): Likewise.
12178 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12180 * windows-nat.c (display_selector): Fixed format specifications
12183 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12185 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12187 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12189 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12190 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12191 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12192 (nios2_linux_init_abi): Install it.
12194 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12196 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12198 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12200 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12202 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12203 Tom Tromey <tromey@adacore.com>
12205 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12207 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12209 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12210 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12211 method to compute the bounds of range types. Also print "[evaluated]"
12212 if the bounds' values come from a dynamic evaluation.
12214 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12216 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12217 whitespace when pretty printing is on.
12219 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12221 * ppc-linux-nat.c: Add include.
12223 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12225 * NEWS: Mention AArch64 Pointer Authentication.
12227 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12229 * arm-linux-nat.c: Add include.
12231 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12233 * source-cache.c (source_cache::get_source_lines): Re-read
12234 fullname after calling open_source_file.
12236 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12238 * NEWS: Mention TLS support for FreeBSD.
12240 2019-03-25 Tom Tromey <tromey@adacore.com>
12242 * minsyms.c (BUNCH_SIZE): Update comment.
12243 (~minimal_symbol_reader): Remove old comment.
12244 (compact_minimal_symbols): Update comment.
12245 (minimal_symbol_reader::install): Remove old comment. Update
12248 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12250 * s390-linux-nat.c: Add include.
12252 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12254 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12255 Call linux_get_hwcap.
12256 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12258 (aarch64_linux_get_hwcap): Remove function.
12259 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12261 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12263 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12264 * linux-tdep.c (linux_get_hwcap): Add function.
12265 (linux_get_hwcap2): Likewise.
12266 * linux-tdep.h (linux_get_hwcap): Add declaration.
12267 (linux_get_hwcap2): Likewise.
12268 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12269 (ppc_linux_get_hwcap2): Likewise.
12270 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12272 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12273 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12274 (ppc_linux_nat_target::read_description): Likewise.
12275 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12276 * s390-linux-nat.c: Likewise.
12277 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12279 2019-03-24 Tom Tromey <tom@tromey.com>
12281 * ada-lang.c (standard_lookup): Simplify initialization.
12282 (ada_lookup_symbol_nonlocal): Simplify return.
12283 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12284 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12285 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12286 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12288 * solib.c (solib_global_lookup): Simplify.
12289 * symtab.c (null_block_symbol): Remove.
12290 (symbol_cache_lookup): Simplify returns.
12291 (lookup_language_this): Simplify returns.
12292 (lookup_symbol_aux): Simplify return.
12293 (lookup_local_symbol): Simplify returns.
12294 (lookup_global_symbol_from_objfile): Simplify return.
12295 (lookup_symbol_in_objfile_symtabs)
12296 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12297 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12298 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12299 * cp-namespace.c (cp_lookup_bare_symbol)
12300 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12301 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12302 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12303 (cp_lookup_symbol_via_imports): Simplify initialization.
12304 (find_symbol_in_baseclass): Likewise.
12305 * symtab.h (null_block_symbol): Remove.
12306 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12307 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12308 (d_lookup_symbol_module): Likewise.
12309 (find_symbol_in_baseclass): Simplify initialization.
12311 2019-03-24 Tom Tromey <tom@tromey.com>
12313 * expression.h: Don't include symtab.h.
12314 (struct block): Forward declare.
12316 2019-03-24 Tom Tromey <tom@tromey.com>
12318 * c-exp.y (typebase): Remove casts.
12319 * gdbtypes.c (lookup_unsigned_typename, )
12320 (lookup_signed_typename): Remove cast.
12321 * eval.c (parse_to_comma_and_eval): Remove cast.
12322 * parse.c (write_dollar_variable): Remove cast.
12323 * block.h (struct block) <superblock>: Now const.
12324 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12325 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12326 (map_block): Make "block" const.
12327 * symfile.h (struct quick_symbol_functions)
12328 <map_matching_symbols>: Constify block argument to "callback".
12329 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12331 (find_pc_sect_compunit_symtab): Make "b" const.
12332 (find_symbol_at_address): Likewise.
12333 (search_symbols): Likewise.
12334 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12335 (dw2_debug_names_lookup_symbol): Likewise.
12336 (dw2_map_matching_symbols): Update.
12337 * p-valprint.c (pascal_val_print): Remove "block".
12338 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12339 (aux_add_nonlocal_symbols): Make "block" const.
12340 (resolve_subexp): Remove cast.
12341 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12343 (iterate_over_file_blocks): Likewise.
12344 * f-exp.y (%union) <bval>: Remove.
12345 * coffread.c (patch_opaque_types): Make "b" const.
12346 * spu-tdep.c (spu_catch_start): Make "block" const.
12347 * c-valprint.c (print_unpacked_pointer): Remove "block".
12348 * symmisc.c (dump_symtab_1): Make "b" const.
12349 (block_depth): Make "block" const.
12350 * d-exp.y (%union) <bval>: Remove.
12351 * cp-support.h (cp_lookup_rtti_type): Update.
12352 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12353 * psymtab.c (psym_lookup_symbol): Make "block" const.
12354 (maintenance_check_psymtabs): Make "b" const.
12355 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12356 (enumerate_locals, enumerate_args): Update.
12357 * python/py-symtab.c (stpy_global_block): Make "block" const.
12358 (stpy_static_block): Likewise.
12359 * inline-frame.c (block_starting_point_at): Make "new_block"
12361 * block.c (find_block_in_blockvector): Make return type const.
12362 (blockvector_for_pc_sect): Make "b" const.
12363 (find_block_in_blockvector): Make "b" const.
12365 2019-03-23 Tom Tromey <tom@tromey.com>
12367 * varobj.c (varobj_create): Update.
12368 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12369 * printcmd.c (display_command, do_one_display): Don't reset
12371 * parser-defs.h (enum innermost_block_tracker_type): Move to
12373 (innermost_block): Update comment.
12374 * parse.c (parse_exp_1): Add tracker_types parameter.
12375 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12376 tracker_types parameter. Reset innermost_block.
12377 (parse_exp_in_context): Remove.
12378 (parse_expression_for_completion): Update.
12379 * objfiles.c (~objfile): Don't reset expression_context_block or
12381 * expression.h (enum innermost_block_tracker_type): Move from
12383 (parse_exp_1): Add tracker_types parameter.
12384 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12385 reset innermost_block.
12387 2019-03-23 Tom Tromey <tom@tromey.com>
12389 * objfiles.h: Include bcache.h.
12391 2019-03-23 Tom Tromey <tom@tromey.com>
12393 * linespec.c (get_current_search_block): Use
12394 scoped_restore_current_language.
12395 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12397 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12398 Jiong Wang <jiong.wang@arm.com>
12400 * aarch64-linux-tdep.c
12401 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12403 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12405 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12406 Jiong Wang <jiong.wang@arm.com>
12408 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12410 (aarch64_analyze_prologue_test): Add PACIASP test.
12411 (aarch64_prologue_prev_register): Unmask PC value.
12413 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12414 Jiong Wang <jiong.wang@arm.com>
12416 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12417 (aarch64_dwarf2_prev_register): Unmask PC value.
12418 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12419 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12420 DW_CFA_AARCH64_negate_ra_state.
12421 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12423 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12424 Jiong Wang <jiong.wang@arm.com>
12426 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12428 (aarch64_pseudo_register_name): Likewise.
12429 (aarch64_pseudo_register_type): Likewise.
12430 (aarch64_pseudo_register_reggroup_p): Likewise.
12431 (aarch64_gdbarch_init): Add pauth registers.
12432 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12433 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12434 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12435 (struct gdbarch_tdep): Add regnum for ra_state.
12437 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12438 Jiong Wang <jiong.wang@arm.com>
12440 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12442 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12443 Jiong Wang <jiong.wang@arm.com>
12445 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12447 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12448 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12449 (aarch64_gdbarch_init): Add puth registers.
12450 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12451 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12452 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12454 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12455 Jiong Wang <jiong.wang@arm.com>
12457 * aarch64-linux-nat.c
12458 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12459 * aarch64-linux-tdep.c
12460 (aarch64_linux_core_read_description): Likewise.
12461 (aarch64_linux_get_hwcap): New function.
12462 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12463 (aarch64_linux_get_hwcap): New declaration.
12465 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12466 Jiong Wang <jiong.wang@arm.com>
12468 * aarch64-linux-nat.c
12469 (aarch64_linux_nat_target::read_description): Add pauth param.
12470 * aarch64-linux-tdep.c
12471 (aarch64_linux_core_read_description): Likewise.
12472 * aarch64-tdep.c (struct target_desc): Add in pauth.
12473 (aarch64_read_description): Add pauth param.
12474 (aarch64_gdbarch_init): Likewise.
12475 * aarch64-tdep.h (aarch64_read_description): Likewise.
12476 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12477 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12478 * features/Makefile: Add new files.
12479 * features/aarch64-pauth.c: New file.
12480 * features/aarch64-pauth.xml: New file.
12482 2019-03-20 Tom Tromey <tromey@adacore.com>
12484 * infrun.c (handle_inferior_event): Rename from
12485 handle_inferior_event_1. Create a scoped_value_mark.
12486 (handle_inferior_event): Remove.
12488 2019-03-19 Tom Tromey <tromey@adacore.com>
12490 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12491 * infrun.h (print_stop_event): Add "displays" parameter.
12492 * infrun.c (print_stop_event): Add "displays" parameter.
12494 2019-03-19 Pedro Alves <palves@redhat.com>
12496 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12497 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12498 to -1. Fix TABs vs spaces.
12499 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12500 * tui/tui-out.h (tui_ui_out) Add intro comments.
12501 <m_line, m_start_of_line>: In-class initialize, and add describing
12504 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12506 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12508 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12510 2019-03-18 Pedro Alves <palves@redhat.com>
12511 Eli Zaretskii <eliz@gnu.org>
12513 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12514 m_line and m_start_of_line.
12516 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12518 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12519 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12520 it returns a newline. This fixes a regression in TU mode, whereby
12521 the next line is output on the same screen line as the user input.
12523 2019-03-18 Tom Tromey <tromey@adacore.com>
12525 * minsyms.c (minimal_symbol_reader::install): Remove call to
12528 2019-03-18 Pedro Alves <palves@redhat.com>
12530 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12532 (apply_style): New, factored out from ...
12533 (apply_ansi_escape): ... this. Handle reverse video mode.
12534 (tui_set_reverse_mode): New function.
12535 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12536 * tui/tui-winsource.c (tui_show_source_line): Use
12537 tui_set_reverse_mode instead of setting A_STANDOUT.
12538 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12539 New setter methods.
12541 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12543 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12546 2019-03-18 Tom Tromey <tromey@adacore.com>
12548 * ada-lang.c (empty_array): Add "high" parameter.
12549 (ada_evaluate_subexp): Update.
12551 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12553 * unittests/string_view-selftests.c: Define
12554 _initialize_string_view_selftests unconditionally.
12556 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12559 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12561 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12564 * windows-nat.c (display_selector): Fix format specifiers.
12566 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12568 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12569 tui_refill_source_window instead of tui_refresh_win, to update the
12570 current execution line. This fixes redisplay of the current line
12571 when stepping through the code with "next" or "step".
12573 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12575 * source-cache.c (source_cache::get_source_lines): Call
12576 find_source_lines to initialize s->nlines. This fixes vertical
12577 scrolling of TUI source window when the DOWN arrow is pressed.
12579 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12581 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12582 linux-thread-db.c (_initialize_thread_db): Likewise.
12584 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12586 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12587 wclrtoeol in tui_show_source_line". This reverts changes made in
12588 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12590 2019-03-15 Tom Tromey <tom@tromey.com>
12592 * symtab.h (struct minimal_symbol): Derive from
12593 general_symbol_info.
12594 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12595 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12596 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12597 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12598 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12599 (MSYMBOL_SEARCH_NAME): Update.
12600 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12601 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12602 * minsyms.c (minimal_symbol_reader::record_full): Update.
12604 2019-03-15 Tom Tromey <tom@tromey.com>
12606 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12608 2019-03-15 Tom Tromey <tom@tromey.com>
12610 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12611 unique_xmalloc_ptr.
12612 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12614 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12615 (build_minimal_symbol_hash_tables)
12616 (minimal_symbol_reader::install): Update.
12618 2019-03-15 Tom Tromey <tom@tromey.com>
12620 * symtab.c (create_demangled_names_hash): Update.
12621 (symbol_set_names): Update.
12622 * objfiles.h (struct objfile_per_bfd_storage)
12623 <demangled_names_hash>: Now an htab_up.
12624 * objfiles.c (objfile_per_bfd_storage): Simplify.
12626 2019-03-15 Tom Tromey <tom@tromey.com>
12628 * objfiles.h (struct objfile_per_bfd_storage): Declare
12630 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12632 (get_objfile_bfd_data): Use new. Don't initialize
12634 (free_objfile_per_bfd_storage): Remove.
12635 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12637 2019-03-15 Tom Tromey <tom@tromey.com>
12639 * symfile.c (reread_symbols): Update.
12640 * objfiles.c (objfile::objfile): Update.
12641 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12642 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12644 (minimal_symbol_reader::install): Update.
12645 (terminate_minimal_symbol_table): Remove.
12646 * jit.c (jit_object_close_impl): Update.
12648 2019-03-15 Tom Tromey <tom@tromey.com>
12650 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12653 2019-03-15 Tom Tromey <tom@tromey.com>
12655 * objfiles.h (struct objfile_per_bfd_storage)
12656 <demangled_hash_languages>: Now a bitset.
12657 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12658 (lookup_minimal_symbol): Update.
12660 2019-03-15 Tom Tromey <tom@tromey.com>
12662 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12663 Don't return the symbol.
12664 * coffread.c (record_minimal_symbol): Use record_full.
12666 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12668 The MS-Windows port of ncurses fails to switch to a color pair if
12669 one or both of the colors are the implicit default colors. This
12670 change records the default colors when TUI is initialized, and
12671 then specifies them explicitly when a color pair uses the default
12672 colors. This allows color styling in TUI mode on MS-Windows.
12674 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12676 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12677 colors in ncurses_norm_attr.
12678 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12679 "none", replace it with the default color recorded in
12682 2019-03-14 Tom Tromey <tromey@adacore.com>
12684 * source-cache.h (class source_cache) <get_source_lines>: Return
12686 * source-cache.c (source_cache::extract_lines): Handle case where
12687 first_pos==npos. Return std::string.
12688 (source_cache::get_source_lines): Update.
12690 2019-03-14 Tom Tromey <tromey@adacore.com>
12692 * NEWS: Add item for "style sources" commands.
12693 * source-cache.c (source_cache::get_source_lines): Check
12695 * cli/cli-style.c (source_styling): New global.
12696 (_initialize_cli_style): Add "style sources" commands.
12697 (show_style_sources): New function.
12698 * cli/cli-style.h (source_styling): Declare.
12700 2019-03-14 Pedro Alves <palves@redhat.com>
12701 Tom Tromey <tromey@adacore.com>
12703 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12704 * tui/tui-winsource.c (tui_refill_source_window): New function,
12706 (tui_horizontal_source_scroll): ... here. Move some logic.
12707 * cli/cli-style.c (set_style_enabled): Notify new observable.
12708 * tui/tui-hooks.c (tui_redisplay_source): New function.
12709 (tui_attach_detach_observers): Attach or detach
12710 tui_redisplay_source.
12711 * observable.h (source_styling_changed): New observable.
12712 * observable.c: Define source_styling_changed observable.
12714 2019-03-13 Tom Tromey <tromey@adacore.com>
12716 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12717 (i386_gnu_nat_target::store_registers): Update.
12718 * target-debug.h (target_debug_print_std_string): New macro.
12719 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12720 * windows-tdep.c (display_one_tib): Update.
12721 * tui/tui-stack.c (tui_make_status_line): Update.
12722 * top.c (print_inferior_quit_action): Update.
12723 * thread.c (thr_try_catch_cmd): Update.
12724 (add_thread_with_info): Update.
12725 (thread_target_id_str): Update.
12726 (thr_try_catch_cmd): Update.
12727 (thread_command): Update.
12728 (thread_find_command): Update.
12729 * record-btrace.c (record_btrace_target::info_record)
12730 (record_btrace_resume_thread, record_btrace_target::resume)
12731 (record_btrace_cancel_resume, record_btrace_step_thread)
12732 (record_btrace_target::wait, record_btrace_target::wait)
12733 (record_btrace_target::wait, record_btrace_target::stop): Update.
12734 * progspace.c (print_program_space): Update.
12735 * process-stratum-target.c
12736 (process_stratum_target::thread_address_space): Update.
12737 * linux-fork.c (linux_fork_mourn_inferior)
12738 (detach_checkpoint_command, info_checkpoints_command)
12739 (linux_fork_context): Update.
12740 (linux_fork_detach): Update.
12741 (class scoped_switch_fork_info): Update.
12742 (delete_checkpoint_command): Update.
12743 * infrun.c (follow_fork_inferior): Update.
12744 (follow_fork_inferior): Update.
12745 (proceed_after_vfork_done): Update.
12746 (handle_vfork_child_exec_or_exit): Update.
12747 (follow_exec): Update.
12748 (displaced_step_prepare_throw): Update.
12749 (displaced_step_restore): Update.
12750 (start_step_over): Update.
12751 (resume_1): Update.
12752 (clear_proceed_status_thread): Update.
12754 (print_target_wait_results): Update.
12755 (do_target_wait): Update.
12756 (context_switch): Update.
12757 (stop_all_threads): Update.
12758 (restart_threads): Update.
12759 (finish_step_over): Update.
12760 (handle_signal_stop): Update.
12761 (switch_back_to_stepped_thread): Update.
12762 (keep_going_pass_signal): Update.
12763 (print_exited_reason): Update.
12764 (normal_stop): Update.
12765 * inferior.c (inferior_pid_to_str): Change return type.
12766 (print_selected_inferior): Update.
12767 (add_inferior): Update.
12768 (detach_inferior): Update.
12769 * dummy-frame.c (fprint_dummy_frames): Update.
12770 * dcache.c (dcache_info_1): Update.
12771 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12772 (btrace_fetch, btrace_clear): Update.
12773 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12774 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12776 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12777 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12778 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12779 * gdbarch.c, gdbarch.h: Rebuild.
12780 * gdbarch.sh (core_pid_to_str): Change return type.
12781 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12783 (windows_nat_target::pid_to_str): Change return type.
12784 (windows_delete_thread): Update.
12785 (windows_nat_target::attach): Update.
12786 (windows_nat_target::files_info): Update.
12787 * target-delegates.c: Rebuild.
12788 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12790 (sol_thread_target::pid_to_str): Change return type.
12791 * remote.c (class remote_target) <pid_to_str>: Change return
12793 (remote_target::pid_to_str): Change return type.
12794 (extended_remote_target::attach, remote_target::remote_stop_ns)
12795 (remote_target::remote_notif_remove_queued_reply)
12796 (remote_target::push_stop_reply, remote_target::disable_btrace):
12798 (extended_remote_target::attach): Update.
12799 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12801 (gdbsim_target::pid_to_str): Change return type.
12802 * ravenscar-thread.c (struct ravenscar_thread_target)
12803 <pid_to_str>: Change return type.
12804 (ravenscar_thread_target::pid_to_str): Change return type.
12805 * procfs.c (class procfs_target) <pid_to_str>: Change return
12807 (procfs_target::pid_to_str): Change return type.
12808 (procfs_target::attach): Update.
12809 (procfs_target::detach): Update.
12810 (procfs_target::fetch_registers): Update.
12811 (procfs_target::store_registers): Update.
12812 (procfs_target::wait): Update.
12813 (procfs_target::files_info): Update.
12814 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12815 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12817 (nto_procfs_target::pid_to_str): Change return type.
12818 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12819 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12821 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12822 (exit_lwp): Update.
12823 (attach_proc_task_lwp_callback, get_detach_signal)
12824 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12825 (linux_nat_target::resume, wait_lwp, stop_callback)
12826 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12827 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12828 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12829 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12830 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12832 (inf_ptrace_target::attach): Update.
12833 (inf_ptrace_target::files_info): Update.
12834 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12836 (go32_nat_target::pid_to_str): Change return type.
12837 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12838 (gnu_nat_target::wait): Update.
12839 (gnu_nat_target::wait): Update.
12840 (gnu_nat_target::resume): Update.
12841 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12842 (fbsd_nat_target::wait): Update.
12843 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12845 (darwin_nat_target::attach): Update.
12846 * corelow.c (class core_target) <pid_to_str>: Change return type.
12847 (core_target::pid_to_str): Change return type.
12848 * target.c (normal_pid_to_str): Change return type.
12849 (default_pid_to_str): Likewise.
12850 (target_pid_to_str): Change return type.
12851 (target_translate_tls_address): Update.
12852 (target_announce_detach): Update.
12853 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12855 (bsd_uthread_target::pid_to_str): Change return type.
12856 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12858 (bsd_kvm_target::pid_to_str): Change return type.
12859 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12861 (aix_thread_target::pid_to_str): Change return type.
12862 * target.h (struct target_ops) <pid_to_str>: Change return type.
12863 (target_pid_to_str, normal_pid_to_str): Likewise.
12864 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12866 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12868 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12870 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12872 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12874 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12877 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12879 * NEWS: Mention that the new default MI version is 3. Mention
12880 changes to the output of commands and events that deal with
12881 multi-location breakpoints.
12882 * breakpoint.c: Include "mi/mi-out.h".
12883 (print_one_breakpoint): Change output syntax if using MI version
12885 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12887 (mi_multi_location_breakpoint_output_fixed): New.
12888 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12889 (mi_cmd_fix_multi_location_breakpoint_output): New.
12890 (mi_multi_location_breakpoint_output_fixed): New.
12891 * mi/mi-cmds.c (mi_cmds): Register command
12892 -fix-multi-location-breakpoint-output.
12893 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12896 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12898 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12899 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12900 instantiate mi_ui_out based on interpreter name.
12901 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12902 * mi/mi-main.c (mi_load_progress): Likewise.
12904 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12906 * NEWS: Combine separate "New targets" sections for 8.3.
12908 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12910 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12911 (ppcfbsd_init_abi): Install gdbarch
12912 "fetch_tls_load_module_address" and "get_thread_local_address"
12915 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12917 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12918 (riscv_fbsd_init_abi): Install gdbarch
12919 "fetch_tls_load_module_address" and "get_thread_local_address"
12922 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12924 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12925 (i386fbsd_init_abi): Install gdbarch
12926 "fetch_tls_load_module_address" and "get_thread_local_address"
12929 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12931 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12932 (amd64fbsd_init_abi): Install gdbarch
12933 "fetch_tls_load_module_address" and "get_thread_local_address"
12936 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12938 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12939 (struct fbsd_pspace_data): New type.
12940 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12941 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12942 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12943 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12944 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12946 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12948 * gdbtypes.c (lookup_struct_elt): New function.
12949 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12950 * gdbtypes.h (struct struct_elt): New type.
12951 (lookup_struct_elt): New prototype.
12953 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12955 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12956 remove disabled code block.
12958 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12960 * gdbarch.sh (get_thread_local_address): New method.
12961 * gdbarch.h, gdbarch.c: Regenerate.
12962 * target.c (target_translate_tls_address): Use
12963 gdbarch_get_thread_local_address if present instead of
12964 target::get_thread_local_address.
12966 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12968 * target.h (target::get_thread_local_address): Update comment.
12970 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12972 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12973 objfile->separate_debug_objfile_backlink if not NULL.
12975 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12977 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12978 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12979 (amd64bsd_store_inferior_registers): Likewise.
12980 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12981 Enable segment base registers.
12982 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12983 PT_GETFSBASE and PT_GETGSBASE.
12984 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12986 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12987 segment base registers.
12988 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12990 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12992 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12993 Update calls to i386_target_description to add 'segments'
12995 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12996 add segment base registers.
12997 * arch/i386.c (i386_create_target_description): Add 'segments'
12998 parameter to enable segment base registers.
12999 * arch/i386.h (i386_create_target_description): Likewise.
13000 * features/i386/32bit-segments.xml: New file.
13001 * features/i386/32bit-segments.c: Generate.
13002 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13003 call to i386_target_description to add 'segments' parameter.
13004 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13005 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13006 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13007 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13008 if feature is present.
13009 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13010 Add 'segments' parameter to call to i386_target_description.
13011 (i386_target_description): Add 'segments' parameter to enable
13012 segment base registers.
13013 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13014 to call to i386_target_description.
13015 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13016 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13017 Define I386_NUM_REGS.
13018 (i386_target_description): Add 'segments' parameter to enable
13019 segment base registers.
13021 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13024 * source-cache.c: #undef open and close, to avoid unresolved
13025 externals during linking.
13027 2019-03-12 Tom Tromey <tromey@adacore.com>
13029 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13030 const. Add initializers.
13031 (_initialize_remote): Don't initialize ptid globals.
13033 2019-03-12 Pedro Alves <palves@redhat.com>
13035 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13037 2019-03-12 Pedro Alves <palves@redhat.com>
13039 * cp-name-parser.y (main): Remove unused 'len' variable.
13041 2019-03-12 Tom Tromey <tromey@adacore.com>
13043 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13044 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13046 2019-03-12 Tom Tromey <tromey@adacore.com>
13048 * linux-nat.c (iterate_over_lwps): Update.
13049 (stop_callback): Remove parameter.
13050 (stop_wait_callback, detach_callback, resume_set_callback)
13051 (select_singlestep_lwp_callback, set_ignore_sigint)
13052 (status_callback, resumed_callback, resume_clear_callback)
13053 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13055 (linux_nat_target::detach, linux_nat_target::resume)
13056 (linux_stop_and_wait_all_lwps, select_event_lwp)
13057 (linux_nat_filter_event, linux_nat_wait_1)
13058 (linux_nat_target::kill, linux_nat_target::stop)
13059 (linux_nat_target::stop): Update.
13060 (linux_nat_resume_callback): Change type.
13061 (resume_stopped_resumed_lwps, count_events_callback)
13062 (select_event_lwp_callback): Likewise.
13063 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13064 * arm-linux-nat.c (struct update_registers_data): Remove.
13065 (update_registers_callback): Change type.
13066 (arm_linux_insert_hw_breakpoint1): Update.
13067 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13069 (x86_linux_dr_set_addr): Update.
13070 (x86_linux_dr_set_control): Update.
13071 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13072 (iterate_over_lwps): Use gdb::function_view.
13073 * nat/aarch64-linux-hw-point.c (struct
13074 aarch64_dr_update_callback_param): Remove.
13075 (debug_reg_change_callback): Change type.
13076 (aarch64_notify_debug_reg_change): Update.
13077 * s390-linux-nat.c (s390_refresh_per_info): Update.
13079 2019-03-11 Tom Tromey <tromey@adacore.com>
13081 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13082 redundant assignment to "this_cu".
13084 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13086 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13088 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13090 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13092 (rank_one_type): ... this.
13094 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13096 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13098 (rank_one_type): ... this.
13100 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13102 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13104 (rank_one_type): ... this.
13106 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13108 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13110 (rank_one_type): ... this.
13112 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13114 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13116 (rank_one_type): ... this.
13118 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13120 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13122 (rank_one_type): ... this.
13124 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13126 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13128 (rank_one_type): ... this.
13130 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13132 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13134 (rank_one_type): ... this.
13136 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13138 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13140 (rank_one_type): ... this.
13142 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13144 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13146 (rank_one_type): ... this.
13148 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13150 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13152 (rank_one_type): ... this.
13154 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13156 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13158 (rank_one_type): ... this.
13160 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13162 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13163 inferior-events' shows the example events.
13165 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13167 Support styling on native MS-Windows console
13170 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13171 on MS-Windows if $TERM is not defined.
13173 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13175 * posix-hdep.c (gdb_console_fputs):
13176 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13178 * ui-file.h (gdb_console_fputs): Add prototype.
13180 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13181 back to fputs only if the former returns zero.
13183 2019-03-07 Tom Tromey <tom@tromey.com>
13185 * symmisc.c (print_symbol_bcache_statistics): Update.
13186 (print_objfile_statistics): Update.
13187 * symfile.c (allocate_symtab): Update.
13188 * stabsread.c: Don't include bcache.h.
13189 * psymtab.h (struct psymbol_bcache): Don't declare.
13190 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13191 (psymbol_bcache_init, psymbol_bcache_free)
13192 (psymbol_bcache_get_bcache): Don't declare.
13193 * psymtab.c (struct psymbol_bcache): Remove.
13194 (psymtab_storage::psymtab_storage): Update.
13195 (psymtab_storage::~psymtab_storage): Update.
13196 (psymbol_bcache_init, psymbol_bcache_free)
13197 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13198 (add_psymbol_to_bcache): Update.
13199 (allocate_psymtab): Update.
13200 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13201 macro_cache>: No longer pointers.
13202 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13203 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13204 * macrotab.c (macro_bcache): Update.
13205 * macroexp.c: Don't include bcache.h.
13206 * gdbtypes.c (check_types_worklist): Update.
13207 (types_deeply_equal): Remove TRY/CATCH. Update.
13208 * elfread.c (elf_symtab_read): Update.
13209 * dwarf2read.c: Don't include bcache.h.
13210 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13211 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13212 (print_bcache_statistics, bcache_memory_used): Don't declare.
13213 (struct bcache): Move from bcache.c. Add constructor, destructor,
13214 methods. Rename all data members.
13215 * bcache.c (struct bcache): Move to bcache.h.
13216 (bcache::expand_hash_table): Rename from expand_hash_table.
13218 (bcache::insert): Rename from bcache_full.
13219 (bcache::compare): Rename from bcache_compare.
13220 (bcache_xmalloc): Remove.
13221 (bcache::~bcache): Rename from bcache_xfree.
13222 (bcache::print_statistics): Rename from print_bcache_statistics.
13223 (bcache::memory_used): Rename from bcache_memory_used.
13225 2019-03-07 Pedro Alves <palves@redhat.com>
13227 * infrun.c (normal_stop): Also check for
13228 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13230 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13232 * f-lang.c (value_from_host_double): Moved to...
13233 * value.c (value_from_host_double): ...here.
13234 * value.h (value_from_host_double): Declare.
13235 * guile/scm-math.c (vlscm_convert_typed_number): Use
13236 value_from_host_double.
13237 (vlscm_convert_number): Likewise.
13238 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13239 * python/py-value.c (convert_value_from_python): Likewise.
13241 2019-03-06 Tom Tromey <tom@tromey.com>
13243 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13245 2019-03-06 Tom Tromey <tom@tromey.com>
13247 * utils.h (free_current_contents): Don't declare.
13248 * utils.c (free_current_contents): Remove.
13250 2019-03-06 Tom Tromey <tom@tromey.com>
13252 * top.c (quit_force): Update.
13253 * main.c (captured_command_loop): Update.
13254 * common/new-op.c (operator new): Update.
13255 * common/common-exceptions.c (struct catcher)
13256 <save_cleanup_chain>: Remove member.
13257 (exceptions_state_mc_init): Update.
13258 (exception_try_scope_entry): Return nullptr.
13259 (exception_try_scope_exit, exception_rethrow)
13260 (throw_exception_sjlj, throw_exception_cxx): Update.
13261 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13262 (all_cleanups, do_cleanups, discard_cleanups)
13263 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13264 (restore_cleanups, restore_final_cleanups): Don't declare.
13265 (do_final_cleanups): Remove parameter.
13266 * common/cleanups.c (cleanup_chain, make_cleanup)
13267 (make_cleanup_dtor, all_cleanups, do_cleanups)
13268 (discard_my_cleanups, discard_cleanups)
13269 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13270 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13271 (null_cleanup): Remove.
13272 (do_final_cleanups): Remove parameter.
13274 2019-03-06 Tom Tromey <tom@tromey.com>
13276 * remote.c (remote_target::remote_parse_stop_reply): Use
13277 unique_xmalloc_ptr.
13279 2019-03-06 Tom Tromey <tom@tromey.com>
13281 * stabsread.c (struct stabs_field_info): Rename from field_info.
13282 <list, fnlist>: Add initializers.
13283 <obstack>: New member.
13284 (read_member_functions, read_struct_fields, read_baseclasses):
13285 Allocate on obstack. Don't use cleanups.
13286 (read_one_struct_field, read_member_functions, read_struct_fields)
13287 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13288 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13289 (read_struct_type): Update.
13291 2019-03-06 Tom Tromey <tom@tromey.com>
13293 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13294 * common/filestuff.h (make_cleanup_close): Don't declare.
13295 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13298 2019-03-06 Tom Tromey <tom@tromey.com>
13300 * solib-aix.c: Use make_scope_exit.
13302 2019-03-06 Tom Tromey <tom@tromey.com>
13304 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13305 Use make_scope_exit.
13307 2019-03-06 Tom Tromey <tom@tromey.com>
13309 * solib-svr4.c (disable_probes_interface): Remove parameter.
13310 (svr4_handle_solib_event): Use make_scope_exit.
13312 2019-03-06 Tom Tromey <tom@tromey.com>
13314 * remote.c (struct stop_reply_deleter): Remove.
13315 (stop_reply_up): Update.
13316 (struct stop_reply): Derive from notif_event. Don't typedef.
13317 <regcache>: Now a std::vector.
13318 (stop_reply_xfree): Remove.
13319 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13320 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13321 (remote_target::discard_pending_stop_replies): Use delete.
13322 (remote_target::remote_parse_stop_reply): Update.
13323 (remote_target::process_stop_reply): Update.
13324 * remote-notif.h (struct notif_event): Add virtual destructor.
13325 Remove "dtr" member.
13326 (struct notif_client) <alloc_event>: Return a unique_ptr.
13327 (notif_event_xfree): Don't declare.
13328 (notif_event_up): New typedef.
13329 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13330 (notif_event_xfree, do_notif_event_xfree): Remove.
13331 (remote_notif_state_xfree): Update.
13333 2019-03-06 Tom Tromey <tom@tromey.com>
13335 * infrun.c (displaced_step_clear_cleanup): Now a
13336 forward_scope_exit type.
13337 (displaced_step_prepare_throw): Update.
13338 (displaced_step_fixup): Update.
13340 2019-03-06 Tom Tromey <tom@tromey.com>
13342 * inferior.h (class inferior): Update comment.
13343 * gdbthread.h (class thread_info): Update comment.
13345 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13346 Tom Tromey <tom@tromey.com>
13348 * stabsread.h (struct stab_section_list): Remove.
13349 (coffstab_build_psymtabs): Update.
13350 * dbxread.c (symbuf_sections): Now a std::vector.
13351 (sect_idx): New global.
13352 (fill_symbuf): Update.
13353 (coffstab_build_psymtabs): Change type of stabsects parameter.
13355 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13357 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13358 (coff_locate_sections): Update.
13359 (coff_symfile_read): Remove cleanups. Update.
13360 (init_stringtab): Add storage parameter.
13361 (free_stringtab, free_stringtab_cleanup): Remove.
13362 (init_lineno): Add storage parameter.
13363 (free_linetab, free_linetab_cleanup): Remove.
13365 2019-03-06 Pedro Alves <palves@redhat.com>
13367 * linux-fork.c (fork_info::clobber_regs): Delete.
13368 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13369 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13371 (scoped_switch_fork_info::scoped_switch_fork_info)
13372 (checkpoint_command, linux_fork_context): Adjust
13373 fork_save_infrun_state calls.
13375 2019-03-06 Pedro Alves <palves@redhat.com>
13377 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13378 (inf_has_multiple_threads): Return 'bool' and rewrite using
13379 inferior_info::threads().
13381 2019-03-06 Pedro Alves <palves@redhat.com>
13383 * linux-fork.c: Include <list>.
13384 (fork_list): Now a std::list instance.
13385 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13386 (forks_exist_p, find_last_fork): Adjust.
13387 (new_fork): Delete.
13389 (add_fork): Adjust.
13390 (free_fork): Delete, folded into fork_info::~fork_info().
13391 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13393 (init_fork_list): Delete.
13394 (linux_fork_killall, linux_fork_mourn_inferior)
13395 (linux_fork_detach, info_checkpoints_command): Adjust.
13396 (_initialize_linux_fork): No longer call init_fork_list.
13398 2019-03-06 Pedro Alves <palves@redhat.com>
13400 * linux-fork.c (new_fork): New, split out of ...
13401 (add_fork): ... this. Return void. Move "first fork" special
13402 case from here, to ...
13403 (checkpoint_command): ... here.
13404 * linux-linux.h (add_fork): Return void.
13406 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13408 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13410 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13411 Chris January <chris.january@arm.com>
13412 David Lecomber <david.lecomber@arm.com>
13414 * f-exp.y: New token, UNOP_INTRINSIC.
13415 (exp): New pattern using UNOP_INTRINSIC token.
13416 (f77_keywords): Add 'abs' keyword.
13417 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13418 (value_from_host_double): New function.
13419 (evaluate_subexp_f): Support UNOP_ABS.
13421 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13423 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13426 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13428 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13429 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13430 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13432 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13434 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13436 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13437 Chris January <chris.january@arm.com>
13439 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13440 * f-exp.y: Define 'KIND' token.
13441 (exp): New pattern for KIND expressions.
13442 (ptype): Handle types with a kind extension.
13443 (direct_abs_decl): Extend to spot kind extensions.
13444 (f77_keywords): Add 'kind' to the list.
13445 (push_kind_type): New function.
13446 (convert_to_kind_type): New function.
13447 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13448 * parse.c (operator_length_standard): Likewise.
13449 * parser-defs.h (enum type_pieces): Add tp_kind.
13450 * std-operator.def: Add UNOP_KIND.
13452 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13454 * f-exp.y (f_parse): Set yydebug.
13456 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13458 * f-lang.c (evaluate_subexp_f): New function.
13459 (exp_descriptor_f): New global.
13460 (f_language_defn): Use exp_descriptor_f instead of
13461 exp_descriptor_standard.
13463 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13465 * f-exp.y (struct token): Add comments.
13466 (dot_ops): Remove uppercase versions and the end marker.
13467 (f77_keywords): Likewise.
13468 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13469 entries in the dot_ops array are case insensitive, and use
13470 strncasecmp to compare strings. Also some whitespace cleanup in
13471 this area. Similar for the f77_keywords array, except entries in
13472 this list might be case sensitive.
13474 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13476 * f-exp.y (struct f77_boolean_val): Add comments.
13477 (boolean_values): Remove uppercase versions, and end marker.
13478 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13479 and use strncasecmp to achieve case insensitivity. Additionally,
13480 perform whitespace cleanup around this code.
13482 2019-03-06 Tom Tromey <tromey@adacore.com>
13484 * remote-sim.c (gdbsim_target_open): Use result of
13487 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13488 Dirk Schubert <dirk.schubert@arm.com>
13489 Chris January <chris.january@arm.com>
13491 * eval.c (evaluate_subexp_standard): Call Fortran argument
13493 * f-lang.c (struct value): A value which can be passed into a
13494 Fortran function call.
13495 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13497 (struct type): Value ready for a Fortran function call.
13498 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13500 * f-lang.h (fortran_argument_convert): Declaration.
13501 (fortran_preserve_arg_pointer): Declaration.
13502 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13504 2019-03-05 Tom Tromey <tromey@adacore.com>
13506 * python/py-prettyprint.c (print_string_repr): Remove #if.
13507 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13509 2019-03-05 Tom Tromey <tromey@adacore.com>
13511 * target.c (the_dummy_target): Move later. Change type to
13513 (initialize_targets): Don't initialize the_dummy_target.
13515 2019-03-05 Tom Tromey <tromey@adacore.com>
13517 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13518 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13520 2019-03-05 Tom Tromey <tromey@adacore.com>
13522 * windows-nat.c (windows_nat_target::attach)
13523 (windows_nat_target::detach): Don't call gdb_flush.
13524 * valprint.c (generic_val_print, val_print, val_print_string):
13525 Don't call gdb_flush.
13526 * utils.c (defaulted_query): Don't call gdb_flush.
13527 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13528 * target.c (target_announce_detach): Don't call gdb_flush.
13529 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13530 * remote.c (extended_remote_target::attach): Don't call
13532 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13533 * printcmd.c (do_examine): Don't call gdb_flush.
13534 (info_display_command): Don't call gdb_flush.
13535 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13536 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13537 * memattr.c (info_mem_command): Don't call gdb_flush.
13538 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13539 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13540 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13541 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13542 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13543 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13544 (gnu_nat_target::detach): Don't call gdb_flush.
13545 * f-valprint.c (f_val_print): Don't call gdb_flush.
13546 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13547 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13548 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13550 * c-valprint.c (c_val_print): Don't call gdb_flush.
13551 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13553 2019-03-05 Tom Tromey <tromey@adacore.com>
13555 * varobj.c (update_dynamic_varobj_children): Update.
13556 (install_default_visualizer): Use reset, not release.
13557 * value.c (set_internalvar): Update.
13558 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13559 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13560 ATTRIBUTE_UNUSED_RESULT.
13562 2019-03-05 Tom Tromey <tromey@adacore.com>
13564 * remote.c (class scoped_remote_fd) <release>: Add
13565 ATTRIBUTE_UNUSED_RESULT.
13567 2019-03-05 Tom Tromey <tromey@adacore.com>
13569 * macroexp.c (struct macro_buffer) <release>: Add
13570 ATTRIBUTE_UNUSED_RESULT.
13572 2019-03-05 Tom Tromey <tromey@adacore.com>
13574 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13575 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13576 ATTRIBUTE_UNUSED_RESULT.
13578 2019-03-05 Tom Tromey <tromey@adacore.com>
13580 * common/scoped_fd.h (class scoped_fd) <release>: Add
13581 ATTRIBUTE_UNUSED_RESULT.
13583 2019-03-05 Tom Tromey <tromey@adacore.com>
13585 * parser-defs.h (struct parser_state) <release>: Add
13586 ATTRIBUTE_UNUSED_RESULT.
13588 2019-03-05 Tom Tromey <tromey@adacore.com>
13590 * utils.h (class gdb_argv) <release>: Add
13591 ATTRIBUTE_UNUSED_RESULT.
13592 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13594 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13596 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13597 for-loop range, to avoid compiler warnings.
13599 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13600 avoid compiler warnings about unused variables.
13602 * NEWS: Mention end of support for native debugging on MS-Windows
13606 * common/netstuff.c:
13607 * gdbserver/gdbreplay.c
13608 * gdbserver/remote-utils.c:
13610 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13611 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13612 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13613 'getaddrinfo' and 'freeaddrinfo' were not available before
13614 Windows XP, and mingw.org's MinGW headers by default define
13615 _WIN32_WINNT to 0x500.
13617 2019-03-01 Gary Benson <gbenson@redhat.com>
13619 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13621 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13622 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13625 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13626 set_sigint_trap, clear_sigint_trap.
13628 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13630 * target.c (target_detach): Clear the regcache and the
13633 2019-02-27 Pedro Alves <palves@redhat.com>
13635 * utils.c (set_screen_size): When we cap the height/width sizes,
13636 tweak the corresponding command variable to show "unlimited":
13638 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13639 Pedro Alves <palves@redhat.com>
13641 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13642 before calling rl_set_screen_size.
13644 2019-02-27 Tom Tromey <tromey@adacore.com>
13646 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13648 * python/py-value.c: Remove Python 2.4 workaround.
13649 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13651 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13652 Python 2.4 workaround.
13653 * python/python-internal.h: Remove Python 2.4 comment.
13654 (Py_ssize_t): Don't define.
13655 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13656 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13657 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13658 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13659 * python/python.c (do_start_initialization): Remove Python 2.4
13661 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13662 (print_children): Remove Python 2.4 workaround.
13663 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13665 (CHARBUFFERPROC_NAME): Remove.
13666 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13667 Python 2.4 workaround.
13669 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13671 * NEWS: Note minimum Python version.
13673 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13675 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13676 code from these functions. Remove corresponding ifdefs. Use
13677 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13678 Remove gotos and target of gotos.
13679 (infpy_search_memory): Likewise.
13681 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13683 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13684 (hppa_gdbarch_init): Don't register deleted functions with
13687 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13689 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13690 (h8300_unwind_sp): Delete.
13691 (h8300_dummy_id): Delete.
13692 (h8300_gdbarch_init): Don't register deleted functions with
13695 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13697 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13698 (ft32_unwind_pc): Delete.
13699 (ft32_unwind_sp): Delete.
13700 (ft32_gdbarch_init): Don't register deleted functions with
13703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13705 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13706 (frv_unwind_pc): Delete.
13707 (frv_unwind_sp): Delete.
13708 (frv_gdbarch_init): Don't register deleted functions with
13711 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13713 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13714 (riscv_unwind_pc): Delete.
13715 (riscv_unwind_sp): Delete.
13716 (riscv_gdbarch_init): Don't register deleted functions with
13719 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13721 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13722 (csky_unwind_pc): Delete.
13723 (csky_unwind_sp): Delete.
13724 (csky_gdbarch_init): Don't register deleted functions with
13727 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13729 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13730 (cris_unwind_pc): Delete.
13731 (cris_unwind_sp): Delete.
13732 (cris_gdbarch_init): Don't register deleted functions with
13735 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13737 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13738 (bfin_unwind_pc): Delete.
13739 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13741 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13743 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13744 (arm_unwind_pc): Delete.
13745 (arm_unwind_sp): Delete.
13746 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13748 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13750 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13751 (arc_unwind_pc): Delete.
13752 (arc_unwind_sp): Delete.
13753 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13755 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13757 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13758 (alpha_unwind_pc): Delete.
13759 (alpha_gdbarch_init): Don't register deleted functions with
13762 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13764 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13765 (aarch64_unwind_pc): Delete.
13766 (aarch64_unwind_sp): Delete.
13767 (aarch64_gdbarch_init): Don't register deleted functions with
13770 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13772 * gdbtypes.c (type_align): Don't consider static members when
13773 computing structure alignment.
13775 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13777 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13778 return 0 for other types.
13779 * arch-utils.c (default_type_align): Always return 0.
13780 * gdbarch.h: Regenerate.
13781 * gdbarch.sh (type_align): Extend comment.
13782 * gdbtypes.c (type_align): Add additional comments, always call
13783 gdbarch_type_align before applying the default rules.
13784 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13785 generic code will then apply a suitable default.
13786 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13787 types, return 0 for other types.
13789 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13791 * NEWS: Create a new section for the next release branch.
13792 Rename the section of the current branch, now that it has
13795 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13797 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13798 * version.in: Bump version to 8.3.50.DATE-git.
13800 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13802 * aix-thread.c (ptid_cmp): Remove unused variable.
13803 (get_signaled_thread): Likewise.
13804 (store_regs_user_thread): Likewise.
13805 (store_regs_kernel_thread): Likewise.
13806 (fetch_regs_kernel_thread): Remove shadowed variable.
13808 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13810 * features/riscv/32bit-cpu.xml: Add register numbers.
13811 * features/riscv/32bit-fpu.c: Regenerate.
13812 * features/riscv/32bit-fpu.xml: Add register numbers.
13813 * features/riscv/64bit-cpu.xml: Add register numbers.
13814 * features/riscv/64bit-fpu.c: Regenerate.
13815 * features/riscv/64bit-fpu.xml: Add register numbers.
13817 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13819 * NEWS: Mention two argument form of gdb.Value constructor.
13820 * python/py-value.c (convert_buffer_and_type_to_value): New
13822 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13823 Add support for handling an optional second argument. Call
13824 convert_buffer_and_type_to_value as appropriate.
13825 * python/python-internal.h (Py_buffer_deleter): New struct.
13826 (Py_buffer_up): New typedef.
13828 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13830 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13831 instead of releasing ownership.
13833 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13835 * dwarf2read.c (open_and_init_dwp_file): Call
13836 elf_numsections instead of bfd_count_sections to initialize
13837 dwp_file->num_sections.
13839 2019-02-25 Tom Tromey <tromey@adacore.com>
13841 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13843 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13845 * gcore.in: Add '--readnever' option when invoking GDB.
13847 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13849 * MAINTAINERS: Update my email address.
13851 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13853 * build-id.c (build_id_to_debug_bfd_1): New function.
13854 (build_id_to_debug_bfd): Look for separate debug file in
13857 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13859 * gdbarch.sh: Update the copyright year range that is placed into
13862 2019-02-22 Keith Seitz <keiths@redhat.com>
13865 * linespec.c (create_sals_line_offset): Search for the default
13866 symtab's filename instead of its fullname.
13868 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13870 * NEWS: Update style defaults.
13872 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13874 * main.c (captured_main_1): Disable styling in batch mode.
13876 2019-02-20 Tom Tromey <tom@tromey.com>
13878 * symtab.c (symtab_symbol_info): Fix typos.
13880 2019-02-20 Tom Tromey <tromey@adacore.com>
13882 * findcmd.c (_initialize_mem_search): Use upper case for
13883 metasyntactic variables.
13885 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13887 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13888 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13890 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13892 * top.h (source_file_name): Change to std::string.
13893 * top.c (source_file_name): Likewise.
13894 (command_line_input): Adjust.
13895 * cli/cli-script.c (script_from_file): Adjust.
13897 2019-02-19 Tom Tromey <tromey@adacore.com>
13899 * ravenscar-thread.c
13900 (ravenscar_thread_target::update_thread_list): Don't call
13901 ada_build_task_list.
13902 * ada-lang.h (ada_build_task_list): Don't declare.
13903 * ada-tasks.c (struct ada_tasks_inferior_data)
13904 <task_list_valid_p>: Now bool.
13905 (read_known_tasks, ada_task_list_changed)
13906 (ada_tasks_invalidate_inferior_data): Update.
13907 (read_known_tasks_array): Return bool.
13908 (read_known_tasks_list): Likewise.
13909 (read_known_tasks): Return void.
13910 (ada_build_task_list): Now static.
13912 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13914 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13915 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13917 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13919 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13920 variant for ada_tasks_pspace_data_handle and
13921 ada_tasks_inferior_data_handle.
13922 (ada_tasks_pspace_data_cleanup): New function.
13923 (ada_tasks_inferior_data_cleanup): New function.
13925 2019-02-17 Tom Tromey <tom@tromey.com>
13927 * macrotab.h (macro_source_fullname): Return a std::string.
13928 * macrotab.c (macro_include, check_for_redefinition)
13929 (macro_undef, macro_lookup_definition, foreach_macro)
13930 (foreach_macro_in_scope): Update.
13931 (macro_source_fullname): Return a std::string.
13932 * macrocmd.c (show_pp_source_pos): Update.
13934 2019-02-17 Tom Tromey <tom@tromey.com>
13936 * macrocmd.c (show_pp_source_pos): Style the file names.
13938 2019-02-17 Tom Tromey <tom@tromey.com>
13941 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13943 2019-02-17 Tom Tromey <tom@tromey.com>
13945 * ada-lang.c (user_select_syms): Use filtered printing.
13946 * utils.c (wrap_style): New global.
13947 (desired_style): Remove.
13948 (emit_style_escape): Add stream parameter.
13949 (set_output_style, reset_terminal_style, prompt_for_continue):
13951 (flush_wrap_buffer): Only flush gdb_stdout.
13952 (wrap_here): Set wrap_style.
13953 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13954 treat escape sequences as a character. Change when wrap buffer is
13956 (fputs_styled): Do not set the output style when the default is
13958 * ui-style.h (struct ui_file_style) <is_default>: New method.
13959 * source.c (print_source_lines_base): Emit escape sequences in one
13962 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13964 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13965 integers and enumeration types.
13967 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13969 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13970 instead of lookup_symbol_in_language
13971 (do_exact_match): New function.
13972 (ada_get_symbol_name_matcher): Return do_exact_match when
13973 doing a verbatim match.
13975 2019-02-15 Tom Tromey <tromey@adacore.com>
13977 * ravenscar-thread.c (ravenscar_thread_target::resume)
13978 (ravenscar_thread_target::wait): Special case wildcard requests.
13980 2019-02-15 Tom Tromey <tromey@adacore.com>
13982 * ravenscar-thread.c (base_ptid): Remove.
13983 (struct ravenscar_thread_target) <close>: New method.
13984 <m_base_ptid>: New member.
13985 <update_inferior_ptid, active_task, task_is_currently_active,
13986 runtime_initialized>: Declare methods.
13987 <ravenscar_thread_target>: Add constructor.
13988 (ravenscar_thread_target::task_is_currently_active)
13989 (ravenscar_thread_target::update_inferior_ptid)
13990 (ravenscar_runtime_initialized): Rename. Now methods.
13991 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13992 (ravenscar_thread_target::update_thread_list): Update.
13993 (ravenscar_thread_target::active_task): Now method.
13994 (ravenscar_thread_target::store_registers)
13995 (ravenscar_thread_target::prepare_to_store)
13996 (ravenscar_thread_target::prepare_to_store)
13997 (ravenscar_thread_target::mourn_inferior): Update.
13998 (ravenscar_inferior_created): Use "new" to create target.
13999 (ravenscar_thread_target::get_ada_task_ptid): Update.
14000 (_initialize_ravenscar): Don't initialize base_ptid.
14001 (ravenscar_ops): Remove global.
14003 2019-02-15 Tom Tromey <tromey@adacore.com>
14005 * target.h (push_target): Declare new overload.
14006 * target.c (push_target): New overload, taking an rvalue reference.
14007 * remote.c (remote_target::open_1): Use push_target overload.
14008 * corelow.c (core_target_open): Use push_target overload.
14010 2019-02-15 Tom Tromey <tromey@adacore.com>
14012 * ravenscar-thread.c (is_ravenscar_task)
14013 (ravenscar_task_is_currently_active): Return bool.
14014 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14015 (_initialize_ravenscar): Remove "(void)".
14016 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14019 2019-02-15 Tom Tromey <tromey@adacore.com>
14021 * ravenscar-thread.c (ravenscar_runtime_initializer)
14022 (has_ravenscar_runtime, get_running_thread_id)
14023 (ravenscar_thread_target::resume): Fix indentation.
14025 2019-02-15 Tom Tromey <tromey@adacore.com>
14027 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14028 from ravenscar_arch_ops.
14029 (sparc_ravenscar_ops::fetch_registers)
14030 (sparc_ravenscar_ops::store_registers): Now methods.
14031 (sparc_ravenscar_prepare_to_store): Remove.
14032 (sparc_ravenscar_ops): Redefine.
14033 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14034 methods and destructor. Remove members.
14035 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14036 (ravenscar_thread_target::store_registers)
14037 (ravenscar_thread_target::prepare_to_store): Update.
14038 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14040 (struct ppc_ravenscar_powerpc_ops): Derive from
14041 ravenscar_arch_ops.
14042 (ppc_ravenscar_powerpc_ops::fetch_registers)
14043 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14044 (ppc_ravenscar_powerpc_ops): Redefine.
14045 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14046 (ppc_ravenscar_e500_ops::fetch_registers)
14047 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14048 (ppc_ravenscar_e500_ops): Redefine.
14049 * aarch64-ravenscar-thread.c
14050 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14051 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14052 (aarch64_ravenscar_fetch_registers)
14053 (aarch64_ravenscar_store_registers): Now methods.
14054 (aarch64_ravenscar_ops): Redefine.
14056 2019-02-15 Tom Tromey <tromey@adacore.com>
14058 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14059 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14060 (ravenscar_thread_target::stopped_by_watchpoint)
14061 (ravenscar_thread_target::stopped_data_address)
14062 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14064 2019-02-15 Tom Tromey <tromey@adacore.com>
14066 * ravenscar-thread.c: Fix some typos.
14068 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14069 Tom Tromey <tromey@adacore.com>
14071 * ada-lang.c (ada_exception_sal): Change addr_string to a
14073 (create_ada_exception_catchpoint): Update.
14075 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14076 Tom Tromey <tromey@adacore.com>
14078 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14079 (bp_location_ops): Remove.
14080 (base_breakpoint_allocate_location): Update.
14081 (free_bp_location): Update.
14082 * ada-lang.c (class ada_catchpoint_location)
14083 <ada_catchpoint_location>: Remove ops parameter.
14084 (ada_catchpoint_location_dtor): Remove.
14085 (ada_catchpoint_location_ops): Remove.
14086 (allocate_location_exception): Update.
14087 * breakpoint.h (struct bp_location_ops): Remove.
14088 (class bp_location) <bp_location>: Remove bp_location_ops
14090 <~bp_location>: Add destructor.
14093 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14094 Pedro Alves <palves@redhat.com>
14096 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14099 2019-02-14 David Michael <fedora.dm0@gmail.com>
14100 Samuel Thibault <samuel.thibault@gnu.org>
14101 Thomas Schwinge <thomas@codesourcery.com>
14103 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14104 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14106 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14108 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14109 (check_empty): Use "const char *".
14111 * gnu-nat.c (gnu_nat_target::detach): Instead of
14112 'detach_inferior (pid)' call
14113 'detach_inferior (find_inferior_pid (pid))'.
14115 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14116 'nat/fork-inferior.o'.
14117 * gnu-nat.c: #include "nat/fork-inferior.h".
14119 * gnu-nat.c (gnu_nat_target::detach): Instead of
14120 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14121 * gnu-nat.h: #include "inf-child.h".
14122 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14123 'i386_gnu_nat_target::fetch_registers'.
14124 (gnu_store_registers): Rename/move to
14125 'i386_gnu_nat_target::store_registers'.
14127 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14128 * gnu-nat.h (mach_thread_info): New function.
14129 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14131 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14133 2019-02-14 Frederic Konrad <konrad@adacore.com>
14135 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14137 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14139 * windows-nat.c (windows_add_thread): Add new parameter
14140 "main_thread_p" with default value set to false. Update
14141 function documentation as well as all callers.
14142 (windows_delete_thread): Likewise.
14143 (fake_create_process): Update call to windows_add_thread.
14144 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14145 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14146 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14147 call to windows_delete_thread.
14149 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14151 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14153 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14155 * symfile.c (find_separate_debug_file): Use canonical path of
14156 sysroot with child_path instead of gdb_sysroot if it is valid.
14158 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14160 * symfile.c (find_separate_debug_file): Use child_path to
14161 determine if an object file is under a sysroot.
14163 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14166 unittests/child-path-selftests.c.
14167 * common/pathstuff.c (child_path): New function.
14168 * common/pathstuff.h (child_path): New prototype.
14169 * unittests/child-path-selftests.c: New file.
14171 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14173 * symfile.c (find_separate_debug_file): Look for separate debug
14174 files in debug directories under the sysroot.
14176 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14178 * symtab.h (struct minimal_symbol data_p): New const method.
14179 (struct minimal_symbol text_p): Likewise.
14180 * symtab.c (output_source_filename): Use file name style
14181 to print file name.
14182 (print_symbol_info): Likewise.
14183 (print_msymbol_info): Use address style to print addresses.
14184 Use function name style to print executable text symbols.
14185 (expand_symtab_containing_pc): Use data_p.
14186 (find_pc_sect_compunit_symtab): Likewise.
14188 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14190 * breakpoint.c (describe_other_breakpoints): Use address style
14191 to print addresses.
14192 (say_where): Likewise.
14194 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14196 * ada-typeprint.c (print_func_type): Print function name
14197 style to print function name.
14198 * c-typeprint.c (c_print_type_1): Likewise.
14200 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14202 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14205 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14207 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14210 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14212 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14213 TYPE_CODE_REF types.
14215 2019-02-08 Jim Wilson <jimw@sifive.com>
14217 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14218 (riscv_linux_fregset): New.
14219 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14221 2019-02-07 Tom Tromey <tom@tromey.com>
14223 * thread.c (thread_cancel_execution_command): Update.
14224 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14226 (struct thread_fsm_ops): Remove.
14227 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14228 (thread_fsm_should_stop, thread_fsm_return_value)
14229 (thread_fsm_set_finished, thread_fsm_finished_p)
14230 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14232 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14233 * infrun.c (clear_proceed_status_thread)
14234 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14235 (print_stop_event): Update.
14236 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14238 (step_command_fsm_ops): Remove.
14239 (new_step_command_fsm): Remove.
14241 (step_command_fsm::should_stop): Rename from
14242 step_command_fsm_should_stop.
14243 (step_command_fsm::clean_up): Rename from
14244 step_command_fsm_clean_up.
14245 (step_command_fsm::do_async_reply_reason): Rename from
14246 step_command_fsm_async_reply_reason.
14247 (struct until_next_fsm): Inherit from thread_fsm. Add
14249 (until_next_fsm_ops): Remove.
14250 (new_until_next_fsm): Remove.
14251 (until_next_fsm::should_stop): Rename from
14252 until_next_fsm_should_stop.
14253 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14254 (until_next_fsm::do_async_reply_reason): Rename from
14255 until_next_fsm_async_reply_reason.
14256 (struct finish_command_fsm): Inherit from thread_fsm. Add
14257 constructor. Change type of breakpoint.
14258 (finish_command_fsm_ops): Remove.
14259 (new_finish_command_fsm): Remove.
14260 (finish_command_fsm::should_stop): Rename from
14261 finish_command_fsm_should_stop.
14262 (finish_command_fsm::clean_up): Rename from
14263 finish_command_fsm_clean_up.
14264 (finish_command_fsm::return_value): Rename from
14265 finish_command_fsm_return_value.
14266 (finish_command_fsm::do_async_reply_reason): Rename from
14267 finish_command_fsm_async_reply_reason.
14268 (finish_command): Update.
14269 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14271 (call_thread_fsm_ops): Remove.
14272 (call_thread_fsm::call_thread_fsm): Rename from
14273 new_call_thread_fsm.
14274 (call_thread_fsm::should_stop): Rename from
14275 call_thread_fsm_should_stop.
14276 (call_thread_fsm::should_notify_stop): Rename from
14277 call_thread_fsm_should_notify_stop.
14278 (run_inferior_call, call_function_by_hand_dummy): Update.
14279 * cli/cli-interp.c (should_print_stop_to_console): Update.
14280 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14281 Add constructor. Change type of location_breakpoint,
14283 (until_break_fsm_ops): Remove.
14284 (new_until_break_fsm): Remove.
14285 (until_break_fsm::should_stop): Rename from
14286 until_break_fsm_should_stop.
14287 (until_break_fsm::clean_up): Rename from
14288 until_break_fsm_clean_up.
14289 (until_break_fsm::do_async_reply_reason): Rename from
14290 until_break_fsm_async_reply_reason.
14291 (until_break_command): Update.
14292 * thread-fsm.c: Remove.
14293 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14295 2019-02-07 Tom Tromey <tom@tromey.com>
14297 * yy-remap.h: Add include guard.
14298 * xtensa-tdep.h: Add include guard.
14299 * xcoffread.h: Rename include guard.
14300 * varobj-iter.h: Add include guard.
14301 * tui/tui.h: Rename include guard.
14302 * tui/tui-winsource.h: Rename include guard.
14303 * tui/tui-wingeneral.h: Rename include guard.
14304 * tui/tui-windata.h: Rename include guard.
14305 * tui/tui-win.h: Rename include guard.
14306 * tui/tui-stack.h: Rename include guard.
14307 * tui/tui-source.h: Rename include guard.
14308 * tui/tui-regs.h: Rename include guard.
14309 * tui/tui-out.h: Rename include guard.
14310 * tui/tui-layout.h: Rename include guard.
14311 * tui/tui-io.h: Rename include guard.
14312 * tui/tui-hooks.h: Rename include guard.
14313 * tui/tui-file.h: Rename include guard.
14314 * tui/tui-disasm.h: Rename include guard.
14315 * tui/tui-data.h: Rename include guard.
14316 * tui/tui-command.h: Rename include guard.
14317 * tic6x-tdep.h: Add include guard.
14318 * target/waitstatus.h: Rename include guard.
14319 * target/wait.h: Rename include guard.
14320 * target/target.h: Rename include guard.
14321 * target/resume.h: Rename include guard.
14322 * target-float.h: Rename include guard.
14323 * stabsread.h: Add include guard.
14324 * rs6000-tdep.h: Add include guard.
14325 * riscv-fbsd-tdep.h: Add include guard.
14326 * regformats/regdef.h: Rename include guard.
14327 * record.h: Rename include guard.
14328 * python/python.h: Rename include guard.
14329 * python/python-internal.h: Rename include guard.
14330 * python/py-stopevent.h: Rename include guard.
14331 * python/py-ref.h: Rename include guard.
14332 * python/py-record.h: Rename include guard.
14333 * python/py-record-full.h: Rename include guard.
14334 * python/py-record-btrace.h: Rename include guard.
14335 * python/py-instruction.h: Rename include guard.
14336 * python/py-events.h: Rename include guard.
14337 * python/py-event.h: Rename include guard.
14338 * procfs.h: Add include guard.
14339 * proc-utils.h: Add include guard.
14340 * p-lang.h: Add include guard.
14341 * or1k-tdep.h: Rename include guard.
14342 * observable.h: Rename include guard.
14343 * nto-tdep.h: Rename include guard.
14344 * nat/x86-linux.h: Rename include guard.
14345 * nat/x86-linux-dregs.h: Rename include guard.
14346 * nat/x86-gcc-cpuid.h: Add include guard.
14347 * nat/x86-dregs.h: Rename include guard.
14348 * nat/x86-cpuid.h: Rename include guard.
14349 * nat/ppc-linux.h: Rename include guard.
14350 * nat/mips-linux-watch.h: Rename include guard.
14351 * nat/linux-waitpid.h: Rename include guard.
14352 * nat/linux-ptrace.h: Rename include guard.
14353 * nat/linux-procfs.h: Rename include guard.
14354 * nat/linux-osdata.h: Rename include guard.
14355 * nat/linux-nat.h: Rename include guard.
14356 * nat/linux-namespaces.h: Rename include guard.
14357 * nat/linux-btrace.h: Rename include guard.
14358 * nat/glibc_thread_db.h: Rename include guard.
14359 * nat/gdb_thread_db.h: Rename include guard.
14360 * nat/gdb_ptrace.h: Rename include guard.
14361 * nat/fork-inferior.h: Rename include guard.
14362 * nat/amd64-linux-siginfo.h: Rename include guard.
14363 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14364 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14365 * nat/aarch64-linux.h: Rename include guard.
14366 * nat/aarch64-linux-hw-point.h: Rename include guard.
14367 * mn10300-tdep.h: Add include guard.
14368 * mips-linux-tdep.h: Add include guard.
14369 * mi/mi-parse.h: Rename include guard.
14370 * mi/mi-out.h: Rename include guard.
14371 * mi/mi-main.h: Rename include guard.
14372 * mi/mi-interp.h: Rename include guard.
14373 * mi/mi-getopt.h: Rename include guard.
14374 * mi/mi-console.h: Rename include guard.
14375 * mi/mi-common.h: Rename include guard.
14376 * mi/mi-cmds.h: Rename include guard.
14377 * mi/mi-cmd-break.h: Rename include guard.
14378 * m2-lang.h: Add include guard.
14379 * location.h: Rename include guard.
14380 * linux-record.h: Rename include guard.
14381 * linux-nat.h: Add include guard.
14382 * linux-fork.h: Add include guard.
14383 * i386-darwin-tdep.h: Rename include guard.
14384 * hppa-linux-offsets.h: Add include guard.
14385 * guile/guile.h: Rename include guard.
14386 * guile/guile-internal.h: Rename include guard.
14387 * gnu-nat.h: Rename include guard.
14388 * gdb-stabs.h: Rename include guard.
14389 * frv-tdep.h: Add include guard.
14390 * f-lang.h: Add include guard.
14391 * event-loop.h: Add include guard.
14392 * darwin-nat.h: Rename include guard.
14393 * cp-abi.h: Rename include guard.
14394 * config/sparc/nm-sol2.h: Rename include guard.
14395 * config/nm-nto.h: Rename include guard.
14396 * config/nm-linux.h: Add include guard.
14397 * config/i386/nm-i386gnu.h: Rename include guard.
14398 * config/djgpp/nl_types.h: Rename include guard.
14399 * config/djgpp/langinfo.h: Rename include guard.
14400 * compile/gcc-cp-plugin.h: Add include guard.
14401 * compile/gcc-c-plugin.h: Add include guard.
14402 * compile/compile.h: Rename include guard.
14403 * compile/compile-object-run.h: Rename include guard.
14404 * compile/compile-object-load.h: Rename include guard.
14405 * compile/compile-internal.h: Rename include guard.
14406 * compile/compile-cplus.h: Rename include guard.
14407 * compile/compile-c.h: Rename include guard.
14408 * common/xml-utils.h: Rename include guard.
14409 * common/x86-xstate.h: Rename include guard.
14410 * common/version.h: Rename include guard.
14411 * common/vec.h: Rename include guard.
14412 * common/tdesc.h: Rename include guard.
14413 * common/selftest.h: Rename include guard.
14414 * common/scoped_restore.h: Rename include guard.
14415 * common/scoped_mmap.h: Rename include guard.
14416 * common/scoped_fd.h: Rename include guard.
14417 * common/safe-iterator.h: Rename include guard.
14418 * common/run-time-clock.h: Rename include guard.
14419 * common/refcounted-object.h: Rename include guard.
14420 * common/queue.h: Rename include guard.
14421 * common/ptid.h: Rename include guard.
14422 * common/print-utils.h: Rename include guard.
14423 * common/preprocessor.h: Rename include guard.
14424 * common/pathstuff.h: Rename include guard.
14425 * common/observable.h: Rename include guard.
14426 * common/netstuff.h: Rename include guard.
14427 * common/job-control.h: Rename include guard.
14428 * common/host-defs.h: Rename include guard.
14429 * common/gdb_wait.h: Rename include guard.
14430 * common/gdb_vecs.h: Rename include guard.
14431 * common/gdb_unlinker.h: Rename include guard.
14432 * common/gdb_unique_ptr.h: Rename include guard.
14433 * common/gdb_tilde_expand.h: Rename include guard.
14434 * common/gdb_sys_time.h: Rename include guard.
14435 * common/gdb_string_view.h: Rename include guard.
14436 * common/gdb_splay_tree.h: Rename include guard.
14437 * common/gdb_setjmp.h: Rename include guard.
14438 * common/gdb_ref_ptr.h: Rename include guard.
14439 * common/gdb_optional.h: Rename include guard.
14440 * common/gdb_locale.h: Rename include guard.
14441 * common/gdb_assert.h: Rename include guard.
14442 * common/filtered-iterator.h: Rename include guard.
14443 * common/filestuff.h: Rename include guard.
14444 * common/fileio.h: Rename include guard.
14445 * common/environ.h: Rename include guard.
14446 * common/common-utils.h: Rename include guard.
14447 * common/common-types.h: Rename include guard.
14448 * common/common-regcache.h: Rename include guard.
14449 * common/common-inferior.h: Rename include guard.
14450 * common/common-gdbthread.h: Rename include guard.
14451 * common/common-exceptions.h: Rename include guard.
14452 * common/common-defs.h: Rename include guard.
14453 * common/common-debug.h: Rename include guard.
14454 * common/cleanups.h: Rename include guard.
14455 * common/buffer.h: Rename include guard.
14456 * common/btrace-common.h: Rename include guard.
14457 * common/break-common.h: Rename include guard.
14458 * cli/cli-utils.h: Rename include guard.
14459 * cli/cli-style.h: Rename include guard.
14460 * cli/cli-setshow.h: Rename include guard.
14461 * cli/cli-script.h: Rename include guard.
14462 * cli/cli-interp.h: Rename include guard.
14463 * cli/cli-decode.h: Rename include guard.
14464 * cli/cli-cmds.h: Rename include guard.
14465 * charset-list.h: Add include guard.
14466 * buildsym-legacy.h: Rename include guard.
14467 * bfin-tdep.h: Add include guard.
14468 * ax.h: Rename include guard.
14469 * arm-linux-tdep.h: Add include guard.
14470 * arm-fbsd-tdep.h: Add include guard.
14471 * arch/xtensa.h: Rename include guard.
14472 * arch/tic6x.h: Add include guard.
14473 * arch/i386.h: Add include guard.
14474 * arch/arm.h: Rename include guard.
14475 * arch/arm-linux.h: Rename include guard.
14476 * arch/arm-get-next-pcs.h: Rename include guard.
14477 * arch/amd64.h: Add include guard.
14478 * arch/aarch64-insn.h: Rename include guard.
14479 * arch-utils.h: Rename include guard.
14480 * annotate.h: Add include guard.
14481 * amd64-darwin-tdep.h: Rename include guard.
14482 * aarch64-linux-tdep.h: Add include guard.
14483 * aarch64-fbsd-tdep.h: Add include guard.
14484 * aarch32-linux-nat.h: Add include guard.
14486 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14488 * macrotab.c (macro_define_internal): New function that
14489 factorizes macro_define_object_internal and macro_define_function
14491 (macro_define_object_internal): Use macro_define_internal.
14492 (macro_define_function): Likewise.
14494 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14496 * macrocmd.c (extract_identifier): Return
14497 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14500 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14502 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14504 2019-02-05 Tom Tromey <tom@tromey.com>
14506 * target.c (target_stack::unpush): Move assertion earlier.
14508 2019-01-30 Tom Tromey <tom@tromey.com>
14511 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14512 (gdbpy_parse_and_eval): Likewise.
14513 * python/python-internal.h (gdbpy_allow_threads): New class.
14515 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14517 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14518 (aarch64_fbsd_fpregmap): Move earlier.
14519 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14520 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14521 instead of individual calls to trad_frame_set_reg_addr.
14522 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14524 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14525 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14526 instead of individual calls to trad_frame_set_reg_addr.
14528 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14530 * CONTRIBUTE: Replace contribution list with wiki link.
14532 2019-01-25 Tom Tromey <tom@tromey.com>
14534 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14536 2019-01-25 Tom Tromey <tom@tromey.com>
14538 * xtensa-linux-nat.c: Fix common/ includes.
14539 * xml-support.h: Fix common/ includes.
14540 * xml-support.c: Fix common/ includes.
14541 * x86-linux-nat.c: Fix common/ includes.
14542 * windows-nat.c: Fix common/ includes.
14543 * varobj.h: Fix common/ includes.
14544 * varobj.c: Fix common/ includes.
14545 * value.c: Fix common/ includes.
14546 * valops.c: Fix common/ includes.
14547 * utils.c: Fix common/ includes.
14548 * unittests/xml-utils-selftests.c: Fix common/ includes.
14549 * unittests/utils-selftests.c: Fix common/ includes.
14550 * unittests/unpack-selftests.c: Fix common/ includes.
14551 * unittests/tracepoint-selftests.c: Fix common/ includes.
14552 * unittests/style-selftests.c: Fix common/ includes.
14553 * unittests/string_view-selftests.c: Fix common/ includes.
14554 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14555 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14556 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14557 * unittests/rsp-low-selftests.c: Fix common/ includes.
14558 * unittests/parse-connection-spec-selftests.c: Fix common/
14560 * unittests/optional-selftests.c: Fix common/ includes.
14561 * unittests/offset-type-selftests.c: Fix common/ includes.
14562 * unittests/observable-selftests.c: Fix common/ includes.
14563 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14564 * unittests/memrange-selftests.c: Fix common/ includes.
14565 * unittests/memory-map-selftests.c: Fix common/ includes.
14566 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14567 * unittests/function-view-selftests.c: Fix common/ includes.
14568 * unittests/environ-selftests.c: Fix common/ includes.
14569 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14570 * unittests/common-utils-selftests.c: Fix common/ includes.
14571 * unittests/cli-utils-selftests.c: Fix common/ includes.
14572 * unittests/array-view-selftests.c: Fix common/ includes.
14573 * ui-file.c: Fix common/ includes.
14574 * tui/tui-io.c: Fix common/ includes.
14575 * tracepoint.h: Fix common/ includes.
14576 * tracepoint.c: Fix common/ includes.
14577 * tracefile-tfile.c: Fix common/ includes.
14578 * top.h: Fix common/ includes.
14579 * top.c: Fix common/ includes.
14580 * thread.c: Fix common/ includes.
14581 * target/waitstatus.h: Fix common/ includes.
14582 * target/waitstatus.c: Fix common/ includes.
14583 * target.h: Fix common/ includes.
14584 * target.c: Fix common/ includes.
14585 * target-memory.c: Fix common/ includes.
14586 * target-descriptions.c: Fix common/ includes.
14587 * symtab.h: Fix common/ includes.
14588 * symfile.c: Fix common/ includes.
14589 * stap-probe.c: Fix common/ includes.
14590 * spu-linux-nat.c: Fix common/ includes.
14591 * sparc-nat.c: Fix common/ includes.
14592 * source.c: Fix common/ includes.
14593 * solib.c: Fix common/ includes.
14594 * solib-target.c: Fix common/ includes.
14595 * ser-unix.c: Fix common/ includes.
14596 * ser-tcp.c: Fix common/ includes.
14597 * ser-pipe.c: Fix common/ includes.
14598 * ser-base.c: Fix common/ includes.
14599 * selftest-arch.c: Fix common/ includes.
14600 * s12z-tdep.c: Fix common/ includes.
14601 * rust-exp.y: Fix common/ includes.
14602 * rs6000-aix-tdep.c: Fix common/ includes.
14603 * riscv-tdep.c: Fix common/ includes.
14604 * remote.c: Fix common/ includes.
14605 * remote-notif.h: Fix common/ includes.
14606 * remote-fileio.h: Fix common/ includes.
14607 * remote-fileio.c: Fix common/ includes.
14608 * regcache.h: Fix common/ includes.
14609 * regcache.c: Fix common/ includes.
14610 * record-btrace.c: Fix common/ includes.
14611 * python/python.c: Fix common/ includes.
14612 * python/py-type.c: Fix common/ includes.
14613 * python/py-inferior.c: Fix common/ includes.
14614 * progspace.h: Fix common/ includes.
14615 * producer.c: Fix common/ includes.
14616 * procfs.c: Fix common/ includes.
14617 * proc-api.c: Fix common/ includes.
14618 * printcmd.c: Fix common/ includes.
14619 * ppc-linux-nat.c: Fix common/ includes.
14620 * parser-defs.h: Fix common/ includes.
14621 * osdata.c: Fix common/ includes.
14622 * obsd-nat.c: Fix common/ includes.
14623 * nat/x86-linux.c: Fix common/ includes.
14624 * nat/x86-linux-dregs.c: Fix common/ includes.
14625 * nat/x86-dregs.h: Fix common/ includes.
14626 * nat/x86-dregs.c: Fix common/ includes.
14627 * nat/ppc-linux.c: Fix common/ includes.
14628 * nat/mips-linux-watch.h: Fix common/ includes.
14629 * nat/mips-linux-watch.c: Fix common/ includes.
14630 * nat/linux-waitpid.c: Fix common/ includes.
14631 * nat/linux-ptrace.h: Fix common/ includes.
14632 * nat/linux-ptrace.c: Fix common/ includes.
14633 * nat/linux-procfs.c: Fix common/ includes.
14634 * nat/linux-personality.c: Fix common/ includes.
14635 * nat/linux-osdata.c: Fix common/ includes.
14636 * nat/linux-namespaces.c: Fix common/ includes.
14637 * nat/linux-btrace.h: Fix common/ includes.
14638 * nat/linux-btrace.c: Fix common/ includes.
14639 * nat/fork-inferior.c: Fix common/ includes.
14640 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14641 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14642 * nat/aarch64-linux.c: Fix common/ includes.
14643 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14644 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14645 * namespace.h: Fix common/ includes.
14646 * mips-linux-tdep.c: Fix common/ includes.
14647 * minsyms.c: Fix common/ includes.
14648 * mi/mi-parse.h: Fix common/ includes.
14649 * mi/mi-main.c: Fix common/ includes.
14650 * mi/mi-cmd-env.c: Fix common/ includes.
14651 * memrange.h: Fix common/ includes.
14652 * memattr.c: Fix common/ includes.
14653 * maint.h: Fix common/ includes.
14654 * maint.c: Fix common/ includes.
14655 * main.c: Fix common/ includes.
14656 * machoread.c: Fix common/ includes.
14657 * location.c: Fix common/ includes.
14658 * linux-thread-db.c: Fix common/ includes.
14659 * linux-nat.c: Fix common/ includes.
14660 * linux-fork.c: Fix common/ includes.
14661 * inline-frame.c: Fix common/ includes.
14662 * infrun.c: Fix common/ includes.
14663 * inflow.c: Fix common/ includes.
14664 * inferior.h: Fix common/ includes.
14665 * inferior.c: Fix common/ includes.
14666 * infcmd.c: Fix common/ includes.
14667 * inf-ptrace.c: Fix common/ includes.
14668 * inf-child.c: Fix common/ includes.
14669 * ia64-linux-nat.c: Fix common/ includes.
14670 * i387-tdep.c: Fix common/ includes.
14671 * i386-tdep.c: Fix common/ includes.
14672 * i386-linux-tdep.c: Fix common/ includes.
14673 * i386-linux-nat.c: Fix common/ includes.
14674 * i386-go32-tdep.c: Fix common/ includes.
14675 * i386-fbsd-tdep.c: Fix common/ includes.
14676 * i386-fbsd-nat.c: Fix common/ includes.
14677 * guile/scm-type.c: Fix common/ includes.
14678 * guile/guile.c: Fix common/ includes.
14679 * go32-nat.c: Fix common/ includes.
14680 * gnu-nat.c: Fix common/ includes.
14681 * gdbthread.h: Fix common/ includes.
14682 * gdbarch-selftests.c: Fix common/ includes.
14683 * gdb_usleep.c: Fix common/ includes.
14684 * gdb_select.h: Fix common/ includes.
14685 * gdb_bfd.c: Fix common/ includes.
14686 * gcore.c: Fix common/ includes.
14687 * fork-child.c: Fix common/ includes.
14688 * findvar.c: Fix common/ includes.
14689 * fbsd-nat.c: Fix common/ includes.
14690 * event-top.c: Fix common/ includes.
14691 * event-loop.c: Fix common/ includes.
14692 * dwarf2read.c: Fix common/ includes.
14693 * dwarf2loc.c: Fix common/ includes.
14694 * dwarf2-frame.c: Fix common/ includes.
14695 * dwarf-index-cache.c: Fix common/ includes.
14696 * dtrace-probe.c: Fix common/ includes.
14697 * disasm-selftests.c: Fix common/ includes.
14698 * defs.h: Fix common/ includes.
14699 * csky-tdep.c: Fix common/ includes.
14700 * cp-valprint.c: Fix common/ includes.
14701 * cp-support.h: Fix common/ includes.
14702 * cp-support.c: Fix common/ includes.
14703 * corelow.c: Fix common/ includes.
14704 * completer.h: Fix common/ includes.
14705 * completer.c: Fix common/ includes.
14706 * compile/compile.c: Fix common/ includes.
14707 * compile/compile-loc2c.c: Fix common/ includes.
14708 * compile/compile-cplus-types.c: Fix common/ includes.
14709 * compile/compile-cplus-symbols.c: Fix common/ includes.
14710 * command.h: Fix common/ includes.
14711 * cli/cli-dump.c: Fix common/ includes.
14712 * cli/cli-cmds.c: Fix common/ includes.
14713 * charset.c: Fix common/ includes.
14714 * build-id.c: Fix common/ includes.
14715 * btrace.h: Fix common/ includes.
14716 * btrace.c: Fix common/ includes.
14717 * breakpoint.h: Fix common/ includes.
14718 * breakpoint.c: Fix common/ includes.
14720 (enum agent_op): Fix common/ includes.
14721 * ax-general.c (struct aop_map): Fix common/ includes.
14722 * ax-gdb.c: Fix common/ includes.
14723 * auxv.c: Fix common/ includes.
14724 * auto-load.c: Fix common/ includes.
14725 * arm-tdep.c: Fix common/ includes.
14726 * arch/riscv.c: Fix common/ includes.
14727 * arch/ppc-linux-common.c: Fix common/ includes.
14728 * arch/i386.c: Fix common/ includes.
14729 * arch/arm.c: Fix common/ includes.
14730 * arch/arm-linux.c: Fix common/ includes.
14731 * arch/arm-get-next-pcs.c: Fix common/ includes.
14732 * arch/amd64.c: Fix common/ includes.
14733 * arch/aarch64.c: Fix common/ includes.
14734 * arch/aarch64-insn.c: Fix common/ includes.
14735 * arch-utils.c: Fix common/ includes.
14736 * amd64-windows-tdep.c: Fix common/ includes.
14737 * amd64-tdep.c: Fix common/ includes.
14738 * amd64-sol2-tdep.c: Fix common/ includes.
14739 * amd64-obsd-tdep.c: Fix common/ includes.
14740 * amd64-nbsd-tdep.c: Fix common/ includes.
14741 * amd64-linux-tdep.c: Fix common/ includes.
14742 * amd64-linux-nat.c: Fix common/ includes.
14743 * amd64-fbsd-tdep.c: Fix common/ includes.
14744 * amd64-fbsd-nat.c: Fix common/ includes.
14745 * amd64-dicos-tdep.c: Fix common/ includes.
14746 * amd64-darwin-tdep.c: Fix common/ includes.
14747 * agent.c: Fix common/ includes.
14748 * ada-lang.h: Fix common/ includes.
14749 * ada-lang.c: Fix common/ includes.
14750 * aarch64-tdep.c: Fix common/ includes.
14752 2019-01-25 Tom Tromey <tom@tromey.com>
14754 * common/create-version.sh: Use common/version.h.
14756 2019-01-24 Pedro Alves <palves@redhat.com>
14758 * infrun.c (signal_stop, signal_print, signal_program)
14759 (signal_catch, signal_pass): Now arrays instead of pointers.
14760 (update_signals_program_target, do_target_resume)
14761 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14762 * linux-nat.c (linux_nat_target::pass_signals)
14763 (linux_nat_target::create_inferior, linux_nat_target::attach):
14765 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14766 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14767 * procfs.c (procfs_target::pass_signals): Adjust.
14768 * record-full.c (record_full_target::resume): Adjust.
14769 * remote.c (remote_target::pass_signals)
14770 (remote_target::program_signals): Adjust.
14771 * target-debug.h (target_debug_print_signals): Now takes a
14772 gdb::array_view as parameter. Adjust.
14773 * target.h (target_ops) <pass_signals, program_signals>: Replace
14774 pointer and length parameters with gdb::array_view.
14775 (target_pass_signals, target_program_signals): Likewise.
14776 * target-delegates.c: Regenerate.
14778 2019-01-24 Pedro Alves <palves@redhat.com>
14780 * common/forward-scope-exit.h
14781 (forward_scope_exit::forward_scope_exit): Pass arguments to
14782 m_bind_function directly, instead of creating a std::bind and
14785 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14787 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14788 for static members.
14789 (pass_in_v_vfp_candidate): Likewise.
14791 2019-01-23 Tom Tromey <tom@tromey.com>
14792 Pedro Alves <palves@redhat.com>
14794 * regcache.c (class regcache_invalidator): Remove.
14795 (regcache::raw_write): Use make_scope_exit.
14797 2019-01-23 Tom Tromey <tom@tromey.com>
14799 * ui-out.h (class ui_out_emit_type): Update comment.
14801 2019-01-23 Tom Tromey <tom@tromey.com>
14803 * infrun.c (fetch_inferior_event): Update comment.
14805 2019-01-23 Tom Tromey <tom@tromey.com>
14806 Pedro Alves <palves@redhat.com>
14808 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14810 (fetch_inferior_event): Use SCOPE_EXIT.
14813 2019-01-23 Tom Tromey <tom@tromey.com>
14814 Pedro Alves <palves@redhat.com>
14816 * infrun.c (disable_thread_events): Delete.
14817 (stop_all_threads): Use SCOPE_EXIT.
14819 2019-01-23 Tom Tromey <tom@tromey.com>
14820 Pedro Alves <palves@redhat.com>
14822 * symfile.c: Include forward-scope-exit.h.
14823 (clear_symtab_users_cleanup): Replace forward declaration with
14824 a FORWARD_SCOPE_EXIT.
14825 (syms_from_objfile_1): Use the forward_scope_exit and
14826 gdb::optional instead of cleanup_function.
14827 (reread_symbols): Use the forward_scope_exit instead of
14829 (clear_symtab_users_cleanup): Remove function.
14831 2019-01-23 Tom Tromey <tom@tromey.com>
14832 Pedro Alves <palves@redhat.com>
14834 * linux-nat.c: Include scope-exit.h.
14835 (cleanup_target_stop): Remove.
14836 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14839 2019-01-23 Tom Tromey <tom@tromey.com>
14840 Pedro Alves <palves@redhat.com>
14842 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14843 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14845 2019-01-23 Tom Tromey <tom@tromey.com>
14846 Andrew Burgess <andrew.burgess@embecosm.com>
14847 Pedro Alves <palves@redhat.com>
14849 * infrun.c (fetch_inferior_event): Use scope_exit.
14850 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14851 * top.c (execute_command): Use scope_exit.
14852 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14853 * utils.c (do_bpstat_clear_actions_cleanup)
14854 (make_bpstat_clear_actions_cleanup): Remove.
14856 2019-01-23 Tom Tromey <tom@tromey.com>
14857 Pedro Alves <palves@redhat.com>
14859 * infrun.c: Include "common/scope-exit.h"
14860 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14861 (wait_for_inferior): Use SCOPE_EXIT.
14862 (fetch_inferior_event): Use scope_exit.
14864 2019-01-23 Tom Tromey <tom@tromey.com>
14865 Pedro Alves <palves@redhat.com>
14867 * breakpoint.c (create_breakpoint): Remove cleanup.
14869 2019-01-23 Tom Tromey <tom@tromey.com>
14870 Andrew Burgess <andrew.burgess@embecosm.com>
14871 Pedro Alves <palves@redhat.com>
14873 2019-01-23 Pedro Alves <palves@redhat.com>
14875 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14877 2019-01-23 Pedro Alves <palves@redhat.com>
14878 Andrew Burgess <andrew.burgess@embecosm.com>
14880 * gdbthread.h: Include "common/forward-scope-exit.h".
14881 (scoped_finish_thread_state): Redefine custom class in terms of
14882 forward_scope_exit.
14884 2019-01-23 Pedro Alves <palves@redhat.com>
14885 Andrew Burgess <andrew.burgess@embecosm.com>
14887 * common/forward-scope-exit.h: New file.
14889 2019-01-23 Pedro Alves <palves@redhat.com>
14890 Andrew Burgess <andrew.burgess@embecosm.com>
14891 Tom Tromey <tom@tromey.com>
14893 * common/scope-exit.h: New file.
14895 2019-01-23 Pedro Alves <palves@redhat.com>
14897 * common/preprocessor.h (ESC): Rename to ...
14898 (ESC_PARENS): ... this.
14899 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14900 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14902 2019-01-23 Tom Tromey <tom@tromey.com>
14904 * language.h (class scoped_switch_to_sym_language_if_auto):
14905 Initialize m_lang in both cases.
14907 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14909 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14912 2019-01-22 Tom Tromey <tom@tromey.com>
14914 * corelow.c: Do not include sys/file.h.
14916 2019-01-22 Tom Tromey <tom@tromey.com>
14918 * tui/tui-wingeneral.h: Include gdb_curses.h.
14920 2019-01-22 Tom Tromey <tom@tromey.com>
14922 * source-cache.h (class source_cache) <get_source_lines,
14923 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14925 2019-01-22 Tom Tromey <tom@tromey.com>
14927 * remote-fileio.h (struct remote_target): Declare.
14929 2019-01-22 Tom Tromey <tom@tromey.com>
14931 * python/py-arch.c: Do not include py-ref.h.
14932 * python/py-bpevent.c: Do not include py-ref.h.
14933 * python/py-cmd.c: Do not include py-ref.h.
14934 * python/py-continueevent.c: Do not include py-ref.h.
14935 * python/py-event.h: Do not include py-ref.h.
14936 * python/py-evtregistry.c: Do not include py-ref.h.
14937 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14938 * python/py-frame.c: Do not include py-ref.h.
14939 * python/py-framefilter.c: Do not include py-ref.h.
14940 * python/py-function.c: Do not include py-ref.h.
14941 * python/py-infevents.c: Do not include py-ref.h.
14942 * python/py-linetable.c: Do not include py-ref.h.
14943 * python/py-objfile.c: Do not include py-ref.h.
14944 * python/py-param.c: Do not include py-ref.h.
14945 * python/py-prettyprint.c: Do not include py-ref.h.
14946 * python/py-progspace.c: Do not include py-ref.h.
14947 * python/py-symbol.c: Do not include py-ref.h.
14948 * python/py-symtab.c: Do not include py-ref.h.
14949 * python/py-type.c: Do not include py-ref.h.
14950 * python/py-unwind.c: Do not include py-ref.h.
14951 * python/py-utils.c: Do not include py-ref.h.
14952 * python/py-value.c: Do not include py-ref.h.
14953 * python/py-varobj.c: Do not include py-ref.h.
14954 * python/py-xmethods.c: Do not include py-ref.h.
14955 * python/python.c: Do not include py-ref.h.
14956 * varobj.c: Do not include py-ref.h.
14958 2019-01-22 Tom Tromey <tom@tromey.com>
14960 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14961 keyword for bcache.
14963 2019-01-22 Tom Tromey <tom@tromey.com>
14965 * compile/compile-cplus-types.c: Remove a comment by #include.
14967 2019-01-22 Tom Tromey <tom@tromey.com>
14969 * compile/gcc-c-plugin.h: Include compile-internal.h.
14971 2019-01-22 Tom Tromey <tom@tromey.com>
14973 * stabsread.c (EXTERN): Do not define.
14974 (symnum, next_symbol_text_func, processing_gcc_compilation)
14975 (within_function, global_sym_chain, global_stabs)
14976 (previous_stab_code, this_object_header_files)
14977 (n_this_object_header_files)
14978 (n_allocated_this_object_header_files): Define.
14979 * stabsread.h (EXTERN): Never define. Use "extern".
14981 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14983 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14986 2019-01-21 Tom Tromey <tom@tromey.com>
14988 * ui-out.c: Fix includes.
14989 * tui/tui-source.c: Fix includes.
14990 * target.c: Fix includes.
14991 * remote.c: Fix includes.
14992 * regcache.c: Fix includes.
14993 * python/py-block.c: Fix includes.
14994 * printcmd.c: Fix includes.
14995 * or1k-tdep.c: Fix includes.
14996 * mi/mi-main.c: Fix includes.
14997 * m32r-tdep.c: Fix includes.
14998 * csky-tdep.c: Fix includes.
14999 * compile/compile-cplus-types.c: Fix includes.
15000 * cli/cli-interp.c: Fix includes.
15002 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15004 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15007 2019-01-16 Tom Tromey <tom@tromey.com>
15009 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15011 (struct objfile) <msymbols_range>: Move from top level.
15012 <msymbols>: New method.
15013 (class objfile_msymbols): Remove.
15014 * symtab.c (default_collect_symbol_completion_matches_break_on):
15016 * symmisc.c (dump_msymbols): Update.
15017 * stabsread.c (scan_file_globals): Update.
15018 * objc-lang.c (info_selectors_command, info_classes_command)
15019 (find_methods): Update.
15020 * minsyms.c (find_solib_trampoline_target): Update.
15021 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15022 * coffread.c (coff_symfile_read): Update.
15023 * ada-lang.c (ada_lookup_simple_minsym)
15024 (ada_collect_symbol_completion_matches): Update.
15026 2019-01-16 Tom Tromey <tom@tromey.com>
15028 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15029 type. Remove no-argument constructor.
15030 <iterator::operator++>: Simplify.
15032 <end>: Use minimal_symbol_count.
15034 2019-01-16 Tom Tromey <tom@tromey.com>
15036 * objfiles.h (struct objfile) <psymtabs>: New method.
15037 (class objfile_psymtabs): Remove.
15038 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15040 <range>: New method.
15041 (require_partial_symbols): Change return type.
15042 * psymtab.c (require_partial_symbols)
15043 (psym_expand_symtabs_matching): Update.
15044 * mdebugread.c (parse_partial_symbols): Update.
15045 * dbxread.c (dbx_end_psymtab): Update.
15047 2019-01-15 Tom Tromey <tom@tromey.com>
15049 * symtab.c (lookup_objfile_from_block)
15050 (lookup_symbol_in_objfile_symtabs)
15051 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15052 (find_line_symtab, info_sources_command)
15053 (default_collect_symbol_completion_matches_break_on)
15054 (make_source_files_completion_list): Update.
15055 * symmisc.c (print_objfile_statistics, dump_objfile)
15056 (maintenance_print_symbols, maintenance_info_symtabs)
15057 (maintenance_check_symtabs, maintenance_info_line_tables):
15059 * source.c (select_source_symtab)
15060 (forget_cached_source_info_for_objfile): Update.
15061 * objfiles.h (class objfile_compunits): Remove.
15062 (struct objfile) <compunits_range>: New typedef.
15063 (compunits): New method.
15064 * objfiles.c (objfile_relocate1): Update.
15065 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15066 * maint.c (count_symtabs_and_blocks): Update.
15067 * linespec.c (iterate_over_all_matching_symtabs): Update.
15068 * cp-support.c (add_symbol_overload_list_qualified): Update.
15069 * coffread.c (coff_symtab_read): Update.
15070 * ada-lang.c (add_nonlocal_symbols)
15071 (ada_collect_symbol_completion_matches)
15072 (ada_add_global_exceptions): Update.
15074 2019-01-15 Tom Tromey <tom@tromey.com>
15076 * progspace.h (program_space) <objfiles_safe_range>: New
15078 <objfiles_safe>: New method.
15079 * objfiles.h (class all_objfiles_safe): Remove.
15080 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15081 * jit.c (jit_inferior_exit_hook): Update.
15083 2019-01-17 Tom Tromey <tom@tromey.com>
15085 * progspace.h (program_space) <objfiles_range>: New typedef.
15086 <objfiles>: New method.
15087 <objfiles_head>: Rename from objfiles.
15088 (object_files): Update.
15089 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15090 * guile/scm-pretty-print.c
15091 (ppscm_find_pretty_printer_from_objfiles): Update.
15092 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15093 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15095 * python/py-progspace.c (pspy_get_objfiles): Update.
15096 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15098 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15099 (objfpy_lookup_objfile_by_build_id): Update.
15100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15101 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15103 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15104 (expand_symtab_containing_pc, lookup_objfile_from_block)
15105 (lookup_static_symbol, basic_lookup_transparent_type)
15106 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15107 (find_line_symtab, info_sources_command)
15108 (default_collect_symbol_completion_matches_break_on)
15109 (make_source_files_completion_list, find_main_name): Update.
15110 * symmisc.c (print_symbol_bcache_statistics)
15111 (print_objfile_statistics, maintenance_print_symbols)
15112 (maintenance_print_msymbols, maintenance_print_objfiles)
15113 (maintenance_info_symtabs, maintenance_check_symtabs)
15114 (maintenance_expand_symtabs, maintenance_info_line_tables):
15116 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15117 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15118 (map_overlay_command, unmap_overlay_command)
15119 (simple_overlay_update, expand_symtabs_matching)
15120 (map_symbol_filenames): Update.
15121 * symfile-debug.c (set_debug_symfile): Update.
15122 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15124 * source.c (select_source_symtab, forget_cached_source_info):
15126 * solib.c (solib_read_symbols): Update.
15127 * solib-spu.c (append_ocl_sos): Update.
15128 * psymtab.c (maintenance_print_psymbols)
15129 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15130 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15131 * printcmd.c (info_symbol_command): Update.
15132 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15134 * objfiles.h (class all_objfiles): Remove.
15135 * objfiles.c (have_partial_symbols, have_full_symbols)
15136 (have_minimal_symbols, qsort_cmp, update_section_map)
15137 (shared_objfile_contains_address_p)
15138 (default_iterate_over_objfiles_in_search_order): Update.
15139 * objc-lang.c (info_selectors_command, info_classes_command)
15140 (find_methods): Update.
15141 * minsyms.c (find_solib_trampoline_target): Update.
15142 * maint.c (maintenance_info_sections)
15143 (maintenance_translate_address, count_symtabs_and_blocks):
15145 * main.c (captured_main_1): Update.
15146 * linux-thread-db.c (try_thread_db_load_from_pdir)
15147 (has_libpthread): Update.
15148 * linespec.c (iterate_over_all_matching_symtabs)
15149 (search_minsyms_for_name): Update.
15150 * jit.c (jit_find_objf_with_entry_addr): Update.
15151 * hppa-tdep.c (find_unwind_entry)
15152 (hppa_lookup_stub_minimal_symbol): Update.
15153 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15155 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15156 (elf_gnu_ifunc_resolve_by_got): Update.
15157 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15158 * dwarf-index-write.c (save_gdb_index_command): Update.
15159 * cp-support.c (add_symbol_overload_list_qualified): Update.
15160 * breakpoint.c (create_overlay_event_breakpoint)
15161 (create_longjmp_master_breakpoint)
15162 (create_std_terminate_master_breakpoint)
15163 (create_exception_master_breakpoint): Update.
15164 * blockframe.c (find_pc_partial_function): Update.
15165 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15166 (ada_collect_symbol_completion_matches)
15167 (ada_add_global_exceptions): Update.
15169 2019-01-17 Tom Tromey <tom@tromey.com>
15171 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15173 (solib_target_parse_libraries): Change return type.
15174 (library_list_start_segment, library_list_start_section)
15175 (library_list_end_library, library_list_start_library); Update.
15176 (solib_target_free_library_list): Remove.
15177 (solib_target_parse_libraries): Remove cleanup. Change return
15179 (solib_target_current_sos): Update.
15181 2019-01-17 Tom Tromey <tromey@bapiya>
15183 * valprint.c: Replace "the the" with "the".
15184 * symtab.c: Replace "the the" with "the".
15185 * solib.c: Replace "the the" with "the".
15186 * solib-dsbt.c: Replace "the the" with "the".
15187 * linespec.c: Replace "the the" with "the".
15188 * dwarf2loc.h: Replace "the the" with "the".
15189 * amd64-windows-tdep.c: Replace "the the" with "the".
15190 * aarch64-tdep.c: Replace "the the" with "the".
15192 2019-01-16 Keith Seitz <keiths@redhat.com>
15195 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15196 <builder>: Rename to ..
15197 <m_builder>: ... this and make private.
15198 (dwarf2_cu::get_builder): New method. Change all users of
15199 `builder' to use this method.
15200 (dwarf2_start_symtab): Move to ...
15201 (dwarf2_cu::start_symtab): ... here. Update all callers
15202 (setup_type_unit_groups): Move to ...
15203 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15205 (dwarf2_cu::reset_builder): New method.
15206 (process_full_compunit, process_full_type_unit): Use
15207 dwarf2_cu::reset_builder.
15208 (follow_die_offset): Record the ancestor CU if it is different
15209 from the followed DIE's CU.
15210 (follow_die_sig_1): Likewise.
15212 2019-01-15 Tom Tromey <tom@tromey.com>
15214 * remote.c (class remote_state) <buf>: Now a char_vector.
15215 <buf_size>: Remove.
15216 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15218 (remote_target::getpkt_or_notif_sane_1)
15219 (remote_target::getpkt_sane)
15220 (remote_target::getpkt_or_notif_sane): Likewise.
15221 (class remote_target) <putpkt>: New overload.
15222 (remote_target::read_frame): Change type of "buf_p". Remove
15223 sizeof_p parameter.
15224 (packet_ok): New overload.
15225 (packet_check_result): New overload.
15228 2019-01-14 Tom Tromey <tom@tromey.com>
15230 * remote-notif.c (handle_notification, remote_notif_ack)
15231 (remote_notif_parse): Make "buf" const.
15232 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15234 (remote_notif_parse, remote_notif_ack, handle_notification):
15236 * remote.c (remote_notif_stop_parse): Make "buf" const.
15237 (remote_target::remote_parse_stop_reply): Make "buf" const.
15238 (remote_notif_stop_ack): Make "buf" const.
15240 2019-01-14 Tom Tromey <tom@tromey.com>
15242 * remote.c (remote_console_output): Make parameter const.
15244 2019-01-14 Tom Tromey <tom@tromey.com>
15246 * target-debug.h (target_debug_print_signals): Constify.
15247 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15248 * procfs.c (procfs_target::pass_signals): Update.
15249 * linux-nat.c (linux_nat_target::pass_signals): Update.
15250 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15251 * target-delegates.c: Rebuild.
15252 * remote.c (remote_target::program_signals): Update.
15253 (remote_target::pass_signals): Update.
15254 * target.c (target_pass_signals): Constify argument.
15255 (target_program_signals): Likewise.
15256 * target.h (struct target_ops) <pass_signals, program_signals>:
15258 (target_pass_signals, target_program_signals): Constify argument.
15260 2019-01-14 Tom Tromey <tom@tromey.com>
15263 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15265 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15267 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15269 * rs6000-tdep.c: Include reggroups.h.
15270 (IS_V_ALIAS_PSEUDOREG): Define.
15271 (rs6000_register_name): Return names for the "vX" aliases.
15272 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15273 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15274 aliases. Call default_register_reggroup_p for all other
15276 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15278 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15279 Handle "vX" aliases.
15280 (v_alias_pseudo_register_collect): New function.
15281 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15282 (rs6000_gdbarch_init): Initialize "vX" aliases as
15283 pseudo-registers. Restore registration of
15284 rs6000_pseudo_register_reggroup_p with
15285 set_tdesc_pseudo_register_reggroup_p.
15287 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15289 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15290 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15291 set_gdbarch_num_pseudo_regs.
15293 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15295 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15296 Remove arg prefixname, add do_set and do_show.
15297 Add member functions set_list and show_list.
15298 * cli/cli-style.c (class cli_style_option): Update accordingly.
15299 (style_set_list): Move to file scope.
15300 (style_show_list): Likewise.
15301 (set_style): Call help_list.
15302 (show_style): Call cmd_show_list.
15303 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15304 Update to use the new macro.
15306 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15308 * ada-lang.c (_initialize_ada_language): Expand the help text
15309 for the "catch exception" command.
15311 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15313 * symtab.c (matching_obj_sections): Initialize obj,
15314 declare it closer to its usage.
15316 2019-01-10 Tom Tromey <tom@tromey.com>
15318 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15319 (basic_inf_threads_range): Remove.
15320 (inf_threads_range, inf_non_exited_threads_range)
15321 (safe_inf_threads_range): Use next_adapter.
15323 2019-01-10 Keith Seitz <keiths@redhat.com>
15327 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15328 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15330 2019-01-10 Keith Seitz <keiths@redhat.com>
15334 * dictionary.c (pending_to_vector): Remove.
15335 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15336 Remove _1 suffix, replacing functions of the same name. Update
15338 (dict_create_hashed, dict_create_hashed_expandable)
15339 (dict_create_linear, dict_create_linear_expandable, dict_free)
15340 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15341 Make functions static.
15343 2019-01-10 Keith Seitz <keiths@redhat.com>
15347 * dictionary.h (struct dictionary): Replace declaration with
15349 (dict_create_hashed, dict_create_hashed_expandable)
15350 (dict_create_linear, dict_create_linear_expandable)
15351 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15352 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15353 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15354 taking multidictionary argument.
15355 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15356 * block.h (struct block) <dict>: Change to multidictionary
15357 and rename `multidict'.
15358 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15359 symmisc.c: Update all dictionary references to multidictionary.
15361 2019-01-10 Keith Seitz <keiths@redhat.com>
15365 * dictionary.c: Include unordered_map.
15366 (pending_to_vector): New function.
15367 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15368 Rewrite the non-"_1" functions to take vector instead
15370 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15371 "new" _1 versions of the same name.
15372 (multidictionary): Define.
15373 (std::hash<enum language): New definition.
15374 (collate_pending_symbols_by_language, mdict_create_hashed)
15375 (mdict_create_hashed_expandable, mdict_create_linear)
15376 (mdict_create_linear_expandable, mdict_free)
15377 (find_language_dictionary, create_new_language_dictionary)
15378 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15379 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15380 (mdict_size, mdict_empty): New functions.
15381 * dictionary.h (mdict_iterator): Define.
15383 2019-01-10 Pedro Alves <palves@redhat.com>
15385 * breakpoint.c (read_uploaded_action)
15386 (create_tracepoint_from_upload): Adjust to use
15387 gdb::unique_xmalloc_ptr.
15388 * ctf.c (ctf_write_uploaded_tp):
15389 (SET_ARRAY_FIELD): Use emplace_back.
15390 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15391 * tracefile-tfile.c (tfile_write_uploaded_tp):
15392 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15393 gdb::unique_xmalloc_ptr.
15394 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15395 at_string, cond_string, cmd_strings>: Replace char pointers
15396 with gdb::unique_xmalloc_ptr.
15398 2019-01-10 Pedro Alves <palves@redhat.com>
15400 * solib-target.c (library_list_start_library): Don't xstrdup name.
15402 2019-01-10 Pedro Alves <palves@redhat.com>
15404 * mdebugread.c (parse_partial_symbols): Use
15405 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15407 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15409 * linux-fork.c (scoped_switch_fork_info)
15410 <~scoped_switch_fork_info>: Fix incorrect variable name.
15412 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15414 * linux-fork.c (scoped_switch_fork_info)
15415 <scoped_switch_fork_info>: Make explicit.
15416 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15418 2019-01-10 Tom Tromey <tom@tromey.com>
15420 * objfiles.h (objfile::reset_psymtabs): Update.
15421 * objfiles.c (objfile::objfile): Update.
15422 * psymtab.h (psymtab_storage::obstack): Update.
15423 (psymtab_storage::m_obstack): Use gdb::optional.
15424 (class psymtab_storage): Update comment. Remove objfile
15426 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15428 2019-01-10 Tom Tromey <tom@tromey.com>
15430 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15431 <free_psymtabs>: Now private.
15432 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15433 (allocate_psymtab): Use new method.
15435 2019-01-10 Tom Tromey <tom@tromey.com>
15437 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15438 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15439 * mdebugread.c (parse_partial_symbols): Use
15440 allocate_dependencies.
15441 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15442 allocate_dependencies.
15443 (process_psymtab_comp_unit_reader)
15444 (build_type_psymtab_dependencies): Likewise.
15445 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15447 2019-01-10 Tom Tromey <tom@tromey.com>
15449 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15450 PSYMBOL_SET_LANGUAGE.
15451 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15453 2019-01-10 Tom Tromey <tom@tromey.com>
15455 * psymtab.h (psymtab_storage::obstack): New method.
15456 <m_obstack>: Rename from obstack; now private.
15457 * psymtab.c (psymtab_storage): Update.
15458 * dwarf2read.c (create_addrmap_from_index)
15459 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15462 2019-01-10 Tom Tromey <tom@tromey.com>
15464 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15465 * objfiles.h (objfile::reset_psymtabs): New method.
15467 2019-01-10 Tom Tromey <tom@tromey.com>
15469 * symmisc.c (print_symbol_bcache_statistics): Update.
15470 (print_objfile_statistics): Update.
15471 * symfile.c (reread_symbols): Update.
15472 * psymtab.h (class psymtab_storage): New.
15473 * psymtab.c (psymtab_storage): New constructor.
15474 (~psymtab_storage): New destructor.
15475 (require_partial_symbols): Update.
15476 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15477 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15478 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15479 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15480 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15481 (start_psymtab_common, end_psymtab_common)
15482 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15483 (allocate_psymtab): Update.
15484 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15486 (dump_psymtab_addrmap, maintenance_print_psymbols)
15487 (maintenance_check_psymtabs): Update.
15488 (class objfile_psymtabs): Move to objfiles.h.
15489 * psympriv.h (discard_psymtab): Now inline.
15490 (psymtab_discarder::psymtab_discarder): Update.
15491 (psymtab_discarder::~psymtab_discarder): Update.
15492 (ALL_OBJFILE_PSYMTABS): Rewrite.
15493 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15494 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15496 <partial_symtabs>: New field.
15497 (class objfile_psymtabs): Move from psymtab.h. Update.
15498 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15500 (objfile::~objfile): Don't destroy psymbol_cache.
15501 * mdebugread.c (parse_partial_symbols): Update.
15502 * dwarf2read.c (create_addrmap_from_index)
15503 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15504 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15505 (add_partial_subprogram, dwarf2_ranges_read): Update.
15506 * dwarf-index-write.c (write_address_map)
15507 (write_one_signatured_type, recursively_write_psymbols)
15508 (class debug_names, class debug_names, write_psymtabs_to_index):
15511 2019-01-10 Tom Tromey <tom@tromey.com>
15513 * symtab.h (SYMBOL_SET_NAMES): Update.
15514 (symbol_set_names): Update.
15515 (MSYMBOL_SET_NAMES): Update.
15516 * symtab.c (symbol_set_names): Change argument to be an
15517 objfile_per_bfd_storage.
15518 * psymtab.c (add_psymbol_to_bcache): Update.
15519 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15521 2019-01-10 Tom Tromey <tom@tromey.com>
15523 * symtab.c (create_demangled_names_hash): Change argument to be an
15524 objfile_per_bfd_storage.
15525 (symbol_set_names): Update.
15527 2019-01-10 Tom Tromey <tom@tromey.com>
15529 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15531 * psymtab.c (init_psymbol_list): Do nothing if already called.
15532 * psympriv.h (init_psymbol_list): Add comment.
15533 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15535 * dbxread.c (dbx_symfile_read): Unconditionally call
15538 2019-01-10 Tom Tromey <tom@tromey.com>
15540 * xcoffread.c (scan_xcoff_symtab): Update.
15541 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15543 * mdebugread.c (parse_partial_symbols)
15544 (handle_psymbol_enumerators): Update.
15545 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15546 * dbxread.c (read_dbx_symtab): Update.
15547 * psympriv.h (psymbol_placement): New enum.
15548 (add_psymbol_to_list): Update.
15550 2019-01-10 Tom Tromey <tom@tromey.com>
15552 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15553 static_psymbols parameters.
15554 (scan_xcoff_symtab): Update.
15555 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15556 static_psymbols parameters.
15557 * psympriv.h (start_psymtab_common): Update.
15558 * mdebugread.c (parse_partial_symbols): Update.
15559 * dwarf2read.c (create_partial_symtab): Update.
15560 * dbxread.c (read_dbx_symtab): Update.
15561 (start_psymtab): Remove global_psymbols and static_psymbols
15564 2019-01-10 Tom Tromey <tom@tromey.com>
15566 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15567 * psymtab.c (allocate_psymtab): Add comment.
15568 * psympriv.h (allocate_psymtab): Add comment.
15569 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15571 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15573 2019-01-10 Tom Tromey <tom@tromey.com>
15575 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15577 * mipsread.c: Include mdebugread.h.
15578 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15580 * elfread.c: Include mdebugread.h.
15582 2019-01-09 Tom Tromey <tom@tromey.com>
15584 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15585 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15586 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15587 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15588 (psym_lookup_symbol, psym_find_last_source_symtab)
15589 (psym_forget_cached_source_info, psym_print_stats)
15590 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15591 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15592 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15593 (psym_find_compunit_symtab_by_address)
15594 (maintenance_print_psymbols, maintenance_info_psymtabs)
15595 (maintenance_check_psymtabs): Use ranged for.
15596 * psymtab.h (class objfile_psymtabs): New.
15597 (require_partial_symbols): Return objfile_psymtabs.
15598 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15600 2019-01-09 Tom Tromey <tom@tromey.com>
15602 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15603 (find_pc_mapped_section, list_overlays_command)
15604 (map_overlay_command, unmap_overlay_command)
15605 (simple_overlay_update): Use all_objfiles.
15606 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15607 * printcmd.c (info_symbol_command): Use all_objfiles.
15608 * objfiles.h (ALL_OBJSECTIONS): Remove.
15609 * maint.c (maintenance_translate_address): Use all_objfiles.
15610 * gcore.c (gcore_create_callback): Use all_objfiles.
15611 (objfile_find_memory_regions): Likewise.
15613 2019-01-09 Tom Tromey <tom@tromey.com>
15615 * symtab.c (find_line_symtab, info_sources_command)
15616 (make_source_files_completion_list): Use objfile_compunits.
15617 * source.c (select_source_symtab): Use objfile_compunits.
15618 * objfiles.h (struct objfile): Update comment.
15619 (ALL_OBJFILES): Remove.
15620 (ALL_FILETABS): Remove.
15621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15624 2019-01-09 Tom Tromey <tom@tromey.com>
15626 * symmisc.c (print_objfile_statistics, dump_objfile)
15627 (maintenance_print_symbols): Use compunit_filetabs.
15628 * source.c (forget_cached_source_info_for_objfile): Use
15630 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15631 (ALL_FILETABS): Use compunit_filetabs.
15632 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15633 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15635 2019-01-09 Tom Tromey <tom@tromey.com>
15637 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15638 (compunit_filetabs): New.
15639 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15641 (info_sources_command, make_source_files_completion_list): Remove
15643 * symmisc.c (print_objfile_statistics, dump_objfile)
15644 (maintenance_print_symbols): Remove declaration.
15645 (maintenance_info_symtabs): Use compunit_filetabs.
15646 (maintenance_info_line_tables): Likewise.
15647 * source.c (select_source_symtab): Change local variable name.
15648 (forget_cached_source_info_for_objfile): Remove declaration.
15649 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15650 * objfiles.c (objfile_relocate1): Remove declaration.
15651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15653 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15654 * coffread.c (coff_symtab_read): Remove declaration.
15655 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15658 2019-01-09 Tom Tromey <tom@tromey.com>
15660 * symtab.c (lookup_objfile_from_block)
15661 (find_pc_sect_compunit_symtab, search_symbols)
15662 (default_collect_symbol_completion_matches_break_on): Use
15664 * objfiles.h (ALL_COMPUNITS): Remove.
15665 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15666 * cp-support.c (add_symbol_overload_list_qualified): Use
15668 * ada-lang.c (ada_collect_symbol_completion_matches)
15669 (ada_add_global_exceptions): Use objfile_compunits.
15671 2019-01-09 Tom Tromey <tom@tromey.com>
15673 * source.c (select_source_symtab)
15674 (forget_cached_source_info_for_objfile): Remove declaration.
15675 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15677 * maint.c (count_symtabs_and_blocks): Remove declaration.
15678 * cp-support.c (add_symbol_overload_list_qualified): Remove
15680 * coffread.c (coff_symtab_read): Remove declaration.
15681 * symtab.c (lookup_symbol_in_objfile_symtabs)
15682 (basic_lookup_transparent_type_1): Use objfile_compunits.
15683 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15684 (info_sources_command, search_symbols)
15685 (default_collect_symbol_completion_matches_break_on)
15686 (make_source_files_completion_list): Remove declaration.
15687 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15688 (ada_collect_symbol_completion_matches)
15689 (ada_add_global_exceptions): Remove declaration.
15690 * linespec.c (iterate_over_all_matching_symtabs): Use
15692 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15693 (class objfile_compunits): New.
15694 (ALL_COMPUNITS): Use objfile_compunits.
15695 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15696 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15698 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15700 2019-01-09 Tom Tromey <tom@tromey.com>
15702 * symtab.c (search_symbols)
15703 (default_collect_symbol_completion_matches_break_on): Use
15705 * ada-lang.c (ada_lookup_simple_minsym)
15706 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15707 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15708 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15710 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15711 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15712 * objc-lang.c (find_methods): Use objfile_msymbols.
15713 (info_selectors_command, info_classes_command): Likewise.
15714 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15715 * objfiles.h (class objfile_msymbols): New.
15716 (ALL_OBJFILE_MSYMBOLS): Remove.
15717 (ALL_MSYMBOLS): Remove.
15719 2019-01-09 Tom Tromey <tom@tromey.com>
15721 * common/next-iterator.h (next_adapter): Add Iterator template
15723 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15724 (class all_objfiles_safe): New.
15725 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15726 * objfiles.c (put_objfile_before): Update comment.
15727 (add_separate_debug_objfile): Likewise.
15728 (free_all_objfiles): Use all_objfiles_safe.
15729 (objfile_purge_solibs): Likewise.
15731 2019-01-09 Tom Tromey <tom@tromey.com>
15733 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15734 (expand_symtab_containing_pc, lookup_static_symbol)
15735 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15736 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15738 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15739 * breakpoint.c (create_overlay_event_breakpoint)
15740 (create_longjmp_master_breakpoint)
15741 (create_std_terminate_master_breakpoint)
15742 (create_exception_master_breakpoint): Use all_objfiles.
15743 * linux-thread-db.c (try_thread_db_load_from_pdir)
15744 (has_libpthread): Use all_objfiles.
15745 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15746 * linespec.c (iterate_over_all_matching_symtabs)
15747 (search_minsyms_for_name): Use all_objfiles.
15748 * maint.c (maintenance_info_sections): Use all_objfiles.
15749 * main.c (captured_main_1): Use all_objfiles.
15750 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15751 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15752 * guile/scm-pretty-print.c
15753 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15754 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15755 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15756 (maintenance_print_msymbols): Use all_objfiles.
15757 * source.c (select_source_symtab): Use all_objfiles.
15758 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15759 * symfile.c (remove_symbol_file_command)
15760 (expand_symtabs_matching, map_symbol_filenames): Use
15762 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15764 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15765 * objc-lang.c (find_methods): Use all_objfiles.
15766 * objfiles.c (have_partial_symbols, have_full_symbols)
15767 (have_minimal_symbols, qsort_cmp)
15768 (default_iterate_over_objfiles_in_search_order): Use
15770 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15771 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15772 (maintenance_check_psymtabs): Use all_objfiles.
15773 (ALL_PSYMTABS): Remove.
15774 * compile/compile-object-run.c (do_module_cleanup): Use
15776 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15777 * cp-support.c (add_symbol_overload_list_qualified): Use
15779 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15781 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15782 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15784 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15785 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15786 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15788 * solib.c (solib_read_symbols): Use all_objfiles
15790 2019-01-09 Tom Tromey <tom@tromey.com>
15792 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15793 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15795 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15796 * symmisc.c (print_symbol_bcache_statistics)
15797 (print_objfile_statistics, maintenance_print_objfiles)
15798 (maintenance_info_symtabs, maintenance_check_symtabs)
15799 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15801 * source.c (forget_cached_source_info): Use all_objfiles.
15802 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15803 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15804 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15805 * objfiles.c (update_section_map): Use all_objfiles.
15806 (shared_objfile_contains_address_p): Likewise.
15807 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15808 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15810 2019-01-09 Tom Tromey <tom@tromey.com>
15812 * common/next-iterator.h: New file.
15813 * objfiles.h (class all_objfiles): New.
15814 (struct objfile_iterator): New.
15816 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15818 * NEWS: Move the description of the changed "frame", "select-frame",
15819 and "info frame" commands to the Changed commands section.
15821 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15823 * gdbtypes.c (check_stub_method_group): Remove handling of old
15825 * linespec.c (find_methods): Likewise.
15826 * stabsread.c (read_member_functions): Likewise.
15827 * valops.c (search_struct_method): Likewise.
15828 (value_struct_elt_for_reference): Likewise.
15829 * NEWS: Mention this change.
15831 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15833 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15834 print_source_lines.
15835 * source.c (print_source_lines_base): Update line number check.
15836 (print_source_lines): New function.
15837 (source_lines_range::source_lines_range): New function.
15838 * source.h (class source_lines_range): New class.
15839 (print_source_lines): New declaration.
15841 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15843 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15845 2019-01-08 Tom Tromey <tom@tromey.com>
15846 Simon Marchi <simon.marchi@ericsson.com>
15849 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15850 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15851 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15852 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15853 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15854 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15856 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15858 * source.c (select_source_symtab): Move header comment to
15859 declaration in source.h.
15860 (forget_cached_source_info_for_objfile): Likewise.
15861 (forget_cached_source_info): Likewise.
15862 (identify_source_line): Likewise.
15863 * source.h (identify_source_line): Move declaration from symtab.h
15864 and add comment from source.c
15865 (print_source_lines): Likewise.
15866 (forget_cached_source_info_for_objfile): Likewise.
15867 (forget_cached_source_info): Likewise.
15868 (select_source_symtab): Likewise.
15869 (enum print_source_lines_flag): Move definition from symtab.h.
15870 * symtab.h (identify_source_line): Move declaration to source.h.
15871 (print_source_lines): Likewise.
15872 (forget_cached_source_info_for_objfile): Likewise.
15873 (forget_cached_source_info): Likewise.
15874 (select_source_symtab): Likewise.
15875 (enum print_source_lines_flag): Move definition to source.h.
15876 * tui/tui-hooks.c: Add 'source.h' include.
15878 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15880 * source.c (print_source_lines_base): Handle requests to print
15881 reverse line number sequences, and guard against empty lines
15884 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15886 * source.c (print_source_lines_base): Fix skip of '\r' if next
15889 2019-01-06 Tom Tromey <tom@tromey.com>
15891 * c-exp.y (struct c_parse_state) <macro_original_text,
15892 expansion_obstack>: New member.
15893 (macro_original_text, expansion_obstack): Remove globals.
15894 (scan_macro_expansion, scanning_macro_expansion)
15895 (finished_macro_expansion): Update.
15896 (scan_macro_cleanup): Remove.
15897 (yylex, c_parse): Update.
15899 2019-01-06 Tom Tromey <tom@tromey.com>
15901 * c-exp.y (struct c_parse_state) <strings>: New member.
15902 (operator_stoken): Update.
15904 2019-01-06 Tom Tromey <tom@tromey.com>
15906 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15907 (union type_stack_elt) <typelist_val>: Now a pointer to
15909 (type_stack_cleanup): Don't declare.
15910 (push_typelist): Update.
15911 * parse.c (pop_typelist): Return a std::vector.
15912 (push_typelist): Take a std::vector.
15913 (follow_types): Update. Do not free args.
15914 (type_stack_cleanup): Remove.
15915 * c-exp.y (struct c_parse_state): New.
15916 (cpstate): New global.
15917 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15918 (nonempty_typelist): Update.
15919 (func_mod): Create a new vector.
15920 (c_parse): Create a c_parse_state.
15921 (check_parameter_typelist): Do not delete params.
15922 (function_method): Update. Do not delete type_list.
15924 2019-01-06 Tom Tromey <tom@tromey.com>
15927 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15929 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15930 (print_return_value): Likewise.
15932 2019-01-05 Tom Tromey <tom@tromey.com>
15934 * contrib/cleanup_check.py: Remove.
15935 * contrib/gcc-with-excheck: Remove.
15936 * contrib/exsummary.py: Remove.
15937 * contrib/excheck.py: Remove.
15939 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15941 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15942 NULL. Initialize tpprev to NULL instead of assigning it
15943 to NULL on the next statement.
15944 * windows-nat.c (windows_delete_thread): Remove check for
15945 main_thread_id before printing thread exit notifications.
15946 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15947 Remove thread ID check against main_thread_id.
15948 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15949 windows_delete_thread.
15950 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15952 2019-01-04 Tom Tromey <tom@tromey.com>
15954 * compile/compile.c (_initialize_compile): Use upper case for
15955 metasyntactic variables.
15956 * symmisc.c (_initialize_symmisc): Use upper case for
15957 metasyntactic variables.
15958 * psymtab.c (_initialize_psymtab): Use upper case for
15959 metasyntactic variables.
15960 * demangle.c (demangle_command): Use upper case for metasyntactic
15962 (_initialize_demangler): Likewise.
15963 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15966 2019-01-03 Tom Tromey <tom@tromey.com>
15968 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15970 2019-01-03 Tom Tromey <tom@tromey.com>
15972 * python/py-symtab.c (salpy_str): Update.
15973 (struct salpy_sal_object) <symtab>: Now a PyObject.
15974 (salpy_dealloc): Update.
15975 (del_objfile_sal): Use gdbpy_ref.
15977 2019-01-03 Tom Tromey <tom@tromey.com>
15979 * python/py-type.c (convert_field): Use new_reference. Return
15981 (make_fielditem): Return gdbpy_ref.
15982 (typy_fields): Update.
15983 (typy_getitem): Update.
15984 (field_name): Return gdbpy_ref. Use new_reference.
15985 (typy_iterator_iternext): Update.
15987 2019-01-03 Tom Tromey <tom@tromey.com>
15989 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15991 2019-01-03 Tom Tromey <tom@tromey.com>
15993 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15994 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15995 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15996 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15997 (pspy_set_type_printers): Likewise.
15998 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15999 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16000 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16001 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16002 (objfpy_set_type_printers): Likewise.
16004 2019-01-03 Tom Tromey <tom@tromey.com>
16006 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16007 (gdbpy_print_stack): Use gdbpy_err_fetch.
16008 * python/python-internal.h (class gdbpy_err_fetch): New class.
16009 (class gdbpy_enter) <m_error_type, m_error_value,
16010 m_error_traceback>: Remove.
16011 <m_error>: New member.
16012 (gdbpy_exception_to_string): Don't declare.
16013 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16014 * python/py-value.c (convert_value_from_python): Use
16016 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16017 gdbpy_exception_to_string.
16018 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16019 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16022 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16024 * linux-nat.c (delete_lwp_cleanup): Delete.
16025 (struct lwp_deleter): New struct.
16026 (lwp_info_up): New typedef.
16027 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16030 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16032 * linux-fork.c (class scoped_switch_fork_info): New class.
16033 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16035 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16037 * valops.c (find_overload_match): Remove use of null_cleanup, and
16038 calls to do_cleanups.
16040 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16042 * compile/compile-cplus-types.c
16043 (compile_cplus_instance::decl_name): Handle changes to
16045 * cp-support.c (cp_func_name): Update header comment, update
16047 * cp-support.h (cp_func_name): Update return type in declaration.
16048 * valops.c (find_overload_match): Move temp_func local to top
16049 level of function and change its type. Use temp_func to hold and
16050 delete temporary string obtained from cp_func_name.
16052 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16054 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16055 gdb::char_vector, remove cleanup, and update uses of `msg`.
16057 2019-01-03 Jim Wilson <jimw@sifive.com>
16059 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16061 2019-01-02 Tom Tromey <tom@tromey.com>
16063 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16064 (tdesc_parse_xml): Remove cleanups.
16065 * target-descriptions.h (make_cleanup_free_target_description):
16067 (target_desc_deleter): New struct.
16068 (target_desc_up): New typedef.
16069 * target-descriptions.c (target_desc_deleter::operator()): Rename
16070 from free_target_description.
16071 (make_cleanup_free_target_description): Remove.
16073 2019-01-02 Tom Tromey <tom@tromey.com>
16075 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16076 constructor, destructor.
16077 (linespec_parser): Remove typedef.
16078 (~linespec_parser): Rename from linespec_parser_delete.
16079 (linespec_lex_to_end, linespec_complete_label)
16080 (linespec_complete): Update.
16081 (decode_line_full): Remove cleanups.
16082 (decode_line_1): Update.
16084 2019-01-02 Tom Tromey <tom@tromey.com>
16086 * python/python-internal.h (inferior_to_inferior_object): Change
16088 * python/py-exitedevent.c (create_exited_event_object): Update.
16089 * python/py-inferior.c (inferior_to_inferior_object): Return
16091 (python_new_inferior, python_inferior_deleted)
16092 (thread_to_thread_object, delete_thread_object)
16093 (build_inferior_list, gdbpy_selected_inferior): Update.
16094 * python/py-infthread.c (create_thread_object): Update. Also fail
16095 if inferior_to_inferior_object fails.
16097 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16099 * inferior.h (class inferior) <displaced_step_state>: New field.
16100 * infrun.h (struct displaced_step_state): Move here from
16101 infrun.c. Initialize fields, add constructor.
16102 <inf>: Remove field.
16103 <reset>: New method.
16104 * infrun.c (struct displaced_step_inferior_state): Move to
16106 (displaced_step_inferior_states): Remove.
16107 (get_displaced_stepping_state): Adust.
16108 (displaced_step_in_progress_any_inferior): Adjust.
16109 (displaced_step_in_progress_thread): Adjust.
16110 (displaced_step_in_progress): Adjust.
16111 (add_displaced_stepping_state): Remove.
16112 (get_displaced_step_closure_by_addr): Adjust.
16113 (remove_displaced_stepping_state): Remove.
16114 (infrun_inferior_exit): Call displaced_step_state.reset.
16115 (use_displaced_stepping): Don't check for NULL.
16116 (displaced_step_prepare_throw): Call
16117 get_displaced_stepping_state.
16118 (displaced_step_fixup): Don't check for NULL.
16119 (prepare_for_detach): Don't check for NULL.
16121 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16123 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16124 in case of call that did not complete.
16126 2019-01-02 Andrey Utkin <autkin@undo.io>
16128 * symfile.c (find_separate_debug_file): Fix search of debug files for
16131 2019-01-02 Tom Tromey <tom@tromey.com>
16133 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16135 * python/py-frame.c (frapy_older): Remove cast.
16136 (frapy_newer): Likewise.
16137 * python/py-breakpoint.c (local_setattro): Remove cast.
16138 * python/py-arch.c (archpy_name): Remove local variable.
16139 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16141 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16143 * unittests/basic_string_view/element_access/char/empty.cc:
16144 Fix year range in copyright header.
16146 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16148 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16150 <operator==>: Update with for removed field.
16152 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16153 <isa_features>: ...this.
16154 <abi_features>: New field.
16155 (riscv_isa_flen): Update comment.
16156 (riscv_abi_xlen): New declaration.
16157 (riscv_abi_flen): New declaration.
16158 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16160 (riscv_abi_xlen): New function.
16161 (riscv_isa_flen): Update to get answer from isa_features.
16162 (riscv_abi_flen): New function.
16163 (riscv_has_fp_abi): Update to get answer from abi_features.
16164 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16166 (riscv_call_info) <xlen, flen>: Update comment.
16167 (riscv_call_arg_struct): Remove invalid assertions
16168 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16170 (riscv_gdbarch_init): Gather isa features and abi features
16171 separately, ensure both match on the gdbarch when reusing an old
16172 gdbarch. Relax an error check to allow 32-bit abi float to run on
16173 a target with 64-bit float hardware.
16175 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16177 * source.c (search_command_helper): Stop reverse search
16178 when line 1 has been searched.
16180 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16182 * record-full.c (record_full_base_target::close): Rewrite
16183 record_full_core_buf_list free logic.
16185 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16187 * break-catch-syscall.c (print_one_catch_syscall): xfree
16190 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16192 * top.c (print_gdb_version): Update Copyright year in version
16195 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16197 Update copyright year range in all GDB files.
16199 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16201 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16203 For older changes see ChangeLog-2018.
16209 version-control: never