1 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
3 * symtab.c (symbol_search::compare_search_syms): Update header
5 (global_symbol_searcher::is_suitable_msymbol): New function.
6 (global_symbol_searcher::expand_symtabs): New function.
7 (global_symbol_searcher::add_matching_symbols): New function.
8 (global_symbol_searcher::add_matching_msymbols): New function.
9 (global_symbol_searcher::search): Move most of the content
10 into the new functions above, and call them as needed.
11 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
13 (global_symbol_searcher) <add_matching_symbols>: New member
15 (global_symbol_searcher) <add_matching_msymbols>: New member
17 (global_symbol_searcher) <is_suitable_msymbol>: New member
20 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
22 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
23 -symbol-info-module-variables entries.
24 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
25 (mi_cmd_symbol_info_module_variables): Declare.
27 (module_symbol_search_iterator): New typedef.
28 (output_module_symbols_in_single_module_and_file): New function.
29 (output_module_symbols_in_single_module): New function.
30 (mi_info_module_functions_or_variables): New function.
31 (mi_cmd_symbol_info_module_functions): New function.
32 (mi_cmd_symbol_info_module_variables): New function.
33 * NEWS: Mention new MI command.
35 2019-12-03 Christian Biesinger <cbiesinger@google.com>
37 * bcache.c (hash): Remove.
38 (hash_continue): Remove.
39 * bcache.h (hash): Remove.
40 (hash_continue): Remove.
41 (struct bcache) <ctor>: Update.
42 * psymtab.c (psymbol_hash): Update.
43 * stabsread.c (hashname): Update.
44 * utils.h (fast_hash): Add an argument for a start value,
47 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
48 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
49 (destroy_block_symbol_cache): New function.
50 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
51 (resize_symbol_cache): Likewise.
53 2019-12-02 Tom Tromey <tom@tromey.com>
55 * unittests/tui-selftests.c (run_tests): Make conditional.
56 (_initialize_tui_selftest): Make conditional.
58 2019-12-02 Christian Biesinger <cbiesinger@google.com>
60 * aix-thread.c (debug_aix_thread): Change type to bool.
62 2019-12-02 Luis Machado <luis.machado@linaro.org>
64 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
66 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
68 * dwarf2read.c (read_tag_string_type): Read the fields required to
69 make a dynamic string, and possibly create a dynamic range for the
71 (attr_to_dynamic_prop): Setup is_reference based on the type of
72 attribute being processed.
73 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
74 (resolve_dynamic_array): Rename to...
75 (resolve_dynamic_array_or_string): ...this, update header comment,
76 and accept TYPE_CODE_STRING.
77 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
79 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
81 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
82 of its implementation from...
83 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
86 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
88 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
89 create a range with stride where appropriate.
90 * f-valprint.c: Include 'gdbarch.h'.
91 (f77_print_array_1): Take the stride into account when walking the
92 array. Also convert the stride into addressable units.
93 * gdbtypes.c (create_range_type): Initialise the stride to
95 (create_range_type_with_stride): New function, initialise the
96 range as normal, and then setup the stride.
97 (has_static_range): Include the stride here. Also change the
99 (create_array_type_with_stride): Consider the range stride if the
100 array isn't given its own stride.
101 (resolve_dynamic_range): Resolve the stride if needed.
102 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
103 (struct range_bounds) <flag_is_byte_stride>: New member variable.
104 (TYPE_BIT_STRIDE): Define.
105 (TYPE_ARRAY_BIT_STRIDE): Define.
106 (create_range_type_with_stride): Declare.
107 * valarith.c (value_subscripted_rvalue): Take range stride into
108 account when walking the array.
110 2019-12-01 Tom Tromey <tom@tromey.com>
112 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
115 2019-12-01 Tom Tromey <tom@tromey.com>
117 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
119 * unittests/tui-selftests.c: New file.
120 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
122 2019-12-01 Tom Tromey <tom@tromey.com>
124 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
126 2019-12-01 Tom Tromey <tom@tromey.com>
128 * NEWS: Document new settings.
129 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
130 * tui/tui-win.c (_initialize_tui_win): Add border style
132 * tui/tui-io.h (tui_apply_style): Declare.
133 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
135 (apply_ansi_escape, tui_set_reverse_mode): Update.
136 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
137 Add "skip_intensity" parameter.
138 <changed>: New member.
139 <do_set_value>: Declare.
140 (tui_border_style, tui_active_border_style): Declare.
141 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
143 (cli_style_option): Initialize "changed".
144 (cli_style_option::do_set_value): New function.
145 (cli_style_option::add_setshow_commands): Add "skip_intensity"
147 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
148 (_initialize_cli_style): Update. Create TUI border style
151 2019-12-01 Tom Tromey <tom@tromey.com>
153 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
155 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
157 * tui/tui-win.h (compact_source): Declare.
158 * tui/tui-win.c (compact_source): New global.
159 (tui_set_compact_source, tui_show_compact_source): New functions.
160 (_initialize_tui_win): Add "compact-source" setting.
161 * tui/tui-source.c (tui_source_window::set_contents): Handle
162 compact_source setting.
163 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
164 * NEWS: Document new setting.
166 2019-11-30 Tom Tromey <tom@tromey.com>
168 * dwarf2read.c (dwarf2_add_field): Include field offset when
169 computing variant part length.
171 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
172 * NEWS: Mention define-prefix. Tell that command names can now
173 contain a . character.
175 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
177 * command.h (valid_cmd_char_p): Declare.
178 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
179 the check of valid command char.
180 (find_command_name_length, valid_user_defined_cmd_name_p): Use
182 * cli/cli-script.c (validate_comname): Likewise.
183 * completer.c (gdb_completer_command_word_break_characters):
184 Do not remove . from the word break char, update comments.
185 (complete_line_internal_1): Use valid_cmd_char_p.
186 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
187 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
189 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
191 * cli/cli-script.c (do_define_command): Ensure a redefined
192 prefix command is kept as a prefix command.
193 (define_prefix_command): New function.
194 (show_user_1): Report user defined prefixes.
195 (_initialize_cli_script): Create the new 'define-prefix' command.
196 Add completers for 'define' and 'document'.
197 * top.c (execute_command): If command is a user-defined prefix only
198 command, report the list of commands for this prefix command.
200 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
202 * valops.c (find_oload_champ): Improve debug output.
204 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
206 * valops.c (find_oload_champ): Print part of debug messages
207 before the badness vector is std::move'd.
209 2019-11-28 Tom Tromey <tom@tromey.com>
211 * value.c (creal_internal_fn): Fix comment.
213 2019-11-28 Tom Tromey <tom@tromey.com>
215 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
216 flag_bound_evaluated>: Now unsigned.
218 2019-11-28 Tom Tromey <tom@tromey.com>
220 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
223 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
225 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
227 * jit.c (jit_unregister_code): Add debug print to match
230 2019-11-27 Christian Biesinger <cbiesinger@google.com>
232 * NEWS: Mention the new multithreaded symbol loading.
234 2019-11-27 Christian Biesinger <cbiesinger@google.com>
236 * maint.c (n_worker_threads): Default to 0.
237 (worker_threads_disabled): New function.
238 * maint.h (worker_threads_disabled): New function.
239 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
240 here if worker_threads_disabled () is true.
241 (minimal_symbol_reader::install): Skip all threading if
242 worker_threads_disabled () is true.
244 2019-11-27 Christian Biesinger <cbiesinger@google.com>
246 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
247 hash code if possible.
248 (add_minsym_to_demangled_hash_table): Likewise.
249 (minimal_symbol_reader::install): Compute the hash codes for msymbol
250 on the background thread.
251 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
254 2019-11-27 Christian Biesinger <cbiesinger@google.com>
256 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
257 of the mangled name on the background thread.
258 * symtab.c (symbol_set_names): Allow passing in the hash of the
260 * symtab.h (symbol_set_names): Likewise.
262 2019-11-27 Kevin Buettner <kevinb@redhat.com>
264 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
265 physnames are computed for inherited DIEs.
267 2019-11-27 Tom Tromey <tromey@adacore.com>
269 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
271 * cp-support.c: Remove unnecessary backslashes.
273 2019-11-27 Christian Biesinger <cbiesinger@google.com>
275 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
276 with sym->set_linkage_name.
277 * coffread.c (coff_read_enum_type): Likewise.
278 * mdebugread.c (parse_symbol): Likewise.
279 * stabsread.c (patch_block_stabs): Likewise.
280 (define_symbol): Likewise.
281 (read_enum_type): Likewise.
282 (common_block_end): Likewise.
283 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
285 (SYMBOL_SET_LINKAGE_NAME): Remove.
286 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
287 with sym->set_linkage_name.
289 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
291 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
292 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
293 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
294 * NEWS: Mention new MI command.
296 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
298 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
299 '-symbol-info-types', and '-symbol-info-variables'.
300 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
301 (mi_cmd_symbol_info_types): Declare.
302 (mi_cmd_symbol_info_variables): Declare.
303 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
304 (output_debug_symbol): New function.
305 (output_nondebug_symbol): New function.
306 (mi_symbol_info): New function.
307 (mi_info_functions_or_variables): New function.
308 (mi_cmd_symbol_info_functions): New function.
309 (mi_cmd_symbol_info_types): New function.
310 (mi_cmd_symbol_info_variables): New function.
311 * NEWS: Mention new commands.
313 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
315 * symtab.c (symbol_to_info_string): New function, most content
316 moved from print_symbol_info, but updated to return a std::string.
317 (print_symbol_info): Update to use symbol_to_info_string and print
319 * symtab.h (symbol_to_info_string): Declare new function.
321 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
323 * python/python.c (gdbpy_rbreak): Convert to using
324 global_symbol_searcher.
325 * symtab.c (file_matches): Convert return type to bool, change
326 file list to std::vector, update header comment.
327 (search_symbols): Rename to...
328 (global_symbol_searcher::search): ...this and update now its
329 a member function of global_symbol_searcher. Take account of the
330 changes to file_matches.
331 (symtab_symbol_info): Convert to using global_symbol_searcher.
332 (rbreak_command): Likewise.
333 (search_module_symbols): Likewise.
334 * symtab.h (enum symbol_search): Update comment.
335 (search_symbols): Remove declaration.
336 (class global_symbol_searcher): New class.
338 2019-11-26 Tom Tromey <tromey@adacore.com>
340 * cp-support.c (_initialize_cp_support): Conditionally initialize
341 gdb_demangle_attempt_core_dump.
343 2019-11-26 Tom Tromey <tom@tromey.com>
345 * python/py-function.c (fnpy_init): Update.
346 * value.h (add_internal_function): Adjust declaration.
347 * value.c (function_destroyer): Remove.
348 (do_add_internal_function): Don't set destroyer or copy name.
349 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
351 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
352 (cmdpy_init): Set name_allocated.
353 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
355 (~cmd_list_element): Free "name" if needed.
357 2019-11-26 Tom Tromey <tom@tromey.com>
359 * value.h (add_internal_function): Add new overload. Move
360 documentation from value.h.
361 * value.c (do_add_internal_function): New function.
362 (add_internal_function): Use it. Add new overload.
363 (function_destroyer): Don't free doc.
364 * python/py-function.c (fnpy_init): Update.
366 2019-11-26 Tom Tromey <tom@tromey.com>
368 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
369 (cmdpy_init): Set "doc_allocated".
371 2019-11-26 Tom Tromey <tom@tromey.com>
373 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
374 name of worker thread.
375 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
377 * configure, config.in: Rebuild.
379 2019-11-26 Tom Tromey <tom@tromey.com>
381 * python/python.c (class gdbpy_gil): New.
382 (struct gdbpy_event): Add constructor, destructor, operator().
383 (gdbpy_post_event): Use run_on_main_thread.
384 (gdbpy_initialize_events): Remove.
385 (do_start_initialization): Update.
387 2019-11-26 Tom Tromey <tom@tromey.com>
390 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
391 commands. Call update_thread_pool_size.
392 (update_thread_pool_size, maintenance_set_worker_threads): New
394 (n_worker_threads): New global.
396 2019-11-26 Christian Biesinger <cbiesinger@google.com>
397 Tom Tromey <tom@tromey.com>
399 * minsyms.c (minimal_symbol_reader::install): Use
401 * gdbsupport/parallel-for.h: New file.
402 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
404 2019-11-26 Christian Biesinger <cbiesinger@google.com>
405 Tom Tromey <tom@tromey.com>
407 * gdbsupport/thread-pool.h: New file.
408 * gdbsupport/thread-pool.c: New file.
409 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
410 (HFILES_NO_SRCDIR): Add thread-pool.h.
412 2019-11-26 Tom Tromey <tom@tromey.com>
414 * event-top.h (thread_local_segv_handler): Declare.
415 * event-top.c (thread_local_segv_handler): New global.
416 (install_handle_sigsegv, handle_sigsegv): New functions.
417 (async_init_signals): Install SIGSEGV handler.
418 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
420 (report_failed_demangle): New function.
421 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
422 handler-setting code, instead use segv_handler. Run warning code
425 2019-11-26 Tom Tromey <tom@tromey.com>
427 * run-on-main-thread.c: New file.
428 * run-on-main-thread.h: New file.
429 * unittests/main-thread-selftests.c: New file.
430 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
431 main-thread-selftests.c.
432 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
433 (COMMON_SFILES): Add run-on-main-thread.c.
435 2019-11-26 Tom Tromey <tom@tromey.com>
437 * main.c (setup_alternate_signal_stack): Remove.
438 (captured_main_1): Use gdb::alternate_signal_stack.
439 * gdbsupport/alt-stack.h: New file.
441 2019-11-26 Tom Tromey <tom@tromey.com>
443 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
445 (save_original_signals_state, restore_original_signals_state): Use
447 * linux-nat.c (block_child_signals, restore_child_signals_mask)
448 (_initialize_linux_nat): Use gdb_sigmask.
449 * guile/guile.c (_initialize_guile): Use block_signals.
450 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
451 * gdbsupport/gdb-sigmask.h: New file.
452 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
453 * cp-support.c (gdb_demangle): Use gdb_sigmask.
454 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
456 * configure, config.in: Rebuild.
457 * gdbsupport/block-signals.h: New file.
459 2019-11-26 Tom Tromey <tom@tromey.com>
461 * acinclude.m4: Include ax_pthread.m4.
462 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
463 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
464 (CLIBS): Use PTHREAD_LIBS.
465 (aclocal_m4_deps): Add ax_pthread.m4.
466 * config.in, configure: Rebuild.
467 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
469 2019-11-26 Tom Tromey <tom@tromey.com>
471 * symtab.h (struct minimal_symbol) <name_set>: New member.
472 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
473 Don't call symbol_set_names.
474 (minimal_symbol_reader::install): Call symbol_set_names.
476 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
478 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
479 restore_active_ext_lang, as GIL is needed for (indirectly)
480 called PyOS_InterruptOccurred.
482 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
484 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
487 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
489 * remote-sim.c (simulator_command): Make static, remove
492 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
494 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
496 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
497 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
499 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
501 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
503 * unittests/basic_string_view/element_access/char/1.cc (test01):
506 * unittests/basic_string_view/element_access/char/empty.cc (main):
508 * unittests/basic_string_view/element_access/char/front_back.cc
511 * unittests/basic_string_view/inserters/char/2.cc (test05):
514 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
517 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
520 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
522 * unittests/basic_string_view/operations/compare/char/1.cc
525 * unittests/basic_string_view/operations/compare/char/13650.cc
527 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
530 * unittests/basic_string_view/operations/data/char/1.cc (test01):
533 * unittests/basic_string_view/operations/find/char/1.cc (test01):
536 * unittests/basic_string_view/operations/find/char/2.cc (test02):
539 * unittests/basic_string_view/operations/find/char/3.cc (test03):
542 * unittests/basic_string_view/operations/find/char/4.cc (main):
544 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
547 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
550 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
553 * unittests/basic_string_view/operations/substr/char/1.cc
556 * unittests/basic_string_view/operators/char/2.cc (main):
558 * unittests/optional/assignment/1.cc (test): Likewise.
559 * unittests/optional/assignment/2.cc (test): Likewise.
560 * unittests/optional/assignment/3.cc (test): Likewise.
561 * unittests/optional/assignment/4.cc (test): Likewise.
562 * unittests/optional/assignment/5.cc (test): Likewise.
563 * unittests/optional/assignment/6.cc (test): Likewise.
564 * unittests/optional/assignment/7.cc (test): Likewise.
565 * unittests/optional/cons/copy.cc (test): Likewise.
566 * unittests/optional/cons/default.cc (test): Likewise.
567 * unittests/optional/cons/move.cc (test): Likewise.
568 * unittests/optional/cons/value.cc (test): Likewise.
569 * unittests/optional/in_place.cc (test): Likewise.
570 * unittests/optional/observers/1.cc (test): Likewise.
571 * unittests/optional/observers/2.cc (test): Likewise.
573 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
575 * tui-win.h (tui_set_var_cmd): Remove.
576 * tui-win.c (tui_set_var_cmd): Make static.
578 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
580 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
581 rbreak_command_wrapper): Remove.
582 * symtab.c (rbreak_command_wrapper): Remove.
584 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
586 * inferior.h (info_terminal_command): Remove declaration.
587 * inflow.c (info_terminal_command): Make static.
589 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
591 * inferior.c (exit_inferior_silent): Remove.
593 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
595 * dictionary.c (dict_empty, mdict_empty): Remove.
596 * dictionary.c (mdict_empty): Remove.
598 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
600 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
601 (arc_insn_get_memory_offset): Likewise.
602 (arc_insn_dump): Likewise.
603 * cp-support.c (test_cp_symbol_name_matches): Likewise.
604 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
605 * dictionary.c (dict_iterator_next): Likewise.
606 (dict_iter_match_first): Likewise.
607 (dict_iter_match_next): Likewise.
608 * f-lang.c (evaluate_subexp_f): Likewise.
609 * hppa-tdep.c (hppa_read_pc): Likewise.
610 * i386-tdep.c (i386_floatformat_for_type): Likewise.
611 * parse.c (write_exp_elt_msym): Likewise.
612 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
613 * remote.c (remote_packet_size): Likewise.
614 (remote_notif_stop_parse): Likewise.
615 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
616 * s12z-tdep.c (s12z_disassemble_info): Likewise.
617 * source.c (prepare_path_for_appending): Likewise.
618 * sparc64-linux-tdep.c
619 (sparc64_linux_handle_segmentation_fault); Likewise.
620 * stack.c (frame_selection_by_function_completer): Likewise.
622 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
624 * completer.c (set_gdb_completion_word_break_characters):
627 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
629 * dwarf-index-write.c: Include dwarf-index-write.h.
630 * mi/mi-interp.c: Include mi/mi-interp.h.
632 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
634 * aarch32-tdep.c: Include aarch32-tdep.h.
635 * aarch32-tdep.h: Forward-declare struct target_desc.
637 2019-11-26 Christian Biesinger <cbiesinger@google.com>
639 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
641 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
642 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
644 2019-11-25 Tom de Vries <tdevries@suse.de>
646 * contrib/words.sh: Add -c option.
648 2019-11-25 Christian Biesinger <cbiesinger@google.com>
650 * solib.c (solib_find_1): Change int to bool.
651 (exec_file_find): Change int to bool.
652 (solib_find): Change int to bool.
653 (solib_read_symbols): Change int to bool.
654 (solib_used): Change int to bool.
655 (solib_add): Change int to bool.
656 (info_sharedlibrary_command): Change int to bool.
657 (solib_contains_address_p): Change int to bool.
658 (solib_keep_data_in_core): Change int to bool.
659 (in_solib_dynsym_resolve_code): Change int to bool.
660 (reload_shared_libraries_1): Change int to bool.
661 (gdb_sysroot_changed): Change int to bool.
662 * solib.h (solib_read_symbols): Change int to bool.
663 (solib_contains_address_p): Change int to bool.
664 (solib_keep_data_in_core): Change int to bool.
665 (in_solib_dynsym_resolve_code): Change int to bool.
666 (libpthread_name_p): Change int to bool.
668 2019-11-25 Luis Machado <luis.machado@linaro.org>
670 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
671 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
672 (remote_packet_max_chars): New static global.
673 (show_remote_packet_max_chars): New function.
674 (remote_target::putpkt_binary): Adjust to use new
675 remote_packet_max_chars option.
676 (remote_target::getpkt_or_notif_sane_1): Likewise.
677 (_initialize_remote): Register new remote-packet-max-chars option.
679 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
681 * m68k-linux-nat.c: Include gdbarch.h.
683 2019-11-24 Tom Tromey <tom@tromey.com>
685 * symfile.c (read_symbols): Update.
686 * psymtab.c (require_partial_symbols): Change type of "verbose" to
688 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
689 (psym_lookup_symbol, psym_find_last_source_symtab)
690 (psym_forget_cached_source_info, psym_print_stats)
691 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
692 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
693 (psym_map_matching_symbols, psym_expand_symtabs_matching)
694 (psym_find_compunit_symtab_by_address)
695 (maintenance_print_psymbols, maintenance_info_psymtabs)
696 (maintenance_check_psymtabs): Update.
697 * psymtab.h (require_partial_symbols): Change type of "verbose" to
700 2019-11-22 Tom Tromey <tom@tromey.com>
702 * observable.h: Update comments.
704 2019-11-22 Tom Tromey <tromey@adacore.com>
706 * ada-tasks.c (ada_task_is_alive): Make parameter const.
707 (print_ada_task_info): Don't try to fetch thread id if task is not
710 2019-11-22 Christian Biesinger <cbiesinger@google.com>
713 * ada-lang.c (sort_choices): Update.
714 (ada_print_symbol_signature): Update.
715 (resolve_subexp): Update.
716 (ada_parse_renaming): Update.
717 (ada_read_renaming_var_value): Update.
718 (lesseq_defined_than): Update.
719 (remove_extra_symbols): Update.
720 (remove_irrelevant_renamings): Update.
721 (ada_add_block_symbols): Update.
722 (ada_collect_symbol_completion_matches): Update.
723 (ada_is_renaming_symbol): Update.
724 (aggregate_assign_from_choices): Update.
725 (ada_evaluate_subexp): Update.
726 (ada_has_this_exception_support): Update.
727 (ada_is_non_standard_exception_sym): Update.
728 (ada_add_exceptions_from_frame): Update.
729 (ada_add_global_exceptions): Update.
730 (ada_print_subexp): Update.
731 * ax-gdb.c (gen_var_ref): Update.
732 (gen_maybe_namespace_elt): Update.
733 (gen_expr_for_cast): Update.
736 * blockframe.c (find_pc_partial_function): Update.
737 * breakpoint.c (print_breakpoint_location): Update.
738 (update_static_tracepoint): Update.
739 * btrace.c (ftrace_print_function_name): Update.
740 (ftrace_function_switched): Update.
741 * buildsym.c (find_symbol_in_list): Update.
743 * c-typeprint.c (c_print_typedef): Update.
744 (c_type_print_template_args): Update.
745 * cli/cli-cmds.c (edit_command): Update.
746 (list_command): Update.
747 (print_sal_location): Update.
748 * coffread.c (patch_opaque_types): Update.
749 (process_coff_symbol): Update.
750 (coff_read_enum_type): Update.
751 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
752 (convert_one_symbol): Update.
753 (hash_symname): Update.
754 (eq_symname): Update.
755 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
756 * compile/compile-cplus-types.c (debug_print_scope): Update.
757 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
758 * compile/compile-object-load.c (get_out_value_type): Update.
759 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
760 (search_symbol_list): Update.
761 (cp_lookup_symbol_imports_or_template): Update.
762 * cp-support.c (overload_list_add_symbol): Update.
763 * ctfread.c (psymtab_to_symtab): Update.
764 * dbxread.c (cp_set_block_scope): Update.
765 * dictionary.c (iter_match_first_hashed): Update.
766 (iter_match_next_hashed): Update.
767 (insert_symbol_hashed): Update.
768 (iter_match_next_linear): Update.
769 * dictionary.h: Update.
770 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
771 (locexpr_describe_location_piece): Update.
772 (locexpr_describe_location_1): Update.
773 (locexpr_generate_c_location): Update.
774 (loclist_describe_location): Update.
775 (loclist_generate_c_location): Update.
776 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
777 (read_func_scope): Update.
778 (process_enumeration_scope): Update.
779 (new_symbol): Update.
780 (dwarf2_const_value): Update.
781 (dwarf2_symbol_mark_computed): Update.
782 * eval.c (evaluate_funcall): Update.
783 (evaluate_subexp_standard): Update.
784 * expprint.c (print_subexp_standard): Update.
785 (dump_subexp_body_standard): Update.
786 * f-valprint.c (info_common_command_for_block): Update.
787 * findvar.c (get_hosting_frame): Update.
788 (default_read_var_value): Update.
789 * go-lang.c (go_symbol_package_name): Update.
790 * guile/scm-block.c (bkscm_print_block_smob): Update.
791 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
792 (gdbscm_symbol_name): Update.
793 (gdbscm_symbol_linkage_name): Update.
794 (gdbscm_symbol_print_name): Update.
795 * infcall.c (get_function_name): Update.
796 * infcmd.c (jump_command): Update.
797 (finish_command): Update.
798 * infrun.c (insert_exception_resume_breakpoint): Update.
799 * linespec.c (canonicalize_linespec): Update.
800 (create_sals_line_offset): Update.
801 (convert_linespec_to_sals): Update.
802 (complete_label): Update.
803 (find_label_symbols_in_block): Update.
804 * m2-typeprint.c (m2_print_typedef): Update.
805 * mdebugread.c (mdebug_reg_to_regnum): Update.
806 (parse_symbol): Update.
807 (mylookup_symbol): Update.
808 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
809 (list_args_or_locals): Update.
810 * objc-lang.c (compare_selectors): Update.
811 (info_selectors_command): Update.
812 (compare_classes): Update.
813 (info_classes_command): Update.
815 * p-typeprint.c (pascal_print_typedef): Update.
816 * printcmd.c (build_address_symbolic): Update.
817 (info_address_command): Update.
818 (print_variable_and_value): Update.
819 * python/py-framefilter.c (extract_sym): Update.
820 (py_print_single_arg): Update.
821 * python/py-symbol.c (sympy_str): Update.
822 (sympy_get_name): Update.
823 (sympy_get_linkage_name): Update.
824 * python/python.c (gdbpy_rbreak): Update.
825 * record-btrace.c (btrace_get_bfun_name): Update.
826 (btrace_call_history): Update.
827 * rust-lang.c (rust_print_typedef): Update.
828 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
829 * stabsread.c (stab_reg_to_regnum): Update.
830 (define_symbol): Update.
831 (read_enum_type): Update.
832 (common_block_end): Update.
833 (cleanup_undefined_types_1): Update.
834 (scan_file_globals): Update.
835 * stack.c (print_frame_arg): Update.
836 (print_frame_args): Update.
837 (find_frame_funname): Update.
838 (info_frame_command_core): Update.
839 (iterate_over_block_locals): Update.
840 (print_block_frame_labels): Update.
841 (do_print_variable_and_value): Update.
842 (iterate_over_block_arg_vars): Update.
843 (return_command): Update.
844 * symmisc.c (dump_symtab_1): Update.
845 (print_symbol): Update.
846 * symtab.c (eq_symbol_entry): Update.
847 (symbol_cache_dump): Update.
848 (lookup_language_this): Update.
849 (find_pc_sect_line): Update.
850 (skip_prologue_sal): Update.
851 (symbol_search::compare_search_syms): Update.
852 (treg_matches_sym_type_name): Update.
853 (search_symbols): Update.
854 (print_symbol_info): Update.
855 (rbreak_command): Update.
856 (completion_list_add_symbol): Update.
857 (find_gnu_ifunc): Update.
858 (get_symbol_address): Update.
859 (search_module_symbols): Update.
860 (info_module_subcommand): Update.
861 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
862 (SYMBOL_LINKAGE_NAME): Remove.
863 (SYMBOL_DEMANGLED_NAME): Remove.
864 (SYMBOL_PRINT_NAME): Remove.
865 (SYMBOL_SEARCH_NAME): Remove.
866 * tracepoint.c (set_traceframe_context): Update.
867 (validate_actionline): Update.
868 (collection_list::collect_symbol): Update.
869 (encode_actions_1): Update.
870 (info_scope_command): Update.
871 (print_one_static_tracepoint_marker): Update.
872 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
873 * valops.c (address_of_variable): Update.
874 (find_overload_match): Update.
875 (find_oload_champ): Update.
877 2019-11-22 Christian Biesinger <cbiesinger@google.com>
879 * ada-lang.c (ada_lookup_simple_minsym): Update.
880 (ada_collect_symbol_completion_matches): Update.
881 * ada-tasks.c (read_atcb): Update.
882 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
883 (amd64_windows_skip_trampoline_code): Update.
884 * arm-tdep.c (skip_prologue_function): Update.
885 (arm_skip_stack_protector): Update.
886 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
887 (arm_wince_skip_main_prologue): Update.
888 * ax-gdb.c (gen_expr): Update.
889 * block.c (call_site_for_pc): Update.
890 * blockframe.c (find_pc_partial_function): Update.
891 * breakpoint.c (set_breakpoint_location_function): Update.
892 * btrace.c (ftrace_print_function_name): Update.
893 (ftrace_function_switched): Update.
894 * c-valprint.c (print_unpacked_pointer): Update.
895 * coffread.c (coff_symfile_read): Update.
896 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
897 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
898 * dwarf-index-write.c (write_psymbols): Update.
899 * dwarf2loc.c (call_site_to_target_addr): Update.
900 (func_verify_no_selftailcall): Update.
901 (tailcall_dump): Update.
902 (call_site_find_chain_1): Update.
903 (dwarf_expr_reg_to_entry_parameter): Update.
904 * elfread.c (elf_gnu_ifunc_record_cache): Update.
905 * eval.c (evaluate_funcall): Update.
906 (evaluate_subexp_standard): Update.
907 (evaluate_subexp_for_sizeof): Update.
908 * expprint.c (print_subexp_standard): Update.
909 (dump_subexp_body_standard): Update.
910 * frame.c (get_prev_frame_always_1): Update.
911 * frv-tdep.c (frv_skip_main_prologue): Update.
912 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
913 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
914 (gnuv3_get_typename_from_type_info): Update.
915 (gnuv3_skip_trampoline): Update.
916 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
917 * i386-tdep.c (i386_skip_main_prologue): Update.
918 (i386_pe_skip_trampoline_code): Update.
919 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
920 * infcall.c (get_function_name): Update.
921 * linespec.c (minsym_found): Update.
922 * linux-fork.c (info_checkpoints_command): Update.
923 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
924 (m32c_m16c_pointer_to_address): Update.
925 * maint.c (maintenance_translate_address): Update.
926 * minsyms.c (add_minsym_to_hash_table): Update.
927 (add_minsym_to_demangled_hash_table): Update.
928 (lookup_minimal_symbol_mangled): Update.
929 (lookup_minimal_symbol_demangled): Update.
930 (lookup_minimal_symbol_linkage): Update.
931 (lookup_minimal_symbol_text): Update.
932 (lookup_minimal_symbol_by_pc_name): Update.
933 (minimal_symbol_is_less_than): Update.
934 (compact_minimal_symbols): Update.
935 (build_minimal_symbol_hash_tables): Update.
936 (find_solib_trampoline_target): Update.
937 * mips-tdep.c (mips_stub_frame_sniffer): Update.
938 (mips_skip_pic_trampoline_code): Update.
939 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
940 * objc-lang.c (info_selectors_command): Update.
941 (info_classes_command): Update.
942 (find_methods): Update.
944 * p-valprint.c (pascal_val_print): Update.
945 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
946 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
947 * printcmd.c (build_address_symbolic): Update.
948 (info_symbol_command): Update.
949 * psymtab.c (psymbol_name_matches): Update.
950 (match_partial_symbol): Update.
951 (lookup_partial_symbol): Update.
952 (print_partial_symbols): Update.
953 (sort_pst_symbols): Update.
954 (maintenance_check_psymtabs): Update.
955 * python/py-framefilter.c (py_print_frame): Update.
956 * python/python.c (gdbpy_rbreak): Update.
957 * record-btrace.c (btrace_get_bfun_name): Update.
958 (btrace_call_history): Update.
959 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
960 (rs6000_skip_trampoline_code): Update.
961 * sol-thread.c (info_cb): Update.
962 * stabsread.c (scan_file_globals): Update.
963 * stack.c (find_frame_funname): Update.
964 (info_frame_command_core): Update.
965 * symmisc.c (dump_msymbols): Update.
966 * symtab.c (symbol_natural_name): Rename to..,
967 (general_symbol_info::natural_name): ...this.
968 (symbol_demangled_name): Rename to...
969 (general_symbol_info::demangled_name): ...this.
970 (symbol_search_name): Rename to...
971 (general_symbol_info::search_name): ...this.
972 (symbol_matches_search_name): Update.
973 (find_pc_sect_line): Update.
974 (skip_prologue_sal): Update.
975 (search_symbols): Update.
976 (print_msymbol_info): Update.
977 (rbreak_command): Update.
978 (completion_list_add_msymbol): Update.
979 (completion_list_objc_symbol): Update.
980 (get_msymbol_address): Update.
981 * symtab.h (struct general_symbol_info): Add member functions
982 natural_name (), linkage_name (), print_name (), demangled_name (),
984 (SYMBOL_NATURAL_NAME): Update.
985 (symbol_natural_name): Move to a member function on general_symbol_info.
986 (SYMBOL_DEMANGLED_NAME): Update.
987 (symbol_demangled_name): Move to a member function on
989 (SYMBOL_SEARCH_NAME): Update.
990 (symbol_search_name): Move to a member function on general_symbol_info.
991 (MSYMBOL_NATURAL_NAME): Remove.
992 (MSYMBOL_LINKAGE_NAME): Remove.
993 (MSYMBOL_PRINT_NAME): Remove.
994 (MSYMBOL_DEMANGLED_NAME): Remove.
995 (MSYMBOL_SEARCH_NAME): Remove.
996 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
998 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1000 * symtab.c (create_demangled_names_hash): Use per_bfd->
1001 minimal_symbol_count for computing the initial size, if greater
1002 than our default size.
1004 2019-11-22 Tom de Vries <tdevries@suse.de>
1006 * contrib/words.sh: Improve words extraction.
1008 2019-11-22 Tom de Vries <tdevries@suse.de>
1010 * contrib/words.sh: Combine sed invocations.
1012 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1014 * Makefile.in: Update.
1015 * demangle.c: Rename to...
1016 * gdb-demangle.c: ..this.
1017 (is_cplus_marker): Change return type to bool.
1018 (_initialize_demangler): Rename to...
1019 (_initialize_gdb_demangle): ...this.
1020 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1021 * symtab.h (demangle): Remove declaration; instead include
1024 2019-11-21 Tom Tromey <tromey@adacore.com>
1026 * gdbsupport/format.c (format_pieces): Parse %I64d.
1027 * unittests/format_pieces-selftests.c (test_windows_formats): New
1029 (run_tests): Call it.
1031 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1033 Byte reverse display of variables with DW_END_big, DW_END_little
1034 (DW_AT_endianity) dwarf attributes if different than the native
1036 * ada-lang.c (ada_value_binop):
1037 Use type_byte_order instead of gdbarch_byte_order.
1038 * ada-valprint.c (printstr):
1039 (ada_val_print_string):
1040 * ada-lang.c (value_pointer):
1042 Use type_byte_order instead of gdbarch_byte_order.
1043 * c-lang.c (c_get_string):
1044 Use type_byte_order instead of gdbarch_byte_order.
1045 * c-valprint.c (c_val_print_array):
1046 Use type_byte_order instead of gdbarch_byte_order.
1047 * cp-valprint.c (cp_print_class_member):
1048 Use type_byte_order instead of gdbarch_byte_order.
1049 * dwarf2loc.c (rw_pieced_value):
1050 Use type_byte_order instead of gdbarch_byte_order.
1051 * dwarf2read.c (read_base_type): Handle DW_END_big,
1053 * f-lang.c (f_get_encoding):
1054 Use type_byte_order instead of gdbarch_byte_order.
1055 * findvar.c (default_read_var_value):
1056 Use type_byte_order instead of gdbarch_byte_order.
1057 * gdbtypes.c (check_types_equal):
1058 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1059 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1060 and TYPE_ENDIANITY_LITTLE if set.
1061 (type_byte_order): new function.
1062 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1063 (struct main_type) <flag_endianity_not_default>:
1065 (type_byte_order): New function.
1066 * infcmd.c (default_print_one_register_info):
1067 Use type_byte_order instead of gdbarch_byte_order.
1068 * p-lang.c (pascal_printstr):
1069 Use type_byte_order instead of gdbarch_byte_order.
1070 * p-valprint.c (pascal_val_print):
1071 Use type_byte_order instead of gdbarch_byte_order.
1072 * printcmd.c (print_scalar_formatted):
1073 Use type_byte_order instead of gdbarch_byte_order.
1074 * solib-darwin.c (darwin_current_sos):
1075 Use type_byte_order instead of gdbarch_byte_order.
1076 * solib-svr4.c (solib_svr4_r_ldsomap):
1077 Use type_byte_order instead of gdbarch_byte_order.
1078 * stap-probe.c (stap_modify_semaphore):
1079 Use type_byte_order instead of gdbarch_byte_order.
1080 * target-float.c (target_float_same_format_p):
1081 Use type_byte_order instead of gdbarch_byte_order.
1082 * valarith.c (scalar_binop):
1084 Use type_byte_order instead of gdbarch_byte_order.
1085 * valops.c (value_cast):
1086 Use type_byte_order instead of gdbarch_byte_order.
1087 * valprint.c (generic_emit_char):
1090 Use type_byte_order instead of gdbarch_byte_order.
1091 * value.c (unpack_long):
1092 (unpack_bits_as_long):
1093 (unpack_value_bitfield):
1096 (pack_unsigned_long):
1097 Use type_byte_order instead of gdbarch_byte_order.
1098 * findvar.c (unsigned_pointer_to_address):
1099 (signed_pointer_to_address):
1100 (unsigned_address_to_pointer):
1101 (address_to_signed_pointer):
1102 (default_read_var_value):
1103 (default_value_from_register):
1104 Use type_byte_order instead of gdbarch_byte_order.
1105 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1106 Use type_byte_order instead of gdbarch_byte_order.
1107 * riscv-tdep.c (riscv_print_one_register_info):
1108 Use type_byte_order instead of gdbarch_byte_order.
1110 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1112 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1113 (current_ui_gdb_stdin_ptr): Likewise.
1114 (current_ui_gdb_stderr_ptr): Likewise.
1115 (current_ui_gdb_stdlog_ptr): Likewise.
1116 (current_ui_current_uiout_ptr): Likewise.
1117 (gen_ret_current_ui_field_ptr): Remove.
1119 2019-11-21 Tom de Vries <tdevries@suse.de>
1122 * cli/cli-script.c (execute_control_command): Only switch to
1123 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1125 2019-11-19 Tom Tromey <tom@tromey.com>
1127 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1128 Now static. Change type of "name".
1129 (tui_set_win_height_command): Don't copy "arg".
1130 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1131 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1133 2019-11-19 Ali Tamur <tamur@google.com>
1135 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1136 "if (attr != nullptr)".
1137 (dwarf2_find_base_address): Likewise.
1138 (dwarf2_build_include_psymtabs): Likewise.
1139 (read_cutu_die_from_dwo): Likewise.
1140 (read_func_scope): Likewise.
1141 (read_call_site_scope): Likewise.
1142 (dwarf2_get_pc_bounds): Likewise.
1143 (dwarf2_record_block_ranges): Likewise.
1144 (dwarf2_add_field): Likewise.
1145 (dwarf2_add_member_fn): Likewise.
1146 (read_structure_type): Likewise.
1147 (read_enumeration_type): Likewise.
1148 (read_array_type): Likewise.
1149 (read_array_order): Likewise.
1150 (read_set_type): Likewise.
1151 (read_common_block): Likewise.
1152 (read_tag_reference_type): Likewise.
1153 (read_tag_string_type): Likewise.
1154 (read_subroutine_type): Likewise.
1155 (read_base_type): Likewise.
1156 (read_subrange_type): Likewise.
1157 (new_symbol): Likewise.
1158 (prepare_one_comp_unit): Likewise.
1160 2019-11-19 Tom Tromey <tromey@adacore.com>
1162 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1163 result in error when DebugActiveProcess fails.
1165 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1166 Pedro Alves <palves@redhat.com>
1168 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1169 * target.c (target_stack::push): Call 'unpush' if there's a
1170 target on top of the stack.
1172 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1174 * python/py-block.c (blpy_dealloc): Call tp_free.
1175 (blpy_block_syms_dealloc): Likewise.
1176 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1177 * python/py-inferior.c (infpy_dealloc): Likewise.
1178 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1179 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1180 * python/py-symbol.c (sympy_dealloc): Likewise.
1181 * python/py-symtab.c (stpy_dealloc): Likewise.
1182 * python/py-type.c (typy_iterator_dealloc): Likewise.
1184 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1186 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1187 constructor instead of using a class initializer.
1189 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1191 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1192 * configure: Regenerate.
1193 * configure.ac: Don't source common.host.
1194 * gdbsupport/common.host: Remove.
1195 * gdbsupport/mingw-strerror.c: Remove.
1196 * gdbsupport/posix-strerror.c: Rename to...
1197 * gdbsupport/safe-strerror.c: ...this.
1199 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1201 * maint.c (scoped_command_stats::print_time): Use localtime_r
1202 instead of localtime (provided through gnulib if necessary).
1203 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1206 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1208 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1209 avoid compile errors.
1211 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1213 * config.in: Regenerate.
1214 * configure: Regenerate.
1215 * gdbsupport/common.m4: No longer check for strerror_r.
1216 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1217 POSIX version of strerror_r, now that gnulib provides it if
1220 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1222 * README (`configure' options): Update.
1224 2019-11-14 Tom Tromey <tromey@adacore.com>
1226 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1227 expected type for the RHS if the LHS is a convenience variable.
1229 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1231 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1232 Provide explicit default and copy constructor.
1234 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1236 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1237 only call Py_INCREF (newbp) in the bppy_pending_object case.
1239 2019-11-13 Tom Tromey <tromey@adacore.com>
1242 * psympriv.h (partial_symbol): Remove static assert.
1243 * symtab.h (general_symbol_info, symbol): Remove static assert.
1245 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1247 * gdbsupport/format.c (format_pieces::format_pieces): Support
1248 printf 'z' size modifier.
1249 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1250 * printcmd.c (ui_printf): Handle size_t_arg.
1251 * ui-out.c (ui_out::vmessage): Likewise.
1252 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1254 (run_tests): Call test_format_int_sizes.
1256 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1258 * ada-exp.y (write_ambiguous_var): Update.
1259 * buildsym.c (add_symbol_to_list): Update.
1260 * dwarf2read.c (read_variable): Update.
1261 (new_symbol): Update.
1262 * jit.c (finalize_symtab): Update.
1263 * language.c (language_alloc_type_symbol): Update.
1264 * symtab.c (fixup_symbol_section): Update.
1265 (initialize_objfile_symbol_1): Move code to...
1266 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1267 (allocate_symbol): Update.
1268 (allocate_template_symbol): Update.
1269 (get_symbol_address): Update.
1270 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1271 of having as a field, and add a constructor.
1272 (SYMBOL_VALUE): Update.
1273 (SYMBOL_VALUE_ADDRESS): Update.
1274 (SET_SYMBOL_VALUE_ADDRESS): Update.
1275 (SYMBOL_VALUE_BYTES): Update.
1276 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1277 (SYMBOL_BLOCK_VALUE): Update.
1278 (SYMBOL_VALUE_CHAIN): Update.
1279 (SYMBOL_LANGUAGE): Update.
1280 (SYMBOL_SECTION): Update.
1281 (SYMBOL_OBJ_SECTION): Update.
1282 (SYMBOL_SET_LANGUAGE): Update.
1283 (SYMBOL_SET_LINKAGE_NAME): Update.
1284 (SYMBOL_SET_NAMES): Update.
1285 (SYMBOL_NATURAL_NAME): Update.
1286 (SYMBOL_LINKAGE_NAME): Update.
1287 (SYMBOL_DEMANGLED_NAME): Update.
1288 (SYMBOL_SEARCH_NAME): Update.
1289 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1290 (struct symbol): Update.
1291 (struct template_symbol): Update.
1292 (struct rust_vtable_symbol): Update.
1293 * xcoffread.c (SYMBOL_DUP): Update.
1295 2019-11-12 Tom Tromey <tom@tromey.com>
1297 * tui/tui-layout.c (show_layout): Set current_layout.
1298 (show_source_disasm_command, show_data)
1299 (show_source_or_disasm_and_command): Don't set current_layout.
1301 2019-11-12 Tom Tromey <tom@tromey.com>
1303 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1305 2019-11-12 Tom Tromey <tom@tromey.com>
1307 * tui/tui-win.c (resize_message): New global.
1308 (show_tui_resize_message): New function.
1309 (tui_async_resize_screen): Print message if requested.
1310 (_initialize_tui_win): Add tui-resize-message setting.
1311 * NEWS: Add entry for new commands.
1313 2019-11-11 Tom Tromey <tom@tromey.com>
1315 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1318 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1320 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1322 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1324 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1326 * python/python-internal.h (gdbpy_lookup_static_symbols):
1327 Declare new function.
1328 * python/python.c (python_GdbMethods): Add
1329 gdb.lookup_static_symbols method.
1330 * NEWS: Mention gdb.lookup_static_symbols.
1332 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1334 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1335 static block of current object file first. Also fix typo in
1338 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * stack.c (set_last_displayed_sal): Delete.
1341 (last_displayed_sal_valid): Delete.
1342 (last_displayed_pspace): Delete.
1343 (last_displayed_addr): Delete.
1344 (last_displayed_symtab): Delete.
1345 (last_displayed_line): Delete.
1346 (class last_displayed_symtab_info_type): New.
1347 (last_displayed_symtab_info): New static global variable.
1348 (print_frame_info): Call methods on last_displayed_symtab_info.
1349 (clear_last_displayed_sal): Update header comment, and make use of
1350 last_displayed_symtab_info.
1351 (last_displayed_sal_is_valid): Likewise.
1352 (get_last_displayed_pspace): Likewise.
1353 (get_last_displayed_addr): Likewise.
1354 (get_last_displayed_symtab): Likewise.
1355 (get_last_displayed_line): Likewise.
1356 (get_last_displayed_sal): Likewise.
1357 * stack.h (clear_last_displayed_sal): Update header comment.
1358 (last_displayed_sal_is_valid): Likewise.
1359 (get_last_displayed_pspace): Likewise.
1360 (get_last_displayed_addr): Likewise.
1361 (get_last_displayed_symtab): Likewise.
1362 (get_last_displayed_line): Likewise.
1363 (get_last_displayed_sal): Likewise.
1365 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1367 * stack.c (frame_show_address): Convert return type to bool.
1368 * stack.h (frame_show_address): Likewise, and update header
1371 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1373 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1374 * unittests/vec-utils-selftests.c: New file.
1375 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1377 2019-11-10 Tom Tromey <tom@tromey.com>
1379 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1380 (tui_highlight_win): Likewise.
1381 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1382 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1383 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1384 Don't set can_highlight.
1386 2019-11-10 Tom Tromey <tom@tromey.com>
1388 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1389 Remove unused declaration.
1391 2019-11-08 Tom Tromey <tromey@adacore.com>
1393 * top.c (read_command_file): Update.
1394 (command_line_input): Make return type const.
1395 * python/py-gdb-readline.c: Update.
1396 * linespec.c (decode_line_2): Update.
1397 * defs.h (command_line_input): Make return type const.
1398 * cli/cli-script.c (read_next_line): Make return type const.
1399 * ada-lang.c (get_selections): Update.
1401 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1403 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1404 * mi/mi-main.c (output_cores): Likewise.
1405 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1406 (linux_xfer_osdata_modules): Likewise.
1407 * remote.c (register_remote_support_xml): Likewise.
1408 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1409 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1411 2019-11-06 Tom Tromey <tom@tromey.com>
1413 * tui/tui-interp.c: Don't include readline.h.
1414 * tui/tui-hooks.c: Don't include readline.h.
1415 * symmisc.c: Include tilde.h, not readline.h.
1416 * symfile.c: Include tilde.h, not readline.h.
1417 * source.c: Include tilde.h, not readline.h.
1418 * solib.c: Include tilde.h, not readline.h.
1419 * psymtab.c: Include tilde.h, not readline.h.
1420 * exec.c: Include tilde.h, not readline.h.
1421 * corelow.c: Include tilde.h, not readline.h.
1422 * cli/cli-dump.c: Include tilde.h, not readline.h.
1423 * cli/cli-cmds.c: Don't include readline.h.
1425 2019-11-05 Tom Tromey <tom@tromey.com>
1427 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1428 (tui_disassemble): Set addr_size.
1429 (tui_disasm_window::set_contents): Use addr_size.
1431 2019-11-05 Tom Tromey <tom@tromey.com>
1433 * rust-lang.c (rust_language_defn): Update.
1434 * python/py-value.c (valpy_string): Call c_get_string.
1435 * p-lang.c (pascal_language_defn): Update.
1436 * opencl-lang.c (opencl_language_defn): Update.
1437 * objc-lang.c (objc_language_defn): Update.
1438 * m2-lang.c (m2_language_defn): Update.
1439 * language.c (unknown_language_defn, auto_language_defn): Update.
1440 (default_get_string): Remove.
1441 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1442 * go-lang.c (go_language_defn): Update.
1443 * f-lang.c (f_language_defn): Update.
1444 * d-lang.c (d_language_defn): Update.
1445 * c-lang.c (c_language_defn, cplus_language_defn)
1446 (asm_language_defn, minimal_language_defn): Update.
1447 * ada-lang.c (ada_language_defn): Update.
1448 * language.h (struct language_defn) <la_get_string>: Remove.
1449 (LA_GET_STRING): Remove.
1450 (default_get_string): Don't declare.
1452 2019-11-05 Tom Tromey <tom@tromey.com>
1454 * tui/tui-source.h (struct tui_source_window): Inline
1455 constructor. Remove destructor.
1456 <style_changed, m_observable>: Move to superclass.
1457 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1458 (struct tui_source_window_base): Move private members to end.
1459 <style_changed, m_observable>: Move from tui_source_window.
1460 * tui/tui-winsource.c (tui_copy_source_line): Move from
1461 tui-source.c. Rename from copy_source_line. Add special handling
1462 for negative line number.
1463 (tui_source_window_base::style_changed): Move from
1465 (tui_source_window_base): Register observer.
1466 (~tui_source_window_base): New.
1467 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1469 (tui_source_window::set_contents): Use tui_copy_source_line.
1470 (tui_source_window::tui_source_window): Move to tui-source.h.
1471 (tui_source_window::~tui_source_window): Remove.
1472 (tui_source_window::style_changed): Move to superclass.
1473 * tui/tui-disasm.c (tui_disassemble): Create string file with
1474 styling, when possible. Add "addr_size" parameter.
1475 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1476 Don't compute maximum size.
1477 (len_without_escapes): New function
1479 2019-11-05 Tom Tromey <tom@tromey.com>
1481 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1483 * tui/tui-winsource.c (tui_show_source_line): Update.
1484 * tui/tui-source.c (tui_source_window::set_contents): Update.
1485 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1487 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1489 * symtab.h (gdb_static_assert): Put && operator at the beginning
1490 of the line instead of the end.
1492 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1494 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1495 and sizeof (symbol).
1496 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1498 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1501 * configure.host: Mark *-*-solaris2.10* obsolete.
1502 * configure.tgt: Mark Solaris < 11 obsolete.
1503 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1504 Update target triplet.
1506 2019-11-01 Tom Tromey <tromey@adacore.com>
1508 * utils.c (print_sys_errmsg): Simplify.
1510 2019-11-01 Tom Tromey <tromey@adacore.com>
1512 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1514 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1516 * configure: Regenerate.
1517 * configure.ac: Remove check for strerror_r.
1518 * gdbsupport/common.m4: Check for strerror_r.
1520 2019-11-01 Luis Machado <luis.machado@linaro.org>
1524 * arm-tdep.c (arm_per_objfile): Rename to ...
1525 (arm_per_bfd): ... this.
1526 (arm_objfile_data_key): Rename to ...
1527 (arm_bfd_data_key): ... this.
1528 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1530 (arm_record_special_symbol): Likewise.
1532 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1534 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1536 * c-typeprint.c (c_print_typedef): Likewise.
1537 * f-typeprint.c (f_print_typedef): Likewise.
1538 * m2-typeprint.c (m2_print_typedef): Likewise.
1539 * p-typeprint.c (pascal_print_typedef): Likewise.
1540 * rust-lang.c (rust_print_typedef): Likewise.
1541 * symtab.c (print_symbol_info): Print a newline after calling
1544 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * symtab.c (info_module_cmdlist): New variable.
1547 (info_module_command): New function.
1548 (search_module_symbols): New function.
1549 (info_module_subcommand): New function.
1550 (struct info_modules_var_func_options): New struct.
1551 (info_modules_var_func_options_defs): New variable.
1552 (make_info_modules_var_func_options_def_group): New function.
1553 (info_module_functions_command): New function.
1554 (info_module_variables_command): New function.
1555 (info_module_var_func_command_completer): New function.
1556 (_initialize_symtab): Register new 'info module functions' and
1557 'info module variables' commands.
1558 * symtab.h (typedef symbol_search_in_module): New typedef.
1559 (search_module_symbols): Declare new function.
1560 * NEWS: Mention new commands.
1562 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1564 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1565 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1566 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1568 (scan_partial_symbols): Only create partial module symbols for non
1570 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1572 * symtab.c (search_domain_name): Likewise.
1573 (search_symbols): Likewise.
1574 (print_symbol_info): Likewise.
1575 (symtab_symbol_info): Likewise.
1576 (info_modules_command): New function.
1577 (_initialize_symtab): Register 'info modules' command.
1578 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1579 * NEWS: Mention new 'info modules' command.
1581 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1583 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1584 and $_gdb_maint_setting_str.
1586 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1588 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1589 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1590 (str_value_from_setting, gdb_setting_str_internal_fn)
1591 (gdb_maint_setting_str_internal_fn): New functions.
1592 (_initialize_cli_cmds): Define the new convenience functions.
1593 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1594 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1596 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1598 * agent.c (set_can_use_agent): When the setting is turned on,
1599 look up agent symbols if we don't have them yet.
1600 (agent_new_objfile): Don't look up agent symbols when the agent
1603 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1605 * config.in: Regenerate.
1607 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1609 * configure: Regenerate.
1610 * configure.ac: Check for strerror_r.
1611 * gdbsupport/common-utils.h (safe_strerror): Change return value
1612 to const char * and document that this function is now threadsafe.
1613 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1614 thread_local and call strerror_r, if available.
1615 * utils.c (perror_string): Update.
1616 (print_sys_errmsg): Update.
1618 2019-10-31 Luis Machado <luis.machado@linaro.org>
1620 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1622 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1623 objfile to fetch per-bfd data.
1624 (arm_find_exidx_entry): Likewise.
1626 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1628 * gdbsupport/agent.c (debug_agent): Change type to bool.
1629 (use_agent): Likewise.
1630 (all_agent_symbols_look_up): Likewise.
1631 (agent_loaded_p): Change return value to bool.
1632 (agent_look_up_symbols): Update.
1633 (agent_capability_check): Change return value to bool.
1634 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1635 (debug_agent): Change type to bool.
1636 (use_agent): Likewise.
1637 (agent_capability_check): Change return value to bool.
1639 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1641 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1642 (build_minimal_symbol_hash_tables): Code to clear the table moved
1643 to clear_minimal_symbol_hash_tables.
1644 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1647 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1649 * infcmd.c: Remove includes.
1650 * infrun.c: Remove includes.
1652 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1654 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1655 (grow_vect): Remove declaration.
1656 (ada_type_of_array): Remove declaration.
1657 (ada_update_initial_language): Remove declaration.
1658 (ada_fold_name): Remove declaration.
1659 (ada_fill_in_ada_prototype): Remove declaration.
1660 (user_select_syms): Remove declaration.
1661 (get_selections): Remove declaration.
1662 (ada_tag_type): Remove declaration.
1663 (ada_value_tag): Remove declaration.
1664 (ada_is_others_clause): Remove declaration.
1665 (ada_in_variant): Remove declaration.
1666 (ada_value_struct_elt): Remove declaration.
1667 (ada_attribute_name): Remove declaration.
1668 (ada_system_address_type): Remove declaration.
1669 * ada-lang.c (ada_watch_location_expression): Make static.
1670 (GROW_VECT): Move here from ada-lang.h.
1671 (grow_vect): Make static.
1672 (ada_update_initial_language): Make static.
1673 (ada_fold_name): Make static.
1674 (ada_type_of_array): Make static.
1675 (encoded_ordered_before): Move up.
1676 (sort_choices): Move up.
1677 (print_signatures): Move up.
1678 (ada_print_symbol_signature): Move up.
1679 (get_selections): Move up and make static.
1680 (user_select_syms): Move up and make static.
1681 (ada_value_struct_elt): Move up and make static.
1682 (ada_tag_type): Make static.
1683 (ada_value_tag): Make static.
1684 (ada_is_others_clause): Make static.
1685 (ada_in_variant): Make static.
1686 (ada_attribute_name): Make static.
1688 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1690 * ada-lang.c: Remove includes.
1691 * ada-typeprint.c: Remove includes.
1692 * ada-valprint.c: Remove includes.
1694 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1696 * addrmap.c: Add static assertions of type size, moved from
1697 _initialize_addrmap.
1698 (_initialize_addrmap): Remove.
1700 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1702 * coffread.c (record_minimal_symbol): Update.
1703 (process_coff_symbol): Update.
1704 * dbxread.c (read_dbx_symtab): Update.
1705 * dwarf2read.c (add_partial_symbol): Update.
1706 (fixup_go_packaging): Update.
1707 (load_partial_dies): Update.
1708 (new_symbol): Update.
1709 * elfread.c (record_minimal_symbol): Change signature to use
1710 gdb::string_view instead of name+len.
1711 (elf_symtab_read): Update.
1712 (elf_rel_plt_read): Update.
1713 * mdebugread.c (parse_partial_symbols): Update.
1714 (handle_psymbol_enumerators): Update.
1715 (new_symbol): Update.
1716 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1717 to use gdb::string_view instead of name+len.
1718 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1719 * psympriv.h (add_psymbol_to_list): Likewise.
1720 * psymtab.c (add_psymbol_to_bcache): Likewise.
1721 (add_psymbol_to_list): Likewise.
1722 * stabsread.c (define_symbol): Update.
1723 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1724 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1725 (symbol_set_names): Likewise.
1726 * xcoffread.c (scan_xcoff_symtab): Update.
1728 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1730 * symtab.h (symbol_set_names): Document that copy_name must be
1731 set to true for non-nullterminated strings.
1732 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1733 linkage_name if the entry was not found and we need to demangle.
1735 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1737 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1738 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1739 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1740 * gdbsupport/gdb_binary_search.h: New file.
1742 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1744 * NEWS: Mention new --with-system-gdbinit-dir option.
1745 * config.in: Regenerate.
1746 * configure: Regenerate.
1747 * configure.ac: Add new option --with-system-gdbinit-dir.
1748 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1749 for a ".gdb" suffix.
1750 * main.c (get_init_files): Change system_gdbinit argument to
1751 a vector and return the files in SYSTEM_GDBINIT_DIR in
1752 addition to SYSTEM_GDBINIT.
1753 (captured_main_1): Update.
1754 (print_gdb_help): Update.
1755 * top.c (print_gdb_configuration): Also print the value of
1758 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1760 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1761 that takes gdb::string_view arguments.
1763 2019-10-26 Tom de Vries <tdevries@suse.de>
1765 * aarch64-linux-tdep.c: Fix typos in comments.
1766 * aarch64-tdep.c: Same.
1768 * amd64-nat.c: Same.
1770 * arch/aarch64-insn.c: Same.
1772 * breakpoint.h: Same.
1775 * cli/cli-decode.c: Same.
1776 * cli/cli-script.c: Same.
1777 * cli/cli-utils.h: Same.
1778 * coff-pe-read.c: Same.
1780 * compile/compile-cplus-symbols.c: Same.
1781 * compile/compile-object-run.c: Same.
1782 * completer.c: Same.
1784 * cp-support.c: Same.
1786 * dwarf-index-write.c: Same.
1787 * dwarf2-frame.c: Same.
1788 * dwarf2-frame.h: Same.
1790 * frame-base.h: Same.
1795 * guile/scm-objfile.c: Same.
1796 * i386-tdep.c: Same.
1797 * i386-tdep.h: Same.
1800 * linux-nat.c: Same.
1801 * m68k-tdep.c: Same.
1804 * mi/mi-cmd-disas.c: Same.
1805 * mi/mi-getopt.h: Same.
1806 * mi/mi-main.c: Same.
1808 * nat/aarch64-sve-linux-sigcontext.h: Same.
1810 * ppc-linux-nat.c: Same.
1811 * ppc-linux-tdep.c: Same.
1813 * progspace.h: Same.
1814 * prologue-value.h: Same.
1815 * python/py-evtregistry.c: Same.
1816 * python/py-instruction.h: Same.
1817 * record-btrace.c: Same.
1818 * record-full.c: Same.
1820 * rs6000-tdep.c: Same.
1822 * sol-thread.c: Same.
1823 * sparc-sol2-tdep.c: Same.
1824 * sparc64-tdep.c: Same.
1825 * stabsread.c: Same.
1829 * tracepoint.c: Same.
1830 * tui/tui-data.h: Same.
1831 * tui/tui-io.c: Same.
1832 * tui/tui-win.c: Same.
1834 * unittests/rsp-low-selftests.c: Same.
1835 * user-regs.h: Same.
1846 * xtensa-tdep.c: Same.
1848 2019-10-25 Ali Tamur <tamur@google.com>
1850 * charset.c (find_charset_names): Reflect API change.
1852 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1854 * symtab.c (struct demangled_name_entry): Change demangled name
1855 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1856 part of the struct anymore.
1857 (symbol_set_names): No longer obstack allocate + copy the demangled
1858 name, just store the allocated name from bfd.
1860 2019-10-25 Tom Tromey <tromey@adacore.com>
1862 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1863 (bsearch_cie_cmp, add_cie): Remove.
1864 (find_cie): Reimplement.
1865 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1866 (dwarf2_build_frame_info): Update.
1868 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1871 * symfile.c (reread_symbols): Call forget_cached_source_info to
1872 clear the stale source cache.
1874 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1876 * configure: Regenerate.
1877 * configure.ac: Remove code that sets python_has_threads.
1879 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1881 * config.in: Regenerate.
1882 * configure: Regenerate.
1883 * configure.ac: Remove the code that uses sed to get the python
1884 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1886 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1888 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1891 2019-10-23 Tom Tromey <tom@tromey.com>
1893 * arc-tdep.c: Remove ".." from include.
1894 * frv-tdep.c: Remove ".." from include.
1895 * lm32-tdep.c: Remove ".." from include.
1896 * microblaze-tdep.c: Remove ".." from include.
1897 * or1k-tdep.h: Remove ".." from include.
1898 * s12z-tdep.c: Remove ".." from include.
1899 * Makefile.in (OPCODES_CFLAGS): Add comment.
1900 (TOP_CFLAGS): New variable.
1901 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1903 2019-10-23 Tom Tromey <tom@tromey.com>
1905 * Makefile.in (READLINE_DIR): Update.
1907 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1909 * infcall.c (call_function_by_hand_dummy): Fix the function
1910 comment. And extract out a code section into...
1911 (reserve_stack_space): ...this new function.
1913 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1915 * infcall.c (value_arg_coerce): Remove an unused parameter.
1916 (call_function_by_hand_dummy): Update the call to
1919 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1921 * infcall.c (call_function_by_hand_dummy): Refactor.
1923 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1925 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1927 2019-10-23 Tom Tromey <tom@tromey.com>
1929 * configure: Rebuild.
1930 * configure.ac: Don't check for sigprocmask.
1931 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1933 2019-10-23 Tom Tromey <tom@tromey.com>
1935 * configure: Rebuild.
1936 * acinclude.m4: Use m4_include, not sinclude.
1938 2019-10-23 Tom de Vries <tdevries@suse.de>
1940 PR breakpoints/24687
1941 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1943 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1945 * symtab.c (struct demangled_name_entry) <language>: Change from
1946 bitfield to regular variable.
1948 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1950 * symtab.c (struct demangled_name_entry): Add a constructor.
1951 (free_demangled_name_entry): New function to call the destructor
1952 for demangled_name_entry.
1953 (create_demangled_names_hash): Pass free_demangled_name_entry to
1955 (symbol_set_names): Call placement new for demangled_name_entry.
1956 * utils.c: No longer include xxhash.h here, now that fast_hash
1957 is inlined in the header.
1958 * utils.h: Instead, include it here.
1960 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1962 * Makefile.in: Link with libxxhash.
1963 * config.in: Regenerate.
1964 * configure: Regenerate.
1965 * configure.ac: Search for libxxhash.
1966 * utils.c (fast_hash): Use xxhash if present.
1968 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1970 * utils.h (fast_hash): New function.
1971 * symtab.c (hash_demangled_name_entry): Call new function
1974 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1976 * symtab.c (struct demangled_name_entry): Change type of mangled
1977 to gdb::string_view. Also adds a constructor that takes the
1979 (hash_demangled_name_entry): Update.
1980 (eq_demangled_name_entry): Update.
1981 (free_demangled_name_entry): New function to call the destructor
1982 now that this is not a POD anymore.
1983 (create_demangled_names_hash): Pass free_demangled_name_entry to
1985 (symbol_set_names): Update.
1987 2019-10-21 Ali Tamur <tamu@google.com>
1989 * dwarf2read.c (dir_index): Change type.
1990 (file_name_index): Likewise.
1991 (line_header::include_dir_at): Change comment and implementation on
1992 whether it is DWARF 5.
1993 (line_header::is_valid_file_index): New function.
1994 (line_header::file_name_at): Change comment and implementation on
1995 whether it is DWARF 5.
1996 (line_header::file_names): Change to private field renamed as
1997 m_file_names and introduce a new accessor method.
1998 (line_header::file_names_size): New method.
1999 (line_header::include_dirs): Change to private field and rename as
2001 (dw2_get_file_names_reader): Define local var at a smaller scope and
2003 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2004 (process_structure_scope): Likewise.
2005 (line_header::add_include_dir): Change message and reflect renaming.
2006 (line_header::add_file_name): Likewise.
2007 (read_formatted_entries): Handle DW_FORM_data16.
2008 (dwarf_decode_line_header): Fix line header length calculation.
2009 (psymtab_include_file_name): Change comment and API.
2010 (lnp_state_machine::m_file): Update comment and reflect type change.
2011 (lnp_state_machine::record_line): Reflect type change.
2012 (dwarf_decode_lines): Reflect API change.
2013 (file_file_name): Likewise.
2014 (file_full_name): Likewise.
2016 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2020 2019-10-21 Tom Tromey <tom@tromey.com>
2022 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2024 2019-10-21 Tom Tromey <tom@tromey.com>
2026 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2027 NM_H. Use AC_CONFIG_LINKS.
2028 * configure: Rebuild.
2029 * Makefile.in (NM_H): New variable.
2030 (generated_files): Add NM_H. Remove gcore.
2031 (nm.h, stamp-nmh): New targets.
2033 2019-10-20 Tom Tromey <tom@tromey.com>
2035 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2036 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2038 (put_objfile_before): Now static.
2040 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2042 * gdbsupport/common-utils.h (startswith): Change return type to
2045 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2047 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2048 * breakpoint.c (bp_locations_compare): Rename to...
2049 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2050 (update_global_location_list): Use std::sort instead of qsort.
2051 * buildsym.c (compare_line_numbers): Rename to...
2052 (lte_is_less_than): ...this, and change to std::sort semantics.
2053 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2055 * disasm.c (compare_lines): Rename to...
2056 (line_is_less_than): ...this, and change to std::sort semantics.
2057 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2059 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2060 (fde_is_less_than): ...this, and change to std::sort semantics.
2061 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2062 * mdebugread.c (compare_blocks):
2063 (block_is_less_than): ...this, and change to std::sort semantics.
2064 (sort_blocks): Call std::sort instead of qsort.
2065 * objfiles.c (qsort_cmp): Rename to...
2066 (sort_cmp): ...this, and change to std::sort semantics.
2067 (update_section_map): Call std::sort instead of qsort.
2068 * remote.c (compare_pnums): Remove.
2069 (map_regcache_remote_table): Call std::sort instead of qsort.
2070 * utils.c (compare_positive_ints): Remove.
2071 * utils.h (compare_positive_ints): Remove.
2072 * xcoffread.c (compare_lte): Remove.
2073 (arrange_linetable): Call std::sort instead of qsort.
2075 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2077 * symfile.c (init_entry_point_info): Fix typo.
2078 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2080 2019-10-18 Tom de Vries <tdevries@suse.de>
2082 * aarch64-tdep.c: Fix typos in comments.
2084 * ada-tasks.c: Same.
2085 * alpha-tdep.c: Same.
2086 * alpha-tdep.h: Same.
2087 * amd64-nat.c: Same.
2088 * amd64-windows-tdep.c: Same.
2091 * arch-utils.c: Same.
2092 * arm-nbsd-tdep.c: Same.
2095 * blockframe.c: Same.
2098 * coff-pe-read.c: Same.
2100 * cris-tdep.c: Same.
2101 * darwin-nat.c: Same.
2105 * dtrace-probe.c: Same.
2106 * dwarf-index-write.c: Same.
2107 * dwarf2-frame-tailcall.c: Same.
2108 * dwarf2-frame.c: Same.
2109 * dwarf2read.c: Same.
2111 * exceptions.c: Same.
2112 * fbsd-tdep.c: Same.
2116 * gnu-v3-abi.c: Same.
2118 * h8300-tdep.c: Same.
2119 * hppa-tdep.c: Same.
2120 * i386-linux-tdep.c: Same.
2121 * i386-tdep.c: Same.
2122 * ia64-libunwind-tdep.c: Same.
2123 * ia64-tdep.c: Same.
2127 * linux-nat.c: Same.
2128 * linux-thread-db.c: Same.
2129 * machoread.c: Same.
2130 * mdebugread.c: Same.
2132 * mn10300-tdep.c: Same.
2133 * namespace.c: Same.
2135 * opencl-lang.c: Same.
2136 * or1k-tdep.c: Same.
2138 * ppc-linux-nat.c: Same.
2139 * ppc-linux-tdep.c: Same.
2140 * ppc-sysv-tdep.c: Same.
2143 * record-btrace.c: Same.
2144 * record-full.c: Same.
2145 * remote-fileio.c: Same.
2147 * rs6000-tdep.c: Same.
2148 * s12z-tdep.c: Same.
2149 * score-tdep.c: Same.
2153 * sol-thread.c: Same.
2154 * solib-svr4.c: Same.
2157 * sparc-nat.c: Same.
2158 * sparc-sol2-tdep.c: Same.
2159 * sparc-tdep.c: Same.
2160 * sparc64-tdep.c: Same.
2161 * stabsread.c: Same.
2165 * target-descriptions.c: Same.
2166 * target-float.c: Same.
2173 * windows-nat.c: Same.
2174 * xcoffread.c: Same.
2175 * xstormy16-tdep.c: Same.
2176 * xtensa-tdep.c: Same.
2178 2019-10-17 Tom Tromey <tromey@adacore.com>
2180 * configure: Rebuild.
2181 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2182 in AC_CONFIG_FILES invocation.
2183 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2184 new-style config.status invocation.
2186 2019-10-17 Tom de Vries <tdevries@suse.de>
2188 * arm-nbsd-nat.c: Fix typos in comments.
2190 * darwin-nat-info.c: Same.
2191 * dwarf2read.c: Same.
2193 * event-top.c: Same.
2196 * hppa-tdep.c: Same.
2197 * i386-tdep.c: Same.
2200 * mdebugread.c: Same.
2201 * moxie-tdep.c: Same.
2202 * nto-procfs.c: Same.
2204 * ppc-linux-tdep.c: Same.
2206 * riscv-tdep.c: Same.
2207 * s390-tdep.c: Same.
2209 * sparc-linux-tdep.c: Same.
2210 * sparc-nat.c: Same.
2212 * target-descriptions.c: Same.
2216 2019-10-16 Tom Tromey <tom@tromey.com>
2218 * objfiles.h (struct objfile) <original_name>: Now const.
2220 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2222 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2223 pass on to sigsetjmp's second argument.
2224 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2226 2019-10-16 Keith Seitz <keiths@redhat.com>
2229 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2230 sections whose size is greater than the file size.
2232 2019-10-16 Jim Wilson <jimw@sifive.com>
2234 * riscv-tdep.c (riscv_gcc_target_options): New.
2235 (riscv_gnu_triplet_regexp): New.
2236 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2237 set_gdbarch_gnu_triplet_regexp.
2239 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2241 * Makefile.in: Add xml-builtin.h.
2242 * features/feature_to_c.sh: Add an include for xml-builtin.h
2243 to ensure that the compiler checks that the types match.
2244 * xml-builtin.h: New file.
2245 * xml-support.c (fetch_xml_builtin): Add missing const.
2246 * xml-support.h: Remove declaration of xml_builtins.
2248 2019-10-16 Tom de Vries <tdevries@suse.de>
2251 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2252 (amd64_classify_aggregate): ... here.
2253 (amd64_classify_aggregate_field): Handled fiels of nested structs
2256 2019-10-16 Tom de Vries <tdevries@suse.de>
2259 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2260 that handles 'theclass'.
2262 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2264 * linespec.c (decode_digits_ordinary): Update comment.
2265 * make-target-delegates: No longer need to handle VEC case.
2266 * memrange.c (normalize_mem_ranges): Update comment.
2267 * namespace.c (add_using_directive): Update comment.
2268 * objc-lang.c (uniquify_strings): Update comment.
2269 * ppc-linux-nat.c (struct thread_points): Update comment.
2270 * probe.h (find_probes_in_objfile): Update comment.
2271 * target.h (enum flash_preserve_mode): Update comment.
2272 * varobj.c (varobj_restrict_range): Update comment.
2273 * varobj.h (varobj_list_children): Update comment.
2275 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2277 * Makefile.in: Remove references to vec.h and vec.c.
2278 * aarch64-tdep.c: No longer include vec.h.
2279 * ada-lang.c: Likewise.
2280 * ada-lang.h: Likewise.
2281 * arm-tdep.c: Likewise.
2283 * breakpoint.h: Likewise.
2284 * charset.c: Likewise.
2285 * cp-support.h: Likewise.
2286 * dtrace-probe.c: Likewise.
2287 * dwarf2read.c: Likewise.
2288 * extension.h: Likewise.
2289 * gdb_bfd.c: Likewise.
2290 * gdbsupport/gdb_vecs.h: Likewise.
2291 * gdbsupport/vec.c: Remove.
2292 * gdbsupport/vec.h: Remove.
2293 * gdbthread.h: Likewise.
2294 * guile/scm-type.c: Likewise.
2295 * inline-frame.c: Likewise.
2296 * machoread.c: Likewise.
2297 * memattr.c: Likewise.
2298 * memrange.h: Likewise.
2299 * namespace.h: Likewise.
2300 * nat/linux-btrace.h: Likewise.
2301 * osdata.c: Likewise.
2302 * parser-defs.h: Likewise.
2303 * progspace.h: Likewise.
2304 * python/py-type.c: Likewise.
2305 * record-btrace.c: Likewise.
2306 * rust-exp.y: Likewise.
2307 * solib-target.c: Likewise.
2308 * stap-probe.c: Likewise.
2309 * target-descriptions.c: Likewise.
2310 * target-memory.c: Likewise.
2311 * target.h: Likewise.
2312 * varobj.c: Likewise.
2313 * varobj.h: Likewise.
2314 * xml-support.h: Likewise.
2316 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2318 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2319 Update for new std::vector based implementation.
2320 (process_psymtab_comp_unit_reader): Likewise.
2321 (scan_partial_symbols): Likewise.
2322 (recursively_compute_inclusions): Likewise.
2323 (compute_compunit_symtab_includes): Likewise.
2324 (process_imported_unit_die): Likewise.
2325 (queue_and_load_dwo_tu): Likewise.
2326 (follow_die_sig_1): Likewise.
2327 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2328 (typedef dwarf2_per_cu_ptr): Remove.
2329 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2331 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2332 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2333 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2334 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2337 2019-10-15 Tom Tromey <tromey@adacore.com>
2339 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2342 2019-10-15 Tom Tromey <tromey@adacore.com>
2344 * windows-nat.c (windows_nat_target::fetch_registers)
2345 (windows_nat_target::store_registers): Rename "pid" to "tid".
2347 2019-10-15 Tom Tromey <tromey@adacore.com>
2349 * gdbarch.h, gdbarch.c: Rebuild.
2350 * gdbarch.sh (gcc_target_options): Change return type to
2352 * compile/compile.c (get_args): Update.
2353 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2354 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2356 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2358 * arch-utils.c (default_gcc_target_options): Return std::string.
2359 * arch-utils.h (default_gcc_target_options): Return std::string.
2360 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2362 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2364 * breakpoint.c (breakpoint_chain): Make static.
2365 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2366 of accessing breakpoint_chain.
2368 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2370 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2371 to a gdb::function_view and return value to bool.
2372 * breakpoint.h (iterate_over_breakpoints): Likewise.
2373 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2374 (pop_dummy_frame): Update.
2375 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2376 (gdbscm_breakpoints): Update.
2377 * python/py-breakpoint.c (build_bp_list): Update.
2378 (gdbpy_breakpoints): Update.
2379 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2381 (bpfinishpy_handle_stop): Update.
2382 (bpfinishpy_handle_exit): Update.
2383 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2384 (svr4_update_solib_event_breakpoints): Update.
2386 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2388 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2389 when unwrapping single-field structs.
2391 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2393 * dwarf2read.c: Remove includes.
2395 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2397 * ui-out.c (ui_out::call_do_message): Silence
2398 -Wformat-nonliteral warning.
2400 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2402 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2403 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2404 include: readline/tilde.h.
2406 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2408 * remote.c (remote_target::get_trace_status): Remove declaration of
2409 trace_regblock_size.
2411 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2413 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2414 (show_user): Remove declaration of cmdlist.
2415 * cli/cli-cmds.h (max_user_call_depth): Declare.
2416 * cli/cli-script.c (execute_user_command): Remove declaration
2417 of max_user_call_depth.
2419 2019-10-11 Jim Wilson <jimw@sifive.com>
2421 * gdbsupport/print-utils.h (pulongest): Fix comment.
2422 (plongest): Likewise.
2423 (phex): Add missing comment, mention leading zeros.
2424 (phex_nz): Add mention of no leading zeros to comment.
2426 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2427 plongest instead of unsigned long long cast.
2429 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2431 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2432 for external_editor_command and gdbtk_test.
2434 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2436 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2437 * varobj.c (varobjdebug): Move comment to...
2438 * varobj.h (varobjdebug): ...here, and declare.
2440 2019-10-09 Tom Tromey <tom@tromey.com>
2442 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2445 2019-10-09 Tom Tromey <tom@tromey.com>
2447 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2448 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2449 * tui/tui-command.c (tui_cmd_window::resize)
2450 (tui_refresh_cmd_win): Update.
2451 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2452 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2453 * tui/tui-data.c (~tui_gen_win_info): Remove.
2454 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2455 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2456 (tui_redisplay_readline, tui_mld_flush)
2457 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2458 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2459 (tui_data_window::erase_data_content)
2460 (tui_data_item_window::rerender)
2461 (tui_data_item_window::refresh_window): Update.
2462 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2463 (box_win, tui_gen_win_info::make_window)
2464 (tui_gen_win_info::make_visible): Update.
2465 (tui_delete_win): Remove.
2466 * tui/tui-winsource.c
2467 (tui_source_window_base::do_erase_source_content): Update.
2468 (tui_show_source_line, tui_source_window_base::update_tab_width)
2469 (tui_source_window_base::update_exec_info): Update.
2470 * tui/tui-data.h (struct curses_deleter): New.
2471 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2472 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2474 2019-10-09 Tom Tromey <tom@tromey.com>
2476 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2478 2019-10-09 Tom Tromey <tom@tromey.com>
2480 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2481 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2483 2019-10-09 Tom Tromey <tom@tromey.com>
2485 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2486 window height directly.
2487 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2489 * tui/tui-layout.c (tui_default_win_height): Remove.
2490 (tui_default_win_viewport_height): Remove.
2492 2019-10-09 Tom Tromey <tom@tromey.com>
2494 * tui/tui.h: Remove comments.
2496 2019-10-09 Tom de Vries <tdevries@suse.de>
2498 * python/lib/gdb/printer/bound_registers.py: Use
2499 '^builtin_type_bound128' as regexp argument for
2500 add_builtin_pretty_printer.
2502 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2504 * guile/guile.c (guile_extension_script_ops): Remove forward
2505 declaration and mark as static.
2506 (guile_script_ops): Likewise.
2507 (extension_language_guile): Move further down in the file so
2508 it can reference the definitions for guile_{extension_,}script_ops.
2510 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2512 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2513 except SORTL, DFLTCC, and KDSA.
2515 2019-10-08 Tom Tromey <tromey@adacore.com>
2517 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2518 (struct safe_symbol_file_add_args): Remove.
2520 2019-10-08 Tom Tromey <tromey@adacore.com>
2522 * windows-nat.c: Don't include buildsym-legacy.h.
2524 2019-10-08 Tom Tromey <tromey@adacore.com>
2526 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2528 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2530 * gdbtypes.c (overload_debug): Move comment to header.
2531 * gdbtypes.h (overload_debug): Declare.
2532 * valops.c: Remove declaration of overload_debug, instead
2535 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2537 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2539 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2541 * language.h (lang_frame_mismatch_warn): ... here. Also add
2543 * top.c (lang_frame_mismatch_warn): Remove declaration.
2544 (check_frame_language_change): Pass lang_frame_mismatch_warn
2547 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2549 * c-lang.h (vtbl_ptr_name): Declare.
2550 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2552 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2554 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2556 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2559 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2561 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2562 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2563 * ctfread.c: New file.
2564 * ctfread.h: New file.
2565 * elfread.c: Include ctfread.h.
2566 (struct elfinfo text_p): New member ctfsect.
2567 (elf_locate_sections): Mark CTF section.
2568 (elf_symfile_read): Call elfctf_build_psymtabs.
2569 * Makefile.in (LIBCTF): Add.
2572 (DIST): Add ctfread.c.
2574 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2576 * ctfread.c (struct nextfield): Renamed to ...
2577 (struct ctf_nextfield): ... this.
2578 (struct field_info): Renamed to ...
2579 (strut ctf_field_info): ... this.
2580 (attach_fields_to_type): Update for renamed structures.
2581 (ctf_add_member_cb): Likewise.
2582 (ctf_add_enum_member_cb): Likewise.
2583 (process_struct_members): Likewise.
2584 (process_enum_type): Likewise.
2586 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2588 * tracectf.h: Rename, was ctf.h.
2589 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2590 * tracefile.c: Likewise.
2591 * tracepoint.c: Remove unused include ctf.h.
2592 * mi/mi-main.c: Likewise.
2593 * Makefile.in Replace ctf.c with tracectf.c.
2595 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2597 * version.in: Change version number to "9.0.50.DATE-git".
2599 2019-10-03 Tom Tromey <tom@tromey.com>
2602 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2604 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2606 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2607 cp_search_name_hash.
2608 * NEWS: Add entry about nested function support.
2610 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2611 Andrew Burgess <andrew.burgess@embecosm.com>
2613 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2614 for nested static variables when searchin VAR_DOMAIN.
2615 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2616 global scope, update comment.
2617 (add_partial_subprogram): Call add_partial_subprogram recursively
2618 for nested subroutines when processinng Fortran.
2619 (load_partial_dies): Process the child entities of a subprogram
2620 when processing Fortran.
2621 (partial_die_parent_scope): Handle building scope
2622 for Fortran nested functions.
2623 (process_die): Record that nested functions have a scope.
2624 (new_symbol): Always record Fortran subprograms on the global
2626 (determine_prefix): How to build the prefix for Fortran
2629 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2631 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2632 have just sent the thread a SIGSTOP and are waiting for it to
2635 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2637 * btrace.c (btrace_add_pc): Remove whitespace before the template
2638 parameter in 'std::vector <...>'.
2639 (parse_xml_btrace_block): Likewise.
2640 (btrace_maint_decode_pt): Likewise.
2641 (btrace_maint_update_packets): Likewise.
2642 (btrace_maint_print_packets): Likewise.
2643 * btrace.h (struct btrace_maint_info): Likewise.
2644 * dwarf2read.c (struct type_unit_group): Likewise.
2645 (build_type_psymtabs_reader): Likewise.
2646 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2647 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2648 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2650 2019-10-03 Tom de Vries <tdevries@suse.de>
2652 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2653 the first line of the help text for set/show style metadata.
2655 2019-10-02 Tom Tromey <tromey@adacore.com>
2657 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2658 * gdbsupport/common-inferior.c: New file.
2659 * infcmd.c (startup_with_shell): Don't define.
2660 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2661 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2662 * inferior.h (startup_with_shell): Don't declare.
2664 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2666 * gdbsupport/gdb_assert.h: Include errors.h.
2667 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2669 2019-10-02 Tom Tromey <tromey@adacore.com>
2671 * NEWS: Add $_ada_exception entry.
2672 * ada-lang.c (struct ada_catchpoint): Add constructor.
2673 <m_kind>: New member.
2674 (allocate_location_exception, re_set_exception): Remove
2676 (should_stop_exception): Compute $_ada_exception.
2677 (check_status_exception, print_it_exception)
2678 (print_one_exception, print_mention_exception): Remove
2680 (allocate_location_catch_exception, re_set_catch_exception)
2681 (check_status_exception, print_it_catch_exception)
2682 (print_one_catch_exception, print_mention_catch_exception)
2683 (print_recreate_catch_exception)
2684 (allocate_location_catch_exception_unhandled)
2685 (re_set_catch_exception_unhandled)
2686 (check_status_exception, print_it_catch_exception_unhandled)
2687 (print_one_catch_exception_unhandled)
2688 (print_mention_catch_exception_unhandled)
2689 (print_recreate_catch_exception_unhandled)
2690 (allocate_location_catch_assert, re_set_catch_assert)
2691 (check_status_assert, print_it_catch_assert)
2692 (print_one_catch_assert, print_mention_catch_assert)
2693 (print_recreate_catch_assert)
2694 (allocate_location_catch_handlers, re_set_catch_handlers)
2695 (check_status_handlers, print_it_catch_handlers)
2696 (print_one_catch_handlers, print_mention_catch_handlers)
2697 (print_recreate_catch_handlers): Remove.
2698 (create_ada_exception_catchpoint): Update.
2699 (initialize_ada_catchpoint_ops): Update.
2701 2019-10-02 Tom Tromey <tromey@adacore.com>
2703 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2704 (create_excep_cond_exprs): Simplify exception string computation.
2705 (ada_exception_catchpoint_cond_string): Likewise.
2707 2019-10-02 Tom Tromey <tromey@adacore.com>
2709 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2710 * ada-lang.c (lesseq_defined_than): Handle
2712 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2714 (dwarf2_has_info): Likewise.
2715 (new_symbol): Set maybe_copied on symbol when
2717 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2719 <can_copy>: New member.
2720 * elfread.c (record_minimal_symbol): Set maybe_copied
2721 on symbol when appropriate.
2722 (elf_symfile_read): Update call to dwarf2_has_info.
2723 * minsyms.c (lookup_minimal_symbol_linkage): New
2725 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2726 * symtab.c (get_symbol_address, get_msymbol_address):
2728 * symtab.h (get_symbol_address, get_msymbol_address):
2730 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2732 (struct symbol, struct minimal_symbol) <maybe_copied>:
2735 2019-10-02 Tom Tromey <tromey@adacore.com>
2737 * source.c (struct current_source_location): New.
2738 (current_source_key): New global.
2739 (current_source_symtab, current_source_line)
2740 (current_source_pspace): Remove.
2741 (get_source_location): New function.
2742 (get_current_source_symtab_and_line)
2743 (set_default_source_symtab_and_line)
2744 (set_current_source_symtab_and_line)
2745 (clear_current_source_symtab_and_line, select_source_symtab)
2746 (info_source_command, print_source_lines_base)
2747 (info_line_command, search_command_helper, _initialize_source):
2750 2019-10-02 Tom Tromey <tromey@adacore.com>
2752 * source.c (select_source_symtab): Don't call
2753 decode_line_with_current_source.
2755 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2757 * symtab.c (lookup_global_symbol): Search global block.
2759 2019-10-02 Tom Tromey <tromey@adacore.com>
2761 * coffread.c (process_coff_symbol): Update.
2762 * dwarf2read.c (var_decode_location, new_symbol): Update.
2763 * mdebugread.c (parse_symbol): Update.
2764 * objfiles.c (relocate_one_symbol): Update.
2765 * stabsread.c (define_symbol, fix_common_block)
2766 (scan_file_globals): Update.
2767 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2768 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2769 * xcoffread.c (process_xcoff_symbol): Update.
2771 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2773 * MAINTAINERS: Update my email address.
2775 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2777 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2779 (build_type_psymtabs_reader): Update for std::vector.
2780 (build_type_psymtab_dependencies): Likewise.
2781 * dwarf2read.h: Remove use of DEF_VEC_P.
2782 (typedef sig_type_ptr): Delete.
2784 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2786 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2788 (btrace_maint_decode_pt): Likewise, and move allocation of the
2789 vector outside of the loop.
2790 (btrace_maint_update_packets): Update to handle change from VEC to
2792 (btrace_maint_print_packets): Likewise.
2793 (maint_info_btrace_cmd): Likewise.
2794 * btrace.h: Remove use of DEF_VEC_O.
2795 (typedef btrace_pt_packet_s): Delete.
2796 (struct btrace_maint_info) <packets>: Change fromm VEC to
2798 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2800 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2802 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2803 make accesses into the vector constant references.
2804 (btrace_add_pc): Update for std::vector.
2805 (btrace_stitch_bts): Likewise.
2806 (parse_xml_btrace_block): Likewise.
2807 (btrace_maint_update_packets): Likewise.
2808 (btrace_maint_print_packets): Likewise.
2809 (maint_info_btrace_cmd): Likewise.
2810 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2812 (btrace_data::empty): Likewise.
2813 (btrace_data_append): Likewise.
2814 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2815 (typedef btrace_block_s): Delete.
2816 (struct btrace_block): Add constructor.
2817 (struct btrace_data_bts) <blocks>: Change to std::vector.
2818 * nat/linux-btrace.c (perf_event_read_bts): Update for
2820 (linux_read_bts): Likewise.
2822 2019-10-01 Tom Tromey <tom@tromey.com>
2824 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2826 2019-10-01 Tom Tromey <tom@tromey.com>
2828 * stack.c (print_frame, info_frame_command_core): Use
2830 * linux-thread-db.c (try_thread_db_load_1)
2831 (try_thread_db_load_from_pdir_1): Use styled_string.
2832 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2833 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2834 (maybe_print_unsupported_script_warning)
2835 (maybe_print_script_not_found_warning): Use styled_string.
2836 * ada-lang.c (user_select_syms): Use styled_string.
2838 2019-10-01 Tom Tromey <tom@tromey.com>
2840 * p-lang.c (pascal_printstr): Use metadata style.
2841 * value.c (show_convenience): Use metadata style.
2842 * valprint.c (valprint_check_validity, val_print_optimized_out)
2843 (val_print_not_saved, val_print_unavailable)
2844 (val_print_invalid_address, generic_val_print, val_print)
2845 (value_check_printable, val_print_array_elements): Use metadata
2847 * ui-out.h (class ui_out) <field_fmt>: New overload.
2848 <do_field_fmt>: Add style parameter.
2849 * ui-out.c (ui_out::field_fmt): New overload.
2850 * typeprint.c (type_print_unknown_return_type)
2851 (val_print_not_allocated, val_print_not_associated): Use metadata
2853 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2855 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2856 * tracepoint.c (tvariables_info_1): Use metadata style.
2857 * stack.c (print_frame_arg, print_frame_info, print_frame)
2858 (info_frame_command_core): Use metadata style.
2859 * skip.c (info_skip_command): Use metadata style.
2860 * rust-lang.c (rust_print_enum): Use metadata style.
2861 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2863 * python/py-framefilter.c (py_print_single_arg): Use metadata
2865 * printcmd.c (do_one_display, print_variable_and_value): Use
2867 * p-valprint.c (pascal_val_print)
2868 (pascal_object_print_value_fields): Use metadata style.
2869 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2870 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2872 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2873 * m2-valprint.c (m2_print_long_set): Use metadata style.
2874 * m2-typeprint.c (m2_print_type): Use metadata style.
2875 * infcmd.c (print_return_value_1): Use metadata style.
2876 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2877 * f-valprint.c (info_common_command_for_block): Use metadata
2879 * f-typeprint.c (f_type_print_base): Use metadata style.
2880 * expprint.c (print_subexp_standard): Use metadata style.
2881 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2882 * cli/cli-style.h (class cli_style_option): Add constructor.
2883 (metadata_style): Declare.
2884 * cli/cli-style.c (metadata_style): New global.
2885 (_initialize_cli_style): Register metadata style.
2886 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2888 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2889 * c-typeprint.c (c_type_print_base_struct_union)
2890 (c_type_print_base_1): Use metadata style.
2891 * breakpoint.c (watchpoint_value_print)
2892 (print_one_breakpoint_location): Use metadata style.
2893 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2895 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2897 * ada-valprint.c (val_print_packed_array_elements, printstr)
2898 (print_field_values, ada_val_print_ref, ada_val_print): Use
2900 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2902 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2904 * ada-lang.c (user_select_syms): Use metadata style.
2906 2019-10-01 Tom Tromey <tom@tromey.com>
2908 * cli/cli-cmds.c (pwd_command): Style output.
2910 2019-10-01 Pedro Alves <palves@redhat.com>
2911 Tom Tromey <tom@tromey.com>
2913 * symtab.c (print_symbol_info): Use %ps.
2914 (print_msymbol_info): Use %ps.
2915 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2916 * printcmd.c (print_variable_and_value): Use %ps.
2917 * macrocmd.c (show_pp_source_pos): Use %ps.
2918 * infrun.c (print_exited_reason): Use ui_out::message.
2919 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2920 (describe_other_breakpoints): Use ui_out::message and new
2922 (say_where): Use new formats.
2923 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2926 2019-10-01 Pedro Alves <palves@redhat.com>
2927 Tom Tromey <tom@tromey.com>
2929 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2930 (test_gdb_formats): New function.
2931 (run_tests): Call it.
2932 (test_format_specifier): Update.
2933 * utils.h (fputs_filtered): Update comment.
2934 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2935 (fputs_styled_unfiltered): Declare.
2936 * utils.c (fputs_styled_unfiltered): New function.
2937 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2938 (vfprintf_filtered): Update.
2939 (vfprintf_unfiltered, vprintf_filtered): Update.
2940 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2941 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2942 disallow_ui_out_field>: New constants.
2943 (enum class field_kind): New.
2944 (struct base_field_s, struct signed_field_s): New.
2945 (signed_field): New function.
2946 (struct string_field_s): New.
2947 (string_field): New function.
2948 (struct styled_string_s): New.
2949 (styled_string): New function.
2950 (class ui_out) <message>: Add comment.
2951 <vmessage, call_do_message>: New methods.
2952 <do_message>: Add style parameter.
2953 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2955 (ui_out::message): Rewrite.
2956 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2958 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2959 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2960 gdb_extensions parameter.
2961 (class format_piece): Add parameter to constructor.
2962 (n_int_args): New field.
2963 * gdbsupport/format.c (format_pieces::format_pieces): Add
2964 gdb_extensions parameter. Handle '*'.
2965 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2966 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2967 vfprintf_styled_no_gdbfmt.
2968 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2969 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2971 * ui-style.h (struct ui_file_style) <ptr>: New method.
2973 2019-10-01 Tom Tromey <tom@tromey.com>
2975 * unittests/format_pieces-selftests.c: Update. Add final format.
2976 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2977 empty literal pieces.
2979 2019-10-01 Tom Tromey <tom@tromey.com>
2981 * ui-out.h (enum class ui_out_style_kind): Remove.
2982 (class ui_out) <field_string, field_stsream, do_field_string>:
2983 Change type of "style".
2984 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2985 (ui_out::field_string): Update.
2986 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2988 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2989 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2990 * stack.c (print_frame_arg, print_frame_info, print_frame):
2992 * source.c (print_source_lines_base): Update.
2993 * solib.c (info_sharedlibrary_command): Update.
2994 * skip.c (info_skip_command): Update.
2995 * record-btrace.c (btrace_call_history_src_line)
2996 (btrace_call_history): Update.
2997 * python/py-framefilter.c (py_print_frame): Update.
2998 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3000 * mi/mi-out.c (mi_ui_out::do_table_header)
3001 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3002 (mi_ui_out::do_field_string): Update.
3003 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3005 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3007 * cli-out.c (cli_ui_out::do_table_header)
3008 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3009 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3010 (cli_ui_out::do_field_fmt): Update.
3011 * breakpoint.c (print_breakpoint_location): Update.
3012 (update_static_tracepoint): Update.
3014 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3016 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3017 conversion of gdb_datadir.
3018 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3019 remove not needed c_str ().
3021 2019-09-30 Ali Tamur <tamur@google.com>
3023 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3024 (dwarf2_string_attr): Likewise.
3026 2019-09-30 Ali Tamur <tamur@google.com>
3028 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3029 (process_full_type_unit): Likewise.
3030 (dump_die_shallow): Likewise.
3031 (cu_debug_loc_section): Likewise.
3033 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3035 * minsyms.c (compare_minimal_symbols): Rename to...
3036 (minimal_symbol_is_less_than): ...this, and adjust to STL
3037 conventions (return bool, take arguments as references)
3038 (minimal_symbol_reader::install): Call std::sort instead
3041 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3043 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3045 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3046 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3048 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3050 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3051 * psympriv.h (add_psymbol_to_list): Move comment here and update
3054 2019-09-29 Tom de Vries <tdevries@suse.de>
3056 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3057 Use $tmpdir/$(basename "$output_file").dwz instead of
3058 "${output_file}.dwz".
3060 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3063 * hppa-linux-nat.c: Include gdbarch.h.
3065 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3067 * blockframe.c (find_pc_partial_function): Change return type to bool.
3068 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3069 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3070 (stub_gnu_ifunc_resolve_name): Likewise.
3071 * symtab.c (compare_filenames_for_search): Likewise.
3072 (compare_glob_filenames_for_search): Likewise.
3073 (matching_obj_sections): Likewise.
3074 (symbol_matches_domain): Likewise.
3075 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3076 (find_line_pc): Change return type to bool.
3077 (find_line_pc_range): Likewise.
3078 (producer_is_realview): Likewise.
3079 * symtab.h (symbol_matches_domain): Likewise.
3080 (find_pc_partial_function): Likewise.
3081 (find_pc_line_pc_range): Likewise.
3082 (in_gnu_ifunc_stub): Likewise.
3083 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3084 (find_line_pc): Likewise.
3085 (find_line_pc_range): Likewise.
3086 (matching_obj_sections): Likewise.
3087 (find_line_symtab): Change out parameter to bool.
3088 (producer_is_realview): Change return type to bool.
3089 (compare_filenames_for_search): Likewise.
3090 (compare_glob_filenames_for_search): Likewise.
3092 2019-09-26 Tom Tromey <tom@tromey.com>
3094 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3095 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3096 * gdb_usleep.h: Remove.
3097 * gdb_usleep.c: Remove.
3098 * utils.c: Don't include gdb_usleep.h.
3100 2019-09-26 Tom Tromey <tromey@adacore.com>
3102 * python/py-type.c (type_to_type_object): Call check_typedef
3105 2019-09-26 Tom Tromey <tom@tromey.com>
3107 * utils.h (initialize_utils): Don't declare.
3108 * top.c (gdb_init): Don't call initialize_utils.
3109 * utils.c (initialize_utils): Remove. Move contents...
3110 (_initialize_utils): ... here.
3112 2019-09-25 Tom Tromey <tom@tromey.com>
3114 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3115 * utils.h (make_hex_string): Don't declare.
3116 * utils.c (make_hex_string): Remove.
3118 2019-09-24 Tom de Vries <tdevries@suse.de>
3121 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3122 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3124 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3126 * NEWS: Mention new simulator port for PRU.
3128 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3130 * ada-exp.y (write_object_remaining): Update.
3131 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3132 and eliminate the static buffer.
3133 (ada_decode_symbol): Update.
3134 (ada_la_decode): Update.
3135 (ada_sniff_from_mangled_name): Update.
3136 (is_valid_name_for_wild_match): Update.
3137 (ada_lookup_name_info::matches): Update and simplify.
3138 (name_matches_regex): Update.
3139 (ada_add_global_exceptions): Update.
3140 * ada-lang.h (ada_decode): Update signature.
3141 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3142 * dwarf-index-write.c (debug_names::insert): Update.
3144 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3146 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3149 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3151 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3152 Change "nonzero" to "true" in documentation.
3154 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3156 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3157 (_initialize_darwin_solib): Don't set
3158 darwin_so_ops.lookup_lib_global_symbol.
3159 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3160 set_gdbarch_iterate_over_objfiles_in_search_order.
3161 (elf_lookup_lib_symbol): Rename to...
3162 (svr4_iterate_over_objfiles_in_search_order): this, and update
3163 to iterate semantics.
3164 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3165 * solib.c (solib_global_lookup): Remove.
3166 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3167 (solib_global_lookup): Remove.
3168 * symtab.c (lookup_global_or_static_symbol): Remove call to
3169 solib_global_lookup.
3171 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3173 * NEWS: Move entries about default MI version now being
3174 version 3, and about the GDB/MI fix for multi-location
3175 breakpoints to the "since GDB 8.3" section.
3177 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3181 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3183 * NEWS: Mention that Cell/B.E. debugging support was removed.
3184 * MAINTAINERS: Remove spu target.
3186 * config/djgpp/fnchange.lst: Remove entries for removed files.
3188 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3189 spu-multiarch.o, and spu-tdep.o.
3190 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3191 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3192 spu-multiarch.c, and spu-tdep.c.
3193 * spu-linux-nat.c: Remove file.
3194 * spu-multiarch.c: Remove file.
3195 * spu-tdep.c: Remove file.
3196 * spu-tdep.h: Remove file.
3197 * solib-spu.c: Remove file.
3198 * solib-spu.h: Remove file.
3200 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3201 * configure.nat (spu-linux): Remove.
3202 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3203 solib-multiarch.o from gdb_target_obs.
3206 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3208 (ppc_linux_no_features): Update.
3209 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3211 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3212 (tdesc_powerpc_cell64l): Likewise.
3213 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3214 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3216 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3217 Do not include "features/rs6000/powerpc-cell32l.c" or
3218 "features/rs6000/powerpc-cell64l.c".
3219 (ppc_linux_spu_section): Remove.
3220 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3221 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3222 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3223 (ppc_linux_spe_context_lookup): Remove.
3224 (ppc_linux_spe_context_inferior_created): Remove.
3225 (ppc_linux_spe_context_solib_loaded): Remove.
3226 (ppc_linux_spe_context_solib_unloaded): Remove.
3227 (ppc_linux_spe_context): Remove.
3228 (struct ppu2spu_cache): Remove.
3229 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3230 (struct ppu2spu_data): Remove.
3231 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3232 ppu2spu_unwind): Remove.
3233 (ppc_linux_init_abi): Remove Cell/B.E. support.
3234 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3236 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3237 (rs6000/powerpc-cell64l-expedite): Likewise
3238 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3239 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3240 rs6000/powerpc-cell64l.xml.
3241 * features/rs6000/powerpc-cell32l.xml: Remove.
3242 * features/rs6000/powerpc-cell64l.xml: Likewise.
3243 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3244 * features/rs6000/powerpc-cell64l.c: Likewise.
3245 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3246 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3247 * regformats/reg-spu.dat: Remove.
3249 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3250 * corelow.c (struct spuid_list): Remove.
3251 (add_to_spuid_list): Remove.
3252 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3253 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3254 (remote_protocol_features): Remove associated entries.
3255 (_initialize_remote): No longer initialize them.
3256 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3257 * linux-nat.c (SPUFS_MAGIC): Remove.
3258 (linux_proc_xfer_spu): Remove.
3259 (spu_enumerate_spu_ids): Remove.
3260 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3261 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3262 (linux_make_corefile_notes): No longer call it.
3264 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3265 (cooked_write_test): Likewise.
3267 2019-09-20 Tom Tromey <tom@tromey.com>
3269 * NEWS: Mention case-sensitivity of TUI commands.
3270 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3271 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3272 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3274 2019-09-20 Tom Tromey <tom@tromey.com>
3276 * tui/tui-source.c (tui_source_window::set_contents): Use
3277 make_unique_xstrdup.
3278 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3279 make_unique_xstrdup.
3281 2019-09-20 Tom Tromey <tom@tromey.com>
3283 * tui/tui-data.c: Remove separator comments.
3284 * tui/tui-layout.c: Remove separator comments.
3285 * tui/tui-win.c: Remove separator comments.
3286 * tui/tui-wingeneral.c: Remove separator comments.
3288 2019-09-20 Tom Tromey <tom@tromey.com>
3290 * tui/tui.h (strcat_to_buf): Don't declare.
3291 * tui/tui.c (strcat_to_buf): Remove.
3293 2019-09-20 Tom Tromey <tom@tromey.com>
3295 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3297 * tui/tui-source.c (tui_source_window::set_contents)
3298 (tui_source_window::location_matches_p)
3299 (tui_source_window::maybe_update): Update.
3301 2019-09-20 Tom Tromey <tom@tromey.com>
3303 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3305 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3307 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3308 (tui_data_window::line_from_reg_element_no)
3309 (tui_data_window::first_reg_element_no_inline)
3310 (tui_data_window::show_registers)
3311 (tui_data_window::show_register_group)
3312 (tui_data_window::display_registers_from)
3313 (tui_data_window::display_registers_from_line)
3314 (tui_data_window::first_data_item_displayed)
3315 (tui_data_window::delete_data_content_windows)
3316 (tui_data_window::erase_data_content)
3317 (tui_data_window::do_scroll_vertical)
3318 (tui_data_window::refresh_window)
3319 (tui_data_window::check_register_values): Update.
3321 2019-09-20 Tom Tromey <tom@tromey.com>
3323 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3324 (struct tui_locator_window) <full_name, proc_name>: Now
3326 * tui/tui-stack.c (tui_locator_window::make_status_line)
3327 (tui_locator_window::set_locator_fullname)
3328 (tui_locator_window::set_locator_info): Update.
3329 * tui/tui-source.c (tui_source_window::set_contents)
3330 (tui_source_window::showing_source_p): Update.
3332 2019-09-20 Tom Tromey <tom@tromey.com>
3334 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3335 Don't call tui_locator_win_info_ptr.
3337 2019-09-20 Tom Tromey <tom@tromey.com>
3339 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3341 2019-09-20 Tom Tromey <tom@tromey.com>
3343 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3345 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3346 * tui/tui-layout.c (show_source_disasm_command, show_data)
3347 (show_source_or_disasm_and_command): Use 1 as height for locator.
3349 2019-09-20 Tom Tromey <tom@tromey.com>
3351 * tui/tui.c (tui_enable): Update.
3352 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3354 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3356 * tui/tui-data.c (win_resized): Now bool.
3357 (tui_win_resized): Return bool.
3358 (tui_set_win_resized_to): Accept a bool.
3360 2019-09-20 Tom Tromey <tom@tromey.com>
3362 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3363 Change type of "refresh_values_only".
3364 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3365 type of "refresh_values_only".
3367 2019-09-20 Tom Tromey <tom@tromey.com>
3369 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3371 (tui_disassemble): Add "pos" parameter.
3372 (tui_disasm_window::set_contents): Simplify.
3374 2019-09-20 Tom Tromey <tom@tromey.com>
3376 * tui/tui-winsource.h (struct tui_source_window_base)
3377 <show_source_content>: Now private.
3378 * tui/tui-winsource.c
3379 (tui_source_window_base::show_source_content): Don't handle empty
3382 2019-09-20 Tom Tromey <tom@tromey.com>
3384 * tui/tui-layout.c (show_source_disasm_command)
3385 (show_source_or_disasm_and_command): Don't call
3386 show_source_content.
3388 2019-09-20 Tom Tromey <tom@tromey.com>
3390 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3392 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3393 from tui_make_status_line.
3394 (tui_locator_window::rerender): Update.
3396 2019-09-20 Tom Tromey <tom@tromey.com>
3398 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3399 (tui_locator_window::rerender): Update.
3401 2019-09-20 Tom Tromey <tom@tromey.com>
3403 * tui/tui-winsource.h (struct tui_source_window_base)
3404 <~tui_source_window_base>: Don't declare.
3406 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3407 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3409 * tui/tui-source.c (tui_source_window::set_contents): Update.
3410 (tui_source_window::location_matches_p)
3411 (tui_source_window::maybe_update): Update.
3413 2019-09-20 Tom Tromey <tom@tromey.com>
3415 * tui/tui-winsource.h (~tui_source_element): Remove.
3416 (tui_source_element): Update.
3417 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3418 * tui/tui-winsource.c (tui_show_source_line): Update.
3419 * tui/tui-source.c (tui_source_window::set_contents): Update.
3420 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3422 2019-09-20 Tom Tromey <tom@tromey.com>
3424 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3426 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3427 tui_clear_source_windows_detail.
3428 * tui/tui-winsource.h (struct tui_source_window_base)
3429 <clear_detail>: Don't declare.
3430 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3432 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3434 2019-09-20 Tom Tromey <tromey@adacore.com>
3437 * block.c (contained_in): Fix final return value.
3439 2019-09-20 Alan Modra <amodra@gmail.com>
3441 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3442 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3443 (read_indirect_string_from_dwz): Use bfd accessor.
3444 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3445 * machoread.c (macho_symfile_read_all_oso): Likewise.
3446 * solib.c (solib_bfd_open): Likewise.
3448 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3450 * eval.c: Move declaration of overload_resolution to...
3453 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3455 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3456 * arm-linux-tdep.c: Likewise.
3457 * arm-nbsd-nat.c: Likewise.
3458 * arm-tdep.h: Declare arm_apcs_32.
3459 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3461 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3463 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3464 * dwarf2read.h: Declare dwarf_always_disassemble.
3466 2019-09-19 Tom de Vries <tdevries@suse.de>
3469 * source-cache.c (source_cache::ensure): Catch exception thrown during
3470 construction of the highlighter.
3472 2019-09-18 Alan Modra <amodra@gmail.com>
3474 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3475 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3476 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3477 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3478 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3479 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3480 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3481 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3482 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3483 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3484 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3485 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3486 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3487 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3488 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3489 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3490 * mi/mi-interp.c: Update throughout for bfd section macro and
3492 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3493 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3495 2019-09-18 Tom Tromey <tom@tromey.com>
3498 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3500 (tui_enable): Do not call rl_initialize.
3502 2019-09-18 Christian Groessler <chris@groessler.org>
3504 * alpha-linux-nat.c: Include gdbarch.h.
3506 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3508 * ui-file.c: Include cli/cli-style.h.
3509 (term_cli_styling): Remove cli_styling declaration.
3511 2019-09-18 Alan Modra <amodra@gmail.com>
3513 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3514 to bfd_asymbol_section.
3516 2019-09-18 Alan Modra <amodra@gmail.com>
3518 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3519 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3520 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3522 2019-09-18 Alan Modra <amodra@gmail.com>
3524 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3525 * spu-linux-nat.c (spu_bfd_open): Likewise.
3527 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3529 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3530 to bool to match definition in dwarf2read.c.
3532 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3534 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3535 (print_signatures): Likewise.
3536 (trust_pad_over_xvs): Likewise.
3537 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3538 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3539 * arm-linux-nat.c (arm_apcs_32): Likewise.
3540 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3541 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3542 * arm-tdep.c (arm_debug): Likewise.
3543 (arm_apcs_32): Likewise.
3544 * auto-load.c (debug_auto_load): Likewise.
3545 (auto_load_gdb_scripts): Likewise.
3546 (global_auto_load): Likewise.
3547 (auto_load_local_gdbinit): Likewise.
3548 (auto_load_local_gdbinit_loaded): Likewise.
3549 * auto-load.h (global_auto_load): Likewise.
3550 (auto_load_local_gdbinit): Likewise.
3551 (auto_load_local_gdbinit_loaded): Likewise.
3552 * breakpoint.c (disconnected_dprintf): Likewise.
3553 (breakpoint_proceeded): Likewise.
3554 (automatic_hardware_breakpoints): Likewise.
3555 (always_inserted_mode): Likewise.
3556 (target_exact_watchpoints): Likewise.
3557 (_initialize_breakpoint): Update.
3558 * breakpoint.h (target_exact_watchpoints): Change to bool.
3559 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3560 * cli/cli-cmds.c (trace_commands): Likewise.
3561 * cli/cli-cmds.h (trace_commands): Likewise.
3562 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3564 * cli/cli-logging.c (logging_overwrite): Change to bool.
3565 (logging_redirect): Likewise.
3566 (debug_redirect): Likewise.
3567 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3568 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3570 <boolean_option_def>: Update.
3571 (struct flag_option_def): Change default type of Context to bool
3573 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3574 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3575 (get_setshow_command_value_string): Likewise.
3576 * cli/cli-style.c (cli_styling): Change to bool.
3577 (source_styling): Likewise.
3578 * cli/cli-style.h (source_styling): Likewise.
3579 (cli_styling): Likewise.
3580 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3582 * command.h (var_types): Update comment.
3583 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3584 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3586 (debug_compile_cplus_scopes): Likewise.
3587 * compile/compile-internal.h (compile_debug): Likewise.
3588 * compile/compile.c (compile_debug): Likewise.
3589 (struct compile_options) <raw>: Likewise.
3590 * cp-support.c (catch_demangler_crashes): Likewise.
3591 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3592 (usr_cmd_cris_dwarf2_cfi): Likewise.
3593 * csky-tdep.c (csky_debug): Likewise.
3594 * darwin-nat.c (enable_mach_exceptions): Likewise.
3595 * dcache.c (dcache_enabled_p): Likewise.
3596 * defs.h (info_verbose): Likewise.
3597 * demangle.c (demangle): Likewise.
3598 (asm_demangle): Likewise.
3599 * dwarf-index-cache.c (debug_index_cache): Likewise.
3600 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3601 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3602 * dwarf2read.c (check_physname): Likewise.
3603 (use_deprecated_index_sections): Likewise.
3604 (dwarf_always_disassemble): Likewise.
3605 * eval.c (overload_resolution): Likewise.
3606 * event-top.c (set_editing_cmd_var): Likewise.
3607 (exec_done_display_p): Likewise.
3608 * event-top.h (set_editing_cmd_var): Likewise.
3609 (exec_done_display_p): Likewise.
3610 * exec.c (write_files): Likewise.
3611 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3612 (debug_fbsd_nat): Likewise.
3613 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3615 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3616 <backtrace_past_entry> Likewise.
3617 * gdb-demangle.h (demangle): Likewise.
3618 (asm_demangle): Likewise.
3619 * gdb_bfd.c (bfd_sharing): Likewise.
3620 * gdbcore.h (write_files): Likewise.
3621 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3622 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3623 * gdbthread.h (print_thread_events): Likewise.
3624 * gdbtypes.c (opaque_type_resolution): Likewise.
3625 (strict_type_checking): Likewise.
3626 * gnu-nat.c (gnu_debug_flag): Likewise.
3627 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3628 * guile/scm-param.c (pascm_variable): Add boolval.
3629 (add_setshow_generic): Update.
3630 (pascm_param_value): Update.
3631 (pascm_set_param_value_x): Update.
3632 * hppa-tdep.c (hppa_debug): Change to bool..
3633 * infcall.c (may_call_functions_p): Likewise.
3634 (coerce_float_to_double_p): Likewise.
3635 (unwind_on_signal_p): Likewise.
3636 (unwind_on_terminating_exception_p): Likewise.
3637 * infcmd.c (startup_with_shell): Likewise.
3638 * inferior.c (print_inferior_events): Likewise.
3639 * inferior.h (startup_with_shell): Likewise.
3640 (print_inferior_events): Likewise.
3641 * infrun.c (step_stop_if_no_debug): Likewise.
3642 (detach_fork): Likewise.
3643 (debug_displaced): Likewise.
3644 (disable_randomization): Likewise.
3645 (non_stop): Likewise.
3646 (non_stop_1): Likewise.
3647 (observer_mode): Likewise.
3648 (observer_mode_1): Likewise.
3649 (set_observer_mode): Update.
3650 (sched_multi): Change to bool.
3651 * infrun.h (debug_displaced): Likewise.
3652 (sched_multi): Likewise.
3653 (step_stop_if_no_debug): Likewise.
3654 (non_stop): Likewise.
3655 (disable_randomization): Likewise.
3656 * linux-tdep.c (use_coredump_filter): Likewise.
3657 (dump_excluded_mappings): Likewise.
3658 * linux-thread-db.c (auto_load_thread_db): Likewise.
3659 (check_thread_db_on_load): Likewise.
3660 * main.c (captured_main_1): Update.
3661 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3662 xx2_opt, boolean_opt>: Change to bool.
3663 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3664 * maint.c (maintenance_profile_p): Likewise.
3665 (per_command_time): Likewise.
3666 (per_command_space): Likewise.
3667 (per_command_symtab): Likewise.
3668 * memattr.c (inaccessible_by_default): Likewise.
3669 * mi/mi-main.c (mi_async): Likewise.
3670 (mi_async_1): Likewise.
3671 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3672 * nat/fork-inferior.h (startup_with_shell): Likewise.
3673 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3674 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3675 * nios2-tdep.c (nios2_debug): Likewise.
3676 * or1k-tdep.c (or1k_debug): Likewise.
3677 * parse.c (parser_debug): Likewise.
3678 * parser-defs.h (parser_debug): Likewise.
3679 * printcmd.c (print_symbol_filename): Likewise.
3680 * proc-api.c (procfs_trace): Likewise.
3681 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3682 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3683 (set_parameter_value): Update.
3684 (add_setshow_generic): Update.
3685 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3687 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3689 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3690 * record-btrace.c (record_btrace_target::store_registers): Update.
3691 * record-full.c (record_full_memory_query): Change to bool.
3692 (record_full_stop_at_limit): Likewise.
3693 * record-full.h (record_full_memory_query): Likewise.
3694 * remote-notif.c (notif_debug): Likewise.
3695 * remote-notif.h (notif_debug): Likewise.
3696 * remote.c (use_range_stepping): Likewise.
3697 (interrupt_on_connect): Likewise.
3698 (remote_break): Likewise.
3699 * ser-tcp.c (tcp_auto_retry): Likewise.
3700 * ser-unix.c (serial_hwflow): Likewise.
3701 * skip.c (debug_skip): Likewise.
3702 * solib-aix.c (solib_aix_debug): Likewise.
3703 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3704 (spu_auto_flush_cache_p): Likewise.
3705 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3707 (struct info_print_options) <quiet>: Likewise.
3708 * symfile-debug.c (debug_symfile): Likewise.
3709 * symfile.c (auto_solib_add): Likewise.
3710 (separate_debug_file_debug): Likewise.
3711 * symfile.h (auto_solib_add): Likewise.
3712 (separate_debug_file_debug): Likewise.
3713 * symtab.c (basenames_may_differ): Likewise.
3714 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3715 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3716 (struct info_types_options) <quiet>: Likewise.
3717 * symtab.h (demangle): Likewise.
3718 (basenames_may_differ): Likewise.
3719 * target-dcache.c (stack_cache_enabled_1): Likewise.
3720 (code_cache_enabled_1): Likewise.
3721 * target.c (trust_readonly): Likewise.
3722 (may_write_registers): Likewise.
3723 (may_write_memory): Likewise.
3724 (may_insert_breakpoints): Likewise.
3725 (may_insert_tracepoints): Likewise.
3726 (may_insert_fast_tracepoints): Likewise.
3727 (may_stop): Likewise.
3728 (auto_connect_native_target): Likewise.
3729 (target_stop_and_wait): Update.
3730 (target_async_permitted): Change to bool.
3731 (target_async_permitted_1): Likewise.
3732 (may_write_registers_1): Likewise.
3733 (may_write_memory_1): Likewise.
3734 (may_insert_breakpoints_1): Likewise.
3735 (may_insert_tracepoints_1): Likewise.
3736 (may_insert_fast_tracepoints_1): Likewise.
3737 (may_stop_1): Likewise.
3738 * target.h (target_async_permitted): Likewise.
3739 (may_write_registers): Likewise.
3740 (may_write_memory): Likewise.
3741 (may_insert_breakpoints): Likewise.
3742 (may_insert_tracepoints): Likewise.
3743 (may_insert_fast_tracepoints): Likewise.
3744 (may_stop): Likewise.
3745 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3746 (make_thread_apply_all_options_def_group): Change argument from int*
3748 (thread_apply_all_command): Update.
3749 (print_thread_events): Change to bool.
3750 * top.c (confirm): Likewise.
3751 (command_editing_p): Likewise.
3752 (history_expansion_p): Likewise.
3753 (write_history_p): Likewise.
3754 (info_verbose): Likewise.
3755 * top.h (confirm): Likewise.
3756 (history_expansion_p): Likewise.
3757 * tracepoint.c (disconnected_tracing): Likewise.
3758 (circular_trace_buffer): Likewise.
3759 * typeprint.c (print_methods): Likewise.
3760 (print_typedefs): Likewise.
3761 * utils.c (debug_timestamp): Likewise.
3762 (sevenbit_strings): Likewise.
3763 (pagination_enabled): Likewise.
3764 * utils.h (sevenbit_strings): Likewise.
3765 (pagination_enabled): Likewise.
3766 * valops.c (overload_resolution): Likewise.
3767 * valprint.h (struct value_print_options) <prettyformat_arrays,
3768 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3769 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3770 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3772 * windows-nat.c (new_console): Likewise.
3773 (cygwin_exceptions): Likewise.
3774 (new_group): Likewise.
3775 (debug_exec): Likewise.
3776 (debug_events): Likewise.
3777 (debug_memory): Likewise.
3778 (debug_exceptions): Likewise.
3779 (useshell): Likewise.
3780 * windows-tdep.c (maint_display_all_tib): Likewise.
3781 * xml-support.c (debug_xml): Likewise.
3783 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3785 * source.c (prepare_path_for_appending): New function.
3786 (openp): Make use of new function.
3787 (find_and_open_source): Search for the compilation directory and
3788 source file as a relative path beneath the directory search path.
3790 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3792 * source-cache.c (source_cache::get_line_charpos): Catch
3793 exceptions and return false, this matches the behaviour documented
3796 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3798 * ada-tasks.c (info_task): Remove quoting of the task's name.
3800 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3802 * symfile.c (auto_solib_add): Replace comment with a reference
3805 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3807 * NEWS: Mention that gdb can now be compiled with Python 3
3810 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3812 * maint.c (maint_print_section_data::maint_print_section_data):
3813 Force use of 'float log10 (float)' by casting the argument to
3816 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3818 * maint.c: Add 'cmath' include.
3819 (struct maint_print_section_data): New structure.
3820 (print_section_index): New function.
3821 (print_bfd_section_info): Add header comment, small whitespace
3822 cleanup, and update to call new print_section_index function.
3823 (print_objfile_section_info): Likewise.
3824 (maint_obj_section_from_bfd_section): New function.
3825 (print_bfd_section_info_maybe_relocated): New function.
3826 (maintenance_info_sections): Add header comment, always use
3827 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3829 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3831 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3832 inner scope, add check that the objfile has psymtabs before
3833 checking psymtabs_addrmap.
3834 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3836 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3838 * NEWS: Announce that Ada task names are now shown at more places,
3839 and between quotes (except in info task output).
3840 * gdb/ada-tasks.c (task_to_str): New function.
3841 (display_current_task_id): Call task_to_str.
3842 (task_command_1): Likewise.
3843 (print_ada_task_info): In non-mi mode, Properly align headers and data
3844 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3846 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3849 prstatus.pr_lwp.pr_info instead of making it up.
3851 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3853 * auto-load.c (auto_load_expand_dir_vars): Update.
3854 * defs.h (gdb_datadir): Change to std::string.
3855 (python_libdir): Likewise.
3856 (relocate_gdb_directory): Change return type to std::string.
3857 * guile/guile.c (gdbscm_data_directory): Update.
3858 (initialize_scheme_side): Update.
3859 * jit.c (jit_reader_dir): Change to std::string.
3860 (jit_reader_load_command): Update.
3861 * main.c (gdb_datadir): Change to std::string.
3862 (python_libdir): Likewise.
3863 (set_gdb_data_directory): Update.
3864 (relocate_path): Change to return std::string.
3865 (relocate_gdb_directory): Change to return std::string.
3866 (relocate_gdbinit_path_maybe_in_datadir): Update.
3867 (captured_main_1): Update.
3868 * python/python.c (do_start_initialization): Update.
3869 * top.c (show_gdb_datadir): Update.
3870 * xml-syscall.c (xml_init_syscalls_info): Update.
3871 (init_syscalls_info): Update.
3873 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3875 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3876 out of get_init_files.
3877 (get_init_files): Update.
3879 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3881 * main.c (get_init_files): Change to use std::string.
3882 (captured_main_1): Update.
3883 (print_gdb_help): Update.
3885 2019-09-11 Ali Tamur <tamur@google.com>
3887 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3890 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3892 * dbxread.c (read_dbx_symtab): Update.
3893 * dwarf2read.c (load_partial_dies): Update.
3894 * mdebugread.c (parse_partial_symbols): Update.
3895 (handle_psymbol_enumerators): Update.
3896 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3897 * psymtab.c (add_psymbol_to_bcache): Likewise.
3898 (add_psymbol_to_list): Likewise.
3899 * symtab.c (symbol_set_names): Likewise.
3900 * symtab.h (symbol_set_names): Likewise.
3901 * xcoffread.c (scan_xcoff_symtab): Update.
3903 2019-09-11 Tom Tromey <tom@tromey.com>
3905 * symfile-mem.c (symbol_file_add_from_memory): Use
3907 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3908 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3910 2019-09-10 Tom Tromey <tromey@adacore.com>
3912 * dwarf-index-write.c (write_psymbols): Extend error message.
3913 (debug_names::insert): Add Ada code.
3914 (debug_names::write_psymbols): Remove Ada check.
3915 (debug_names) <m_string_obstack>: New member.
3916 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3917 (gdb_index_symbol_name_matcher::matches): Remove.
3918 (mapped_index_base::find_name_components_bounds): Add "lang"
3920 (mapped_index_base::build_name_components): Also split names
3921 according to Ada syntax.
3922 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3923 type of "match_callback".
3924 (check_match, check_find_bounds_finds)
3925 (dw2_expand_symtabs_matching): Update.
3926 (dw2_debug_names_iterator): Add new constructor.
3927 (dw2_debug_names_map_matching_symbols): New function.
3928 (dw2_debug_names_expand_symtabs_matching): Update.
3929 (dwarf2_debug_names_functions): Use
3930 dw2_debug_names_map_matching_symbols.
3932 2019-09-10 Tom Tromey <tromey@adacore.com>
3934 * dwarf2read.c (dw2_get_file_names_reader): Add the
3935 CU's file name to the results.
3937 2019-09-10 Tom Tromey <tromey@adacore.com>
3939 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3940 map_matching_symbols. Update.
3941 * dwarf2read.c (dw2_map_matching_symbols): Update.
3942 * psymtab.c (match_partial_symbol): Change type; update.
3943 (psym_map_matching_symbols): Likewise.
3944 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3946 * symfile.h (struct quick_symbol_functions)
3947 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3950 2019-09-10 Tom Tromey <tromey@adacore.com>
3952 * psymtab.c (map_block): Remove.
3953 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3954 * symtab.c (iterate_over_symbols_terminated): New function.
3955 * symtab.c (iterate_over_symbols_terminated): Declare.
3957 2019-09-10 Tom Tromey <tromey@adacore.com>
3959 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3960 * language.h (struct language_defn) <la_iterate_over_symbols>:
3962 * symtab.c (iterate_over_symbols): Return bool.
3963 * symtab.h (iterate_over_symbols): Return bool.
3965 2019-09-10 Tom Tromey <tromey@adacore.com>
3967 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3968 (add_nonlocal_symbols): Update.
3969 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3970 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3971 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3972 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3973 Change type of "callback". Remove "data".
3976 2019-09-09 Ali Tamur <tamur@google.com>
3978 * dwarf2read.c (comp_unit_head): Update comment.
3979 (dwarf2_dwo_name): New function declaration.
3980 (dwarf_unit_type_name): New function declaration.
3981 (read_comp_unit_head): Add support for new compilation units,
3982 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3983 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3984 (currently named as "signature") in their header. Also clarify error
3986 (lookup_dwo_id): New function. Returns the dwo id of the given
3988 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3989 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3991 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3992 (dwarf2_dwo_name): Get the dwo name if present.
3993 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3996 2019-09-09 Tom Tromey <tom@tromey.com>
3998 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4000 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4002 * python/python.c (do_start_initialization): Make progname_copy static,
4003 to avoid a leak report.
4005 2019-09-08 Tom Tromey <tom@tromey.com>
4007 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4009 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4011 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4012 Change type to gdb::optional<block_enum>.
4013 (dw2_symtab_iter_init): Change block_index parameter type
4014 to gdb::optional<block_enum>.
4015 (dw2_lookup_symbol): Change block_index parameter
4016 type to block_enum.c
4017 (dw2_debug_names_lookup_symbol): Likewise.
4018 * psymtab.c (psym_lookup_symbol): Likewise.
4019 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4020 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4023 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4025 * defs.h (relocate_gdb_directory): Change int to bool in
4026 signature and rename flag to relocatable.
4027 * main.c (relocate_path): Likewise.
4028 (relocate_gdb_directory): Likewise.
4030 2019-09-06 Alan Modra <amodra@gmail.com>
4032 * coffread.c (coff_symfile_read): Constify filename variable.
4033 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4034 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4035 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4036 * solib.c (reload_shared_libraries_1): Likewise.
4037 * symfile.c (reread_symbols): Likewise.
4038 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4039 * solib-darwin.c (darwin_bfd_open): Likewise.
4040 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4042 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4044 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4045 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4047 2019-09-03 Tom Tromey <tromey@adacore.com>
4049 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4051 (has_negatives): Unbias a range type bound.
4052 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4053 * gdbtypes.c (operator==): Handle new field.
4054 (create_range_type): Add "bias" parameter.
4055 (create_static_range_type, resolve_dynamic_range): Update.
4056 * gdbtypes.h (struct range_bounds) <bias>: New member.
4057 (create_range_type): Add bias parameter.
4058 * printcmd.c (print_scalar_formatted): Unbias range types.
4059 * value.c (unpack_long): Unbias range types.
4060 (pack_long): Bias range types.
4062 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4064 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4067 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4069 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4070 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4071 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4072 (compile_probe_arg): Likewise.
4073 * probe.h (get_argument_count): Likewise.
4074 * solib-svr4.c (solib_event_probe_action): Likewise.
4075 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4077 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4079 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4081 (svr4_create_solib_event_breakpoints): ...from here.
4083 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4085 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4086 suffix from warning message.
4088 2019-08-30 Tom Tromey <tom@tromey.com>
4090 * tui/tui-winsource.h (struct tui_source_window_base)
4091 <refresh_all>: Don't declare.
4092 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4094 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4095 tui_show_locator_content.
4096 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4098 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4099 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4102 2019-08-30 Tom Tromey <tom@tromey.com>
4104 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4106 2019-08-30 Tom Tromey <tom@tromey.com>
4108 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4109 Remove unnecessary forward declarations.
4111 2019-08-30 Tom Tromey <tom@tromey.com>
4113 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4115 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4116 tui_show_locator_content.
4118 2019-08-30 Tom Tromey <tom@tromey.com>
4120 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4121 (tui_locator_window::rerender): Rewrite using body of previous
4122 tui_show_locator_content.
4124 2019-08-30 Tom Tromey <tom@tromey.com>
4126 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4127 set_locator_fullname>: New methods.
4128 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4129 Rename from tui_set_locator_fullname.
4130 (tui_locator_window::set_locator_info): Rename from
4131 tui_set_locator_info. Return bool.
4132 (tui_update_locator_fullname, tui_show_frame_info): Update.
4134 2019-08-30 Tom Tromey <tom@tromey.com>
4136 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4138 2019-08-30 Tom Tromey <tom@tromey.com>
4140 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4143 2019-08-30 Tom Tromey <tom@tromey.com>
4145 * tui/tui-wingeneral.c (box_win): Assume win_info and
4146 win_info->handle cannot be NULL.
4148 2019-08-30 Tom Tromey <tom@tromey.com>
4150 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4151 refresh_window>: Declare.
4152 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4154 (tui_data_item_window::rerender): Rename from
4155 tui_display_register.
4156 (tui_data_item_window::refresh_window): New method.
4157 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4160 2019-08-30 Tom Tromey <tom@tromey.com>
4162 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4163 regs_column_count, current_group>: Move later. Now private.
4164 <get_current_group>: New method.
4165 * tui/tui-regs.c (tui_reg_command): Update.
4166 * tui/tui-layout.c (tui_set_layout): Update.
4168 2019-08-30 Tom Tromey <tom@tromey.com>
4170 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4171 (tui_data_window::rerender): Don't call
4172 check_and_display_highlight_if_needed.
4173 (tui_data_window::refresh_all): Remove call to
4176 2019-08-30 Tom Tromey <tom@tromey.com>
4178 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4179 (tui_data_window::display_registers_from)
4180 (tui_data_window::display_reg_element_at_line)
4181 (tui_data_window::display_registers_from_line): Remove checks of
4184 2019-08-30 Tom Tromey <tom@tromey.com>
4186 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4188 * tui/tui-regs.c (tui_data_window::show_registers): Call
4190 (tui_data_window::rerender): Rename from display_all_data.
4191 (tui_data_window::rerender): Remove old implementation.
4193 2019-08-30 Tom Tromey <tom@tromey.com>
4195 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4197 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4199 2019-08-29 Bernhard Wodok <barto@gmx.net>
4200 Sergio Durigan Junior <sergiodj@redhat.com>
4203 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4205 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4207 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4208 when searching for types.
4210 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4212 * f-lang.c (f_language_defn): Use f_print_typedef.
4213 * f-lang.h (f_print_typedef): Declare.
4214 * f-typeprint.c (f_print_typedef): Define.
4216 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4218 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4220 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4222 * cli/cli-utils.c (info_print_options_defs): Delete.
4223 (make_info_print_options_def_group): Delete.
4224 (extract_info_print_options): Delete.
4225 (info_print_command_completer): Delete.
4226 (info_print_args_help): Add extra parameter, and optionally
4227 include text about -n flag.
4228 * cli/cli-utils.h (struct info_print_options): Delete.
4229 (extract_info_print_options): Delete declaration.
4230 (info_print_command_completer): Delete declaration.
4231 (info_print_args_help): Add extra parameter, extend header
4233 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4235 * stack.c (struct info_print_options): New type.
4236 (info_print_options_defs): New file scoped variable.
4237 (make_info_print_options_def_group): New static function.
4238 (info_print_command_completer): New static function.
4239 (info_locals_command): Update to use new local functions.
4240 (info_args_command): Likewise.
4241 (_initialize_stack): Add extra parameter to calls to
4242 info_print_args_help.
4243 * symtab.c (search_symbols): Add extra parameter, use this to
4244 possibly excluse non-debug symbols.
4245 (symtab_symbol_info): Add extra parameter, which is passed on to
4247 (struct info_print_options): New type.
4248 (info_print_options_defs): New file scoped variable.
4249 (make_info_print_options_def_group): New static function.
4250 (info_print_command_completer): New static function.
4251 (info_variables_command): Update to use local functions, and pass
4252 extra parameter through to symtab_symbol_info.
4253 (info_functions_command): Likewise.
4254 (info_types_command): Pass additional argument through to
4256 (rbreak_command): Pass extra argument to search_symbols.
4257 (_initialize_symtab): Add extra arguments for calls to
4258 info_print_args_help, and update help text for 'info variables',
4259 'whereis', and 'info functions' commands.
4260 * symtab.h (search_symbols): Add extra argument to declaration.
4261 * NEWS: Mention new flags.
4263 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4265 * symtab.c (lookup_static_symbol): Call the new function (and move
4266 it down to be next to lookup_global_symbol).
4267 (struct global_sym_lookup_data): Add block_enum member and rename to...
4268 (struct global_or_static_sym_lookup_data): ...this.
4269 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4270 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4271 (lookup_symbol_global_or_static_iterator_cb): ...this.
4272 (lookup_global_or_static_symbol): New function.
4273 (lookup_global_symbol): Call new function.
4275 2019-08-26 Tom de Vries <tdevries@suse.de>
4278 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4279 when pc_probe.prob == NULL.
4281 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4283 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4284 variable symbol_linkage to symbol_linkage_.
4286 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4288 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4289 represent whether the symbol is static, dynamic, or we don't
4292 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4294 * gdb/rx-tdep.c (rx_register_names): New.
4295 (rx_register_name): Delete.
4296 (rx_psw_type): Delete.
4297 (rx_fpsw_type): Delete.
4298 (rx_register_type): Delete.
4299 (rx_gdbarch_init): Convert target-descriptions.
4300 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4301 * gdb/features/Makefile: Add rx.xml.
4302 * gdb/features/rx.xml: New.
4303 * gdb/features/rx.c: Generated.
4304 * gdb/NEWS: Mention target description support.
4306 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4308 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4311 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4313 * configure.ac: Don't check for 'dlfcn.h' (moved to
4314 gdbsupport/common.m4).
4315 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4317 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4318 * compile/compile-c-support.c: Include
4319 'gdbsupport/gdb-dlfcn.h'.
4320 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4321 * gdb-dlfcn.c: Move to...
4322 * gdbsupport/gdb-dlfcn.c: ... here.
4323 * gdb-dlfcn.h: Move to...
4324 * gdbsupport/gdb-dlfcn.h: ... here.
4326 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4328 * nios2-tdep.c (struct reg_value): Improve comments. Make
4329 the offset field signed.
4331 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4333 * python/lib/gdb/__init__.py (_execute_file): New function.
4334 * python/python.c (python_run_simple_file): Call gdb._execute_file
4337 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4339 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4340 all uses as this was never set to anything but a zero value.
4342 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4344 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4346 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4348 * tui/tui-data.h (tui_gen_win_info): Add an =default
4349 move constructor, required by some GCC versions.
4351 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4353 * go32-nat.c (go32_sysinfo): Add hygon_p.
4355 2019-08-20 Tom Tromey <tom@tromey.com>
4357 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4358 line_from_reg_element_no, first_reg_element_no_inline,
4359 display_all_data, delete_data_content_windows,
4360 erase_data_content>: Now private.
4362 2019-08-20 Tom Tromey <tom@tromey.com>
4364 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4365 (tui_unhighlight_win, tui_highlight_win)
4366 (tui_win_info::make_window): Update.
4367 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4369 2019-08-20 Tom Tromey <tom@tromey.com>
4371 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4372 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4373 (MAX_PID_WIDTH): Move to tui-stack.c.
4374 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4375 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4376 (MAX_PID_WIDTH): Move from tui-data.h.
4378 2019-08-20 Tom Tromey <tom@tromey.com>
4380 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4381 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4383 (tui_gen_win_info::make_window): Rename from tui_make_window.
4384 (tui_win_info::make_window): New method.
4385 (tui_gen_win_info::make_visible): Update.
4386 * tui/tui-source.c (tui_source_window::set_contents): Update.
4387 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4388 (tui_data_window::display_registers_from): Update.
4389 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4390 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4394 (struct tui_win_info) <make_window>: Declare.
4395 <can_box>: Now virtual.
4396 <title>: New member.
4397 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4398 * tui/tui-command.c (tui_cmd_window::resize): Update.
4400 2019-08-20 Tom Tromey <tom@tromey.com>
4402 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4403 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4404 (tui_data_window::check_register_values): Update.
4406 2019-08-20 Tom Tromey <tom@tromey.com>
4408 * tui/tui-regs.h (struct tui_data_window): Use
4409 DISABLE_COPY_AND_ASSIGN.
4410 <regs_content>: Change type, removing unique_ptr.
4411 <tui_data_window>: Add move constructor.
4412 * tui/tui-regs.c (tui_data_window::show_registers)
4413 (tui_data_window::show_register_group)
4414 (tui_data_window::display_registers_from)
4415 (tui_data_window::display_registers_from)
4416 (tui_data_window::first_data_item_displayed)
4417 (tui_data_window::delete_data_content_windows)
4418 (tui_data_window::rerender, tui_data_window::refresh_window)
4419 (tui_data_window::check_register_values): Update.
4421 2019-08-20 Tom Tromey <tom@tromey.com>
4423 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4424 show_register_group>: Declare.
4425 (tui_show_register_group): Don't declare.
4426 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4428 (tui_data_window::show_register_group): Rename from
4429 tui_show_register_group.
4430 (tui_data_window::check_register_values, tui_reg_command):
4432 * tui/tui-layout.c (tui_set_layout): Update.
4434 2019-08-20 Tom Tromey <tom@tromey.com>
4436 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4438 (tui_check_register_values): Don't declare.
4439 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4440 from tui_check_register_values.
4441 * tui/tui-hooks.c (tui_register_changed): Update.
4443 2019-08-20 Tom Tromey <tom@tromey.com>
4445 * tui/tui-regs.c (tui_reg_layout): Move later.
4446 (tui_show_registers): Don't enable TUI mode or change layout.
4448 2019-08-20 Tom Tromey <tom@tromey.com>
4450 * tui/tui-regs.h (struct tui_data_item_window)
4451 <~tui_data_item_window>: Remove.
4452 <content>: Now a unique_xmalloc_ptr.
4453 * tui/tui-regs.c (tui_register_format): Return a
4455 (tui_get_register): Update.
4456 (~tui_data_item_window): Remove.
4457 (tui_data_window::display_registers_from, tui_display_register):
4459 * tui/tui-io.h (tui_expand_tabs): Update.
4460 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4461 Remove "col" parameter.
4463 2019-08-20 Tom Tromey <tom@tromey.com>
4465 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4467 * tui/tui-regs.c (~tui_data_item_window): Update.
4469 2019-08-20 Tom Tromey <tom@tromey.com>
4471 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4474 2019-08-20 Tom Tromey <tom@tromey.com>
4476 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4478 2019-08-20 Tom Tromey <tom@tromey.com>
4480 * tui/tui-source.h (struct tui_source_window): Update.
4481 * tui/tui-regs.c (tui_show_registers): Update.
4482 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4483 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4484 (NO_REGS_STRING): Remove defines.
4486 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4488 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4489 unnecessary thread walk if remote doesn't support the packet.
4491 2019-08-19 Tom Tromey <tromey@adacore.com>
4493 * python/py-value.c (value_has_field): Fix indentation.
4495 2019-08-19 Tom Tromey <tromey@adacore.com>
4497 * printcmd.c (do_one_display, info_display_command): Update.
4498 * block.h (contained_in): Return bool. Add allow_nested
4500 * block.c (contained_in): Return bool. Add allow_nested
4503 2019-08-19 Tom Tromey <tom@tromey.com>
4505 * configure: Rebuild.
4506 * configure.ac: Disallow the combination of -static-libstdc++ and
4508 * source-cache.c (get_language_name): Handle rust.
4509 (source_cache::get_source_lines): Ignore highlighting exceptions.
4511 2019-08-16 Tom Tromey <tom@tromey.com>
4513 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4514 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4515 (struct tui_source_window_base) <make_visible, refresh_window,
4516 resize>: Remove methods.
4517 <execution_info>: Remove field.
4518 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4519 (tui_show_source_line, tui_source_window_base)
4520 (~tui_source_window_base): Update.
4521 (tui_source_window_base::resize)
4522 (tui_source_window_base::make_visible)
4523 (tui_source_window_base::refresh_window): Remove.
4524 (tui_source_window_base::update_exec_info): Update.
4525 * tui/tui-source.c (tui_source_window::set_contents): Update.
4526 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4528 2019-08-16 Tom Tromey <tom@tromey.com>
4530 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4531 deprecated_query_hook.
4533 2019-08-16 Tom Tromey <tom@tromey.com>
4535 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4536 (tui_update_source_windows_with_line): Update.
4537 * tui/tui-source.h (struct tui_source_window)
4538 <show_symtab_source>: Declare.
4539 (tui_show_symtab_source): Don't declare.
4540 * tui/tui-source.c (tui_show_symtab_source): Rename from
4541 tui_show_symtab_source.
4543 2019-08-16 Tom Tromey <tom@tromey.com>
4545 * tui/tui-winsource.h (struct tui_source_window_base)
4546 <set_contents>: Declare.
4547 * tui/tui-winsource.c
4548 (tui_source_window_base::update_source_window_as_is): Update.
4549 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4551 (tui_set_source_content): Don't declare.
4552 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4553 tui_set_source_content.
4554 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4556 (tui_set_disassem_content): Don't declare.
4557 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4558 tui_set_disassem_content.
4560 2019-08-16 Tom Tromey <tom@tromey.com>
4562 * tui/tui-winsource.h (struct tui_source_window_base)
4563 <update_breakpoint_info>: Declare.
4564 (tui_update_breakpoint_info): Don't declare.
4565 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4566 (tui_update_all_breakpoint_info): Update.
4567 (tui_source_window_base::update_breakpoint_info): Rename from
4568 tui_update_breakpoint_info.
4569 (tui_source_window_base::update_exec_info): Update.
4571 2019-08-16 Tom Tromey <tom@tromey.com>
4573 * tui/tui-winsource.h (struct tui_source_window_base)
4574 <update_source_window>: Declare.
4575 (tui_update_source_window): Don't declare.
4576 * tui/tui-winsource.c
4577 (tui_source_window_base::update_source_window): Rename from
4578 tui_update_source_window.
4579 (tui_source_window_base::rerender): Update.
4580 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4581 * tui/tui-disasm.c (tui_show_disassem)
4582 (tui_show_disassem_and_update_source)
4583 (tui_disasm_window::maybe_update): Update.
4585 2019-08-16 Tom Tromey <tom@tromey.com>
4587 * tui/tui-winsource.h (struct tui_source_window_base)
4588 <update_source_window_as_is>: Declare.
4589 (tui_update_source_window_as_is): Don't declare.
4590 * tui/tui-winsource.c (tui_update_source_window): Update
4591 (tui_source_window_base::update_source_window_as_is): Rename from
4592 tui_update_source_window_as_is.
4593 (tui_source_window_base::refill): Update.
4594 * tui/tui-source.c (tui_show_symtab_source): Update.
4595 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4598 2019-08-16 Tom Tromey <tom@tromey.com>
4600 * tui/tui-winsource.h (tui_update_source_window)
4601 (tui_update_source_window_as_is): Remove "noerror" parameter.
4602 * tui/tui-winsource.c (tui_update_source_window)
4603 (tui_update_source_window_as_is): Remove "noerror" parameter.
4604 (tui_update_source_windows_with_addr)
4605 (tui_update_source_windows_with_line)
4606 (tui_source_window_base::rerender)
4607 (tui_source_window_base::refill): Update.
4608 * tui/tui-source.h (tui_set_source_content)
4609 (tui_show_symtab_source): Remove "noerror" parameter.
4610 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4612 (tui_show_symtab_source): Likewise.
4613 (tui_source_window::maybe_update): Update.
4614 * tui/tui-disasm.c (tui_show_disassem)
4615 (tui_show_disassem_and_update_source)
4616 (tui_disasm_window::do_scroll_vertical)
4617 (tui_disasm_window::maybe_update): Update.
4619 2019-08-16 Tom Tromey <tom@tromey.com>
4621 * tui/tui.c (tui_is_window_visible): Update.
4622 * tui/tui-wingeneral.c (tui_make_window)
4623 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4624 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4625 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4626 (tui_set_win_height_command, parse_scrolling_args): Update.
4627 * tui/tui-source.c (tui_source_window::style_changed): Update.
4628 * tui/tui-regs.c (tui_show_registers)
4629 (tui_data_window::first_data_item_displayed)
4630 (tui_data_window::delete_data_content_windows)
4631 (tui_check_register_values, tui_reg_command): Update.
4632 * tui/tui-disasm.c (tui_show_disassem): Update.
4633 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4635 <is_visible>: Remove field.
4636 * tui/tui-data.c (tui_next_win, tui_prev_win)
4637 (tui_delete_invisible_windows): Update.
4639 2019-08-16 Tom Tromey <tom@tromey.com>
4641 * tui/tui-winsource.h (struct tui_source_window_base)
4642 <m_has_locator>: Remove.
4643 * tui/tui-layout.c (show_source_disasm_command, show_data)
4644 (show_source_or_disasm_and_command): Update.
4646 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4648 * NEWS (Other MI changes): New subsection.
4649 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4650 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4651 * arch-utils.c (default_get_pc_address_flags): New function.
4652 * arch-utils.h (default_get_pc_address_flags): New declaration.
4653 * gdbarch.sh: Add get_pc_address_flags.
4654 * gdbarch.c: Regenerate.
4655 * gdbarch.h: Likewise.
4656 * stack.c (print_pc): New function.
4657 (print_frame_info) (print_frame): Call print_pc.
4659 2019-08-16 Tom de Vries <tdevries@suse.de>
4661 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4662 print_objfile_section_info.
4664 2019-08-15 Tom Tromey <tom@tromey.com>
4666 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4667 calling update_cmdwin_start_line.
4668 * tui/tui-winsource.h (struct tui_source_window_base)
4669 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4670 <rerender>: Declare.
4671 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4673 (tui_source_window_base::set_new_height): Remove.
4674 (tui_source_window_base::rerender): Rename from
4675 do_make_visible_with_new_height.
4676 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4678 (tui_win_info::make_invisible_and_set_new_height)
4679 (tui_win_info::make_visible_with_new_height): Remove.
4680 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4682 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4683 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4684 do_make_visible_with_new_height>: Don't declare.
4685 <rerender>: Declare.
4686 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4688 (tui_data_window::do_make_visible_with_new_height): Remove.
4689 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4690 call tui_show_locator_content.
4691 (tui_gen_win_info::resize): Call rerender.
4692 (show_source_or_disasm_and_command): Don't call
4693 tui_show_locator_content.
4694 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4696 (struct tui_win_info) <rerender>: Declare.
4697 <set_new_height, make_invisible_and_set_new_height,
4698 make_visible_with_new_height>: Don't declare.
4699 * tui/tui-data.c (tui_win_list::rerender): New method.
4700 * tui/tui-command.h (struct tui_cmd_window)
4701 <do_make_visible_with_new_height>: Don't declare.
4703 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4705 2019-08-15 Tom Tromey <tromey@adacore.com>
4707 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4708 * ada-lang.c (ada_enum_name): Likewise.
4710 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4712 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4714 (GdbOutputErrorFile): Likewise.
4715 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4717 (execute_unwinders): Rename to have a leading underscore.
4718 (auto_load_packages): Likewise.
4719 (global scope): Adjust call to auto_load_packages accordingly.
4720 (GdbSetPythonDirectory): Likewise.
4721 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4722 instead of execute_unwinders.
4724 2019-08-15 Tom Tromey <tom@tromey.com>
4726 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4727 (show_data): Don't change window visibility.
4728 (tui_gen_win_info::resize): Remove special case for command
4729 window. Use wresize, when available.
4730 (show_source_or_disasm_and_command): Don't change window
4732 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4733 <make_visible>: New method.
4734 * tui/tui-command.c (tui_cmd_window::resize): New method.
4736 2019-08-15 Tom Tromey <tom@tromey.com>
4738 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4739 (struct tui_source_windows): New.
4740 * tui/tui-winsource.c (tui_display_main): Update.
4741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4742 (new_height_ok, parse_scrolling_args): Update.
4743 * tui/tui-layout.c (show_layout, show_data): Update.
4744 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4745 (tui_add_to_source_windows): Don't declare.
4746 * tui/tui-data.c (source_windows, tui_source_windows)
4747 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4749 2019-08-15 Tom Tromey <tom@tromey.com>
4751 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4753 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4754 * tui/tui-layout.c (show_source_disasm_command, show_data):
4756 (tui_gen_win_info::resize): Rename.
4757 (show_source_or_disasm_and_command): Update.
4758 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4761 2019-08-15 Tom Tromey <tom@tromey.com>
4763 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4764 * tui/tui-interp.c (tui_interp::init): Don't call
4765 tui_initialize_static_data.
4766 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4768 2019-08-15 Tom Tromey <tom@tromey.com>
4770 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4771 examine tui_win_list.
4773 2019-08-15 Tom Tromey <tom@tromey.com>
4775 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4776 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4777 tui_clear_source_content.
4778 (tui_clear_source_content): Remove.
4779 (tui_source_window_base::do_erase_source_content): Hoist call to
4781 * tui/tui-stack.c (tui_show_frame_info): Don't call
4782 tui_clear_source_content.
4784 2019-08-15 Tom Tromey <tom@tromey.com>
4786 * tui/tui-winsource.h (struct tui_source_window_base)
4787 <do_erase_source_content>: New method.
4788 <erase_source_content>: New method.
4789 (tui_erase_source_content): Don't declare.
4790 * tui/tui-winsource.c (tui_clear_source_content): Update.
4791 (tui_source_window_base::do_erase_source_content): Rename from
4792 tui_erase_source_content.
4793 (tui_source_window_base::show_source_content): Update.
4794 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4795 * tui/tui-source.h (struct tui_source_window)
4796 <erase_source_content>: New method.
4797 * tui/tui-disasm.h (struct tui_disasm_window)
4798 <erase_source_content>: New method.
4800 2019-08-15 Tom Tromey <tom@tromey.com>
4802 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4803 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4805 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4806 * tui/tui-source.c (tui_set_source_content): Update.
4807 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4809 2019-08-15 Tom Tromey <tom@tromey.com>
4811 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4812 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4814 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4816 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4818 (tui_source_window::maybe_update): Update.
4820 2019-08-15 Tom Tromey <tom@tromey.com>
4822 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4823 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4825 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4827 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4829 (tui_disasm_window::maybe_update): Update.
4831 2019-08-15 Tom Tromey <tom@tromey.com>
4833 * tui/tui-winsource.h (struct tui_source_window_base)
4834 <maybe_update>: Declare.
4835 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4837 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4839 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4840 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4842 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4844 2019-08-15 Tom Tromey <tom@tromey.com>
4846 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4848 2019-08-15 Tom Tromey <tom@tromey.com>
4850 * tui/tui-wingeneral.c: Include tui-stack.h.
4851 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4852 (struct tui_locator_window): Move from tui-data.h.
4853 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4854 (tui_initialize_static_data): Move from tui-data.c.
4855 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4856 (struct tui_locator_window): Move to tui-stack.c.
4857 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4858 (tui_initialize_static_data): Move to tui-stack.c.
4860 2019-08-15 Tom Tromey <tom@tromey.com>
4862 * tui/tui-layout.c (show_source_disasm_command)
4863 (show_source_or_disasm_and_command): Use make_visible method, not
4865 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4868 2019-08-15 Tom Tromey <tom@tromey.com>
4870 * tui/tui-wingeneral.h (tui_make_window): Update.
4871 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4873 (tui_gen_win_info::make_visible): Update.
4874 * tui/tui-regs.c (tui_data_window::display_registers_from):
4876 * tui/tui-layout.c (show_source_disasm_command)
4877 (show_source_or_disasm_and_command): Update.
4878 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4879 (enum tui_box): Remove.
4880 (struct tui_win_info) <can_box>: New method.
4881 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4884 2019-08-15 Tom de Vries <tdevries@suse.de>
4886 * linux-nat-trad.c: Include gdbarch.h.
4888 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4890 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4893 2019-08-14 Tom Tromey <tromey@adacore.com>
4895 * darwin-nat.c: Include gdbarch.h.
4896 * darwin-nat-info.c: Include gdbarch.h.
4898 2019-08-13 Tom Tromey <tom@tromey.com>
4900 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4902 * tui/tui-data.c (tui_initialize_static_data): Update.
4904 2019-08-13 Tom Tromey <tom@tromey.com>
4906 * tui/tui-winsource.h (struct tui_exec_info_window)
4907 <~tui_exec_info_window, maybe_allocate_content, get_content,
4909 (struct tui_source_window_base) <set_exec_info_content,
4910 show_exec_info_content>: Don't declare.
4911 * tui/tui-winsource.c
4912 (tui_exec_info_window::maybe_allocate_content): Remove.
4913 (tui_source_window_base::update_exec_info): Rename from
4914 set_exec_info_content.
4915 (tui_source_window_base::show_exec_info_content)
4916 (tui_source_window_base::update_exec_info): Remove.
4918 2019-08-13 Tom Tromey <tom@tromey.com>
4920 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4922 * tui/tui-winsource.c (tui_update_source_window_as_is)
4923 (tui_update_source_windows_with_addr, tui_erase_source_content):
4925 (tui_clear_exec_info_content): Remove.
4927 2019-08-13 Tom Tromey <tom@tromey.com>
4929 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4931 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4932 call tui_erase_exec_info_content.
4933 (tui_clear_exec_info_content): Rename from
4934 tui_erase_exec_info_content.
4935 (tui_clear_exec_info_content): Delete.
4937 2019-08-13 Tom Tromey <tom@tromey.com>
4939 * tui/tui-winsource.h (struct tui_source_window_base)
4940 <show_exec_info_content>: Declare.
4941 (tui_show_exec_info_content): Don't declare.
4942 * tui/tui-winsource.c
4943 (tui_source_window_base::show_exec_info_content): Rename from
4944 tui_show_exec_info_content.
4945 (tui_source_window_base::update_exec_info): Update.
4947 2019-08-13 Tom Tromey <tom@tromey.com>
4949 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4950 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4951 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4952 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4953 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4954 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4957 2019-08-13 Tom Tromey <tom@tromey.com>
4959 * tui/tui-winsource.h (struct tui_source_window_base)
4960 <update_exec_info>: Declare.
4961 (tui_update_exec_info): Don't declare.
4962 * tui/tui-winsource.c (tui_update_source_window_as_is)
4963 (tui_source_window_base::refresh_all)
4964 (tui_update_all_breakpoint_info): Update.
4965 (tui_source_window_base::update_exec_info): Rename from
4966 tui_update_exec_info.
4967 * tui/tui-stack.c (tui_show_frame_info): Update.
4969 2019-08-13 Tom Tromey <tom@tromey.com>
4971 * tui/tui-winsource.h (struct tui_source_window_base)
4972 <set_exec_info_content>: Declare.
4973 (tui_set_exec_info_content): Don't declare.
4974 * tui/tui-winsource.c
4975 (tui_source_window_base::set_exec_info_content): Rename from
4976 tui_set_exec_info_content.
4977 (tui_update_exec_info): Update.
4979 2019-08-13 Tom Tromey <tom@tromey.com>
4981 * tui/tui-winsource.h (struct tui_source_window_base)
4982 <show_source_content>: Declare.
4983 (tui_show_source_content): Don't declare.
4984 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4985 (tui_source_window_base::show_source_content): Rename from
4986 tui_show_source_content.
4987 (tui_source_window_base::refresh_all): Update.
4988 * tui/tui-layout.c (show_source_disasm_command)
4989 (show_source_or_disasm_and_command): Update.
4991 2019-08-13 Tom Tromey <tom@tromey.com>
4993 * tui/tui-winsource.c (tui_erase_source_content)
4994 (tui_show_source_content, tui_source_window_base::refresh_all):
4996 * tui/tui-wingeneral.h
4997 (tui_check_and_display_highlight_if_needed): Don't declare.
4998 * tui/tui-wingeneral.c
4999 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5000 check_and_display_highlight_if_needed.
5001 * tui/tui-win.c (tui_rehighlight_all)
5002 (tui_win_info::make_visible_with_new_height): Update.
5003 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5004 (tui_data_window::erase_data_content)
5005 (tui_data_window::display_all_data): Update.
5006 * tui/tui-data.h (struct tui_win_info)
5007 <check_and_display_highlight_if_needed>: Declare.
5009 2019-08-13 Tom Tromey <tom@tromey.com>
5011 * tui/tui-win.c (tui_resize_all): Call
5012 tui_delete_invisible_windows.
5013 * tui/tui-layout.c (show_layout): Call
5014 tui_delete_invisible_windows.
5015 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5016 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5018 2019-08-13 Tom Tromey <tom@tromey.com>
5020 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5021 tui_add_win_to_layout.
5023 2019-08-13 Tom Tromey <tom@tromey.com>
5025 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5026 * tui/tui-layout.c (tui_default_win_height): Now static.
5028 2019-08-13 Tom Tromey <tom@tromey.com>
5030 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5032 (show_source_disasm_command, show_source_or_disasm_and_command):
5033 Don't check current layout.
5035 2019-08-13 Tom Tromey <tom@tromey.com>
5037 * tui/tui-wingeneral.c (make_all_visible): Remove.
5038 (tui_make_all_invisible): Simplify.
5039 * tui/tui-layout.c (tui_make_all_invisible): Move from
5040 tui-wingeneral.c; simplify.
5041 (show_layout): Hoist call to tui_make_all_invisible.
5042 (show_data): Don't call tui_make_all_invisible.
5044 2019-08-13 Tom Tromey <tom@tromey.com>
5046 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5047 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5049 2019-08-13 Tom Tromey <tom@tromey.com>
5051 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5053 (show_source_disasm_command, show_data)
5054 (show_source_or_disasm_and_command): Don't use
5055 tui_set_current_layout_to.
5056 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5057 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5059 (tui_set_current_layout_to): Remove.
5061 2019-08-13 Tom Tromey <tom@tromey.com>
5063 * tui/tui-layout.c (tui_set_layout): Update.
5064 * tui/tui-data.h (struct tui_layout_def): Remove.
5065 (tui_layout_def): Don't declare.
5066 * tui/tui-data.c (layout_def): Remove.
5067 (tui_layout_def): Remove.
5069 2019-08-13 Tom Tromey <tom@tromey.com>
5071 * tui/tui-winsource.h (struct tui_source_window_base)
5072 <clear_detail>: No longer "override".
5073 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5074 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5075 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5076 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5078 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5080 2019-08-13 Tom Tromey <tromey@adacore.com>
5082 * tracepoint.c: Don't include readline.h or history.h.
5084 2019-08-12 Tom Tromey <tom@tromey.com>
5086 * configure: Rebuild.
5087 * configure.ac: Check for readline 7.
5088 * NEWS: Mention readline 7 requirement.
5091 2019-08-12 Tom Tromey <tom@tromey.com>
5093 * mingw-hdep.c (gdb_select): Remove readline hack.
5095 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5097 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5098 when the function fails.
5100 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5102 * s390-tdep.c (s390_type_align): New function.
5103 (s390_gdbarch_init): Set it as type_align gdbarch method.
5105 2019-08-09 Tom de Vries <tdevries@suse.de>
5108 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5109 pc_low with relocation offset.
5111 2019-08-07 Tom Tromey <tromey@adacore.com>
5113 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5114 (print_frame_args): Update.
5115 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5117 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5118 * frame.h (struct frame_arg): Add initializers.
5119 <error>: Now a unique_xmalloc_ptr.
5121 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5123 * NEWS: Expand the Pointer Authentication entry.
5124 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5125 (aarch64_frame_unmask_lr): ... to this.
5126 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5127 Call aarch64_frame_unmask_lr.
5128 * frame.c (struct frame_info): Add "masked" variable.
5129 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5130 (fprint_frame): Check for masked pc.
5131 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5133 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5134 * stack.c (print_frame): Check for masked pc.
5136 2019-08-06 Tom Tromey <tom@tromey.com>
5138 * stabsread.c (patch_block_stabs, read_one_struct_field)
5139 (read_enum_type): Use obstack_strndup.
5140 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5141 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5142 * dwarf2read.c (guess_full_die_structure_name)
5143 (anonymous_struct_prefix): Use obstack_strndup.
5144 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5145 * c-exp.y (yylex): Use obstack_strndup.
5146 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5147 (write_var_or_type): Use obstack_strndup.
5149 2019-08-06 Tom Tromey <tom@tromey.com>
5151 * symfile.c (reread_symbols): Use obstack_strdup.
5152 * stabsread.c (read_type): Use obstack_strdup.
5153 * gdb_obstack.h (obstack_strdup): New overload.
5154 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5155 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5156 (dwarf2_canonicalize_name): Use obstack_strdup.
5157 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5158 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5161 2019-08-06 Tom Tromey <tom@tromey.com>
5163 * gdb_obstack.h (obstack_strdup): Define.
5164 * gdb_obstack.c (obstack_strdup): Don't define.
5166 2019-08-06 Tom Tromey <tom@tromey.com>
5168 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5170 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5172 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5173 * stabsread.c (common_block_start): Use obstack_strdup.
5174 * objfiles.c (set_objfile_main_name, objfile): Use
5176 * namespace.c (add_using_directive): Use obstack_strdup.
5177 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5178 * jit.c (finalize_symtab): Use obstack_strdup.
5179 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5180 (guess_partial_die_structure_name, partial_die_info::fixup)
5181 (dwarf2_name): Use obstack_strdup.
5182 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5184 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5185 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5187 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5189 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5191 * unittests/help-doc-selftests.c: New file.
5192 * Makefile.in: Add the new file.
5194 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5196 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5197 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5198 the full first line, except when FOR_VALUE_PREFIX. In this case,
5199 the trailing '.' is not output, and the first character is uppercased.
5200 (print_help_for_command): Update call to print_doc_line.
5201 (print_doc_of_command): Likewise.
5202 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5203 * cli/cli-option.c (append_indented_doc): Do not append newline.
5204 (build_help_option): Append newline after first appended_indented_doc
5205 only if a second call is done.
5206 (build_help): Append 2 new lines before each option, except the first
5208 * compile/compile.c (_initialize_compile): Add new lines after
5209 %OPTIONS%, when not at the end of the help.
5210 Change help doc or code
5211 producing the help doc to respect the invariants.
5212 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5213 Also removed the new line after 'Options:', as all other commands
5214 do not put an empty line between 'Options:' and the first option.
5215 * printcmd.c (_initialize_printcmd): Likewise.
5216 * stack.c (_initialize_stack): Likewise.
5217 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5218 incorrectly telling COMMAND is optional.
5219 * ada-lang.c (_initialize_ada_language): Change help doc or code
5220 producing the help doc to respect the invariants.
5221 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5222 * breakpoint.c (_initialize_breakpoint): Likewise.
5223 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5224 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5225 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5226 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5227 _initialize_cli_style): Likewise.
5228 * corelow.c (core_target_info): Likewise.
5229 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5230 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5231 * filesystem.c (_initialize_filesystem): Likewise.
5232 * frame.c (_initialize_frame): Likewise.
5233 * gnu-nat.c (add_task_commands): Likewise.
5234 * infcall.c (_initialize_infcall): Likewise.
5235 * infcmd.c (_initialize_infcmd): Likewise.
5236 * interps.c (_initialize_interpreter): Likewise.
5237 * language.c (_initialize_language): Likewise.
5238 * linux-fork.c (_initialize_linux_fork): Likewise.
5239 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5240 * maint.c (_initialize_maint_cmds): Likewise.
5241 * memattr.c (_initialize_mem): Likewise.
5242 * printcmd.c (_initialize_printcmd): Likewise.
5243 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5245 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5246 * record-btrace.c (_initialize_record_btrace): Likewise.
5247 * record-full.c (_initialize_record_full): Likewise.
5248 * record.c (_initialize_record): Likewise.
5249 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5250 * regcache.c (_initialize_regcache): Likewise.
5251 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5252 _initialize_remote): Likewise.
5253 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5254 * serial.c (_initialize_serial): Likewise.
5255 * skip.c (_initialize_step_skip): Likewise.
5256 * source.c (_initialize_source): Likewise.
5257 * stack.c (_initialize_stack): Likewise.
5258 * symfile.c (_initialize_symfile): Likewise.
5259 * symtab.c (_initialize_symtab): Likewise.
5260 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5261 * top.c (init_main): Likewise.
5262 * tracefile-tfile.c (tfile_target_info): Likewise.
5263 * tracepoint.c (_initialize_tracepoint): Likewise.
5264 * tui/tui-win.c (_initialize_tui_win): Likewise.
5265 * utils.c (add_internal_problem_command): Likewise.
5266 * valprint.c (value_print_option_defs): Likewise.
5268 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5271 * configure.ac: Drop enable-libmcheck support.
5272 * configure, config.in: Rebuild.
5273 * libmcheck.m4: Remove.
5274 * acinclude.m4: Don't include it.
5275 * Makefile.in: Don't distribute it.
5276 * top.c (print_gdb_configuration): Don't mention it.
5278 2019-08-06 Tom Tromey <tom@tromey.com>
5280 * utils.c (set_output_style): Sometimes pass stream to
5282 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5283 * record-btrace.c (btrace_insn_history): Update.
5284 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5286 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5287 Update initializers.
5288 <m_uiout>: New field.
5290 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5291 Remove "uiout" parameter.
5292 (dump_insns): Update.
5293 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5294 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5296 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5298 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5299 (error_in_psymtab_expansion): Likewise.
5300 (lookup_symbol_via_quick_fns): Likewise.
5301 (basic_lookup_transparent_type_quick): Likewise.
5302 (basic_lookup_transparent_type_1): Likewise.
5304 2019-08-06 Tom Tromey <tromey@adacore.com>
5306 * source.c (last_source_error): Now bool.
5307 (print_source_lines_base): Make "noprint" bool. Only open
5308 source file when last_source_visited changes.
5310 2019-08-06 Tom Tromey <tromey@adacore.com>
5312 * annotate.c (annotate_source_line): Use g_source_cache.
5313 * source-cache.c (source_cache::get_plain_source_lines): Change
5314 parameters. Populate m_offset_cache.
5315 (source_cache::ensure): New method.
5316 (source_cache::get_line_charpos): New method.
5317 (extract_lines): Move lower. Change parameters.
5318 (source_cache::get_source_lines): Move lower.
5319 * source-cache.h (class source_cache): Update comment.
5320 <get_line_charpos>: New method.
5321 <get_source_lines>: Update comment.
5322 <clear>: Clear m_offset_cache.
5323 <get_plain_source_lines>: Change parameters.
5324 <ensure>: New method
5325 <m_offset_cache>: New member.
5326 * source.c (forget_cached_source_info_for_objfile): Update.
5327 (info_source_command): Use g_source_cache.
5328 (find_source_lines, open_source_file_with_line_charpos): Remove.
5329 (print_source_lines_base, search_command_helper): Use g_source_cache.
5330 * source.h (open_source_file_with_line_charpos): Don't declare.
5331 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5332 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5335 2019-08-06 Tom Tromey <tromey@adacore.com>
5337 * source-cache.c (source_cache::get_plain_source_lines):
5338 Remove "first_line" and "last_line" parameters.
5339 (source_cache::get_source_lines): Cache plain text.
5340 * source-cache.h (class source_cache)
5341 <get_plain_source_lines>: Update.
5343 2019-08-06 Tom Tromey <tromey@adacore.com>
5345 * source-cache.c (extract_lines): No longer a method.
5346 Changed type of parameter. Include final newline.
5347 (selftests::extract_lines_test): New function.
5348 (_initialize_source_cache): Likewise.
5349 * source-cache.h (class source_cache)
5350 <extract_lines>: Don't declare.
5352 2019-08-06 Tom Tromey <tromey@adacore.com>
5354 * breakpoint.c (init_breakpoint_sal): Update.
5355 (breakpoint): Update.
5356 * breakpoint.h (struct breakpoint) <filter>: Now a
5359 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5361 * NEWS: Mention dictionary access on blocks.
5362 * python/py-block.c (blpy_getitem): New function.
5363 (block_object_as_mapping): New struct.
5364 (block_object_type): Use new struct for tp_as_mapping field.
5366 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5368 * objfiles.h (objfile): Add a comment describing partial symbols.
5370 2019-08-05 Tom Tromey <tromey@adacore.com>
5372 * compile/compile.c (_initialize_compile): Use _(), not N_().
5373 * thread.c (_initialize_thread): Use _(), not N_().
5374 * stack.c (_initialize_stack): Use _(), not N_().
5375 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5377 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5379 * dwarf2read.c (struct dw2_symtab_iterator):
5380 <want_specific_block>: Remove.
5381 <block_index>: Change type to gdb::optional.
5382 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5383 change type of BLOCK_INDEX parameter to gdb::optional.
5384 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5385 (dw2_lookup_symbol): Don't pass argument for
5386 WANT_SPECIFIC_BLOCK.
5387 (dw2_expand_symtabs_for_function): Don't pass argument for
5388 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5389 (class dw2_debug_names_iterator)
5390 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5391 parameter, change BLOCK_INDEX type to gdb::optional.
5392 <m_want_specific_block>: Remove.
5393 <m_block_index>: Change type to gdb::optional.
5394 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5395 gdb::optional. Re-write in function of gdb::optional.
5396 (dw2_debug_names_lookup_symbol): Don't pass argument for
5397 WANT_SPECIFIC_BLOCK.
5398 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5399 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5402 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5404 * NEWS: Mention changes to "info sources" command.
5406 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5408 * symtab.c (filename_partial_match_opts): New struct type.
5409 (struct output_source_filename_data): New members
5410 regexp, c_regexp, partial_match.
5411 (output_source_filename): Use new members to decide to print file.
5412 (info_sources_option_defs): New variable.
5413 (make_info_sources_options_def_group, print_info_sources_header,
5414 info_sources_command_completer):
5416 (info_sources_command): Read new optional arguments.
5417 (_initialize_symtab): Update info sources help.
5419 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5421 * ada-lang.c (exception_support_info_v0): Renamed from...
5422 (default_exception_support_info): ... this. Create new
5424 (ada_has_this_exception_support): Look up catch_handlers_sym.
5425 (ada_exception_support_info_sniffer): Try v0 after default.
5427 2019-08-01 Tom Tromey <tromey@adacore.com>
5429 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5432 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5434 * s12z-tdep.c: Fix include path for s12z-opc.h.
5436 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5438 * NEWS: Require GNU make 3.82.
5440 2019-07-16 Tom Tromey <tom@tromey.com>
5442 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5445 2019-07-30 Tom Tromey <tromey@adacore.com>
5447 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5449 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5451 * printcmd.c (print_address_symbolic): Print negative offsets.
5452 (build_address_symbolic): Force signed arithmetic when computing
5455 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5457 PR/24474: Add a function to lookup static variables.
5458 * NEWS: Mention this new function.
5459 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5460 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5461 * python/python.c (python_GdbMethods): Add new function.
5463 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5465 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5466 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5467 (objfpy_lookup_static_symbol): New function.
5468 (objfile_object_methods): Add new functions.
5470 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5472 * NEWS: Mention 'set|show print frame-info'. Mention new
5473 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5474 backtrace argument. Mention that python frame filtering code
5475 is now consistent with what 'backtrace' command prints.
5477 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5479 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5481 (print_frame_info_auto, print_frame_info_source_line,
5482 print_frame_info_location, print_frame_info_source_and_location,
5483 print_frame_info_location_and_address, print_frame_info_short_location):
5485 (struct frame_print_options): New member print_frame_info.
5486 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5487 * stack.h (get_user_print_what_frame_info): New declaration.
5488 (frame_show_address): New declaration.
5489 * stack.c (print_frame_arguments_choices): New value 'presence'.
5490 (print_frame_info_auto, print_frame_info_source_line,
5491 print_frame_info_location, print_frame_info_source_and_location,
5492 print_frame_info_location_and_address, print_frame_info_short_location,
5493 print_frame_info_choices, print_frame_info_print_what): New definitions.
5494 (print_frame_args): Only print dots for args if print frame-arguments
5496 (frame_print_option_defs): New element for "frame-info".
5497 (get_user_print_what_frame_info): New function.
5498 (frame_show_address): Make non static. Move comment to stack.h.
5499 (print_frame_info_to_print_what): New function.
5500 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5501 to decide what to print.
5502 (backtrace_command_1): Handle the new print_frame_arguments_presence
5504 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5505 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5506 (py_print_frame): In non-mi mode, use LOCATION as default for
5507 print_what, similarly to frame information printed directly by
5508 backtrace command. Handle frame-info user option in non MI mode.
5510 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5512 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5513 Add case for debugging 32-bit target on 64-bit host. Revise
5516 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5518 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5519 instead of find_function_entry_range_from_pc.
5521 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5523 * stack.c (find_frame_funname): Remove code which preferred
5524 minsym over symtab sym in "certain pathological cases".
5526 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5527 parameter. Change type of "do_demangle" to bool.
5528 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5529 Pass suitable "prefer_sym_over_minsym" flag to
5530 build_address_symbolic(). Don't output "+" for negative offsets.
5531 * printcmd.c (print_address_symbolic): Update invocation of
5532 build_address_symbolic to include a "prefer_sym_over_minsym"
5534 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5535 Restrict cases in which use of minimal symbol is preferred to that
5536 of a found symbol. Update comments.
5538 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5539 for entry pc when entry pc is out of range for that FDE.
5541 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5544 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5547 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5549 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5550 this function's Python signature.
5553 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5555 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5556 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5557 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5558 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5559 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5562 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5564 * h8300-tdep.c (h8300_register_name_common): New.
5565 h8300_register_name): Use h8300_register_name_common.
5566 (h8300s_register_name): Likewise.
5567 (h8300sx_register_name): Likewise.
5568 (h8300h_register_nam): New.
5569 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5572 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5574 * arm-tdep.c (arm_skip_cmse_entry): New function.
5575 (arm_is_sgstubs_section): New function.
5576 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5578 2019-07-22 Tom Tromey <tom@tromey.com>
5580 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5583 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5585 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5588 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5590 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5591 so that GDB doesn't match any msymbols when searching in the
5593 (print_symbol_info): Print using typedef_print or type_print based
5594 on the type of the symbol. Add updated FIXME comment moved from...
5595 (_initialize_symtab): ... move and update FIXME comment to above.
5597 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5599 * NEWS: Mention adding -q option to "info types".
5600 * symtab.c (struct info_types_options): New struct.
5601 (info_types_options_defs): New variable.
5602 (make_info_types_options_def_group): New function.
5603 (info_types_command): Use gdb::option framework to parse options.
5604 (info_types_command_completer): New function.
5605 (_initialize_symtab): Extend the help text on "info types" and
5606 register command completer.
5608 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5610 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5611 (lookup_symbol_in_objfile): Change int to block_enum and add a
5612 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5614 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5616 * MAINTAINERS (Write After Approval): Add self.
5618 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5620 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5621 instruction to the dummy code region.
5623 2019-07-19 Tom Tromey <tromey@adacore.com>
5625 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5626 (ARGSUSED, PARAMS, __func__): Remove rules.
5628 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5630 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5631 * features/arm/arm-with-iwmmxt.c: Remove.
5632 * features/arm/arm-with-iwmmxt.xml: Remove.
5633 * features/arm/arm-with-m-fpa-layout.c: Remove.
5634 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5635 * features/arm/arm-with-m-vfp-d16.c: Remove.
5636 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5637 * features/arm/arm-with-m.c: Remove.
5638 * features/arm/arm-with-m.xml: Remove.
5639 * features/arm/arm-with-neon.c: Remove.
5640 * features/arm/arm-with-neon.xml: Remove.
5641 * features/arm/arm-with-vfpv2.c: Remove.
5642 * features/arm/arm-with-vfpv2.xml: Remove.
5643 * features/arm/arm-with-vfpv3.c: Remove.
5644 * features/arm/arm-with-vfpv3.xml: Remove.
5646 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5648 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5650 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5652 * arch/aarch32.c (aarch32_create_target_description): Create
5653 target descriptions using features.
5654 * arch/arm.c (arm_create_target_description)
5655 (arm_create_mprofile_target_description): Likewise.
5656 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5658 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5660 * Makefile.in: Add new files.
5661 * aarch32-tdep.c: New file.
5662 * aarch32-tdep.h: New file.
5663 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5664 Call aarch32_read_description.
5665 * arch/aarch32.c: New file.
5666 * arch/aarch32.h: New file.
5667 * arch/arm.c (arm_create_target_description)
5668 (arm_create_mprofile_target_description): New function.
5669 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5670 (arm_create_target_description)
5671 (arm_create_mprofile_target_description): New declaration.
5672 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5673 read_description functions.
5674 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5676 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5677 * arm-tdep.c (tdesc_arm_list): New variable.
5678 (arm_register_g_packet_guesses): Call create description functions.
5679 (arm_read_description) (arm_read_mprofile_description): New
5681 * arm-tdep.h (arm_read_description)
5682 (arm_read_mprofile_description): Add declaration.
5683 * configure.tgt: Add new files.
5685 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5687 * top.c (new_ui_command): Open specified terminal just once.
5689 2019-07-18 Tom Tromey <tromey@adacore.com>
5691 * symtab.c (main_name): Constify return type.
5692 * symfile.c (set_initial_language): Update.
5693 * symtab.h (main_name): Constify return type.
5695 2019-07-17 Tom Tromey <tom@tromey.com>
5697 * tui/tui-winsource.c (tui_update_source_window)
5698 (tui_update_source_window_as_is)
5699 (tui_update_source_windows_with_line): Remove return.
5700 * tui/tui-disasm.c (tui_show_disassem)
5701 (tui_show_disassem_and_update_source): Remove return.
5702 * tui/tui.c (tui_reset): Remove return.
5703 * tui/tui-wingeneral.c
5704 (tui_check_and_display_highlight_if_needed): Remove return.
5706 2019-07-17 Tom Tromey <tom@tromey.com>
5708 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5710 2019-07-17 Tom Tromey <tom@tromey.com>
5712 * tui/tui-winsource.h (struct tui_exec_info_window)
5713 (struct tui_source_window_base): Move from tui-data.h.
5714 * tui/tui-winsource.c: Move many method definitions from
5715 elsewhere. Remove "structuring" comments.
5716 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5717 (tui_source_window_base::refresh_window): Move to
5719 * tui/tui-win.c (tui_source_window_base::refresh_all)
5720 (tui_source_window_base::update_tab_width)
5721 (tui_source_window_base::set_new_height)
5722 (tui_source_window_base::do_make_visible_with_new_height): Move to
5724 * tui/tui-source.h: Update.
5725 * tui/tui-source.c (tui_source_window_base::reset): Move to
5727 * tui/tui-disasm.h: Update.
5728 * tui/tui-data.h (struct tui_exec_info_window): Move to
5730 (struct tui_source_window_base): Likewise.
5731 * tui/tui-data.c (tui_source_window_base::clear_detail)
5732 (tui_source_window_base, ~tui_source_window_base): Move to
5735 2019-07-17 Tom Tromey <tom@tromey.com>
5737 * tui/tui-win.c (tui_resize_all)
5738 (tui_source_window_base::update_tab_width)
5739 (tui_adjust_win_heights): Update.
5740 (tui_win_info::make_invisible_and_set_new_height): Rename from
5741 make_invisible_and_set_new_height.
5742 * tui/tui-data.h (struct tui_win_info)
5743 <make_invisible_and_set_new_height>: New method.
5745 2019-07-17 Tom Tromey <tom@tromey.com>
5747 * tui/tui.c: Update.
5748 * tui/tui-source.h (struct tui_source_window): Move from
5750 * tui/tui-layout.c: Update.
5751 * tui/tui-disasm.c: Update.
5752 * tui/tui-data.h (struct tui_source_window): Move to
5755 2019-07-17 Tom Tromey <tom@tromey.com>
5757 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5759 * tui/tui-data.h (struct tui_disasm_window): Move to
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5764 * tui/tui-regs.h (struct tui_data_item_window): Move from
5766 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5767 * tui/tui-data.h (struct tui_data_item_window): Move to
5769 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5771 2019-07-17 Tom Tromey <tom@tromey.com>
5773 * tui/tui.c: Update.
5774 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5775 (tui_cmd_window::max_height): Move to tui-command.c.
5776 * tui/tui-layout.c: Update.
5777 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5778 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5780 * tui/tui-command.h (struct tui_cmd_window): Move from
5782 * tui/tui-command.c: Remove "structuring" comments.
5783 (tui_cmd_window::clear_detail)
5784 (tui_cmd_window::do_make_visible_with_new_height)
5785 (tui_cmd_window::max_height): Move from elsewhere.
5787 2019-07-17 Tom Tromey <tom@tromey.com>
5789 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5791 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5792 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5796 * tui/tui.c: Update.
5797 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5799 * tui/tui-windata.h: Remove file.
5800 * tui/tui-windata.c: Remove file.
5801 * tui/tui-win.c (tui_data_window::set_new_height)
5802 (tui_data_window::do_make_visible_with_new_height): Move to
5804 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5805 * tui/tui-regs.c: Remove "structuring" comments.
5806 (tui_data_window::first_data_item_displayed)
5807 (tui_data_window::delete_data_content_windows)
5808 (tui_data_window::erase_data_content)
5809 (tui_data_window::display_all_data)
5810 (tui_data_window::refresh_all)
5811 (tui_data_window::do_scroll_vertical)
5812 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5813 (tui_data_window::do_make_visible_with_new_height)
5814 (tui_data_window::refresh_window): Move from elsewhere.
5815 (_initialize_tui_regs): Move to end of file.
5816 * tui/tui-layout.c: Update.
5817 * tui/tui-hooks.c: Update.
5818 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5819 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5821 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5823 2019-07-17 Tom Tromey <tom@tromey.com>
5825 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5828 2019-07-17 Tom Tromey <tom@tromey.com>
5830 * tui/tui-win.c (tui_source_window_base::set_new_height)
5831 (tui_source_window_base::do_make_visible_with_new_height): Use
5832 m_has_locator field directly.
5833 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5835 (struct tui_source_window_base) <has_locator>: Likewise.
5837 2019-07-17 Tom Tromey <tom@tromey.com>
5839 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5841 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5843 * tui/tui-win.c (tui_source_window_base::set_new_height)
5844 (tui_source_window_base::set_new_height)
5845 (make_invisible_and_set_new_height)
5846 (tui_source_window_base::do_make_visible_with_new_height)
5847 (tui_source_window_base::do_make_visible_with_new_height):
5849 * tui/tui-layout.c (show_source_disasm_command, show_data)
5850 (show_source_or_disasm_and_command): Update.
5851 * tui/tui-layout.c (show_layout): Update.
5853 2019-07-17 Tom Tromey <tom@tromey.com>
5855 * tui/tui-layout.c (make_data_window): Remove.
5856 (show_data): Unify creation and re-initialization cases.
5858 2019-07-17 Tom Tromey <tom@tromey.com>
5860 * tui/tui-layout.c (make_source_window, make_disasm_window):
5862 (show_data): Unify creation and re-initialization cases.
5864 2019-07-17 Tom Tromey <tom@tromey.com>
5866 * tui/tui-layout.c (make_command_window): Remove.
5867 (show_source_disasm_command, show_source_or_disasm_and_command):
5868 Unify creation and re-initialization cases.
5870 2019-07-17 Tom Tromey <tom@tromey.com>
5872 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5873 creation and re-initialization cases.
5875 2019-07-17 Tom Tromey <tom@tromey.com>
5877 * tui/tui-regs.c (tui_get_register): Return void.
5879 2019-07-17 Tom Tromey <tom@tromey.com>
5881 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5884 2019-07-17 Tom Tromey <tom@tromey.com>
5886 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5889 2019-07-17 Tom Tromey <tom@tromey.com>
5891 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5892 * tui/tui-regs.c (tui_reg_layout): New function.
5893 (tui_show_registers, tui_reg_command): Use it.
5894 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5895 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5897 (tui_layout_command): Remove.
5899 2019-07-17 Tom Tromey <tom@tromey.com>
5901 * tui/tui-layout.h (tui/tui-layout): Return void.
5902 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5906 * tui/tui-layout.c (show_source_disasm_command, show_data):
5908 (reset_locator): Remove.
5909 (show_source_or_disasm_and_command): Update.
5911 2019-07-17 Tom Tromey <tom@tromey.com>
5913 * tui/tui-source.c (tui_source_window_base::reset): Remove
5915 * tui/tui-layout.c (make_command_window, make_source_window)
5916 (make_disasm_window, make_data_window)
5917 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5918 (reset_locator, show_source_or_disasm_and_command): Update.
5919 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5921 (struct tui_source_window_base) <reset>: Likewise.
5923 2019-07-17 Tom Tromey <tom@tromey.com>
5925 * tui/tui-layout.c (show_source_disasm_command): Use
5927 (reset_locator): New function.
5928 (init_and_make_win): Remove.
5929 (show_source_or_disasm_and_command): Use reset_locator.
5931 2019-07-17 Tom Tromey <tom@tromey.com>
5933 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5935 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5937 * tui/tui-source.c (tui_source_window_base::reset): New method.
5938 * tui/tui-layout.c (make_command_window): Don't call
5940 (make_source_window, make_disasm_window): Don't call
5941 make_source_or_disasm_window.
5942 (make_data_window): Don't call init_and_make_win. Change calling
5944 (show_source_disasm_command, show_data): Simplify.
5945 (make_source_or_disasm_window): Remove.
5946 (show_source_or_disasm_and_command): Simplify.
5947 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5948 (struct tui_source_window_base) <reset>: Likewise.
5949 <execution_info>: Remove initializer.
5950 * tui/tui-data.c (tui_source_window_base): Initialize
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5955 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5958 2019-07-17 Tom Tromey <tom@tromey.com>
5960 * tui/tui.c (tui_rl_other_window): Update.
5961 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5962 superclass method first. Always iterate over regs_content.
5963 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5965 * tui/tui-win.c (tui_set_focus_command): Update.
5967 2019-07-17 Tom Tromey <tom@tromey.com>
5969 * tui/tui-win.c (tui_set_focus_command): Rename from
5970 tui_set_focus. Call tui_enable.
5971 (tui_set_focus_command): Remove.
5973 2019-07-17 Tom Tromey <tom@tromey.com>
5975 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5977 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5979 (tui_data_window::refresh_window): Call refresh_window on data
5980 items. Always call superclass refresh_window.
5981 (tui_win_info::refresh): Remove.
5982 (tui_source_window_base::refresh_window): Update.
5983 (tui_refresh_all): Update.
5984 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5986 (show_source_or_disasm_and_command): Likewise.
5987 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5988 (struct tui_source_window_base) <refresh>: Likewise.
5990 2019-07-17 Tom Tromey <tom@tromey.com>
5992 * tui/tui-winsource.c (tui_clear_source_content)
5993 (tui_show_source_content): Update.
5994 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5995 whether content is empty.
5996 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5999 2019-07-17 Tom Tromey <tom@tromey.com>
6001 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6003 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6004 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6006 2019-07-17 Tom Tromey <tom@tromey.com>
6008 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6009 (struct tui_data_item_window): Update.
6011 2019-07-17 Tom Tromey <tom@tromey.com>
6013 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6014 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6019 * tui/tui-winsource.h (tui_erase_source_content)
6020 (tui_clear_source_content): Remove "display_prompt" parameter.
6021 * tui/tui-winsource.c (tui_update_source_window_as_is)
6022 (tui_update_source_windows_with_addr): Update.
6023 (tui_clear_source_content): Remove "display_prompt" parameter.
6024 (tui_erase_source_content): Likewise. Simplify.
6025 (tui_show_source_content): Update.
6026 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6027 * tui/tui-stack.c (tui_show_frame_info): Update.
6028 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6031 2019-07-17 Tom Tromey <tom@tromey.com>
6033 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6034 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6036 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6039 2019-07-17 Tom Tromey <tom@tromey.com>
6041 * tui/tui-winsource.c (tui_clear_source_content)
6042 (tui_show_source_content, tui_show_exec_info_content)
6043 (tui_clear_exec_info_content): Update.
6044 * tui/tui-stack.c (tui_show_locator_content): Update.
6045 (tui_show_frame_info): Update.
6046 * tui/tui-source.h (tui_source_window): Don't declare.
6047 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6048 from tui_source_is_displayed.
6049 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6051 (struct tui_source_window_base) <content_in_use>: New field. Now
6053 (struct tui_source_window) <showing_source_p>: New method.
6054 (TUI_SRC_WIN): Change cast.
6055 * tui/tui-data.c (tui_initialize_static_data): Update.
6057 2019-07-17 Tom Tromey <tom@tromey.com>
6059 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6061 * tui/tui-source.c (tui_source_window::location_matches_p): New
6063 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6065 * tui/tui-data.h (struct tui_source_window_base)
6066 <location_matches_p>: New method.
6067 (struct tui_source_window, struct tui_disasm_window)
6068 <location_matches_p>: Likewise.
6070 2019-07-17 Tom Tromey <tom@tromey.com>
6072 * tui/tui-win.c (tui_set_win_height_command): Rename from
6074 (tui_set_win_height_command): Remove.
6076 2019-07-17 Tom Tromey <tom@tromey.com>
6078 * tui/tui-source.c (tui_source_window): New constructor. Add
6080 (~tui_source_window): New destructor.
6081 (tui_source_window::style_changed): New method.
6082 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6083 (tui_attach_detach_observers): Update.
6084 * tui/tui-data.h (struct tui_source_window): Make constructor not
6085 inline. Add destructor.
6086 (struct tui_source_window) <style_changed>: New method.
6087 <m_observable>: New member.
6089 2019-07-17 Tom Tromey <tom@tromey.com>
6091 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6092 * tui/tui-win.c (tui_resize_all): Fix typo.
6094 2019-07-17 Tom Tromey <tom@tromey.com>
6096 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6097 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6098 (tui_refresh_all): Remove "list" parameter. Use foreach.
6099 * tui/tui-win.c (window_name_completer): Use foreach.
6100 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6101 (update_tab_width): Likewise.
6102 * tui/tui-layout.c (show_layout): Update.
6103 * tui/tui-data.h (class tui_window_iterator): New.
6104 (struct all_tui_windows): New.
6105 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6107 2019-07-17 Tom Tromey <tom@tromey.com>
6109 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6110 parameter. Don't reference globals.
6111 (tui_reg_command): Update.
6113 2019-07-17 Tom Tromey <tom@tromey.com>
6115 * tui/tui-regs.c (tui_show_registers): Simplify.
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6119 * tui/tui-regs.c (tui_show_registers): Update.
6120 (tui_show_register_group): Add win_info parameter.
6122 2019-07-17 Tom Tromey <tom@tromey.com>
6124 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6125 Rename from tui_display_reg_element_at_line.
6126 (tui_data_window::display_registers_from_line): Update.
6127 * tui/tui-data.h (struct tui_data_window)
6128 <display_reg_element_at_line>: New method.
6130 2019-07-17 Tom Tromey <tom@tromey.com>
6132 * tui/tui-regs.h (tui_display_registers_from)
6133 (tui_display_registers_from_line): Don't declare.
6134 * tui/tui-windata.c (tui_data_window::display_all_data)
6135 (tui_data_window::refresh_all)
6136 (tui_data_window::do_scroll_vertical): Update.
6137 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6138 from tui_display_registers_from.
6139 (tui_display_reg_element_at_line): Update.
6140 (tui_data_window::display_registers_from_line): Rename from
6141 tui_display_registers_from_line.
6142 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6143 display_registers_from_line>: New methods.
6145 2019-07-17 Tom Tromey <tom@tromey.com>
6147 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6148 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6149 from tui_erase_data_content.
6150 (tui_data_window::display_all_data)
6151 (tui_data_window::refresh_all)
6152 (tui_data_window::do_scroll_vertical): Update.
6153 * tui/tui-regs.c (tui_show_registers): Update.
6154 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6157 2019-07-17 Tom Tromey <tom@tromey.com>
6159 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6162 (tui_data_window::delete_data_content_windows): Rename from
6163 tui_delete_data_content_windows.
6164 (tui_data_window::display_all_data)
6165 (tui_data_window::do_scroll_vertical): Update.
6166 * tui/tui-data.h (struct tui_data_window)
6167 <delete_data_content_windows>: New method.
6169 2019-07-17 Tom Tromey <tom@tromey.com>
6171 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6172 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6174 2019-07-17 Tom Tromey <tom@tromey.com>
6176 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6177 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6178 from tui_display_all_data.
6180 (tui_data_window::do_make_visible_with_new_height): Update.
6181 * tui/tui-regs.c (tui_show_registers): Update.
6182 * tui/tui-layout.c (tui_set_layout): Update.
6183 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6186 2019-07-17 Tom Tromey <tom@tromey.com>
6188 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6189 * tui/tui-windata.c (tui_display_data_from): Remove.
6190 (tui_data_window::refresh_all): Update.
6192 2019-07-17 Tom Tromey <tom@tromey.com>
6194 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6195 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6196 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6197 tui_display_registers_from_line.
6198 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6199 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6200 "force_display" parameter.
6202 2019-07-17 Tom Tromey <tom@tromey.com>
6204 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6206 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6207 Rename from tui_first_reg_element_no_inline.
6208 (tui_display_reg_element_at_line)
6209 (tui_display_registers_from_line): Update.
6210 * tui/tui-data.h (struct tui_data_window)
6211 <first_reg_element_no_inline>: New method.
6213 2019-07-17 Tom Tromey <tom@tromey.com>
6215 * tui/tui-windata.c (tui_display_data_from)
6216 (tui_data_window::do_scroll_vertical): Update.
6217 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6218 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6219 Rename from tui_line_from_reg_element_no.
6220 (tui_display_registers_from_line): Update.
6221 * tui/tui-data.h (struct tui_data_window)
6222 <line_from_reg_element_no>: New method.
6224 2019-07-17 Tom Tromey <tom@tromey.com>
6226 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6227 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6228 tui_last_regs_line_no.
6229 (tui_display_reg_element_at_line)
6230 (tui_display_registers_from_line): Update.
6231 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6234 2019-07-17 Tom Tromey <tom@tromey.com>
6237 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6238 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6239 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6240 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6241 (tui_update_breakpoint_info): Likewise.
6242 * tui/tui-hooks.c (tui_event_create_breakpoint)
6243 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6246 2019-07-17 Tom Tromey <tom@tromey.com>
6248 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6250 2019-07-17 Tom Tromey <tom@tromey.com>
6252 * tui/tui-winsource.c (tui_update_source_window_as_is)
6253 (tui_update_source_windows_with_addr): Update.
6254 * tui/tui-source.h (tui_set_source_content)
6255 (tui_show_symtab_source): Add "win_info" parameter.
6256 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6258 (tui_show_symtab_source): Likewise.
6260 2019-07-17 Tom Tromey <tom@tromey.com>
6262 * tui/tui-wingeneral.c
6263 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6265 2019-07-17 Tom Tromey <tom@tromey.com>
6267 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6268 (struct tui_cmd_window) <can_scroll>: New method.
6269 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6272 2019-07-17 Tom Tromey <tromey@adacore.com>
6274 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6275 do_field_signed>: Rename. Change type of "value".
6276 * ui-out.c (ui_out::field_signed): Rename from field_int.
6277 Change type of "value".
6278 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6280 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6281 do_field_int. Change type of "value".
6282 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6283 do_field_int. Change type of "value".
6284 * tracepoint.c (trace_status_mi, tfind_1)
6285 (print_one_static_tracepoint_marker): Update.
6286 * thread.c (print_thread_info_1, print_selected_thread_frame):
6288 * stack.c (print_frame, print_frame_info): Update.
6289 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6291 * source.c (print_source_lines_base): Update.
6292 * skip.c (info_skip_command): Update.
6293 * record-btrace.c (btrace_ui_out_decode_error)
6294 (btrace_call_history_src_line): Update.
6295 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6297 * progspace.c (print_program_space): Update.
6298 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6299 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6300 do_field_int. Change type of "value".
6301 * mi/mi-out.c (mi_ui_out::do_table_begin)
6302 (mi_ui_out::do_table_header): Update.
6303 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6305 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6306 (mi_cmd_data_list_changed_registers, output_register)
6307 (mi_cmd_data_read_memory, mi_load_progress)
6308 (mi_cmd_trace_frame_collected): Update.
6309 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6311 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6312 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6313 (mi_cmd_var_list_children, varobj_update_one): Update.
6314 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6315 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6317 * inferior.c (print_inferior): Update.
6318 * gdb_bfd.c (print_one_bfd): Update.
6319 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6321 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6322 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6323 do_field_int. Change type of "value".
6324 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6325 do_field_int. Change type of "value".
6326 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6327 (print_one_breakpoint_location, print_it_catch_fork)
6328 (print_one_catch_fork, print_it_catch_vfork)
6329 (print_one_catch_vfork, print_it_catch_solib)
6330 (print_it_catch_exec, print_it_ranged_breakpoint)
6331 (print_mention_watchpoint, print_mention_masked_watchpoint)
6332 (bkpt_print_it, update_static_tracepoint): Update.
6333 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6334 * break-catch-syscall.c (print_it_catch_syscall): Update.
6335 * ada-tasks.c (print_ada_task_info): Update.
6336 * ada-lang.c (print_it_exception, print_mention_exception):
6339 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6341 PR breakpoints/24541
6342 * gdbarch.c: Regenerate.
6343 * gdbarch.h: Regenerate.
6344 * gdbarch.sh: Adjust return type and parameter types for
6345 'stap_adjust_register'.
6346 (i386_stap_adjust_register): Adjust signature and return new
6348 * stap-probe.c (stap_parse_register_operand): Adjust use of
6349 'gdbarch_stap_adjust_register'.
6351 2019-07-17 Tom Tromey <tromey@adacore.com>
6353 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6355 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6357 (struct s390_process_info): Add initializers.
6358 (s390_add_process): Use new.
6359 (s390_linux_nat_target::low_forget_process): Use delete.
6360 (s390_linux_nat_target::low_new_fork)
6361 (s390_linux_nat_target::stopped_by_watchpoint)
6362 (s390_linux_nat_target::low_prepare_to_resume)
6363 (s390_linux_nat_target::insert_watchpoint)
6364 (s390_linux_nat_target::insert_hw_breakpoint)
6365 (s390_linux_nat_target::remove_watchpoint)
6366 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6368 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6370 * aarch64-fbsd-nat.c: Include regcache.h.
6371 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6373 (aarch64_fbsd_nat_target::fetch_registers)
6374 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6376 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6378 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6380 * fbsd-nat.c: Include gdbarch.h.
6382 2019-07-15 Tom Tromey <tromey@adacore.com>
6384 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6386 2019-07-15 Tom Tromey <tromey@adacore.com>
6388 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6389 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6390 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6391 * cli-out.c (cli_ui_out::do_field_int): New method.
6392 * ui-out.c (ui_out::field_unsigned): New method.
6393 * symfile.c (generic_load): Use field_unsigned.
6394 (print_transfer_performance): Likewise.
6395 * record-btrace.c (ui_out_field_uint): Remove.
6396 (btrace_call_history_insn_range, btrace_call_history): Use
6398 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6400 * ui-out.h (class ui_out) <field_unsigned>: New method.
6401 <do_field_unsigned>: Likewise.
6403 2019-07-15 Tom Tromey <tromey@adacore.com>
6405 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6406 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6407 * target.c (flash_erase_command): Use field_string.
6408 * infrun.c (print_signal_received_reason): Use field_string.
6409 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6410 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6412 * ada-tasks.c (print_ada_task_info): Use field_string.
6414 2019-07-15 Tom Tromey <tromey@adacore.com>
6416 * target.c (flash_erase_command): Use field_core_addr.
6417 * symfile.c (generic_load): Use field_core_addr.
6418 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6419 Use field_core_addr.
6420 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6423 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6425 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6426 value if its desired type is smaller than a CORE_ADDR and signed.
6428 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6430 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6431 of changes to field names, and use new is_reference field to
6432 decide if a property is a reference or not.
6433 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6435 (struct dwarf2_property_baton): Update header comment, rename
6436 'referenced_type' to 'property_type' and update comments.
6437 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6438 default property type, store in property baton, update to take
6439 accound of renamed field.
6440 (read_func_scope): Update call to attr_to_dynamic_prop.
6441 (read_array_type): Likewise.
6442 (dwarf2_per_cu_addr_sized_int_type): New function.
6443 (read_subrange_index_type): Move type finding code to
6444 dwarf2_per_cu_addr_sized_int_type.
6445 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6446 (dwarf2_per_cu_addr_type): New function.
6447 (set_die_type): Update calls to attr_to_dynamic_prop.
6449 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6451 * dwarf2read.c (read_subrange_index_type): New function.
6452 (read_subrange_type): Move code into new function and call it.
6453 * gdbtypes.c (create_range_type): Add some asserts.
6455 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6458 update return statements.
6459 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6460 declaration, and update comment to match.
6461 * gdbtypes.c (resolve_dynamic_array): Update call to
6462 dwarf2_evaluate_property to match new return type.
6464 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6466 * valarith.c (value_subscripted_rvalue): Change lowerbound
6467 parameter type from int to LONGEST.
6468 * value.h (value_subscripted_rvalue): Likewise in declaration.
6470 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6472 * cli/cli-utils.c (info_print_command_completer): New function.
6473 * cli/cli-utils.h: Add 'completer.h' include, and forward
6474 declaration for 'struct cmd_list_element'.
6475 (info_print_command_completer): Declare.
6476 * stack.c (_initialize_stack): Add completer for 'info locals' and
6478 * symtab.c (_initialize_symtab): Add completer for 'info
6479 variables' and 'info functions'.
6480 * NEWS: Mention completion for additional info commands.
6482 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6484 * cli/cli-utils.c (extract_info_print_args): Delete.
6485 (extract_arg_maybe_quoted): Delete.
6486 (info_print_options_defs): New variable.
6487 (make_info_print_options_def_group): New function.
6488 (extract_info_print_options): Define new function.
6489 * cli/cli-utils.h (extract_info_print_args): Delete.
6490 (struct info_print_options): New structure.
6491 (extract_info_print_options): Declare new function.
6492 * stack.c (info_locals_command): Update to use new
6493 extract_info_print_options, also add a header comment.
6494 (info_args_command): Likewise.
6495 * symtab.c (info_variables_command): Likewise.
6496 (info_functions_command): Likewise.
6498 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6500 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6501 to extract string arguments.
6502 * common/common-utils.c (extract_string_maybe_quoted): New function.
6503 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6505 2019-07-11 Tom Tromey <tromey@adacore.com>
6507 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6508 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6509 * top.h (gdbinit): Don't declare.
6510 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6512 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6513 * top.c (gdb_init): Don't call init_cli_cmds.
6515 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6517 2019-07-11 Tom Tromey <tromey@adacore.com>
6519 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6520 after it has been moved.
6522 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6524 * valops.c (value_must_coerce_to_target): Change return type to
6526 * value.h (value_must_coerce_to_target): Likewise.
6528 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6530 * breakpoint.c (is_hardware_watchpoint): Remove
6531 forward-declaration.
6532 (is_masked_watchpoint): Change return type to bool.
6533 (is_tracepoint): Likewise.
6534 (is_breakpoint): Likewise.
6535 (is_hardware_watchpoint): Likewise.
6536 (is_watchpoint): Likewise.
6537 (is_no_memory_software_watchpoint): Likewise.
6538 (is_catchpoint): Likewise.
6539 (breakpoint_1): Make FILTER parameter's return type bool.
6540 is_masked_watchpoint): Change return type to bool.
6541 (save_breakpoints): Make FILTER parameter's return type bool.
6542 * breakpoint.h (is_breakpoint): Change return type to bool.
6543 (is_watchpoint): Likewise.
6544 (is_catchpoint): Likewise.
6545 (is_tracepoint): Likewise.
6547 2019-07-10 Tom Tromey <tom@tromey.com>
6549 * defs.h: Don't include gdbarch.h.
6550 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6551 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6552 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6553 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6554 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6555 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6556 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6557 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6558 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6559 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6560 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6561 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6562 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6563 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6564 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6565 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6566 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6567 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6568 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6569 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6570 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6571 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6572 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6573 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6574 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6575 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6576 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6578 2019-07-10 Tom Tromey <tromey@adacore.com>
6580 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6581 * breakpoint.c (init_ada_exception_breakpoint): Register as
6583 (print_one_breakpoint_location, print_one_breakpoint): Use
6584 is_ada_exception_catchpoint.
6585 * ada-lang.c (class ada_catchpoint_location): Pass
6586 bp_loc_software_breakpoint to bp_location constructor.
6587 (is_ada_exception_catchpoint): New function.
6589 2019-07-10 Tom Tromey <tromey@adacore.com>
6591 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6593 (struct arm_exidx_entry): New method operator<.
6594 (struct arm_exidx_data) <section_maps>: Change type.
6595 (arm_exidx_data_free): Remove.
6596 (arm_exidx_data_key): Change type. Move lower.
6597 (arm_exidx_new_objfile): Update.
6598 (arm_compare_exidx_entries): Remove.
6599 (arm_find_exidx_entry, _initialize_arm_tdep)
6601 2019-07-10 Tom Tromey <tromey@adacore.com>
6603 * solib-spu.c (ocl_program_data_key): Change type.
6604 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6607 2019-07-10 Tom Tromey <tromey@adacore.com>
6609 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6610 (struct solib_aix_inferior_data) <library_list>: Change type.
6611 (solib_aix_inferior_data_handle): Change type.
6612 (get_solib_aix_inferior_data): Update.
6613 (solib_aix_free_library_list): Remove.
6614 (library_list_start_library): Update.
6615 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6617 (solib_aix_get_library_list)
6618 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6619 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6621 2019-07-10 Tom Tromey <tromey@adacore.com>
6623 * solib-dsbt.c (struct dsbt_info): Add initializers.
6624 (solib_dsbt_pspace_data): Change type.
6625 (dsbt_pspace_data_cleanup): Remove.
6626 (get_dsbt_info, _initialize_dsbt_solib): Update.
6628 2019-07-10 Tom Tromey <tromey@adacore.com>
6630 * spu-tdep.c (spu_overlay_data): Change type.
6631 (spu_get_overlay_table, spu_overlay_new_objfile)
6632 (_initialize_spu_tdep): Update.
6634 2019-07-10 Tom Tromey <tromey@adacore.com>
6636 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6638 (dbx_objfile_data_key): Change type and declare later.
6639 (DBX_SYMFILE_INFO): Rewrite.
6640 * dbxread.c (dbx_objfile_data_key): Change type.
6641 (dbx_symfile_init): Update.
6642 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6643 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6644 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6646 2019-07-10 Tom Tromey <tromey@adacore.com>
6648 * jit.c (jit_program_space_key): Change type. Move lower.
6649 (get_jit_program_space_data): Update.
6650 (jit_program_space_data_cleanup): Remove.
6651 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6653 (struct jit_program_space_data): Add initializers.
6655 2019-07-10 Tom Tromey <tromey@adacore.com>
6657 * solib-darwin.c (struct darwin_info): Add initializers.
6658 (solib_darwin_pspace_data): Change type.
6659 (darwin_pspace_data_cleanup): Remove.
6660 (get_darwin_info, _initialize_darwin_solib): Update.
6662 2019-07-10 Tom Tromey <tromey@adacore.com>
6664 * remote-sim.c (struct sim_inferior_data): Add initializers,
6665 constructor, and destructor.
6666 (sim_inferior_data_key): Change type. Move lower.
6667 (check_for_duplicate_sim_descriptor): Update.
6668 (get_sim_inferior_data): Use new. Update.
6669 (~sim_inferior_data_cleanup): Rename from
6670 sim_inferior_data_cleanup. Simplify.
6671 (gdbsim_close_inferior, simulator_command)
6672 (sim_command_completer, _initialize_remote_sim): Update.
6673 (next_pid, INITIAL_PID): Move earlier.
6675 2019-07-10 Tom Tromey <tromey@adacore.com>
6677 * python/python-internal.h (create_thread_object): Return
6679 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6680 * python/py-inferior.c (struct threadlist_entry): Add
6682 <thread_obj>: Now a gdbpy_ref.
6683 (thread_to_thread_object): Update.
6684 (add_thread_object): Use new.
6685 (delete_thread_object): Use delete.
6686 (infpy_threads): Update.
6687 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6690 2019-07-10 Tom Tromey <tromey@adacore.com>
6692 * valops.c (value_cast): Specialize error message for Ada.
6694 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6696 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6698 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6700 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6701 bpstat_should_step): Return bool, adjust comments.
6702 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6703 bpstat_should_step): Likewise.
6705 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6707 * features/Makefile: Use feature target descriptions for Arm.
6708 * features/arm/arm-core.c: Generate new file.
6709 * features/arm/arm-fpa.c: Likewise.
6710 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6711 * features/arm/arm-m-profile.c: Likewise.
6712 * features/arm/arm-vfpv2.c: Likewise.
6713 * features/arm/arm-vfpv3.c: Likewise.
6714 * features/arm/xscale-iwmmxt.c: Likewise.
6715 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6717 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6719 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6722 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6724 * features/aarch64-pauth.c: Regenerate.
6726 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6728 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6730 (bpstat_what): Use false instead of 0.
6732 2019-07-09 Pedro Alves <palves@redhat.com>
6734 * break-catch-throw.c (is_exception_catchpoint): New.
6735 * breakpoint.c (print_one_breakpoint_location): New parameter
6736 'raw_loc'. Handle it. Use
6737 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6738 looking at the breakpoint's type.
6739 (print_one_breakpoint): If handling "maint info breakpoints", also
6740 print locations of exception catchpoints.
6741 * breakpoint.h (is_exception_catchpoint): Declare.
6743 2019-07-09 Pedro Alves <palves@redhat.com>
6745 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6747 (allocate_location_exception_catchpoint): New.
6748 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6749 (initialize_throw_catchpoint_ops): Install
6750 allocate_location_exception_catchpoint as allocate_location
6752 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6753 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6755 (breakpoint_address_is_meaningful): Delete.
6756 (bl_address_is_meaningful): New.
6757 (breakpoint_locations_match): Adjust comment.
6758 (bp_location_from_bp_type): New, factored out of...
6759 (bp_location::bp_location(breakpoint *)): ... this.
6760 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6762 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6763 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6764 breakpoint_address_is_meaningful.
6765 (bp_locations_compare): Adjust comment.
6766 (update_global_location_list): Use bl_address_is_meaningful
6767 instead of breakpoint_address_is_meaningful.
6768 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6770 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6771 * python/py-breakpoint.c (bppy_get_location): No longer check
6772 whether location is null.
6774 2019-07-09 Pedro Alves <palves@redhat.com>
6777 * breakpoint.c (print_one_breakpoint_location): Remove
6778 single-location assert.
6780 2019-07-09 Tom Tromey <tom@tromey.com>
6782 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6783 * configure: Rebuild.
6784 * configure.ac: Change common to gdbsupport.
6785 * gdbsupport: Rename from common.
6786 * acinclude.m4: Change common to gdbsupport.
6787 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6788 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6790 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6791 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6792 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6793 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6794 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6795 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6796 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6797 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6798 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6799 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6800 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6801 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6802 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6803 coff-pe-read.c, command.h, compile/compile-c-support.c,
6804 compile/compile-c.h, compile/compile-cplus-symbols.c,
6805 compile/compile-cplus-types.c, compile/compile-cplus.h,
6806 compile/compile-loc2c.c, compile/compile.c, completer.c,
6807 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6808 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6809 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6810 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6811 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6812 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6813 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6814 features/aarch64-core.c, features/aarch64-fpu.c,
6815 features/aarch64-pauth.c, features/aarch64-sve.c,
6816 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6817 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6818 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6819 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6820 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6821 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6822 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6823 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6824 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6825 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6826 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6827 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6828 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6829 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6830 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6831 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6832 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6833 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6834 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6835 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6836 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6837 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6838 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6839 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6840 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6841 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6842 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6843 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6844 minsyms.c, mips-linux-tdep.c, namespace.h,
6845 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6846 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6847 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6848 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6849 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6850 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6851 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6852 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6853 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6854 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6855 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6856 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6857 procfs.c, producer.c, progspace.h, psymtab.h,
6858 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6859 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6860 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6861 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6862 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6863 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6864 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6865 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6866 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6867 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6868 target-memory.c, target.c, target.h, target/waitstatus.c,
6869 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6870 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6871 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6872 unittests/array-view-selftests.c,
6873 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6874 unittests/common-utils-selftests.c,
6875 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6876 unittests/format_pieces-selftests.c,
6877 unittests/function-view-selftests.c,
6878 unittests/lookup_name_info-selftests.c,
6879 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6880 unittests/mkdir-recursive-selftests.c,
6881 unittests/observable-selftests.c,
6882 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6883 unittests/parse-connection-spec-selftests.c,
6884 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6885 unittests/scoped_fd-selftests.c,
6886 unittests/scoped_mmap-selftests.c,
6887 unittests/scoped_restore-selftests.c,
6888 unittests/string_view-selftests.c, unittests/style-selftests.c,
6889 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6890 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6891 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6892 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6893 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6894 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6896 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6898 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6900 (decode_digits_ordinary): Set explicit_line field in sal.
6901 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6902 symtab_and_line that was set on an explicit line number in
6903 assembler code. Do always update the recorded symtab and line if
6904 we do skip the prologue.
6906 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6908 * breakpoint.c (set_breakpoint_location_function): Remove
6909 explicit_loc parameter.
6910 (momentary_breakpoint_from_master): Update call to
6911 set_breakpoint_location_function.
6912 (add_location_to_breakpoint): Likewise.
6914 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6916 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6917 required features based on default bfd type when no specific bfd
6920 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6922 * NEWS: Mention that GDB printf and eval commands can now print
6923 C-style and Ada-style convenience var strings without
6924 calling the inferior.
6925 * printcmd.c (printf_c_string): Locally print GDB internal var
6926 instead of transiting via the inferior.
6927 (printf_wide_c_string): Likewise.
6929 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6931 PR breakpoints/25011
6932 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6934 2019-07-04 Tom Tromey <tom@tromey.com>
6937 * tui/tui-winsource.c (tui_clear_source_content): Update.
6938 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6939 (tui_update_breakpoint_info): Update.
6940 (tui_set_exec_info_content): Update.
6941 * tui/tui-source.c (tui_set_source_content_nil): Update.
6942 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6944 * tui/tui-data.h (enum tui_bp_flag): New.
6945 (tui_bp_flags): New enum flags type.
6946 (struct tui_source_element) <break_mode>: Change type. Rename
6948 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6949 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6951 * tui/tui-winsource.h: Fix comment.
6953 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6955 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6956 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6957 (store_fpregs_to_thread)
6958 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6959 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6960 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6961 (IWMMXT_REGS_SIZE): Add define.
6962 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6963 (fetch_vfp_regs, store_vfp_regs)
6964 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6965 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6967 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6969 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6971 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6972 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6973 (ARM_INT_REGISTER_SIZE): ...to this.
6974 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6975 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6976 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6977 (arm_linux_collect_gregset, supply_nwfpe_register)
6978 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6980 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6981 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6982 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6983 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6984 (arm_return_in_memory, arm_store_return_value)
6985 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6986 (arm_record_ld_st_multiple): Likewise.
6987 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6988 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6990 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6992 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6993 AARCH64_DISPLACED_MODIFIED_INSNS.
6994 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6995 (aarch64_displaced_step_copy_insn): Likewise.
6996 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6997 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6998 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6999 ARM_DISPLACED_MODIFIED_INSNS.
7000 * arm-tdep.c (arm_gdbarch_init): Likewise.
7001 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7002 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7003 (struct arm_displaced_step_closure): Use
7004 ARM_DISPLACED_MODIFIED_INSNS.
7006 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7008 * features/Makefile: Remove unused xml files.
7009 * features/aarch64.xml: Remove.
7010 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7011 * features/i386/amd64-avx-avx512.xml: Remove.
7012 * features/i386/amd64-avx-linux.xml: Remove.
7013 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7014 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7015 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7016 * features/i386/amd64-avx-mpx.xml: Remove.
7017 * features/i386/amd64-avx.xml: Remove.
7018 * features/i386/amd64-linux.xml: Remove.
7019 * features/i386/amd64-mpx-linux.xml: Remove.
7020 * features/i386/amd64-mpx.xml: Remove.
7021 * features/i386/amd64.xml: Remove.
7022 * features/i386/i386-avx-avx512-linux.xml: Remove.
7023 * features/i386/i386-avx-avx512.xml: Remove.
7024 * features/i386/i386-avx-linux.xml: Remove.
7025 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7026 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7027 * features/i386/i386-avx-mpx-linux.xml: Remove.
7028 * features/i386/i386-avx-mpx.xml: Remove.
7029 * features/i386/i386-avx.xml: Remove.
7030 * features/i386/i386-linux.xml: Remove.
7031 * features/i386/i386-mmx-linux.xml: Remove.
7032 * features/i386/i386-mmx.xml: Remove.
7033 * features/i386/i386-mpx-linux.xml: Remove.
7034 * features/i386/i386-mpx.xml: Remove.
7035 * features/i386/i386.xml: Remove.
7036 * features/i386/x32-avx-avx512-linux.xml: Remove.
7037 * features/i386/x32-avx-linux.xml: Remove.
7038 * features/i386/x32-linux.xml: Remove.
7040 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7042 * regformats/aarch64.dat: Remove.
7043 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7044 * regformats/i386/amd64-avx-linux.dat: Remove.
7045 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7046 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7047 * regformats/i386/amd64-linux.dat: Remove.
7048 * regformats/i386/amd64-mpx-linux.dat: Remove.
7049 * regformats/i386/amd64.dat: Remove.
7050 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7051 * regformats/i386/i386-avx-linux.dat: Remove.
7052 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7053 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7054 * regformats/i386/i386-linux.dat: Remove.
7055 * regformats/i386/i386-mmx-linux.dat: Remove.
7056 * regformats/i386/i386-mpx-linux.dat: Remove.
7057 * regformats/i386/i386.dat: Remove.
7058 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7059 * regformats/i386/x32-avx-linux.dat: Remove.
7060 * regformats/i386/x32-linux.dat: Remove.
7062 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7064 * aarch64-tdep.c: Remove xml self tests.
7065 * amd64-linux-tdep.c: Likewise.
7066 * amd64-tdep.c: Likewise.
7067 * i386-linux-tdep.c: Likewise.
7068 * i386-tdep.c: Likewise.
7070 2019-07-03 Pedro Alves <palves@redhat.com>
7073 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7074 (pipe_cmd_option_defs): New.
7075 (make_pipe_cmd_options_def_group): New.
7076 (pipe_command): Use gdb::option::process_options.
7077 (pipe_command_completer): New function.
7078 (_initialize_cli_cmds): Install completer for "pipe" command.
7080 2019-07-03 Pedro Alves <palves@redhat.com>
7082 * cli/cli-option.c (union option_value) <string>: New field.
7083 (struct option_def_and_value): Add ctor, move ctor, dtor and
7084 use DISABLE_COPY_AND_ASSIGN.
7085 (option_def_and_value::clear_value): New.
7086 (parse_option, save_option_value_in_ctx, get_val_type_str)
7087 (add_setshow_cmds_for_options): Handle var_string.
7088 * cli-option.h (union option_def::var_address) <string>: New
7090 (struct string_option_def): New.
7091 * maint-test-options.c (struct test_options_opts): Add default
7092 ctor and use DISABLE_COPY_AND_ASSIGN.
7093 <string_opt>: New field.
7094 (test_options_opts::~test_options_opts): New.
7095 (test_options_opts::dump): Also dump "-string".
7096 (test_options_option_defs): Install "string.
7098 2019-07-03 Pedro Alves <palves@redhat.com>
7100 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7101 option_value with a null enumeration.
7102 (complete_options): Save the option values in the context.
7103 (save_option_value_in_ctx): New, factored out from ...
7104 (process_options): ... here.
7105 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7107 * maint-test-options.c (test_options_opts::dump): New, factored
7109 (maintenance_test_options_command_mode): ... here.
7110 (maintenance_test_options_command_completion_result): Delete.
7111 (maintenance_test_options_command_completion_text): Update
7113 (maintenance_show_test_options_completion_result): Change
7114 prototype. Just print
7115 maintenance_test_options_command_completion_text.
7116 (save_completion_result): New.
7117 (maintenance_test_options_completer_mode): Pass options context to
7118 complete_options, and then save a dump.
7119 (_initialize_maint_test_options): Use add_cmd to install "maint
7120 show test-options-completion-result".
7122 2019-07-03 Pedro Alves <palves@redhat.com>
7124 * NEWS (New commands): Mention "with" and "maint with".
7125 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7126 (with_command, with_command_completer): New.
7127 (pipe_command): Adjust to new repeat_previous
7129 (_initialize_cli_cmds): Install the "with" command and its "w"
7131 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7133 * cli/cli-setshow.c (parse_cli_var_uinteger)
7134 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7135 argument strings for all var_types.
7136 (get_setshow_command_value_string): New, factored out from ...
7137 (do_show_command): ... this.
7138 * cli/cli-setshow.h: Include <string>.
7139 (get_setshow_command_value_string): Declare.
7140 * command.h (repeat_previous): Now returns const char *. Adjust
7142 * maint.c: Include "cli/cli-cmds.h".
7143 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7144 (_initialize_maint_cmds): Register the "maintenance with" command.
7145 * top.c (repeat_previous): Move bits from pipe_command here:
7146 Return the saved command line, if any; error out if there's no
7147 command to relaunch.
7149 2019-07-03 Pedro Alves <palves@redhat.com>
7151 * NEWS (New commands): Mention "maint set/show test-settings"
7152 instead of "maint test-settings".
7153 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7154 (maintenance_test_settings_set_list): Rename to ...
7155 (maintenance_set_test_settings_list): ... this.
7156 (maintenance_test_settings_show_list): Rename to ...
7157 (maintenance_show_test_settings_list): ... this.
7158 (maintenance_test_settings_cmd): Delete.
7159 (maintenance_test_settings_set_cmd): ...
7160 (maintenance_set_test_settings_cmd): ... this.
7161 (maintenance_test_settings_show_cmd): ...
7162 (maintenance_show_test_settings_cmd): ... this.
7163 (maintenance_test_settings_show_value_cmd):
7164 (maintenance_show_test_settings_value_cmd): ... this.
7165 (_initialize_maint_test_settings): No longer install the "maint
7166 test-settings" prefix command. Rename "maint test-settings set"
7167 to "maint set test-settings", and "maint test-settings show" to
7168 "maint show test-settings". Adjust all subcommands.
7170 2019-07-03 Pedro Alves <palves@redhat.com>
7172 * maint-test-settings.c: Fix file's intro comment. Replace all
7173 references to "test-options" with references to "test-settings",
7176 2019-07-03 Pedro Alves <palves@redhat.com>
7178 * maint-test-settings.c (maintenance_test_settings_xxx)
7179 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7181 (maintenance_test_settings_enums): Use them.
7182 (maintenance_test_settings_enum): Default to
7183 maintenance_test_settings_xxx.
7184 (_initialize_maint_test_settings): Initialize
7185 MAINTENANCE_TEST_SETTINGS_FILENAME.
7187 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7189 * breakpoint.h (remove_breakpoints_inf): Change return type to
7190 void, move function documentation here.
7191 * breakpoint.c (remove_breakpoints_inf): Change return type to
7192 void, move function documentation to header.
7194 2019-07-02 Pedro Alves <palves@redhat.com>
7196 * NEWS (Completion improvements): Mention "info threads".
7197 * thread.c (struct info_threads_opts, info_threads_option_defs)
7198 (make_info_threads_options_def_group): New.
7199 (info_threads_command): Use gdb::option::process_options.
7200 (info_threads_command_completer): New.
7201 (_initialize_thread): Use gdb::option::build_help to build the
7202 help text for "info threads".
7204 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7206 * defs.h (generic_load): Move from here...
7207 * symfile.h (generic_load): ... to here. Rename name parameter
7209 * symfile.c (generic_load): Add comment.
7211 2019-07-01 Tom Tromey <tromey@adacore.com>
7214 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7215 declaration of without_params. Fix formatting.
7217 2019-07-01 Tom Tromey <tromey@adacore.com>
7219 * ada-exp.y (find_primitive_type): Update.
7220 * ada-lang.h (ada_lookup_symbol): Update.
7221 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7223 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7225 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7227 PR breakpoints/24541
7228 * gdbarch.c: Regenerate.
7229 * gdbarch.h: Regenerate.
7230 * gdbarch.sh: Add 'stap_adjust_register'.
7231 * i386-tdep.c: Include '<unordered_set>'.
7232 (i386_stap_adjust_register): New function.
7233 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7234 * stap-probe.c (stap_parse_register_operand): Call
7235 'gdbarch_stap_adjust_register'.
7237 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7240 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7241 * python/python.c (do_start_initialization): Use 'xmalloc'
7242 instead of 'PyMem_Malloc'.
7244 2019-06-28 Tom Tromey <tromey@adacore.com>
7246 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7249 2019-06-27 Tom Tromey <tromey@adacore.com>
7251 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7253 (arm_find_mapping_symbol, arm_record_special_symbol)
7254 (_initialize_arm_tdep): Update.
7255 (arm_objfile_data_free): Remove.
7257 2019-06-27 Tom Tromey <tromey@adacore.com>
7259 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7260 to cp_print_static_field.
7262 2019-06-26 Tom Tromey <tromey@adacore.com>
7264 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7265 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7268 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7270 * features/aarch64-core.c (create_feature_aarch64_core):
7272 * features/aarch64-core.xml: Add cpsr flags.
7274 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7276 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7277 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7279 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7281 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7283 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7285 (arm_record_special_symbol): Don't insert new symbol in sorted
7286 position, push it at the end.
7288 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7290 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7291 (arm_mapping_symbol_s): Remove.
7292 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7293 (arm_mapping_symbol_vec): New typedef.
7294 (struct arm_per_objfile): Add constructor.
7295 <section_maps>: Change type to
7296 std::unique_ptr<arm_mapping_symbol_vec[]>.
7297 (arm_compare_mapping_symbols): Remove.
7298 (arm_find_mapping_symbol): Adjust to section_maps type change.
7299 (arm_objfile_data_free): Call delete on arm_per_objfile.
7300 (arm_record_special_symbol): Adjust to section_maps type change.
7301 Allocate arm_per_objfile with new.
7303 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7305 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7306 with the command prefix.
7308 2019-06-25 Tom Tromey <tom@tromey.com>
7310 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7311 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7313 2019-06-25 Tom Tromey <tom@tromey.com>
7315 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7317 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7320 2019-06-25 Tom Tromey <tom@tromey.com>
7322 * tui/tui-winsource.c
7323 (tui_source_window_base::set_is_exec_point_at): Add check against
7326 2019-06-25 Tom Tromey <tom@tromey.com>
7328 * tui/tui-source.c (tui_set_source_content): Don't check before
7330 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7332 2019-06-25 Tom Tromey <tom@tromey.com>
7334 * tui/tui-winsource.h (tui_update_source_window_as_is)
7335 (tui_alloc_source_buffer, tui_line_is_displayed)
7336 (tui_addr_is_displayed): Change type of win_info.
7337 * tui/tui-winsource.c (tui_update_source_window_as_is)
7338 (tui_clear_source_content, tui_show_source_line)
7339 (tui_show_source_content, tui_source_window_base::refill)
7340 (tui_source_window_base::set_is_exec_point_at)
7341 (tui_source_window_base::set_is_exec_point_at)
7342 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7343 (tui_alloc_source_buffer, tui_line_is_displayed)
7344 (tui_addr_is_displayed): Change type of win_info. Update.
7345 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7346 (tui_source_window_base::do_make_visible_with_new_height):
7348 * tui/tui-source.c (tui_set_source_content)
7349 (tui_set_source_content_nil)
7350 (tui_source_window::do_scroll_vertical): Update.
7351 * tui/tui-layout.c (show_layout): Update.
7352 * tui/tui-disasm.c (tui_set_disassem_content)
7353 (tui_disasm_window::do_scroll_vertical): Update.
7354 * tui/tui-data.h (tui_win_content): Remove.
7355 (struct tui_gen_win_info) <content, content_size>: Remove.
7356 (struct tui_source_element): Add initializers and destructor.
7357 (union tui_which_element, struct tui_win_element): Remove.
7358 (struct tui_source_window_base) <content>: New field.
7359 (struct tui_data_window): Remove destructor.
7360 (tui_alloc_content, tui_free_win_content)
7361 (tui_free_all_source_wins_content): Don't declare.
7362 * tui/tui-data.c (tui_initialize_static_data): Update.
7363 (init_content_element, tui_alloc_content): Remove.
7364 (~tui_gen_win_info): Update.
7365 (~tui_data_window, tui_free_all_source_wins_content)
7366 (tui_free_win_content, free_content, free_content_elements):
7369 2019-06-25 Tom Tromey <tom@tromey.com>
7371 * tui/tui-winsource.h (tui_clear_source_content)
7372 (tui_erase_source_content, tui_show_source_content): Change type
7374 * tui/tui-winsource.c (tui_clear_source_content)
7375 (tui_erase_source_content, tui_show_source_content): Change type
7377 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7378 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7380 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7382 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7384 2019-06-25 Tom Tromey <tom@tromey.com>
7386 * tui/tui-winsource.c (tui_clear_source_content)
7387 (tui_source_window_base::set_is_exec_point_at): Update.
7388 * tui/tui-source.c (tui_set_source_content_nil): Update.
7389 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7391 * tui/tui-data.c (init_content_element): Update.
7393 2019-06-25 Tom Tromey <tom@tromey.com>
7395 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7396 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7397 * tui/tui-layout.c (init_and_make_win): Update.
7398 * tui/tui.h (enum tui_win_type): Update.
7399 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7400 tui_win_is_auxillary.
7401 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7402 tui_win_is_auxillary.
7404 2019-06-25 Tom Tromey <tom@tromey.com>
7406 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7407 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7408 (tui_delete_data_content_windows, tui_display_all_data)
7409 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7411 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7412 * tui/tui-regs.c (tui_last_regs_line_no)
7413 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7414 (tui_show_registers): Update.
7415 (tui_show_register_group): Return void. Update.
7416 (tui_display_registers_from, tui_display_reg_element_at_line)
7417 (tui_display_registers_from_line, tui_check_register_values):
7419 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7421 (struct tui_data_window) <regs_content>: Now a std::vector.
7422 <regs_content_count>: Remove.
7423 (tui_add_content_elements, tui_free_data_content): Don't declare.
7424 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7425 (init_content_element): Remove DATA_WIN case. Add assert.
7426 (tui_add_content_elements): Remove.
7427 (tui_data_window): Update.
7428 (tui_free_data_content): Remove.
7429 (free_content_elements): Remove DATA_WIN case.
7431 2019-06-25 Tom Tromey <tom@tromey.com>
7433 * tui/tui-data.c (tui_data_item_window): Update.
7434 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7435 * tui/tui-windata.c (tui_display_all_data)
7436 (tui_display_data_from_line): Update.
7437 (tui_check_data_values): Remove.
7438 * tui/tui-regs.c (tui_show_register_group)
7439 (tui_display_reg_element_at_line): Update.
7440 * tui/tui-hooks.c (tui_register_changed)
7441 (tui_refresh_frame_and_register_information): Call
7442 tui_check_register_values.
7443 * tui/tui-data.h (struct tui_data_window) <data_content,
7444 data_content_count, data_type>: Remove.
7445 (enum tui_data_type): Remove.
7447 * tui/tui-data.c (tui_data_window::clear_detail)
7448 (~tui_data_window): Update.
7450 2019-06-25 Tom Tromey <tom@tromey.com>
7452 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7454 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7455 Rename from tui_first_data_item_displayed. Update.
7456 (tui_data_window::refresh_all)
7457 (tui_data_window::do_scroll_vertical): Update.
7458 * tui/tui-data.h (struct tui_data_window)
7459 <first_data_item_displayed>: Declare new method.
7461 2019-06-25 Tom Tromey <tom@tromey.com>
7463 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7464 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7466 (tui_initialize_static_data): ...here.
7468 2019-06-25 Tom Tromey <tom@tromey.com>
7470 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7471 (tui_display_registers_from, tui_check_register_values): Update.
7472 (tui_display_register): Remove win_info parameter; update.
7473 (tui_get_register): Change type of parameters.
7474 * tui/tui-data.h (struct tui_data_element): Remove.
7475 (union tui_which_element) <data>: Remove.
7476 <data_window>: Change type.
7477 (struct tui_data_item_window): New.
7478 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7480 (~tui_data_item_window): New destructor.
7481 (free_content_elements): Remove DATA_ITEM_WIN case.
7483 2019-06-25 Tom Tromey <tom@tromey.com>
7485 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7488 2019-06-25 Tom Tromey <tom@tromey.com>
7490 * tui/tui-data.h (struct tui_command_element): Remove.
7491 (union tui_which_element) <command>: Remove.
7492 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7494 (free_content_elements): Remove CMD_WIN case.
7496 2019-06-25 Tom Tromey <tom@tromey.com>
7498 * tui/tui-layout.c (tui_set_layout): Update.
7499 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7500 * tui/tui-data.c (layout_def): Update.
7502 2019-06-25 Tom Tromey <tom@tromey.com>
7504 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7505 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7506 (tui_source_window_base::set_new_height): Update.
7507 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7509 (tui_set_locator_fullname, tui_set_locator_info)
7510 (tui_show_frame_info): Update.
7511 * tui/tui-source.c (tui_set_source_content)
7512 (tui_source_is_displayed): Update.
7513 * tui/tui-layout.c (show_source_disasm_command, show_data)
7514 (show_source_or_disasm_and_command): Update.
7515 * tui/tui-disasm.c (tui_set_disassem_content)
7516 (tui_get_begin_asm_address): Update.
7517 * tui/tui-data.h (struct tui_locator_element): Remove.
7518 (union tui_which_element) <locator>: Remove.
7519 (struct tui_locator_window): New.
7520 (tui_locator_win_info_ptr): Change return type.
7521 * tui/tui-data.c (_locator): Change type.
7522 (tui_locator_win_info_ptr): Change return type.
7523 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7524 (tui_alloc_content): Add assert.
7526 2019-06-25 Tom Tromey <tom@tromey.com>
7528 * tui/tui-winsource.c
7529 (tui_exec_info_window::maybe_allocate_content): New method.
7530 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7531 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7532 (make_source_or_disasm_window): Add cast.
7533 * tui/tui-data.h (union tui_which_element) <simple_string>:
7535 (struct tui_source_info): New.
7536 (struct tui_source_window_base) <execution_info>: Change type.
7537 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7538 case, and add assert.
7539 (tui_alloc_content): Add assert.
7541 2019-06-25 Tom Tromey <tom@tromey.com>
7543 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7544 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7545 * tui/tui-data.c (tui_alloc_win_info): Remove.
7547 2019-06-25 Tom Tromey <tom@tromey.com>
7549 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7550 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7555 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7556 make_visible_with_new_height method.
7557 (tui_win_info::make_visible_with_new_height): New method.
7558 (tui_source_window_base::do_make_visible_with_new_height)
7559 (tui_data_window::do_make_visible_with_new_height)
7560 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7561 (make_visible_with_new_height): Remove.
7562 (tui_resize_all, tui_adjust_win_heights): Use
7563 make_visible_with_new_height method.
7564 * tui/tui-data.h (struct tui_win_info)
7565 <do_make_visible_with_new_height, make_visible_with_new_height>:
7567 (struct tui_source_window_base, struct tui_data_window)
7568 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7571 2019-06-25 Tom Tromey <tom@tromey.com>
7573 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7575 (update_tab_width): Call update_tab_width method.
7576 * tui/tui-data.h (struct tui_win_info)
7577 (struct tui_source_window_base) <update_tab_width>: New methods.
7579 2019-06-25 Tom Tromey <tom@tromey.com>
7581 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7583 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7585 (tui_gen_win_info::make_visible): Update.
7586 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7588 * tui/tui-data.h (enum tui_box): New enum.
7589 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7591 2019-06-25 Tom Tromey <tom@tromey.com>
7593 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7594 init_and_make_win for EXEC_INFO_WIN.
7595 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7597 (struct tui_win_info) <~tui_win_info>: Inline.
7598 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7600 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7601 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7603 (tui_initialize_static_data): Update.
7604 (~tui_gen_win_info): Handle more cleanup here.
7605 (~tui_source_window_base): Delete "execution_info".
7606 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7608 2019-06-25 Tom Tromey <tom@tromey.com>
7610 * tui/tui-layout.c (make_command_window): Don't set
7612 (show_source_disasm_command): Call the reset method.
7613 (show_data): Don't set can_highlight. Call the reset method.
7614 (tui_gen_win_info::reset): Rename from init_gen_win_info
7615 (init_and_make_win): Simplify. Return tui_gen_win_info.
7616 (show_source_or_disasm_and_command): Call the reset method.
7617 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7618 (struct tui_cmd_window): Set can_highlight.
7620 2019-06-25 Tom Tromey <tom@tromey.com>
7622 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7624 (tui_make_visible, tui_make_invisible): Rewrite.
7625 (tui_win_info::make_visible): Remove.
7626 (tui_source_window_base::make_visible): Update.
7627 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7628 method. Moved from...
7629 (struct tui_win_info) <make_visible>: ...here.
7631 2019-06-25 Tom Tromey <tom@tromey.com>
7633 * tui/tui-winsource.c
7634 (tui_source_window_base::do_scroll_horizontal): Remove direction
7636 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7637 direction parameter.
7638 * tui/tui-win.c (tui_win_info::forward_scroll)
7639 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7640 (tui_win_info::right_scroll): Update.
7641 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7642 direction parameter.
7643 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7644 direction parameter.
7645 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7646 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7647 Remove direction parameter.
7648 (struct tui_source_window_base, struct tui_source_window)
7649 (struct tui_disasm_window, struct tui_data_window)
7650 (struct tui_cmd_window): Update.
7652 2019-06-25 Tom Tromey <tom@tromey.com>
7654 * tui/tui-winsource.h (tui_set_exec_info_content)
7655 (tui_show_exec_info_content, tui_erase_exec_info_content)
7656 (tui_clear_exec_info_content, tui_update_exec_info): Change
7657 argument to tui_source_window_base.
7658 * tui/tui-winsource.c (tui_set_exec_info_content)
7659 (tui_show_exec_info_content, tui_erase_exec_info_content)
7660 (tui_clear_exec_info_content, tui_update_exec_info): Change
7661 argument to tui_source_window_base.
7663 2019-06-25 Tom Tromey <tom@tromey.com>
7665 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7666 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7668 2019-06-25 Tom Tromey <tom@tromey.com>
7670 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7673 2019-06-25 Tom Tromey <tom@tromey.com>
7675 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7677 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7679 * tui/tui-source.c (tui_set_source_content): Update.
7680 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7682 2019-06-25 Tom Tromey <tom@tromey.com>
7684 * tui/tui-win.c (window_name_completer, tui_set_focus)
7685 (tui_all_windows_info): Use name method.
7686 * tui/tui-data.h (struct tui_gen_win_info)
7687 (struct tui_source_window, struct tui_disasm_window)
7688 (struct tui_data_window, struct tui_cmd_window) <name>: New
7690 (tui_win_name): Don't declare.
7691 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7692 (tui_win_name): Remove.
7694 2019-06-25 Tom Tromey <tom@tromey.com>
7696 * tui/tui-winsource.h (tui_update_source_window)
7697 (tui_update_source_window_as_is): Change parameter type.
7698 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7699 to be a tui_source_window_base.
7700 (tui_update_source_window_as_is): Likewise.
7701 * tui/tui-win.c (make_visible_with_new_height): Update.
7703 2019-06-25 Tom Tromey <tom@tromey.com>
7705 * tui/tui-winsource.c (tui_erase_source_content)
7706 (tui_show_source_content, tui_show_exec_info_content)
7707 (tui_erase_exec_info_content): Use refresh_window method.
7708 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7709 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7710 from tui_refresh_win.
7711 (tui_data_window::refresh_window): New method.
7712 (tui_win_info::refresh, tui_source_window_base::refresh)
7713 (tui_refresh_all): Use refresh_window method.
7714 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7716 * tui/tui-regs.c (tui_display_register): Call refresh_window
7718 * tui/tui-layout.c (show_source_disasm_command)
7719 (show_source_or_disasm_and_command): Call refresh_window method.
7720 * tui/tui-data.h (struct tui_gen_win_info)
7721 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7724 2019-06-25 Tom Tromey <tom@tromey.com>
7726 * tui/tui.c (tui_rl_other_window, tui_enable)
7727 (tui_is_window_visible, tui_get_command_dimension): Update.
7728 * tui/tui-winsource.c (tui_update_source_window_as_is)
7729 (tui_clear_source_content, tui_erase_source_content)
7730 (tui_show_source_line, tui_source_window_base::refill)
7731 (tui_source_window_base::do_scroll_horizontal)
7732 (tui_source_window_base::set_is_exec_point_at)
7733 (tui_update_breakpoint_info, tui_set_exec_info_content)
7734 (tui_alloc_source_buffer, tui_line_is_displayed)
7735 (tui_addr_is_displayed): Update.
7736 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7737 (tui_check_and_display_highlight_if_needed)
7738 (tui_win_info::make_visible, tui_win_info::refresh)
7739 (tui_refresh_all): Update.
7740 * tui/tui-windata.c (tui_first_data_item_displayed)
7741 (tui_delete_data_content_windows, tui_erase_data_content)
7742 (tui_display_all_data, tui_data_window::refresh_all)
7743 (tui_check_data_values): Update.
7744 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7745 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7746 (tui_win_info::backward_scroll, tui_refresh_all_win)
7747 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7748 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7749 (tui_source_window_base::set_new_height)
7750 (tui_data_window::set_new_height)
7751 (make_invisible_and_set_new_height)
7752 (make_visible_with_new_height, new_height_ok)
7753 (parse_scrolling_args): Update.
7754 * tui/tui-stack.c (tui_show_frame_info): Update.
7755 * tui/tui-source.c (tui_set_source_content)
7756 (tui_set_source_content_nil, tui_source_is_displayed)
7757 (tui_source_window::do_scroll_vertical): Update.
7758 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7759 (tui_display_registers_from, tui_display_reg_element_at_line)
7760 (tui_check_register_values, tui_reg_command): Update.
7761 * tui/tui-layout.c (tui_default_win_height)
7762 (show_source_disasm_command, show_data, init_and_make_win)
7763 (show_source_or_disasm_and_command): Update.
7764 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7765 (tui_redisplay_readline, tui_mld_flush)
7766 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7768 * tui/tui-disasm.c (tui_set_disassem_content)
7769 (tui_disasm_window::do_scroll_vertical): Update.
7770 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7772 (struct tui_win_info): Derive from tui_gen_win_info.
7773 <~tui_win_info>: Mark as override.
7774 <generic>: Remove member.
7775 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7776 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7777 (~tui_data_window, ~tui_win_info)
7778 (tui_free_all_source_wins_content): Update.
7779 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7781 2019-06-25 Tom Tromey <tom@tromey.com>
7783 * tui/tui-layout.c (init_and_make_win): Use new.
7784 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7785 destructor, initializers.
7786 (tui_alloc_generic_win_info): Don't declare.
7787 * tui/tui-data.c (_locator): Add argument to constructor.
7788 (source_win, disasm_win): New globals.
7789 (exec_info): Remove.
7790 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7792 (tui_alloc_generic_win_info): Remove.
7793 (init_content_element): Use new.
7794 (tui_win_info::tui_win_info): Update.
7795 (free_content_elements) <case DATA_WIN>: Use delete.
7797 2019-06-25 Tom Tromey <tom@tromey.com>
7799 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7800 * tui/tui-windata.c (tui_first_data_item_displayed)
7801 (tui_delete_data_content_windows): Update.
7802 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7803 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7804 (tui_display_registers_from, tui_check_register_values): Update.
7805 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7807 * tui/tui-data.c (init_content_element): Update. Allocate the new
7809 (tui_free_data_content): Update.
7810 (free_content_elements) <case DATA_WIN>: Free the window.
7812 2019-06-25 Tom Tromey <tom@tromey.com>
7814 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7816 * tui/tui-layout.c (make_command_window)
7817 (show_source_disasm_command, show_data, init_and_make_win)
7818 (show_source_or_disasm_and_command): Update.
7819 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7821 <can_highight, is_highlighted>: Now bool.
7822 (tui_set_win_highlight): Don't declare.
7823 * tui/tui-data.c (tui_set_win_highlight): Remove.
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7827 * tui/tui-wingeneral.c (make_visible): Remove check of window
7830 2019-06-25 Tom Tromey <tom@tromey.com>
7832 * tui/tui-win.c (tui_win_info::max_height)
7833 (tui_cmd_window::max_height): New methods.
7834 (new_height_ok): Call max_height.
7835 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7836 <max_height>: New method.
7838 2019-06-25 Tom Tromey <tom@tromey.com>
7840 * tui/tui-win.c (tui_source_window_base::set_new_height)
7841 (tui_data_window::set_new_height): New methods.
7842 (make_invisible_and_set_new_height): Call set_new_height method.
7843 * tui/tui-data.h (struct tui_win_info)
7844 (struct tui_source_window_base, struct tui_data_window)
7845 <set_new_height>: New method.
7847 2019-06-25 Tom Tromey <tom@tromey.com>
7849 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7850 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7851 tui_refresh_data_win.
7852 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7854 (tui_refresh_all_win): Call the refresh_all method.
7855 (tui_set_focus): Likewise.
7856 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7857 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7860 2019-06-25 Tom Tromey <tom@tromey.com>
7862 * tui/tui-winsource.h (tui_refill_source_window)
7863 (tui_set_is_exec_point_at): Don't declare.
7864 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7865 (tui_source_window_base::refill): Rename from
7866 tui_refill_source_window.
7867 (tui_source_window_base::do_scroll_horizontal): Update.
7868 (tui_source_window_base::set_is_exec_point_at): Rename from
7869 tui_set_is_exec_point_at.
7870 (tui_update_all_breakpoint_info): Update.
7871 * tui/tui-stack.c (tui_show_frame_info): Update.
7872 * tui/tui-layout.c (show_data): Add cast.
7873 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7874 * tui/tui-data.h (struct tui_source_window_base) <refill,
7875 set_is_exec_point_at>: New methods.
7876 (tui_source_windows, tui_add_to_source_windows): Update types.
7877 (tui_add_to_source_windows): Remove redundant declaration.
7878 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7879 (tui_source_windows): Change return type.
7880 (tui_clear_source_windows_detail): Update.
7881 (tui_add_to_source_windows): Change type of parameter.
7882 (tui_free_all_source_wins_content): Update.
7884 2019-06-25 Tom Tromey <tom@tromey.com>
7886 * tui/tui-wingeneral.c (tui_win_info::refresh)
7887 (tui_source_window_base::refresh): New methods.
7888 (tui_refresh_all): Call the refresh method.
7889 * tui/tui-data.h (struct tui_win_info)
7890 (struct tui_source_window_base) <refresh>: New method.
7892 2019-06-25 Tom Tromey <tom@tromey.com>
7894 * tui/tui.h (tui_is_window_visible): Return bool.
7895 * tui/tui.c (tui_is_window_visible): Return bool.
7896 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7897 (tui_make_visible, tui_make_invisible)
7898 (tui_win_info::make_visible)
7899 (tui_source_window_base::make_visible, make_all_visible)
7900 (tui_make_all_visible, tui_make_all_invisible): Update.
7901 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7902 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7904 (struct tui_win_info, struct tui_source_window_base)
7905 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7906 * tui/tui-data.c (tui_init_generic_part): Update.
7908 2019-06-25 Tom Tromey <tom@tromey.com>
7910 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7911 (tui_source_window_base::make_visible): New methods.
7912 (make_all_visible): Make method call.
7913 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7914 (struct tui_source_window_base, struct tui_cmd_window): Override
7916 (tui_win_is_source_type): Don't declare.
7917 * tui/tui-data.c (tui_win_is_source_type): Remove.
7919 2019-06-25 Tom Tromey <tom@tromey.com>
7921 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7924 2019-06-25 Tom Tromey <tom@tromey.com>
7926 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7927 Inline constructor. Add initializers for members.
7928 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7929 constructors; now inline in class.
7931 2019-06-25 Tom Tromey <tom@tromey.com>
7933 * tui/tui-regs.c (tui_show_registers): Update.
7934 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7936 * tui/tui-data.c (tui_data_window::clear_detail)
7937 (tui_data_window): Update.
7939 2019-06-25 Tom Tromey <tom@tromey.com>
7941 * tui/tui-windata.c (tui_display_all_data)
7942 (tui_display_data_from_line, tui_display_data_from)
7943 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7945 * tui/tui-regs.c (tui_last_regs_line_no)
7946 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7947 (tui_show_registers, tui_show_register_group)
7948 (tui_display_registers_from, tui_display_reg_element_at_line)
7949 (tui_display_registers_from_line, tui_check_register_values)
7950 (tui_reg_next, tui_reg_prev): Update.
7951 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7952 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7954 (struct tui_win_info) <detail>: Remove. Add new fields from
7956 (TUI_DATA_WIN): Add cast.
7957 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7958 (~tui_data_window): Simplify.
7960 2019-06-25 Tom Tromey <tom@tromey.com>
7962 * tui/tui-layout.c (show_source_disasm_command)
7963 (show_source_or_disasm_and_command): Update.
7964 * tui/tui-io.c (update_cmdwin_start_line)
7965 (tui_redisplay_readline): Update.
7966 * tui/tui-data.h (struct tui_command_info): Remove.
7967 (struct tui_win_info) <detail>: Remove command_info member.
7968 (struct tui_data_window) <start_line>: New member, from
7970 (TUI_CMD_WIN): Add casts.
7972 2019-06-25 Tom Tromey <tom@tromey.com>
7974 * tui/tui-winsource.c (tui_update_source_window)
7975 (tui_refill_source_window)
7976 (tui_source_window_base::do_scroll_horizontal)
7977 (tui_update_breakpoint_info, tui_set_exec_info_content)
7978 (tui_show_exec_info_content, tui_erase_exec_info_content)
7979 (tui_clear_exec_info_content): Update.
7980 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7982 * tui/tui-win.c (make_invisible_and_set_new_height)
7983 (make_visible_with_new_height): Update.
7984 * tui/tui-source.c (tui_set_source_content)
7985 (tui_show_symtab_source): Update.
7986 * tui/tui-layout.c (extract_display_start_addr)
7987 (show_source_disasm_command, show_data)
7988 (make_source_or_disasm_window)
7989 (show_source_or_disasm_and_command): Update.
7990 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7991 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7993 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7994 to tui_source_window_base.
7995 (struct tui_win_info) <detail>: Remove source_info member.
7996 (struct tui_source_window_base) <has_locator>: Inline.
7997 Move contents from tui_source_info; rename has_locator member to
7999 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8000 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8002 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8004 (tui_free_all_source_wins_content): Cast to
8005 tui_source_window_base.
8007 2019-06-25 Tom Tromey <tom@tromey.com>
8009 * tui/tui-win.c (make_invisible_and_set_new_height)
8010 (make_visible_with_new_height): Call has_locator method.
8011 * tui/tui-layout.c (show_source_disasm_command, show_data)
8012 (show_source_or_disasm_and_command): Update for bool change.
8013 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8014 (tui_win_info) <has_locator>: New method.
8015 (struct tui_source_window_base) <has_locator>: New method.
8016 (tui_win_has_locator): Don't declare.
8017 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8018 from tui_win_has_locator.
8019 (tui_source_window_base): Use false, not FALSE.
8021 2019-06-25 Tom Tromey <tom@tromey.com>
8023 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8024 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8025 clear_detail method directly.
8026 (tui_clear_win_detail): Remove.
8028 2019-06-25 Tom Tromey <tom@tromey.com>
8030 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8031 "this", not TUI_DISASM_WIN.
8033 2019-06-25 Tom Tromey <tom@tromey.com>
8035 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8037 * tui/tui-winsource.c
8038 (tui_source_window_base::do_scroll_horizontal): Rename from
8039 tui_horizontal_source_scroll.
8040 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8041 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8042 from tui_vertical_data_scroll.
8043 * tui/tui-win.h (tui_scroll): Don't declare.
8044 * tui/tui-win.c (tui_win_info::forward_scroll)
8045 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8046 (tui_win_info::right_scroll): Rename and update.
8047 (tui_scroll_forward_command, tui_scroll_backward_command)
8048 (tui_scroll_left_command, tui_scroll_right_command): Update.
8049 (tui_scroll): Remove.
8050 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8051 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8052 from tui_vertical_source_scroll.
8053 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8054 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8055 from tui_vertical_disassem_scroll.
8056 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8057 do_scroll_horizontal>: New methods.
8058 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8060 (struct tui_source_window_base): Add do_scroll_horizontal.
8061 (struct tui_source_window, struct tui_disasm_window): Add
8063 (struct tui_data_window, struct tui_cmd_window): Add
8064 do_scroll_horizontal and do_scroll_vertical.
8065 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8069 * tui/tui-data.h (struct tui_source_window_base): New struct.
8070 (struct tui_source_window): Derive from tui_source_window_base.
8071 (struct tui_disasm_window): New struct.
8072 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8073 from tui_source_window::clear_detail.
8074 (tui_source_window_base): Rename from tui_source_window.
8075 (~tui_source_window_base): Rename from ~tui_source_window.
8076 (tui_alloc_win_info): Create a tui_disasm_window.
8078 2019-06-25 Tom Tromey <tom@tromey.com>
8080 * tui/tui-data.h (struct tui_source_window)
8081 (struct tui_data_window): Declare destructors.
8082 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8084 (tui_win_info): Simplify.
8086 2019-06-25 Tom Tromey <tom@tromey.com>
8088 * tui/tui-winsource.c (tui_display_main)
8089 (tui_update_source_windows_with_addr)
8090 (tui_update_all_breakpoint_info): Update.
8091 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8092 (new_height_ok, parse_scrolling_args): Update.
8093 * tui/tui-stack.c (tui_show_frame_info): Update.
8094 * tui/tui-data.h (struct tui_list): Remove.
8095 (tui_source_windows): Return a reference to a std::vector.
8096 * tui/tui-data.c (source_windows): Now a std::vector.
8097 (tui_source_windows): Change return type.
8098 (tui_clear_source_windows): Rewrite.
8099 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8100 (tui_free_all_source_wins_content): Rewrite.
8102 2019-06-25 Tom Tromey <tom@tromey.com>
8104 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8105 (struct tui_data_window, struct tui_cmd_window): Declare
8106 clear_detail method.
8107 * tui/tui-data.c (tui_source_window::clear_detail)
8108 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8110 (tui_clear_win_detail): Simplify.
8112 2019-06-25 Tom Tromey <tom@tromey.com>
8114 * tui/tui-layout.c (make_source_window, make_disasm_window)
8115 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8116 Return the new window.
8117 (show_source_disasm_command, show_data)
8118 (show_source_or_disasm_and_command): Update.
8120 2019-06-25 Tom Tromey <tom@tromey.com>
8122 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8123 parameter. Return the new window.
8124 (show_source_disasm_command): Update and remove NULL check.
8125 (show_source_or_disasm_and_command): Update.
8127 2019-06-25 Tom Tromey <tom@tromey.com>
8129 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8133 * tui/tui-data.h (struct tui_win_info): Make constructor
8134 protected. Make destructor virtual. Add initializers.
8135 (tui_source_window, tui_data_window, tui_cmd_window): New
8137 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8138 constructor. Add "type" parameter.
8139 (tui_source_window, tui_data_window, tui_cmd_window): New
8141 (tui_alloc_win_info): Instantiate the appropriate subclass.
8143 2019-06-25 Tom Tromey <tom@tromey.com>
8145 * tui/tui-win.c (tui_resize_all): Use delete.
8146 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8148 (tui_free_window): Don't declare.
8149 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8152 2019-06-25 Tom Tromey <tom@tromey.com>
8154 * tui/tui-data.h (struct tui_win_info): Add constructor.
8155 * tui/tui-data.c (tui_alloc_win_info): Use new.
8156 (tui_free_window): Use delete.
8158 2019-06-22 Tom Tromey <tom@tromey.com>
8160 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8162 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8164 2019-06-22 Tom Tromey <tom@tromey.com>
8166 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8168 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8170 2019-06-22 Tom de Vries <tdevries@suse.de>
8172 * dwarf2read.c (create_addrmap_from_aranges)
8173 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8176 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8178 * dwarf2read.h (dwarf2_section_info_def): Remove.
8179 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8180 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8181 std::vector<dwarf2_section_info>.
8182 (struct dwo_file) <~dwo_file>: Remove.
8183 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8185 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8186 (dwarf2_read_debug_names): Likewise.
8187 (create_debug_types_hash_table): Change parameter type to
8188 array_view, adjust code accordingly.
8189 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8190 (partial_die_info::fixup): Likewise.
8191 (determine_prefix): Likewise.
8192 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8194 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8196 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8198 <~dwo_file>: Remove call to gdb_bfd_unref.
8199 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8200 gdb_bfd_ref_ptr::get.
8202 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8204 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8206 * dwarf2read.c (struct dwo_file): Initialize fields.
8208 (free_dwo_file): Remove, move content to ~dwo_file.
8209 (struct dwo_file_deleter): Remove.
8210 (dwo_file_up>: Remove custom deleter.
8211 (free_dwo_files): Remove.
8212 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8214 (process_skeletonless_type_units): Call unique_ptr::get.
8215 (allocate_dwo_file_hash_table): Add deleter to created hash
8216 table. Change return type to htab_up.
8217 (lookup_dwo_file_slot): Don't memset dwo_file, call
8219 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8220 (create_dwo_unit_in_dwp_v2): Likewise.
8221 (open_and_init_dwo_file): Likewise.
8222 (free_dwo_file_from_slot): Remove.
8224 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8226 * dwarf2read.h (struct dwarf2_section_info) <readin,
8227 is_virtual>: Change type to bool.
8228 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8231 2019-06-19 Tom Tromey <tom@tromey.com>
8233 * tui/tui-data.h (tui_init_content_element): Don't declare.
8235 2019-06-19 Tom Tromey <tom@tromey.com>
8237 * tui/tui-data.h (tui_init_win_info): Don't declare.
8239 2019-06-19 Tom de Vries <tdevries@suse.de>
8241 * dwarf2read.h (abstract_to_concrete): Change type to
8242 std::unordered_map<sect_offset, std::vector<sect_offset>,
8243 gdb::hash_enum<sect_offset>>.
8245 2019-06-19 Tom Tromey <tromey@adacore.com>
8247 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8248 EVAL_AVOID_SIDE_EFFECTS specially.
8250 2019-06-19 Tom Tromey <tromey@adacore.com>
8252 * source-cache.c (highlighter): New global.
8253 (source_cache::get_source_lines): Create a highlighter on demand.
8255 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8257 * defs.h (deprecated_interactive_hook): Delete declaration.
8258 * interps.c (clear_interpreter_hooks): Remove use of
8259 deprecated_interactive_hook.
8260 * top.c (deprecated_interactive_hook): Delete definition.
8261 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8263 2019-06-18 Tom de Vries <tdevries@suse.de>
8266 * dwarf2read.h (abstract_to_concrete): Change type from
8267 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8268 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8269 * dwarf2read.c (read_variable): Update.
8270 (dwarf2_fetch_die_loc_sect_off): Update.
8272 2019-06-17 Tom de Vries <tdevries@suse.de>
8275 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8276 accessing parent[parent_len - 1].
8278 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8281 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8282 call dtrace_process_dof with NULL dof.
8284 2019-06-16 Tom de Vries <tdevries@suse.de>
8287 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8289 2019-06-16 Tom Tromey <tom@tromey.com>
8291 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8292 (make_all_visible): Use address of member.
8294 2019-06-16 Tom Tromey <tom@tromey.com>
8296 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8297 (tui_free_window, free_content, free_content_elements): Remove
8299 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8301 * tui/tui-regs.c (tui_show_register_group)
8302 (tui_display_registers_from, tui_display_reg_element_at_line):
8303 Remove unnecessary cast.
8305 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8307 * linux-nat.c (normal_mask): Delete.
8308 (_initialize_linux_nat): Don't initialise normal_mask.
8310 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8313 * dwarf-index-write.h (write_psymtabs_to_index): Add
8314 dwz_basename parameter.
8315 * dwarf-index-write.c (write_gdbindex): Move file writing to
8316 write_gdbindex_1. Change return type void.
8317 (assert_file_size): Move up, remove filename parameter.
8318 (write_gdbindex_1): New function.
8319 (write_debug_names): Change return type to void, call
8321 (struct index_wip_file): New struct.
8322 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8323 file logic to index_wip_file. Write index for dwz file if
8325 (save_gdb_index_command): Pass basename of dwz file, if present.
8326 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8327 build-id of dwz file, if present.
8328 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8329 (dwarf2_get_dwz_file): Likewise.
8330 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8331 (dwarf2_get_dwz_file): Likewise.
8333 2019-06-16 Tom Tromey <tom@tromey.com>
8335 * coffread.c (process_coff_symbol): Use xstrdup.
8336 * value.c (create_internalvar): Use xstrdup.
8338 2019-06-16 Tom Tromey <tom@tromey.com>
8340 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8341 * breakpoint.c (stopin_command, stopat_command)
8342 (until_break_command, decode_location_default): Remove unnecessary
8344 * utils.c (subset_compare): Remove unnecessary cast.
8345 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8347 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8349 * infcmd.c (path_command): Remove unnecessary cast.
8350 * coffread.c (decode_type): Remove unnecessary cast.
8351 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8352 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8353 * tui/tui-stack.c (tui_show_locator_content)
8354 (tui_show_frame_info): Remove unnecessary cast.
8355 * tui/tui-win.c (tui_scroll_forward_command)
8356 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8357 (parse_scrolling_args): Remove unnecessary cast.
8358 * tui/tui-data.c (init_win_info, tui_del_window)
8359 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8360 (free_content_elements): Remove unnecessary cast.
8361 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8363 * tui/tui-source.c (tui_set_source_content)
8364 (tui_vertical_source_scroll): Remove unnecessary cast.
8365 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8367 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8368 * tui/tui-regs.c (tui_display_registers_from)
8369 (tui_display_register): Remove unnecessary cast.
8370 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8371 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8372 (make_visible): Remove unnecessary cast.
8373 * tui/tui-winsource.c (tui_erase_source_content)
8374 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8376 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8377 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8378 * stabsread.c (read_type, read_array_type, read_range_type):
8379 Remove unnecessary cast.
8380 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8381 (parse_symbol, parse_type, upgrade_type, parse_external)
8382 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8384 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8386 2019-06-16 Tom Tromey <tom@tromey.com>
8388 * tui/tui-data.c (tui_alloc_generic_win_info)
8389 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8392 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8393 Andrew Burgess <andrew.burgess@embecosm.com>
8395 * f-typeprint.c (f_print_type): Don't return early for not
8396 associated or not allocated types.
8397 (f_type_print_varspec_suffix): Add print_rank parameter and print
8398 ranks of array types in case they dangling.
8399 (f_type_print_base): Add print_rank parameter.
8401 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8403 * NEWS: Mention new MI commands.
8404 * break-catch-throw.c (enum exception_event_kind): Move to
8406 (print_mention_exception_catchpoint): Output text as a single
8408 (catch_exception_command_1): Rename to...
8409 (catch_exception_event): ...this, make non-static, update header
8410 command, and change some parameter types.
8411 (catch_catch_command): Update for changes to
8412 catch_exception_command_1.
8413 (catch_throw_command): Likewise.
8414 (catch_rethrow_command): Likewise.
8415 * breakpoint.c (enum exception_event_kind): Delete.
8416 * breakpoint.h (enum exception_event_kind): Moved here from
8417 break-catch-throw.c.
8418 (catch_exception_event): Declare.
8419 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8420 (mi_cmd_catch_throw): New function.
8421 (mi_cmd_catch_rethrow): New function.
8422 (mi_cmd_catch_catch): New function.
8423 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8424 'catch-catch' entries.
8425 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8426 (mi_cmd_catch_rethrow): Declare.
8427 (mi_cmd_catch_catch): Declare.
8429 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8431 * annotate.c (annotate_source_line): Change return type to void,
8432 update implementation to match.
8433 * annotate.h (annotate_source_line): Change return type to void,
8434 update header comment.
8435 * stack.c (print_frame_info): Don't change what frame information
8436 is printed based on whether annotations are on or not.
8438 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8440 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8441 (annotate_source): Make static.
8442 (annotate_source_line): Moved from source.c and renamed from
8443 identify_source_line. Update the return type.
8444 * annotate.h (annotate_source): Delete declaration.
8445 (annotate_source_line): Declaration moved from source.h, and
8446 renamed from identify_source_line. Return type updated.
8447 * source.c (identify_source_line): Moved to annotate.c and renamed
8448 to annotate_source_line.
8449 (info_line_command): Remove check of annotation_level.
8450 * source.h (identify_source_line): Move declaration to annotate.h
8451 and rename to annotate_source_line.
8452 * stack.c: Add 'annotate.h' include.
8453 (print_frame_info): Remove check of annotation_level before
8454 calling annotate_source_line.
8456 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8458 * source-cache.c (source_cache::get_plain_source_lines): Use
8459 open_source_file_with_line_charpos instead of just
8460 open_source_file, remove call to find_source_lines.
8461 (source_cache::get_source_lines): Likewise.
8462 * source.c (find_source_lines): Make static.
8463 (get_filename_and_charpos): Renamed into...
8464 (open_source_file_with_line_charpos): ..this along with changes to
8465 return a scoped_fd, and some other minor clean ups.
8466 (identify_source_line): Use open_source_file_with_line_charpos.
8467 (search_command_helper): Use open_source_file_with_line_charpos
8468 instead of just open_source_file, remove call to
8470 * source.h (open_source_file_with_line_charpos): Declare new
8472 (find_source_lines): Delete declaration.
8474 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8476 * source.c (get_filename_and_charpos): Remove fullname
8478 (identify_source_line): Update call to get_filename_and_charpos.
8480 2019-06-14 Tom Tromey <tromey@adacore.com>
8483 * ui-style.h (skip_ansi_escape): Update comment.
8484 * ui-file.h (class no_terminal_escape_file): New class.
8485 * ui-file.c (no_terminal_escape_file::write)
8486 (no_terminal_escape_file::puts): New methods.
8487 * cli/cli-logging.c (handle_redirections): Use
8488 no_terminal_escape_file.
8490 2019-06-14 Tom Tromey <tromey@adacore.com>
8492 * NEWS: Move convenience variable news above Python news.
8494 2019-06-14 Tom Tromey <tom@tromey.com>
8496 * gnulib: Move directory to top-level.
8497 * configure.ac: Don't configure gnulib.
8498 * configure: Rebuild.
8499 * common/common-defs.h: Use new path to gnulib.
8500 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8502 (INCGNU): Look in new gnulib location.
8503 (HFILES_NO_SRCDIR): Remove gnulib files.
8504 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8505 (generated_files): Remove GNULIB_H.
8506 ($(LIBGNU), all-lib): Remove targets.
8507 (distclean): Don't mention GNULIB_BUILDDIR.
8508 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8510 2019-06-14 Tom Tromey <tromey@adacore.com>
8512 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8513 Warn if symbol file does not provide any symbols.
8515 2019-06-14 Tom Tromey <tromey@adacore.com>
8517 * source.c (find_and_open_source): Respect basenames_may_differ.
8519 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8521 * annotate.c (annotate_breakpoints_invalid): Make use of
8522 scoped_restore_terminal_state.
8523 (annotate_frames_invalid): Likewise.
8525 2019-06-14 Tom Tromey <tromey@adacore.com>
8527 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8528 allow assignment to an internalvar.
8530 2019-06-14 Tom Tromey <tromey@adacore.com>
8532 * ada-lex.l: Allow "_" in attribute names.
8534 2019-06-14 Tom Tromey <tromey@adacore.com>
8537 * regcache.c (registers_changed): Don't call alloca.
8538 * top.c (execute_command): Don't call alloca.
8540 2019-06-13 Pedro Alves <palves@redhat.com>
8542 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8543 'expression'. When parsing an expression, error out if there's
8544 junk after "unlimited".
8545 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8546 (do_set_command): Adjust calls to is_unlimited_literal.
8548 2019-06-13 Pedro Alves <palves@redhat.com>
8550 * compile/compile.c (make_compile_options_def_group): Add braces
8551 around array_view initializer.
8552 * thread.c (make_thread_apply_all_options_def_group)
8553 (make_thread_apply_all_options_def_group): Likewise.
8555 2019-06-13 Pedro Alves <palves@redhat.com>
8557 * NEWS (New commands): Mention "maint test-options
8558 require-delimiter", "maint test-options unknown-is-error", "maint
8559 test-options unknown-is-operand" and "maint show
8560 test-options-completion-result".
8561 (New command options, command completion): New section.
8562 (Completion improvements): New section.
8563 Mention that you can abbreviate "unlimited".
8565 2019-06-13 Pedro Alves <palves@redhat.com>
8567 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8568 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8569 * unittests/cli-utils-selftests.c (test_parse_flags)
8570 (test_parse_flags_qcs): Delete.
8571 (test_cli_utils): Don't call deleted functions.
8573 2019-06-13 Pedro Alves <palves@redhat.com>
8575 * thread.c: Include "cli/cli-option.h".
8576 (tp_array_compar_ascending): Global.
8577 (tp_array_compar): Delete function.
8578 (tp_array_compar_ascending, tp_array_compar_descending): New
8580 (ascending_option_def, qcs_flag_option_def)
8581 (thr_qcs_flags_option_defs)
8582 (make_thread_apply_all_options_def_group)
8583 (make_thread_apply_options_def_group): New.
8584 (thread_apply_all_command): Use gdb::option::process_options.
8585 (thread_apply_command_completer)
8586 (thread_apply_all_command_completer): New.
8587 (thread_apply_command): Use gdb::option::process_options.
8588 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8589 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8590 to generate help text of "thread apply". Adjust "taas"'s help.
8591 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8592 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8594 2019-06-13 Pedro Alves <palves@redhat.com>
8596 * thread.c (thread_apply_command): Check for invalid TID with
8597 isdigit instead of !isalpha.
8599 2019-06-13 Pedro Alves <palves@redhat.com>
8601 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8602 (validate_flags_qcs): New.
8603 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8604 (validate_flags_qcs): Declare.
8605 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8606 (make_frame_apply_options_def_group): New.
8607 (frame_apply_command_count): Process options with
8608 gdb::option::process_options.
8609 (frame_apply_completer): New.
8610 (frame_apply_level_completer, frame_apply_all_completer)
8611 (frame_apply_completer): New.
8612 (_initialize_stack): Update help of "frame apply", "frame apply
8613 level", "frame apply all" and "faas" to mention supported options
8614 and install command completers.
8615 * stack.h (frame_apply_all_completer): Declare.
8616 * thread.c: Include "stack.h".
8617 (tfaas_command): Add "--".
8618 (_initialize_thread): Update help "tfaas" to mention supported
8619 options and install command completer.
8621 2019-06-13 Pedro Alves <palves@redhat.com>
8623 * completer.c (complete_nested_command_line): New.
8624 (gdb_completion_word_break_characters_throw): Add assertion.
8625 * completer.h (complete_nested_command_line): Declare.
8627 2019-06-13 Pedro Alves <palves@redhat.com>
8629 * stack.c (parse_backtrace_qualifiers): New.
8630 (backtrace_command): Use it.
8631 (backtrace_command_completer): Complete on qualifiers.
8633 2019-06-13 Pedro Alves <palves@redhat.com>
8635 * frame.c: Include "cli/cli-option.h.
8636 (user_set_backtrace_options): New.
8637 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8639 (get_prev_frame): Adjust.
8640 (boolean_option_def, uinteger_option_def)
8641 (set_backtrace_option_defs): New.
8642 (_initialize_frame): Adjust and use
8643 gdb::option::add_setshow_cmds_for_options to install "set
8644 backtrace past-main" and "set backtrace past-entry".
8645 * frame.h: Include "cli/cli-option.h".
8646 (struct frame_print_options): Forward declare.
8647 (print_frame_arguments_all, print_frame_arguments_scalars)
8648 (print_frame_arguments_none): Declare.
8649 (print_entry_values): Delete declaration.
8650 (struct frame_print_options, user_frame_print_options): New.
8651 (struct set_backtrace_options): New.
8652 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8653 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8654 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8655 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8656 (list_args_or_locals): Add frame_print_options parameter.
8657 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8658 * python/py-framefilter.c (enumerate_args): Pass down
8659 USER_FRAME_PRINT_OPTIONS.
8660 * stack.c: Include "cli/cli-option.h".
8661 (print_frame_arguments_all, print_frame_arguments_scalars)
8662 (print_frame_arguments_none): Declare.
8663 (print_raw_frame_arguments, print_entry_values): Delete.
8664 (user_frame_print_options): New.
8665 (boolean_option_def, enum_option_def, frame_print_option_defs):
8667 (struct backtrace_cmd_options): New.
8668 (bt_flag_option_def): New.
8669 (backtrace_command_option_defs): New.
8670 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8671 (print_frame_arg, read_frame_arg, print_frame_args)
8672 (print_frame_info, print_frame): Add frame_print_options parameter
8674 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8675 (backtrace_command_1): Add frame_print_options and
8676 backtrace_cmd_options parameters and use them.
8677 (make_backtrace_options_def_group): New.
8678 (backtrace_command): Process command options with
8679 gdb::option::process_options.
8680 (backtrace_command_completer): New.
8681 (_initialize_stack): Extend "backtrace"'s help to mention
8682 supported options. Install completer for "backtrace".
8683 Install some settings commands with add_setshow_cmds_for_options.
8685 2019-06-13 Pedro Alves <palves@redhat.com>
8687 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8688 and that "set/show print raw frame-arguments" are now deprecated.
8690 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8692 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8693 * stack.c (_initialize_stack): Install "set/show print
8694 raw-frame-arguments", and deprecate "set/show print raw
8696 * valprint.c (_initialize_valprint): Deprecate "set/show print
8699 2019-06-13 Pedro Alves <palves@redhat.com>
8701 * compile/compile.c (struct compile_options): New.
8702 (compile_flag_option_def, compile_command_option_defs)
8703 (make_compile_options_def_group): New.
8704 (compile_file_command): Handle options with
8705 gdb::option::process_options.
8706 (compile_file_command_completer): New function.
8707 (compile_code_command): Handle options with
8708 gdb::option::process_options.
8709 (compile_code_command_completer): New function.
8710 (_initialize_compiler): Install completers for "compile code" and
8711 "compile file". Mention available options in "compile code" and
8712 "compile code"'s help.
8713 * completer.c (advance_to_completion_word): New, factored out from
8715 (advance_to_expression_complete_word_point): ... this.
8716 (advance_to_filename_complete_word_point): New.
8717 * completer.h (advance_to_filename_complete_word_point): New
8720 2019-06-13 Pedro Alves <palves@redhat.com>
8722 * compile/compile.c: Include "cli/cli-option.h".
8723 (compile_print_value): Scope data pointer is now a
8724 value_print_options pointer; adjust.
8725 (compile_print_command): Process options. Scope data pointer is
8726 now a value_print_options pointer; adjust.
8727 (_initialize_compile): Update "compile print"'s help to include
8728 supported options. Install a completer for "compile print".
8729 * cp-valprint.c (show_vtblprint, show_objectprint)
8730 (show_static_field_print): Delete.
8731 (_initialize_cp_valprint): Don't install "set print
8732 static-members", "set print vtbl", "set print object" here.
8733 * printcmd.c: Include "cli/cli-option.h" and
8734 "common/gdb_optional.h".
8735 (print_command_parse_format): Rework to fill in a
8736 value_print_options instead of a format_data.
8737 (print_value): Change parameter type from format_data pointer to
8738 value_print_options reference. Adjust.
8739 (print_command_1): Process options. Adjust to pass down a
8740 value_print_options.
8741 (print_command_completer): New.
8742 (_initialize_printcmd): Install print_command_completer as
8743 handle_brkchars completer for the "print" command. Update
8744 "print"'s help to include supported options.
8745 * valprint.c: Include "cli/cli-option.h".
8746 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8747 here from cp-valprint.c.
8748 (boolean_option_def, uinteger_option_def)
8749 (value_print_option_defs, make_value_print_options_def_group):
8750 New. Use gdb::option::add_setshow_cmds_for_options to install
8751 "set print elements", "set print null-stop", "set print repeats",
8752 "set print pretty", "set print union", "set print array", "set
8753 print address", "set print symbol", "set print array-indexes".
8754 * valprint.h: Include <string> and "cli/cli-option.h".
8755 (make_value_print_options_def_group): Declare.
8756 (print_value): Change parameter type from format_data pointer to
8757 value_print_options reference.
8758 (print_command_completer): Declare.
8760 2019-06-13 Pedro Alves <palves@redhat.com>
8762 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8763 (COMMON_SFILES): Add maint-test-settings.c.
8764 * cli/cli-decode.c (boolean_enums): New global, factored out from
8766 (add_setshow_boolean_cmd): ... here.
8767 * cli/cli-decode.h (boolean_enums): Declare.
8768 * cli/cli-option.c: New file.
8769 * cli/cli-option.h: New file.
8770 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8771 factored out from ...
8772 (parse_cli_boolean_value(const char *)): ... this.
8773 (is_unlimited_literal): Change parameter type to pointer to
8774 pointer. Adjust and advance ARG pointer.
8775 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8776 (parse_cli_var_enum): New, factored out from ...
8777 (do_set_command): ... this. Adjust.
8778 * cli/cli-setshow.h (parse_cli_boolean_value)
8779 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8780 (parse_cli_var_enum): Declare.
8781 * cli/cli-utils.c: Include "cli/cli-option.h".
8782 (get_ulongest): New.
8783 * cli/cli-utils.h (get_ulongest): Declare.
8784 (check_for_argument): New overloads.
8785 * maint-test-options.c: New file.
8787 2019-06-13 Pedro Alves <palves@redhat.com>
8789 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8790 parse a range if "-" is at the end of the string.
8792 2019-06-13 Pedro Alves <palves@redhat.com>
8794 * cli/cli-setshow.c (parse_auto_binary_operation)
8795 (parse_cli_boolean_value): Don't allow "o".
8797 2019-06-13 Pedro Alves <palves@redhat.com>
8799 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8800 * NEWS: Mention maint test-settings KIND.
8801 * maint-test-settings.c: New file.
8803 2019-06-13 Pedro Alves <palves@redhat.com>
8805 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8807 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8810 2019-06-13 Pedro Alves <palves@redhat.com>
8812 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8815 2019-06-13 Pedro Alves <palves@redhat.com>
8817 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8819 2019-06-13 Pedro Alves <palves@redhat.com>
8821 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8822 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8824 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8825 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8827 (check_for_argument): Skip spaces after argument.
8829 2019-06-13 Pedro Alves <palves@redhat.com>
8831 * thread.c (thread_apply_command): Adjust TID parsing.
8832 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8833 detected before end of string.
8834 (tid_is_in_list): Error out if LIST is invalid.
8836 2019-06-13 Pedro Alves <palves@redhat.com>
8838 * completer.c (complete_line_internal_1): Rewind completion word
8840 (completion_tracker::advance_custom_word_point_by): Change
8841 parameter type to int.
8842 * completer.h (completion_tracker::advance_custom_word_point_by):
8845 2019-06-13 Pedro Alves <palves@redhat.com>
8847 * completer.c (advance_to_completion_word): Handle delimiters.
8849 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8851 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8853 2019-06-11 Tom Tromey <tom@tromey.com>
8855 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8856 (xmalloc_failed): Move to alloc.c.
8857 * alloc.c: New file.
8858 * Makefile.in (COMMON_SFILES): Add alloc.c.
8860 2019-06-11 Tom Tromey <tom@tromey.com>
8862 * nat/linux-waitpid.c: Don't include server.h.
8863 (linux_debug): Remove.
8864 (my_waitpid): Update.
8866 2019-06-11 Tom Tromey <tromey@adacore.com>
8868 * infcall.c (_initialize_infcall): Remove trailing newline from
8870 * user-regs.c (_initialize_user_regs): Remove trailing newline
8872 * typeprint.c (_initialize_typeprint): Remove trailing newline
8874 * reverse.c (_initialize_reverse): Remove trailing newlines from
8876 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8878 * language.c (add_set_language_command): Remove trailing newline
8880 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8882 * disasm.c (_initialize_disasm): Remove trailing newline from
8884 * top.c (init_main): Remove trailing newline from help.
8885 * interps.c (_initialize_interpreter): Remove trailing newline
8887 * btrace.c (_initialize_btrace): Remove trailing newlines from
8889 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8891 * python/python.c (_initialize_python): Remove trailing newline
8893 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8895 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8896 from help. Reformat some text.
8897 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8899 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8902 2019-06-11 Tom Tromey <tromey@adacore.com>
8904 * darwin-nat.c (darwin_decode_exception_message)
8905 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8907 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8909 * valops.c (value_slice): Check for not allocated or not
8912 2019-06-10 Tom de Vries <tdevries@suse.de>
8915 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8916 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8919 2019-06-10 Tom de Vries <tdevries@suse.de>
8922 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8923 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8925 2019-06-10 Tom de Vries <tdevries@suse.de>
8928 * symtab.c (struct demangled_name_entry): Add language field.
8929 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8930 static minimal symbol". Set and use language field.
8932 2019-06-10 Tom Tromey <tromey@adacore.com>
8934 * ada-lang.c (_initialize_ada_language): Update help text.
8936 2019-06-10 Tom Tromey <tromey@adacore.com>
8938 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8940 * guile/guile.c (handle_boot_error): Don't end warning with a
8942 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8943 warning with a newline.
8944 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8946 (s12z_frame_cache): Likewise.
8947 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8949 * solib-svr4.c (disable_probes_interface): Don't end warning with
8951 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8953 * python/python.c (do_finish_initialization): Don't end warning
8956 2019-06-10 Tom Tromey <tom@tromey.com>
8958 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8959 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8962 2019-06-10 Tom Tromey <tromey@adacore.com>
8964 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8966 (elf_new_init): Don't call stabsread_new_init.
8967 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8968 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8969 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8971 2019-06-10 Tom de Vries <tdevries@suse.de>
8975 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8977 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8979 * source.c (find_and_open_source): Also rewrite relative file
8982 2019-04-26 Amos Bird <amosbird@gmail.com>
8984 * annotate.c (annotate_thread_exited): Add "thread-exited"
8987 2019-06-06 Tom Tromey <tromey@adacore.com>
8989 * maint.h (class scoped_command_stats): Use
8990 DISABLE_COPY_AND_ASSIGN.
8991 <print_time>: New method.
8992 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8994 (scoped_command_stats::print_time): New method.
8996 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8998 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8999 instructions of lengths 6 or 8 bytes.
9001 2019-06-04 Pedro Alves <palves@redhat.com>
9003 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9005 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9006 * breakpoint.c (condition_completer): Likewise.
9007 * cli/cli-dump.c (scan_expression): Likewise.
9008 * common/filestuff.c (mkdir_recursive): Likewise.
9009 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9010 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9011 (gdb_abspath): Likewise.
9012 * compile/compile-cplus-types.c
9013 (compile_cplus_instance::decl_name): Likewise.
9014 * completer.c (complete_explicit_location):
9015 (signal_completer, reg_or_group_completer_1): Likewise.
9016 * cp-support.c (cp_remove_params_if_any): Likewise.
9017 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9018 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9019 * infcmd.c (strip_bg_char): Likewise.
9020 * linespec.c (copy_token_string): Likewise.
9021 * mi/mi-main.c (output_cores): Likewise.
9022 * psymtab.c (psymtab_search_name):
9023 * symfile.c (test_set_ext_lang_command): Likewise.
9024 * target.c (target_fileio_read_stralloc): Likewise.
9025 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9026 * value.c (complete_internalvar): Likewise.
9028 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9030 Add objfile property to gdb.Type.
9031 * NEWS: Mention Python API addition.
9032 * python/py-type.c (typy_get_objfile): New method.
9034 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9036 * NEWS: Mention the new set|show style [title|highlight].
9037 Mention changes to "show style", "help" and "apropos".
9039 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9041 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9042 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9043 instead of print_help_for_command.
9044 (print_doc_of_command): New function.
9045 (help_list): Add 'apropos -v word' suggestion.
9046 (print_help_for_command): Style the command name using title style.
9047 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9048 (_initialize_cli_cmds): Describe -v in apropos_command help.
9050 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9052 * cli/cli-style.h (cli_style_option): Add name in constructor,
9053 add m_name class member, add constructor with intensity,
9054 add name class function.
9055 (cli_style_option::add_setshow_commands): Remove name argument.
9056 (highlight_style, title_style): New styles.
9057 * cli/cli-style.c (do_show): New function that shows a style
9058 characteristic styling the style name with itself.
9059 (set_style_name): New function.
9060 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9061 Update all callers according to the changes in cli/cli-style.h.
9062 * utils.h (fputs_highlighted): New function.
9063 * utils.c (fputs_highlighted): Likewise.
9065 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9067 * NEWS: Mention new pipe command and new convenience variables.
9069 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9071 * cli/cli-cmds.c (pipe_command): New function.
9072 (_initialize_cli_cmds): Call add_com for pipe_command.
9073 Define | as an alias for pipe.
9074 (exit_status_set_internal_vars): New function.
9075 (shell_escape): Call exit_status_set_internal_vars.
9076 cli/cli-decode.c (find_command_name_length): Recognize | as
9077 a single character command.
9079 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9081 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9082 top.c (execute_command_to_ui_file): New function, mostly a copy
9083 of execute_command_to_string.
9084 (execute_command_to_string): Implement by calling
9085 execute_command_to_ui_file.
9087 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9089 * top.h (saved_command_line): Remove declaration.
9090 * top.c (previous_saved_command_line, previous_repeat_arguments):
9092 (saved_command_line): Make static, define together with other
9094 (dont_repeat): Clear repeat_arguments.
9095 (repeat_previous, get_saved_command_line, save_command_line):
9097 (gdb_init): Initialize saved_command_line
9098 and previous_saved_command_line.
9099 * main.c (captured_main_1): Remove saved_command_line initialization.
9100 * event-top.c (handle_line_of_input): Update to use
9101 the new 'repeat' related functions instead of direct access to
9103 * command.h (repeat_previous, get_saved_command_line,
9104 save_command_line): New declarations.
9105 (dont_repeat): Add comment.
9107 2019-05-30 Tom Tromey <tromey@adacore.com>
9109 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9111 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9113 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9116 * completer.c (complete): Initialize variable word.
9118 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9120 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9121 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9122 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9123 'body' is NULL to the outter 'if', protecting the '!is_define'
9126 2019-05-29 Tom Tromey <tromey@adacore.com>
9128 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9129 (dwarf_unknown): New function.
9130 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9131 (dwarf_type_encoding_name): Use dwarf_unknown.
9133 2019-05-29 Tom Tromey <tromey@adacore.com>
9136 * cp-valprint.c (cp_print_value_fields): Call
9137 cp_print_static_field inside "try".
9139 2019-05-29 Tom Tromey <tromey@adacore.com>
9141 * inflow.c (struct terminal_info): Add default operator=.
9142 * configure: Rebuild.
9143 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9144 -Wdeprecated-copy-dtor, -Wredundant-move.
9146 2019-05-29 Tom Tromey <tromey@adacore.com>
9149 * infcmd.c (print_return_value_1): Handle finish_print
9151 (show_print_finish): New function.
9152 (_initialize_infcmd): Add "set/show print finish" commands.
9153 * valprint.c (user_print_options): Initialize new member.
9154 * valprint.h (struct value_print_options) <finish_print>: New
9157 2019-05-28 Tom Tromey <tromey@adacore.com>
9159 * ada-lang.c (ada_remove_Xbn_suffix)
9160 (find_old_style_renaming_symbol)
9161 (parse_old_style_renaming): Remove.
9162 (ada_find_renaming_symbol): Don't call
9163 find_old_style_renaming_symbol.
9164 (ada_is_renaming_symbol): Rename from
9165 ada_find_renaming_symbol. Remove "block" parameter. Return
9167 (ada_read_var_value): Update and simplify.
9168 * ada-exp.y (write_var_or_type): Remove old code.
9170 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9173 * event-top.c: Remove include comment.
9174 * inflow.c (class scoped_ignore_sigttou): Move from here...
9175 * inflow.h (class scoped_ignore_sigttou): ...to here.
9176 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9177 * top.c: Remove include comment.
9179 2019-05-27 Tom Tromey <tom@tromey.com>
9183 2019-05-22 Tom Tromey <tromey@adacore.com>
9185 * target.c (target_follow_exec): Constify parameter.
9186 * target-delegates.c: Rebuild.
9187 * remote.c (remote_target::follow_exec): Constify parameter.
9188 * infrun.c (follow_exec): Constify parameter.
9189 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9190 (target_follow_exec): Likewise.
9192 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9194 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9195 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9197 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9199 * NEWS: Add debugredirect and testsuite sections.
9201 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9203 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9204 target descriptions using exclusively floating point register name
9207 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9210 * f-lang.c (build_fortran_types): Handle the case where
9211 gdbarch_floatformat_for_type returns a nullptr.
9213 2019-05-21 Tom de Vries <tdevries@suse.de>
9216 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9218 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9221 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9223 * i386-tdep.c (i386_floatformat_for_type): Use
9224 floatformats_ia64_quad for the 16-byte floating point component
9225 within a fortran 32-byte complex number.
9227 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9229 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9230 delete default constructor.
9231 (find_partial_die): Update to return const struct.
9232 (partial_die_parent_scope): Move variable declaration into scope
9233 of its use and change its type to auto.
9234 (guess_partial_die_structure_name): Likewise.
9235 (partial_die_info::fixup): Likewise.
9237 2019-05-17 Tom Tromey <tromey@adacore.com>
9239 * source.c (find_and_open_source): Remove cast.
9241 2019-05-17 Tom Tromey <tromey@adacore.com>
9243 * annotate.c (annotate_source): Make "filename" const.
9244 * annotate.h (annotate_source): Use const.
9246 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9248 * disasm.c (set_disassembler_options): Send errors to stderr.
9250 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9252 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9253 (cli_interp_base::set_logging): Check debug_redirect.
9254 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9255 * cli/cli-logging.c (debug_redirect): Add static variable.
9256 (pop_output_files): Add default param.
9257 (handle_redirections): Print debug setting.
9258 (show_logging_command): Likewise.
9259 (_initialize_cli_logging): Add debugredirect command.
9260 * interps.c (current_interp_set_logging): Add debug_redirect
9262 * interps.h (set_logging): Add debug_redirect parameter.
9263 (current_interp_set_logging): Likewise.
9264 * mi/mi-common.h: Likewise.
9265 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9267 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9268 Tom Tromey <tromey@adacore.com>
9270 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9272 * cli/cli-interp.h (make_logging_output): Remove declaration.
9273 * cli/cli-logging.c (make_logging_output): Remove function.
9274 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9276 * ui-file.c (tee_file::tee_file): Remove bools.
9277 (tee_file::~tee_file): Remove deletes.
9278 * ui-file.h (tee_file): Remove bools.
9280 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9282 * mi/mi-cmds.h (mi_cmd_complete): New function.
9283 * mi/mi-main.c (mi_cmd_complete): Likewise.
9284 * mi/mi-cmds.c: Define new MI command -complete.
9285 * NEWS: Mention new -complete command.
9287 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9289 * completer.h (complete): New function.
9290 * completer.c (complete): Likewise.
9291 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9292 function defined in completer.h.
9294 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9296 * MAINTAINERS (Write After Approval): Add myself.
9298 2019-05-17 Tom de Vries <tdevries@suse.de>
9301 * dwarf2read.c (struct cu_partial_die_info): New struct.
9302 (find_partial_die): Return cu_partial_die_info.
9303 (partial_die_parent_scope, guess_partial_die_structure_name)
9304 (partial_die_info::fixup): Handle new return type of find_partial_die.
9306 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9308 PR breakpoints/24541
9309 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9310 "std::string", simplifying the algorithm.
9312 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9314 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9315 (stap_static_probe_ops::get_probes): Likewise.
9317 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9319 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9320 '-')" and "else if".
9321 (stap_parse_single_operand): Join checks for
9322 "gdbarch_stap_parse_special_token_p" and
9323 "gdbarch_stap_parse_special_token" in the same "if" statement.
9324 Invert check when verifying for operation on register
9327 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9329 * stap-probe.c (stap_get_opcode): Update comment.
9330 (stap_get_expected_argument_type): Likewise.
9331 (handle_stap_probe): Likewise.
9333 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9335 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9336 return type to 'bool'. Adjust comment. Use 'bool' when
9338 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9339 * stap-probe.c (stap_parse_argument_1): Likewise.
9340 (stap_is_operator): Likewise.
9341 (stap_is_generic_prefix): Likewise.
9342 (stap_is_register_prefix): Likewise.
9343 (stap_is_register_indirection_prefix): Likewise.
9344 (stap_is_integer_prefix): Likewise.
9345 (stap_generic_check_suffix): Likewise.
9346 (stap_check_integer_suffix): Likewise.
9347 (stap_check_register_suffix): Likewise.
9348 (stap_check_register_indirection_suffix): Likewise.
9349 (stap_parse_register_operand): Likewise.
9350 (stap_parse_single_operand): Likewise.
9351 (stap_parse_argument_1): Likewise.
9352 (stap_probe::get_argument_count): Likewise.
9353 (stap_is_operator): Likewise.
9355 2019-05-16 Tom Tromey <tromey@adacore.com>
9357 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9360 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9362 * linux-thread-db.c (try_thread_db_load_1): Change return type
9364 (try_thread_db_load): Likewise.
9365 (try_thread_db_load_from_pdir_1): Likewise.
9366 (try_thread_db_load_from_pdir): Likewise.
9367 (try_thread_db_load_from_sdir): Likewise.
9368 (try_thread_db_load_from_dir): Likewise.
9369 (thread_db_load_search): Likewise.
9370 (has_libpthread): Likewise.
9371 (thread_db_load): Likewise.
9373 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9375 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9376 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9377 NULL, and complain/return if that's the case.
9379 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9381 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9382 (advance, posn, abstract_read_memory): New functions.
9383 [struct mem_read_abstraction]: New struct.
9384 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9386 2019-05-14 Tom Tromey <tromey@adacore.com>
9388 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9389 value is not lval_memory.
9391 2019-05-14 Tom Tromey <tromey@adacore.com>
9393 * solib.c (info_sharedlibrary_command): Style the file name.
9395 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9397 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9398 (aarch64_vnv_type): Likewise.
9399 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9400 * common/tdesc.c: Likewise.
9401 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9402 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9403 * features/aarch64-fpu.xml: Add ieee half view.
9404 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9405 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9406 * gdbtypes.h (struct builtin_type): Likewise.
9407 (struct objfile_type): Likewise.
9409 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9411 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9413 * location.h (string_to_event_location): Likewise.
9415 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9419 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9421 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9422 New variable declaration.
9423 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9425 (print_one_breakpoint): Use ui_out::test_flags and new global
9426 variable to compute use_fixed_output.
9427 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9429 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9430 (mi_multi_location_breakpoint_output_fixed): Remove.
9431 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9433 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9434 fix_multi_location_breakpoint_output flag if version >= 3.
9435 * ui-out.h (enum ui_out_flag)
9436 <fix_multi_location_breakpoint_output>: New enumerator.
9438 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9440 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9442 2019-05-10 Tom Tromey <tromey@adacore.com>
9444 * ada-lang.c (catch_ada_completer): New function.
9445 (_initialize_ada_language): Use it.
9447 2019-05-10 Tom Tromey <tromey@adacore.com>
9449 * thread.c (print_thread_info): Make "requested_threads" const.
9450 * gdbthread.h (print_thread_info): Make "requested_threads"
9452 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9453 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9455 2019-05-08 Tom Tromey <tom@tromey.com>
9457 * gdbtypes.c (objfile_type_data): Change type.
9458 (objfile_type, _initialize_gdbtypes): Update.
9460 2019-05-08 Tom Tromey <tom@tromey.com>
9462 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9463 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9464 (_initialize_dwarf2_frame): Update.
9466 2019-05-08 Tom Tromey <tom@tromey.com>
9468 * objc-lang.c (objc_objfile_data): Change type.
9469 (find_methods): Update.
9470 (_initialize_objc_lang): Remove.
9472 2019-05-08 Tom Tromey <tom@tromey.com>
9474 * stabsread.c (rs6000_builtin_type_data): Change type.
9475 (rs6000_builtin_type, _initialize_stabsread): Update.
9477 2019-05-08 Tom Tromey <tom@tromey.com>
9479 * mips-tdep.c (mips_pdr_data): Remove.
9480 (_initialize_mips_tdep): Update.
9482 2019-05-08 Tom Tromey <tom@tromey.com>
9484 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9485 (hppa_init_objfile_priv_data, read_unwind_info)
9486 (find_unwind_entry, _initialize_hppa_tdep): Update.
9488 2019-05-08 Tom Tromey <tom@tromey.com>
9490 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9491 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9493 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9495 2019-05-08 Tom Tromey <tom@tromey.com>
9497 * mdebugread.c (basic_type_data): Change type.
9498 (basic_type, _initialize_mdebugread): Update.
9500 2019-05-08 Tom Tromey <tom@tromey.com>
9502 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9504 2019-05-08 Tom Tromey <tom@tromey.com>
9506 * nto-tdep.c (nto_inferior_data_reg): Change type.
9507 (nto_inferior_data): Update.
9508 (nto_inferior_data_cleanup, nto_new_inferior_data)
9509 (_initialize_nto_tdep): Remove.
9510 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9512 2019-05-08 Tom Tromey <tom@tromey.com>
9514 * ada-lang.c (struct ada_inferior_data): Add initializers.
9515 (ada_inferior_data): Change type.
9516 (ada_inferior_data_cleanup): Remove.
9517 (get_ada_inferior_data, ada_inferior_exit)
9518 (struct ada_pspace_data): Add initializers, destructor.
9519 (ada_pspace_data_handle): Change type.
9520 (get_ada_pspace_data): Update.
9521 (ada_pspace_data_cleanup): Remove.
9523 2019-05-08 Tom Tromey <tom@tromey.com>
9525 * coffread.c (struct coff_symfile_info): Add initializers.
9526 (coff_objfile_data_key): Move lower. Change type.
9527 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9529 (coff_free_info): Remove.
9531 2019-05-08 Tom Tromey <tom@tromey.com>
9533 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9534 (fbsd_pspace_data_handle): Move lower. Change type.
9535 (get_fbsd_pspace_data): Update.
9536 (fbsd_pspace_data_cleanup): Remove.
9537 (_initialize_fbsd_tdep): Update.
9539 2019-05-08 Tom Tromey <tom@tromey.com>
9541 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9542 (get_ada_tasks_pspace_data): Update.
9543 (ada_tasks_pspace_data_cleanup): Remove.
9544 (_initialize_tasks): Update.
9545 (ada_tasks_inferior_data_handle): Change type.
9546 (get_ada_tasks_inferior_data): Update.
9547 (ada_tasks_inferior_data_cleanup): Remove.
9548 (struct ada_tasks_pspace_data): Add initializers.
9550 2019-05-08 Tom Tromey <tom@tromey.com>
9552 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9553 * symfile-debug.c (debug_sym_get_probes): Change type.
9554 * stap-probe.c (handle_stap_probe):
9555 (stap_static_probe_ops::get_probes): Change type.
9556 * probe.h (class static_probe_ops) <get_probes>: Change type.
9557 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9558 (parse_probes_in_pspace): Update.
9559 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9561 (any_static_probe_ops::get_probes): Change type.
9562 * elfread.c (elfread_data): New typedef.
9563 (probe_key): Change type.
9564 (elf_get_probes): Likewise. Update.
9565 (probe_key_free): Remove.
9566 (_initialize_elfread): Update.
9567 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9569 (dtrace_process_dof_probe, dtrace_process_dof)
9570 (dtrace_static_probe_ops::get_probe): Change type.
9572 2019-05-08 Tom Tromey <tom@tromey.com>
9574 * xcoffread.c (struct xcoff_symfile_info): Rename from
9575 coff_symfile_info. Add initializers.
9576 (xcoff_objfile_data_key): Move lower. Change type.
9577 (XCOFF_DATA): Rewrite.
9578 (xcoff_free_info): Remove.
9579 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9580 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9581 (xcoff_initial_scan): Update.
9583 2019-05-08 Tom Tromey <tom@tromey.com>
9585 * solib-svr4.c (struct svr4_info): Add initializers and
9587 <probes_table>: Now an htab_up.
9588 (solib_svr4_pspace_data): Change type.
9589 (free_probes_table): Simplify.
9590 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9591 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9592 (probes_table_remove_objfile_probes, register_solib_event_probe)
9593 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9594 (_initialize_svr4_solib): Update.
9596 2019-05-08 Tom Tromey <tom@tromey.com>
9598 * remote.c (remote_pspace_data): Change type.
9599 (remote_pspace_data_cleanup): Remove.
9600 (get_remote_exec_file, set_pspace_remote_exec_file)
9601 (_initialize_remote): Update.
9603 2019-05-08 Tom Tromey <tom@tromey.com>
9605 * breakpoint.c (breakpoint_objfile_key): Change type.
9606 (get_breakpoint_objfile_data): Update.
9607 (free_breakpoint_objfile_data): Remove.
9608 (_initialize_breakpoint): Update.
9610 2019-05-08 Tom Tromey <tom@tromey.com>
9612 * linux-tdep.c (struct linux_info): Add initializers.
9613 (linux_inferior_data): Move. Change type.
9614 (invalidate_linux_cache_inf): Update.
9615 (linux_inferior_data_cleanup): Remove.
9616 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9618 2019-05-08 Tom Tromey <tom@tromey.com>
9620 * auxv.c (auxv_inferior_data): Move. Change type.
9621 (auxv_inferior_data_cleanup): Remove.
9622 (invalidate_auxv_cache_inf): Rewrite.
9623 (get_auxv_inferior_data, _initialize_auxv): Update.
9625 2019-05-08 Tom Tromey <tom@tromey.com>
9627 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9628 (symfile_debug_objfile_data_key): Change type.
9629 (symfile_debug_installed, debug_qf_has_symbols)
9630 (debug_qf_find_last_source_symtab)
9631 (debug_qf_forget_cached_source_info)
9632 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9633 (debug_qf_print_stats, debug_qf_dump)
9634 (debug_qf_expand_symtabs_for_function)
9635 (debug_qf_expand_all_symtabs)
9636 (debug_qf_expand_symtabs_with_fullname)
9637 (debug_qf_map_matching_symbols)
9638 (debug_qf_expand_symtabs_matching)
9639 (debug_qf_find_pc_sect_compunit_symtab)
9640 (debug_qf_map_symbol_filenames)
9641 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9642 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9643 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9644 (debug_sym_read_linetable, debug_sym_relocate): Update.
9645 (symfile_debug_free_objfile): Remove.
9646 (install_symfile_debug_logging, _initialize_symfile_debug):
9649 2019-05-08 Tom Tromey <tom@tromey.com>
9651 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9652 allocate_on_obstack.
9653 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9654 (get_dwarf2_per_objfile): Update.
9655 (set_dwarf2_per_objfile): Remove.
9656 (dwarf2_has_info, dwarf2_get_section_info): Update.
9657 (dwarf2_free_objfile): Remove.
9658 (_initialize_dwarf2_read): Update.
9660 2019-05-08 Tom Tromey <tom@tromey.com>
9662 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9664 <unsupported_script_warning_printed,
9665 script_not_found_warning_printed>: Now bool.
9666 (auto_load_pspace_data): Change type.
9667 (~auto_load_pspace_info): Rename from
9668 auto_load_pspace_data_cleanup.
9669 (get_auto_load_pspace_data, init_loaded_scripts_info)
9670 (clear_section_scripts, maybe_print_unsupported_script_warning)
9671 (maybe_print_script_not_found_warning, _initialize_auto_load):
9674 2019-05-08 Tom Tromey <tom@tromey.com>
9676 * objfiles.c (objfile_pspace_info): Add destructor and
9678 (objfiles_pspace_data): Change type.
9679 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9680 (get_objfile_pspace_data): Update.
9681 (objfiles_bfd_data): Change type.
9682 (get_objfile_bfd_data): Update.
9683 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9685 2019-05-08 Tom Tromey <tom@tromey.com>
9687 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9689 (get_catch_syscall_inferior_data): Update.
9690 (catch_syscall_inferior_data_cleanup): Remove.
9691 (_initialize_break_catch_syscall): Update.
9693 2019-05-08 Tom Tromey <tom@tromey.com>
9695 * inflow.c (struct terminal_info): Add destructor and
9697 (inflow_inferior_data): Change type.
9698 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9699 (get_inflow_inferior_data, inflow_inferior_exit)
9700 (swap_terminal_info, _initialize_inflow): Update.
9702 2019-05-08 Tom Tromey <tom@tromey.com>
9704 * target-dcache.c (target_dcache_cleanup): Remove.
9705 (target_dcache_aspace_key): Change type.
9706 (target_dcache_init_p, target_dcache_invalidate)
9707 (target_dcache_get, target_dcache_get_or_init)
9708 (_initialize_target_dcache): Update.
9709 * dcache.h (struct dcache_deleter): New.
9711 2019-05-08 Tom Tromey <tom@tromey.com>
9713 * symtab.c (struct symbol_cache): Add destructor and
9715 (symbol_cache_key): Move. Change type.
9716 (make_symbol_cache, free_symbol_cache): Remove.
9717 (get_symbol_cache): Update.
9718 (symbol_cache_cleanup): Remove.
9719 (ALL_PSPACES, symbol_cache_flush)
9720 (maintenance_print_symbol_cache)
9721 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9724 2019-05-08 Tom Tromey <tom@tromey.com>
9726 * symtab.c (struct main_info): Add destructor and initializers.
9727 (main_progspace_key): Move. Change type.
9728 (get_main_info): Update.
9729 (main_info_cleanup): Remove.
9730 (_initialize_symtab): Update.
9732 2019-05-08 Tom Tromey <tom@tromey.com>
9734 * registry.h (DECLARE_REGISTRY): Define the _key class.
9736 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9738 * NEWS: Merge two 'New commands' sections.
9740 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9742 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9743 parameter and use Ada language definition instead.
9744 (ada_val_print_ptr): Remove unused language parameter.
9745 (ada_val_print_num): Remove language parameter and use Ada language
9747 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9749 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9750 parameter and use Ada language definition instead.
9751 (ada_val_print_1): Update all ada_val_print_xxx calls.
9752 Remove language parameter.
9753 (ada_val_print): Update ada_val_print_1 call.
9755 2019-05-08 Tom Tromey <tromey@adacore.com>
9757 * remote.c (remote_hw_watchpoint_limit)
9758 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9761 2019-05-08 Tom Tromey <tromey@adacore.com>
9763 * maint.c (_initialize_maint_cmds): Move initialization code to
9765 (watchdog, show_watchdog): Move to remote.c.
9766 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9768 (_initialize_remote): Move initialization code from maint.c.
9769 * defs.h (watchdog): Don't declare.
9771 2019-05-08 Tom Tromey <tromey@adacore.com>
9773 * tui/tui-interp.c: Include main.h.
9774 * interps.c: Include main.h.
9775 * main.h (interpreter_p): Declare.
9776 * defs.h (interpreter_p): Don't declare.
9778 2019-05-08 Tom Tromey <tromey@adacore.com>
9780 * dwarf2loc.c: Include dwarf2read.h.
9781 * defs.h (read_unsigned_leb128): Don't declare.
9782 * dwarf2read.h (read_unsigned_leb128): Declare.
9784 2019-05-08 Tom Tromey <tromey@adacore.com>
9786 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9789 2019-05-08 Tom Tromey <tromey@adacore.com>
9791 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9792 when no wrap column is set.
9794 2019-05-08 Tom Tromey <tromey@adacore.com>
9796 * c-lang.c (c_get_string): Handle non-C-style arrays.
9798 2019-05-08 Tom Tromey <tromey@adacore.com>
9800 * typeprint.c (print_offset_data::update): Print the bit offset,
9801 not the number of bits remaining.
9803 2019-05-08 Tom Tromey <tromey@adacore.com>
9805 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9806 padding at end of comment.
9808 2019-05-08 Tom Tromey <tromey@adacore.com>
9810 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9813 2019-05-06 Tom Tromey <tom@tromey.com>
9815 * common/scoped_mmap.c: Include common-defs.h.
9816 * common/scoped_mmap.h: Don't include config.h.
9818 2019-05-04 Tom Tromey <tom@tromey.com>
9820 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9821 (struct aarch64_call_info): Add initializers.
9822 <si>: Now a std::vector.
9823 (pass_on_stack, aarch64_push_dummy_call): Update.
9825 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9826 Tom Tromey <tom@tromey.com>
9828 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9829 (ppc_threads): Now a std::vector. Now static.
9830 (hwdebug_find_thread_points_by_tid)
9831 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9834 2019-05-04 Tom Tromey <tom@tromey.com>
9836 * arc-tdep.c (arc_tdesc_init): Return bool.
9838 2019-05-04 Tom Tromey <tom@tromey.com>
9840 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9841 Use gdb_assert_not_reached.
9843 2019-05-04 Tom Tromey <tom@tromey.com>
9845 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9848 2019-05-04 Tom Tromey <tom@tromey.com>
9850 * arc-tdep.c (arc_tdesc_init): Use bool.
9852 2019-05-04 Tom Tromey <tom@tromey.com>
9854 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9856 2019-05-04 Tom Tromey <tom@tromey.com>
9858 * cli/cli-cmds.c (valid_command_p): Return bool.
9860 2019-05-04 Tom Tromey <tom@tromey.com>
9862 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9863 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9865 2019-05-04 Raul Tambre <raul@tambre.ee>
9867 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9868 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9869 operator for comparison.
9871 2019-05-04 Tom Tromey <tom@tromey.com>
9873 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9874 (lookup_partial_symbol, print_partial_symbols)
9875 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9876 (psymbol_compare): Update.
9877 (add_psymbol_to_bcache): Clear the entire psymbol.
9878 (maintenance_check_psymtabs): Update.
9879 * psympriv.h (struct partial_symbol): Don't derive from
9880 general_symbol_info.
9881 <obj_section, unrelocated_address, address,
9882 set_unrelocated_address>: Update.
9883 <ginfo>: New member.
9884 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9885 (debug_names::write_psymbols): Update.
9887 2019-05-04 Tom de Vries <tdevries@suse.de>
9889 * contrib/cc-with-tweaks.sh: Support -n arg.
9891 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9893 * corelow.c (core_target::detach): Ensure frame cache and
9894 register caches are cleared.
9895 inferior.c (exit_inferior_1): Likewise.
9897 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9898 Tom Tromey <tom@tromey.com>
9900 * dictionary.c (collate_pending_symbols_by_language): Remove
9901 "struct" from foreach.
9902 * symtab.c (lookup_global_symbol_from_objfile)
9903 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9905 * ser-tcp.c (net_open): Remove "struct" from foreach.
9906 * objfiles.c (objfile_relocate, objfile_rebase)
9907 (objfile_has_symbols): Remove "struct" from foreach.
9908 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9910 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9912 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9913 "struct" from foreach.
9914 * ada-lang.c (create_excep_cond_exprs)
9915 (ada_exception_catchpoint_cond_string): Remove "struct" from
9918 2019-05-03 Tom Tromey <tromey@adacore.com>
9920 * ada-exp.y (convert_char_literal): Check suffix of each
9923 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9926 * ada-exp.y (yywrap): Don't define.
9927 * ada-lex.l (%option): Add noyywrap
9930 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9932 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9933 _WIN32_WINNT to the XP level, unless already defined to a higher
9936 * unittests/parse-connection-spec-selftests.c:
9938 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9941 * symfile.c (find_separate_debug_file): Remove colon from the
9942 drive spec of DOS/Windows file names of the target, so that the
9943 file name produced from DEBUGDIR and the target's directory will
9944 be valid on DOS/Windows systems.
9946 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9948 * rust-lang.c (val_print_struct): Handle printing structures
9951 2019-05-02 Tom Tromey <tromey@adacore.com>
9953 * valarith.c (_initialize_valarith): Remove.
9955 2019-05-01 Tom Tromey <tromey@adacore.com>
9957 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9960 2019-05-01 Tom Tromey <tromey@adacore.com>
9962 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9963 for big-endian copies.
9965 2019-04-30 Ali Tamur <tamur@google.com>
9966 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9967 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9968 (read_3_bytes): New function.
9970 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9972 * windows-nat.c (main_thread_id): Delete.
9973 (handle_output_debug_string): Replace main_thread_id by
9974 current_event.dwThreadId.
9975 (fake_create_process): Likewise.
9976 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9977 Do not set main_thread_id.
9978 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9979 current_event.dwThreadId.
9980 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9982 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9984 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9985 Use current_event.dwThreadId instead of main_thread_id.
9987 2019-04-30 Tom Tromey <tromey@adacore.com>
9989 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9990 (create_excep_cond_exprs): Iterate over program spaces.
9991 (ada_exception_catchpoint_cond_string): Examine all minimal
9992 symbols for exception types.
9994 2019-04-30 Tom Tromey <tromey@adacore.com>
9997 * dwarf2read.c (process_structure_scope): Handle case where type
9998 has template parameters but no symbol was created.
10000 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10001 Chris January <chris.january@arm.com>
10003 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10005 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10007 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10009 * f-typeprint.c (f_print_type): Update rules for printing
10011 (f_type_print_varspec_suffix): Likewise.
10013 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10014 Chris January <chris.january@arm.com>
10016 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10017 function arguments.
10019 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10021 * f-lang.c (build_fortran_types): Change name of void type to
10023 * f-typeprint.c (f_type_print_base): Print the name of the void
10024 type, rather than a fixed string.
10025 * f-valprint.c (f_decorations): Use lower case void string.
10027 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10028 Chris January <chris.january@arm.com>
10030 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10033 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10034 Chris January <chris.january@arm.com>
10035 David Lecomber <david.lecomber@arm.com>
10037 * f-exp.y (BINOP_INTRINSIC): New token.
10038 (exp): New parser rule handling BINOP_INTRINSIC.
10039 (f77_keywords): Add new builtin procedures.
10040 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10041 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10042 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10043 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10044 (print_unop_subexp_f): New function.
10045 (print_binop_subexp_f): New function.
10046 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10047 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10048 (dump_subexp_body_f): Likewise.
10049 (operator_check_f): Likewise.
10050 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10051 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10053 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10055 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10057 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10058 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10059 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10060 (operator_length_f): New fuction.
10061 (print_subexp_f): New function.
10062 (op_name_f): New function.
10063 (dump_subexp_body_f): New function.
10064 (operator_check_f): New function.
10065 (exp_descriptor_f): Replace standard expression handling functions
10066 with new functions.
10067 * gdb/fortran-operator.def: New file.
10068 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10069 * gdb/std-operator.def: Remove UNOP_KIND.
10071 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10073 * std-operator.def: Remove unbalanced, stray double quote
10076 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10077 Chris January <chris.january@arm.com>
10078 Daniel Everett <daniel.everett@arm.com>
10079 Nick Forrington <nick.forrington@arm.com>
10080 Richard Bunt <richard.bunt@arm.com>
10082 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10083 of depth when printing anonymous structs or unions.
10084 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10085 Don't print either the top-level value, or the children if the
10086 max-depth is exceeded.
10087 (ppscm_print_children): When printing the key of a map, allow one
10088 extra level of depth.
10089 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10090 print either the top-level value, or the children if the max-depth
10092 (print_children): When printing the key of a map, allow one extra
10094 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10095 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10096 (user_print_options): Initialise max_depth field.
10097 (val_print_scalar_or_string_type_p): New function.
10098 (val_print): Check to see if the max depth has been reached.
10099 (val_print_check_max_depth): Define new function.
10100 (show_print_max_depth): New function.
10101 (_initialize_valprint): Add 'print max-depth' option.
10102 * valprint.h (struct value_print_options) <max_depth>: New field.
10103 (val_print_check_max_depth): Declare new function.
10104 * NEWS: Document new feature.
10106 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10108 * ada-lang.c (ada_language_defn): Initialise new field.
10109 * c-lang.c (c_is_string_type_p): New function.
10110 (c_language_defn): Initialise new field.
10111 (cplus_language_defn): Initialise new field.
10112 (asm_language_defn): Initialise new field.
10113 (minimal_language_defn): Initialise new field.
10114 * c-lang.h (c_is_string_type_p): Declare new function.
10115 * d-lang.c (d_language_defn): Initialise new field.
10116 * f-lang.c (f_is_string_type_p): New function.
10117 (f_language_defn): Initialise new field.
10118 * go-lang.c (go_is_string_type_p): New function.
10119 (go_language_defn): Initialise new field.
10120 * language.c (default_is_string_type_p): New function.
10121 (unknown_language_defn): Initialise new field.
10122 (auto_language_defn): Initialise new field.
10123 * language.h (struct language_defn) <la_is_string_type_p>: New
10125 (default_is_string_type_p): Declare new function.
10126 * m2-lang.c (m2_language_defn): Initialise new field.
10127 * objc-lang.c (objc_language_defn): Initialise new field.
10128 * opencl-lang.c (opencl_language_defn): Initialise new field.
10129 * p-lang.c (pascal_is_string_type_p): New function.
10130 (pascal_language_defn): Initialise new field.
10131 * rust-lang.c (rust_is_string_type_p): New function.
10132 (rust_language_defn): Initialise new field.
10134 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10136 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10138 * ada-lang.c (ada_language_defn): Initialise new field.
10139 * c-lang.c (c_language_defn): Likewise.
10140 (cplus_language_defn): Likewise.
10141 (asm_language_defn): Likewise.
10142 (minimal_language_defn): Likewise.
10143 * d-lang.c (d_language_defn): Likewise.
10144 * f-lang.c (f_language_defn): Likewise.
10145 * go-lang.c (go_language_defn): Likewise.
10146 * language.c (unknown_language_defn): Likewise.
10147 (auto_language_defn): Likewise.
10148 * m2-lang.c (m2_language_defn): Likewise.
10149 * objc-lang.c (objc_language_defn): Likewise.
10150 * opencl-lang.c (opencl_language_defn): Likewise.
10151 * p-lang.c (pascal_language_defn): Likewise.
10152 * rust-lang.c (rust_language_defn): Likewise.
10154 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10156 * ada-lang.c (ada_is_character_type): Change return type to bool.
10157 (ada_is_string_type): Likewise.
10158 * ada-lang.h (ada_is_character_type): Update declaration
10159 (ada_is_string_type): Likewise.
10161 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10163 Support style in 'frame|thread apply'
10165 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10166 * record.c (record_start, record_stop): Update callers of
10167 execute_command_to_string with false.
10168 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10169 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10171 (class string_file): New constructor with term_out parameter.
10172 Override methods term_out and can_emit_style_escape. New member
10174 (class stdio_file): Override can_emit_style_escape.
10175 (class tee_file): Override term_out and can_emit_style_escape.
10176 * utils.h (can_emit_style_escape): Remove.
10177 * utils.c (can_emit_style_escape): Likewise.
10178 Update all callers of can_emit_style_escape (SOMESTREAM) to
10179 SOMESTREAM->can_emit_style_escape.
10180 * source-cache.c (source_cache::get_source_lines): Likewise.
10181 * stack.c (frame_apply_command_count): Call execute_command_to_string
10182 passing the term_out characteristic of the current gdb_stdout.
10183 * thread.c (thr_try_catch_cmd): Likewise.
10184 * top.c (execute_command_to_string): pass term_out parameter
10185 to construct the string_file for the command output.
10186 * ui-file.c (term_cli_styling): New function (most code moved
10187 from utils.c can_emit_style_escape).
10188 (string_file::string_file, string_file::can_emit_style_escape,
10189 stdio_file::can_emit_style_escape, tee_file::term_out,
10190 tee_file::can_emit_style_escape): New functions.
10192 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10194 * NEWS: Mention the new set|show may-call-functions.
10195 * infcall.c (may_call_functions_p): New variable.
10196 (show_may_call_functions_p): New function.
10197 (call_function_by_hand_dummy): Throws an error if not
10198 may-call-functions.
10199 (_initialize_infcall): Call add_setshow_boolean_cmd for
10200 may-call-functions.
10202 2019-04-25 Keith Seitz <keiths@redhat.com>
10205 * cp-support.c (inspect_type): Don't attempt substitutions
10206 of symbol with the same name.
10208 2019-04-25 Tom Tromey <tromey@adacore.com>
10211 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10214 2019-04-25 Tom Tromey <tromey@adacore.com>
10216 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10218 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10219 (gdb_xml_parser::parse): Use std::move.
10220 * python/python-internal.h (gdbpy_convert_exception): Take a const
10222 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10224 * python/py-utils.c (gdbpy_convert_exception): Take a const
10226 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10228 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10230 * mi/mi-main.c (mi_print_exception): Take a const reference.
10231 * main.c (handle_command_errors): Take a const reference.
10232 * linespec.c (parse_linespec): Use std::move.
10233 * infcall.c (run_inferior_call): Use std::move.
10234 (call_function_by_hand_dummy): Use std::move.
10235 * exec.c (try_open_exec_file): Use std::move.
10236 * exceptions.h (exception_print, exception_fprintf)
10237 (exception_print_same): Update.
10238 * exceptions.c (print_exception, exception_print)
10239 (exception_fprintf, exception_print_same): Change parameters to
10241 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10242 * common/new-op.c: Use std::move.
10243 * common/common-exceptions.h (struct gdb_exception): Add move
10245 (struct gdb_exception_error, struct gdb_exception_quit, struct
10246 gdb_quit_bad_alloc): Change constructor to move constructor.
10247 (throw_exception): Change parameter to rvalue reference.
10248 * common/common-exceptions.c (throw_exception): Take rvalue
10250 * cli/cli-interp.c (safe_execute_command): Use std::move.
10251 * breakpoint.c (insert_bp_location, location_to_sals): Use
10254 2019-04-25 Tom Tromey <tromey@adacore.com>
10256 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10257 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10258 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10259 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10260 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10261 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10262 guile/scm-value.c: Use unpack.
10263 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10264 gdbscm_gdb_exception.
10265 (gdbscm_throw_gdb_exception): Likewise.
10266 (struct gdbscm_gdb_exception): New.
10267 (unpack): New function.
10268 (gdbscm_wrap): Use unpack.
10270 2019-04-25 Tom Tromey <tromey@adacore.com>
10272 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10273 (gdb_rl_callback_handler): Use std::move.
10274 * common/common-exceptions.h (struct gdb_exception): Add move
10275 assignment operator.
10276 (throw_exception_sjlj): Change "exception" to const reference.
10277 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10278 (throw_exception_sjlj): Change "exception" to const reference.
10280 2019-04-25 Tom Tromey <tromey@adacore.com>
10282 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10283 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10284 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10286 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10288 * mi/mi-interp.c (mi_interp::exec): Update.
10289 * linespec.c (parse_linespec): Update.
10290 * infcall.c (run_inferior_call): Update.
10291 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10292 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10293 (gdbscm_lookup_global_symbol): Update.
10294 * guile/scm-param.c (gdbscm_parameter_value): Update.
10295 * guile/scm-frame.c (gdbscm_frame_read_register)
10296 (gdbscm_frame_read_var): Update.
10297 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10298 * exec.c (try_open_exec_file): Update.
10299 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10300 (gdb_rl_callback_handler): Update.
10301 * common/common-exceptions.h (exception_none): Don't declare.
10302 * common/common-exceptions.c (exception_none): Don't define.
10303 (struct catcher) <exception>: Update.
10304 * cli/cli-interp.c (safe_execute_command): Update.
10305 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10307 2019-04-25 Ali Tamur <tamur@google.com>
10309 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10310 (read_attribute_value): Likewise.
10311 (dwarf2_read_addr_index): Update comment.
10312 (read_str_index): Add DW_FORM_strx.
10313 (dwarf2_string_attr): Likewise.
10314 (dwarf2_const_value_attr): Likewise.
10315 (dump_die_shallow): Likewise.
10316 (dwarf2_fetch_constant_bytes): Likewise.
10317 (skip_form_bytes): Likewise.
10318 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10320 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10324 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10325 OFFSET. Verify if current mapping contains an ELF header.
10326 (linux_find_memory_regions_full): Adjust call to
10329 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10330 Kang Li <kanglictf@gmail.com>
10334 * dwarf2-frame.c (read_initial_length): Be consistent about using
10335 unsigned representation of length.
10336 (decode_frame_entry_1): Likewise. Check for wraparound of
10337 end pointer as well as buffer overflow.
10339 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10341 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10344 2019-04-24 Tom Tromey <tromey@adacore.com>
10346 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10350 * s12z-tdep.c (s12z_unwind_pc): Delete.
10351 (s12z_unwind_sp): Delete.
10352 (s12z_gdbarch_init): Don't register deleted functions with
10355 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10357 * rl78-tdep.c (rl78_unwind_sp): Delete.
10358 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10360 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10362 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10363 (xstormy16_unwind_pc): Delete.
10364 (xstormy16_dummy_id): Delete.
10365 (xstormy16_gdbarch_init): Don't register deleted functions with
10368 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10370 * vax-tdep.c (vax_unwind_pc): Delete.
10371 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10373 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10375 * v850-tdep.c (v850_unwind_sp): Delete.
10376 (v850_unwind_pc): Delete.
10377 (v850_dummy_id): Delete.
10378 (v850_gdbarch_init): Don't register deleted functions with
10381 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10383 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10384 (tilegx_unwind_pc): Delete.
10385 (tilegx_unwind_dummy_id): Delete.
10386 (tilegx_gdbarch_init): Don't register deleted functions with
10389 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10391 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10392 (tic6x_dummy_id): Delete.
10393 (tic6x_gdbarch_init): Don't register deleted functions with
10396 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10398 * sparc-tdep.c (sparc_unwind_pc): Delete.
10399 (sparc32_gdbarch_init): Don't register deleted function with
10402 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10404 * sh-tdep.c (sh_unwind_sp): Delete.
10405 (sh_unwind_pc): Delete.
10406 (sh_dummy_id): Delete.
10407 (sh_gdbarch_init): Don't register deleted functions with
10410 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10412 * score-tdep.c (score_unwind_sp): Delete.
10413 (score_unwind_pc): Delete.
10414 (score_dummy_id): Delete.
10415 (score_gdbarch_init): Don't register deleted functions with
10418 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10420 * rx-tdep.c (rx_unwind_pc): Delete.
10421 (rx_unwind_sp): Delete.
10422 (rx_dummy_id): Delete.
10423 (rx_gdbarch_init): Don't register deleted functions with
10424 gdbarch. Update comment.
10426 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10428 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10429 (rs6000_dummy_id): Delete.
10430 (rs6000_gdbarch_init): Don't register deleted functions with
10433 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10435 * or1k-tdep.c (or1k_dummy_id): Delete.
10436 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10438 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10440 * nios2-tdep.c (nios2_dummy_id): Delete.
10441 (nios2_unwind_sp): Delete.
10442 (nios2_gdbarch_init): Don't register deleted functions with
10445 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10447 * nds32-tdep.c (nds32_dummy_id): Delete.
10448 (nds32_unwind_pc): Delete.
10449 (nds32_unwind_sp): Delete.
10450 (nds32_gdbarch_init): Don't register deleted functions with
10453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * msp430-tdep.c (msp430_unwind_pc): Delete.
10456 (msp430_unwind_sp): Delete.
10457 (msp430_dummy_id): Delete.
10458 (msp430_gdbarch_init): Don't register deleted functions with
10461 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10463 * moxie-tdep.c (moxie_unwind_sp): Delete.
10464 (moxie_unwind_pc): Delete.
10465 (moxie_dummy_id): Delete.
10466 (moxie_gdbarch_init): Don't register deleted functions with
10469 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10471 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10472 (mn10300_unwind_pc): Delete.
10473 (mn10300_unwind_sp): Delete.
10474 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10476 (mn10300_frame_unwind_init): Don't register deleted functions with
10479 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10481 * mep-tdep.c (mep_unwind_pc): Delete.
10482 (mep_unwind_sp): Delete.
10483 (mep_dummy_id): Delete.
10484 (mep_gdbarch_init): Don't register deleted functions with
10487 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10489 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10490 (m68hc11_unwind_sp): Delete.
10491 (m68hc11_gdbarch_init): Don't register deleted functions with
10494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10496 * m32r-tdep.c (m32r_unwind_sp): Delete.
10497 (m32r_unwind_pc): Delete.
10498 (m32r_dummy_id): Delete.
10499 (m32r_gdbarch_init): Don't register deleted functions with
10502 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10504 * m32c-tdep.c (m32c_unwind_pc): Delete.
10505 (m32c_unwind_sp): Delete.
10506 (m32c_dummy_id): Delete.
10507 (m32c_gdbarch_init): Don't register deleted functions with
10510 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10512 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10513 (lm32_unwind_pc): Delete.
10514 (lm32_dummy_id): Delete.
10515 (lm32_gdbarch_init): Don't register deleted functions with
10518 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10520 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10521 (iq2000_unwind_pc): Delete.
10522 (iq2000_dummy_id): Delete.
10523 (iq2000_gdbarch_init): Don't register deleted functions with
10526 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10528 * nds32-tdep.c (nds32_type_align): Delete.
10529 (nds32_push_dummy_call): Use type_align instead.
10531 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10533 * arm-tdep.c (arm_type_align): Only handle vector override case.
10534 (arm_push_dummy_call): Use type_align.
10535 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10539 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10541 (pass_on_stack): Use type_align.
10542 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10545 2019-04-23 Tom Tromey <tromey@adacore.com>
10547 * dwarf2read.c (line_header::file_name_at): Remove unused
10550 2019-04-23 Tom de Vries <tdevries@suse.de>
10553 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10557 2019-03-27 Ali Tamur <tamur@google.com>
10559 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10560 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10561 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10562 (dwarf_expr_context::get_addr_index): Likewise
10563 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10564 (symbol_needs_eval_context::get_addr_index): Likewise
10565 (disassemble_dwarf_expression): Add DW_OP_addrx
10566 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10567 (read_cutu_die_from_dwo): Update comment
10568 (skip_one_die): Add DW_FORM_addrx
10569 (read_attribute_value): Likewise
10570 (var_decode_location): Add DW_OP_addrx
10571 (dwarf2_const_value_attr): Add DW_FORM_addrx
10572 (dump_die_shallow): Likewise
10573 (dwarf2_fetch_constant_bytes): Likewise
10574 (decode_locdesc): Add DW_OP_addrx
10575 (skip_form_bytes): Add DW_FORM_addrx
10577 2019-04-22 Ali Tamur <tamur@google.com>
10579 * MAINTAINERS (Write After Approval): Add self.
10581 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10583 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10584 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10585 (open_symbol_file_object): Likewise.
10586 (svr4_default_sos): Add info parameter.
10587 (svr4_read_so_list): Likewise.
10588 (svr4_current_sos_direct): Adjust functions calls to pass down
10590 (svr4_current_sos_1): Add info parameter.
10591 (svr4_current_sos): Call get_svr4_info, pass info down to
10592 svr4_current_sos_1.
10593 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10595 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10597 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10599 (probes_table_remove_objfile_probes): Likewise.
10600 (register_solib_event_probe): Add info parameter.
10601 (solist_update_incremental): Pass info parameter down to
10603 (disable_probes_interface): Add info parameter.
10604 (svr4_handle_solib_event): Pass current_program_space to
10605 get_svr4_info. Adjust disable_probes_interface cleanup.
10606 (svr4_create_probe_breakpoints): Add info parameter, pass it
10607 down to register_solib_event_probe.
10608 (svr4_create_solib_event_breakpoints): Add info parameter,
10609 pass it down to svr4_create_probe_breakpoints.
10610 (enable_break): Pass info down to
10611 svr4_create_solib_event_breakpoints.
10612 (svr4_solib_create_inferior_hook): Pass current_program_space to
10614 (svr4_clear_solib): Likewise.
10616 2019-04-22 Pedro Alves <palves@redhat.com>
10618 * solib-svr4.c (svr4_free_objfile_observer): New.
10619 (probe_and_action::objfile): New field.
10620 (probes_table_htab_remove_objfile_probes)
10621 (probes_table_remove_objfile_probes): New functions.
10622 (register_solib_event_probe): Add 'objfile' parameter. Store it
10623 in the new probe_and_action. Don't store the probe in 'lookup'.
10624 (svr4_create_probe_breakpoints): Pass objfile to
10625 register_solib_event_probe.
10626 (_initialize_svr4_solib): Register a free_objfile observer.
10628 2019-04-19 Tom Tromey <tom@tromey.com>
10630 * common/queue.h: Remove.
10632 2019-04-19 Tom Tromey <tom@tromey.com>
10634 * event-loop.c: Don't include "common/queue.h".
10636 2019-04-19 Tom Tromey <tom@tromey.com>
10638 * remote.c (remote_target): Use delete.
10639 * remote-notif.h: Include <list>, not "common/queue.h".
10640 (notif_client_p): Remove typedef.
10641 (remote_notif_state): Add constructor, destructor, initializer.
10642 <notif_queue>: Now a std::list.
10643 (remote_notif_state_xfree): Don't declare.
10644 * remote-notif.c (remote_notif_process, handle_notification)
10645 (remote_notif_state_allocate): Update.
10646 (~remote_notif_state): Rename from remote_notif_state_xfree.
10648 2019-04-19 Tom Tromey <tom@tromey.com>
10650 * symfile.c (reread_symbols): Update.
10651 * objfiles.c (objfile_register_static_link)
10652 (objfile_lookup_static_link): Update
10653 (~objfile) Don't delete static_links.
10654 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10656 2019-04-19 Tom Tromey <tom@tromey.com>
10658 * type-stack.h (struct type_stack) <insert>: Constify string.
10659 * type-stack.c (type_stack::insert): Constify string.
10660 * gdbtypes.h (lookup_template_type): Update.
10661 (address_space_name_to_int): Update.
10662 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10664 (lookup_template_type): Make name const.
10665 * c-exp.y: Update rules.
10666 (lex_one_token, classify_name, classify_inner_name)
10667 (c_print_token): Update.
10668 * p-exp.y: Update rules.
10670 * f-exp.y: Update rules.
10672 * d-exp.y: Update rules.
10673 (lex_one_token, classify_name, classify_inner_name): Update.
10674 * parse.c (write_dollar_variable, copy_name): Return std::string.
10675 * parser-defs.h (copy_name): Change return type.
10676 * m2-exp.y: Update rules.
10678 * go-exp.y (lex_one_token): Update.
10680 (classify_unsafe_function, classify_packaged_name)
10681 (classify_name, yylex): Update.
10683 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10685 * configure.ac: add --enable-source-highlight switch.
10686 * configure: Regenerate.
10687 * top.c (print_gdb_version): plumb --enable-source-highlight
10688 status to "show configuration".
10690 2019-04-19 Tom Tromey <tromey@adacore.com>
10692 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10694 (empty_record, ada_template_to_fixed_record_type_1)
10695 (template_to_static_fixed_type)
10696 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10697 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10698 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10701 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10704 * source.c (print_source_lines_base): Advance "iter" when a
10705 control character is seen.
10707 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10709 * inferior.h (struct infcall_suspend_state_deleter):
10710 Catch exception in destructor to avoid crash.
10712 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10714 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10715 close to the add_com "shell".
10717 2019-04-18 Tom Tromey <tromey@adacore.com>
10719 * process-stratum-target.h (class process_stratum_target)
10720 <stratum>: Add "final".
10722 2019-04-17 Tom Tromey <tromey@adacore.com>
10724 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10725 against nullptr before use.
10727 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10729 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10731 2019-04-17 Jim Wilson <jimw@sifive.com>
10732 Andrew Burgess <andrew.burgess@embecosm.com>
10734 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10735 code read might fail, assume 4-byte breakpoint in that case.
10737 2019-04-15 Leszek Swirski <leszeks@google.com>
10739 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10740 rather than a hand-rolled POD check when checking for forced MEMORY
10743 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10745 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10746 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10748 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10749 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10750 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10753 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10755 * aarch64-linux-nat.c
10756 (aarch64_linux_nat_target::thread_architecture): Add override.
10757 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10760 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10762 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10764 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10766 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10767 target types of size 96-bits, add some additional comments, and
10768 check that the builtin type we found was the correct size.
10770 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10772 * utils.c (prompt_for_continue): Don't restore the styling at the
10773 end, as applied_style has the wrong value. This fixes styling in
10774 long lists of file names that are interrupted by the "Continue?"
10777 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10779 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10780 * c-lang.c (c_language_defn): Likewise.
10781 (cplus_language_defn): Likewise.
10782 (asm_language_defn): Likewise.
10783 (minimal_language_defn): Likewise.
10784 * d-lang.c (d_language_defn): Likewise.
10785 * f-lang.c (f_language_defn): Likewise.
10786 * go-lang.c (go_language_defn): Likewise.
10787 * language.c (unknown_language_defn): Likewise.
10788 (auto_language_defn): Likewise.
10789 * language.h (struct language_defn): Remove la_magic field.
10790 (LANG_MAGIC): Delete.
10791 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10792 * objc-lang.c (objc_language_defn): Likewise.
10793 * opencl-lang.c (opencl_language_defn): Likewise.
10794 * p-lang.c (pascal_language_defn): Likewise.
10795 * rust-lang.c (rust_language_defn): Likewise.
10797 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10799 * riscv-tdep.c (riscv_type_align): New function.
10800 (riscv_type_alignment): Delete.
10801 (riscv_arg_location): Use 'type_align'.
10802 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10804 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10806 * gdbtypes.c (type_align): A struct with no non-static fields also
10807 has alignment of 1.
10809 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10811 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10813 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10815 (riscv_struct_info::analyse): New implementation using new
10816 analyse_inner member function.
10817 (riscv_struct_info::field_offset): New member function.
10818 (riscv_struct_info::m_offsets): New member variable.
10819 (riscv_struct_info::analyse_inner): New private member function,
10820 takes the old implementation of riscv_struct_info::analyse but
10821 extended to track field offsets.
10822 (riscv_call_arg_struct): Update the struct folding special cases
10823 to handle cases where empty C++ structs, which are non-zero
10825 (riscv_arg_location): Initialise the length of each location, a
10826 non-zero length now indicates the location is in use.
10827 (riscv_push_dummy_call): Allow for the first location having a
10828 non-zero offset when setting up arguments.
10829 (riscv_return_value): Likewise, but for return values.
10831 2019-04-11 Tom Tromey <tromey@adacore.com>
10833 * utils.c (internal_vproblem): Make "msg" const.
10835 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10837 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10838 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10839 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10840 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10842 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10844 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10846 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10847 of amd64_collect_native_gregset.
10848 (amd64_linux_nat_target::store_registers): Likewise.
10850 2019-04-10 Tom Tromey <tom@tromey.com>
10852 * symtab.c (lookup_global_symbol_from_objfile)
10853 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10854 * objfiles.h (class separate_debug_iterator): New.
10855 (class separate_debug_range): New.
10856 (struct objfile) <separate_debug_objfiles>: New method.
10857 (objfile_separate_debug_iterate): Don't declare.
10858 * objfiles.c (separate_debug_iterator::operator++): Rename from
10859 objfile_separate_debug_iterate.
10860 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10865 2019-04-10 Tom Tromey <tom@tromey.com>
10867 * symfile.c (reread_symbols): Remove old comment.
10868 * objfiles.c (free_all_objfiles): Fix a typo.
10870 2019-04-10 Tom Tromey <tom@tromey.com>
10872 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10873 * minsyms.c (lookup_minimal_symbol): Use foreach.
10874 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10875 (lookup_minimal_symbol_solib_trampoline): Likewise.
10876 * symfile.c (reread_symbols): Use foreach.
10878 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10879 Tom Tromey <tromey@adacore.com>
10882 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10883 (rust_lex_int_test): Change "value" to be LONGEST.
10884 (rust_lex_tests): Add test for long integer literal.
10886 2019-04-09 Tom Tromey <tromey@adacore.com>
10888 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10890 (extended_remote_target::attach): Update.
10891 (remote_target::remote_notice_new_inferior): Update.
10892 (remote_target::add_current_inferior_and_thread): Update.
10893 * inferior.c (exit_inferior_1): Use "false".
10894 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10896 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10898 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10899 the "start" command.
10901 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10903 * python/py-inferior.c (infpy_thread_from_thread_handle):
10904 Adjust comments to reflect renaming of thread_from_thread_handle
10905 to thread_from_handle. Adjust keywords. Fix type error message.
10906 (inferior_object_methods): Add thread_from_handle. Retain
10907 thread_from_thread_handle, but mark it as deprecated.
10909 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10911 * gdbthread.h (find_thread_by_handle): Revise declaration.
10912 * thread.c (find_thread_by_handle): Likewise. Adjust
10913 implementation too.
10914 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10915 support for buffer objects as handles.
10917 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10919 * python/py-infthread.c (thpy_thread_handle): New function.
10920 (thread_object_methods): Register thpy_thread_handle.
10922 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10924 * gdbthread.h (thread_to_thread_handle): Declare.
10925 * thread.c (gdbtypes.h): Include.
10926 (thread_to_thread_handle): New function.
10928 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10929 (target_thread_info_to_thread_handle): Declare.
10930 * target.c (target_thread_info_to_thread_handle): New function.
10931 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10932 * target-delegates.c: Regenerate.
10934 * linux-thread-db.c (class thread_db_target): Add method
10935 thread_info_to_thread_handle.
10936 (thread_db_target::thread_info_to_thread_handle): Define.
10937 * remote.c (class remote_target): Add new method
10938 thread_info_to_thread_handle.
10939 (remote_target::thread_info_to_thread_handle): Define.
10941 2019-04-08 Pedro Alves <palves@redhat.com>
10943 * common/common-exceptions.c (throw_exception): Don't create
10944 named object to throw; throw directly.
10945 (throw_it): Likewise. Don't initialize gdb_exception::message
10946 here, with new; pass FMT and AP to the ctor instead.
10947 * common/common-exceptions.h: Include <string>.
10948 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10949 const char *, va_list)): New ctor. Use std::make_shared.
10950 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10952 (gdb_exception_error::gdb_exception_error(enum errors, const char
10954 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10956 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10958 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10959 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10962 2019-04-08 Tom Tromey <tom@tromey.com>
10964 * valops.c (value_rtti_indirect_type): Replace throw_exception
10966 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10968 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10970 * target.c (target_translate_tls_address): Replace throw_exception
10972 * stack.c (frame_apply_command_count): Replace throw_exception
10974 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10976 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10978 * rs6000-tdep.c (rs6000_frame_cache)
10979 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10980 * remote.c: Replace throw_exception with throw.
10981 * record-full.c (record_full_message, record_full_wait_1)
10982 (record_full_restore): Replace throw_exception with throw.
10984 (get_thread_current_frame_id, record_btrace_start_replaying)
10985 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10986 (cmd_record_btrace_start): Replace throw_exception with throw.
10987 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10989 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10990 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10992 (find_linespec_symbols): Replace throw_exception with throw.
10993 * infrun.c (displaced_step_prepare, resume): Replace
10994 throw_exception with throw.
10995 * infcmd.c (post_create_inferior): Replace throw_exception with
10997 * inf-loop.c (inferior_event_handler): Replace throw_exception
10999 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11000 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11001 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11002 (get_prev_frame_always, get_frame_pc_if_available)
11003 (get_frame_address_in_block_if_available, get_frame_language):
11004 Replace throw_exception with throw.
11005 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11006 throw_exception with throw.
11007 * eval.c (fetch_subexp_value, evaluate_var_value)
11008 (evaluate_funcall, evaluate_subexp_standard): Replace
11009 throw_exception with throw.
11010 * dwarf2loc.c (call_site_find_chain)
11011 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11012 Replace throw_exception with throw.
11013 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11015 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11017 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11018 * completer.c (complete_line_internal): Replace throw_exception
11020 * compile/compile-object-run.c (compile_object_run): Replace
11021 throw_exception with throw.
11022 * cli/cli-script.c (process_next_line): Replace throw_exception
11024 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11025 (btrace_enable, btrace_maint_update_pt_packets): Replace
11026 throw_exception with throw.
11027 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11028 throw_exception with throw.
11029 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11030 throw_exception with throw.
11031 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11032 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11033 * aarch64-tdep.c (aarch64_make_prologue_cache)
11034 (aarch64_make_stub_cache): Replace throw_exception with throw.
11036 2019-04-08 Tom Tromey <tom@tromey.com>
11038 * common/common-exceptions.c (throw_exception): Rename from
11039 throw_exception_cxx. Remove old copy. Make argument const.
11040 (throw_it): Create and throw exception objects directly.
11041 * common/common-exceptions.h (throw_exception): Make argument
11043 (struct gdb_exception_error): Add constructor.
11044 (struct gdb_exception_quit): Add constructor.
11046 2019-04-08 Tom Tromey <tom@tromey.com>
11048 * common/common-exceptions.h (exception_rethrow): Don't declare.
11049 (TRY_SJLJ): Update comment.
11050 (TRY, CATCH, END_CATCH): Remove.
11051 * common/common-exceptions.c (exception_rethrow): Remove.
11053 2019-04-08 Tom Tromey <tom@tromey.com>
11055 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11057 (gdb_exception_error): Rename from
11058 gdb_exception_RETURN_MASK_ERROR.
11059 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11060 (gdb_quit_bad_alloc): Update.
11061 * aarch64-tdep.c: Update.
11062 * ada-lang.c: Update.
11063 * ada-typeprint.c: Update.
11064 * ada-valprint.c: Update.
11065 * amd64-tdep.c: Update.
11066 * arch-utils.c: Update.
11067 * break-catch-throw.c: Update.
11068 * breakpoint.c: Update.
11069 * btrace.c: Update.
11070 * c-varobj.c: Update.
11071 * cli/cli-cmds.c: Update.
11072 * cli/cli-interp.c: Update.
11073 * cli/cli-script.c: Update.
11074 * common/common-exceptions.c: Update.
11075 * common/new-op.c: Update.
11076 * common/selftest.c: Update.
11077 * compile/compile-c-symbols.c: Update.
11078 * compile/compile-cplus-symbols.c: Update.
11079 * compile/compile-object-load.c: Update.
11080 * compile/compile-object-run.c: Update.
11081 * completer.c: Update.
11082 * corelow.c: Update.
11083 * cp-abi.c: Update.
11084 * cp-support.c: Update.
11085 * cp-valprint.c: Update.
11086 * darwin-nat.c: Update.
11087 * disasm-selftests.c: Update.
11088 * dtrace-probe.c: Update.
11089 * dwarf-index-cache.c: Update.
11090 * dwarf-index-write.c: Update.
11091 * dwarf2-frame-tailcall.c: Update.
11092 * dwarf2-frame.c: Update.
11093 * dwarf2loc.c: Update.
11094 * dwarf2read.c: Update.
11096 * event-loop.c: Update.
11097 * event-top.c: Update.
11099 * f-valprint.c: Update.
11100 * fbsd-tdep.c: Update.
11101 * frame-unwind.c: Update.
11103 * gdbtypes.c: Update.
11104 * gnu-v3-abi.c: Update.
11105 * guile/guile-internal.h: Update.
11106 * guile/scm-block.c: Update.
11107 * guile/scm-breakpoint.c: Update.
11108 * guile/scm-cmd.c: Update.
11109 * guile/scm-disasm.c: Update.
11110 * guile/scm-frame.c: Update.
11111 * guile/scm-lazy-string.c: Update.
11112 * guile/scm-math.c: Update.
11113 * guile/scm-param.c: Update.
11114 * guile/scm-ports.c: Update.
11115 * guile/scm-pretty-print.c: Update.
11116 * guile/scm-symbol.c: Update.
11117 * guile/scm-symtab.c: Update.
11118 * guile/scm-type.c: Update.
11119 * guile/scm-value.c: Update.
11120 * i386-linux-tdep.c: Update.
11121 * i386-tdep.c: Update.
11122 * inf-loop.c: Update.
11123 * infcall.c: Update.
11124 * infcmd.c: Update.
11125 * infrun.c: Update.
11127 * language.c: Update.
11128 * linespec.c: Update.
11129 * linux-fork.c: Update.
11130 * linux-nat.c: Update.
11131 * linux-tdep.c: Update.
11132 * linux-thread-db.c: Update.
11134 * mi/mi-cmd-break.c: Update.
11135 * mi/mi-cmd-stack.c: Update.
11136 * mi/mi-interp.c: Update.
11137 * mi/mi-main.c: Update.
11138 * objc-lang.c: Update.
11139 * p-valprint.c: Update.
11141 * ppc-linux-tdep.c: Update.
11142 * printcmd.c: Update.
11143 * python/py-arch.c: Update.
11144 * python/py-breakpoint.c: Update.
11145 * python/py-cmd.c: Update.
11146 * python/py-finishbreakpoint.c: Update.
11147 * python/py-frame.c: Update.
11148 * python/py-framefilter.c: Update.
11149 * python/py-gdb-readline.c: Update.
11150 * python/py-inferior.c: Update.
11151 * python/py-infthread.c: Update.
11152 * python/py-lazy-string.c: Update.
11153 * python/py-linetable.c: Update.
11154 * python/py-objfile.c: Update.
11155 * python/py-param.c: Update.
11156 * python/py-prettyprint.c: Update.
11157 * python/py-progspace.c: Update.
11158 * python/py-record-btrace.c: Update.
11159 * python/py-record.c: Update.
11160 * python/py-symbol.c: Update.
11161 * python/py-type.c: Update.
11162 * python/py-unwind.c: Update.
11163 * python/py-utils.c: Update.
11164 * python/py-value.c: Update.
11165 * python/python.c: Update.
11166 * record-btrace.c: Update.
11167 * record-full.c: Update.
11168 * remote-fileio.c: Update.
11169 * remote.c: Update.
11170 * riscv-tdep.c: Update.
11171 * rs6000-aix-tdep.c: Update.
11172 * rs6000-tdep.c: Update.
11173 * rust-exp.y: Update.
11174 * rust-lang.c: Update.
11175 * s390-tdep.c: Update.
11176 * selftest-arch.c: Update.
11177 * solib-dsbt.c: Update.
11178 * solib-frv.c: Update.
11179 * solib-spu.c: Update.
11180 * solib-svr4.c: Update.
11182 * sparc64-linux-tdep.c: Update.
11184 * symfile-mem.c: Update.
11185 * symmisc.c: Update.
11186 * target.c: Update.
11187 * thread.c: Update.
11189 * tracefile-tfile.c: Update.
11190 * tui/tui.c: Update.
11191 * typeprint.c: Update.
11192 * unittests/cli-utils-selftests.c: Update.
11193 * unittests/parse-connection-spec-selftests.c: Update.
11194 * valops.c: Update.
11195 * valprint.c: Update.
11197 * varobj.c: Update.
11198 * windows-nat.c: Update.
11199 * x86-linux-nat.c: Update.
11200 * xml-support.c: Update.
11202 2019-04-08 Tom Tromey <tom@tromey.com>
11204 * xml-support.c: Use C++ exception handling.
11205 * x86-linux-nat.c: Use C++ exception handling.
11206 * windows-nat.c: Use C++ exception handling.
11207 * varobj.c: Use C++ exception handling.
11208 * value.c: Use C++ exception handling.
11209 * valprint.c: Use C++ exception handling.
11210 * valops.c: Use C++ exception handling.
11211 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11213 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11214 * typeprint.c: Use C++ exception handling.
11215 * tui/tui.c: Use C++ exception handling.
11216 * tracefile-tfile.c: Use C++ exception handling.
11217 * top.c: Use C++ exception handling.
11218 * thread.c: Use C++ exception handling.
11219 * target.c: Use C++ exception handling.
11220 * symmisc.c: Use C++ exception handling.
11221 * symfile-mem.c: Use C++ exception handling.
11222 * stack.c: Use C++ exception handling.
11223 * sparc64-linux-tdep.c: Use C++ exception handling.
11224 * solib.c: Use C++ exception handling.
11225 * solib-svr4.c: Use C++ exception handling.
11226 * solib-spu.c: Use C++ exception handling.
11227 * solib-frv.c: Use C++ exception handling.
11228 * solib-dsbt.c: Use C++ exception handling.
11229 * selftest-arch.c: Use C++ exception handling.
11230 * s390-tdep.c: Use C++ exception handling.
11231 * rust-lang.c: Use C++ exception handling.
11232 * rust-exp.y: Use C++ exception handling.
11233 * rs6000-tdep.c: Use C++ exception handling.
11234 * rs6000-aix-tdep.c: Use C++ exception handling.
11235 * riscv-tdep.c: Use C++ exception handling.
11236 * remote.c: Use C++ exception handling.
11237 * remote-fileio.c: Use C++ exception handling.
11238 * record-full.c: Use C++ exception handling.
11239 * record-btrace.c: Use C++ exception handling.
11240 * python/python.c: Use C++ exception handling.
11241 * python/py-value.c: Use C++ exception handling.
11242 * python/py-utils.c: Use C++ exception handling.
11243 * python/py-unwind.c: Use C++ exception handling.
11244 * python/py-type.c: Use C++ exception handling.
11245 * python/py-symbol.c: Use C++ exception handling.
11246 * python/py-record.c: Use C++ exception handling.
11247 * python/py-record-btrace.c: Use C++ exception handling.
11248 * python/py-progspace.c: Use C++ exception handling.
11249 * python/py-prettyprint.c: Use C++ exception handling.
11250 * python/py-param.c: Use C++ exception handling.
11251 * python/py-objfile.c: Use C++ exception handling.
11252 * python/py-linetable.c: Use C++ exception handling.
11253 * python/py-lazy-string.c: Use C++ exception handling.
11254 * python/py-infthread.c: Use C++ exception handling.
11255 * python/py-inferior.c: Use C++ exception handling.
11256 * python/py-gdb-readline.c: Use C++ exception handling.
11257 * python/py-framefilter.c: Use C++ exception handling.
11258 * python/py-frame.c: Use C++ exception handling.
11259 * python/py-finishbreakpoint.c: Use C++ exception handling.
11260 * python/py-cmd.c: Use C++ exception handling.
11261 * python/py-breakpoint.c: Use C++ exception handling.
11262 * python/py-arch.c: Use C++ exception handling.
11263 * printcmd.c: Use C++ exception handling.
11264 * ppc-linux-tdep.c: Use C++ exception handling.
11265 * parse.c: Use C++ exception handling.
11266 * p-valprint.c: Use C++ exception handling.
11267 * objc-lang.c: Use C++ exception handling.
11268 * mi/mi-main.c: Use C++ exception handling.
11269 * mi/mi-interp.c: Use C++ exception handling.
11270 * mi/mi-cmd-stack.c: Use C++ exception handling.
11271 * mi/mi-cmd-break.c: Use C++ exception handling.
11272 * main.c: Use C++ exception handling.
11273 * linux-thread-db.c: Use C++ exception handling.
11274 * linux-tdep.c: Use C++ exception handling.
11275 * linux-nat.c: Use C++ exception handling.
11276 * linux-fork.c: Use C++ exception handling.
11277 * linespec.c: Use C++ exception handling.
11278 * language.c: Use C++ exception handling.
11279 * jit.c: Use C++ exception handling.
11280 * infrun.c: Use C++ exception handling.
11281 * infcmd.c: Use C++ exception handling.
11282 * infcall.c: Use C++ exception handling.
11283 * inf-loop.c: Use C++ exception handling.
11284 * i386-tdep.c: Use C++ exception handling.
11285 * i386-linux-tdep.c: Use C++ exception handling.
11286 * guile/scm-value.c: Use C++ exception handling.
11287 * guile/scm-type.c: Use C++ exception handling.
11288 * guile/scm-symtab.c: Use C++ exception handling.
11289 * guile/scm-symbol.c: Use C++ exception handling.
11290 * guile/scm-pretty-print.c: Use C++ exception handling.
11291 * guile/scm-ports.c: Use C++ exception handling.
11292 * guile/scm-param.c: Use C++ exception handling.
11293 * guile/scm-math.c: Use C++ exception handling.
11294 * guile/scm-lazy-string.c: Use C++ exception handling.
11295 * guile/scm-frame.c: Use C++ exception handling.
11296 * guile/scm-disasm.c: Use C++ exception handling.
11297 * guile/scm-cmd.c: Use C++ exception handling.
11298 * guile/scm-breakpoint.c: Use C++ exception handling.
11299 * guile/scm-block.c: Use C++ exception handling.
11300 * guile/guile-internal.h: Use C++ exception handling.
11301 * gnu-v3-abi.c: Use C++ exception handling.
11302 * gdbtypes.c: Use C++ exception handling.
11303 * frame.c: Use C++ exception handling.
11304 * frame-unwind.c: Use C++ exception handling.
11305 * fbsd-tdep.c: Use C++ exception handling.
11306 * f-valprint.c: Use C++ exception handling.
11307 * exec.c: Use C++ exception handling.
11308 * event-top.c: Use C++ exception handling.
11309 * event-loop.c: Use C++ exception handling.
11310 * eval.c: Use C++ exception handling.
11311 * dwarf2read.c: Use C++ exception handling.
11312 * dwarf2loc.c: Use C++ exception handling.
11313 * dwarf2-frame.c: Use C++ exception handling.
11314 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11315 * dwarf-index-write.c: Use C++ exception handling.
11316 * dwarf-index-cache.c: Use C++ exception handling.
11317 * dtrace-probe.c: Use C++ exception handling.
11318 * disasm-selftests.c: Use C++ exception handling.
11319 * darwin-nat.c: Use C++ exception handling.
11320 * cp-valprint.c: Use C++ exception handling.
11321 * cp-support.c: Use C++ exception handling.
11322 * cp-abi.c: Use C++ exception handling.
11323 * corelow.c: Use C++ exception handling.
11324 * completer.c: Use C++ exception handling.
11325 * compile/compile-object-run.c: Use C++ exception handling.
11326 * compile/compile-object-load.c: Use C++ exception handling.
11327 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11328 * compile/compile-c-symbols.c: Use C++ exception handling.
11329 * common/selftest.c: Use C++ exception handling.
11330 * common/new-op.c: Use C++ exception handling.
11331 * cli/cli-script.c: Use C++ exception handling.
11332 * cli/cli-interp.c: Use C++ exception handling.
11333 * cli/cli-cmds.c: Use C++ exception handling.
11334 * c-varobj.c: Use C++ exception handling.
11335 * btrace.c: Use C++ exception handling.
11336 * breakpoint.c: Use C++ exception handling.
11337 * break-catch-throw.c: Use C++ exception handling.
11338 * arch-utils.c: Use C++ exception handling.
11339 * amd64-tdep.c: Use C++ exception handling.
11340 * ada-valprint.c: Use C++ exception handling.
11341 * ada-typeprint.c: Use C++ exception handling.
11342 * ada-lang.c: Use C++ exception handling.
11343 * aarch64-tdep.c: Use C++ exception handling.
11345 2019-04-08 Tom Tromey <tom@tromey.com>
11347 * xml-support.c (gdb_xml_parser::parse): Update.
11348 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11349 * value.c (show_convenience): Update.
11350 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11351 (test_parse_flags_qcs): Update.
11352 * thread.c (thr_try_catch_cmd): Update.
11353 * target.c (target_translate_tls_address): Update.
11354 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11355 (info_frame_command_core, frame_apply_command_count): Update.
11356 * rust-exp.y (rust_lex_exception_test): Update.
11357 * riscv-tdep.c (riscv_print_one_register_info): Update.
11358 * remote.c (remote_target::enable_btrace): Update.
11359 * record-btrace.c (record_btrace_enable_warn): Update.
11360 * python/py-utils.c (gdbpy_convert_exception): Update.
11361 * printcmd.c (do_one_display, print_variable_and_value): Update.
11362 * mi/mi-main.c (mi_print_exception): Update.
11363 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11364 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11365 * linux-nat.c (linux_nat_target::attach): Update.
11366 * linux-fork.c (class scoped_switch_fork_info): Update.
11367 * infrun.c (displaced_step_prepare): Update.
11368 * infcall.c (call_function_by_hand_dummy): Update.
11369 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11370 * gnu-v3-abi.c (print_one_vtable): Update.
11371 * frame.c (get_prev_frame_always): Update.
11372 * f-valprint.c (info_common_command_for_block): Update.
11373 * exec.c (try_open_exec_file): Update.
11374 * exceptions.c (print_exception, exception_print)
11375 (exception_fprintf, exception_print_same): Update.
11376 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11377 * dwarf-index-cache.c (index_cache::store)
11378 (index_cache::lookup_gdb_index): Update.
11379 * darwin-nat.c (maybe_cache_shell): Update.
11380 * cp-valprint.c (cp_print_value_fields): Update.
11381 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11382 (gcc_cplus_symbol_address): Update.
11383 * compile/compile-c-symbols.c (gcc_convert_symbol)
11384 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11385 * common/selftest.c: Update.
11386 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11388 (exception_try_scope_entry, exception_try_scope_exit): Don't
11390 (struct exception_try_scope): Remove.
11391 (TRY): Don't use exception_try_scope.
11392 (struct gdb_exception): Add constructor, operator=.
11393 <what>: New method.
11394 (struct gdb_exception_RETURN_MASK_ALL)
11395 (struct gdb_exception_RETURN_MASK_ERROR)
11396 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11397 (struct gdb_quit_bad_alloc): Update.
11398 * common/common-exceptions.c (exception_none): Change
11400 (struct catcher) <state, exception>: Initialize inline.
11401 <prev>: Remove member.
11402 (current_catcher): Remove.
11403 (catchers): New global.
11404 (exceptions_state_mc_init): Simplify.
11405 (catcher_pop): Remove.
11406 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11407 (try_scope_depth, exception_try_scope_entry)
11408 (exception_try_scope_exit): Remove.
11409 (throw_exception_sjlj): Update.
11410 (exception_messages, exception_messages_size): Remove.
11411 (throw_it): Simplify.
11412 (gdb_exception_sliced_copy): Remove.
11413 (throw_exception_cxx): Update.
11414 * cli/cli-script.c (script_from_file): Update.
11415 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11417 * ada-valprint.c (ada_val_print): Update.
11418 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11419 (create_excep_cond_exprs): Update.
11421 2019-04-08 Tom Tromey <tom@tromey.com>
11423 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11424 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11425 (TRY, CATCH, END_CATCH): Remove some definitions.
11426 * common/common-exceptions.c: Don't use GDB_XCPT.
11427 (catcher_list_size): Remove.
11428 (throw_exception, throw_it): Simplify.
11430 2019-04-05 Tom Tromey <tom@tromey.com>
11432 Revert the header-sorting patch.
11433 * ft32-tdep.c: Revert.
11434 * frv-tdep.c: Revert.
11435 * frv-linux-tdep.c: Revert.
11437 * frame-unwind.c: Revert.
11438 * frame-base.c: Revert.
11439 * fork-child.c: Revert.
11440 * findvar.c: Revert.
11441 * findcmd.c: Revert.
11442 * filesystem.c: Revert.
11443 * filename-seen-cache.h: Revert.
11444 * filename-seen-cache.c: Revert.
11445 * fbsd-tdep.c: Revert.
11446 * fbsd-nat.h: Revert.
11447 * fbsd-nat.c: Revert.
11448 * f-valprint.c: Revert.
11449 * f-typeprint.c: Revert.
11450 * f-lang.c: Revert.
11451 * extension.h: Revert.
11452 * extension.c: Revert.
11453 * extension-priv.h: Revert.
11454 * expprint.c: Revert.
11457 * exceptions.c: Revert.
11458 * event-top.c: Revert.
11459 * event-loop.c: Revert.
11461 * elfread.c: Revert.
11462 * dwarf2read.h: Revert.
11463 * dwarf2read.c: Revert.
11464 * dwarf2loc.c: Revert.
11465 * dwarf2expr.h: Revert.
11466 * dwarf2expr.c: Revert.
11467 * dwarf2-frame.c: Revert.
11468 * dwarf2-frame-tailcall.c: Revert.
11469 * dwarf-index-write.h: Revert.
11470 * dwarf-index-write.c: Revert.
11471 * dwarf-index-common.c: Revert.
11472 * dwarf-index-cache.h: Revert.
11473 * dwarf-index-cache.c: Revert.
11474 * dummy-frame.c: Revert.
11475 * dtrace-probe.c: Revert.
11476 * disasm.h: Revert.
11477 * disasm.c: Revert.
11478 * disasm-selftests.c: Revert.
11479 * dictionary.c: Revert.
11480 * dicos-tdep.c: Revert.
11481 * demangle.c: Revert.
11482 * dcache.h: Revert.
11483 * dcache.c: Revert.
11484 * darwin-nat.h: Revert.
11485 * darwin-nat.c: Revert.
11486 * darwin-nat-info.c: Revert.
11487 * d-valprint.c: Revert.
11488 * d-namespace.c: Revert.
11489 * d-lang.c: Revert.
11491 * csky-tdep.c: Revert.
11492 * csky-linux-tdep.c: Revert.
11493 * cris-tdep.c: Revert.
11494 * cris-linux-tdep.c: Revert.
11495 * cp-valprint.c: Revert.
11496 * cp-support.c: Revert.
11497 * cp-namespace.c: Revert.
11498 * cp-abi.c: Revert.
11499 * corelow.c: Revert.
11500 * corefile.c: Revert.
11501 * continuations.c: Revert.
11502 * completer.h: Revert.
11503 * completer.c: Revert.
11504 * complaints.c: Revert.
11505 * coffread.c: Revert.
11506 * coff-pe-read.c: Revert.
11507 * cli-out.h: Revert.
11508 * cli-out.c: Revert.
11509 * charset.c: Revert.
11510 * c-varobj.c: Revert.
11511 * c-valprint.c: Revert.
11512 * c-typeprint.c: Revert.
11513 * c-lang.c: Revert.
11514 * buildsym.c: Revert.
11515 * buildsym-legacy.c: Revert.
11516 * build-id.h: Revert.
11517 * build-id.c: Revert.
11518 * btrace.c: Revert.
11519 * bsd-uthread.c: Revert.
11520 * breakpoint.h: Revert.
11521 * breakpoint.c: Revert.
11522 * break-catch-throw.c: Revert.
11523 * break-catch-syscall.c: Revert.
11524 * break-catch-sig.c: Revert.
11525 * blockframe.c: Revert.
11527 * bfin-tdep.c: Revert.
11528 * bfin-linux-tdep.c: Revert.
11529 * bfd-target.c: Revert.
11530 * bcache.c: Revert.
11531 * ax-general.c: Revert.
11532 * ax-gdb.h: Revert.
11533 * ax-gdb.c: Revert.
11534 * avr-tdep.c: Revert.
11536 * auto-load.c: Revert.
11537 * arm-wince-tdep.c: Revert.
11538 * arm-tdep.c: Revert.
11539 * arm-symbian-tdep.c: Revert.
11540 * arm-pikeos-tdep.c: Revert.
11541 * arm-obsd-tdep.c: Revert.
11542 * arm-nbsd-tdep.c: Revert.
11543 * arm-nbsd-nat.c: Revert.
11544 * arm-linux-tdep.c: Revert.
11545 * arm-linux-nat.c: Revert.
11546 * arm-fbsd-tdep.c: Revert.
11547 * arm-fbsd-nat.c: Revert.
11548 * arm-bsd-tdep.c: Revert.
11549 * arch-utils.c: Revert.
11550 * arc-tdep.c: Revert.
11551 * arc-newlib-tdep.c: Revert.
11552 * annotate.h: Revert.
11553 * annotate.c: Revert.
11554 * amd64-windows-tdep.c: Revert.
11555 * amd64-windows-nat.c: Revert.
11556 * amd64-tdep.c: Revert.
11557 * amd64-sol2-tdep.c: Revert.
11558 * amd64-obsd-tdep.c: Revert.
11559 * amd64-obsd-nat.c: Revert.
11560 * amd64-nbsd-tdep.c: Revert.
11561 * amd64-nbsd-nat.c: Revert.
11562 * amd64-nat.c: Revert.
11563 * amd64-linux-tdep.c: Revert.
11564 * amd64-linux-nat.c: Revert.
11565 * amd64-fbsd-tdep.c: Revert.
11566 * amd64-fbsd-nat.c: Revert.
11567 * amd64-dicos-tdep.c: Revert.
11568 * amd64-darwin-tdep.c: Revert.
11569 * amd64-bsd-nat.c: Revert.
11570 * alpha-tdep.c: Revert.
11571 * alpha-obsd-tdep.c: Revert.
11572 * alpha-nbsd-tdep.c: Revert.
11573 * alpha-mdebug-tdep.c: Revert.
11574 * alpha-linux-tdep.c: Revert.
11575 * alpha-linux-nat.c: Revert.
11576 * alpha-bsd-tdep.c: Revert.
11577 * alpha-bsd-nat.c: Revert.
11578 * aix-thread.c: Revert.
11580 * addrmap.c: Revert.
11581 * ada-varobj.c: Revert.
11582 * ada-valprint.c: Revert.
11583 * ada-typeprint.c: Revert.
11584 * ada-tasks.c: Revert.
11585 * ada-lang.c: Revert.
11586 * aarch64-tdep.c: Revert.
11587 * aarch64-ravenscar-thread.c: Revert.
11588 * aarch64-newlib-tdep.c: Revert.
11589 * aarch64-linux-tdep.c: Revert.
11590 * aarch64-linux-nat.c: Revert.
11591 * aarch64-fbsd-tdep.c: Revert.
11592 * aarch64-fbsd-nat.c: Revert.
11593 * aarch32-linux-nat.c: Revert.
11595 2019-04-05 Tom Tromey <tom@tromey.com>
11597 * ft32-tdep.c: Sort headers.
11598 * frv-tdep.c: Sort headers.
11599 * frv-linux-tdep.c: Sort headers.
11600 * frame.c: Sort headers.
11601 * frame-unwind.c: Sort headers.
11602 * frame-base.c: Sort headers.
11603 * fork-child.c: Sort headers.
11604 * findvar.c: Sort headers.
11605 * findcmd.c: Sort headers.
11606 * filesystem.c: Sort headers.
11607 * filename-seen-cache.h: Sort headers.
11608 * filename-seen-cache.c: Sort headers.
11609 * fbsd-tdep.c: Sort headers.
11610 * fbsd-nat.h: Sort headers.
11611 * fbsd-nat.c: Sort headers.
11612 * f-valprint.c: Sort headers.
11613 * f-typeprint.c: Sort headers.
11614 * f-lang.c: Sort headers.
11615 * extension.h: Sort headers.
11616 * extension.c: Sort headers.
11617 * extension-priv.h: Sort headers.
11618 * expprint.c: Sort headers.
11619 * exec.h: Sort headers.
11620 * exec.c: Sort headers.
11621 * exceptions.c: Sort headers.
11622 * event-top.c: Sort headers.
11623 * event-loop.c: Sort headers.
11624 * eval.c: Sort headers.
11625 * elfread.c: Sort headers.
11626 * dwarf2read.h: Sort headers.
11627 * dwarf2read.c: Sort headers.
11628 * dwarf2loc.c: Sort headers.
11629 * dwarf2expr.h: Sort headers.
11630 * dwarf2expr.c: Sort headers.
11631 * dwarf2-frame.c: Sort headers.
11632 * dwarf2-frame-tailcall.c: Sort headers.
11633 * dwarf-index-write.h: Sort headers.
11634 * dwarf-index-write.c: Sort headers.
11635 * dwarf-index-common.c: Sort headers.
11636 * dwarf-index-cache.h: Sort headers.
11637 * dwarf-index-cache.c: Sort headers.
11638 * dummy-frame.c: Sort headers.
11639 * dtrace-probe.c: Sort headers.
11640 * disasm.h: Sort headers.
11641 * disasm.c: Sort headers.
11642 * disasm-selftests.c: Sort headers.
11643 * dictionary.c: Sort headers.
11644 * dicos-tdep.c: Sort headers.
11645 * demangle.c: Sort headers.
11646 * dcache.h: Sort headers.
11647 * dcache.c: Sort headers.
11648 * darwin-nat.h: Sort headers.
11649 * darwin-nat.c: Sort headers.
11650 * darwin-nat-info.c: Sort headers.
11651 * d-valprint.c: Sort headers.
11652 * d-namespace.c: Sort headers.
11653 * d-lang.c: Sort headers.
11654 * ctf.c: Sort headers.
11655 * csky-tdep.c: Sort headers.
11656 * csky-linux-tdep.c: Sort headers.
11657 * cris-tdep.c: Sort headers.
11658 * cris-linux-tdep.c: Sort headers.
11659 * cp-valprint.c: Sort headers.
11660 * cp-support.c: Sort headers.
11661 * cp-namespace.c: Sort headers.
11662 * cp-abi.c: Sort headers.
11663 * corelow.c: Sort headers.
11664 * corefile.c: Sort headers.
11665 * continuations.c: Sort headers.
11666 * completer.h: Sort headers.
11667 * completer.c: Sort headers.
11668 * complaints.c: Sort headers.
11669 * coffread.c: Sort headers.
11670 * coff-pe-read.c: Sort headers.
11671 * cli-out.h: Sort headers.
11672 * cli-out.c: Sort headers.
11673 * charset.c: Sort headers.
11674 * c-varobj.c: Sort headers.
11675 * c-valprint.c: Sort headers.
11676 * c-typeprint.c: Sort headers.
11677 * c-lang.c: Sort headers.
11678 * buildsym.c: Sort headers.
11679 * buildsym-legacy.c: Sort headers.
11680 * build-id.h: Sort headers.
11681 * build-id.c: Sort headers.
11682 * btrace.c: Sort headers.
11683 * bsd-uthread.c: Sort headers.
11684 * breakpoint.h: Sort headers.
11685 * breakpoint.c: Sort headers.
11686 * break-catch-throw.c: Sort headers.
11687 * break-catch-syscall.c: Sort headers.
11688 * break-catch-sig.c: Sort headers.
11689 * blockframe.c: Sort headers.
11690 * block.c: Sort headers.
11691 * bfin-tdep.c: Sort headers.
11692 * bfin-linux-tdep.c: Sort headers.
11693 * bfd-target.c: Sort headers.
11694 * bcache.c: Sort headers.
11695 * ax-general.c: Sort headers.
11696 * ax-gdb.h: Sort headers.
11697 * ax-gdb.c: Sort headers.
11698 * avr-tdep.c: Sort headers.
11699 * auxv.c: Sort headers.
11700 * auto-load.c: Sort headers.
11701 * arm-wince-tdep.c: Sort headers.
11702 * arm-tdep.c: Sort headers.
11703 * arm-symbian-tdep.c: Sort headers.
11704 * arm-pikeos-tdep.c: Sort headers.
11705 * arm-obsd-tdep.c: Sort headers.
11706 * arm-nbsd-tdep.c: Sort headers.
11707 * arm-nbsd-nat.c: Sort headers.
11708 * arm-linux-tdep.c: Sort headers.
11709 * arm-linux-nat.c: Sort headers.
11710 * arm-fbsd-tdep.c: Sort headers.
11711 * arm-fbsd-nat.c: Sort headers.
11712 * arm-bsd-tdep.c: Sort headers.
11713 * arch-utils.c: Sort headers.
11714 * arc-tdep.c: Sort headers.
11715 * arc-newlib-tdep.c: Sort headers.
11716 * annotate.h: Sort headers.
11717 * annotate.c: Sort headers.
11718 * amd64-windows-tdep.c: Sort headers.
11719 * amd64-windows-nat.c: Sort headers.
11720 * amd64-tdep.c: Sort headers.
11721 * amd64-sol2-tdep.c: Sort headers.
11722 * amd64-obsd-tdep.c: Sort headers.
11723 * amd64-obsd-nat.c: Sort headers.
11724 * amd64-nbsd-tdep.c: Sort headers.
11725 * amd64-nbsd-nat.c: Sort headers.
11726 * amd64-nat.c: Sort headers.
11727 * amd64-linux-tdep.c: Sort headers.
11728 * amd64-linux-nat.c: Sort headers.
11729 * amd64-fbsd-tdep.c: Sort headers.
11730 * amd64-fbsd-nat.c: Sort headers.
11731 * amd64-dicos-tdep.c: Sort headers.
11732 * amd64-darwin-tdep.c: Sort headers.
11733 * amd64-bsd-nat.c: Sort headers.
11734 * alpha-tdep.c: Sort headers.
11735 * alpha-obsd-tdep.c: Sort headers.
11736 * alpha-nbsd-tdep.c: Sort headers.
11737 * alpha-mdebug-tdep.c: Sort headers.
11738 * alpha-linux-tdep.c: Sort headers.
11739 * alpha-linux-nat.c: Sort headers.
11740 * alpha-bsd-tdep.c: Sort headers.
11741 * alpha-bsd-nat.c: Sort headers.
11742 * aix-thread.c: Sort headers.
11743 * agent.c: Sort headers.
11744 * addrmap.c: Sort headers.
11745 * ada-varobj.c: Sort headers.
11746 * ada-valprint.c: Sort headers.
11747 * ada-typeprint.c: Sort headers.
11748 * ada-tasks.c: Sort headers.
11749 * ada-lang.c: Sort headers.
11750 * aarch64-tdep.c: Sort headers.
11751 * aarch64-ravenscar-thread.c: Sort headers.
11752 * aarch64-newlib-tdep.c: Sort headers.
11753 * aarch64-linux-tdep.c: Sort headers.
11754 * aarch64-linux-nat.c: Sort headers.
11755 * aarch64-fbsd-tdep.c: Sort headers.
11756 * aarch64-fbsd-nat.c: Sort headers.
11757 * aarch32-linux-nat.c: Sort headers.
11759 2019-04-04 Tom Tromey <tom@tromey.com>
11761 * varobj.c (varobj_create): Update.
11762 * rust-exp.y (struct rust_parser) <update_innermost_block,
11763 lookup_symbol>: New methods.
11764 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11766 (rust_parser::rust_lookup_type)
11767 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11768 * printcmd.c (display_command, do_one_display): Update.
11769 * parser-defs.h (struct parser_state) <parser_state>: Add
11770 "tracker" parameter.
11771 (block_tracker): New member.
11772 (class innermost_block_tracker) <innermost_block_tracker>: Add
11774 <reset>: Remove method.
11775 (innermost_block): Don't declare.
11776 (null_post_parser): Update.
11777 * parse.c (innermost_block): Remove global.
11778 (write_dollar_variable): Update.
11779 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11780 Remove "tracker_types" parameter.
11781 (parse_expression): Add "tracker" parameter.
11782 (parse_expression_for_completion): Update.
11783 (null_post_parser): Add "tracker" parameter.
11784 * p-exp.y: Update rules.
11785 * m2-exp.y: Update rules.
11786 * language.h (struct language_defn) <la_post_parser>: Add
11787 "tracker" parameter.
11788 * go-exp.y: Update rules.
11789 * f-exp.y: Update rules.
11790 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11792 * d-exp.y: Update rules.
11793 * c-exp.y: Update rules.
11794 * breakpoint.c (set_breakpoint_condition): Create an
11795 innermost_block_tracker.
11796 (watch_command_1): Likewise.
11797 * ada-lang.c (resolve): Add "tracker" parameter.
11798 (resolve_subexp): Likewise.
11799 * ada-exp.y (write_var_from_sym): Update.
11801 2019-04-04 Tom Tromey <tom@tromey.com>
11803 * type-stack.h: New file.
11804 * type-stack.c: New file.
11805 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11807 (insert_into_type_stack, insert_type, push_type, push_type_int)
11808 (insert_type_address_space, pop_type, pop_type_int)
11809 (pop_typelist, pop_type_stack, append_type_stack)
11810 (push_type_stack, get_type_stack, push_typelist)
11811 (follow_type_instance_flags, follow_types): Don't declare.
11812 * parse.c (type_stack): Remove global.
11813 (parse_exp_in_context): Update.
11814 (insert_into_type_stack, insert_type, push_type, push_type_int)
11815 (insert_type_address_space, pop_type, pop_type_int)
11816 (pop_typelist, pop_type_stack, append_type_stack)
11817 (push_type_stack, get_type_stack, push_typelist)
11818 (follow_type_instance_flags, follow_types): Remove (moved to
11820 * f-exp.y (type_stack): New global.
11822 (push_kind_type, f_parse): Update.
11823 * d-exp.y (type_stack): New global.
11826 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11828 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11829 (HFILES_NO_SRCDIR): Add type-stack.h.
11831 2019-04-04 Tom Tromey <tom@tromey.com>
11833 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11834 (rust_parser::convert_ast_to_expression, rust_parse)
11835 (rust_lex_test_completion, rust_lex_tests): Update.
11836 * parser-defs.h (struct expr_completion_state): New.
11837 (struct parser_state) <parser_state>: Add completion parameter.
11838 <mark_struct_expression, mark_completion_tag>: New methods.
11839 <parse_completion, m_completion_state>: New members.
11840 (prefixify_expression, null_post_parser): Update.
11841 (mark_struct_expression, mark_completion_tag): Don't declare.
11842 * parse.c (parse_completion, expout_last_struct)
11843 (expout_tag_completion_type, expout_completion_name): Remove
11845 (parser_state::mark_struct_expression)
11846 (parser_state::mark_completion_tag): Now methods.
11847 (prefixify_expression): Add last_struct parameter.
11848 (prefixify_subexp): Likewise.
11849 (parse_exp_1): Update.
11850 (parse_exp_in_context): Add cstate parameter. Update.
11851 (parse_expression_for_completion): Create an
11852 expr_completion_state.
11853 (null_post_parser): Add "completion" parameter.
11854 * p-exp.y: Update rules.
11856 * language.h (struct language_defn) <la_post_parser>: Add
11857 "completing" parameter.
11858 * go-exp.y: Update rules.
11859 (lex_one_token): Update.
11860 * expression.h (parse_completion): Don't declare.
11861 * d-exp.y: Update rules.
11862 (lex_one_token): Update rules.
11863 * c-exp.y: Update rules.
11864 (lex_one_token): Update.
11865 * ada-lang.c (resolve): Add "parse_completion" parameter.
11866 (resolve_subexp): Likewise.
11867 (ada_resolve_function): Likewise.
11869 2019-04-04 Tom Tromey <tom@tromey.com>
11871 * parser-defs.h (struct parser_state) <start_arglist,
11872 end_arglist>: New methods.
11873 <arglist_len, m_funcall_chain>: New members.
11874 (arglist_len, start_arglist, end_arglist): Don't declare.
11875 * parse.c (arglist_len, funcall_chain): Remove global.
11876 (start_arglist, end_arglist): Remove functions.
11877 (parse_exp_in_context): Update.
11878 * p-exp.y: Update rules.
11879 * m2-exp.y: Update rules.
11880 * go-exp.y: Update rules.
11881 * f-exp.y: Update rules.
11882 * d-exp.y: Update rules.
11883 * c-exp.y: Update rules.
11885 2019-04-04 Tom Tromey <tom@tromey.com>
11887 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11888 lex_operator, push_back>: New methods.
11890 (rust_parser::lex_hex, lex_escape): Rename and update.
11891 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11892 (rust_parser::lex_operator): Rename and update.
11893 (rust_parser::lex_number, rustyylex, rustyyerror)
11894 (rust_lex_test_init, rust_lex_test_sequence)
11895 (rust_lex_test_push_back, rust_lex_tests): Update.
11896 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11898 <lexptr, prev_lexptr>: New members.
11899 (lexptr, prev_lexptr): Don't declare.
11900 * parse.c (lexptr, prev_lexptr): Remove globals.
11901 (parse_exp_in_context): Update.
11902 * p-exp.y (yylex, yyerror): Update.
11903 * m2-exp.y (parse_number, yylex, yyerror): Update.
11904 * go-exp.y (lex_one_token, yyerror): Update.
11905 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11906 * d-exp.y (lex_one_token, yyerror): Update.
11907 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11908 (lex_one_token, yyerror): Update.
11909 * ada-lex.l (YY_INPUT): Update.
11910 (rewind_to_char): Update.
11911 * ada-exp.y (yyerror): Update.
11913 2019-04-04 Tom Tromey <tom@tromey.com>
11915 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11916 * parser-defs.h (struct parser_state) <parser_state>: Add new
11918 <comma_terminates>: New member.
11919 (comma_terminates): Don't declare global.
11920 * parse.c (comma_terminates): Remove global.
11921 (parse_exp_in_context): Update.
11922 * p-exp.y (yylex): Update.
11923 * m2-exp.y (yylex): Update.
11924 * go-exp.y (lex_one_token): Update.
11925 * f-exp.y (yylex): Update.
11926 * d-exp.y (lex_one_token): Update.
11927 * c-exp.y (lex_one_token): Update.
11928 * ada-lex.l: Update.
11930 2019-04-04 Tom Tromey <tom@tromey.com>
11932 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11933 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11934 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11935 * parser-defs.h (paren_depth): Don't declare.
11936 * parse.c (paren_depth): Remove global.
11937 (parse_exp_in_context): Update.
11938 * p-exp.y (paren_depth): New global.
11939 (pascal_parse): Initialize it.
11940 * m2-exp.y (paren_depth): New global.
11941 (m2_parse): Initialize it.
11942 * go-exp.y (paren_depth): New global.
11943 (go_parse): Initialize it.
11944 * f-exp.y (paren_depth): New global.
11945 (f_parse): Initialize it.
11946 * d-exp.y (paren_depth): New global.
11947 (d_parse): Initialize it.
11948 * c-exp.y (paren_depth): New global.
11949 (c_parse): Initialize it.
11950 * ada-lex.l (paren_depth): New global.
11951 (lexer_init): Initialize it.
11953 2019-04-04 Tom Tromey <tom@tromey.com>
11955 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11956 (rust_parser::convert_ast_to_type)
11957 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11958 * parser-defs.h (struct parser_state) <parser_state>: Add
11959 parameters. Initialize new members.
11960 <expression_context_block, expression_context_pc>: New members.
11961 * parse.c (expression_context_block, expression_context_pc):
11963 (parse_exp_in_context): Update.
11964 * p-exp.y: Update all rules.
11966 * m2-exp.y: Update all rules.
11968 * go-exp.y (yylex): Update.
11969 * f-exp.y (yylex): Update.
11970 * d-exp.y: Update all rules.
11972 * c-exp.y: Update all rules.
11973 (lex_one_token, classify_name, yylex, c_parse): Update.
11974 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11976 2019-04-04 Tom Tromey <tom@tromey.com>
11978 * gdbarch.h, gdbarch.c: Rebuild.
11979 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11981 (struct stap_parse_info): Replace "parser_state" with
11983 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11984 (parser_state): New class.
11985 * parse.c (expr_builder): Rename.
11986 (expr_builder::release): Rename.
11987 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11988 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11989 (write_exp_elt_longcst, write_exp_elt_floatcst)
11990 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11991 (write_exp_string_vector, write_exp_bitstring)
11992 (write_exp_msymbol, mark_struct_expression)
11993 (write_dollar_variable)
11994 (insert_type_address_space, increase_expout_size): Replace
11995 "parser_state" with "expr_builder".
11996 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11997 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11998 "parser_state" with "expr_builder".
12000 2019-04-04 Tom Tromey <tom@tromey.com>
12002 * rust-exp.y: Replace "parse_language" with method call.
12004 (yylex): Replace "parse_language" with method call.
12006 (yylex): Replace "parse_language" with method call.
12007 * go-exp.y (classify_name): Replace "parse_language" with method
12009 * f-exp.y (yylex): Replace "parse_language" with method call.
12010 * d-exp.y (lex_one_token): Replace "parse_language" with method
12013 (lex_one_token, classify_name, yylex): Replace "parse_language"
12015 * ada-exp.y (find_primitive_type, type_char)
12016 (type_system_address): Replace "parse_language" with method call.
12018 2019-04-04 Tom Tromey <tom@tromey.com>
12020 * rust-exp.y: Replace "parse_gdbarch" with method call.
12021 * parse.c (write_dollar_variable, insert_type_address_space):
12022 Replace "parse_gdbarch" with method call.
12023 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12025 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12027 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12028 "parse_gdbarch" with method call.
12029 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12031 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12032 "parse_gdbarch" with method call.
12033 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12034 "parse_gdbarch" with method call.
12035 * c-exp.y (parse_type, parse_number, classify_name): Replace
12036 "parse_gdbarch" with method call.
12037 * ada-lex.l: Replace "parse_gdbarch" with method call.
12038 * ada-exp.y (parse_type, find_primitive_type, type_char)
12039 (type_system_address): Replace "parse_gdbarch" with method call.
12041 2019-04-04 Tom Tromey <tom@tromey.com>
12043 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12044 * stap-probe.c (stap_parse_argument): Update.
12045 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12046 initial_size parameter.
12047 * rust-exp.y (rust_lex_tests): Update.
12048 * parse.c (parser_state): Update.
12049 (parse_exp_in_context): Update.
12050 * parser-defs.h (struct parser_state) <parser_state>: Remove
12051 "initial_size" parameter.
12053 2019-04-04 Tom Tromey <tom@tromey.com>
12055 * parser-defs.h (increase_expout_size): Don't declare.
12056 * parse.c (increase_expout_size): Now static.
12058 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12060 * gnu-nat.c (gnu_nat_target::wait): Fix
12061 target_waitstatus_to_string call.
12063 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12065 * eval.c (evaluate_subexp_standard): Handle internal functions
12066 during Fortran function call handling.
12068 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12070 * NEWS: Mention new internal functions.
12071 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12072 (read_base_type): Use dwarf2_init_complex_target_type.
12073 * value.c (creal_internal_fn): New function.
12074 (cimag_internal_fn): New function.
12075 (_initialize_values): Register new internal functions.
12077 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12079 * infrun.c (stop_all_threads): If debug_infrun, always
12080 trace the wait status after wait_one, using
12081 target_waitstatus_to_string and target_pid_to_str.
12082 (handle_inferior_event): Replace various trace of
12083 wait status kind by a single trace.
12084 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12085 wait status kind image by target_waitstatus_to_string.
12086 * target/waitstatus.c (target_waitstatus_to_string): Fix
12089 2019-04-01 Tom Tromey <tromey@adacore.com>
12092 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12094 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12095 Pedro Alves <palves@redhat.com>
12097 * top.c (quit_force): Call 'finalize_values'.
12098 * value.c (finalize_values): New function.
12099 * value.h (finalize_values): Declare.
12101 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12103 * NEWS: Announce $_gdb_major and $_gdb_minor.
12105 * top.c (init_gdb_version_vars): New function.
12106 (gdb_init): Call init_gdb_version_vars.
12108 2019-03-29 Tom Tromey <tromey@adacore.com>
12110 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12111 help text. Remove dead code.
12113 2019-03-29 Keith Seitz <keiths@redhat.com>
12115 From Siddhesh Poyarekar:
12116 * f-lang.h (f77_get_upperbound): Return LONGEST.
12117 (f77_get_lowerbound): Likewise.
12118 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12119 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12121 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12122 plongest to format print it.
12123 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12124 (f77_get_upperbound): Likewise.
12125 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12126 LOWER_BOUND to LONGEST.
12127 (f77_create_arrayprint_offset_tbl): Likewise.
12129 2019-03-29 Keith Seitz <keiths@redhat.com>
12131 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12132 %s/pulongest for TYPE_LENGTH instead of %d in format
12134 * ada-typerint.c (ada_print_type): Likewise.
12135 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12136 * compile/compile-c-support.c (generate_register_struct): Likewise.
12137 * gdbtypes.c (recursive_dump_type): Likewise.
12138 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12139 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12140 instead of %d in format strings.
12141 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12142 to std::min to ULONGEST.
12143 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12144 instead of %d in format strings.
12145 * tracepoint.c (info_scope_command): Likewise.
12146 * typeprint.c (print_offset_data::update)
12147 (print_offset_data::finish): Likewise.
12148 * xtensa-tdep.c (xtensa_store_return_value)
12149 (xtensa_push_dummy_call): Likewise.
12151 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12153 * windows-nat.c (display_selector): Fixed format specifications
12156 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12158 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12160 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12162 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12163 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12164 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12165 (nios2_linux_init_abi): Install it.
12167 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12169 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12171 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12173 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12175 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12176 Tom Tromey <tromey@adacore.com>
12178 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12180 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12182 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12183 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12184 method to compute the bounds of range types. Also print "[evaluated]"
12185 if the bounds' values come from a dynamic evaluation.
12187 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12189 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12190 whitespace when pretty printing is on.
12192 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12194 * ppc-linux-nat.c: Add include.
12196 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12198 * NEWS: Mention AArch64 Pointer Authentication.
12200 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12202 * arm-linux-nat.c: Add include.
12204 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12206 * source-cache.c (source_cache::get_source_lines): Re-read
12207 fullname after calling open_source_file.
12209 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12211 * NEWS: Mention TLS support for FreeBSD.
12213 2019-03-25 Tom Tromey <tromey@adacore.com>
12215 * minsyms.c (BUNCH_SIZE): Update comment.
12216 (~minimal_symbol_reader): Remove old comment.
12217 (compact_minimal_symbols): Update comment.
12218 (minimal_symbol_reader::install): Remove old comment. Update
12221 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12223 * s390-linux-nat.c: Add include.
12225 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12227 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12228 Call linux_get_hwcap.
12229 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12231 (aarch64_linux_get_hwcap): Remove function.
12232 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12234 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12236 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12237 * linux-tdep.c (linux_get_hwcap): Add function.
12238 (linux_get_hwcap2): Likewise.
12239 * linux-tdep.h (linux_get_hwcap): Add declaration.
12240 (linux_get_hwcap2): Likewise.
12241 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12242 (ppc_linux_get_hwcap2): Likewise.
12243 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12245 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12246 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12247 (ppc_linux_nat_target::read_description): Likewise.
12248 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12249 * s390-linux-nat.c: Likewise.
12250 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12252 2019-03-24 Tom Tromey <tom@tromey.com>
12254 * ada-lang.c (standard_lookup): Simplify initialization.
12255 (ada_lookup_symbol_nonlocal): Simplify return.
12256 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12257 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12258 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12259 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12261 * solib.c (solib_global_lookup): Simplify.
12262 * symtab.c (null_block_symbol): Remove.
12263 (symbol_cache_lookup): Simplify returns.
12264 (lookup_language_this): Simplify returns.
12265 (lookup_symbol_aux): Simplify return.
12266 (lookup_local_symbol): Simplify returns.
12267 (lookup_global_symbol_from_objfile): Simplify return.
12268 (lookup_symbol_in_objfile_symtabs)
12269 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12270 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12271 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12272 * cp-namespace.c (cp_lookup_bare_symbol)
12273 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12274 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12275 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12276 (cp_lookup_symbol_via_imports): Simplify initialization.
12277 (find_symbol_in_baseclass): Likewise.
12278 * symtab.h (null_block_symbol): Remove.
12279 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12280 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12281 (d_lookup_symbol_module): Likewise.
12282 (find_symbol_in_baseclass): Simplify initialization.
12284 2019-03-24 Tom Tromey <tom@tromey.com>
12286 * expression.h: Don't include symtab.h.
12287 (struct block): Forward declare.
12289 2019-03-24 Tom Tromey <tom@tromey.com>
12291 * c-exp.y (typebase): Remove casts.
12292 * gdbtypes.c (lookup_unsigned_typename, )
12293 (lookup_signed_typename): Remove cast.
12294 * eval.c (parse_to_comma_and_eval): Remove cast.
12295 * parse.c (write_dollar_variable): Remove cast.
12296 * block.h (struct block) <superblock>: Now const.
12297 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12298 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12299 (map_block): Make "block" const.
12300 * symfile.h (struct quick_symbol_functions)
12301 <map_matching_symbols>: Constify block argument to "callback".
12302 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12304 (find_pc_sect_compunit_symtab): Make "b" const.
12305 (find_symbol_at_address): Likewise.
12306 (search_symbols): Likewise.
12307 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12308 (dw2_debug_names_lookup_symbol): Likewise.
12309 (dw2_map_matching_symbols): Update.
12310 * p-valprint.c (pascal_val_print): Remove "block".
12311 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12312 (aux_add_nonlocal_symbols): Make "block" const.
12313 (resolve_subexp): Remove cast.
12314 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12316 (iterate_over_file_blocks): Likewise.
12317 * f-exp.y (%union) <bval>: Remove.
12318 * coffread.c (patch_opaque_types): Make "b" const.
12319 * spu-tdep.c (spu_catch_start): Make "block" const.
12320 * c-valprint.c (print_unpacked_pointer): Remove "block".
12321 * symmisc.c (dump_symtab_1): Make "b" const.
12322 (block_depth): Make "block" const.
12323 * d-exp.y (%union) <bval>: Remove.
12324 * cp-support.h (cp_lookup_rtti_type): Update.
12325 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12326 * psymtab.c (psym_lookup_symbol): Make "block" const.
12327 (maintenance_check_psymtabs): Make "b" const.
12328 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12329 (enumerate_locals, enumerate_args): Update.
12330 * python/py-symtab.c (stpy_global_block): Make "block" const.
12331 (stpy_static_block): Likewise.
12332 * inline-frame.c (block_starting_point_at): Make "new_block"
12334 * block.c (find_block_in_blockvector): Make return type const.
12335 (blockvector_for_pc_sect): Make "b" const.
12336 (find_block_in_blockvector): Make "b" const.
12338 2019-03-23 Tom Tromey <tom@tromey.com>
12340 * varobj.c (varobj_create): Update.
12341 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12342 * printcmd.c (display_command, do_one_display): Don't reset
12344 * parser-defs.h (enum innermost_block_tracker_type): Move to
12346 (innermost_block): Update comment.
12347 * parse.c (parse_exp_1): Add tracker_types parameter.
12348 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12349 tracker_types parameter. Reset innermost_block.
12350 (parse_exp_in_context): Remove.
12351 (parse_expression_for_completion): Update.
12352 * objfiles.c (~objfile): Don't reset expression_context_block or
12354 * expression.h (enum innermost_block_tracker_type): Move from
12356 (parse_exp_1): Add tracker_types parameter.
12357 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12358 reset innermost_block.
12360 2019-03-23 Tom Tromey <tom@tromey.com>
12362 * objfiles.h: Include bcache.h.
12364 2019-03-23 Tom Tromey <tom@tromey.com>
12366 * linespec.c (get_current_search_block): Use
12367 scoped_restore_current_language.
12368 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12370 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12371 Jiong Wang <jiong.wang@arm.com>
12373 * aarch64-linux-tdep.c
12374 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12376 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12378 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12379 Jiong Wang <jiong.wang@arm.com>
12381 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12383 (aarch64_analyze_prologue_test): Add PACIASP test.
12384 (aarch64_prologue_prev_register): Unmask PC value.
12386 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12387 Jiong Wang <jiong.wang@arm.com>
12389 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12390 (aarch64_dwarf2_prev_register): Unmask PC value.
12391 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12392 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12393 DW_CFA_AARCH64_negate_ra_state.
12394 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12396 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12397 Jiong Wang <jiong.wang@arm.com>
12399 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12401 (aarch64_pseudo_register_name): Likewise.
12402 (aarch64_pseudo_register_type): Likewise.
12403 (aarch64_pseudo_register_reggroup_p): Likewise.
12404 (aarch64_gdbarch_init): Add pauth registers.
12405 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12406 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12407 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12408 (struct gdbarch_tdep): Add regnum for ra_state.
12410 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12411 Jiong Wang <jiong.wang@arm.com>
12413 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12415 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12416 Jiong Wang <jiong.wang@arm.com>
12418 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12420 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12421 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12422 (aarch64_gdbarch_init): Add puth registers.
12423 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12424 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12425 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12427 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12428 Jiong Wang <jiong.wang@arm.com>
12430 * aarch64-linux-nat.c
12431 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12432 * aarch64-linux-tdep.c
12433 (aarch64_linux_core_read_description): Likewise.
12434 (aarch64_linux_get_hwcap): New function.
12435 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12436 (aarch64_linux_get_hwcap): New declaration.
12438 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12439 Jiong Wang <jiong.wang@arm.com>
12441 * aarch64-linux-nat.c
12442 (aarch64_linux_nat_target::read_description): Add pauth param.
12443 * aarch64-linux-tdep.c
12444 (aarch64_linux_core_read_description): Likewise.
12445 * aarch64-tdep.c (struct target_desc): Add in pauth.
12446 (aarch64_read_description): Add pauth param.
12447 (aarch64_gdbarch_init): Likewise.
12448 * aarch64-tdep.h (aarch64_read_description): Likewise.
12449 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12450 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12451 * features/Makefile: Add new files.
12452 * features/aarch64-pauth.c: New file.
12453 * features/aarch64-pauth.xml: New file.
12455 2019-03-20 Tom Tromey <tromey@adacore.com>
12457 * infrun.c (handle_inferior_event): Rename from
12458 handle_inferior_event_1. Create a scoped_value_mark.
12459 (handle_inferior_event): Remove.
12461 2019-03-19 Tom Tromey <tromey@adacore.com>
12463 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12464 * infrun.h (print_stop_event): Add "displays" parameter.
12465 * infrun.c (print_stop_event): Add "displays" parameter.
12467 2019-03-19 Pedro Alves <palves@redhat.com>
12469 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12470 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12471 to -1. Fix TABs vs spaces.
12472 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12473 * tui/tui-out.h (tui_ui_out) Add intro comments.
12474 <m_line, m_start_of_line>: In-class initialize, and add describing
12477 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12479 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12481 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12483 2019-03-18 Pedro Alves <palves@redhat.com>
12484 Eli Zaretskii <eliz@gnu.org>
12486 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12487 m_line and m_start_of_line.
12489 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12491 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12492 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12493 it returns a newline. This fixes a regression in TU mode, whereby
12494 the next line is output on the same screen line as the user input.
12496 2019-03-18 Tom Tromey <tromey@adacore.com>
12498 * minsyms.c (minimal_symbol_reader::install): Remove call to
12501 2019-03-18 Pedro Alves <palves@redhat.com>
12503 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12505 (apply_style): New, factored out from ...
12506 (apply_ansi_escape): ... this. Handle reverse video mode.
12507 (tui_set_reverse_mode): New function.
12508 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12509 * tui/tui-winsource.c (tui_show_source_line): Use
12510 tui_set_reverse_mode instead of setting A_STANDOUT.
12511 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12512 New setter methods.
12514 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12516 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12519 2019-03-18 Tom Tromey <tromey@adacore.com>
12521 * ada-lang.c (empty_array): Add "high" parameter.
12522 (ada_evaluate_subexp): Update.
12524 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12526 * unittests/string_view-selftests.c: Define
12527 _initialize_string_view_selftests unconditionally.
12529 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12532 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12534 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12537 * windows-nat.c (display_selector): Fix format specifiers.
12539 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12541 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12542 tui_refill_source_window instead of tui_refresh_win, to update the
12543 current execution line. This fixes redisplay of the current line
12544 when stepping through the code with "next" or "step".
12546 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12548 * source-cache.c (source_cache::get_source_lines): Call
12549 find_source_lines to initialize s->nlines. This fixes vertical
12550 scrolling of TUI source window when the DOWN arrow is pressed.
12552 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12554 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12555 linux-thread-db.c (_initialize_thread_db): Likewise.
12557 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12559 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12560 wclrtoeol in tui_show_source_line". This reverts changes made in
12561 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12563 2019-03-15 Tom Tromey <tom@tromey.com>
12565 * symtab.h (struct minimal_symbol): Derive from
12566 general_symbol_info.
12567 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12568 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12569 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12570 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12571 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12572 (MSYMBOL_SEARCH_NAME): Update.
12573 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12574 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12575 * minsyms.c (minimal_symbol_reader::record_full): Update.
12577 2019-03-15 Tom Tromey <tom@tromey.com>
12579 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12581 2019-03-15 Tom Tromey <tom@tromey.com>
12583 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12584 unique_xmalloc_ptr.
12585 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12587 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12588 (build_minimal_symbol_hash_tables)
12589 (minimal_symbol_reader::install): Update.
12591 2019-03-15 Tom Tromey <tom@tromey.com>
12593 * symtab.c (create_demangled_names_hash): Update.
12594 (symbol_set_names): Update.
12595 * objfiles.h (struct objfile_per_bfd_storage)
12596 <demangled_names_hash>: Now an htab_up.
12597 * objfiles.c (objfile_per_bfd_storage): Simplify.
12599 2019-03-15 Tom Tromey <tom@tromey.com>
12601 * objfiles.h (struct objfile_per_bfd_storage): Declare
12603 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12605 (get_objfile_bfd_data): Use new. Don't initialize
12607 (free_objfile_per_bfd_storage): Remove.
12608 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12610 2019-03-15 Tom Tromey <tom@tromey.com>
12612 * symfile.c (reread_symbols): Update.
12613 * objfiles.c (objfile::objfile): Update.
12614 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12615 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12617 (minimal_symbol_reader::install): Update.
12618 (terminate_minimal_symbol_table): Remove.
12619 * jit.c (jit_object_close_impl): Update.
12621 2019-03-15 Tom Tromey <tom@tromey.com>
12623 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12626 2019-03-15 Tom Tromey <tom@tromey.com>
12628 * objfiles.h (struct objfile_per_bfd_storage)
12629 <demangled_hash_languages>: Now a bitset.
12630 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12631 (lookup_minimal_symbol): Update.
12633 2019-03-15 Tom Tromey <tom@tromey.com>
12635 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12636 Don't return the symbol.
12637 * coffread.c (record_minimal_symbol): Use record_full.
12639 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12641 The MS-Windows port of ncurses fails to switch to a color pair if
12642 one or both of the colors are the implicit default colors. This
12643 change records the default colors when TUI is initialized, and
12644 then specifies them explicitly when a color pair uses the default
12645 colors. This allows color styling in TUI mode on MS-Windows.
12647 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12649 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12650 colors in ncurses_norm_attr.
12651 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12652 "none", replace it with the default color recorded in
12655 2019-03-14 Tom Tromey <tromey@adacore.com>
12657 * source-cache.h (class source_cache) <get_source_lines>: Return
12659 * source-cache.c (source_cache::extract_lines): Handle case where
12660 first_pos==npos. Return std::string.
12661 (source_cache::get_source_lines): Update.
12663 2019-03-14 Tom Tromey <tromey@adacore.com>
12665 * NEWS: Add item for "style sources" commands.
12666 * source-cache.c (source_cache::get_source_lines): Check
12668 * cli/cli-style.c (source_styling): New global.
12669 (_initialize_cli_style): Add "style sources" commands.
12670 (show_style_sources): New function.
12671 * cli/cli-style.h (source_styling): Declare.
12673 2019-03-14 Pedro Alves <palves@redhat.com>
12674 Tom Tromey <tromey@adacore.com>
12676 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12677 * tui/tui-winsource.c (tui_refill_source_window): New function,
12679 (tui_horizontal_source_scroll): ... here. Move some logic.
12680 * cli/cli-style.c (set_style_enabled): Notify new observable.
12681 * tui/tui-hooks.c (tui_redisplay_source): New function.
12682 (tui_attach_detach_observers): Attach or detach
12683 tui_redisplay_source.
12684 * observable.h (source_styling_changed): New observable.
12685 * observable.c: Define source_styling_changed observable.
12687 2019-03-13 Tom Tromey <tromey@adacore.com>
12689 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12690 (i386_gnu_nat_target::store_registers): Update.
12691 * target-debug.h (target_debug_print_std_string): New macro.
12692 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12693 * windows-tdep.c (display_one_tib): Update.
12694 * tui/tui-stack.c (tui_make_status_line): Update.
12695 * top.c (print_inferior_quit_action): Update.
12696 * thread.c (thr_try_catch_cmd): Update.
12697 (add_thread_with_info): Update.
12698 (thread_target_id_str): Update.
12699 (thr_try_catch_cmd): Update.
12700 (thread_command): Update.
12701 (thread_find_command): Update.
12702 * record-btrace.c (record_btrace_target::info_record)
12703 (record_btrace_resume_thread, record_btrace_target::resume)
12704 (record_btrace_cancel_resume, record_btrace_step_thread)
12705 (record_btrace_target::wait, record_btrace_target::wait)
12706 (record_btrace_target::wait, record_btrace_target::stop): Update.
12707 * progspace.c (print_program_space): Update.
12708 * process-stratum-target.c
12709 (process_stratum_target::thread_address_space): Update.
12710 * linux-fork.c (linux_fork_mourn_inferior)
12711 (detach_checkpoint_command, info_checkpoints_command)
12712 (linux_fork_context): Update.
12713 (linux_fork_detach): Update.
12714 (class scoped_switch_fork_info): Update.
12715 (delete_checkpoint_command): Update.
12716 * infrun.c (follow_fork_inferior): Update.
12717 (follow_fork_inferior): Update.
12718 (proceed_after_vfork_done): Update.
12719 (handle_vfork_child_exec_or_exit): Update.
12720 (follow_exec): Update.
12721 (displaced_step_prepare_throw): Update.
12722 (displaced_step_restore): Update.
12723 (start_step_over): Update.
12724 (resume_1): Update.
12725 (clear_proceed_status_thread): Update.
12727 (print_target_wait_results): Update.
12728 (do_target_wait): Update.
12729 (context_switch): Update.
12730 (stop_all_threads): Update.
12731 (restart_threads): Update.
12732 (finish_step_over): Update.
12733 (handle_signal_stop): Update.
12734 (switch_back_to_stepped_thread): Update.
12735 (keep_going_pass_signal): Update.
12736 (print_exited_reason): Update.
12737 (normal_stop): Update.
12738 * inferior.c (inferior_pid_to_str): Change return type.
12739 (print_selected_inferior): Update.
12740 (add_inferior): Update.
12741 (detach_inferior): Update.
12742 * dummy-frame.c (fprint_dummy_frames): Update.
12743 * dcache.c (dcache_info_1): Update.
12744 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12745 (btrace_fetch, btrace_clear): Update.
12746 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12747 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12749 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12750 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12751 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12752 * gdbarch.c, gdbarch.h: Rebuild.
12753 * gdbarch.sh (core_pid_to_str): Change return type.
12754 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12756 (windows_nat_target::pid_to_str): Change return type.
12757 (windows_delete_thread): Update.
12758 (windows_nat_target::attach): Update.
12759 (windows_nat_target::files_info): Update.
12760 * target-delegates.c: Rebuild.
12761 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12763 (sol_thread_target::pid_to_str): Change return type.
12764 * remote.c (class remote_target) <pid_to_str>: Change return
12766 (remote_target::pid_to_str): Change return type.
12767 (extended_remote_target::attach, remote_target::remote_stop_ns)
12768 (remote_target::remote_notif_remove_queued_reply)
12769 (remote_target::push_stop_reply, remote_target::disable_btrace):
12771 (extended_remote_target::attach): Update.
12772 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12774 (gdbsim_target::pid_to_str): Change return type.
12775 * ravenscar-thread.c (struct ravenscar_thread_target)
12776 <pid_to_str>: Change return type.
12777 (ravenscar_thread_target::pid_to_str): Change return type.
12778 * procfs.c (class procfs_target) <pid_to_str>: Change return
12780 (procfs_target::pid_to_str): Change return type.
12781 (procfs_target::attach): Update.
12782 (procfs_target::detach): Update.
12783 (procfs_target::fetch_registers): Update.
12784 (procfs_target::store_registers): Update.
12785 (procfs_target::wait): Update.
12786 (procfs_target::files_info): Update.
12787 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12788 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12790 (nto_procfs_target::pid_to_str): Change return type.
12791 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12792 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12794 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12795 (exit_lwp): Update.
12796 (attach_proc_task_lwp_callback, get_detach_signal)
12797 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12798 (linux_nat_target::resume, wait_lwp, stop_callback)
12799 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12800 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12801 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12802 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12803 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12805 (inf_ptrace_target::attach): Update.
12806 (inf_ptrace_target::files_info): Update.
12807 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12809 (go32_nat_target::pid_to_str): Change return type.
12810 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12811 (gnu_nat_target::wait): Update.
12812 (gnu_nat_target::wait): Update.
12813 (gnu_nat_target::resume): Update.
12814 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12815 (fbsd_nat_target::wait): Update.
12816 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12818 (darwin_nat_target::attach): Update.
12819 * corelow.c (class core_target) <pid_to_str>: Change return type.
12820 (core_target::pid_to_str): Change return type.
12821 * target.c (normal_pid_to_str): Change return type.
12822 (default_pid_to_str): Likewise.
12823 (target_pid_to_str): Change return type.
12824 (target_translate_tls_address): Update.
12825 (target_announce_detach): Update.
12826 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12828 (bsd_uthread_target::pid_to_str): Change return type.
12829 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12831 (bsd_kvm_target::pid_to_str): Change return type.
12832 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12834 (aix_thread_target::pid_to_str): Change return type.
12835 * target.h (struct target_ops) <pid_to_str>: Change return type.
12836 (target_pid_to_str, normal_pid_to_str): Likewise.
12837 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12839 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12841 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12843 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12845 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12847 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12850 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12852 * NEWS: Mention that the new default MI version is 3. Mention
12853 changes to the output of commands and events that deal with
12854 multi-location breakpoints.
12855 * breakpoint.c: Include "mi/mi-out.h".
12856 (print_one_breakpoint): Change output syntax if using MI version
12858 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12860 (mi_multi_location_breakpoint_output_fixed): New.
12861 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12862 (mi_cmd_fix_multi_location_breakpoint_output): New.
12863 (mi_multi_location_breakpoint_output_fixed): New.
12864 * mi/mi-cmds.c (mi_cmds): Register command
12865 -fix-multi-location-breakpoint-output.
12866 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12869 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12871 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12872 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12873 instantiate mi_ui_out based on interpreter name.
12874 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12875 * mi/mi-main.c (mi_load_progress): Likewise.
12877 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12879 * NEWS: Combine separate "New targets" sections for 8.3.
12881 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12883 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12884 (ppcfbsd_init_abi): Install gdbarch
12885 "fetch_tls_load_module_address" and "get_thread_local_address"
12888 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12890 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12891 (riscv_fbsd_init_abi): Install gdbarch
12892 "fetch_tls_load_module_address" and "get_thread_local_address"
12895 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12897 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12898 (i386fbsd_init_abi): Install gdbarch
12899 "fetch_tls_load_module_address" and "get_thread_local_address"
12902 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12904 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12905 (amd64fbsd_init_abi): Install gdbarch
12906 "fetch_tls_load_module_address" and "get_thread_local_address"
12909 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12911 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12912 (struct fbsd_pspace_data): New type.
12913 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12914 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12915 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12916 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12917 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12919 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12921 * gdbtypes.c (lookup_struct_elt): New function.
12922 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12923 * gdbtypes.h (struct struct_elt): New type.
12924 (lookup_struct_elt): New prototype.
12926 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12928 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12929 remove disabled code block.
12931 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12933 * gdbarch.sh (get_thread_local_address): New method.
12934 * gdbarch.h, gdbarch.c: Regenerate.
12935 * target.c (target_translate_tls_address): Use
12936 gdbarch_get_thread_local_address if present instead of
12937 target::get_thread_local_address.
12939 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12941 * target.h (target::get_thread_local_address): Update comment.
12943 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12945 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12946 objfile->separate_debug_objfile_backlink if not NULL.
12948 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12950 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12951 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12952 (amd64bsd_store_inferior_registers): Likewise.
12953 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12954 Enable segment base registers.
12955 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12956 PT_GETFSBASE and PT_GETGSBASE.
12957 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12959 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12960 segment base registers.
12961 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12963 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12965 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12966 Update calls to i386_target_description to add 'segments'
12968 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12969 add segment base registers.
12970 * arch/i386.c (i386_create_target_description): Add 'segments'
12971 parameter to enable segment base registers.
12972 * arch/i386.h (i386_create_target_description): Likewise.
12973 * features/i386/32bit-segments.xml: New file.
12974 * features/i386/32bit-segments.c: Generate.
12975 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12976 call to i386_target_description to add 'segments' parameter.
12977 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12978 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12979 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12980 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12981 if feature is present.
12982 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12983 Add 'segments' parameter to call to i386_target_description.
12984 (i386_target_description): Add 'segments' parameter to enable
12985 segment base registers.
12986 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12987 to call to i386_target_description.
12988 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12989 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12990 Define I386_NUM_REGS.
12991 (i386_target_description): Add 'segments' parameter to enable
12992 segment base registers.
12994 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12997 * source-cache.c: #undef open and close, to avoid unresolved
12998 externals during linking.
13000 2019-03-12 Tom Tromey <tromey@adacore.com>
13002 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13003 const. Add initializers.
13004 (_initialize_remote): Don't initialize ptid globals.
13006 2019-03-12 Pedro Alves <palves@redhat.com>
13008 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13010 2019-03-12 Pedro Alves <palves@redhat.com>
13012 * cp-name-parser.y (main): Remove unused 'len' variable.
13014 2019-03-12 Tom Tromey <tromey@adacore.com>
13016 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13017 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13019 2019-03-12 Tom Tromey <tromey@adacore.com>
13021 * linux-nat.c (iterate_over_lwps): Update.
13022 (stop_callback): Remove parameter.
13023 (stop_wait_callback, detach_callback, resume_set_callback)
13024 (select_singlestep_lwp_callback, set_ignore_sigint)
13025 (status_callback, resumed_callback, resume_clear_callback)
13026 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13028 (linux_nat_target::detach, linux_nat_target::resume)
13029 (linux_stop_and_wait_all_lwps, select_event_lwp)
13030 (linux_nat_filter_event, linux_nat_wait_1)
13031 (linux_nat_target::kill, linux_nat_target::stop)
13032 (linux_nat_target::stop): Update.
13033 (linux_nat_resume_callback): Change type.
13034 (resume_stopped_resumed_lwps, count_events_callback)
13035 (select_event_lwp_callback): Likewise.
13036 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13037 * arm-linux-nat.c (struct update_registers_data): Remove.
13038 (update_registers_callback): Change type.
13039 (arm_linux_insert_hw_breakpoint1): Update.
13040 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13042 (x86_linux_dr_set_addr): Update.
13043 (x86_linux_dr_set_control): Update.
13044 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13045 (iterate_over_lwps): Use gdb::function_view.
13046 * nat/aarch64-linux-hw-point.c (struct
13047 aarch64_dr_update_callback_param): Remove.
13048 (debug_reg_change_callback): Change type.
13049 (aarch64_notify_debug_reg_change): Update.
13050 * s390-linux-nat.c (s390_refresh_per_info): Update.
13052 2019-03-11 Tom Tromey <tromey@adacore.com>
13054 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13055 redundant assignment to "this_cu".
13057 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13059 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13061 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13063 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13065 (rank_one_type): ... this.
13067 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13069 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13071 (rank_one_type): ... this.
13073 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13075 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13077 (rank_one_type): ... this.
13079 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13081 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13083 (rank_one_type): ... this.
13085 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13087 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13089 (rank_one_type): ... this.
13091 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13093 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13095 (rank_one_type): ... this.
13097 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13099 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13101 (rank_one_type): ... this.
13103 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13105 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13107 (rank_one_type): ... this.
13109 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13111 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13113 (rank_one_type): ... this.
13115 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13117 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13119 (rank_one_type): ... this.
13121 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13123 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13125 (rank_one_type): ... this.
13127 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13129 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13131 (rank_one_type): ... this.
13133 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13135 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13136 inferior-events' shows the example events.
13138 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13140 Support styling on native MS-Windows console
13143 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13144 on MS-Windows if $TERM is not defined.
13146 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13148 * posix-hdep.c (gdb_console_fputs):
13149 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13151 * ui-file.h (gdb_console_fputs): Add prototype.
13153 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13154 back to fputs only if the former returns zero.
13156 2019-03-07 Tom Tromey <tom@tromey.com>
13158 * symmisc.c (print_symbol_bcache_statistics): Update.
13159 (print_objfile_statistics): Update.
13160 * symfile.c (allocate_symtab): Update.
13161 * stabsread.c: Don't include bcache.h.
13162 * psymtab.h (struct psymbol_bcache): Don't declare.
13163 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13164 (psymbol_bcache_init, psymbol_bcache_free)
13165 (psymbol_bcache_get_bcache): Don't declare.
13166 * psymtab.c (struct psymbol_bcache): Remove.
13167 (psymtab_storage::psymtab_storage): Update.
13168 (psymtab_storage::~psymtab_storage): Update.
13169 (psymbol_bcache_init, psymbol_bcache_free)
13170 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13171 (add_psymbol_to_bcache): Update.
13172 (allocate_psymtab): Update.
13173 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13174 macro_cache>: No longer pointers.
13175 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13176 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13177 * macrotab.c (macro_bcache): Update.
13178 * macroexp.c: Don't include bcache.h.
13179 * gdbtypes.c (check_types_worklist): Update.
13180 (types_deeply_equal): Remove TRY/CATCH. Update.
13181 * elfread.c (elf_symtab_read): Update.
13182 * dwarf2read.c: Don't include bcache.h.
13183 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13184 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13185 (print_bcache_statistics, bcache_memory_used): Don't declare.
13186 (struct bcache): Move from bcache.c. Add constructor, destructor,
13187 methods. Rename all data members.
13188 * bcache.c (struct bcache): Move to bcache.h.
13189 (bcache::expand_hash_table): Rename from expand_hash_table.
13191 (bcache::insert): Rename from bcache_full.
13192 (bcache::compare): Rename from bcache_compare.
13193 (bcache_xmalloc): Remove.
13194 (bcache::~bcache): Rename from bcache_xfree.
13195 (bcache::print_statistics): Rename from print_bcache_statistics.
13196 (bcache::memory_used): Rename from bcache_memory_used.
13198 2019-03-07 Pedro Alves <palves@redhat.com>
13200 * infrun.c (normal_stop): Also check for
13201 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13203 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13205 * f-lang.c (value_from_host_double): Moved to...
13206 * value.c (value_from_host_double): ...here.
13207 * value.h (value_from_host_double): Declare.
13208 * guile/scm-math.c (vlscm_convert_typed_number): Use
13209 value_from_host_double.
13210 (vlscm_convert_number): Likewise.
13211 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13212 * python/py-value.c (convert_value_from_python): Likewise.
13214 2019-03-06 Tom Tromey <tom@tromey.com>
13216 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13218 2019-03-06 Tom Tromey <tom@tromey.com>
13220 * utils.h (free_current_contents): Don't declare.
13221 * utils.c (free_current_contents): Remove.
13223 2019-03-06 Tom Tromey <tom@tromey.com>
13225 * top.c (quit_force): Update.
13226 * main.c (captured_command_loop): Update.
13227 * common/new-op.c (operator new): Update.
13228 * common/common-exceptions.c (struct catcher)
13229 <save_cleanup_chain>: Remove member.
13230 (exceptions_state_mc_init): Update.
13231 (exception_try_scope_entry): Return nullptr.
13232 (exception_try_scope_exit, exception_rethrow)
13233 (throw_exception_sjlj, throw_exception_cxx): Update.
13234 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13235 (all_cleanups, do_cleanups, discard_cleanups)
13236 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13237 (restore_cleanups, restore_final_cleanups): Don't declare.
13238 (do_final_cleanups): Remove parameter.
13239 * common/cleanups.c (cleanup_chain, make_cleanup)
13240 (make_cleanup_dtor, all_cleanups, do_cleanups)
13241 (discard_my_cleanups, discard_cleanups)
13242 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13243 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13244 (null_cleanup): Remove.
13245 (do_final_cleanups): Remove parameter.
13247 2019-03-06 Tom Tromey <tom@tromey.com>
13249 * remote.c (remote_target::remote_parse_stop_reply): Use
13250 unique_xmalloc_ptr.
13252 2019-03-06 Tom Tromey <tom@tromey.com>
13254 * stabsread.c (struct stabs_field_info): Rename from field_info.
13255 <list, fnlist>: Add initializers.
13256 <obstack>: New member.
13257 (read_member_functions, read_struct_fields, read_baseclasses):
13258 Allocate on obstack. Don't use cleanups.
13259 (read_one_struct_field, read_member_functions, read_struct_fields)
13260 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13261 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13262 (read_struct_type): Update.
13264 2019-03-06 Tom Tromey <tom@tromey.com>
13266 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13267 * common/filestuff.h (make_cleanup_close): Don't declare.
13268 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13271 2019-03-06 Tom Tromey <tom@tromey.com>
13273 * solib-aix.c: Use make_scope_exit.
13275 2019-03-06 Tom Tromey <tom@tromey.com>
13277 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13278 Use make_scope_exit.
13280 2019-03-06 Tom Tromey <tom@tromey.com>
13282 * solib-svr4.c (disable_probes_interface): Remove parameter.
13283 (svr4_handle_solib_event): Use make_scope_exit.
13285 2019-03-06 Tom Tromey <tom@tromey.com>
13287 * remote.c (struct stop_reply_deleter): Remove.
13288 (stop_reply_up): Update.
13289 (struct stop_reply): Derive from notif_event. Don't typedef.
13290 <regcache>: Now a std::vector.
13291 (stop_reply_xfree): Remove.
13292 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13293 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13294 (remote_target::discard_pending_stop_replies): Use delete.
13295 (remote_target::remote_parse_stop_reply): Update.
13296 (remote_target::process_stop_reply): Update.
13297 * remote-notif.h (struct notif_event): Add virtual destructor.
13298 Remove "dtr" member.
13299 (struct notif_client) <alloc_event>: Return a unique_ptr.
13300 (notif_event_xfree): Don't declare.
13301 (notif_event_up): New typedef.
13302 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13303 (notif_event_xfree, do_notif_event_xfree): Remove.
13304 (remote_notif_state_xfree): Update.
13306 2019-03-06 Tom Tromey <tom@tromey.com>
13308 * infrun.c (displaced_step_clear_cleanup): Now a
13309 forward_scope_exit type.
13310 (displaced_step_prepare_throw): Update.
13311 (displaced_step_fixup): Update.
13313 2019-03-06 Tom Tromey <tom@tromey.com>
13315 * inferior.h (class inferior): Update comment.
13316 * gdbthread.h (class thread_info): Update comment.
13318 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13319 Tom Tromey <tom@tromey.com>
13321 * stabsread.h (struct stab_section_list): Remove.
13322 (coffstab_build_psymtabs): Update.
13323 * dbxread.c (symbuf_sections): Now a std::vector.
13324 (sect_idx): New global.
13325 (fill_symbuf): Update.
13326 (coffstab_build_psymtabs): Change type of stabsects parameter.
13328 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13330 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13331 (coff_locate_sections): Update.
13332 (coff_symfile_read): Remove cleanups. Update.
13333 (init_stringtab): Add storage parameter.
13334 (free_stringtab, free_stringtab_cleanup): Remove.
13335 (init_lineno): Add storage parameter.
13336 (free_linetab, free_linetab_cleanup): Remove.
13338 2019-03-06 Pedro Alves <palves@redhat.com>
13340 * linux-fork.c (fork_info::clobber_regs): Delete.
13341 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13342 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13344 (scoped_switch_fork_info::scoped_switch_fork_info)
13345 (checkpoint_command, linux_fork_context): Adjust
13346 fork_save_infrun_state calls.
13348 2019-03-06 Pedro Alves <palves@redhat.com>
13350 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13351 (inf_has_multiple_threads): Return 'bool' and rewrite using
13352 inferior_info::threads().
13354 2019-03-06 Pedro Alves <palves@redhat.com>
13356 * linux-fork.c: Include <list>.
13357 (fork_list): Now a std::list instance.
13358 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13359 (forks_exist_p, find_last_fork): Adjust.
13360 (new_fork): Delete.
13362 (add_fork): Adjust.
13363 (free_fork): Delete, folded into fork_info::~fork_info().
13364 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13366 (init_fork_list): Delete.
13367 (linux_fork_killall, linux_fork_mourn_inferior)
13368 (linux_fork_detach, info_checkpoints_command): Adjust.
13369 (_initialize_linux_fork): No longer call init_fork_list.
13371 2019-03-06 Pedro Alves <palves@redhat.com>
13373 * linux-fork.c (new_fork): New, split out of ...
13374 (add_fork): ... this. Return void. Move "first fork" special
13375 case from here, to ...
13376 (checkpoint_command): ... here.
13377 * linux-linux.h (add_fork): Return void.
13379 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13381 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13383 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13384 Chris January <chris.january@arm.com>
13385 David Lecomber <david.lecomber@arm.com>
13387 * f-exp.y: New token, UNOP_INTRINSIC.
13388 (exp): New pattern using UNOP_INTRINSIC token.
13389 (f77_keywords): Add 'abs' keyword.
13390 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13391 (value_from_host_double): New function.
13392 (evaluate_subexp_f): Support UNOP_ABS.
13394 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13396 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13399 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13401 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13402 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13403 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13405 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13407 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13409 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13410 Chris January <chris.january@arm.com>
13412 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13413 * f-exp.y: Define 'KIND' token.
13414 (exp): New pattern for KIND expressions.
13415 (ptype): Handle types with a kind extension.
13416 (direct_abs_decl): Extend to spot kind extensions.
13417 (f77_keywords): Add 'kind' to the list.
13418 (push_kind_type): New function.
13419 (convert_to_kind_type): New function.
13420 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13421 * parse.c (operator_length_standard): Likewise.
13422 * parser-defs.h (enum type_pieces): Add tp_kind.
13423 * std-operator.def: Add UNOP_KIND.
13425 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13427 * f-exp.y (f_parse): Set yydebug.
13429 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13431 * f-lang.c (evaluate_subexp_f): New function.
13432 (exp_descriptor_f): New global.
13433 (f_language_defn): Use exp_descriptor_f instead of
13434 exp_descriptor_standard.
13436 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13438 * f-exp.y (struct token): Add comments.
13439 (dot_ops): Remove uppercase versions and the end marker.
13440 (f77_keywords): Likewise.
13441 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13442 entries in the dot_ops array are case insensitive, and use
13443 strncasecmp to compare strings. Also some whitespace cleanup in
13444 this area. Similar for the f77_keywords array, except entries in
13445 this list might be case sensitive.
13447 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13449 * f-exp.y (struct f77_boolean_val): Add comments.
13450 (boolean_values): Remove uppercase versions, and end marker.
13451 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13452 and use strncasecmp to achieve case insensitivity. Additionally,
13453 perform whitespace cleanup around this code.
13455 2019-03-06 Tom Tromey <tromey@adacore.com>
13457 * remote-sim.c (gdbsim_target_open): Use result of
13460 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13461 Dirk Schubert <dirk.schubert@arm.com>
13462 Chris January <chris.january@arm.com>
13464 * eval.c (evaluate_subexp_standard): Call Fortran argument
13466 * f-lang.c (struct value): A value which can be passed into a
13467 Fortran function call.
13468 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13470 (struct type): Value ready for a Fortran function call.
13471 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13473 * f-lang.h (fortran_argument_convert): Declaration.
13474 (fortran_preserve_arg_pointer): Declaration.
13475 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13477 2019-03-05 Tom Tromey <tromey@adacore.com>
13479 * python/py-prettyprint.c (print_string_repr): Remove #if.
13480 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13482 2019-03-05 Tom Tromey <tromey@adacore.com>
13484 * target.c (the_dummy_target): Move later. Change type to
13486 (initialize_targets): Don't initialize the_dummy_target.
13488 2019-03-05 Tom Tromey <tromey@adacore.com>
13490 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13491 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13493 2019-03-05 Tom Tromey <tromey@adacore.com>
13495 * windows-nat.c (windows_nat_target::attach)
13496 (windows_nat_target::detach): Don't call gdb_flush.
13497 * valprint.c (generic_val_print, val_print, val_print_string):
13498 Don't call gdb_flush.
13499 * utils.c (defaulted_query): Don't call gdb_flush.
13500 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13501 * target.c (target_announce_detach): Don't call gdb_flush.
13502 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13503 * remote.c (extended_remote_target::attach): Don't call
13505 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13506 * printcmd.c (do_examine): Don't call gdb_flush.
13507 (info_display_command): Don't call gdb_flush.
13508 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13509 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13510 * memattr.c (info_mem_command): Don't call gdb_flush.
13511 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13512 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13513 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13514 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13515 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13516 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13517 (gnu_nat_target::detach): Don't call gdb_flush.
13518 * f-valprint.c (f_val_print): Don't call gdb_flush.
13519 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13520 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13521 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13523 * c-valprint.c (c_val_print): Don't call gdb_flush.
13524 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13526 2019-03-05 Tom Tromey <tromey@adacore.com>
13528 * varobj.c (update_dynamic_varobj_children): Update.
13529 (install_default_visualizer): Use reset, not release.
13530 * value.c (set_internalvar): Update.
13531 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13532 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13533 ATTRIBUTE_UNUSED_RESULT.
13535 2019-03-05 Tom Tromey <tromey@adacore.com>
13537 * remote.c (class scoped_remote_fd) <release>: Add
13538 ATTRIBUTE_UNUSED_RESULT.
13540 2019-03-05 Tom Tromey <tromey@adacore.com>
13542 * macroexp.c (struct macro_buffer) <release>: Add
13543 ATTRIBUTE_UNUSED_RESULT.
13545 2019-03-05 Tom Tromey <tromey@adacore.com>
13547 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13548 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13549 ATTRIBUTE_UNUSED_RESULT.
13551 2019-03-05 Tom Tromey <tromey@adacore.com>
13553 * common/scoped_fd.h (class scoped_fd) <release>: Add
13554 ATTRIBUTE_UNUSED_RESULT.
13556 2019-03-05 Tom Tromey <tromey@adacore.com>
13558 * parser-defs.h (struct parser_state) <release>: Add
13559 ATTRIBUTE_UNUSED_RESULT.
13561 2019-03-05 Tom Tromey <tromey@adacore.com>
13563 * utils.h (class gdb_argv) <release>: Add
13564 ATTRIBUTE_UNUSED_RESULT.
13565 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13567 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13569 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13570 for-loop range, to avoid compiler warnings.
13572 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13573 avoid compiler warnings about unused variables.
13575 * NEWS: Mention end of support for native debugging on MS-Windows
13579 * common/netstuff.c:
13580 * gdbserver/gdbreplay.c
13581 * gdbserver/remote-utils.c:
13583 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13584 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13585 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13586 'getaddrinfo' and 'freeaddrinfo' were not available before
13587 Windows XP, and mingw.org's MinGW headers by default define
13588 _WIN32_WINNT to 0x500.
13590 2019-03-01 Gary Benson <gbenson@redhat.com>
13592 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13594 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13595 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13598 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13599 set_sigint_trap, clear_sigint_trap.
13601 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13603 * target.c (target_detach): Clear the regcache and the
13606 2019-02-27 Pedro Alves <palves@redhat.com>
13608 * utils.c (set_screen_size): When we cap the height/width sizes,
13609 tweak the corresponding command variable to show "unlimited":
13611 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13612 Pedro Alves <palves@redhat.com>
13614 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13615 before calling rl_set_screen_size.
13617 2019-02-27 Tom Tromey <tromey@adacore.com>
13619 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13621 * python/py-value.c: Remove Python 2.4 workaround.
13622 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13624 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13625 Python 2.4 workaround.
13626 * python/python-internal.h: Remove Python 2.4 comment.
13627 (Py_ssize_t): Don't define.
13628 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13629 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13630 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13631 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13632 * python/python.c (do_start_initialization): Remove Python 2.4
13634 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13635 (print_children): Remove Python 2.4 workaround.
13636 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13638 (CHARBUFFERPROC_NAME): Remove.
13639 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13640 Python 2.4 workaround.
13642 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13644 * NEWS: Note minimum Python version.
13646 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13648 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13649 code from these functions. Remove corresponding ifdefs. Use
13650 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13651 Remove gotos and target of gotos.
13652 (infpy_search_memory): Likewise.
13654 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13656 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13657 (hppa_gdbarch_init): Don't register deleted functions with
13660 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13662 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13663 (h8300_unwind_sp): Delete.
13664 (h8300_dummy_id): Delete.
13665 (h8300_gdbarch_init): Don't register deleted functions with
13668 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13670 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13671 (ft32_unwind_pc): Delete.
13672 (ft32_unwind_sp): Delete.
13673 (ft32_gdbarch_init): Don't register deleted functions with
13676 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13678 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13679 (frv_unwind_pc): Delete.
13680 (frv_unwind_sp): Delete.
13681 (frv_gdbarch_init): Don't register deleted functions with
13684 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13686 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13687 (riscv_unwind_pc): Delete.
13688 (riscv_unwind_sp): Delete.
13689 (riscv_gdbarch_init): Don't register deleted functions with
13692 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13694 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13695 (csky_unwind_pc): Delete.
13696 (csky_unwind_sp): Delete.
13697 (csky_gdbarch_init): Don't register deleted functions with
13700 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13702 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13703 (cris_unwind_pc): Delete.
13704 (cris_unwind_sp): Delete.
13705 (cris_gdbarch_init): Don't register deleted functions with
13708 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13710 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13711 (bfin_unwind_pc): Delete.
13712 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13714 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13716 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13717 (arm_unwind_pc): Delete.
13718 (arm_unwind_sp): Delete.
13719 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13721 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13723 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13724 (arc_unwind_pc): Delete.
13725 (arc_unwind_sp): Delete.
13726 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13728 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13730 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13731 (alpha_unwind_pc): Delete.
13732 (alpha_gdbarch_init): Don't register deleted functions with
13735 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13737 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13738 (aarch64_unwind_pc): Delete.
13739 (aarch64_unwind_sp): Delete.
13740 (aarch64_gdbarch_init): Don't register deleted functions with
13743 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13745 * gdbtypes.c (type_align): Don't consider static members when
13746 computing structure alignment.
13748 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13750 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13751 return 0 for other types.
13752 * arch-utils.c (default_type_align): Always return 0.
13753 * gdbarch.h: Regenerate.
13754 * gdbarch.sh (type_align): Extend comment.
13755 * gdbtypes.c (type_align): Add additional comments, always call
13756 gdbarch_type_align before applying the default rules.
13757 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13758 generic code will then apply a suitable default.
13759 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13760 types, return 0 for other types.
13762 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13764 * NEWS: Create a new section for the next release branch.
13765 Rename the section of the current branch, now that it has
13768 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13770 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13771 * version.in: Bump version to 8.3.50.DATE-git.
13773 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13775 * aix-thread.c (ptid_cmp): Remove unused variable.
13776 (get_signaled_thread): Likewise.
13777 (store_regs_user_thread): Likewise.
13778 (store_regs_kernel_thread): Likewise.
13779 (fetch_regs_kernel_thread): Remove shadowed variable.
13781 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13783 * features/riscv/32bit-cpu.xml: Add register numbers.
13784 * features/riscv/32bit-fpu.c: Regenerate.
13785 * features/riscv/32bit-fpu.xml: Add register numbers.
13786 * features/riscv/64bit-cpu.xml: Add register numbers.
13787 * features/riscv/64bit-fpu.c: Regenerate.
13788 * features/riscv/64bit-fpu.xml: Add register numbers.
13790 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13792 * NEWS: Mention two argument form of gdb.Value constructor.
13793 * python/py-value.c (convert_buffer_and_type_to_value): New
13795 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13796 Add support for handling an optional second argument. Call
13797 convert_buffer_and_type_to_value as appropriate.
13798 * python/python-internal.h (Py_buffer_deleter): New struct.
13799 (Py_buffer_up): New typedef.
13801 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13803 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13804 instead of releasing ownership.
13806 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13808 * dwarf2read.c (open_and_init_dwp_file): Call
13809 elf_numsections instead of bfd_count_sections to initialize
13810 dwp_file->num_sections.
13812 2019-02-25 Tom Tromey <tromey@adacore.com>
13814 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13816 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13818 * gcore.in: Add '--readnever' option when invoking GDB.
13820 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13822 * MAINTAINERS: Update my email address.
13824 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13826 * build-id.c (build_id_to_debug_bfd_1): New function.
13827 (build_id_to_debug_bfd): Look for separate debug file in
13830 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13832 * gdbarch.sh: Update the copyright year range that is placed into
13835 2019-02-22 Keith Seitz <keiths@redhat.com>
13838 * linespec.c (create_sals_line_offset): Search for the default
13839 symtab's filename instead of its fullname.
13841 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13843 * NEWS: Update style defaults.
13845 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13847 * main.c (captured_main_1): Disable styling in batch mode.
13849 2019-02-20 Tom Tromey <tom@tromey.com>
13851 * symtab.c (symtab_symbol_info): Fix typos.
13853 2019-02-20 Tom Tromey <tromey@adacore.com>
13855 * findcmd.c (_initialize_mem_search): Use upper case for
13856 metasyntactic variables.
13858 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13860 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13861 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13863 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13865 * top.h (source_file_name): Change to std::string.
13866 * top.c (source_file_name): Likewise.
13867 (command_line_input): Adjust.
13868 * cli/cli-script.c (script_from_file): Adjust.
13870 2019-02-19 Tom Tromey <tromey@adacore.com>
13872 * ravenscar-thread.c
13873 (ravenscar_thread_target::update_thread_list): Don't call
13874 ada_build_task_list.
13875 * ada-lang.h (ada_build_task_list): Don't declare.
13876 * ada-tasks.c (struct ada_tasks_inferior_data)
13877 <task_list_valid_p>: Now bool.
13878 (read_known_tasks, ada_task_list_changed)
13879 (ada_tasks_invalidate_inferior_data): Update.
13880 (read_known_tasks_array): Return bool.
13881 (read_known_tasks_list): Likewise.
13882 (read_known_tasks): Return void.
13883 (ada_build_task_list): Now static.
13885 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13887 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13888 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13890 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13892 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13893 variant for ada_tasks_pspace_data_handle and
13894 ada_tasks_inferior_data_handle.
13895 (ada_tasks_pspace_data_cleanup): New function.
13896 (ada_tasks_inferior_data_cleanup): New function.
13898 2019-02-17 Tom Tromey <tom@tromey.com>
13900 * macrotab.h (macro_source_fullname): Return a std::string.
13901 * macrotab.c (macro_include, check_for_redefinition)
13902 (macro_undef, macro_lookup_definition, foreach_macro)
13903 (foreach_macro_in_scope): Update.
13904 (macro_source_fullname): Return a std::string.
13905 * macrocmd.c (show_pp_source_pos): Update.
13907 2019-02-17 Tom Tromey <tom@tromey.com>
13909 * macrocmd.c (show_pp_source_pos): Style the file names.
13911 2019-02-17 Tom Tromey <tom@tromey.com>
13914 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13916 2019-02-17 Tom Tromey <tom@tromey.com>
13918 * ada-lang.c (user_select_syms): Use filtered printing.
13919 * utils.c (wrap_style): New global.
13920 (desired_style): Remove.
13921 (emit_style_escape): Add stream parameter.
13922 (set_output_style, reset_terminal_style, prompt_for_continue):
13924 (flush_wrap_buffer): Only flush gdb_stdout.
13925 (wrap_here): Set wrap_style.
13926 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13927 treat escape sequences as a character. Change when wrap buffer is
13929 (fputs_styled): Do not set the output style when the default is
13931 * ui-style.h (struct ui_file_style) <is_default>: New method.
13932 * source.c (print_source_lines_base): Emit escape sequences in one
13935 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13937 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13938 integers and enumeration types.
13940 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13942 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13943 instead of lookup_symbol_in_language
13944 (do_exact_match): New function.
13945 (ada_get_symbol_name_matcher): Return do_exact_match when
13946 doing a verbatim match.
13948 2019-02-15 Tom Tromey <tromey@adacore.com>
13950 * ravenscar-thread.c (ravenscar_thread_target::resume)
13951 (ravenscar_thread_target::wait): Special case wildcard requests.
13953 2019-02-15 Tom Tromey <tromey@adacore.com>
13955 * ravenscar-thread.c (base_ptid): Remove.
13956 (struct ravenscar_thread_target) <close>: New method.
13957 <m_base_ptid>: New member.
13958 <update_inferior_ptid, active_task, task_is_currently_active,
13959 runtime_initialized>: Declare methods.
13960 <ravenscar_thread_target>: Add constructor.
13961 (ravenscar_thread_target::task_is_currently_active)
13962 (ravenscar_thread_target::update_inferior_ptid)
13963 (ravenscar_runtime_initialized): Rename. Now methods.
13964 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13965 (ravenscar_thread_target::update_thread_list): Update.
13966 (ravenscar_thread_target::active_task): Now method.
13967 (ravenscar_thread_target::store_registers)
13968 (ravenscar_thread_target::prepare_to_store)
13969 (ravenscar_thread_target::prepare_to_store)
13970 (ravenscar_thread_target::mourn_inferior): Update.
13971 (ravenscar_inferior_created): Use "new" to create target.
13972 (ravenscar_thread_target::get_ada_task_ptid): Update.
13973 (_initialize_ravenscar): Don't initialize base_ptid.
13974 (ravenscar_ops): Remove global.
13976 2019-02-15 Tom Tromey <tromey@adacore.com>
13978 * target.h (push_target): Declare new overload.
13979 * target.c (push_target): New overload, taking an rvalue reference.
13980 * remote.c (remote_target::open_1): Use push_target overload.
13981 * corelow.c (core_target_open): Use push_target overload.
13983 2019-02-15 Tom Tromey <tromey@adacore.com>
13985 * ravenscar-thread.c (is_ravenscar_task)
13986 (ravenscar_task_is_currently_active): Return bool.
13987 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13988 (_initialize_ravenscar): Remove "(void)".
13989 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13992 2019-02-15 Tom Tromey <tromey@adacore.com>
13994 * ravenscar-thread.c (ravenscar_runtime_initializer)
13995 (has_ravenscar_runtime, get_running_thread_id)
13996 (ravenscar_thread_target::resume): Fix indentation.
13998 2019-02-15 Tom Tromey <tromey@adacore.com>
14000 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14001 from ravenscar_arch_ops.
14002 (sparc_ravenscar_ops::fetch_registers)
14003 (sparc_ravenscar_ops::store_registers): Now methods.
14004 (sparc_ravenscar_prepare_to_store): Remove.
14005 (sparc_ravenscar_ops): Redefine.
14006 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14007 methods and destructor. Remove members.
14008 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14009 (ravenscar_thread_target::store_registers)
14010 (ravenscar_thread_target::prepare_to_store): Update.
14011 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14013 (struct ppc_ravenscar_powerpc_ops): Derive from
14014 ravenscar_arch_ops.
14015 (ppc_ravenscar_powerpc_ops::fetch_registers)
14016 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14017 (ppc_ravenscar_powerpc_ops): Redefine.
14018 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14019 (ppc_ravenscar_e500_ops::fetch_registers)
14020 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14021 (ppc_ravenscar_e500_ops): Redefine.
14022 * aarch64-ravenscar-thread.c
14023 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14024 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14025 (aarch64_ravenscar_fetch_registers)
14026 (aarch64_ravenscar_store_registers): Now methods.
14027 (aarch64_ravenscar_ops): Redefine.
14029 2019-02-15 Tom Tromey <tromey@adacore.com>
14031 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14032 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14033 (ravenscar_thread_target::stopped_by_watchpoint)
14034 (ravenscar_thread_target::stopped_data_address)
14035 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14037 2019-02-15 Tom Tromey <tromey@adacore.com>
14039 * ravenscar-thread.c: Fix some typos.
14041 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14042 Tom Tromey <tromey@adacore.com>
14044 * ada-lang.c (ada_exception_sal): Change addr_string to a
14046 (create_ada_exception_catchpoint): Update.
14048 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14049 Tom Tromey <tromey@adacore.com>
14051 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14052 (bp_location_ops): Remove.
14053 (base_breakpoint_allocate_location): Update.
14054 (free_bp_location): Update.
14055 * ada-lang.c (class ada_catchpoint_location)
14056 <ada_catchpoint_location>: Remove ops parameter.
14057 (ada_catchpoint_location_dtor): Remove.
14058 (ada_catchpoint_location_ops): Remove.
14059 (allocate_location_exception): Update.
14060 * breakpoint.h (struct bp_location_ops): Remove.
14061 (class bp_location) <bp_location>: Remove bp_location_ops
14063 <~bp_location>: Add destructor.
14066 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14067 Pedro Alves <palves@redhat.com>
14069 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14072 2019-02-14 David Michael <fedora.dm0@gmail.com>
14073 Samuel Thibault <samuel.thibault@gnu.org>
14074 Thomas Schwinge <thomas@codesourcery.com>
14076 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14077 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14079 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14081 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14082 (check_empty): Use "const char *".
14084 * gnu-nat.c (gnu_nat_target::detach): Instead of
14085 'detach_inferior (pid)' call
14086 'detach_inferior (find_inferior_pid (pid))'.
14088 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14089 'nat/fork-inferior.o'.
14090 * gnu-nat.c: #include "nat/fork-inferior.h".
14092 * gnu-nat.c (gnu_nat_target::detach): Instead of
14093 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14094 * gnu-nat.h: #include "inf-child.h".
14095 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14096 'i386_gnu_nat_target::fetch_registers'.
14097 (gnu_store_registers): Rename/move to
14098 'i386_gnu_nat_target::store_registers'.
14100 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14101 * gnu-nat.h (mach_thread_info): New function.
14102 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14104 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14106 2019-02-14 Frederic Konrad <konrad@adacore.com>
14108 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14110 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14112 * windows-nat.c (windows_add_thread): Add new parameter
14113 "main_thread_p" with default value set to false. Update
14114 function documentation as well as all callers.
14115 (windows_delete_thread): Likewise.
14116 (fake_create_process): Update call to windows_add_thread.
14117 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14118 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14119 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14120 call to windows_delete_thread.
14122 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14124 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14126 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14128 * symfile.c (find_separate_debug_file): Use canonical path of
14129 sysroot with child_path instead of gdb_sysroot if it is valid.
14131 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14133 * symfile.c (find_separate_debug_file): Use child_path to
14134 determine if an object file is under a sysroot.
14136 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14139 unittests/child-path-selftests.c.
14140 * common/pathstuff.c (child_path): New function.
14141 * common/pathstuff.h (child_path): New prototype.
14142 * unittests/child-path-selftests.c: New file.
14144 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14146 * symfile.c (find_separate_debug_file): Look for separate debug
14147 files in debug directories under the sysroot.
14149 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14151 * symtab.h (struct minimal_symbol data_p): New const method.
14152 (struct minimal_symbol text_p): Likewise.
14153 * symtab.c (output_source_filename): Use file name style
14154 to print file name.
14155 (print_symbol_info): Likewise.
14156 (print_msymbol_info): Use address style to print addresses.
14157 Use function name style to print executable text symbols.
14158 (expand_symtab_containing_pc): Use data_p.
14159 (find_pc_sect_compunit_symtab): Likewise.
14161 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14163 * breakpoint.c (describe_other_breakpoints): Use address style
14164 to print addresses.
14165 (say_where): Likewise.
14167 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14169 * ada-typeprint.c (print_func_type): Print function name
14170 style to print function name.
14171 * c-typeprint.c (c_print_type_1): Likewise.
14173 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14175 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14178 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14180 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14183 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14185 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14186 TYPE_CODE_REF types.
14188 2019-02-08 Jim Wilson <jimw@sifive.com>
14190 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14191 (riscv_linux_fregset): New.
14192 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14194 2019-02-07 Tom Tromey <tom@tromey.com>
14196 * thread.c (thread_cancel_execution_command): Update.
14197 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14199 (struct thread_fsm_ops): Remove.
14200 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14201 (thread_fsm_should_stop, thread_fsm_return_value)
14202 (thread_fsm_set_finished, thread_fsm_finished_p)
14203 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14205 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14206 * infrun.c (clear_proceed_status_thread)
14207 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14208 (print_stop_event): Update.
14209 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14211 (step_command_fsm_ops): Remove.
14212 (new_step_command_fsm): Remove.
14214 (step_command_fsm::should_stop): Rename from
14215 step_command_fsm_should_stop.
14216 (step_command_fsm::clean_up): Rename from
14217 step_command_fsm_clean_up.
14218 (step_command_fsm::do_async_reply_reason): Rename from
14219 step_command_fsm_async_reply_reason.
14220 (struct until_next_fsm): Inherit from thread_fsm. Add
14222 (until_next_fsm_ops): Remove.
14223 (new_until_next_fsm): Remove.
14224 (until_next_fsm::should_stop): Rename from
14225 until_next_fsm_should_stop.
14226 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14227 (until_next_fsm::do_async_reply_reason): Rename from
14228 until_next_fsm_async_reply_reason.
14229 (struct finish_command_fsm): Inherit from thread_fsm. Add
14230 constructor. Change type of breakpoint.
14231 (finish_command_fsm_ops): Remove.
14232 (new_finish_command_fsm): Remove.
14233 (finish_command_fsm::should_stop): Rename from
14234 finish_command_fsm_should_stop.
14235 (finish_command_fsm::clean_up): Rename from
14236 finish_command_fsm_clean_up.
14237 (finish_command_fsm::return_value): Rename from
14238 finish_command_fsm_return_value.
14239 (finish_command_fsm::do_async_reply_reason): Rename from
14240 finish_command_fsm_async_reply_reason.
14241 (finish_command): Update.
14242 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14244 (call_thread_fsm_ops): Remove.
14245 (call_thread_fsm::call_thread_fsm): Rename from
14246 new_call_thread_fsm.
14247 (call_thread_fsm::should_stop): Rename from
14248 call_thread_fsm_should_stop.
14249 (call_thread_fsm::should_notify_stop): Rename from
14250 call_thread_fsm_should_notify_stop.
14251 (run_inferior_call, call_function_by_hand_dummy): Update.
14252 * cli/cli-interp.c (should_print_stop_to_console): Update.
14253 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14254 Add constructor. Change type of location_breakpoint,
14256 (until_break_fsm_ops): Remove.
14257 (new_until_break_fsm): Remove.
14258 (until_break_fsm::should_stop): Rename from
14259 until_break_fsm_should_stop.
14260 (until_break_fsm::clean_up): Rename from
14261 until_break_fsm_clean_up.
14262 (until_break_fsm::do_async_reply_reason): Rename from
14263 until_break_fsm_async_reply_reason.
14264 (until_break_command): Update.
14265 * thread-fsm.c: Remove.
14266 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14268 2019-02-07 Tom Tromey <tom@tromey.com>
14270 * yy-remap.h: Add include guard.
14271 * xtensa-tdep.h: Add include guard.
14272 * xcoffread.h: Rename include guard.
14273 * varobj-iter.h: Add include guard.
14274 * tui/tui.h: Rename include guard.
14275 * tui/tui-winsource.h: Rename include guard.
14276 * tui/tui-wingeneral.h: Rename include guard.
14277 * tui/tui-windata.h: Rename include guard.
14278 * tui/tui-win.h: Rename include guard.
14279 * tui/tui-stack.h: Rename include guard.
14280 * tui/tui-source.h: Rename include guard.
14281 * tui/tui-regs.h: Rename include guard.
14282 * tui/tui-out.h: Rename include guard.
14283 * tui/tui-layout.h: Rename include guard.
14284 * tui/tui-io.h: Rename include guard.
14285 * tui/tui-hooks.h: Rename include guard.
14286 * tui/tui-file.h: Rename include guard.
14287 * tui/tui-disasm.h: Rename include guard.
14288 * tui/tui-data.h: Rename include guard.
14289 * tui/tui-command.h: Rename include guard.
14290 * tic6x-tdep.h: Add include guard.
14291 * target/waitstatus.h: Rename include guard.
14292 * target/wait.h: Rename include guard.
14293 * target/target.h: Rename include guard.
14294 * target/resume.h: Rename include guard.
14295 * target-float.h: Rename include guard.
14296 * stabsread.h: Add include guard.
14297 * rs6000-tdep.h: Add include guard.
14298 * riscv-fbsd-tdep.h: Add include guard.
14299 * regformats/regdef.h: Rename include guard.
14300 * record.h: Rename include guard.
14301 * python/python.h: Rename include guard.
14302 * python/python-internal.h: Rename include guard.
14303 * python/py-stopevent.h: Rename include guard.
14304 * python/py-ref.h: Rename include guard.
14305 * python/py-record.h: Rename include guard.
14306 * python/py-record-full.h: Rename include guard.
14307 * python/py-record-btrace.h: Rename include guard.
14308 * python/py-instruction.h: Rename include guard.
14309 * python/py-events.h: Rename include guard.
14310 * python/py-event.h: Rename include guard.
14311 * procfs.h: Add include guard.
14312 * proc-utils.h: Add include guard.
14313 * p-lang.h: Add include guard.
14314 * or1k-tdep.h: Rename include guard.
14315 * observable.h: Rename include guard.
14316 * nto-tdep.h: Rename include guard.
14317 * nat/x86-linux.h: Rename include guard.
14318 * nat/x86-linux-dregs.h: Rename include guard.
14319 * nat/x86-gcc-cpuid.h: Add include guard.
14320 * nat/x86-dregs.h: Rename include guard.
14321 * nat/x86-cpuid.h: Rename include guard.
14322 * nat/ppc-linux.h: Rename include guard.
14323 * nat/mips-linux-watch.h: Rename include guard.
14324 * nat/linux-waitpid.h: Rename include guard.
14325 * nat/linux-ptrace.h: Rename include guard.
14326 * nat/linux-procfs.h: Rename include guard.
14327 * nat/linux-osdata.h: Rename include guard.
14328 * nat/linux-nat.h: Rename include guard.
14329 * nat/linux-namespaces.h: Rename include guard.
14330 * nat/linux-btrace.h: Rename include guard.
14331 * nat/glibc_thread_db.h: Rename include guard.
14332 * nat/gdb_thread_db.h: Rename include guard.
14333 * nat/gdb_ptrace.h: Rename include guard.
14334 * nat/fork-inferior.h: Rename include guard.
14335 * nat/amd64-linux-siginfo.h: Rename include guard.
14336 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14337 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14338 * nat/aarch64-linux.h: Rename include guard.
14339 * nat/aarch64-linux-hw-point.h: Rename include guard.
14340 * mn10300-tdep.h: Add include guard.
14341 * mips-linux-tdep.h: Add include guard.
14342 * mi/mi-parse.h: Rename include guard.
14343 * mi/mi-out.h: Rename include guard.
14344 * mi/mi-main.h: Rename include guard.
14345 * mi/mi-interp.h: Rename include guard.
14346 * mi/mi-getopt.h: Rename include guard.
14347 * mi/mi-console.h: Rename include guard.
14348 * mi/mi-common.h: Rename include guard.
14349 * mi/mi-cmds.h: Rename include guard.
14350 * mi/mi-cmd-break.h: Rename include guard.
14351 * m2-lang.h: Add include guard.
14352 * location.h: Rename include guard.
14353 * linux-record.h: Rename include guard.
14354 * linux-nat.h: Add include guard.
14355 * linux-fork.h: Add include guard.
14356 * i386-darwin-tdep.h: Rename include guard.
14357 * hppa-linux-offsets.h: Add include guard.
14358 * guile/guile.h: Rename include guard.
14359 * guile/guile-internal.h: Rename include guard.
14360 * gnu-nat.h: Rename include guard.
14361 * gdb-stabs.h: Rename include guard.
14362 * frv-tdep.h: Add include guard.
14363 * f-lang.h: Add include guard.
14364 * event-loop.h: Add include guard.
14365 * darwin-nat.h: Rename include guard.
14366 * cp-abi.h: Rename include guard.
14367 * config/sparc/nm-sol2.h: Rename include guard.
14368 * config/nm-nto.h: Rename include guard.
14369 * config/nm-linux.h: Add include guard.
14370 * config/i386/nm-i386gnu.h: Rename include guard.
14371 * config/djgpp/nl_types.h: Rename include guard.
14372 * config/djgpp/langinfo.h: Rename include guard.
14373 * compile/gcc-cp-plugin.h: Add include guard.
14374 * compile/gcc-c-plugin.h: Add include guard.
14375 * compile/compile.h: Rename include guard.
14376 * compile/compile-object-run.h: Rename include guard.
14377 * compile/compile-object-load.h: Rename include guard.
14378 * compile/compile-internal.h: Rename include guard.
14379 * compile/compile-cplus.h: Rename include guard.
14380 * compile/compile-c.h: Rename include guard.
14381 * common/xml-utils.h: Rename include guard.
14382 * common/x86-xstate.h: Rename include guard.
14383 * common/version.h: Rename include guard.
14384 * common/vec.h: Rename include guard.
14385 * common/tdesc.h: Rename include guard.
14386 * common/selftest.h: Rename include guard.
14387 * common/scoped_restore.h: Rename include guard.
14388 * common/scoped_mmap.h: Rename include guard.
14389 * common/scoped_fd.h: Rename include guard.
14390 * common/safe-iterator.h: Rename include guard.
14391 * common/run-time-clock.h: Rename include guard.
14392 * common/refcounted-object.h: Rename include guard.
14393 * common/queue.h: Rename include guard.
14394 * common/ptid.h: Rename include guard.
14395 * common/print-utils.h: Rename include guard.
14396 * common/preprocessor.h: Rename include guard.
14397 * common/pathstuff.h: Rename include guard.
14398 * common/observable.h: Rename include guard.
14399 * common/netstuff.h: Rename include guard.
14400 * common/job-control.h: Rename include guard.
14401 * common/host-defs.h: Rename include guard.
14402 * common/gdb_wait.h: Rename include guard.
14403 * common/gdb_vecs.h: Rename include guard.
14404 * common/gdb_unlinker.h: Rename include guard.
14405 * common/gdb_unique_ptr.h: Rename include guard.
14406 * common/gdb_tilde_expand.h: Rename include guard.
14407 * common/gdb_sys_time.h: Rename include guard.
14408 * common/gdb_string_view.h: Rename include guard.
14409 * common/gdb_splay_tree.h: Rename include guard.
14410 * common/gdb_setjmp.h: Rename include guard.
14411 * common/gdb_ref_ptr.h: Rename include guard.
14412 * common/gdb_optional.h: Rename include guard.
14413 * common/gdb_locale.h: Rename include guard.
14414 * common/gdb_assert.h: Rename include guard.
14415 * common/filtered-iterator.h: Rename include guard.
14416 * common/filestuff.h: Rename include guard.
14417 * common/fileio.h: Rename include guard.
14418 * common/environ.h: Rename include guard.
14419 * common/common-utils.h: Rename include guard.
14420 * common/common-types.h: Rename include guard.
14421 * common/common-regcache.h: Rename include guard.
14422 * common/common-inferior.h: Rename include guard.
14423 * common/common-gdbthread.h: Rename include guard.
14424 * common/common-exceptions.h: Rename include guard.
14425 * common/common-defs.h: Rename include guard.
14426 * common/common-debug.h: Rename include guard.
14427 * common/cleanups.h: Rename include guard.
14428 * common/buffer.h: Rename include guard.
14429 * common/btrace-common.h: Rename include guard.
14430 * common/break-common.h: Rename include guard.
14431 * cli/cli-utils.h: Rename include guard.
14432 * cli/cli-style.h: Rename include guard.
14433 * cli/cli-setshow.h: Rename include guard.
14434 * cli/cli-script.h: Rename include guard.
14435 * cli/cli-interp.h: Rename include guard.
14436 * cli/cli-decode.h: Rename include guard.
14437 * cli/cli-cmds.h: Rename include guard.
14438 * charset-list.h: Add include guard.
14439 * buildsym-legacy.h: Rename include guard.
14440 * bfin-tdep.h: Add include guard.
14441 * ax.h: Rename include guard.
14442 * arm-linux-tdep.h: Add include guard.
14443 * arm-fbsd-tdep.h: Add include guard.
14444 * arch/xtensa.h: Rename include guard.
14445 * arch/tic6x.h: Add include guard.
14446 * arch/i386.h: Add include guard.
14447 * arch/arm.h: Rename include guard.
14448 * arch/arm-linux.h: Rename include guard.
14449 * arch/arm-get-next-pcs.h: Rename include guard.
14450 * arch/amd64.h: Add include guard.
14451 * arch/aarch64-insn.h: Rename include guard.
14452 * arch-utils.h: Rename include guard.
14453 * annotate.h: Add include guard.
14454 * amd64-darwin-tdep.h: Rename include guard.
14455 * aarch64-linux-tdep.h: Add include guard.
14456 * aarch64-fbsd-tdep.h: Add include guard.
14457 * aarch32-linux-nat.h: Add include guard.
14459 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14461 * macrotab.c (macro_define_internal): New function that
14462 factorizes macro_define_object_internal and macro_define_function
14464 (macro_define_object_internal): Use macro_define_internal.
14465 (macro_define_function): Likewise.
14467 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14469 * macrocmd.c (extract_identifier): Return
14470 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14473 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14475 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14477 2019-02-05 Tom Tromey <tom@tromey.com>
14479 * target.c (target_stack::unpush): Move assertion earlier.
14481 2019-01-30 Tom Tromey <tom@tromey.com>
14484 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14485 (gdbpy_parse_and_eval): Likewise.
14486 * python/python-internal.h (gdbpy_allow_threads): New class.
14488 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14490 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14491 (aarch64_fbsd_fpregmap): Move earlier.
14492 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14493 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14494 instead of individual calls to trad_frame_set_reg_addr.
14495 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14497 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14498 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14499 instead of individual calls to trad_frame_set_reg_addr.
14501 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14503 * CONTRIBUTE: Replace contribution list with wiki link.
14505 2019-01-25 Tom Tromey <tom@tromey.com>
14507 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14509 2019-01-25 Tom Tromey <tom@tromey.com>
14511 * xtensa-linux-nat.c: Fix common/ includes.
14512 * xml-support.h: Fix common/ includes.
14513 * xml-support.c: Fix common/ includes.
14514 * x86-linux-nat.c: Fix common/ includes.
14515 * windows-nat.c: Fix common/ includes.
14516 * varobj.h: Fix common/ includes.
14517 * varobj.c: Fix common/ includes.
14518 * value.c: Fix common/ includes.
14519 * valops.c: Fix common/ includes.
14520 * utils.c: Fix common/ includes.
14521 * unittests/xml-utils-selftests.c: Fix common/ includes.
14522 * unittests/utils-selftests.c: Fix common/ includes.
14523 * unittests/unpack-selftests.c: Fix common/ includes.
14524 * unittests/tracepoint-selftests.c: Fix common/ includes.
14525 * unittests/style-selftests.c: Fix common/ includes.
14526 * unittests/string_view-selftests.c: Fix common/ includes.
14527 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14528 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14529 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14530 * unittests/rsp-low-selftests.c: Fix common/ includes.
14531 * unittests/parse-connection-spec-selftests.c: Fix common/
14533 * unittests/optional-selftests.c: Fix common/ includes.
14534 * unittests/offset-type-selftests.c: Fix common/ includes.
14535 * unittests/observable-selftests.c: Fix common/ includes.
14536 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14537 * unittests/memrange-selftests.c: Fix common/ includes.
14538 * unittests/memory-map-selftests.c: Fix common/ includes.
14539 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14540 * unittests/function-view-selftests.c: Fix common/ includes.
14541 * unittests/environ-selftests.c: Fix common/ includes.
14542 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14543 * unittests/common-utils-selftests.c: Fix common/ includes.
14544 * unittests/cli-utils-selftests.c: Fix common/ includes.
14545 * unittests/array-view-selftests.c: Fix common/ includes.
14546 * ui-file.c: Fix common/ includes.
14547 * tui/tui-io.c: Fix common/ includes.
14548 * tracepoint.h: Fix common/ includes.
14549 * tracepoint.c: Fix common/ includes.
14550 * tracefile-tfile.c: Fix common/ includes.
14551 * top.h: Fix common/ includes.
14552 * top.c: Fix common/ includes.
14553 * thread.c: Fix common/ includes.
14554 * target/waitstatus.h: Fix common/ includes.
14555 * target/waitstatus.c: Fix common/ includes.
14556 * target.h: Fix common/ includes.
14557 * target.c: Fix common/ includes.
14558 * target-memory.c: Fix common/ includes.
14559 * target-descriptions.c: Fix common/ includes.
14560 * symtab.h: Fix common/ includes.
14561 * symfile.c: Fix common/ includes.
14562 * stap-probe.c: Fix common/ includes.
14563 * spu-linux-nat.c: Fix common/ includes.
14564 * sparc-nat.c: Fix common/ includes.
14565 * source.c: Fix common/ includes.
14566 * solib.c: Fix common/ includes.
14567 * solib-target.c: Fix common/ includes.
14568 * ser-unix.c: Fix common/ includes.
14569 * ser-tcp.c: Fix common/ includes.
14570 * ser-pipe.c: Fix common/ includes.
14571 * ser-base.c: Fix common/ includes.
14572 * selftest-arch.c: Fix common/ includes.
14573 * s12z-tdep.c: Fix common/ includes.
14574 * rust-exp.y: Fix common/ includes.
14575 * rs6000-aix-tdep.c: Fix common/ includes.
14576 * riscv-tdep.c: Fix common/ includes.
14577 * remote.c: Fix common/ includes.
14578 * remote-notif.h: Fix common/ includes.
14579 * remote-fileio.h: Fix common/ includes.
14580 * remote-fileio.c: Fix common/ includes.
14581 * regcache.h: Fix common/ includes.
14582 * regcache.c: Fix common/ includes.
14583 * record-btrace.c: Fix common/ includes.
14584 * python/python.c: Fix common/ includes.
14585 * python/py-type.c: Fix common/ includes.
14586 * python/py-inferior.c: Fix common/ includes.
14587 * progspace.h: Fix common/ includes.
14588 * producer.c: Fix common/ includes.
14589 * procfs.c: Fix common/ includes.
14590 * proc-api.c: Fix common/ includes.
14591 * printcmd.c: Fix common/ includes.
14592 * ppc-linux-nat.c: Fix common/ includes.
14593 * parser-defs.h: Fix common/ includes.
14594 * osdata.c: Fix common/ includes.
14595 * obsd-nat.c: Fix common/ includes.
14596 * nat/x86-linux.c: Fix common/ includes.
14597 * nat/x86-linux-dregs.c: Fix common/ includes.
14598 * nat/x86-dregs.h: Fix common/ includes.
14599 * nat/x86-dregs.c: Fix common/ includes.
14600 * nat/ppc-linux.c: Fix common/ includes.
14601 * nat/mips-linux-watch.h: Fix common/ includes.
14602 * nat/mips-linux-watch.c: Fix common/ includes.
14603 * nat/linux-waitpid.c: Fix common/ includes.
14604 * nat/linux-ptrace.h: Fix common/ includes.
14605 * nat/linux-ptrace.c: Fix common/ includes.
14606 * nat/linux-procfs.c: Fix common/ includes.
14607 * nat/linux-personality.c: Fix common/ includes.
14608 * nat/linux-osdata.c: Fix common/ includes.
14609 * nat/linux-namespaces.c: Fix common/ includes.
14610 * nat/linux-btrace.h: Fix common/ includes.
14611 * nat/linux-btrace.c: Fix common/ includes.
14612 * nat/fork-inferior.c: Fix common/ includes.
14613 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14614 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14615 * nat/aarch64-linux.c: Fix common/ includes.
14616 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14617 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14618 * namespace.h: Fix common/ includes.
14619 * mips-linux-tdep.c: Fix common/ includes.
14620 * minsyms.c: Fix common/ includes.
14621 * mi/mi-parse.h: Fix common/ includes.
14622 * mi/mi-main.c: Fix common/ includes.
14623 * mi/mi-cmd-env.c: Fix common/ includes.
14624 * memrange.h: Fix common/ includes.
14625 * memattr.c: Fix common/ includes.
14626 * maint.h: Fix common/ includes.
14627 * maint.c: Fix common/ includes.
14628 * main.c: Fix common/ includes.
14629 * machoread.c: Fix common/ includes.
14630 * location.c: Fix common/ includes.
14631 * linux-thread-db.c: Fix common/ includes.
14632 * linux-nat.c: Fix common/ includes.
14633 * linux-fork.c: Fix common/ includes.
14634 * inline-frame.c: Fix common/ includes.
14635 * infrun.c: Fix common/ includes.
14636 * inflow.c: Fix common/ includes.
14637 * inferior.h: Fix common/ includes.
14638 * inferior.c: Fix common/ includes.
14639 * infcmd.c: Fix common/ includes.
14640 * inf-ptrace.c: Fix common/ includes.
14641 * inf-child.c: Fix common/ includes.
14642 * ia64-linux-nat.c: Fix common/ includes.
14643 * i387-tdep.c: Fix common/ includes.
14644 * i386-tdep.c: Fix common/ includes.
14645 * i386-linux-tdep.c: Fix common/ includes.
14646 * i386-linux-nat.c: Fix common/ includes.
14647 * i386-go32-tdep.c: Fix common/ includes.
14648 * i386-fbsd-tdep.c: Fix common/ includes.
14649 * i386-fbsd-nat.c: Fix common/ includes.
14650 * guile/scm-type.c: Fix common/ includes.
14651 * guile/guile.c: Fix common/ includes.
14652 * go32-nat.c: Fix common/ includes.
14653 * gnu-nat.c: Fix common/ includes.
14654 * gdbthread.h: Fix common/ includes.
14655 * gdbarch-selftests.c: Fix common/ includes.
14656 * gdb_usleep.c: Fix common/ includes.
14657 * gdb_select.h: Fix common/ includes.
14658 * gdb_bfd.c: Fix common/ includes.
14659 * gcore.c: Fix common/ includes.
14660 * fork-child.c: Fix common/ includes.
14661 * findvar.c: Fix common/ includes.
14662 * fbsd-nat.c: Fix common/ includes.
14663 * event-top.c: Fix common/ includes.
14664 * event-loop.c: Fix common/ includes.
14665 * dwarf2read.c: Fix common/ includes.
14666 * dwarf2loc.c: Fix common/ includes.
14667 * dwarf2-frame.c: Fix common/ includes.
14668 * dwarf-index-cache.c: Fix common/ includes.
14669 * dtrace-probe.c: Fix common/ includes.
14670 * disasm-selftests.c: Fix common/ includes.
14671 * defs.h: Fix common/ includes.
14672 * csky-tdep.c: Fix common/ includes.
14673 * cp-valprint.c: Fix common/ includes.
14674 * cp-support.h: Fix common/ includes.
14675 * cp-support.c: Fix common/ includes.
14676 * corelow.c: Fix common/ includes.
14677 * completer.h: Fix common/ includes.
14678 * completer.c: Fix common/ includes.
14679 * compile/compile.c: Fix common/ includes.
14680 * compile/compile-loc2c.c: Fix common/ includes.
14681 * compile/compile-cplus-types.c: Fix common/ includes.
14682 * compile/compile-cplus-symbols.c: Fix common/ includes.
14683 * command.h: Fix common/ includes.
14684 * cli/cli-dump.c: Fix common/ includes.
14685 * cli/cli-cmds.c: Fix common/ includes.
14686 * charset.c: Fix common/ includes.
14687 * build-id.c: Fix common/ includes.
14688 * btrace.h: Fix common/ includes.
14689 * btrace.c: Fix common/ includes.
14690 * breakpoint.h: Fix common/ includes.
14691 * breakpoint.c: Fix common/ includes.
14693 (enum agent_op): Fix common/ includes.
14694 * ax-general.c (struct aop_map): Fix common/ includes.
14695 * ax-gdb.c: Fix common/ includes.
14696 * auxv.c: Fix common/ includes.
14697 * auto-load.c: Fix common/ includes.
14698 * arm-tdep.c: Fix common/ includes.
14699 * arch/riscv.c: Fix common/ includes.
14700 * arch/ppc-linux-common.c: Fix common/ includes.
14701 * arch/i386.c: Fix common/ includes.
14702 * arch/arm.c: Fix common/ includes.
14703 * arch/arm-linux.c: Fix common/ includes.
14704 * arch/arm-get-next-pcs.c: Fix common/ includes.
14705 * arch/amd64.c: Fix common/ includes.
14706 * arch/aarch64.c: Fix common/ includes.
14707 * arch/aarch64-insn.c: Fix common/ includes.
14708 * arch-utils.c: Fix common/ includes.
14709 * amd64-windows-tdep.c: Fix common/ includes.
14710 * amd64-tdep.c: Fix common/ includes.
14711 * amd64-sol2-tdep.c: Fix common/ includes.
14712 * amd64-obsd-tdep.c: Fix common/ includes.
14713 * amd64-nbsd-tdep.c: Fix common/ includes.
14714 * amd64-linux-tdep.c: Fix common/ includes.
14715 * amd64-linux-nat.c: Fix common/ includes.
14716 * amd64-fbsd-tdep.c: Fix common/ includes.
14717 * amd64-fbsd-nat.c: Fix common/ includes.
14718 * amd64-dicos-tdep.c: Fix common/ includes.
14719 * amd64-darwin-tdep.c: Fix common/ includes.
14720 * agent.c: Fix common/ includes.
14721 * ada-lang.h: Fix common/ includes.
14722 * ada-lang.c: Fix common/ includes.
14723 * aarch64-tdep.c: Fix common/ includes.
14725 2019-01-25 Tom Tromey <tom@tromey.com>
14727 * common/create-version.sh: Use common/version.h.
14729 2019-01-24 Pedro Alves <palves@redhat.com>
14731 * infrun.c (signal_stop, signal_print, signal_program)
14732 (signal_catch, signal_pass): Now arrays instead of pointers.
14733 (update_signals_program_target, do_target_resume)
14734 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14735 * linux-nat.c (linux_nat_target::pass_signals)
14736 (linux_nat_target::create_inferior, linux_nat_target::attach):
14738 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14739 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14740 * procfs.c (procfs_target::pass_signals): Adjust.
14741 * record-full.c (record_full_target::resume): Adjust.
14742 * remote.c (remote_target::pass_signals)
14743 (remote_target::program_signals): Adjust.
14744 * target-debug.h (target_debug_print_signals): Now takes a
14745 gdb::array_view as parameter. Adjust.
14746 * target.h (target_ops) <pass_signals, program_signals>: Replace
14747 pointer and length parameters with gdb::array_view.
14748 (target_pass_signals, target_program_signals): Likewise.
14749 * target-delegates.c: Regenerate.
14751 2019-01-24 Pedro Alves <palves@redhat.com>
14753 * common/forward-scope-exit.h
14754 (forward_scope_exit::forward_scope_exit): Pass arguments to
14755 m_bind_function directly, instead of creating a std::bind and
14758 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14760 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14761 for static members.
14762 (pass_in_v_vfp_candidate): Likewise.
14764 2019-01-23 Tom Tromey <tom@tromey.com>
14765 Pedro Alves <palves@redhat.com>
14767 * regcache.c (class regcache_invalidator): Remove.
14768 (regcache::raw_write): Use make_scope_exit.
14770 2019-01-23 Tom Tromey <tom@tromey.com>
14772 * ui-out.h (class ui_out_emit_type): Update comment.
14774 2019-01-23 Tom Tromey <tom@tromey.com>
14776 * infrun.c (fetch_inferior_event): Update comment.
14778 2019-01-23 Tom Tromey <tom@tromey.com>
14779 Pedro Alves <palves@redhat.com>
14781 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14783 (fetch_inferior_event): Use SCOPE_EXIT.
14786 2019-01-23 Tom Tromey <tom@tromey.com>
14787 Pedro Alves <palves@redhat.com>
14789 * infrun.c (disable_thread_events): Delete.
14790 (stop_all_threads): Use SCOPE_EXIT.
14792 2019-01-23 Tom Tromey <tom@tromey.com>
14793 Pedro Alves <palves@redhat.com>
14795 * symfile.c: Include forward-scope-exit.h.
14796 (clear_symtab_users_cleanup): Replace forward declaration with
14797 a FORWARD_SCOPE_EXIT.
14798 (syms_from_objfile_1): Use the forward_scope_exit and
14799 gdb::optional instead of cleanup_function.
14800 (reread_symbols): Use the forward_scope_exit instead of
14802 (clear_symtab_users_cleanup): Remove function.
14804 2019-01-23 Tom Tromey <tom@tromey.com>
14805 Pedro Alves <palves@redhat.com>
14807 * linux-nat.c: Include scope-exit.h.
14808 (cleanup_target_stop): Remove.
14809 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14812 2019-01-23 Tom Tromey <tom@tromey.com>
14813 Pedro Alves <palves@redhat.com>
14815 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14816 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14818 2019-01-23 Tom Tromey <tom@tromey.com>
14819 Andrew Burgess <andrew.burgess@embecosm.com>
14820 Pedro Alves <palves@redhat.com>
14822 * infrun.c (fetch_inferior_event): Use scope_exit.
14823 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14824 * top.c (execute_command): Use scope_exit.
14825 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14826 * utils.c (do_bpstat_clear_actions_cleanup)
14827 (make_bpstat_clear_actions_cleanup): Remove.
14829 2019-01-23 Tom Tromey <tom@tromey.com>
14830 Pedro Alves <palves@redhat.com>
14832 * infrun.c: Include "common/scope-exit.h"
14833 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14834 (wait_for_inferior): Use SCOPE_EXIT.
14835 (fetch_inferior_event): Use scope_exit.
14837 2019-01-23 Tom Tromey <tom@tromey.com>
14838 Pedro Alves <palves@redhat.com>
14840 * breakpoint.c (create_breakpoint): Remove cleanup.
14842 2019-01-23 Tom Tromey <tom@tromey.com>
14843 Andrew Burgess <andrew.burgess@embecosm.com>
14844 Pedro Alves <palves@redhat.com>
14846 2019-01-23 Pedro Alves <palves@redhat.com>
14848 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14850 2019-01-23 Pedro Alves <palves@redhat.com>
14851 Andrew Burgess <andrew.burgess@embecosm.com>
14853 * gdbthread.h: Include "common/forward-scope-exit.h".
14854 (scoped_finish_thread_state): Redefine custom class in terms of
14855 forward_scope_exit.
14857 2019-01-23 Pedro Alves <palves@redhat.com>
14858 Andrew Burgess <andrew.burgess@embecosm.com>
14860 * common/forward-scope-exit.h: New file.
14862 2019-01-23 Pedro Alves <palves@redhat.com>
14863 Andrew Burgess <andrew.burgess@embecosm.com>
14864 Tom Tromey <tom@tromey.com>
14866 * common/scope-exit.h: New file.
14868 2019-01-23 Pedro Alves <palves@redhat.com>
14870 * common/preprocessor.h (ESC): Rename to ...
14871 (ESC_PARENS): ... this.
14872 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14873 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14875 2019-01-23 Tom Tromey <tom@tromey.com>
14877 * language.h (class scoped_switch_to_sym_language_if_auto):
14878 Initialize m_lang in both cases.
14880 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14882 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14885 2019-01-22 Tom Tromey <tom@tromey.com>
14887 * corelow.c: Do not include sys/file.h.
14889 2019-01-22 Tom Tromey <tom@tromey.com>
14891 * tui/tui-wingeneral.h: Include gdb_curses.h.
14893 2019-01-22 Tom Tromey <tom@tromey.com>
14895 * source-cache.h (class source_cache) <get_source_lines,
14896 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14898 2019-01-22 Tom Tromey <tom@tromey.com>
14900 * remote-fileio.h (struct remote_target): Declare.
14902 2019-01-22 Tom Tromey <tom@tromey.com>
14904 * python/py-arch.c: Do not include py-ref.h.
14905 * python/py-bpevent.c: Do not include py-ref.h.
14906 * python/py-cmd.c: Do not include py-ref.h.
14907 * python/py-continueevent.c: Do not include py-ref.h.
14908 * python/py-event.h: Do not include py-ref.h.
14909 * python/py-evtregistry.c: Do not include py-ref.h.
14910 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14911 * python/py-frame.c: Do not include py-ref.h.
14912 * python/py-framefilter.c: Do not include py-ref.h.
14913 * python/py-function.c: Do not include py-ref.h.
14914 * python/py-infevents.c: Do not include py-ref.h.
14915 * python/py-linetable.c: Do not include py-ref.h.
14916 * python/py-objfile.c: Do not include py-ref.h.
14917 * python/py-param.c: Do not include py-ref.h.
14918 * python/py-prettyprint.c: Do not include py-ref.h.
14919 * python/py-progspace.c: Do not include py-ref.h.
14920 * python/py-symbol.c: Do not include py-ref.h.
14921 * python/py-symtab.c: Do not include py-ref.h.
14922 * python/py-type.c: Do not include py-ref.h.
14923 * python/py-unwind.c: Do not include py-ref.h.
14924 * python/py-utils.c: Do not include py-ref.h.
14925 * python/py-value.c: Do not include py-ref.h.
14926 * python/py-varobj.c: Do not include py-ref.h.
14927 * python/py-xmethods.c: Do not include py-ref.h.
14928 * python/python.c: Do not include py-ref.h.
14929 * varobj.c: Do not include py-ref.h.
14931 2019-01-22 Tom Tromey <tom@tromey.com>
14933 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14934 keyword for bcache.
14936 2019-01-22 Tom Tromey <tom@tromey.com>
14938 * compile/compile-cplus-types.c: Remove a comment by #include.
14940 2019-01-22 Tom Tromey <tom@tromey.com>
14942 * compile/gcc-c-plugin.h: Include compile-internal.h.
14944 2019-01-22 Tom Tromey <tom@tromey.com>
14946 * stabsread.c (EXTERN): Do not define.
14947 (symnum, next_symbol_text_func, processing_gcc_compilation)
14948 (within_function, global_sym_chain, global_stabs)
14949 (previous_stab_code, this_object_header_files)
14950 (n_this_object_header_files)
14951 (n_allocated_this_object_header_files): Define.
14952 * stabsread.h (EXTERN): Never define. Use "extern".
14954 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14956 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14959 2019-01-21 Tom Tromey <tom@tromey.com>
14961 * ui-out.c: Fix includes.
14962 * tui/tui-source.c: Fix includes.
14963 * target.c: Fix includes.
14964 * remote.c: Fix includes.
14965 * regcache.c: Fix includes.
14966 * python/py-block.c: Fix includes.
14967 * printcmd.c: Fix includes.
14968 * or1k-tdep.c: Fix includes.
14969 * mi/mi-main.c: Fix includes.
14970 * m32r-tdep.c: Fix includes.
14971 * csky-tdep.c: Fix includes.
14972 * compile/compile-cplus-types.c: Fix includes.
14973 * cli/cli-interp.c: Fix includes.
14975 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14977 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14980 2019-01-16 Tom Tromey <tom@tromey.com>
14982 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14984 (struct objfile) <msymbols_range>: Move from top level.
14985 <msymbols>: New method.
14986 (class objfile_msymbols): Remove.
14987 * symtab.c (default_collect_symbol_completion_matches_break_on):
14989 * symmisc.c (dump_msymbols): Update.
14990 * stabsread.c (scan_file_globals): Update.
14991 * objc-lang.c (info_selectors_command, info_classes_command)
14992 (find_methods): Update.
14993 * minsyms.c (find_solib_trampoline_target): Update.
14994 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14995 * coffread.c (coff_symfile_read): Update.
14996 * ada-lang.c (ada_lookup_simple_minsym)
14997 (ada_collect_symbol_completion_matches): Update.
14999 2019-01-16 Tom Tromey <tom@tromey.com>
15001 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15002 type. Remove no-argument constructor.
15003 <iterator::operator++>: Simplify.
15005 <end>: Use minimal_symbol_count.
15007 2019-01-16 Tom Tromey <tom@tromey.com>
15009 * objfiles.h (struct objfile) <psymtabs>: New method.
15010 (class objfile_psymtabs): Remove.
15011 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15013 <range>: New method.
15014 (require_partial_symbols): Change return type.
15015 * psymtab.c (require_partial_symbols)
15016 (psym_expand_symtabs_matching): Update.
15017 * mdebugread.c (parse_partial_symbols): Update.
15018 * dbxread.c (dbx_end_psymtab): Update.
15020 2019-01-15 Tom Tromey <tom@tromey.com>
15022 * symtab.c (lookup_objfile_from_block)
15023 (lookup_symbol_in_objfile_symtabs)
15024 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15025 (find_line_symtab, info_sources_command)
15026 (default_collect_symbol_completion_matches_break_on)
15027 (make_source_files_completion_list): Update.
15028 * symmisc.c (print_objfile_statistics, dump_objfile)
15029 (maintenance_print_symbols, maintenance_info_symtabs)
15030 (maintenance_check_symtabs, maintenance_info_line_tables):
15032 * source.c (select_source_symtab)
15033 (forget_cached_source_info_for_objfile): Update.
15034 * objfiles.h (class objfile_compunits): Remove.
15035 (struct objfile) <compunits_range>: New typedef.
15036 (compunits): New method.
15037 * objfiles.c (objfile_relocate1): Update.
15038 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15039 * maint.c (count_symtabs_and_blocks): Update.
15040 * linespec.c (iterate_over_all_matching_symtabs): Update.
15041 * cp-support.c (add_symbol_overload_list_qualified): Update.
15042 * coffread.c (coff_symtab_read): Update.
15043 * ada-lang.c (add_nonlocal_symbols)
15044 (ada_collect_symbol_completion_matches)
15045 (ada_add_global_exceptions): Update.
15047 2019-01-15 Tom Tromey <tom@tromey.com>
15049 * progspace.h (program_space) <objfiles_safe_range>: New
15051 <objfiles_safe>: New method.
15052 * objfiles.h (class all_objfiles_safe): Remove.
15053 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15054 * jit.c (jit_inferior_exit_hook): Update.
15056 2019-01-17 Tom Tromey <tom@tromey.com>
15058 * progspace.h (program_space) <objfiles_range>: New typedef.
15059 <objfiles>: New method.
15060 <objfiles_head>: Rename from objfiles.
15061 (object_files): Update.
15062 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15063 * guile/scm-pretty-print.c
15064 (ppscm_find_pretty_printer_from_objfiles): Update.
15065 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15066 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15068 * python/py-progspace.c (pspy_get_objfiles): Update.
15069 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15071 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15072 (objfpy_lookup_objfile_by_build_id): Update.
15073 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15074 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15076 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15077 (expand_symtab_containing_pc, lookup_objfile_from_block)
15078 (lookup_static_symbol, basic_lookup_transparent_type)
15079 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15080 (find_line_symtab, info_sources_command)
15081 (default_collect_symbol_completion_matches_break_on)
15082 (make_source_files_completion_list, find_main_name): Update.
15083 * symmisc.c (print_symbol_bcache_statistics)
15084 (print_objfile_statistics, maintenance_print_symbols)
15085 (maintenance_print_msymbols, maintenance_print_objfiles)
15086 (maintenance_info_symtabs, maintenance_check_symtabs)
15087 (maintenance_expand_symtabs, maintenance_info_line_tables):
15089 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15090 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15091 (map_overlay_command, unmap_overlay_command)
15092 (simple_overlay_update, expand_symtabs_matching)
15093 (map_symbol_filenames): Update.
15094 * symfile-debug.c (set_debug_symfile): Update.
15095 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15097 * source.c (select_source_symtab, forget_cached_source_info):
15099 * solib.c (solib_read_symbols): Update.
15100 * solib-spu.c (append_ocl_sos): Update.
15101 * psymtab.c (maintenance_print_psymbols)
15102 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15103 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15104 * printcmd.c (info_symbol_command): Update.
15105 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15107 * objfiles.h (class all_objfiles): Remove.
15108 * objfiles.c (have_partial_symbols, have_full_symbols)
15109 (have_minimal_symbols, qsort_cmp, update_section_map)
15110 (shared_objfile_contains_address_p)
15111 (default_iterate_over_objfiles_in_search_order): Update.
15112 * objc-lang.c (info_selectors_command, info_classes_command)
15113 (find_methods): Update.
15114 * minsyms.c (find_solib_trampoline_target): Update.
15115 * maint.c (maintenance_info_sections)
15116 (maintenance_translate_address, count_symtabs_and_blocks):
15118 * main.c (captured_main_1): Update.
15119 * linux-thread-db.c (try_thread_db_load_from_pdir)
15120 (has_libpthread): Update.
15121 * linespec.c (iterate_over_all_matching_symtabs)
15122 (search_minsyms_for_name): Update.
15123 * jit.c (jit_find_objf_with_entry_addr): Update.
15124 * hppa-tdep.c (find_unwind_entry)
15125 (hppa_lookup_stub_minimal_symbol): Update.
15126 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15128 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15129 (elf_gnu_ifunc_resolve_by_got): Update.
15130 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15131 * dwarf-index-write.c (save_gdb_index_command): Update.
15132 * cp-support.c (add_symbol_overload_list_qualified): Update.
15133 * breakpoint.c (create_overlay_event_breakpoint)
15134 (create_longjmp_master_breakpoint)
15135 (create_std_terminate_master_breakpoint)
15136 (create_exception_master_breakpoint): Update.
15137 * blockframe.c (find_pc_partial_function): Update.
15138 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15139 (ada_collect_symbol_completion_matches)
15140 (ada_add_global_exceptions): Update.
15142 2019-01-17 Tom Tromey <tom@tromey.com>
15144 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15146 (solib_target_parse_libraries): Change return type.
15147 (library_list_start_segment, library_list_start_section)
15148 (library_list_end_library, library_list_start_library); Update.
15149 (solib_target_free_library_list): Remove.
15150 (solib_target_parse_libraries): Remove cleanup. Change return
15152 (solib_target_current_sos): Update.
15154 2019-01-17 Tom Tromey <tromey@bapiya>
15156 * valprint.c: Replace "the the" with "the".
15157 * symtab.c: Replace "the the" with "the".
15158 * solib.c: Replace "the the" with "the".
15159 * solib-dsbt.c: Replace "the the" with "the".
15160 * linespec.c: Replace "the the" with "the".
15161 * dwarf2loc.h: Replace "the the" with "the".
15162 * amd64-windows-tdep.c: Replace "the the" with "the".
15163 * aarch64-tdep.c: Replace "the the" with "the".
15165 2019-01-16 Keith Seitz <keiths@redhat.com>
15168 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15169 <builder>: Rename to ..
15170 <m_builder>: ... this and make private.
15171 (dwarf2_cu::get_builder): New method. Change all users of
15172 `builder' to use this method.
15173 (dwarf2_start_symtab): Move to ...
15174 (dwarf2_cu::start_symtab): ... here. Update all callers
15175 (setup_type_unit_groups): Move to ...
15176 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15178 (dwarf2_cu::reset_builder): New method.
15179 (process_full_compunit, process_full_type_unit): Use
15180 dwarf2_cu::reset_builder.
15181 (follow_die_offset): Record the ancestor CU if it is different
15182 from the followed DIE's CU.
15183 (follow_die_sig_1): Likewise.
15185 2019-01-15 Tom Tromey <tom@tromey.com>
15187 * remote.c (class remote_state) <buf>: Now a char_vector.
15188 <buf_size>: Remove.
15189 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15191 (remote_target::getpkt_or_notif_sane_1)
15192 (remote_target::getpkt_sane)
15193 (remote_target::getpkt_or_notif_sane): Likewise.
15194 (class remote_target) <putpkt>: New overload.
15195 (remote_target::read_frame): Change type of "buf_p". Remove
15196 sizeof_p parameter.
15197 (packet_ok): New overload.
15198 (packet_check_result): New overload.
15201 2019-01-14 Tom Tromey <tom@tromey.com>
15203 * remote-notif.c (handle_notification, remote_notif_ack)
15204 (remote_notif_parse): Make "buf" const.
15205 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15207 (remote_notif_parse, remote_notif_ack, handle_notification):
15209 * remote.c (remote_notif_stop_parse): Make "buf" const.
15210 (remote_target::remote_parse_stop_reply): Make "buf" const.
15211 (remote_notif_stop_ack): Make "buf" const.
15213 2019-01-14 Tom Tromey <tom@tromey.com>
15215 * remote.c (remote_console_output): Make parameter const.
15217 2019-01-14 Tom Tromey <tom@tromey.com>
15219 * target-debug.h (target_debug_print_signals): Constify.
15220 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15221 * procfs.c (procfs_target::pass_signals): Update.
15222 * linux-nat.c (linux_nat_target::pass_signals): Update.
15223 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15224 * target-delegates.c: Rebuild.
15225 * remote.c (remote_target::program_signals): Update.
15226 (remote_target::pass_signals): Update.
15227 * target.c (target_pass_signals): Constify argument.
15228 (target_program_signals): Likewise.
15229 * target.h (struct target_ops) <pass_signals, program_signals>:
15231 (target_pass_signals, target_program_signals): Constify argument.
15233 2019-01-14 Tom Tromey <tom@tromey.com>
15236 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15238 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15240 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15242 * rs6000-tdep.c: Include reggroups.h.
15243 (IS_V_ALIAS_PSEUDOREG): Define.
15244 (rs6000_register_name): Return names for the "vX" aliases.
15245 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15246 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15247 aliases. Call default_register_reggroup_p for all other
15249 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15251 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15252 Handle "vX" aliases.
15253 (v_alias_pseudo_register_collect): New function.
15254 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15255 (rs6000_gdbarch_init): Initialize "vX" aliases as
15256 pseudo-registers. Restore registration of
15257 rs6000_pseudo_register_reggroup_p with
15258 set_tdesc_pseudo_register_reggroup_p.
15260 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15262 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15263 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15264 set_gdbarch_num_pseudo_regs.
15266 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15268 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15269 Remove arg prefixname, add do_set and do_show.
15270 Add member functions set_list and show_list.
15271 * cli/cli-style.c (class cli_style_option): Update accordingly.
15272 (style_set_list): Move to file scope.
15273 (style_show_list): Likewise.
15274 (set_style): Call help_list.
15275 (show_style): Call cmd_show_list.
15276 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15277 Update to use the new macro.
15279 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15281 * ada-lang.c (_initialize_ada_language): Expand the help text
15282 for the "catch exception" command.
15284 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15286 * symtab.c (matching_obj_sections): Initialize obj,
15287 declare it closer to its usage.
15289 2019-01-10 Tom Tromey <tom@tromey.com>
15291 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15292 (basic_inf_threads_range): Remove.
15293 (inf_threads_range, inf_non_exited_threads_range)
15294 (safe_inf_threads_range): Use next_adapter.
15296 2019-01-10 Keith Seitz <keiths@redhat.com>
15300 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15301 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15303 2019-01-10 Keith Seitz <keiths@redhat.com>
15307 * dictionary.c (pending_to_vector): Remove.
15308 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15309 Remove _1 suffix, replacing functions of the same name. Update
15311 (dict_create_hashed, dict_create_hashed_expandable)
15312 (dict_create_linear, dict_create_linear_expandable, dict_free)
15313 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15314 Make functions static.
15316 2019-01-10 Keith Seitz <keiths@redhat.com>
15320 * dictionary.h (struct dictionary): Replace declaration with
15322 (dict_create_hashed, dict_create_hashed_expandable)
15323 (dict_create_linear, dict_create_linear_expandable)
15324 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15325 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15326 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15327 taking multidictionary argument.
15328 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15329 * block.h (struct block) <dict>: Change to multidictionary
15330 and rename `multidict'.
15331 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15332 symmisc.c: Update all dictionary references to multidictionary.
15334 2019-01-10 Keith Seitz <keiths@redhat.com>
15338 * dictionary.c: Include unordered_map.
15339 (pending_to_vector): New function.
15340 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15341 Rewrite the non-"_1" functions to take vector instead
15343 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15344 "new" _1 versions of the same name.
15345 (multidictionary): Define.
15346 (std::hash<enum language): New definition.
15347 (collate_pending_symbols_by_language, mdict_create_hashed)
15348 (mdict_create_hashed_expandable, mdict_create_linear)
15349 (mdict_create_linear_expandable, mdict_free)
15350 (find_language_dictionary, create_new_language_dictionary)
15351 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15352 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15353 (mdict_size, mdict_empty): New functions.
15354 * dictionary.h (mdict_iterator): Define.
15356 2019-01-10 Pedro Alves <palves@redhat.com>
15358 * breakpoint.c (read_uploaded_action)
15359 (create_tracepoint_from_upload): Adjust to use
15360 gdb::unique_xmalloc_ptr.
15361 * ctf.c (ctf_write_uploaded_tp):
15362 (SET_ARRAY_FIELD): Use emplace_back.
15363 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15364 * tracefile-tfile.c (tfile_write_uploaded_tp):
15365 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15366 gdb::unique_xmalloc_ptr.
15367 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15368 at_string, cond_string, cmd_strings>: Replace char pointers
15369 with gdb::unique_xmalloc_ptr.
15371 2019-01-10 Pedro Alves <palves@redhat.com>
15373 * solib-target.c (library_list_start_library): Don't xstrdup name.
15375 2019-01-10 Pedro Alves <palves@redhat.com>
15377 * mdebugread.c (parse_partial_symbols): Use
15378 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15380 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15382 * linux-fork.c (scoped_switch_fork_info)
15383 <~scoped_switch_fork_info>: Fix incorrect variable name.
15385 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15387 * linux-fork.c (scoped_switch_fork_info)
15388 <scoped_switch_fork_info>: Make explicit.
15389 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15391 2019-01-10 Tom Tromey <tom@tromey.com>
15393 * objfiles.h (objfile::reset_psymtabs): Update.
15394 * objfiles.c (objfile::objfile): Update.
15395 * psymtab.h (psymtab_storage::obstack): Update.
15396 (psymtab_storage::m_obstack): Use gdb::optional.
15397 (class psymtab_storage): Update comment. Remove objfile
15399 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15401 2019-01-10 Tom Tromey <tom@tromey.com>
15403 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15404 <free_psymtabs>: Now private.
15405 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15406 (allocate_psymtab): Use new method.
15408 2019-01-10 Tom Tromey <tom@tromey.com>
15410 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15411 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15412 * mdebugread.c (parse_partial_symbols): Use
15413 allocate_dependencies.
15414 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15415 allocate_dependencies.
15416 (process_psymtab_comp_unit_reader)
15417 (build_type_psymtab_dependencies): Likewise.
15418 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15420 2019-01-10 Tom Tromey <tom@tromey.com>
15422 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15423 PSYMBOL_SET_LANGUAGE.
15424 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15426 2019-01-10 Tom Tromey <tom@tromey.com>
15428 * psymtab.h (psymtab_storage::obstack): New method.
15429 <m_obstack>: Rename from obstack; now private.
15430 * psymtab.c (psymtab_storage): Update.
15431 * dwarf2read.c (create_addrmap_from_index)
15432 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15435 2019-01-10 Tom Tromey <tom@tromey.com>
15437 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15438 * objfiles.h (objfile::reset_psymtabs): New method.
15440 2019-01-10 Tom Tromey <tom@tromey.com>
15442 * symmisc.c (print_symbol_bcache_statistics): Update.
15443 (print_objfile_statistics): Update.
15444 * symfile.c (reread_symbols): Update.
15445 * psymtab.h (class psymtab_storage): New.
15446 * psymtab.c (psymtab_storage): New constructor.
15447 (~psymtab_storage): New destructor.
15448 (require_partial_symbols): Update.
15449 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15450 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15451 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15452 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15453 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15454 (start_psymtab_common, end_psymtab_common)
15455 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15456 (allocate_psymtab): Update.
15457 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15459 (dump_psymtab_addrmap, maintenance_print_psymbols)
15460 (maintenance_check_psymtabs): Update.
15461 (class objfile_psymtabs): Move to objfiles.h.
15462 * psympriv.h (discard_psymtab): Now inline.
15463 (psymtab_discarder::psymtab_discarder): Update.
15464 (psymtab_discarder::~psymtab_discarder): Update.
15465 (ALL_OBJFILE_PSYMTABS): Rewrite.
15466 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15467 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15469 <partial_symtabs>: New field.
15470 (class objfile_psymtabs): Move from psymtab.h. Update.
15471 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15473 (objfile::~objfile): Don't destroy psymbol_cache.
15474 * mdebugread.c (parse_partial_symbols): Update.
15475 * dwarf2read.c (create_addrmap_from_index)
15476 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15477 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15478 (add_partial_subprogram, dwarf2_ranges_read): Update.
15479 * dwarf-index-write.c (write_address_map)
15480 (write_one_signatured_type, recursively_write_psymbols)
15481 (class debug_names, class debug_names, write_psymtabs_to_index):
15484 2019-01-10 Tom Tromey <tom@tromey.com>
15486 * symtab.h (SYMBOL_SET_NAMES): Update.
15487 (symbol_set_names): Update.
15488 (MSYMBOL_SET_NAMES): Update.
15489 * symtab.c (symbol_set_names): Change argument to be an
15490 objfile_per_bfd_storage.
15491 * psymtab.c (add_psymbol_to_bcache): Update.
15492 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15494 2019-01-10 Tom Tromey <tom@tromey.com>
15496 * symtab.c (create_demangled_names_hash): Change argument to be an
15497 objfile_per_bfd_storage.
15498 (symbol_set_names): Update.
15500 2019-01-10 Tom Tromey <tom@tromey.com>
15502 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15504 * psymtab.c (init_psymbol_list): Do nothing if already called.
15505 * psympriv.h (init_psymbol_list): Add comment.
15506 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15508 * dbxread.c (dbx_symfile_read): Unconditionally call
15511 2019-01-10 Tom Tromey <tom@tromey.com>
15513 * xcoffread.c (scan_xcoff_symtab): Update.
15514 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15516 * mdebugread.c (parse_partial_symbols)
15517 (handle_psymbol_enumerators): Update.
15518 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15519 * dbxread.c (read_dbx_symtab): Update.
15520 * psympriv.h (psymbol_placement): New enum.
15521 (add_psymbol_to_list): Update.
15523 2019-01-10 Tom Tromey <tom@tromey.com>
15525 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15526 static_psymbols parameters.
15527 (scan_xcoff_symtab): Update.
15528 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15529 static_psymbols parameters.
15530 * psympriv.h (start_psymtab_common): Update.
15531 * mdebugread.c (parse_partial_symbols): Update.
15532 * dwarf2read.c (create_partial_symtab): Update.
15533 * dbxread.c (read_dbx_symtab): Update.
15534 (start_psymtab): Remove global_psymbols and static_psymbols
15537 2019-01-10 Tom Tromey <tom@tromey.com>
15539 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15540 * psymtab.c (allocate_psymtab): Add comment.
15541 * psympriv.h (allocate_psymtab): Add comment.
15542 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15544 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15546 2019-01-10 Tom Tromey <tom@tromey.com>
15548 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15550 * mipsread.c: Include mdebugread.h.
15551 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15553 * elfread.c: Include mdebugread.h.
15555 2019-01-09 Tom Tromey <tom@tromey.com>
15557 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15558 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15559 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15560 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15561 (psym_lookup_symbol, psym_find_last_source_symtab)
15562 (psym_forget_cached_source_info, psym_print_stats)
15563 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15564 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15565 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15566 (psym_find_compunit_symtab_by_address)
15567 (maintenance_print_psymbols, maintenance_info_psymtabs)
15568 (maintenance_check_psymtabs): Use ranged for.
15569 * psymtab.h (class objfile_psymtabs): New.
15570 (require_partial_symbols): Return objfile_psymtabs.
15571 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15573 2019-01-09 Tom Tromey <tom@tromey.com>
15575 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15576 (find_pc_mapped_section, list_overlays_command)
15577 (map_overlay_command, unmap_overlay_command)
15578 (simple_overlay_update): Use all_objfiles.
15579 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15580 * printcmd.c (info_symbol_command): Use all_objfiles.
15581 * objfiles.h (ALL_OBJSECTIONS): Remove.
15582 * maint.c (maintenance_translate_address): Use all_objfiles.
15583 * gcore.c (gcore_create_callback): Use all_objfiles.
15584 (objfile_find_memory_regions): Likewise.
15586 2019-01-09 Tom Tromey <tom@tromey.com>
15588 * symtab.c (find_line_symtab, info_sources_command)
15589 (make_source_files_completion_list): Use objfile_compunits.
15590 * source.c (select_source_symtab): Use objfile_compunits.
15591 * objfiles.h (struct objfile): Update comment.
15592 (ALL_OBJFILES): Remove.
15593 (ALL_FILETABS): Remove.
15594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15597 2019-01-09 Tom Tromey <tom@tromey.com>
15599 * symmisc.c (print_objfile_statistics, dump_objfile)
15600 (maintenance_print_symbols): Use compunit_filetabs.
15601 * source.c (forget_cached_source_info_for_objfile): Use
15603 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15604 (ALL_FILETABS): Use compunit_filetabs.
15605 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15606 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15608 2019-01-09 Tom Tromey <tom@tromey.com>
15610 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15611 (compunit_filetabs): New.
15612 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15614 (info_sources_command, make_source_files_completion_list): Remove
15616 * symmisc.c (print_objfile_statistics, dump_objfile)
15617 (maintenance_print_symbols): Remove declaration.
15618 (maintenance_info_symtabs): Use compunit_filetabs.
15619 (maintenance_info_line_tables): Likewise.
15620 * source.c (select_source_symtab): Change local variable name.
15621 (forget_cached_source_info_for_objfile): Remove declaration.
15622 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15623 * objfiles.c (objfile_relocate1): Remove declaration.
15624 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15626 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15627 * coffread.c (coff_symtab_read): Remove declaration.
15628 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15631 2019-01-09 Tom Tromey <tom@tromey.com>
15633 * symtab.c (lookup_objfile_from_block)
15634 (find_pc_sect_compunit_symtab, search_symbols)
15635 (default_collect_symbol_completion_matches_break_on): Use
15637 * objfiles.h (ALL_COMPUNITS): Remove.
15638 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15639 * cp-support.c (add_symbol_overload_list_qualified): Use
15641 * ada-lang.c (ada_collect_symbol_completion_matches)
15642 (ada_add_global_exceptions): Use objfile_compunits.
15644 2019-01-09 Tom Tromey <tom@tromey.com>
15646 * source.c (select_source_symtab)
15647 (forget_cached_source_info_for_objfile): Remove declaration.
15648 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15650 * maint.c (count_symtabs_and_blocks): Remove declaration.
15651 * cp-support.c (add_symbol_overload_list_qualified): Remove
15653 * coffread.c (coff_symtab_read): Remove declaration.
15654 * symtab.c (lookup_symbol_in_objfile_symtabs)
15655 (basic_lookup_transparent_type_1): Use objfile_compunits.
15656 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15657 (info_sources_command, search_symbols)
15658 (default_collect_symbol_completion_matches_break_on)
15659 (make_source_files_completion_list): Remove declaration.
15660 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15661 (ada_collect_symbol_completion_matches)
15662 (ada_add_global_exceptions): Remove declaration.
15663 * linespec.c (iterate_over_all_matching_symtabs): Use
15665 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15666 (class objfile_compunits): New.
15667 (ALL_COMPUNITS): Use objfile_compunits.
15668 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15669 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15671 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15673 2019-01-09 Tom Tromey <tom@tromey.com>
15675 * symtab.c (search_symbols)
15676 (default_collect_symbol_completion_matches_break_on): Use
15678 * ada-lang.c (ada_lookup_simple_minsym)
15679 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15680 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15681 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15683 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15684 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15685 * objc-lang.c (find_methods): Use objfile_msymbols.
15686 (info_selectors_command, info_classes_command): Likewise.
15687 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15688 * objfiles.h (class objfile_msymbols): New.
15689 (ALL_OBJFILE_MSYMBOLS): Remove.
15690 (ALL_MSYMBOLS): Remove.
15692 2019-01-09 Tom Tromey <tom@tromey.com>
15694 * common/next-iterator.h (next_adapter): Add Iterator template
15696 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15697 (class all_objfiles_safe): New.
15698 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15699 * objfiles.c (put_objfile_before): Update comment.
15700 (add_separate_debug_objfile): Likewise.
15701 (free_all_objfiles): Use all_objfiles_safe.
15702 (objfile_purge_solibs): Likewise.
15704 2019-01-09 Tom Tromey <tom@tromey.com>
15706 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15707 (expand_symtab_containing_pc, lookup_static_symbol)
15708 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15709 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15711 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15712 * breakpoint.c (create_overlay_event_breakpoint)
15713 (create_longjmp_master_breakpoint)
15714 (create_std_terminate_master_breakpoint)
15715 (create_exception_master_breakpoint): Use all_objfiles.
15716 * linux-thread-db.c (try_thread_db_load_from_pdir)
15717 (has_libpthread): Use all_objfiles.
15718 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15719 * linespec.c (iterate_over_all_matching_symtabs)
15720 (search_minsyms_for_name): Use all_objfiles.
15721 * maint.c (maintenance_info_sections): Use all_objfiles.
15722 * main.c (captured_main_1): Use all_objfiles.
15723 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15724 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15725 * guile/scm-pretty-print.c
15726 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15727 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15728 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15729 (maintenance_print_msymbols): Use all_objfiles.
15730 * source.c (select_source_symtab): Use all_objfiles.
15731 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15732 * symfile.c (remove_symbol_file_command)
15733 (expand_symtabs_matching, map_symbol_filenames): Use
15735 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15737 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15738 * objc-lang.c (find_methods): Use all_objfiles.
15739 * objfiles.c (have_partial_symbols, have_full_symbols)
15740 (have_minimal_symbols, qsort_cmp)
15741 (default_iterate_over_objfiles_in_search_order): Use
15743 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15744 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15745 (maintenance_check_psymtabs): Use all_objfiles.
15746 (ALL_PSYMTABS): Remove.
15747 * compile/compile-object-run.c (do_module_cleanup): Use
15749 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15750 * cp-support.c (add_symbol_overload_list_qualified): Use
15752 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15754 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15755 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15757 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15758 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15759 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15761 * solib.c (solib_read_symbols): Use all_objfiles
15763 2019-01-09 Tom Tromey <tom@tromey.com>
15765 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15766 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15768 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15769 * symmisc.c (print_symbol_bcache_statistics)
15770 (print_objfile_statistics, maintenance_print_objfiles)
15771 (maintenance_info_symtabs, maintenance_check_symtabs)
15772 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15774 * source.c (forget_cached_source_info): Use all_objfiles.
15775 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15776 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15777 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15778 * objfiles.c (update_section_map): Use all_objfiles.
15779 (shared_objfile_contains_address_p): Likewise.
15780 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15781 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15783 2019-01-09 Tom Tromey <tom@tromey.com>
15785 * common/next-iterator.h: New file.
15786 * objfiles.h (class all_objfiles): New.
15787 (struct objfile_iterator): New.
15789 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15791 * NEWS: Move the description of the changed "frame", "select-frame",
15792 and "info frame" commands to the Changed commands section.
15794 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15796 * gdbtypes.c (check_stub_method_group): Remove handling of old
15798 * linespec.c (find_methods): Likewise.
15799 * stabsread.c (read_member_functions): Likewise.
15800 * valops.c (search_struct_method): Likewise.
15801 (value_struct_elt_for_reference): Likewise.
15802 * NEWS: Mention this change.
15804 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15806 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15807 print_source_lines.
15808 * source.c (print_source_lines_base): Update line number check.
15809 (print_source_lines): New function.
15810 (source_lines_range::source_lines_range): New function.
15811 * source.h (class source_lines_range): New class.
15812 (print_source_lines): New declaration.
15814 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15816 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15818 2019-01-08 Tom Tromey <tom@tromey.com>
15819 Simon Marchi <simon.marchi@ericsson.com>
15822 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15823 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15824 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15825 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15826 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15827 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15829 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15831 * source.c (select_source_symtab): Move header comment to
15832 declaration in source.h.
15833 (forget_cached_source_info_for_objfile): Likewise.
15834 (forget_cached_source_info): Likewise.
15835 (identify_source_line): Likewise.
15836 * source.h (identify_source_line): Move declaration from symtab.h
15837 and add comment from source.c
15838 (print_source_lines): Likewise.
15839 (forget_cached_source_info_for_objfile): Likewise.
15840 (forget_cached_source_info): Likewise.
15841 (select_source_symtab): Likewise.
15842 (enum print_source_lines_flag): Move definition from symtab.h.
15843 * symtab.h (identify_source_line): Move declaration to source.h.
15844 (print_source_lines): Likewise.
15845 (forget_cached_source_info_for_objfile): Likewise.
15846 (forget_cached_source_info): Likewise.
15847 (select_source_symtab): Likewise.
15848 (enum print_source_lines_flag): Move definition to source.h.
15849 * tui/tui-hooks.c: Add 'source.h' include.
15851 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15853 * source.c (print_source_lines_base): Handle requests to print
15854 reverse line number sequences, and guard against empty lines
15857 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15859 * source.c (print_source_lines_base): Fix skip of '\r' if next
15862 2019-01-06 Tom Tromey <tom@tromey.com>
15864 * c-exp.y (struct c_parse_state) <macro_original_text,
15865 expansion_obstack>: New member.
15866 (macro_original_text, expansion_obstack): Remove globals.
15867 (scan_macro_expansion, scanning_macro_expansion)
15868 (finished_macro_expansion): Update.
15869 (scan_macro_cleanup): Remove.
15870 (yylex, c_parse): Update.
15872 2019-01-06 Tom Tromey <tom@tromey.com>
15874 * c-exp.y (struct c_parse_state) <strings>: New member.
15875 (operator_stoken): Update.
15877 2019-01-06 Tom Tromey <tom@tromey.com>
15879 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15880 (union type_stack_elt) <typelist_val>: Now a pointer to
15882 (type_stack_cleanup): Don't declare.
15883 (push_typelist): Update.
15884 * parse.c (pop_typelist): Return a std::vector.
15885 (push_typelist): Take a std::vector.
15886 (follow_types): Update. Do not free args.
15887 (type_stack_cleanup): Remove.
15888 * c-exp.y (struct c_parse_state): New.
15889 (cpstate): New global.
15890 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15891 (nonempty_typelist): Update.
15892 (func_mod): Create a new vector.
15893 (c_parse): Create a c_parse_state.
15894 (check_parameter_typelist): Do not delete params.
15895 (function_method): Update. Do not delete type_list.
15897 2019-01-06 Tom Tromey <tom@tromey.com>
15900 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15902 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15903 (print_return_value): Likewise.
15905 2019-01-05 Tom Tromey <tom@tromey.com>
15907 * contrib/cleanup_check.py: Remove.
15908 * contrib/gcc-with-excheck: Remove.
15909 * contrib/exsummary.py: Remove.
15910 * contrib/excheck.py: Remove.
15912 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15914 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15915 NULL. Initialize tpprev to NULL instead of assigning it
15916 to NULL on the next statement.
15917 * windows-nat.c (windows_delete_thread): Remove check for
15918 main_thread_id before printing thread exit notifications.
15919 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15920 Remove thread ID check against main_thread_id.
15921 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15922 windows_delete_thread.
15923 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15925 2019-01-04 Tom Tromey <tom@tromey.com>
15927 * compile/compile.c (_initialize_compile): Use upper case for
15928 metasyntactic variables.
15929 * symmisc.c (_initialize_symmisc): Use upper case for
15930 metasyntactic variables.
15931 * psymtab.c (_initialize_psymtab): Use upper case for
15932 metasyntactic variables.
15933 * demangle.c (demangle_command): Use upper case for metasyntactic
15935 (_initialize_demangler): Likewise.
15936 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15939 2019-01-03 Tom Tromey <tom@tromey.com>
15941 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15943 2019-01-03 Tom Tromey <tom@tromey.com>
15945 * python/py-symtab.c (salpy_str): Update.
15946 (struct salpy_sal_object) <symtab>: Now a PyObject.
15947 (salpy_dealloc): Update.
15948 (del_objfile_sal): Use gdbpy_ref.
15950 2019-01-03 Tom Tromey <tom@tromey.com>
15952 * python/py-type.c (convert_field): Use new_reference. Return
15954 (make_fielditem): Return gdbpy_ref.
15955 (typy_fields): Update.
15956 (typy_getitem): Update.
15957 (field_name): Return gdbpy_ref. Use new_reference.
15958 (typy_iterator_iternext): Update.
15960 2019-01-03 Tom Tromey <tom@tromey.com>
15962 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15964 2019-01-03 Tom Tromey <tom@tromey.com>
15966 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15967 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15968 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15969 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15970 (pspy_set_type_printers): Likewise.
15971 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15972 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15973 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15974 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15975 (objfpy_set_type_printers): Likewise.
15977 2019-01-03 Tom Tromey <tom@tromey.com>
15979 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15980 (gdbpy_print_stack): Use gdbpy_err_fetch.
15981 * python/python-internal.h (class gdbpy_err_fetch): New class.
15982 (class gdbpy_enter) <m_error_type, m_error_value,
15983 m_error_traceback>: Remove.
15984 <m_error>: New member.
15985 (gdbpy_exception_to_string): Don't declare.
15986 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15987 * python/py-value.c (convert_value_from_python): Use
15989 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15990 gdbpy_exception_to_string.
15991 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15992 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15995 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15997 * linux-nat.c (delete_lwp_cleanup): Delete.
15998 (struct lwp_deleter): New struct.
15999 (lwp_info_up): New typedef.
16000 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16003 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16005 * linux-fork.c (class scoped_switch_fork_info): New class.
16006 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16008 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16010 * valops.c (find_overload_match): Remove use of null_cleanup, and
16011 calls to do_cleanups.
16013 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16015 * compile/compile-cplus-types.c
16016 (compile_cplus_instance::decl_name): Handle changes to
16018 * cp-support.c (cp_func_name): Update header comment, update
16020 * cp-support.h (cp_func_name): Update return type in declaration.
16021 * valops.c (find_overload_match): Move temp_func local to top
16022 level of function and change its type. Use temp_func to hold and
16023 delete temporary string obtained from cp_func_name.
16025 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16027 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16028 gdb::char_vector, remove cleanup, and update uses of `msg`.
16030 2019-01-03 Jim Wilson <jimw@sifive.com>
16032 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16034 2019-01-02 Tom Tromey <tom@tromey.com>
16036 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16037 (tdesc_parse_xml): Remove cleanups.
16038 * target-descriptions.h (make_cleanup_free_target_description):
16040 (target_desc_deleter): New struct.
16041 (target_desc_up): New typedef.
16042 * target-descriptions.c (target_desc_deleter::operator()): Rename
16043 from free_target_description.
16044 (make_cleanup_free_target_description): Remove.
16046 2019-01-02 Tom Tromey <tom@tromey.com>
16048 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16049 constructor, destructor.
16050 (linespec_parser): Remove typedef.
16051 (~linespec_parser): Rename from linespec_parser_delete.
16052 (linespec_lex_to_end, linespec_complete_label)
16053 (linespec_complete): Update.
16054 (decode_line_full): Remove cleanups.
16055 (decode_line_1): Update.
16057 2019-01-02 Tom Tromey <tom@tromey.com>
16059 * python/python-internal.h (inferior_to_inferior_object): Change
16061 * python/py-exitedevent.c (create_exited_event_object): Update.
16062 * python/py-inferior.c (inferior_to_inferior_object): Return
16064 (python_new_inferior, python_inferior_deleted)
16065 (thread_to_thread_object, delete_thread_object)
16066 (build_inferior_list, gdbpy_selected_inferior): Update.
16067 * python/py-infthread.c (create_thread_object): Update. Also fail
16068 if inferior_to_inferior_object fails.
16070 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16072 * inferior.h (class inferior) <displaced_step_state>: New field.
16073 * infrun.h (struct displaced_step_state): Move here from
16074 infrun.c. Initialize fields, add constructor.
16075 <inf>: Remove field.
16076 <reset>: New method.
16077 * infrun.c (struct displaced_step_inferior_state): Move to
16079 (displaced_step_inferior_states): Remove.
16080 (get_displaced_stepping_state): Adust.
16081 (displaced_step_in_progress_any_inferior): Adjust.
16082 (displaced_step_in_progress_thread): Adjust.
16083 (displaced_step_in_progress): Adjust.
16084 (add_displaced_stepping_state): Remove.
16085 (get_displaced_step_closure_by_addr): Adjust.
16086 (remove_displaced_stepping_state): Remove.
16087 (infrun_inferior_exit): Call displaced_step_state.reset.
16088 (use_displaced_stepping): Don't check for NULL.
16089 (displaced_step_prepare_throw): Call
16090 get_displaced_stepping_state.
16091 (displaced_step_fixup): Don't check for NULL.
16092 (prepare_for_detach): Don't check for NULL.
16094 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16096 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16097 in case of call that did not complete.
16099 2019-01-02 Andrey Utkin <autkin@undo.io>
16101 * symfile.c (find_separate_debug_file): Fix search of debug files for
16104 2019-01-02 Tom Tromey <tom@tromey.com>
16106 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16108 * python/py-frame.c (frapy_older): Remove cast.
16109 (frapy_newer): Likewise.
16110 * python/py-breakpoint.c (local_setattro): Remove cast.
16111 * python/py-arch.c (archpy_name): Remove local variable.
16112 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16114 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16116 * unittests/basic_string_view/element_access/char/empty.cc:
16117 Fix year range in copyright header.
16119 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16121 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16123 <operator==>: Update with for removed field.
16125 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16126 <isa_features>: ...this.
16127 <abi_features>: New field.
16128 (riscv_isa_flen): Update comment.
16129 (riscv_abi_xlen): New declaration.
16130 (riscv_abi_flen): New declaration.
16131 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16133 (riscv_abi_xlen): New function.
16134 (riscv_isa_flen): Update to get answer from isa_features.
16135 (riscv_abi_flen): New function.
16136 (riscv_has_fp_abi): Update to get answer from abi_features.
16137 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16139 (riscv_call_info) <xlen, flen>: Update comment.
16140 (riscv_call_arg_struct): Remove invalid assertions
16141 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16143 (riscv_gdbarch_init): Gather isa features and abi features
16144 separately, ensure both match on the gdbarch when reusing an old
16145 gdbarch. Relax an error check to allow 32-bit abi float to run on
16146 a target with 64-bit float hardware.
16148 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16150 * source.c (search_command_helper): Stop reverse search
16151 when line 1 has been searched.
16153 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16155 * record-full.c (record_full_base_target::close): Rewrite
16156 record_full_core_buf_list free logic.
16158 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16160 * break-catch-syscall.c (print_one_catch_syscall): xfree
16163 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16165 * top.c (print_gdb_version): Update Copyright year in version
16168 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16170 Update copyright year range in all GDB files.
16172 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16174 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16176 For older changes see ChangeLog-2018.
16182 version-control: never