1 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
3 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
4 of its implementation from...
5 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
8 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
10 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
11 create a range with stride where appropriate.
12 * f-valprint.c: Include 'gdbarch.h'.
13 (f77_print_array_1): Take the stride into account when walking the
14 array. Also convert the stride into addressable units.
15 * gdbtypes.c (create_range_type): Initialise the stride to
17 (create_range_type_with_stride): New function, initialise the
18 range as normal, and then setup the stride.
19 (has_static_range): Include the stride here. Also change the
21 (create_array_type_with_stride): Consider the range stride if the
22 array isn't given its own stride.
23 (resolve_dynamic_range): Resolve the stride if needed.
24 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
25 (struct range_bounds) <flag_is_byte_stride>: New member variable.
26 (TYPE_BIT_STRIDE): Define.
27 (TYPE_ARRAY_BIT_STRIDE): Define.
28 (create_range_type_with_stride): Declare.
29 * valarith.c (value_subscripted_rvalue): Take range stride into
30 account when walking the array.
32 2019-12-01 Tom Tromey <tom@tromey.com>
34 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
37 2019-12-01 Tom Tromey <tom@tromey.com>
39 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
41 * unittests/tui-selftests.c: New file.
42 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
44 2019-12-01 Tom Tromey <tom@tromey.com>
46 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
48 2019-12-01 Tom Tromey <tom@tromey.com>
50 * NEWS: Document new settings.
51 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
52 * tui/tui-win.c (_initialize_tui_win): Add border style
54 * tui/tui-io.h (tui_apply_style): Declare.
55 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
57 (apply_ansi_escape, tui_set_reverse_mode): Update.
58 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
59 Add "skip_intensity" parameter.
60 <changed>: New member.
61 <do_set_value>: Declare.
62 (tui_border_style, tui_active_border_style): Declare.
63 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
65 (cli_style_option): Initialize "changed".
66 (cli_style_option::do_set_value): New function.
67 (cli_style_option::add_setshow_commands): Add "skip_intensity"
69 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
70 (_initialize_cli_style): Update. Create TUI border style
73 2019-12-01 Tom Tromey <tom@tromey.com>
75 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
77 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
79 * tui/tui-win.h (compact_source): Declare.
80 * tui/tui-win.c (compact_source): New global.
81 (tui_set_compact_source, tui_show_compact_source): New functions.
82 (_initialize_tui_win): Add "compact-source" setting.
83 * tui/tui-source.c (tui_source_window::set_contents): Handle
84 compact_source setting.
85 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
86 * NEWS: Document new setting.
88 2019-11-30 Tom Tromey <tom@tromey.com>
90 * dwarf2read.c (dwarf2_add_field): Include field offset when
91 computing variant part length.
93 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
94 * NEWS: Mention define-prefix. Tell that command names can now
95 contain a . character.
97 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
99 * command.h (valid_cmd_char_p): Declare.
100 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
101 the check of valid command char.
102 (find_command_name_length, valid_user_defined_cmd_name_p): Use
104 * cli/cli-script.c (validate_comname): Likewise.
105 * completer.c (gdb_completer_command_word_break_characters):
106 Do not remove . from the word break char, update comments.
107 (complete_line_internal_1): Use valid_cmd_char_p.
108 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
109 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
111 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
113 * cli/cli-script.c (do_define_command): Ensure a redefined
114 prefix command is kept as a prefix command.
115 (define_prefix_command): New function.
116 (show_user_1): Report user defined prefixes.
117 (_initialize_cli_script): Create the new 'define-prefix' command.
118 Add completers for 'define' and 'document'.
119 * top.c (execute_command): If command is a user-defined prefix only
120 command, report the list of commands for this prefix command.
122 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
124 * valops.c (find_oload_champ): Improve debug output.
126 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
128 * valops.c (find_oload_champ): Print part of debug messages
129 before the badness vector is std::move'd.
131 2019-11-28 Tom Tromey <tom@tromey.com>
133 * value.c (creal_internal_fn): Fix comment.
135 2019-11-28 Tom Tromey <tom@tromey.com>
137 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
138 flag_bound_evaluated>: Now unsigned.
140 2019-11-28 Tom Tromey <tom@tromey.com>
142 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
145 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
147 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
149 * jit.c (jit_unregister_code): Add debug print to match
152 2019-11-27 Christian Biesinger <cbiesinger@google.com>
154 * NEWS: Mention the new multithreaded symbol loading.
156 2019-11-27 Christian Biesinger <cbiesinger@google.com>
158 * maint.c (n_worker_threads): Default to 0.
159 (worker_threads_disabled): New function.
160 * maint.h (worker_threads_disabled): New function.
161 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
162 here if worker_threads_disabled () is true.
163 (minimal_symbol_reader::install): Skip all threading if
164 worker_threads_disabled () is true.
166 2019-11-27 Christian Biesinger <cbiesinger@google.com>
168 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
169 hash code if possible.
170 (add_minsym_to_demangled_hash_table): Likewise.
171 (minimal_symbol_reader::install): Compute the hash codes for msymbol
172 on the background thread.
173 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
176 2019-11-27 Christian Biesinger <cbiesinger@google.com>
178 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
179 of the mangled name on the background thread.
180 * symtab.c (symbol_set_names): Allow passing in the hash of the
182 * symtab.h (symbol_set_names): Likewise.
184 2019-11-27 Kevin Buettner <kevinb@redhat.com>
186 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
187 physnames are computed for inherited DIEs.
189 2019-11-27 Tom Tromey <tromey@adacore.com>
191 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
193 * cp-support.c: Remove unnecessary backslashes.
195 2019-11-27 Christian Biesinger <cbiesinger@google.com>
197 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
198 with sym->set_linkage_name.
199 * coffread.c (coff_read_enum_type): Likewise.
200 * mdebugread.c (parse_symbol): Likewise.
201 * stabsread.c (patch_block_stabs): Likewise.
202 (define_symbol): Likewise.
203 (read_enum_type): Likewise.
204 (common_block_end): Likewise.
205 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
207 (SYMBOL_SET_LINKAGE_NAME): Remove.
208 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
209 with sym->set_linkage_name.
211 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
213 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
214 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
215 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
216 * NEWS: Mention new MI command.
218 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
220 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
221 '-symbol-info-types', and '-symbol-info-variables'.
222 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
223 (mi_cmd_symbol_info_types): Declare.
224 (mi_cmd_symbol_info_variables): Declare.
225 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
226 (output_debug_symbol): New function.
227 (output_nondebug_symbol): New function.
228 (mi_symbol_info): New function.
229 (mi_info_functions_or_variables): New function.
230 (mi_cmd_symbol_info_functions): New function.
231 (mi_cmd_symbol_info_types): New function.
232 (mi_cmd_symbol_info_variables): New function.
233 * NEWS: Mention new commands.
235 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
237 * symtab.c (symbol_to_info_string): New function, most content
238 moved from print_symbol_info, but updated to return a std::string.
239 (print_symbol_info): Update to use symbol_to_info_string and print
241 * symtab.h (symbol_to_info_string): Declare new function.
243 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
245 * python/python.c (gdbpy_rbreak): Convert to using
246 global_symbol_searcher.
247 * symtab.c (file_matches): Convert return type to bool, change
248 file list to std::vector, update header comment.
249 (search_symbols): Rename to...
250 (global_symbol_searcher::search): ...this and update now its
251 a member function of global_symbol_searcher. Take account of the
252 changes to file_matches.
253 (symtab_symbol_info): Convert to using global_symbol_searcher.
254 (rbreak_command): Likewise.
255 (search_module_symbols): Likewise.
256 * symtab.h (enum symbol_search): Update comment.
257 (search_symbols): Remove declaration.
258 (class global_symbol_searcher): New class.
260 2019-11-26 Tom Tromey <tromey@adacore.com>
262 * cp-support.c (_initialize_cp_support): Conditionally initialize
263 gdb_demangle_attempt_core_dump.
265 2019-11-26 Tom Tromey <tom@tromey.com>
267 * python/py-function.c (fnpy_init): Update.
268 * value.h (add_internal_function): Adjust declaration.
269 * value.c (function_destroyer): Remove.
270 (do_add_internal_function): Don't set destroyer or copy name.
271 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
273 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
274 (cmdpy_init): Set name_allocated.
275 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
277 (~cmd_list_element): Free "name" if needed.
279 2019-11-26 Tom Tromey <tom@tromey.com>
281 * value.h (add_internal_function): Add new overload. Move
282 documentation from value.h.
283 * value.c (do_add_internal_function): New function.
284 (add_internal_function): Use it. Add new overload.
285 (function_destroyer): Don't free doc.
286 * python/py-function.c (fnpy_init): Update.
288 2019-11-26 Tom Tromey <tom@tromey.com>
290 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
291 (cmdpy_init): Set "doc_allocated".
293 2019-11-26 Tom Tromey <tom@tromey.com>
295 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
296 name of worker thread.
297 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
299 * configure, config.in: Rebuild.
301 2019-11-26 Tom Tromey <tom@tromey.com>
303 * python/python.c (class gdbpy_gil): New.
304 (struct gdbpy_event): Add constructor, destructor, operator().
305 (gdbpy_post_event): Use run_on_main_thread.
306 (gdbpy_initialize_events): Remove.
307 (do_start_initialization): Update.
309 2019-11-26 Tom Tromey <tom@tromey.com>
312 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
313 commands. Call update_thread_pool_size.
314 (update_thread_pool_size, maintenance_set_worker_threads): New
316 (n_worker_threads): New global.
318 2019-11-26 Christian Biesinger <cbiesinger@google.com>
319 Tom Tromey <tom@tromey.com>
321 * minsyms.c (minimal_symbol_reader::install): Use
323 * gdbsupport/parallel-for.h: New file.
324 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
326 2019-11-26 Christian Biesinger <cbiesinger@google.com>
327 Tom Tromey <tom@tromey.com>
329 * gdbsupport/thread-pool.h: New file.
330 * gdbsupport/thread-pool.c: New file.
331 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
332 (HFILES_NO_SRCDIR): Add thread-pool.h.
334 2019-11-26 Tom Tromey <tom@tromey.com>
336 * event-top.h (thread_local_segv_handler): Declare.
337 * event-top.c (thread_local_segv_handler): New global.
338 (install_handle_sigsegv, handle_sigsegv): New functions.
339 (async_init_signals): Install SIGSEGV handler.
340 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
342 (report_failed_demangle): New function.
343 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
344 handler-setting code, instead use segv_handler. Run warning code
347 2019-11-26 Tom Tromey <tom@tromey.com>
349 * run-on-main-thread.c: New file.
350 * run-on-main-thread.h: New file.
351 * unittests/main-thread-selftests.c: New file.
352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
353 main-thread-selftests.c.
354 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
355 (COMMON_SFILES): Add run-on-main-thread.c.
357 2019-11-26 Tom Tromey <tom@tromey.com>
359 * main.c (setup_alternate_signal_stack): Remove.
360 (captured_main_1): Use gdb::alternate_signal_stack.
361 * gdbsupport/alt-stack.h: New file.
363 2019-11-26 Tom Tromey <tom@tromey.com>
365 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
367 (save_original_signals_state, restore_original_signals_state): Use
369 * linux-nat.c (block_child_signals, restore_child_signals_mask)
370 (_initialize_linux_nat): Use gdb_sigmask.
371 * guile/guile.c (_initialize_guile): Use block_signals.
372 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
373 * gdbsupport/gdb-sigmask.h: New file.
374 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
375 * cp-support.c (gdb_demangle): Use gdb_sigmask.
376 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
378 * configure, config.in: Rebuild.
379 * gdbsupport/block-signals.h: New file.
381 2019-11-26 Tom Tromey <tom@tromey.com>
383 * acinclude.m4: Include ax_pthread.m4.
384 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
385 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
386 (CLIBS): Use PTHREAD_LIBS.
387 (aclocal_m4_deps): Add ax_pthread.m4.
388 * config.in, configure: Rebuild.
389 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
391 2019-11-26 Tom Tromey <tom@tromey.com>
393 * symtab.h (struct minimal_symbol) <name_set>: New member.
394 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
395 Don't call symbol_set_names.
396 (minimal_symbol_reader::install): Call symbol_set_names.
398 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
400 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
401 restore_active_ext_lang, as GIL is needed for (indirectly)
402 called PyOS_InterruptOccurred.
404 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
406 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
409 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
411 * remote-sim.c (simulator_command): Make static, remove
414 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
416 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
418 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
419 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
421 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
423 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
425 * unittests/basic_string_view/element_access/char/1.cc (test01):
428 * unittests/basic_string_view/element_access/char/empty.cc (main):
430 * unittests/basic_string_view/element_access/char/front_back.cc
433 * unittests/basic_string_view/inserters/char/2.cc (test05):
436 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
439 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
442 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
444 * unittests/basic_string_view/operations/compare/char/1.cc
447 * unittests/basic_string_view/operations/compare/char/13650.cc
449 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
452 * unittests/basic_string_view/operations/data/char/1.cc (test01):
455 * unittests/basic_string_view/operations/find/char/1.cc (test01):
458 * unittests/basic_string_view/operations/find/char/2.cc (test02):
461 * unittests/basic_string_view/operations/find/char/3.cc (test03):
464 * unittests/basic_string_view/operations/find/char/4.cc (main):
466 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
469 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
472 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
475 * unittests/basic_string_view/operations/substr/char/1.cc
478 * unittests/basic_string_view/operators/char/2.cc (main):
480 * unittests/optional/assignment/1.cc (test): Likewise.
481 * unittests/optional/assignment/2.cc (test): Likewise.
482 * unittests/optional/assignment/3.cc (test): Likewise.
483 * unittests/optional/assignment/4.cc (test): Likewise.
484 * unittests/optional/assignment/5.cc (test): Likewise.
485 * unittests/optional/assignment/6.cc (test): Likewise.
486 * unittests/optional/assignment/7.cc (test): Likewise.
487 * unittests/optional/cons/copy.cc (test): Likewise.
488 * unittests/optional/cons/default.cc (test): Likewise.
489 * unittests/optional/cons/move.cc (test): Likewise.
490 * unittests/optional/cons/value.cc (test): Likewise.
491 * unittests/optional/in_place.cc (test): Likewise.
492 * unittests/optional/observers/1.cc (test): Likewise.
493 * unittests/optional/observers/2.cc (test): Likewise.
495 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
497 * tui-win.h (tui_set_var_cmd): Remove.
498 * tui-win.c (tui_set_var_cmd): Make static.
500 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
502 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
503 rbreak_command_wrapper): Remove.
504 * symtab.c (rbreak_command_wrapper): Remove.
506 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
508 * inferior.h (info_terminal_command): Remove declaration.
509 * inflow.c (info_terminal_command): Make static.
511 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
513 * inferior.c (exit_inferior_silent): Remove.
515 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
517 * dictionary.c (dict_empty, mdict_empty): Remove.
518 * dictionary.c (mdict_empty): Remove.
520 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
522 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
523 (arc_insn_get_memory_offset): Likewise.
524 (arc_insn_dump): Likewise.
525 * cp-support.c (test_cp_symbol_name_matches): Likewise.
526 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
527 * dictionary.c (dict_iterator_next): Likewise.
528 (dict_iter_match_first): Likewise.
529 (dict_iter_match_next): Likewise.
530 * f-lang.c (evaluate_subexp_f): Likewise.
531 * hppa-tdep.c (hppa_read_pc): Likewise.
532 * i386-tdep.c (i386_floatformat_for_type): Likewise.
533 * parse.c (write_exp_elt_msym): Likewise.
534 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
535 * remote.c (remote_packet_size): Likewise.
536 (remote_notif_stop_parse): Likewise.
537 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
538 * s12z-tdep.c (s12z_disassemble_info): Likewise.
539 * source.c (prepare_path_for_appending): Likewise.
540 * sparc64-linux-tdep.c
541 (sparc64_linux_handle_segmentation_fault); Likewise.
542 * stack.c (frame_selection_by_function_completer): Likewise.
544 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
546 * completer.c (set_gdb_completion_word_break_characters):
549 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
551 * dwarf-index-write.c: Include dwarf-index-write.h.
552 * mi/mi-interp.c: Include mi/mi-interp.h.
554 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
556 * aarch32-tdep.c: Include aarch32-tdep.h.
557 * aarch32-tdep.h: Forward-declare struct target_desc.
559 2019-11-26 Christian Biesinger <cbiesinger@google.com>
561 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
563 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
564 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
566 2019-11-25 Tom de Vries <tdevries@suse.de>
568 * contrib/words.sh: Add -c option.
570 2019-11-25 Christian Biesinger <cbiesinger@google.com>
572 * solib.c (solib_find_1): Change int to bool.
573 (exec_file_find): Change int to bool.
574 (solib_find): Change int to bool.
575 (solib_read_symbols): Change int to bool.
576 (solib_used): Change int to bool.
577 (solib_add): Change int to bool.
578 (info_sharedlibrary_command): Change int to bool.
579 (solib_contains_address_p): Change int to bool.
580 (solib_keep_data_in_core): Change int to bool.
581 (in_solib_dynsym_resolve_code): Change int to bool.
582 (reload_shared_libraries_1): Change int to bool.
583 (gdb_sysroot_changed): Change int to bool.
584 * solib.h (solib_read_symbols): Change int to bool.
585 (solib_contains_address_p): Change int to bool.
586 (solib_keep_data_in_core): Change int to bool.
587 (in_solib_dynsym_resolve_code): Change int to bool.
588 (libpthread_name_p): Change int to bool.
590 2019-11-25 Luis Machado <luis.machado@linaro.org>
592 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
593 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
594 (remote_packet_max_chars): New static global.
595 (show_remote_packet_max_chars): New function.
596 (remote_target::putpkt_binary): Adjust to use new
597 remote_packet_max_chars option.
598 (remote_target::getpkt_or_notif_sane_1): Likewise.
599 (_initialize_remote): Register new remote-packet-max-chars option.
601 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
603 * m68k-linux-nat.c: Include gdbarch.h.
605 2019-11-24 Tom Tromey <tom@tromey.com>
607 * symfile.c (read_symbols): Update.
608 * psymtab.c (require_partial_symbols): Change type of "verbose" to
610 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
611 (psym_lookup_symbol, psym_find_last_source_symtab)
612 (psym_forget_cached_source_info, psym_print_stats)
613 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
614 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
615 (psym_map_matching_symbols, psym_expand_symtabs_matching)
616 (psym_find_compunit_symtab_by_address)
617 (maintenance_print_psymbols, maintenance_info_psymtabs)
618 (maintenance_check_psymtabs): Update.
619 * psymtab.h (require_partial_symbols): Change type of "verbose" to
622 2019-11-22 Tom Tromey <tom@tromey.com>
624 * observable.h: Update comments.
626 2019-11-22 Tom Tromey <tromey@adacore.com>
628 * ada-tasks.c (ada_task_is_alive): Make parameter const.
629 (print_ada_task_info): Don't try to fetch thread id if task is not
632 2019-11-22 Christian Biesinger <cbiesinger@google.com>
635 * ada-lang.c (sort_choices): Update.
636 (ada_print_symbol_signature): Update.
637 (resolve_subexp): Update.
638 (ada_parse_renaming): Update.
639 (ada_read_renaming_var_value): Update.
640 (lesseq_defined_than): Update.
641 (remove_extra_symbols): Update.
642 (remove_irrelevant_renamings): Update.
643 (ada_add_block_symbols): Update.
644 (ada_collect_symbol_completion_matches): Update.
645 (ada_is_renaming_symbol): Update.
646 (aggregate_assign_from_choices): Update.
647 (ada_evaluate_subexp): Update.
648 (ada_has_this_exception_support): Update.
649 (ada_is_non_standard_exception_sym): Update.
650 (ada_add_exceptions_from_frame): Update.
651 (ada_add_global_exceptions): Update.
652 (ada_print_subexp): Update.
653 * ax-gdb.c (gen_var_ref): Update.
654 (gen_maybe_namespace_elt): Update.
655 (gen_expr_for_cast): Update.
658 * blockframe.c (find_pc_partial_function): Update.
659 * breakpoint.c (print_breakpoint_location): Update.
660 (update_static_tracepoint): Update.
661 * btrace.c (ftrace_print_function_name): Update.
662 (ftrace_function_switched): Update.
663 * buildsym.c (find_symbol_in_list): Update.
665 * c-typeprint.c (c_print_typedef): Update.
666 (c_type_print_template_args): Update.
667 * cli/cli-cmds.c (edit_command): Update.
668 (list_command): Update.
669 (print_sal_location): Update.
670 * coffread.c (patch_opaque_types): Update.
671 (process_coff_symbol): Update.
672 (coff_read_enum_type): Update.
673 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
674 (convert_one_symbol): Update.
675 (hash_symname): Update.
676 (eq_symname): Update.
677 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
678 * compile/compile-cplus-types.c (debug_print_scope): Update.
679 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
680 * compile/compile-object-load.c (get_out_value_type): Update.
681 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
682 (search_symbol_list): Update.
683 (cp_lookup_symbol_imports_or_template): Update.
684 * cp-support.c (overload_list_add_symbol): Update.
685 * ctfread.c (psymtab_to_symtab): Update.
686 * dbxread.c (cp_set_block_scope): Update.
687 * dictionary.c (iter_match_first_hashed): Update.
688 (iter_match_next_hashed): Update.
689 (insert_symbol_hashed): Update.
690 (iter_match_next_linear): Update.
691 * dictionary.h: Update.
692 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
693 (locexpr_describe_location_piece): Update.
694 (locexpr_describe_location_1): Update.
695 (locexpr_generate_c_location): Update.
696 (loclist_describe_location): Update.
697 (loclist_generate_c_location): Update.
698 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
699 (read_func_scope): Update.
700 (process_enumeration_scope): Update.
701 (new_symbol): Update.
702 (dwarf2_const_value): Update.
703 (dwarf2_symbol_mark_computed): Update.
704 * eval.c (evaluate_funcall): Update.
705 (evaluate_subexp_standard): Update.
706 * expprint.c (print_subexp_standard): Update.
707 (dump_subexp_body_standard): Update.
708 * f-valprint.c (info_common_command_for_block): Update.
709 * findvar.c (get_hosting_frame): Update.
710 (default_read_var_value): Update.
711 * go-lang.c (go_symbol_package_name): Update.
712 * guile/scm-block.c (bkscm_print_block_smob): Update.
713 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
714 (gdbscm_symbol_name): Update.
715 (gdbscm_symbol_linkage_name): Update.
716 (gdbscm_symbol_print_name): Update.
717 * infcall.c (get_function_name): Update.
718 * infcmd.c (jump_command): Update.
719 (finish_command): Update.
720 * infrun.c (insert_exception_resume_breakpoint): Update.
721 * linespec.c (canonicalize_linespec): Update.
722 (create_sals_line_offset): Update.
723 (convert_linespec_to_sals): Update.
724 (complete_label): Update.
725 (find_label_symbols_in_block): Update.
726 * m2-typeprint.c (m2_print_typedef): Update.
727 * mdebugread.c (mdebug_reg_to_regnum): Update.
728 (parse_symbol): Update.
729 (mylookup_symbol): Update.
730 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
731 (list_args_or_locals): Update.
732 * objc-lang.c (compare_selectors): Update.
733 (info_selectors_command): Update.
734 (compare_classes): Update.
735 (info_classes_command): Update.
737 * p-typeprint.c (pascal_print_typedef): Update.
738 * printcmd.c (build_address_symbolic): Update.
739 (info_address_command): Update.
740 (print_variable_and_value): Update.
741 * python/py-framefilter.c (extract_sym): Update.
742 (py_print_single_arg): Update.
743 * python/py-symbol.c (sympy_str): Update.
744 (sympy_get_name): Update.
745 (sympy_get_linkage_name): Update.
746 * python/python.c (gdbpy_rbreak): Update.
747 * record-btrace.c (btrace_get_bfun_name): Update.
748 (btrace_call_history): Update.
749 * rust-lang.c (rust_print_typedef): Update.
750 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
751 * stabsread.c (stab_reg_to_regnum): Update.
752 (define_symbol): Update.
753 (read_enum_type): Update.
754 (common_block_end): Update.
755 (cleanup_undefined_types_1): Update.
756 (scan_file_globals): Update.
757 * stack.c (print_frame_arg): Update.
758 (print_frame_args): Update.
759 (find_frame_funname): Update.
760 (info_frame_command_core): Update.
761 (iterate_over_block_locals): Update.
762 (print_block_frame_labels): Update.
763 (do_print_variable_and_value): Update.
764 (iterate_over_block_arg_vars): Update.
765 (return_command): Update.
766 * symmisc.c (dump_symtab_1): Update.
767 (print_symbol): Update.
768 * symtab.c (eq_symbol_entry): Update.
769 (symbol_cache_dump): Update.
770 (lookup_language_this): Update.
771 (find_pc_sect_line): Update.
772 (skip_prologue_sal): Update.
773 (symbol_search::compare_search_syms): Update.
774 (treg_matches_sym_type_name): Update.
775 (search_symbols): Update.
776 (print_symbol_info): Update.
777 (rbreak_command): Update.
778 (completion_list_add_symbol): Update.
779 (find_gnu_ifunc): Update.
780 (get_symbol_address): Update.
781 (search_module_symbols): Update.
782 (info_module_subcommand): Update.
783 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
784 (SYMBOL_LINKAGE_NAME): Remove.
785 (SYMBOL_DEMANGLED_NAME): Remove.
786 (SYMBOL_PRINT_NAME): Remove.
787 (SYMBOL_SEARCH_NAME): Remove.
788 * tracepoint.c (set_traceframe_context): Update.
789 (validate_actionline): Update.
790 (collection_list::collect_symbol): Update.
791 (encode_actions_1): Update.
792 (info_scope_command): Update.
793 (print_one_static_tracepoint_marker): Update.
794 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
795 * valops.c (address_of_variable): Update.
796 (find_overload_match): Update.
797 (find_oload_champ): Update.
799 2019-11-22 Christian Biesinger <cbiesinger@google.com>
801 * ada-lang.c (ada_lookup_simple_minsym): Update.
802 (ada_collect_symbol_completion_matches): Update.
803 * ada-tasks.c (read_atcb): Update.
804 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
805 (amd64_windows_skip_trampoline_code): Update.
806 * arm-tdep.c (skip_prologue_function): Update.
807 (arm_skip_stack_protector): Update.
808 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
809 (arm_wince_skip_main_prologue): Update.
810 * ax-gdb.c (gen_expr): Update.
811 * block.c (call_site_for_pc): Update.
812 * blockframe.c (find_pc_partial_function): Update.
813 * breakpoint.c (set_breakpoint_location_function): Update.
814 * btrace.c (ftrace_print_function_name): Update.
815 (ftrace_function_switched): Update.
816 * c-valprint.c (print_unpacked_pointer): Update.
817 * coffread.c (coff_symfile_read): Update.
818 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
819 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
820 * dwarf-index-write.c (write_psymbols): Update.
821 * dwarf2loc.c (call_site_to_target_addr): Update.
822 (func_verify_no_selftailcall): Update.
823 (tailcall_dump): Update.
824 (call_site_find_chain_1): Update.
825 (dwarf_expr_reg_to_entry_parameter): Update.
826 * elfread.c (elf_gnu_ifunc_record_cache): Update.
827 * eval.c (evaluate_funcall): Update.
828 (evaluate_subexp_standard): Update.
829 (evaluate_subexp_for_sizeof): Update.
830 * expprint.c (print_subexp_standard): Update.
831 (dump_subexp_body_standard): Update.
832 * frame.c (get_prev_frame_always_1): Update.
833 * frv-tdep.c (frv_skip_main_prologue): Update.
834 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
835 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
836 (gnuv3_get_typename_from_type_info): Update.
837 (gnuv3_skip_trampoline): Update.
838 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
839 * i386-tdep.c (i386_skip_main_prologue): Update.
840 (i386_pe_skip_trampoline_code): Update.
841 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
842 * infcall.c (get_function_name): Update.
843 * linespec.c (minsym_found): Update.
844 * linux-fork.c (info_checkpoints_command): Update.
845 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
846 (m32c_m16c_pointer_to_address): Update.
847 * maint.c (maintenance_translate_address): Update.
848 * minsyms.c (add_minsym_to_hash_table): Update.
849 (add_minsym_to_demangled_hash_table): Update.
850 (lookup_minimal_symbol_mangled): Update.
851 (lookup_minimal_symbol_demangled): Update.
852 (lookup_minimal_symbol_linkage): Update.
853 (lookup_minimal_symbol_text): Update.
854 (lookup_minimal_symbol_by_pc_name): Update.
855 (minimal_symbol_is_less_than): Update.
856 (compact_minimal_symbols): Update.
857 (build_minimal_symbol_hash_tables): Update.
858 (find_solib_trampoline_target): Update.
859 * mips-tdep.c (mips_stub_frame_sniffer): Update.
860 (mips_skip_pic_trampoline_code): Update.
861 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
862 * objc-lang.c (info_selectors_command): Update.
863 (info_classes_command): Update.
864 (find_methods): Update.
866 * p-valprint.c (pascal_val_print): Update.
867 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
868 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
869 * printcmd.c (build_address_symbolic): Update.
870 (info_symbol_command): Update.
871 * psymtab.c (psymbol_name_matches): Update.
872 (match_partial_symbol): Update.
873 (lookup_partial_symbol): Update.
874 (print_partial_symbols): Update.
875 (sort_pst_symbols): Update.
876 (maintenance_check_psymtabs): Update.
877 * python/py-framefilter.c (py_print_frame): Update.
878 * python/python.c (gdbpy_rbreak): Update.
879 * record-btrace.c (btrace_get_bfun_name): Update.
880 (btrace_call_history): Update.
881 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
882 (rs6000_skip_trampoline_code): Update.
883 * sol-thread.c (info_cb): Update.
884 * stabsread.c (scan_file_globals): Update.
885 * stack.c (find_frame_funname): Update.
886 (info_frame_command_core): Update.
887 * symmisc.c (dump_msymbols): Update.
888 * symtab.c (symbol_natural_name): Rename to..,
889 (general_symbol_info::natural_name): ...this.
890 (symbol_demangled_name): Rename to...
891 (general_symbol_info::demangled_name): ...this.
892 (symbol_search_name): Rename to...
893 (general_symbol_info::search_name): ...this.
894 (symbol_matches_search_name): Update.
895 (find_pc_sect_line): Update.
896 (skip_prologue_sal): Update.
897 (search_symbols): Update.
898 (print_msymbol_info): Update.
899 (rbreak_command): Update.
900 (completion_list_add_msymbol): Update.
901 (completion_list_objc_symbol): Update.
902 (get_msymbol_address): Update.
903 * symtab.h (struct general_symbol_info): Add member functions
904 natural_name (), linkage_name (), print_name (), demangled_name (),
906 (SYMBOL_NATURAL_NAME): Update.
907 (symbol_natural_name): Move to a member function on general_symbol_info.
908 (SYMBOL_DEMANGLED_NAME): Update.
909 (symbol_demangled_name): Move to a member function on
911 (SYMBOL_SEARCH_NAME): Update.
912 (symbol_search_name): Move to a member function on general_symbol_info.
913 (MSYMBOL_NATURAL_NAME): Remove.
914 (MSYMBOL_LINKAGE_NAME): Remove.
915 (MSYMBOL_PRINT_NAME): Remove.
916 (MSYMBOL_DEMANGLED_NAME): Remove.
917 (MSYMBOL_SEARCH_NAME): Remove.
918 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
920 2019-11-22 Christian Biesinger <cbiesinger@google.com>
922 * symtab.c (create_demangled_names_hash): Use per_bfd->
923 minimal_symbol_count for computing the initial size, if greater
924 than our default size.
926 2019-11-22 Tom de Vries <tdevries@suse.de>
928 * contrib/words.sh: Improve words extraction.
930 2019-11-22 Tom de Vries <tdevries@suse.de>
932 * contrib/words.sh: Combine sed invocations.
934 2019-11-21 Christian Biesinger <cbiesinger@google.com>
936 * Makefile.in: Update.
937 * demangle.c: Rename to...
938 * gdb-demangle.c: ..this.
939 (is_cplus_marker): Change return type to bool.
940 (_initialize_demangler): Rename to...
941 (_initialize_gdb_demangle): ...this.
942 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
943 * symtab.h (demangle): Remove declaration; instead include
946 2019-11-21 Tom Tromey <tromey@adacore.com>
948 * gdbsupport/format.c (format_pieces): Parse %I64d.
949 * unittests/format_pieces-selftests.c (test_windows_formats): New
951 (run_tests): Call it.
953 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
955 Byte reverse display of variables with DW_END_big, DW_END_little
956 (DW_AT_endianity) dwarf attributes if different than the native
958 * ada-lang.c (ada_value_binop):
959 Use type_byte_order instead of gdbarch_byte_order.
960 * ada-valprint.c (printstr):
961 (ada_val_print_string):
962 * ada-lang.c (value_pointer):
964 Use type_byte_order instead of gdbarch_byte_order.
965 * c-lang.c (c_get_string):
966 Use type_byte_order instead of gdbarch_byte_order.
967 * c-valprint.c (c_val_print_array):
968 Use type_byte_order instead of gdbarch_byte_order.
969 * cp-valprint.c (cp_print_class_member):
970 Use type_byte_order instead of gdbarch_byte_order.
971 * dwarf2loc.c (rw_pieced_value):
972 Use type_byte_order instead of gdbarch_byte_order.
973 * dwarf2read.c (read_base_type): Handle DW_END_big,
975 * f-lang.c (f_get_encoding):
976 Use type_byte_order instead of gdbarch_byte_order.
977 * findvar.c (default_read_var_value):
978 Use type_byte_order instead of gdbarch_byte_order.
979 * gdbtypes.c (check_types_equal):
980 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
981 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
982 and TYPE_ENDIANITY_LITTLE if set.
983 (type_byte_order): new function.
984 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
985 (struct main_type) <flag_endianity_not_default>:
987 (type_byte_order): New function.
988 * infcmd.c (default_print_one_register_info):
989 Use type_byte_order instead of gdbarch_byte_order.
990 * p-lang.c (pascal_printstr):
991 Use type_byte_order instead of gdbarch_byte_order.
992 * p-valprint.c (pascal_val_print):
993 Use type_byte_order instead of gdbarch_byte_order.
994 * printcmd.c (print_scalar_formatted):
995 Use type_byte_order instead of gdbarch_byte_order.
996 * solib-darwin.c (darwin_current_sos):
997 Use type_byte_order instead of gdbarch_byte_order.
998 * solib-svr4.c (solib_svr4_r_ldsomap):
999 Use type_byte_order instead of gdbarch_byte_order.
1000 * stap-probe.c (stap_modify_semaphore):
1001 Use type_byte_order instead of gdbarch_byte_order.
1002 * target-float.c (target_float_same_format_p):
1003 Use type_byte_order instead of gdbarch_byte_order.
1004 * valarith.c (scalar_binop):
1006 Use type_byte_order instead of gdbarch_byte_order.
1007 * valops.c (value_cast):
1008 Use type_byte_order instead of gdbarch_byte_order.
1009 * valprint.c (generic_emit_char):
1012 Use type_byte_order instead of gdbarch_byte_order.
1013 * value.c (unpack_long):
1014 (unpack_bits_as_long):
1015 (unpack_value_bitfield):
1018 (pack_unsigned_long):
1019 Use type_byte_order instead of gdbarch_byte_order.
1020 * findvar.c (unsigned_pointer_to_address):
1021 (signed_pointer_to_address):
1022 (unsigned_address_to_pointer):
1023 (address_to_signed_pointer):
1024 (default_read_var_value):
1025 (default_value_from_register):
1026 Use type_byte_order instead of gdbarch_byte_order.
1027 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1028 Use type_byte_order instead of gdbarch_byte_order.
1029 * riscv-tdep.c (riscv_print_one_register_info):
1030 Use type_byte_order instead of gdbarch_byte_order.
1032 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1034 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1035 (current_ui_gdb_stdin_ptr): Likewise.
1036 (current_ui_gdb_stderr_ptr): Likewise.
1037 (current_ui_gdb_stdlog_ptr): Likewise.
1038 (current_ui_current_uiout_ptr): Likewise.
1039 (gen_ret_current_ui_field_ptr): Remove.
1041 2019-11-21 Tom de Vries <tdevries@suse.de>
1044 * cli/cli-script.c (execute_control_command): Only switch to
1045 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1047 2019-11-19 Tom Tromey <tom@tromey.com>
1049 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1050 Now static. Change type of "name".
1051 (tui_set_win_height_command): Don't copy "arg".
1052 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1053 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1055 2019-11-19 Ali Tamur <tamur@google.com>
1057 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1058 "if (attr != nullptr)".
1059 (dwarf2_find_base_address): Likewise.
1060 (dwarf2_build_include_psymtabs): Likewise.
1061 (read_cutu_die_from_dwo): Likewise.
1062 (read_func_scope): Likewise.
1063 (read_call_site_scope): Likewise.
1064 (dwarf2_get_pc_bounds): Likewise.
1065 (dwarf2_record_block_ranges): Likewise.
1066 (dwarf2_add_field): Likewise.
1067 (dwarf2_add_member_fn): Likewise.
1068 (read_structure_type): Likewise.
1069 (read_enumeration_type): Likewise.
1070 (read_array_type): Likewise.
1071 (read_array_order): Likewise.
1072 (read_set_type): Likewise.
1073 (read_common_block): Likewise.
1074 (read_tag_reference_type): Likewise.
1075 (read_tag_string_type): Likewise.
1076 (read_subroutine_type): Likewise.
1077 (read_base_type): Likewise.
1078 (read_subrange_type): Likewise.
1079 (new_symbol): Likewise.
1080 (prepare_one_comp_unit): Likewise.
1082 2019-11-19 Tom Tromey <tromey@adacore.com>
1084 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1085 result in error when DebugActiveProcess fails.
1087 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1088 Pedro Alves <palves@redhat.com>
1090 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1091 * target.c (target_stack::push): Call 'unpush' if there's a
1092 target on top of the stack.
1094 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1096 * python/py-block.c (blpy_dealloc): Call tp_free.
1097 (blpy_block_syms_dealloc): Likewise.
1098 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1099 * python/py-inferior.c (infpy_dealloc): Likewise.
1100 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1101 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1102 * python/py-symbol.c (sympy_dealloc): Likewise.
1103 * python/py-symtab.c (stpy_dealloc): Likewise.
1104 * python/py-type.c (typy_iterator_dealloc): Likewise.
1106 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1108 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1109 constructor instead of using a class initializer.
1111 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1113 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1114 * configure: Regenerate.
1115 * configure.ac: Don't source common.host.
1116 * gdbsupport/common.host: Remove.
1117 * gdbsupport/mingw-strerror.c: Remove.
1118 * gdbsupport/posix-strerror.c: Rename to...
1119 * gdbsupport/safe-strerror.c: ...this.
1121 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1123 * maint.c (scoped_command_stats::print_time): Use localtime_r
1124 instead of localtime (provided through gnulib if necessary).
1125 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1128 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1130 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1131 avoid compile errors.
1133 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1135 * config.in: Regenerate.
1136 * configure: Regenerate.
1137 * gdbsupport/common.m4: No longer check for strerror_r.
1138 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1139 POSIX version of strerror_r, now that gnulib provides it if
1142 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1144 * README (`configure' options): Update.
1146 2019-11-14 Tom Tromey <tromey@adacore.com>
1148 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1149 expected type for the RHS if the LHS is a convenience variable.
1151 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1153 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1154 Provide explicit default and copy constructor.
1156 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1158 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1159 only call Py_INCREF (newbp) in the bppy_pending_object case.
1161 2019-11-13 Tom Tromey <tromey@adacore.com>
1164 * psympriv.h (partial_symbol): Remove static assert.
1165 * symtab.h (general_symbol_info, symbol): Remove static assert.
1167 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1169 * gdbsupport/format.c (format_pieces::format_pieces): Support
1170 printf 'z' size modifier.
1171 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1172 * printcmd.c (ui_printf): Handle size_t_arg.
1173 * ui-out.c (ui_out::vmessage): Likewise.
1174 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1176 (run_tests): Call test_format_int_sizes.
1178 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1180 * ada-exp.y (write_ambiguous_var): Update.
1181 * buildsym.c (add_symbol_to_list): Update.
1182 * dwarf2read.c (read_variable): Update.
1183 (new_symbol): Update.
1184 * jit.c (finalize_symtab): Update.
1185 * language.c (language_alloc_type_symbol): Update.
1186 * symtab.c (fixup_symbol_section): Update.
1187 (initialize_objfile_symbol_1): Move code to...
1188 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1189 (allocate_symbol): Update.
1190 (allocate_template_symbol): Update.
1191 (get_symbol_address): Update.
1192 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1193 of having as a field, and add a constructor.
1194 (SYMBOL_VALUE): Update.
1195 (SYMBOL_VALUE_ADDRESS): Update.
1196 (SET_SYMBOL_VALUE_ADDRESS): Update.
1197 (SYMBOL_VALUE_BYTES): Update.
1198 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1199 (SYMBOL_BLOCK_VALUE): Update.
1200 (SYMBOL_VALUE_CHAIN): Update.
1201 (SYMBOL_LANGUAGE): Update.
1202 (SYMBOL_SECTION): Update.
1203 (SYMBOL_OBJ_SECTION): Update.
1204 (SYMBOL_SET_LANGUAGE): Update.
1205 (SYMBOL_SET_LINKAGE_NAME): Update.
1206 (SYMBOL_SET_NAMES): Update.
1207 (SYMBOL_NATURAL_NAME): Update.
1208 (SYMBOL_LINKAGE_NAME): Update.
1209 (SYMBOL_DEMANGLED_NAME): Update.
1210 (SYMBOL_SEARCH_NAME): Update.
1211 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1212 (struct symbol): Update.
1213 (struct template_symbol): Update.
1214 (struct rust_vtable_symbol): Update.
1215 * xcoffread.c (SYMBOL_DUP): Update.
1217 2019-11-12 Tom Tromey <tom@tromey.com>
1219 * tui/tui-layout.c (show_layout): Set current_layout.
1220 (show_source_disasm_command, show_data)
1221 (show_source_or_disasm_and_command): Don't set current_layout.
1223 2019-11-12 Tom Tromey <tom@tromey.com>
1225 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1227 2019-11-12 Tom Tromey <tom@tromey.com>
1229 * tui/tui-win.c (resize_message): New global.
1230 (show_tui_resize_message): New function.
1231 (tui_async_resize_screen): Print message if requested.
1232 (_initialize_tui_win): Add tui-resize-message setting.
1233 * NEWS: Add entry for new commands.
1235 2019-11-11 Tom Tromey <tom@tromey.com>
1237 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1240 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1242 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1244 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1246 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1248 * python/python-internal.h (gdbpy_lookup_static_symbols):
1249 Declare new function.
1250 * python/python.c (python_GdbMethods): Add
1251 gdb.lookup_static_symbols method.
1252 * NEWS: Mention gdb.lookup_static_symbols.
1254 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1257 static block of current object file first. Also fix typo in
1260 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1262 * stack.c (set_last_displayed_sal): Delete.
1263 (last_displayed_sal_valid): Delete.
1264 (last_displayed_pspace): Delete.
1265 (last_displayed_addr): Delete.
1266 (last_displayed_symtab): Delete.
1267 (last_displayed_line): Delete.
1268 (class last_displayed_symtab_info_type): New.
1269 (last_displayed_symtab_info): New static global variable.
1270 (print_frame_info): Call methods on last_displayed_symtab_info.
1271 (clear_last_displayed_sal): Update header comment, and make use of
1272 last_displayed_symtab_info.
1273 (last_displayed_sal_is_valid): Likewise.
1274 (get_last_displayed_pspace): Likewise.
1275 (get_last_displayed_addr): Likewise.
1276 (get_last_displayed_symtab): Likewise.
1277 (get_last_displayed_line): Likewise.
1278 (get_last_displayed_sal): Likewise.
1279 * stack.h (clear_last_displayed_sal): Update header comment.
1280 (last_displayed_sal_is_valid): Likewise.
1281 (get_last_displayed_pspace): Likewise.
1282 (get_last_displayed_addr): Likewise.
1283 (get_last_displayed_symtab): Likewise.
1284 (get_last_displayed_line): Likewise.
1285 (get_last_displayed_sal): Likewise.
1287 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1289 * stack.c (frame_show_address): Convert return type to bool.
1290 * stack.h (frame_show_address): Likewise, and update header
1293 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1296 * unittests/vec-utils-selftests.c: New file.
1297 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1299 2019-11-10 Tom Tromey <tom@tromey.com>
1301 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1302 (tui_highlight_win): Likewise.
1303 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1304 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1305 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1306 Don't set can_highlight.
1308 2019-11-10 Tom Tromey <tom@tromey.com>
1310 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1311 Remove unused declaration.
1313 2019-11-08 Tom Tromey <tromey@adacore.com>
1315 * top.c (read_command_file): Update.
1316 (command_line_input): Make return type const.
1317 * python/py-gdb-readline.c: Update.
1318 * linespec.c (decode_line_2): Update.
1319 * defs.h (command_line_input): Make return type const.
1320 * cli/cli-script.c (read_next_line): Make return type const.
1321 * ada-lang.c (get_selections): Update.
1323 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1325 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1326 * mi/mi-main.c (output_cores): Likewise.
1327 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1328 (linux_xfer_osdata_modules): Likewise.
1329 * remote.c (register_remote_support_xml): Likewise.
1330 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1331 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1333 2019-11-06 Tom Tromey <tom@tromey.com>
1335 * tui/tui-interp.c: Don't include readline.h.
1336 * tui/tui-hooks.c: Don't include readline.h.
1337 * symmisc.c: Include tilde.h, not readline.h.
1338 * symfile.c: Include tilde.h, not readline.h.
1339 * source.c: Include tilde.h, not readline.h.
1340 * solib.c: Include tilde.h, not readline.h.
1341 * psymtab.c: Include tilde.h, not readline.h.
1342 * exec.c: Include tilde.h, not readline.h.
1343 * corelow.c: Include tilde.h, not readline.h.
1344 * cli/cli-dump.c: Include tilde.h, not readline.h.
1345 * cli/cli-cmds.c: Don't include readline.h.
1347 2019-11-05 Tom Tromey <tom@tromey.com>
1349 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1350 (tui_disassemble): Set addr_size.
1351 (tui_disasm_window::set_contents): Use addr_size.
1353 2019-11-05 Tom Tromey <tom@tromey.com>
1355 * rust-lang.c (rust_language_defn): Update.
1356 * python/py-value.c (valpy_string): Call c_get_string.
1357 * p-lang.c (pascal_language_defn): Update.
1358 * opencl-lang.c (opencl_language_defn): Update.
1359 * objc-lang.c (objc_language_defn): Update.
1360 * m2-lang.c (m2_language_defn): Update.
1361 * language.c (unknown_language_defn, auto_language_defn): Update.
1362 (default_get_string): Remove.
1363 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1364 * go-lang.c (go_language_defn): Update.
1365 * f-lang.c (f_language_defn): Update.
1366 * d-lang.c (d_language_defn): Update.
1367 * c-lang.c (c_language_defn, cplus_language_defn)
1368 (asm_language_defn, minimal_language_defn): Update.
1369 * ada-lang.c (ada_language_defn): Update.
1370 * language.h (struct language_defn) <la_get_string>: Remove.
1371 (LA_GET_STRING): Remove.
1372 (default_get_string): Don't declare.
1374 2019-11-05 Tom Tromey <tom@tromey.com>
1376 * tui/tui-source.h (struct tui_source_window): Inline
1377 constructor. Remove destructor.
1378 <style_changed, m_observable>: Move to superclass.
1379 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1380 (struct tui_source_window_base): Move private members to end.
1381 <style_changed, m_observable>: Move from tui_source_window.
1382 * tui/tui-winsource.c (tui_copy_source_line): Move from
1383 tui-source.c. Rename from copy_source_line. Add special handling
1384 for negative line number.
1385 (tui_source_window_base::style_changed): Move from
1387 (tui_source_window_base): Register observer.
1388 (~tui_source_window_base): New.
1389 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1391 (tui_source_window::set_contents): Use tui_copy_source_line.
1392 (tui_source_window::tui_source_window): Move to tui-source.h.
1393 (tui_source_window::~tui_source_window): Remove.
1394 (tui_source_window::style_changed): Move to superclass.
1395 * tui/tui-disasm.c (tui_disassemble): Create string file with
1396 styling, when possible. Add "addr_size" parameter.
1397 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1398 Don't compute maximum size.
1399 (len_without_escapes): New function
1401 2019-11-05 Tom Tromey <tom@tromey.com>
1403 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1405 * tui/tui-winsource.c (tui_show_source_line): Update.
1406 * tui/tui-source.c (tui_source_window::set_contents): Update.
1407 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1409 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1411 * symtab.h (gdb_static_assert): Put && operator at the beginning
1412 of the line instead of the end.
1414 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1416 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1417 and sizeof (symbol).
1418 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1420 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1422 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1423 * configure.host: Mark *-*-solaris2.10* obsolete.
1424 * configure.tgt: Mark Solaris < 11 obsolete.
1425 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1426 Update target triplet.
1428 2019-11-01 Tom Tromey <tromey@adacore.com>
1430 * utils.c (print_sys_errmsg): Simplify.
1432 2019-11-01 Tom Tromey <tromey@adacore.com>
1434 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1436 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1438 * configure: Regenerate.
1439 * configure.ac: Remove check for strerror_r.
1440 * gdbsupport/common.m4: Check for strerror_r.
1442 2019-11-01 Luis Machado <luis.machado@linaro.org>
1446 * arm-tdep.c (arm_per_objfile): Rename to ...
1447 (arm_per_bfd): ... this.
1448 (arm_objfile_data_key): Rename to ...
1449 (arm_bfd_data_key): ... this.
1450 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1452 (arm_record_special_symbol): Likewise.
1454 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1456 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1458 * c-typeprint.c (c_print_typedef): Likewise.
1459 * f-typeprint.c (f_print_typedef): Likewise.
1460 * m2-typeprint.c (m2_print_typedef): Likewise.
1461 * p-typeprint.c (pascal_print_typedef): Likewise.
1462 * rust-lang.c (rust_print_typedef): Likewise.
1463 * symtab.c (print_symbol_info): Print a newline after calling
1466 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1468 * symtab.c (info_module_cmdlist): New variable.
1469 (info_module_command): New function.
1470 (search_module_symbols): New function.
1471 (info_module_subcommand): New function.
1472 (struct info_modules_var_func_options): New struct.
1473 (info_modules_var_func_options_defs): New variable.
1474 (make_info_modules_var_func_options_def_group): New function.
1475 (info_module_functions_command): New function.
1476 (info_module_variables_command): New function.
1477 (info_module_var_func_command_completer): New function.
1478 (_initialize_symtab): Register new 'info module functions' and
1479 'info module variables' commands.
1480 * symtab.h (typedef symbol_search_in_module): New typedef.
1481 (search_module_symbols): Declare new function.
1482 * NEWS: Mention new commands.
1484 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1486 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1487 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1488 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1490 (scan_partial_symbols): Only create partial module symbols for non
1492 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1494 * symtab.c (search_domain_name): Likewise.
1495 (search_symbols): Likewise.
1496 (print_symbol_info): Likewise.
1497 (symtab_symbol_info): Likewise.
1498 (info_modules_command): New function.
1499 (_initialize_symtab): Register 'info modules' command.
1500 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1501 * NEWS: Mention new 'info modules' command.
1503 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1505 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1506 and $_gdb_maint_setting_str.
1508 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1510 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1511 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1512 (str_value_from_setting, gdb_setting_str_internal_fn)
1513 (gdb_maint_setting_str_internal_fn): New functions.
1514 (_initialize_cli_cmds): Define the new convenience functions.
1515 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1516 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1518 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1520 * agent.c (set_can_use_agent): When the setting is turned on,
1521 look up agent symbols if we don't have them yet.
1522 (agent_new_objfile): Don't look up agent symbols when the agent
1525 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1527 * config.in: Regenerate.
1529 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1531 * configure: Regenerate.
1532 * configure.ac: Check for strerror_r.
1533 * gdbsupport/common-utils.h (safe_strerror): Change return value
1534 to const char * and document that this function is now threadsafe.
1535 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1536 thread_local and call strerror_r, if available.
1537 * utils.c (perror_string): Update.
1538 (print_sys_errmsg): Update.
1540 2019-10-31 Luis Machado <luis.machado@linaro.org>
1542 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1544 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1545 objfile to fetch per-bfd data.
1546 (arm_find_exidx_entry): Likewise.
1548 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1550 * gdbsupport/agent.c (debug_agent): Change type to bool.
1551 (use_agent): Likewise.
1552 (all_agent_symbols_look_up): Likewise.
1553 (agent_loaded_p): Change return value to bool.
1554 (agent_look_up_symbols): Update.
1555 (agent_capability_check): Change return value to bool.
1556 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1557 (debug_agent): Change type to bool.
1558 (use_agent): Likewise.
1559 (agent_capability_check): Change return value to bool.
1561 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1563 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1564 (build_minimal_symbol_hash_tables): Code to clear the table moved
1565 to clear_minimal_symbol_hash_tables.
1566 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1569 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1571 * infcmd.c: Remove includes.
1572 * infrun.c: Remove includes.
1574 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1576 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1577 (grow_vect): Remove declaration.
1578 (ada_type_of_array): Remove declaration.
1579 (ada_update_initial_language): Remove declaration.
1580 (ada_fold_name): Remove declaration.
1581 (ada_fill_in_ada_prototype): Remove declaration.
1582 (user_select_syms): Remove declaration.
1583 (get_selections): Remove declaration.
1584 (ada_tag_type): Remove declaration.
1585 (ada_value_tag): Remove declaration.
1586 (ada_is_others_clause): Remove declaration.
1587 (ada_in_variant): Remove declaration.
1588 (ada_value_struct_elt): Remove declaration.
1589 (ada_attribute_name): Remove declaration.
1590 (ada_system_address_type): Remove declaration.
1591 * ada-lang.c (ada_watch_location_expression): Make static.
1592 (GROW_VECT): Move here from ada-lang.h.
1593 (grow_vect): Make static.
1594 (ada_update_initial_language): Make static.
1595 (ada_fold_name): Make static.
1596 (ada_type_of_array): Make static.
1597 (encoded_ordered_before): Move up.
1598 (sort_choices): Move up.
1599 (print_signatures): Move up.
1600 (ada_print_symbol_signature): Move up.
1601 (get_selections): Move up and make static.
1602 (user_select_syms): Move up and make static.
1603 (ada_value_struct_elt): Move up and make static.
1604 (ada_tag_type): Make static.
1605 (ada_value_tag): Make static.
1606 (ada_is_others_clause): Make static.
1607 (ada_in_variant): Make static.
1608 (ada_attribute_name): Make static.
1610 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1612 * ada-lang.c: Remove includes.
1613 * ada-typeprint.c: Remove includes.
1614 * ada-valprint.c: Remove includes.
1616 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1618 * addrmap.c: Add static assertions of type size, moved from
1619 _initialize_addrmap.
1620 (_initialize_addrmap): Remove.
1622 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1624 * coffread.c (record_minimal_symbol): Update.
1625 (process_coff_symbol): Update.
1626 * dbxread.c (read_dbx_symtab): Update.
1627 * dwarf2read.c (add_partial_symbol): Update.
1628 (fixup_go_packaging): Update.
1629 (load_partial_dies): Update.
1630 (new_symbol): Update.
1631 * elfread.c (record_minimal_symbol): Change signature to use
1632 gdb::string_view instead of name+len.
1633 (elf_symtab_read): Update.
1634 (elf_rel_plt_read): Update.
1635 * mdebugread.c (parse_partial_symbols): Update.
1636 (handle_psymbol_enumerators): Update.
1637 (new_symbol): Update.
1638 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1639 to use gdb::string_view instead of name+len.
1640 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1641 * psympriv.h (add_psymbol_to_list): Likewise.
1642 * psymtab.c (add_psymbol_to_bcache): Likewise.
1643 (add_psymbol_to_list): Likewise.
1644 * stabsread.c (define_symbol): Update.
1645 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1646 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1647 (symbol_set_names): Likewise.
1648 * xcoffread.c (scan_xcoff_symtab): Update.
1650 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1652 * symtab.h (symbol_set_names): Document that copy_name must be
1653 set to true for non-nullterminated strings.
1654 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1655 linkage_name if the entry was not found and we need to demangle.
1657 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1659 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1660 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1661 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1662 * gdbsupport/gdb_binary_search.h: New file.
1664 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1666 * NEWS: Mention new --with-system-gdbinit-dir option.
1667 * config.in: Regenerate.
1668 * configure: Regenerate.
1669 * configure.ac: Add new option --with-system-gdbinit-dir.
1670 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1671 for a ".gdb" suffix.
1672 * main.c (get_init_files): Change system_gdbinit argument to
1673 a vector and return the files in SYSTEM_GDBINIT_DIR in
1674 addition to SYSTEM_GDBINIT.
1675 (captured_main_1): Update.
1676 (print_gdb_help): Update.
1677 * top.c (print_gdb_configuration): Also print the value of
1680 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1682 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1683 that takes gdb::string_view arguments.
1685 2019-10-26 Tom de Vries <tdevries@suse.de>
1687 * aarch64-linux-tdep.c: Fix typos in comments.
1688 * aarch64-tdep.c: Same.
1690 * amd64-nat.c: Same.
1692 * arch/aarch64-insn.c: Same.
1694 * breakpoint.h: Same.
1697 * cli/cli-decode.c: Same.
1698 * cli/cli-script.c: Same.
1699 * cli/cli-utils.h: Same.
1700 * coff-pe-read.c: Same.
1702 * compile/compile-cplus-symbols.c: Same.
1703 * compile/compile-object-run.c: Same.
1704 * completer.c: Same.
1706 * cp-support.c: Same.
1708 * dwarf-index-write.c: Same.
1709 * dwarf2-frame.c: Same.
1710 * dwarf2-frame.h: Same.
1712 * frame-base.h: Same.
1717 * guile/scm-objfile.c: Same.
1718 * i386-tdep.c: Same.
1719 * i386-tdep.h: Same.
1722 * linux-nat.c: Same.
1723 * m68k-tdep.c: Same.
1726 * mi/mi-cmd-disas.c: Same.
1727 * mi/mi-getopt.h: Same.
1728 * mi/mi-main.c: Same.
1730 * nat/aarch64-sve-linux-sigcontext.h: Same.
1732 * ppc-linux-nat.c: Same.
1733 * ppc-linux-tdep.c: Same.
1735 * progspace.h: Same.
1736 * prologue-value.h: Same.
1737 * python/py-evtregistry.c: Same.
1738 * python/py-instruction.h: Same.
1739 * record-btrace.c: Same.
1740 * record-full.c: Same.
1742 * rs6000-tdep.c: Same.
1744 * sol-thread.c: Same.
1745 * sparc-sol2-tdep.c: Same.
1746 * sparc64-tdep.c: Same.
1747 * stabsread.c: Same.
1751 * tracepoint.c: Same.
1752 * tui/tui-data.h: Same.
1753 * tui/tui-io.c: Same.
1754 * tui/tui-win.c: Same.
1756 * unittests/rsp-low-selftests.c: Same.
1757 * user-regs.h: Same.
1768 * xtensa-tdep.c: Same.
1770 2019-10-25 Ali Tamur <tamur@google.com>
1772 * charset.c (find_charset_names): Reflect API change.
1774 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1776 * symtab.c (struct demangled_name_entry): Change demangled name
1777 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1778 part of the struct anymore.
1779 (symbol_set_names): No longer obstack allocate + copy the demangled
1780 name, just store the allocated name from bfd.
1782 2019-10-25 Tom Tromey <tromey@adacore.com>
1784 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1785 (bsearch_cie_cmp, add_cie): Remove.
1786 (find_cie): Reimplement.
1787 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1788 (dwarf2_build_frame_info): Update.
1790 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1793 * symfile.c (reread_symbols): Call forget_cached_source_info to
1794 clear the stale source cache.
1796 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1798 * configure: Regenerate.
1799 * configure.ac: Remove code that sets python_has_threads.
1801 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1803 * config.in: Regenerate.
1804 * configure: Regenerate.
1805 * configure.ac: Remove the code that uses sed to get the python
1806 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1808 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1810 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1813 2019-10-23 Tom Tromey <tom@tromey.com>
1815 * arc-tdep.c: Remove ".." from include.
1816 * frv-tdep.c: Remove ".." from include.
1817 * lm32-tdep.c: Remove ".." from include.
1818 * microblaze-tdep.c: Remove ".." from include.
1819 * or1k-tdep.h: Remove ".." from include.
1820 * s12z-tdep.c: Remove ".." from include.
1821 * Makefile.in (OPCODES_CFLAGS): Add comment.
1822 (TOP_CFLAGS): New variable.
1823 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1825 2019-10-23 Tom Tromey <tom@tromey.com>
1827 * Makefile.in (READLINE_DIR): Update.
1829 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1831 * infcall.c (call_function_by_hand_dummy): Fix the function
1832 comment. And extract out a code section into...
1833 (reserve_stack_space): ...this new function.
1835 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1837 * infcall.c (value_arg_coerce): Remove an unused parameter.
1838 (call_function_by_hand_dummy): Update the call to
1841 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1843 * infcall.c (call_function_by_hand_dummy): Refactor.
1845 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1847 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1849 2019-10-23 Tom Tromey <tom@tromey.com>
1851 * configure: Rebuild.
1852 * configure.ac: Don't check for sigprocmask.
1853 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1855 2019-10-23 Tom Tromey <tom@tromey.com>
1857 * configure: Rebuild.
1858 * acinclude.m4: Use m4_include, not sinclude.
1860 2019-10-23 Tom de Vries <tdevries@suse.de>
1862 PR breakpoints/24687
1863 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1865 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1867 * symtab.c (struct demangled_name_entry) <language>: Change from
1868 bitfield to regular variable.
1870 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1872 * symtab.c (struct demangled_name_entry): Add a constructor.
1873 (free_demangled_name_entry): New function to call the destructor
1874 for demangled_name_entry.
1875 (create_demangled_names_hash): Pass free_demangled_name_entry to
1877 (symbol_set_names): Call placement new for demangled_name_entry.
1878 * utils.c: No longer include xxhash.h here, now that fast_hash
1879 is inlined in the header.
1880 * utils.h: Instead, include it here.
1882 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1884 * Makefile.in: Link with libxxhash.
1885 * config.in: Regenerate.
1886 * configure: Regenerate.
1887 * configure.ac: Search for libxxhash.
1888 * utils.c (fast_hash): Use xxhash if present.
1890 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1892 * utils.h (fast_hash): New function.
1893 * symtab.c (hash_demangled_name_entry): Call new function
1896 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1898 * symtab.c (struct demangled_name_entry): Change type of mangled
1899 to gdb::string_view. Also adds a constructor that takes the
1901 (hash_demangled_name_entry): Update.
1902 (eq_demangled_name_entry): Update.
1903 (free_demangled_name_entry): New function to call the destructor
1904 now that this is not a POD anymore.
1905 (create_demangled_names_hash): Pass free_demangled_name_entry to
1907 (symbol_set_names): Update.
1909 2019-10-21 Ali Tamur <tamu@google.com>
1911 * dwarf2read.c (dir_index): Change type.
1912 (file_name_index): Likewise.
1913 (line_header::include_dir_at): Change comment and implementation on
1914 whether it is DWARF 5.
1915 (line_header::is_valid_file_index): New function.
1916 (line_header::file_name_at): Change comment and implementation on
1917 whether it is DWARF 5.
1918 (line_header::file_names): Change to private field renamed as
1919 m_file_names and introduce a new accessor method.
1920 (line_header::file_names_size): New method.
1921 (line_header::include_dirs): Change to private field and rename as
1923 (dw2_get_file_names_reader): Define local var at a smaller scope and
1925 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1926 (process_structure_scope): Likewise.
1927 (line_header::add_include_dir): Change message and reflect renaming.
1928 (line_header::add_file_name): Likewise.
1929 (read_formatted_entries): Handle DW_FORM_data16.
1930 (dwarf_decode_line_header): Fix line header length calculation.
1931 (psymtab_include_file_name): Change comment and API.
1932 (lnp_state_machine::m_file): Update comment and reflect type change.
1933 (lnp_state_machine::record_line): Reflect type change.
1934 (dwarf_decode_lines): Reflect API change.
1935 (file_file_name): Likewise.
1936 (file_full_name): Likewise.
1938 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1940 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1942 2019-10-21 Tom Tromey <tom@tromey.com>
1944 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1946 2019-10-21 Tom Tromey <tom@tromey.com>
1948 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1949 NM_H. Use AC_CONFIG_LINKS.
1950 * configure: Rebuild.
1951 * Makefile.in (NM_H): New variable.
1952 (generated_files): Add NM_H. Remove gcore.
1953 (nm.h, stamp-nmh): New targets.
1955 2019-10-20 Tom Tromey <tom@tromey.com>
1957 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1958 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1960 (put_objfile_before): Now static.
1962 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1964 * gdbsupport/common-utils.h (startswith): Change return type to
1967 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1969 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1970 * breakpoint.c (bp_locations_compare): Rename to...
1971 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1972 (update_global_location_list): Use std::sort instead of qsort.
1973 * buildsym.c (compare_line_numbers): Rename to...
1974 (lte_is_less_than): ...this, and change to std::sort semantics.
1975 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1977 * disasm.c (compare_lines): Rename to...
1978 (line_is_less_than): ...this, and change to std::sort semantics.
1979 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1981 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1982 (fde_is_less_than): ...this, and change to std::sort semantics.
1983 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1984 * mdebugread.c (compare_blocks):
1985 (block_is_less_than): ...this, and change to std::sort semantics.
1986 (sort_blocks): Call std::sort instead of qsort.
1987 * objfiles.c (qsort_cmp): Rename to...
1988 (sort_cmp): ...this, and change to std::sort semantics.
1989 (update_section_map): Call std::sort instead of qsort.
1990 * remote.c (compare_pnums): Remove.
1991 (map_regcache_remote_table): Call std::sort instead of qsort.
1992 * utils.c (compare_positive_ints): Remove.
1993 * utils.h (compare_positive_ints): Remove.
1994 * xcoffread.c (compare_lte): Remove.
1995 (arrange_linetable): Call std::sort instead of qsort.
1997 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1999 * symfile.c (init_entry_point_info): Fix typo.
2000 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2002 2019-10-18 Tom de Vries <tdevries@suse.de>
2004 * aarch64-tdep.c: Fix typos in comments.
2006 * ada-tasks.c: Same.
2007 * alpha-tdep.c: Same.
2008 * alpha-tdep.h: Same.
2009 * amd64-nat.c: Same.
2010 * amd64-windows-tdep.c: Same.
2013 * arch-utils.c: Same.
2014 * arm-nbsd-tdep.c: Same.
2017 * blockframe.c: Same.
2020 * coff-pe-read.c: Same.
2022 * cris-tdep.c: Same.
2023 * darwin-nat.c: Same.
2027 * dtrace-probe.c: Same.
2028 * dwarf-index-write.c: Same.
2029 * dwarf2-frame-tailcall.c: Same.
2030 * dwarf2-frame.c: Same.
2031 * dwarf2read.c: Same.
2033 * exceptions.c: Same.
2034 * fbsd-tdep.c: Same.
2038 * gnu-v3-abi.c: Same.
2040 * h8300-tdep.c: Same.
2041 * hppa-tdep.c: Same.
2042 * i386-linux-tdep.c: Same.
2043 * i386-tdep.c: Same.
2044 * ia64-libunwind-tdep.c: Same.
2045 * ia64-tdep.c: Same.
2049 * linux-nat.c: Same.
2050 * linux-thread-db.c: Same.
2051 * machoread.c: Same.
2052 * mdebugread.c: Same.
2054 * mn10300-tdep.c: Same.
2055 * namespace.c: Same.
2057 * opencl-lang.c: Same.
2058 * or1k-tdep.c: Same.
2060 * ppc-linux-nat.c: Same.
2061 * ppc-linux-tdep.c: Same.
2062 * ppc-sysv-tdep.c: Same.
2065 * record-btrace.c: Same.
2066 * record-full.c: Same.
2067 * remote-fileio.c: Same.
2069 * rs6000-tdep.c: Same.
2070 * s12z-tdep.c: Same.
2071 * score-tdep.c: Same.
2075 * sol-thread.c: Same.
2076 * solib-svr4.c: Same.
2079 * sparc-nat.c: Same.
2080 * sparc-sol2-tdep.c: Same.
2081 * sparc-tdep.c: Same.
2082 * sparc64-tdep.c: Same.
2083 * stabsread.c: Same.
2087 * target-descriptions.c: Same.
2088 * target-float.c: Same.
2095 * windows-nat.c: Same.
2096 * xcoffread.c: Same.
2097 * xstormy16-tdep.c: Same.
2098 * xtensa-tdep.c: Same.
2100 2019-10-17 Tom Tromey <tromey@adacore.com>
2102 * configure: Rebuild.
2103 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2104 in AC_CONFIG_FILES invocation.
2105 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2106 new-style config.status invocation.
2108 2019-10-17 Tom de Vries <tdevries@suse.de>
2110 * arm-nbsd-nat.c: Fix typos in comments.
2112 * darwin-nat-info.c: Same.
2113 * dwarf2read.c: Same.
2115 * event-top.c: Same.
2118 * hppa-tdep.c: Same.
2119 * i386-tdep.c: Same.
2122 * mdebugread.c: Same.
2123 * moxie-tdep.c: Same.
2124 * nto-procfs.c: Same.
2126 * ppc-linux-tdep.c: Same.
2128 * riscv-tdep.c: Same.
2129 * s390-tdep.c: Same.
2131 * sparc-linux-tdep.c: Same.
2132 * sparc-nat.c: Same.
2134 * target-descriptions.c: Same.
2138 2019-10-16 Tom Tromey <tom@tromey.com>
2140 * objfiles.h (struct objfile) <original_name>: Now const.
2142 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2144 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2145 pass on to sigsetjmp's second argument.
2146 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2148 2019-10-16 Keith Seitz <keiths@redhat.com>
2151 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2152 sections whose size is greater than the file size.
2154 2019-10-16 Jim Wilson <jimw@sifive.com>
2156 * riscv-tdep.c (riscv_gcc_target_options): New.
2157 (riscv_gnu_triplet_regexp): New.
2158 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2159 set_gdbarch_gnu_triplet_regexp.
2161 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2163 * Makefile.in: Add xml-builtin.h.
2164 * features/feature_to_c.sh: Add an include for xml-builtin.h
2165 to ensure that the compiler checks that the types match.
2166 * xml-builtin.h: New file.
2167 * xml-support.c (fetch_xml_builtin): Add missing const.
2168 * xml-support.h: Remove declaration of xml_builtins.
2170 2019-10-16 Tom de Vries <tdevries@suse.de>
2173 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2174 (amd64_classify_aggregate): ... here.
2175 (amd64_classify_aggregate_field): Handled fiels of nested structs
2178 2019-10-16 Tom de Vries <tdevries@suse.de>
2181 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2182 that handles 'theclass'.
2184 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2186 * linespec.c (decode_digits_ordinary): Update comment.
2187 * make-target-delegates: No longer need to handle VEC case.
2188 * memrange.c (normalize_mem_ranges): Update comment.
2189 * namespace.c (add_using_directive): Update comment.
2190 * objc-lang.c (uniquify_strings): Update comment.
2191 * ppc-linux-nat.c (struct thread_points): Update comment.
2192 * probe.h (find_probes_in_objfile): Update comment.
2193 * target.h (enum flash_preserve_mode): Update comment.
2194 * varobj.c (varobj_restrict_range): Update comment.
2195 * varobj.h (varobj_list_children): Update comment.
2197 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2199 * Makefile.in: Remove references to vec.h and vec.c.
2200 * aarch64-tdep.c: No longer include vec.h.
2201 * ada-lang.c: Likewise.
2202 * ada-lang.h: Likewise.
2203 * arm-tdep.c: Likewise.
2205 * breakpoint.h: Likewise.
2206 * charset.c: Likewise.
2207 * cp-support.h: Likewise.
2208 * dtrace-probe.c: Likewise.
2209 * dwarf2read.c: Likewise.
2210 * extension.h: Likewise.
2211 * gdb_bfd.c: Likewise.
2212 * gdbsupport/gdb_vecs.h: Likewise.
2213 * gdbsupport/vec.c: Remove.
2214 * gdbsupport/vec.h: Remove.
2215 * gdbthread.h: Likewise.
2216 * guile/scm-type.c: Likewise.
2217 * inline-frame.c: Likewise.
2218 * machoread.c: Likewise.
2219 * memattr.c: Likewise.
2220 * memrange.h: Likewise.
2221 * namespace.h: Likewise.
2222 * nat/linux-btrace.h: Likewise.
2223 * osdata.c: Likewise.
2224 * parser-defs.h: Likewise.
2225 * progspace.h: Likewise.
2226 * python/py-type.c: Likewise.
2227 * record-btrace.c: Likewise.
2228 * rust-exp.y: Likewise.
2229 * solib-target.c: Likewise.
2230 * stap-probe.c: Likewise.
2231 * target-descriptions.c: Likewise.
2232 * target-memory.c: Likewise.
2233 * target.h: Likewise.
2234 * varobj.c: Likewise.
2235 * varobj.h: Likewise.
2236 * xml-support.h: Likewise.
2238 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2240 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2241 Update for new std::vector based implementation.
2242 (process_psymtab_comp_unit_reader): Likewise.
2243 (scan_partial_symbols): Likewise.
2244 (recursively_compute_inclusions): Likewise.
2245 (compute_compunit_symtab_includes): Likewise.
2246 (process_imported_unit_die): Likewise.
2247 (queue_and_load_dwo_tu): Likewise.
2248 (follow_die_sig_1): Likewise.
2249 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2250 (typedef dwarf2_per_cu_ptr): Remove.
2251 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2253 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2254 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2255 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2256 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2259 2019-10-15 Tom Tromey <tromey@adacore.com>
2261 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2264 2019-10-15 Tom Tromey <tromey@adacore.com>
2266 * windows-nat.c (windows_nat_target::fetch_registers)
2267 (windows_nat_target::store_registers): Rename "pid" to "tid".
2269 2019-10-15 Tom Tromey <tromey@adacore.com>
2271 * gdbarch.h, gdbarch.c: Rebuild.
2272 * gdbarch.sh (gcc_target_options): Change return type to
2274 * compile/compile.c (get_args): Update.
2275 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2276 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2278 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2280 * arch-utils.c (default_gcc_target_options): Return std::string.
2281 * arch-utils.h (default_gcc_target_options): Return std::string.
2282 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2284 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2286 * breakpoint.c (breakpoint_chain): Make static.
2287 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2288 of accessing breakpoint_chain.
2290 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2292 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2293 to a gdb::function_view and return value to bool.
2294 * breakpoint.h (iterate_over_breakpoints): Likewise.
2295 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2296 (pop_dummy_frame): Update.
2297 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2298 (gdbscm_breakpoints): Update.
2299 * python/py-breakpoint.c (build_bp_list): Update.
2300 (gdbpy_breakpoints): Update.
2301 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2303 (bpfinishpy_handle_stop): Update.
2304 (bpfinishpy_handle_exit): Update.
2305 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2306 (svr4_update_solib_event_breakpoints): Update.
2308 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2310 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2311 when unwrapping single-field structs.
2313 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2315 * dwarf2read.c: Remove includes.
2317 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2319 * ui-out.c (ui_out::call_do_message): Silence
2320 -Wformat-nonliteral warning.
2322 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2324 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2325 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2326 include: readline/tilde.h.
2328 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2330 * remote.c (remote_target::get_trace_status): Remove declaration of
2331 trace_regblock_size.
2333 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2335 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2336 (show_user): Remove declaration of cmdlist.
2337 * cli/cli-cmds.h (max_user_call_depth): Declare.
2338 * cli/cli-script.c (execute_user_command): Remove declaration
2339 of max_user_call_depth.
2341 2019-10-11 Jim Wilson <jimw@sifive.com>
2343 * gdbsupport/print-utils.h (pulongest): Fix comment.
2344 (plongest): Likewise.
2345 (phex): Add missing comment, mention leading zeros.
2346 (phex_nz): Add mention of no leading zeros to comment.
2348 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2349 plongest instead of unsigned long long cast.
2351 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2353 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2354 for external_editor_command and gdbtk_test.
2356 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2358 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2359 * varobj.c (varobjdebug): Move comment to...
2360 * varobj.h (varobjdebug): ...here, and declare.
2362 2019-10-09 Tom Tromey <tom@tromey.com>
2364 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2367 2019-10-09 Tom Tromey <tom@tromey.com>
2369 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2370 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2371 * tui/tui-command.c (tui_cmd_window::resize)
2372 (tui_refresh_cmd_win): Update.
2373 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2374 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2375 * tui/tui-data.c (~tui_gen_win_info): Remove.
2376 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2377 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2378 (tui_redisplay_readline, tui_mld_flush)
2379 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2380 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2381 (tui_data_window::erase_data_content)
2382 (tui_data_item_window::rerender)
2383 (tui_data_item_window::refresh_window): Update.
2384 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2385 (box_win, tui_gen_win_info::make_window)
2386 (tui_gen_win_info::make_visible): Update.
2387 (tui_delete_win): Remove.
2388 * tui/tui-winsource.c
2389 (tui_source_window_base::do_erase_source_content): Update.
2390 (tui_show_source_line, tui_source_window_base::update_tab_width)
2391 (tui_source_window_base::update_exec_info): Update.
2392 * tui/tui-data.h (struct curses_deleter): New.
2393 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2394 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2396 2019-10-09 Tom Tromey <tom@tromey.com>
2398 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2400 2019-10-09 Tom Tromey <tom@tromey.com>
2402 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2403 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2405 2019-10-09 Tom Tromey <tom@tromey.com>
2407 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2408 window height directly.
2409 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2411 * tui/tui-layout.c (tui_default_win_height): Remove.
2412 (tui_default_win_viewport_height): Remove.
2414 2019-10-09 Tom Tromey <tom@tromey.com>
2416 * tui/tui.h: Remove comments.
2418 2019-10-09 Tom de Vries <tdevries@suse.de>
2420 * python/lib/gdb/printer/bound_registers.py: Use
2421 '^builtin_type_bound128' as regexp argument for
2422 add_builtin_pretty_printer.
2424 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2426 * guile/guile.c (guile_extension_script_ops): Remove forward
2427 declaration and mark as static.
2428 (guile_script_ops): Likewise.
2429 (extension_language_guile): Move further down in the file so
2430 it can reference the definitions for guile_{extension_,}script_ops.
2432 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2434 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2435 except SORTL, DFLTCC, and KDSA.
2437 2019-10-08 Tom Tromey <tromey@adacore.com>
2439 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2440 (struct safe_symbol_file_add_args): Remove.
2442 2019-10-08 Tom Tromey <tromey@adacore.com>
2444 * windows-nat.c: Don't include buildsym-legacy.h.
2446 2019-10-08 Tom Tromey <tromey@adacore.com>
2448 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2450 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2452 * gdbtypes.c (overload_debug): Move comment to header.
2453 * gdbtypes.h (overload_debug): Declare.
2454 * valops.c: Remove declaration of overload_debug, instead
2457 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2459 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2461 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2463 * language.h (lang_frame_mismatch_warn): ... here. Also add
2465 * top.c (lang_frame_mismatch_warn): Remove declaration.
2466 (check_frame_language_change): Pass lang_frame_mismatch_warn
2469 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2471 * c-lang.h (vtbl_ptr_name): Declare.
2472 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2474 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2476 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2478 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2481 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2483 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2484 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2485 * ctfread.c: New file.
2486 * ctfread.h: New file.
2487 * elfread.c: Include ctfread.h.
2488 (struct elfinfo text_p): New member ctfsect.
2489 (elf_locate_sections): Mark CTF section.
2490 (elf_symfile_read): Call elfctf_build_psymtabs.
2491 * Makefile.in (LIBCTF): Add.
2494 (DIST): Add ctfread.c.
2496 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2498 * ctfread.c (struct nextfield): Renamed to ...
2499 (struct ctf_nextfield): ... this.
2500 (struct field_info): Renamed to ...
2501 (strut ctf_field_info): ... this.
2502 (attach_fields_to_type): Update for renamed structures.
2503 (ctf_add_member_cb): Likewise.
2504 (ctf_add_enum_member_cb): Likewise.
2505 (process_struct_members): Likewise.
2506 (process_enum_type): Likewise.
2508 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2510 * tracectf.h: Rename, was ctf.h.
2511 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2512 * tracefile.c: Likewise.
2513 * tracepoint.c: Remove unused include ctf.h.
2514 * mi/mi-main.c: Likewise.
2515 * Makefile.in Replace ctf.c with tracectf.c.
2517 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2519 * version.in: Change version number to "9.0.50.DATE-git".
2521 2019-10-03 Tom Tromey <tom@tromey.com>
2524 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2526 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2528 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2529 cp_search_name_hash.
2530 * NEWS: Add entry about nested function support.
2532 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2533 Andrew Burgess <andrew.burgess@embecosm.com>
2535 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2536 for nested static variables when searchin VAR_DOMAIN.
2537 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2538 global scope, update comment.
2539 (add_partial_subprogram): Call add_partial_subprogram recursively
2540 for nested subroutines when processinng Fortran.
2541 (load_partial_dies): Process the child entities of a subprogram
2542 when processing Fortran.
2543 (partial_die_parent_scope): Handle building scope
2544 for Fortran nested functions.
2545 (process_die): Record that nested functions have a scope.
2546 (new_symbol): Always record Fortran subprograms on the global
2548 (determine_prefix): How to build the prefix for Fortran
2551 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2553 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2554 have just sent the thread a SIGSTOP and are waiting for it to
2557 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2559 * btrace.c (btrace_add_pc): Remove whitespace before the template
2560 parameter in 'std::vector <...>'.
2561 (parse_xml_btrace_block): Likewise.
2562 (btrace_maint_decode_pt): Likewise.
2563 (btrace_maint_update_packets): Likewise.
2564 (btrace_maint_print_packets): Likewise.
2565 * btrace.h (struct btrace_maint_info): Likewise.
2566 * dwarf2read.c (struct type_unit_group): Likewise.
2567 (build_type_psymtabs_reader): Likewise.
2568 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2569 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2570 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2572 2019-10-03 Tom de Vries <tdevries@suse.de>
2574 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2575 the first line of the help text for set/show style metadata.
2577 2019-10-02 Tom Tromey <tromey@adacore.com>
2579 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2580 * gdbsupport/common-inferior.c: New file.
2581 * infcmd.c (startup_with_shell): Don't define.
2582 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2583 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2584 * inferior.h (startup_with_shell): Don't declare.
2586 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2588 * gdbsupport/gdb_assert.h: Include errors.h.
2589 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2591 2019-10-02 Tom Tromey <tromey@adacore.com>
2593 * NEWS: Add $_ada_exception entry.
2594 * ada-lang.c (struct ada_catchpoint): Add constructor.
2595 <m_kind>: New member.
2596 (allocate_location_exception, re_set_exception): Remove
2598 (should_stop_exception): Compute $_ada_exception.
2599 (check_status_exception, print_it_exception)
2600 (print_one_exception, print_mention_exception): Remove
2602 (allocate_location_catch_exception, re_set_catch_exception)
2603 (check_status_exception, print_it_catch_exception)
2604 (print_one_catch_exception, print_mention_catch_exception)
2605 (print_recreate_catch_exception)
2606 (allocate_location_catch_exception_unhandled)
2607 (re_set_catch_exception_unhandled)
2608 (check_status_exception, print_it_catch_exception_unhandled)
2609 (print_one_catch_exception_unhandled)
2610 (print_mention_catch_exception_unhandled)
2611 (print_recreate_catch_exception_unhandled)
2612 (allocate_location_catch_assert, re_set_catch_assert)
2613 (check_status_assert, print_it_catch_assert)
2614 (print_one_catch_assert, print_mention_catch_assert)
2615 (print_recreate_catch_assert)
2616 (allocate_location_catch_handlers, re_set_catch_handlers)
2617 (check_status_handlers, print_it_catch_handlers)
2618 (print_one_catch_handlers, print_mention_catch_handlers)
2619 (print_recreate_catch_handlers): Remove.
2620 (create_ada_exception_catchpoint): Update.
2621 (initialize_ada_catchpoint_ops): Update.
2623 2019-10-02 Tom Tromey <tromey@adacore.com>
2625 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2626 (create_excep_cond_exprs): Simplify exception string computation.
2627 (ada_exception_catchpoint_cond_string): Likewise.
2629 2019-10-02 Tom Tromey <tromey@adacore.com>
2631 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2632 * ada-lang.c (lesseq_defined_than): Handle
2634 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2636 (dwarf2_has_info): Likewise.
2637 (new_symbol): Set maybe_copied on symbol when
2639 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2641 <can_copy>: New member.
2642 * elfread.c (record_minimal_symbol): Set maybe_copied
2643 on symbol when appropriate.
2644 (elf_symfile_read): Update call to dwarf2_has_info.
2645 * minsyms.c (lookup_minimal_symbol_linkage): New
2647 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2648 * symtab.c (get_symbol_address, get_msymbol_address):
2650 * symtab.h (get_symbol_address, get_msymbol_address):
2652 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2654 (struct symbol, struct minimal_symbol) <maybe_copied>:
2657 2019-10-02 Tom Tromey <tromey@adacore.com>
2659 * source.c (struct current_source_location): New.
2660 (current_source_key): New global.
2661 (current_source_symtab, current_source_line)
2662 (current_source_pspace): Remove.
2663 (get_source_location): New function.
2664 (get_current_source_symtab_and_line)
2665 (set_default_source_symtab_and_line)
2666 (set_current_source_symtab_and_line)
2667 (clear_current_source_symtab_and_line, select_source_symtab)
2668 (info_source_command, print_source_lines_base)
2669 (info_line_command, search_command_helper, _initialize_source):
2672 2019-10-02 Tom Tromey <tromey@adacore.com>
2674 * source.c (select_source_symtab): Don't call
2675 decode_line_with_current_source.
2677 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2679 * symtab.c (lookup_global_symbol): Search global block.
2681 2019-10-02 Tom Tromey <tromey@adacore.com>
2683 * coffread.c (process_coff_symbol): Update.
2684 * dwarf2read.c (var_decode_location, new_symbol): Update.
2685 * mdebugread.c (parse_symbol): Update.
2686 * objfiles.c (relocate_one_symbol): Update.
2687 * stabsread.c (define_symbol, fix_common_block)
2688 (scan_file_globals): Update.
2689 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2690 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2691 * xcoffread.c (process_xcoff_symbol): Update.
2693 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2695 * MAINTAINERS: Update my email address.
2697 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2699 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2701 (build_type_psymtabs_reader): Update for std::vector.
2702 (build_type_psymtab_dependencies): Likewise.
2703 * dwarf2read.h: Remove use of DEF_VEC_P.
2704 (typedef sig_type_ptr): Delete.
2706 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2708 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2710 (btrace_maint_decode_pt): Likewise, and move allocation of the
2711 vector outside of the loop.
2712 (btrace_maint_update_packets): Update to handle change from VEC to
2714 (btrace_maint_print_packets): Likewise.
2715 (maint_info_btrace_cmd): Likewise.
2716 * btrace.h: Remove use of DEF_VEC_O.
2717 (typedef btrace_pt_packet_s): Delete.
2718 (struct btrace_maint_info) <packets>: Change fromm VEC to
2720 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2722 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2724 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2725 make accesses into the vector constant references.
2726 (btrace_add_pc): Update for std::vector.
2727 (btrace_stitch_bts): Likewise.
2728 (parse_xml_btrace_block): Likewise.
2729 (btrace_maint_update_packets): Likewise.
2730 (btrace_maint_print_packets): Likewise.
2731 (maint_info_btrace_cmd): Likewise.
2732 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2734 (btrace_data::empty): Likewise.
2735 (btrace_data_append): Likewise.
2736 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2737 (typedef btrace_block_s): Delete.
2738 (struct btrace_block): Add constructor.
2739 (struct btrace_data_bts) <blocks>: Change to std::vector.
2740 * nat/linux-btrace.c (perf_event_read_bts): Update for
2742 (linux_read_bts): Likewise.
2744 2019-10-01 Tom Tromey <tom@tromey.com>
2746 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2748 2019-10-01 Tom Tromey <tom@tromey.com>
2750 * stack.c (print_frame, info_frame_command_core): Use
2752 * linux-thread-db.c (try_thread_db_load_1)
2753 (try_thread_db_load_from_pdir_1): Use styled_string.
2754 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2755 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2756 (maybe_print_unsupported_script_warning)
2757 (maybe_print_script_not_found_warning): Use styled_string.
2758 * ada-lang.c (user_select_syms): Use styled_string.
2760 2019-10-01 Tom Tromey <tom@tromey.com>
2762 * p-lang.c (pascal_printstr): Use metadata style.
2763 * value.c (show_convenience): Use metadata style.
2764 * valprint.c (valprint_check_validity, val_print_optimized_out)
2765 (val_print_not_saved, val_print_unavailable)
2766 (val_print_invalid_address, generic_val_print, val_print)
2767 (value_check_printable, val_print_array_elements): Use metadata
2769 * ui-out.h (class ui_out) <field_fmt>: New overload.
2770 <do_field_fmt>: Add style parameter.
2771 * ui-out.c (ui_out::field_fmt): New overload.
2772 * typeprint.c (type_print_unknown_return_type)
2773 (val_print_not_allocated, val_print_not_associated): Use metadata
2775 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2777 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2778 * tracepoint.c (tvariables_info_1): Use metadata style.
2779 * stack.c (print_frame_arg, print_frame_info, print_frame)
2780 (info_frame_command_core): Use metadata style.
2781 * skip.c (info_skip_command): Use metadata style.
2782 * rust-lang.c (rust_print_enum): Use metadata style.
2783 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2785 * python/py-framefilter.c (py_print_single_arg): Use metadata
2787 * printcmd.c (do_one_display, print_variable_and_value): Use
2789 * p-valprint.c (pascal_val_print)
2790 (pascal_object_print_value_fields): Use metadata style.
2791 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2792 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2794 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2795 * m2-valprint.c (m2_print_long_set): Use metadata style.
2796 * m2-typeprint.c (m2_print_type): Use metadata style.
2797 * infcmd.c (print_return_value_1): Use metadata style.
2798 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2799 * f-valprint.c (info_common_command_for_block): Use metadata
2801 * f-typeprint.c (f_type_print_base): Use metadata style.
2802 * expprint.c (print_subexp_standard): Use metadata style.
2803 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2804 * cli/cli-style.h (class cli_style_option): Add constructor.
2805 (metadata_style): Declare.
2806 * cli/cli-style.c (metadata_style): New global.
2807 (_initialize_cli_style): Register metadata style.
2808 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2810 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2811 * c-typeprint.c (c_type_print_base_struct_union)
2812 (c_type_print_base_1): Use metadata style.
2813 * breakpoint.c (watchpoint_value_print)
2814 (print_one_breakpoint_location): Use metadata style.
2815 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2817 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2819 * ada-valprint.c (val_print_packed_array_elements, printstr)
2820 (print_field_values, ada_val_print_ref, ada_val_print): Use
2822 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2824 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2826 * ada-lang.c (user_select_syms): Use metadata style.
2828 2019-10-01 Tom Tromey <tom@tromey.com>
2830 * cli/cli-cmds.c (pwd_command): Style output.
2832 2019-10-01 Pedro Alves <palves@redhat.com>
2833 Tom Tromey <tom@tromey.com>
2835 * symtab.c (print_symbol_info): Use %ps.
2836 (print_msymbol_info): Use %ps.
2837 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2838 * printcmd.c (print_variable_and_value): Use %ps.
2839 * macrocmd.c (show_pp_source_pos): Use %ps.
2840 * infrun.c (print_exited_reason): Use ui_out::message.
2841 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2842 (describe_other_breakpoints): Use ui_out::message and new
2844 (say_where): Use new formats.
2845 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2848 2019-10-01 Pedro Alves <palves@redhat.com>
2849 Tom Tromey <tom@tromey.com>
2851 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2852 (test_gdb_formats): New function.
2853 (run_tests): Call it.
2854 (test_format_specifier): Update.
2855 * utils.h (fputs_filtered): Update comment.
2856 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2857 (fputs_styled_unfiltered): Declare.
2858 * utils.c (fputs_styled_unfiltered): New function.
2859 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2860 (vfprintf_filtered): Update.
2861 (vfprintf_unfiltered, vprintf_filtered): Update.
2862 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2863 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2864 disallow_ui_out_field>: New constants.
2865 (enum class field_kind): New.
2866 (struct base_field_s, struct signed_field_s): New.
2867 (signed_field): New function.
2868 (struct string_field_s): New.
2869 (string_field): New function.
2870 (struct styled_string_s): New.
2871 (styled_string): New function.
2872 (class ui_out) <message>: Add comment.
2873 <vmessage, call_do_message>: New methods.
2874 <do_message>: Add style parameter.
2875 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2877 (ui_out::message): Rewrite.
2878 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2880 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2881 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2882 gdb_extensions parameter.
2883 (class format_piece): Add parameter to constructor.
2884 (n_int_args): New field.
2885 * gdbsupport/format.c (format_pieces::format_pieces): Add
2886 gdb_extensions parameter. Handle '*'.
2887 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2888 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2889 vfprintf_styled_no_gdbfmt.
2890 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2891 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2893 * ui-style.h (struct ui_file_style) <ptr>: New method.
2895 2019-10-01 Tom Tromey <tom@tromey.com>
2897 * unittests/format_pieces-selftests.c: Update. Add final format.
2898 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2899 empty literal pieces.
2901 2019-10-01 Tom Tromey <tom@tromey.com>
2903 * ui-out.h (enum class ui_out_style_kind): Remove.
2904 (class ui_out) <field_string, field_stsream, do_field_string>:
2905 Change type of "style".
2906 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2907 (ui_out::field_string): Update.
2908 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2910 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2911 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2912 * stack.c (print_frame_arg, print_frame_info, print_frame):
2914 * source.c (print_source_lines_base): Update.
2915 * solib.c (info_sharedlibrary_command): Update.
2916 * skip.c (info_skip_command): Update.
2917 * record-btrace.c (btrace_call_history_src_line)
2918 (btrace_call_history): Update.
2919 * python/py-framefilter.c (py_print_frame): Update.
2920 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2922 * mi/mi-out.c (mi_ui_out::do_table_header)
2923 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2924 (mi_ui_out::do_field_string): Update.
2925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2927 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2929 * cli-out.c (cli_ui_out::do_table_header)
2930 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2931 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2932 (cli_ui_out::do_field_fmt): Update.
2933 * breakpoint.c (print_breakpoint_location): Update.
2934 (update_static_tracepoint): Update.
2936 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2938 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2939 conversion of gdb_datadir.
2940 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2941 remove not needed c_str ().
2943 2019-09-30 Ali Tamur <tamur@google.com>
2945 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2946 (dwarf2_string_attr): Likewise.
2948 2019-09-30 Ali Tamur <tamur@google.com>
2950 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2951 (process_full_type_unit): Likewise.
2952 (dump_die_shallow): Likewise.
2953 (cu_debug_loc_section): Likewise.
2955 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2957 * minsyms.c (compare_minimal_symbols): Rename to...
2958 (minimal_symbol_is_less_than): ...this, and adjust to STL
2959 conventions (return bool, take arguments as references)
2960 (minimal_symbol_reader::install): Call std::sort instead
2963 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2965 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2967 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2968 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2970 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2972 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2973 * psympriv.h (add_psymbol_to_list): Move comment here and update
2976 2019-09-29 Tom de Vries <tdevries@suse.de>
2978 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2979 Use $tmpdir/$(basename "$output_file").dwz instead of
2980 "${output_file}.dwz".
2982 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2985 * hppa-linux-nat.c: Include gdbarch.h.
2987 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2989 * blockframe.c (find_pc_partial_function): Change return type to bool.
2990 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2991 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2992 (stub_gnu_ifunc_resolve_name): Likewise.
2993 * symtab.c (compare_filenames_for_search): Likewise.
2994 (compare_glob_filenames_for_search): Likewise.
2995 (matching_obj_sections): Likewise.
2996 (symbol_matches_domain): Likewise.
2997 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2998 (find_line_pc): Change return type to bool.
2999 (find_line_pc_range): Likewise.
3000 (producer_is_realview): Likewise.
3001 * symtab.h (symbol_matches_domain): Likewise.
3002 (find_pc_partial_function): Likewise.
3003 (find_pc_line_pc_range): Likewise.
3004 (in_gnu_ifunc_stub): Likewise.
3005 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3006 (find_line_pc): Likewise.
3007 (find_line_pc_range): Likewise.
3008 (matching_obj_sections): Likewise.
3009 (find_line_symtab): Change out parameter to bool.
3010 (producer_is_realview): Change return type to bool.
3011 (compare_filenames_for_search): Likewise.
3012 (compare_glob_filenames_for_search): Likewise.
3014 2019-09-26 Tom Tromey <tom@tromey.com>
3016 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3017 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3018 * gdb_usleep.h: Remove.
3019 * gdb_usleep.c: Remove.
3020 * utils.c: Don't include gdb_usleep.h.
3022 2019-09-26 Tom Tromey <tromey@adacore.com>
3024 * python/py-type.c (type_to_type_object): Call check_typedef
3027 2019-09-26 Tom Tromey <tom@tromey.com>
3029 * utils.h (initialize_utils): Don't declare.
3030 * top.c (gdb_init): Don't call initialize_utils.
3031 * utils.c (initialize_utils): Remove. Move contents...
3032 (_initialize_utils): ... here.
3034 2019-09-25 Tom Tromey <tom@tromey.com>
3036 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3037 * utils.h (make_hex_string): Don't declare.
3038 * utils.c (make_hex_string): Remove.
3040 2019-09-24 Tom de Vries <tdevries@suse.de>
3043 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3044 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3046 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3048 * NEWS: Mention new simulator port for PRU.
3050 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3052 * ada-exp.y (write_object_remaining): Update.
3053 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3054 and eliminate the static buffer.
3055 (ada_decode_symbol): Update.
3056 (ada_la_decode): Update.
3057 (ada_sniff_from_mangled_name): Update.
3058 (is_valid_name_for_wild_match): Update.
3059 (ada_lookup_name_info::matches): Update and simplify.
3060 (name_matches_regex): Update.
3061 (ada_add_global_exceptions): Update.
3062 * ada-lang.h (ada_decode): Update signature.
3063 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3064 * dwarf-index-write.c (debug_names::insert): Update.
3066 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3068 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3071 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3073 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3074 Change "nonzero" to "true" in documentation.
3076 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3078 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3079 (_initialize_darwin_solib): Don't set
3080 darwin_so_ops.lookup_lib_global_symbol.
3081 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3082 set_gdbarch_iterate_over_objfiles_in_search_order.
3083 (elf_lookup_lib_symbol): Rename to...
3084 (svr4_iterate_over_objfiles_in_search_order): this, and update
3085 to iterate semantics.
3086 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3087 * solib.c (solib_global_lookup): Remove.
3088 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3089 (solib_global_lookup): Remove.
3090 * symtab.c (lookup_global_or_static_symbol): Remove call to
3091 solib_global_lookup.
3093 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3095 * NEWS: Move entries about default MI version now being
3096 version 3, and about the GDB/MI fix for multi-location
3097 breakpoints to the "since GDB 8.3" section.
3099 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3103 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3105 * NEWS: Mention that Cell/B.E. debugging support was removed.
3106 * MAINTAINERS: Remove spu target.
3108 * config/djgpp/fnchange.lst: Remove entries for removed files.
3110 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3111 spu-multiarch.o, and spu-tdep.o.
3112 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3113 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3114 spu-multiarch.c, and spu-tdep.c.
3115 * spu-linux-nat.c: Remove file.
3116 * spu-multiarch.c: Remove file.
3117 * spu-tdep.c: Remove file.
3118 * spu-tdep.h: Remove file.
3119 * solib-spu.c: Remove file.
3120 * solib-spu.h: Remove file.
3122 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3123 * configure.nat (spu-linux): Remove.
3124 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3125 solib-multiarch.o from gdb_target_obs.
3128 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3130 (ppc_linux_no_features): Update.
3131 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3133 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3134 (tdesc_powerpc_cell64l): Likewise.
3135 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3136 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3138 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3139 Do not include "features/rs6000/powerpc-cell32l.c" or
3140 "features/rs6000/powerpc-cell64l.c".
3141 (ppc_linux_spu_section): Remove.
3142 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3143 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3144 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3145 (ppc_linux_spe_context_lookup): Remove.
3146 (ppc_linux_spe_context_inferior_created): Remove.
3147 (ppc_linux_spe_context_solib_loaded): Remove.
3148 (ppc_linux_spe_context_solib_unloaded): Remove.
3149 (ppc_linux_spe_context): Remove.
3150 (struct ppu2spu_cache): Remove.
3151 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3152 (struct ppu2spu_data): Remove.
3153 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3154 ppu2spu_unwind): Remove.
3155 (ppc_linux_init_abi): Remove Cell/B.E. support.
3156 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3158 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3159 (rs6000/powerpc-cell64l-expedite): Likewise
3160 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3161 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3162 rs6000/powerpc-cell64l.xml.
3163 * features/rs6000/powerpc-cell32l.xml: Remove.
3164 * features/rs6000/powerpc-cell64l.xml: Likewise.
3165 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3166 * features/rs6000/powerpc-cell64l.c: Likewise.
3167 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3168 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3169 * regformats/reg-spu.dat: Remove.
3171 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3172 * corelow.c (struct spuid_list): Remove.
3173 (add_to_spuid_list): Remove.
3174 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3175 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3176 (remote_protocol_features): Remove associated entries.
3177 (_initialize_remote): No longer initialize them.
3178 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3179 * linux-nat.c (SPUFS_MAGIC): Remove.
3180 (linux_proc_xfer_spu): Remove.
3181 (spu_enumerate_spu_ids): Remove.
3182 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3183 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3184 (linux_make_corefile_notes): No longer call it.
3186 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3187 (cooked_write_test): Likewise.
3189 2019-09-20 Tom Tromey <tom@tromey.com>
3191 * NEWS: Mention case-sensitivity of TUI commands.
3192 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3193 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3194 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3196 2019-09-20 Tom Tromey <tom@tromey.com>
3198 * tui/tui-source.c (tui_source_window::set_contents): Use
3199 make_unique_xstrdup.
3200 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3201 make_unique_xstrdup.
3203 2019-09-20 Tom Tromey <tom@tromey.com>
3205 * tui/tui-data.c: Remove separator comments.
3206 * tui/tui-layout.c: Remove separator comments.
3207 * tui/tui-win.c: Remove separator comments.
3208 * tui/tui-wingeneral.c: Remove separator comments.
3210 2019-09-20 Tom Tromey <tom@tromey.com>
3212 * tui/tui.h (strcat_to_buf): Don't declare.
3213 * tui/tui.c (strcat_to_buf): Remove.
3215 2019-09-20 Tom Tromey <tom@tromey.com>
3217 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3219 * tui/tui-source.c (tui_source_window::set_contents)
3220 (tui_source_window::location_matches_p)
3221 (tui_source_window::maybe_update): Update.
3223 2019-09-20 Tom Tromey <tom@tromey.com>
3225 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3227 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3229 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3230 (tui_data_window::line_from_reg_element_no)
3231 (tui_data_window::first_reg_element_no_inline)
3232 (tui_data_window::show_registers)
3233 (tui_data_window::show_register_group)
3234 (tui_data_window::display_registers_from)
3235 (tui_data_window::display_registers_from_line)
3236 (tui_data_window::first_data_item_displayed)
3237 (tui_data_window::delete_data_content_windows)
3238 (tui_data_window::erase_data_content)
3239 (tui_data_window::do_scroll_vertical)
3240 (tui_data_window::refresh_window)
3241 (tui_data_window::check_register_values): Update.
3243 2019-09-20 Tom Tromey <tom@tromey.com>
3245 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3246 (struct tui_locator_window) <full_name, proc_name>: Now
3248 * tui/tui-stack.c (tui_locator_window::make_status_line)
3249 (tui_locator_window::set_locator_fullname)
3250 (tui_locator_window::set_locator_info): Update.
3251 * tui/tui-source.c (tui_source_window::set_contents)
3252 (tui_source_window::showing_source_p): Update.
3254 2019-09-20 Tom Tromey <tom@tromey.com>
3256 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3257 Don't call tui_locator_win_info_ptr.
3259 2019-09-20 Tom Tromey <tom@tromey.com>
3261 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3263 2019-09-20 Tom Tromey <tom@tromey.com>
3265 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3267 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3268 * tui/tui-layout.c (show_source_disasm_command, show_data)
3269 (show_source_or_disasm_and_command): Use 1 as height for locator.
3271 2019-09-20 Tom Tromey <tom@tromey.com>
3273 * tui/tui.c (tui_enable): Update.
3274 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3276 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3278 * tui/tui-data.c (win_resized): Now bool.
3279 (tui_win_resized): Return bool.
3280 (tui_set_win_resized_to): Accept a bool.
3282 2019-09-20 Tom Tromey <tom@tromey.com>
3284 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3285 Change type of "refresh_values_only".
3286 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3287 type of "refresh_values_only".
3289 2019-09-20 Tom Tromey <tom@tromey.com>
3291 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3293 (tui_disassemble): Add "pos" parameter.
3294 (tui_disasm_window::set_contents): Simplify.
3296 2019-09-20 Tom Tromey <tom@tromey.com>
3298 * tui/tui-winsource.h (struct tui_source_window_base)
3299 <show_source_content>: Now private.
3300 * tui/tui-winsource.c
3301 (tui_source_window_base::show_source_content): Don't handle empty
3304 2019-09-20 Tom Tromey <tom@tromey.com>
3306 * tui/tui-layout.c (show_source_disasm_command)
3307 (show_source_or_disasm_and_command): Don't call
3308 show_source_content.
3310 2019-09-20 Tom Tromey <tom@tromey.com>
3312 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3314 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3315 from tui_make_status_line.
3316 (tui_locator_window::rerender): Update.
3318 2019-09-20 Tom Tromey <tom@tromey.com>
3320 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3321 (tui_locator_window::rerender): Update.
3323 2019-09-20 Tom Tromey <tom@tromey.com>
3325 * tui/tui-winsource.h (struct tui_source_window_base)
3326 <~tui_source_window_base>: Don't declare.
3328 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3329 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3331 * tui/tui-source.c (tui_source_window::set_contents): Update.
3332 (tui_source_window::location_matches_p)
3333 (tui_source_window::maybe_update): Update.
3335 2019-09-20 Tom Tromey <tom@tromey.com>
3337 * tui/tui-winsource.h (~tui_source_element): Remove.
3338 (tui_source_element): Update.
3339 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3340 * tui/tui-winsource.c (tui_show_source_line): Update.
3341 * tui/tui-source.c (tui_source_window::set_contents): Update.
3342 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3344 2019-09-20 Tom Tromey <tom@tromey.com>
3346 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3348 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3349 tui_clear_source_windows_detail.
3350 * tui/tui-winsource.h (struct tui_source_window_base)
3351 <clear_detail>: Don't declare.
3352 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3354 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3356 2019-09-20 Tom Tromey <tromey@adacore.com>
3359 * block.c (contained_in): Fix final return value.
3361 2019-09-20 Alan Modra <amodra@gmail.com>
3363 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3364 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3365 (read_indirect_string_from_dwz): Use bfd accessor.
3366 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3367 * machoread.c (macho_symfile_read_all_oso): Likewise.
3368 * solib.c (solib_bfd_open): Likewise.
3370 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3372 * eval.c: Move declaration of overload_resolution to...
3375 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3377 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3378 * arm-linux-tdep.c: Likewise.
3379 * arm-nbsd-nat.c: Likewise.
3380 * arm-tdep.h: Declare arm_apcs_32.
3381 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3383 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3385 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3386 * dwarf2read.h: Declare dwarf_always_disassemble.
3388 2019-09-19 Tom de Vries <tdevries@suse.de>
3391 * source-cache.c (source_cache::ensure): Catch exception thrown during
3392 construction of the highlighter.
3394 2019-09-18 Alan Modra <amodra@gmail.com>
3396 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3397 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3398 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3399 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3400 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3401 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3402 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3403 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3404 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3405 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3406 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3407 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3408 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3409 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3410 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3411 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3412 * mi/mi-interp.c: Update throughout for bfd section macro and
3414 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3415 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3417 2019-09-18 Tom Tromey <tom@tromey.com>
3420 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3422 (tui_enable): Do not call rl_initialize.
3424 2019-09-18 Christian Groessler <chris@groessler.org>
3426 * alpha-linux-nat.c: Include gdbarch.h.
3428 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3430 * ui-file.c: Include cli/cli-style.h.
3431 (term_cli_styling): Remove cli_styling declaration.
3433 2019-09-18 Alan Modra <amodra@gmail.com>
3435 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3436 to bfd_asymbol_section.
3438 2019-09-18 Alan Modra <amodra@gmail.com>
3440 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3441 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3442 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3444 2019-09-18 Alan Modra <amodra@gmail.com>
3446 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3447 * spu-linux-nat.c (spu_bfd_open): Likewise.
3449 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3451 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3452 to bool to match definition in dwarf2read.c.
3454 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3456 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3457 (print_signatures): Likewise.
3458 (trust_pad_over_xvs): Likewise.
3459 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3460 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3461 * arm-linux-nat.c (arm_apcs_32): Likewise.
3462 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3463 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3464 * arm-tdep.c (arm_debug): Likewise.
3465 (arm_apcs_32): Likewise.
3466 * auto-load.c (debug_auto_load): Likewise.
3467 (auto_load_gdb_scripts): Likewise.
3468 (global_auto_load): Likewise.
3469 (auto_load_local_gdbinit): Likewise.
3470 (auto_load_local_gdbinit_loaded): Likewise.
3471 * auto-load.h (global_auto_load): Likewise.
3472 (auto_load_local_gdbinit): Likewise.
3473 (auto_load_local_gdbinit_loaded): Likewise.
3474 * breakpoint.c (disconnected_dprintf): Likewise.
3475 (breakpoint_proceeded): Likewise.
3476 (automatic_hardware_breakpoints): Likewise.
3477 (always_inserted_mode): Likewise.
3478 (target_exact_watchpoints): Likewise.
3479 (_initialize_breakpoint): Update.
3480 * breakpoint.h (target_exact_watchpoints): Change to bool.
3481 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3482 * cli/cli-cmds.c (trace_commands): Likewise.
3483 * cli/cli-cmds.h (trace_commands): Likewise.
3484 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3486 * cli/cli-logging.c (logging_overwrite): Change to bool.
3487 (logging_redirect): Likewise.
3488 (debug_redirect): Likewise.
3489 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3490 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3492 <boolean_option_def>: Update.
3493 (struct flag_option_def): Change default type of Context to bool
3495 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3496 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3497 (get_setshow_command_value_string): Likewise.
3498 * cli/cli-style.c (cli_styling): Change to bool.
3499 (source_styling): Likewise.
3500 * cli/cli-style.h (source_styling): Likewise.
3501 (cli_styling): Likewise.
3502 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3504 * command.h (var_types): Update comment.
3505 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3506 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3508 (debug_compile_cplus_scopes): Likewise.
3509 * compile/compile-internal.h (compile_debug): Likewise.
3510 * compile/compile.c (compile_debug): Likewise.
3511 (struct compile_options) <raw>: Likewise.
3512 * cp-support.c (catch_demangler_crashes): Likewise.
3513 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3514 (usr_cmd_cris_dwarf2_cfi): Likewise.
3515 * csky-tdep.c (csky_debug): Likewise.
3516 * darwin-nat.c (enable_mach_exceptions): Likewise.
3517 * dcache.c (dcache_enabled_p): Likewise.
3518 * defs.h (info_verbose): Likewise.
3519 * demangle.c (demangle): Likewise.
3520 (asm_demangle): Likewise.
3521 * dwarf-index-cache.c (debug_index_cache): Likewise.
3522 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3523 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3524 * dwarf2read.c (check_physname): Likewise.
3525 (use_deprecated_index_sections): Likewise.
3526 (dwarf_always_disassemble): Likewise.
3527 * eval.c (overload_resolution): Likewise.
3528 * event-top.c (set_editing_cmd_var): Likewise.
3529 (exec_done_display_p): Likewise.
3530 * event-top.h (set_editing_cmd_var): Likewise.
3531 (exec_done_display_p): Likewise.
3532 * exec.c (write_files): Likewise.
3533 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3534 (debug_fbsd_nat): Likewise.
3535 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3537 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3538 <backtrace_past_entry> Likewise.
3539 * gdb-demangle.h (demangle): Likewise.
3540 (asm_demangle): Likewise.
3541 * gdb_bfd.c (bfd_sharing): Likewise.
3542 * gdbcore.h (write_files): Likewise.
3543 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3544 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3545 * gdbthread.h (print_thread_events): Likewise.
3546 * gdbtypes.c (opaque_type_resolution): Likewise.
3547 (strict_type_checking): Likewise.
3548 * gnu-nat.c (gnu_debug_flag): Likewise.
3549 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3550 * guile/scm-param.c (pascm_variable): Add boolval.
3551 (add_setshow_generic): Update.
3552 (pascm_param_value): Update.
3553 (pascm_set_param_value_x): Update.
3554 * hppa-tdep.c (hppa_debug): Change to bool..
3555 * infcall.c (may_call_functions_p): Likewise.
3556 (coerce_float_to_double_p): Likewise.
3557 (unwind_on_signal_p): Likewise.
3558 (unwind_on_terminating_exception_p): Likewise.
3559 * infcmd.c (startup_with_shell): Likewise.
3560 * inferior.c (print_inferior_events): Likewise.
3561 * inferior.h (startup_with_shell): Likewise.
3562 (print_inferior_events): Likewise.
3563 * infrun.c (step_stop_if_no_debug): Likewise.
3564 (detach_fork): Likewise.
3565 (debug_displaced): Likewise.
3566 (disable_randomization): Likewise.
3567 (non_stop): Likewise.
3568 (non_stop_1): Likewise.
3569 (observer_mode): Likewise.
3570 (observer_mode_1): Likewise.
3571 (set_observer_mode): Update.
3572 (sched_multi): Change to bool.
3573 * infrun.h (debug_displaced): Likewise.
3574 (sched_multi): Likewise.
3575 (step_stop_if_no_debug): Likewise.
3576 (non_stop): Likewise.
3577 (disable_randomization): Likewise.
3578 * linux-tdep.c (use_coredump_filter): Likewise.
3579 (dump_excluded_mappings): Likewise.
3580 * linux-thread-db.c (auto_load_thread_db): Likewise.
3581 (check_thread_db_on_load): Likewise.
3582 * main.c (captured_main_1): Update.
3583 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3584 xx2_opt, boolean_opt>: Change to bool.
3585 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3586 * maint.c (maintenance_profile_p): Likewise.
3587 (per_command_time): Likewise.
3588 (per_command_space): Likewise.
3589 (per_command_symtab): Likewise.
3590 * memattr.c (inaccessible_by_default): Likewise.
3591 * mi/mi-main.c (mi_async): Likewise.
3592 (mi_async_1): Likewise.
3593 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3594 * nat/fork-inferior.h (startup_with_shell): Likewise.
3595 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3596 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3597 * nios2-tdep.c (nios2_debug): Likewise.
3598 * or1k-tdep.c (or1k_debug): Likewise.
3599 * parse.c (parser_debug): Likewise.
3600 * parser-defs.h (parser_debug): Likewise.
3601 * printcmd.c (print_symbol_filename): Likewise.
3602 * proc-api.c (procfs_trace): Likewise.
3603 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3604 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3605 (set_parameter_value): Update.
3606 (add_setshow_generic): Update.
3607 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3609 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3611 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3612 * record-btrace.c (record_btrace_target::store_registers): Update.
3613 * record-full.c (record_full_memory_query): Change to bool.
3614 (record_full_stop_at_limit): Likewise.
3615 * record-full.h (record_full_memory_query): Likewise.
3616 * remote-notif.c (notif_debug): Likewise.
3617 * remote-notif.h (notif_debug): Likewise.
3618 * remote.c (use_range_stepping): Likewise.
3619 (interrupt_on_connect): Likewise.
3620 (remote_break): Likewise.
3621 * ser-tcp.c (tcp_auto_retry): Likewise.
3622 * ser-unix.c (serial_hwflow): Likewise.
3623 * skip.c (debug_skip): Likewise.
3624 * solib-aix.c (solib_aix_debug): Likewise.
3625 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3626 (spu_auto_flush_cache_p): Likewise.
3627 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3629 (struct info_print_options) <quiet>: Likewise.
3630 * symfile-debug.c (debug_symfile): Likewise.
3631 * symfile.c (auto_solib_add): Likewise.
3632 (separate_debug_file_debug): Likewise.
3633 * symfile.h (auto_solib_add): Likewise.
3634 (separate_debug_file_debug): Likewise.
3635 * symtab.c (basenames_may_differ): Likewise.
3636 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3637 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3638 (struct info_types_options) <quiet>: Likewise.
3639 * symtab.h (demangle): Likewise.
3640 (basenames_may_differ): Likewise.
3641 * target-dcache.c (stack_cache_enabled_1): Likewise.
3642 (code_cache_enabled_1): Likewise.
3643 * target.c (trust_readonly): Likewise.
3644 (may_write_registers): Likewise.
3645 (may_write_memory): Likewise.
3646 (may_insert_breakpoints): Likewise.
3647 (may_insert_tracepoints): Likewise.
3648 (may_insert_fast_tracepoints): Likewise.
3649 (may_stop): Likewise.
3650 (auto_connect_native_target): Likewise.
3651 (target_stop_and_wait): Update.
3652 (target_async_permitted): Change to bool.
3653 (target_async_permitted_1): Likewise.
3654 (may_write_registers_1): Likewise.
3655 (may_write_memory_1): Likewise.
3656 (may_insert_breakpoints_1): Likewise.
3657 (may_insert_tracepoints_1): Likewise.
3658 (may_insert_fast_tracepoints_1): Likewise.
3659 (may_stop_1): Likewise.
3660 * target.h (target_async_permitted): Likewise.
3661 (may_write_registers): Likewise.
3662 (may_write_memory): Likewise.
3663 (may_insert_breakpoints): Likewise.
3664 (may_insert_tracepoints): Likewise.
3665 (may_insert_fast_tracepoints): Likewise.
3666 (may_stop): Likewise.
3667 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3668 (make_thread_apply_all_options_def_group): Change argument from int*
3670 (thread_apply_all_command): Update.
3671 (print_thread_events): Change to bool.
3672 * top.c (confirm): Likewise.
3673 (command_editing_p): Likewise.
3674 (history_expansion_p): Likewise.
3675 (write_history_p): Likewise.
3676 (info_verbose): Likewise.
3677 * top.h (confirm): Likewise.
3678 (history_expansion_p): Likewise.
3679 * tracepoint.c (disconnected_tracing): Likewise.
3680 (circular_trace_buffer): Likewise.
3681 * typeprint.c (print_methods): Likewise.
3682 (print_typedefs): Likewise.
3683 * utils.c (debug_timestamp): Likewise.
3684 (sevenbit_strings): Likewise.
3685 (pagination_enabled): Likewise.
3686 * utils.h (sevenbit_strings): Likewise.
3687 (pagination_enabled): Likewise.
3688 * valops.c (overload_resolution): Likewise.
3689 * valprint.h (struct value_print_options) <prettyformat_arrays,
3690 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3691 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3692 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3694 * windows-nat.c (new_console): Likewise.
3695 (cygwin_exceptions): Likewise.
3696 (new_group): Likewise.
3697 (debug_exec): Likewise.
3698 (debug_events): Likewise.
3699 (debug_memory): Likewise.
3700 (debug_exceptions): Likewise.
3701 (useshell): Likewise.
3702 * windows-tdep.c (maint_display_all_tib): Likewise.
3703 * xml-support.c (debug_xml): Likewise.
3705 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3707 * source.c (prepare_path_for_appending): New function.
3708 (openp): Make use of new function.
3709 (find_and_open_source): Search for the compilation directory and
3710 source file as a relative path beneath the directory search path.
3712 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3714 * source-cache.c (source_cache::get_line_charpos): Catch
3715 exceptions and return false, this matches the behaviour documented
3718 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3720 * ada-tasks.c (info_task): Remove quoting of the task's name.
3722 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3724 * symfile.c (auto_solib_add): Replace comment with a reference
3727 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3729 * NEWS: Mention that gdb can now be compiled with Python 3
3732 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3734 * maint.c (maint_print_section_data::maint_print_section_data):
3735 Force use of 'float log10 (float)' by casting the argument to
3738 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * maint.c: Add 'cmath' include.
3741 (struct maint_print_section_data): New structure.
3742 (print_section_index): New function.
3743 (print_bfd_section_info): Add header comment, small whitespace
3744 cleanup, and update to call new print_section_index function.
3745 (print_objfile_section_info): Likewise.
3746 (maint_obj_section_from_bfd_section): New function.
3747 (print_bfd_section_info_maybe_relocated): New function.
3748 (maintenance_info_sections): Add header comment, always use
3749 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3751 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3753 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3754 inner scope, add check that the objfile has psymtabs before
3755 checking psymtabs_addrmap.
3756 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3758 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3760 * NEWS: Announce that Ada task names are now shown at more places,
3761 and between quotes (except in info task output).
3762 * gdb/ada-tasks.c (task_to_str): New function.
3763 (display_current_task_id): Call task_to_str.
3764 (task_command_1): Likewise.
3765 (print_ada_task_info): In non-mi mode, Properly align headers and data
3766 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3768 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3770 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3771 prstatus.pr_lwp.pr_info instead of making it up.
3773 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3775 * auto-load.c (auto_load_expand_dir_vars): Update.
3776 * defs.h (gdb_datadir): Change to std::string.
3777 (python_libdir): Likewise.
3778 (relocate_gdb_directory): Change return type to std::string.
3779 * guile/guile.c (gdbscm_data_directory): Update.
3780 (initialize_scheme_side): Update.
3781 * jit.c (jit_reader_dir): Change to std::string.
3782 (jit_reader_load_command): Update.
3783 * main.c (gdb_datadir): Change to std::string.
3784 (python_libdir): Likewise.
3785 (set_gdb_data_directory): Update.
3786 (relocate_path): Change to return std::string.
3787 (relocate_gdb_directory): Change to return std::string.
3788 (relocate_gdbinit_path_maybe_in_datadir): Update.
3789 (captured_main_1): Update.
3790 * python/python.c (do_start_initialization): Update.
3791 * top.c (show_gdb_datadir): Update.
3792 * xml-syscall.c (xml_init_syscalls_info): Update.
3793 (init_syscalls_info): Update.
3795 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3797 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3798 out of get_init_files.
3799 (get_init_files): Update.
3801 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3803 * main.c (get_init_files): Change to use std::string.
3804 (captured_main_1): Update.
3805 (print_gdb_help): Update.
3807 2019-09-11 Ali Tamur <tamur@google.com>
3809 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3812 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3814 * dbxread.c (read_dbx_symtab): Update.
3815 * dwarf2read.c (load_partial_dies): Update.
3816 * mdebugread.c (parse_partial_symbols): Update.
3817 (handle_psymbol_enumerators): Update.
3818 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3819 * psymtab.c (add_psymbol_to_bcache): Likewise.
3820 (add_psymbol_to_list): Likewise.
3821 * symtab.c (symbol_set_names): Likewise.
3822 * symtab.h (symbol_set_names): Likewise.
3823 * xcoffread.c (scan_xcoff_symtab): Update.
3825 2019-09-11 Tom Tromey <tom@tromey.com>
3827 * symfile-mem.c (symbol_file_add_from_memory): Use
3829 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3830 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3832 2019-09-10 Tom Tromey <tromey@adacore.com>
3834 * dwarf-index-write.c (write_psymbols): Extend error message.
3835 (debug_names::insert): Add Ada code.
3836 (debug_names::write_psymbols): Remove Ada check.
3837 (debug_names) <m_string_obstack>: New member.
3838 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3839 (gdb_index_symbol_name_matcher::matches): Remove.
3840 (mapped_index_base::find_name_components_bounds): Add "lang"
3842 (mapped_index_base::build_name_components): Also split names
3843 according to Ada syntax.
3844 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3845 type of "match_callback".
3846 (check_match, check_find_bounds_finds)
3847 (dw2_expand_symtabs_matching): Update.
3848 (dw2_debug_names_iterator): Add new constructor.
3849 (dw2_debug_names_map_matching_symbols): New function.
3850 (dw2_debug_names_expand_symtabs_matching): Update.
3851 (dwarf2_debug_names_functions): Use
3852 dw2_debug_names_map_matching_symbols.
3854 2019-09-10 Tom Tromey <tromey@adacore.com>
3856 * dwarf2read.c (dw2_get_file_names_reader): Add the
3857 CU's file name to the results.
3859 2019-09-10 Tom Tromey <tromey@adacore.com>
3861 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3862 map_matching_symbols. Update.
3863 * dwarf2read.c (dw2_map_matching_symbols): Update.
3864 * psymtab.c (match_partial_symbol): Change type; update.
3865 (psym_map_matching_symbols): Likewise.
3866 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3868 * symfile.h (struct quick_symbol_functions)
3869 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3872 2019-09-10 Tom Tromey <tromey@adacore.com>
3874 * psymtab.c (map_block): Remove.
3875 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3876 * symtab.c (iterate_over_symbols_terminated): New function.
3877 * symtab.c (iterate_over_symbols_terminated): Declare.
3879 2019-09-10 Tom Tromey <tromey@adacore.com>
3881 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3882 * language.h (struct language_defn) <la_iterate_over_symbols>:
3884 * symtab.c (iterate_over_symbols): Return bool.
3885 * symtab.h (iterate_over_symbols): Return bool.
3887 2019-09-10 Tom Tromey <tromey@adacore.com>
3889 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3890 (add_nonlocal_symbols): Update.
3891 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3892 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3893 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3894 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3895 Change type of "callback". Remove "data".
3898 2019-09-09 Ali Tamur <tamur@google.com>
3900 * dwarf2read.c (comp_unit_head): Update comment.
3901 (dwarf2_dwo_name): New function declaration.
3902 (dwarf_unit_type_name): New function declaration.
3903 (read_comp_unit_head): Add support for new compilation units,
3904 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3905 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3906 (currently named as "signature") in their header. Also clarify error
3908 (lookup_dwo_id): New function. Returns the dwo id of the given
3910 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3911 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3913 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3914 (dwarf2_dwo_name): Get the dwo name if present.
3915 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3918 2019-09-09 Tom Tromey <tom@tromey.com>
3920 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3922 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3924 * python/python.c (do_start_initialization): Make progname_copy static,
3925 to avoid a leak report.
3927 2019-09-08 Tom Tromey <tom@tromey.com>
3929 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3931 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3933 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3934 Change type to gdb::optional<block_enum>.
3935 (dw2_symtab_iter_init): Change block_index parameter type
3936 to gdb::optional<block_enum>.
3937 (dw2_lookup_symbol): Change block_index parameter
3938 type to block_enum.c
3939 (dw2_debug_names_lookup_symbol): Likewise.
3940 * psymtab.c (psym_lookup_symbol): Likewise.
3941 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3942 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3945 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3947 * defs.h (relocate_gdb_directory): Change int to bool in
3948 signature and rename flag to relocatable.
3949 * main.c (relocate_path): Likewise.
3950 (relocate_gdb_directory): Likewise.
3952 2019-09-06 Alan Modra <amodra@gmail.com>
3954 * coffread.c (coff_symfile_read): Constify filename variable.
3955 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3956 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3957 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3958 * solib.c (reload_shared_libraries_1): Likewise.
3959 * symfile.c (reread_symbols): Likewise.
3960 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3961 * solib-darwin.c (darwin_bfd_open): Likewise.
3962 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3964 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3966 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3967 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3969 2019-09-03 Tom Tromey <tromey@adacore.com>
3971 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3973 (has_negatives): Unbias a range type bound.
3974 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3975 * gdbtypes.c (operator==): Handle new field.
3976 (create_range_type): Add "bias" parameter.
3977 (create_static_range_type, resolve_dynamic_range): Update.
3978 * gdbtypes.h (struct range_bounds) <bias>: New member.
3979 (create_range_type): Add bias parameter.
3980 * printcmd.c (print_scalar_formatted): Unbias range types.
3981 * value.c (unpack_long): Unbias range types.
3982 (pack_long): Bias range types.
3984 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3986 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3989 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3991 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3992 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3993 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3994 (compile_probe_arg): Likewise.
3995 * probe.h (get_argument_count): Likewise.
3996 * solib-svr4.c (solib_event_probe_action): Likewise.
3997 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3999 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4001 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4003 (svr4_create_solib_event_breakpoints): ...from here.
4005 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4007 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4008 suffix from warning message.
4010 2019-08-30 Tom Tromey <tom@tromey.com>
4012 * tui/tui-winsource.h (struct tui_source_window_base)
4013 <refresh_all>: Don't declare.
4014 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4016 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4017 tui_show_locator_content.
4018 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4020 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4021 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4024 2019-08-30 Tom Tromey <tom@tromey.com>
4026 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4028 2019-08-30 Tom Tromey <tom@tromey.com>
4030 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4031 Remove unnecessary forward declarations.
4033 2019-08-30 Tom Tromey <tom@tromey.com>
4035 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4037 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4038 tui_show_locator_content.
4040 2019-08-30 Tom Tromey <tom@tromey.com>
4042 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4043 (tui_locator_window::rerender): Rewrite using body of previous
4044 tui_show_locator_content.
4046 2019-08-30 Tom Tromey <tom@tromey.com>
4048 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4049 set_locator_fullname>: New methods.
4050 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4051 Rename from tui_set_locator_fullname.
4052 (tui_locator_window::set_locator_info): Rename from
4053 tui_set_locator_info. Return bool.
4054 (tui_update_locator_fullname, tui_show_frame_info): Update.
4056 2019-08-30 Tom Tromey <tom@tromey.com>
4058 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4060 2019-08-30 Tom Tromey <tom@tromey.com>
4062 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4065 2019-08-30 Tom Tromey <tom@tromey.com>
4067 * tui/tui-wingeneral.c (box_win): Assume win_info and
4068 win_info->handle cannot be NULL.
4070 2019-08-30 Tom Tromey <tom@tromey.com>
4072 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4073 refresh_window>: Declare.
4074 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4076 (tui_data_item_window::rerender): Rename from
4077 tui_display_register.
4078 (tui_data_item_window::refresh_window): New method.
4079 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4082 2019-08-30 Tom Tromey <tom@tromey.com>
4084 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4085 regs_column_count, current_group>: Move later. Now private.
4086 <get_current_group>: New method.
4087 * tui/tui-regs.c (tui_reg_command): Update.
4088 * tui/tui-layout.c (tui_set_layout): Update.
4090 2019-08-30 Tom Tromey <tom@tromey.com>
4092 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4093 (tui_data_window::rerender): Don't call
4094 check_and_display_highlight_if_needed.
4095 (tui_data_window::refresh_all): Remove call to
4098 2019-08-30 Tom Tromey <tom@tromey.com>
4100 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4101 (tui_data_window::display_registers_from)
4102 (tui_data_window::display_reg_element_at_line)
4103 (tui_data_window::display_registers_from_line): Remove checks of
4106 2019-08-30 Tom Tromey <tom@tromey.com>
4108 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4110 * tui/tui-regs.c (tui_data_window::show_registers): Call
4112 (tui_data_window::rerender): Rename from display_all_data.
4113 (tui_data_window::rerender): Remove old implementation.
4115 2019-08-30 Tom Tromey <tom@tromey.com>
4117 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4119 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4121 2019-08-29 Bernhard Wodok <barto@gmx.net>
4122 Sergio Durigan Junior <sergiodj@redhat.com>
4125 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4127 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4129 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4130 when searching for types.
4132 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * f-lang.c (f_language_defn): Use f_print_typedef.
4135 * f-lang.h (f_print_typedef): Declare.
4136 * f-typeprint.c (f_print_typedef): Define.
4138 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4140 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4142 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4144 * cli/cli-utils.c (info_print_options_defs): Delete.
4145 (make_info_print_options_def_group): Delete.
4146 (extract_info_print_options): Delete.
4147 (info_print_command_completer): Delete.
4148 (info_print_args_help): Add extra parameter, and optionally
4149 include text about -n flag.
4150 * cli/cli-utils.h (struct info_print_options): Delete.
4151 (extract_info_print_options): Delete declaration.
4152 (info_print_command_completer): Delete declaration.
4153 (info_print_args_help): Add extra parameter, extend header
4155 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4157 * stack.c (struct info_print_options): New type.
4158 (info_print_options_defs): New file scoped variable.
4159 (make_info_print_options_def_group): New static function.
4160 (info_print_command_completer): New static function.
4161 (info_locals_command): Update to use new local functions.
4162 (info_args_command): Likewise.
4163 (_initialize_stack): Add extra parameter to calls to
4164 info_print_args_help.
4165 * symtab.c (search_symbols): Add extra parameter, use this to
4166 possibly excluse non-debug symbols.
4167 (symtab_symbol_info): Add extra parameter, which is passed on to
4169 (struct info_print_options): New type.
4170 (info_print_options_defs): New file scoped variable.
4171 (make_info_print_options_def_group): New static function.
4172 (info_print_command_completer): New static function.
4173 (info_variables_command): Update to use local functions, and pass
4174 extra parameter through to symtab_symbol_info.
4175 (info_functions_command): Likewise.
4176 (info_types_command): Pass additional argument through to
4178 (rbreak_command): Pass extra argument to search_symbols.
4179 (_initialize_symtab): Add extra arguments for calls to
4180 info_print_args_help, and update help text for 'info variables',
4181 'whereis', and 'info functions' commands.
4182 * symtab.h (search_symbols): Add extra argument to declaration.
4183 * NEWS: Mention new flags.
4185 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4187 * symtab.c (lookup_static_symbol): Call the new function (and move
4188 it down to be next to lookup_global_symbol).
4189 (struct global_sym_lookup_data): Add block_enum member and rename to...
4190 (struct global_or_static_sym_lookup_data): ...this.
4191 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4192 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4193 (lookup_symbol_global_or_static_iterator_cb): ...this.
4194 (lookup_global_or_static_symbol): New function.
4195 (lookup_global_symbol): Call new function.
4197 2019-08-26 Tom de Vries <tdevries@suse.de>
4200 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4201 when pc_probe.prob == NULL.
4203 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4205 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4206 variable symbol_linkage to symbol_linkage_.
4208 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4210 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4211 represent whether the symbol is static, dynamic, or we don't
4214 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4216 * gdb/rx-tdep.c (rx_register_names): New.
4217 (rx_register_name): Delete.
4218 (rx_psw_type): Delete.
4219 (rx_fpsw_type): Delete.
4220 (rx_register_type): Delete.
4221 (rx_gdbarch_init): Convert target-descriptions.
4222 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4223 * gdb/features/Makefile: Add rx.xml.
4224 * gdb/features/rx.xml: New.
4225 * gdb/features/rx.c: Generated.
4226 * gdb/NEWS: Mention target description support.
4228 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4230 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4233 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4235 * configure.ac: Don't check for 'dlfcn.h' (moved to
4236 gdbsupport/common.m4).
4237 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4239 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4240 * compile/compile-c-support.c: Include
4241 'gdbsupport/gdb-dlfcn.h'.
4242 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4243 * gdb-dlfcn.c: Move to...
4244 * gdbsupport/gdb-dlfcn.c: ... here.
4245 * gdb-dlfcn.h: Move to...
4246 * gdbsupport/gdb-dlfcn.h: ... here.
4248 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4250 * nios2-tdep.c (struct reg_value): Improve comments. Make
4251 the offset field signed.
4253 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4255 * python/lib/gdb/__init__.py (_execute_file): New function.
4256 * python/python.c (python_run_simple_file): Call gdb._execute_file
4259 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4261 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4262 all uses as this was never set to anything but a zero value.
4264 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4266 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4268 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4270 * tui/tui-data.h (tui_gen_win_info): Add an =default
4271 move constructor, required by some GCC versions.
4273 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4275 * go32-nat.c (go32_sysinfo): Add hygon_p.
4277 2019-08-20 Tom Tromey <tom@tromey.com>
4279 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4280 line_from_reg_element_no, first_reg_element_no_inline,
4281 display_all_data, delete_data_content_windows,
4282 erase_data_content>: Now private.
4284 2019-08-20 Tom Tromey <tom@tromey.com>
4286 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4287 (tui_unhighlight_win, tui_highlight_win)
4288 (tui_win_info::make_window): Update.
4289 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4291 2019-08-20 Tom Tromey <tom@tromey.com>
4293 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4294 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4295 (MAX_PID_WIDTH): Move to tui-stack.c.
4296 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4297 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4298 (MAX_PID_WIDTH): Move from tui-data.h.
4300 2019-08-20 Tom Tromey <tom@tromey.com>
4302 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4303 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4305 (tui_gen_win_info::make_window): Rename from tui_make_window.
4306 (tui_win_info::make_window): New method.
4307 (tui_gen_win_info::make_visible): Update.
4308 * tui/tui-source.c (tui_source_window::set_contents): Update.
4309 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4310 (tui_data_window::display_registers_from): Update.
4311 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4312 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4316 (struct tui_win_info) <make_window>: Declare.
4317 <can_box>: Now virtual.
4318 <title>: New member.
4319 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4320 * tui/tui-command.c (tui_cmd_window::resize): Update.
4322 2019-08-20 Tom Tromey <tom@tromey.com>
4324 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4325 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4326 (tui_data_window::check_register_values): Update.
4328 2019-08-20 Tom Tromey <tom@tromey.com>
4330 * tui/tui-regs.h (struct tui_data_window): Use
4331 DISABLE_COPY_AND_ASSIGN.
4332 <regs_content>: Change type, removing unique_ptr.
4333 <tui_data_window>: Add move constructor.
4334 * tui/tui-regs.c (tui_data_window::show_registers)
4335 (tui_data_window::show_register_group)
4336 (tui_data_window::display_registers_from)
4337 (tui_data_window::display_registers_from)
4338 (tui_data_window::first_data_item_displayed)
4339 (tui_data_window::delete_data_content_windows)
4340 (tui_data_window::rerender, tui_data_window::refresh_window)
4341 (tui_data_window::check_register_values): Update.
4343 2019-08-20 Tom Tromey <tom@tromey.com>
4345 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4346 show_register_group>: Declare.
4347 (tui_show_register_group): Don't declare.
4348 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4350 (tui_data_window::show_register_group): Rename from
4351 tui_show_register_group.
4352 (tui_data_window::check_register_values, tui_reg_command):
4354 * tui/tui-layout.c (tui_set_layout): Update.
4356 2019-08-20 Tom Tromey <tom@tromey.com>
4358 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4360 (tui_check_register_values): Don't declare.
4361 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4362 from tui_check_register_values.
4363 * tui/tui-hooks.c (tui_register_changed): Update.
4365 2019-08-20 Tom Tromey <tom@tromey.com>
4367 * tui/tui-regs.c (tui_reg_layout): Move later.
4368 (tui_show_registers): Don't enable TUI mode or change layout.
4370 2019-08-20 Tom Tromey <tom@tromey.com>
4372 * tui/tui-regs.h (struct tui_data_item_window)
4373 <~tui_data_item_window>: Remove.
4374 <content>: Now a unique_xmalloc_ptr.
4375 * tui/tui-regs.c (tui_register_format): Return a
4377 (tui_get_register): Update.
4378 (~tui_data_item_window): Remove.
4379 (tui_data_window::display_registers_from, tui_display_register):
4381 * tui/tui-io.h (tui_expand_tabs): Update.
4382 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4383 Remove "col" parameter.
4385 2019-08-20 Tom Tromey <tom@tromey.com>
4387 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4389 * tui/tui-regs.c (~tui_data_item_window): Update.
4391 2019-08-20 Tom Tromey <tom@tromey.com>
4393 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4396 2019-08-20 Tom Tromey <tom@tromey.com>
4398 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4400 2019-08-20 Tom Tromey <tom@tromey.com>
4402 * tui/tui-source.h (struct tui_source_window): Update.
4403 * tui/tui-regs.c (tui_show_registers): Update.
4404 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4405 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4406 (NO_REGS_STRING): Remove defines.
4408 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4410 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4411 unnecessary thread walk if remote doesn't support the packet.
4413 2019-08-19 Tom Tromey <tromey@adacore.com>
4415 * python/py-value.c (value_has_field): Fix indentation.
4417 2019-08-19 Tom Tromey <tromey@adacore.com>
4419 * printcmd.c (do_one_display, info_display_command): Update.
4420 * block.h (contained_in): Return bool. Add allow_nested
4422 * block.c (contained_in): Return bool. Add allow_nested
4425 2019-08-19 Tom Tromey <tom@tromey.com>
4427 * configure: Rebuild.
4428 * configure.ac: Disallow the combination of -static-libstdc++ and
4430 * source-cache.c (get_language_name): Handle rust.
4431 (source_cache::get_source_lines): Ignore highlighting exceptions.
4433 2019-08-16 Tom Tromey <tom@tromey.com>
4435 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4436 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4437 (struct tui_source_window_base) <make_visible, refresh_window,
4438 resize>: Remove methods.
4439 <execution_info>: Remove field.
4440 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4441 (tui_show_source_line, tui_source_window_base)
4442 (~tui_source_window_base): Update.
4443 (tui_source_window_base::resize)
4444 (tui_source_window_base::make_visible)
4445 (tui_source_window_base::refresh_window): Remove.
4446 (tui_source_window_base::update_exec_info): Update.
4447 * tui/tui-source.c (tui_source_window::set_contents): Update.
4448 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4450 2019-08-16 Tom Tromey <tom@tromey.com>
4452 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4453 deprecated_query_hook.
4455 2019-08-16 Tom Tromey <tom@tromey.com>
4457 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4458 (tui_update_source_windows_with_line): Update.
4459 * tui/tui-source.h (struct tui_source_window)
4460 <show_symtab_source>: Declare.
4461 (tui_show_symtab_source): Don't declare.
4462 * tui/tui-source.c (tui_show_symtab_source): Rename from
4463 tui_show_symtab_source.
4465 2019-08-16 Tom Tromey <tom@tromey.com>
4467 * tui/tui-winsource.h (struct tui_source_window_base)
4468 <set_contents>: Declare.
4469 * tui/tui-winsource.c
4470 (tui_source_window_base::update_source_window_as_is): Update.
4471 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4473 (tui_set_source_content): Don't declare.
4474 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4475 tui_set_source_content.
4476 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4478 (tui_set_disassem_content): Don't declare.
4479 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4480 tui_set_disassem_content.
4482 2019-08-16 Tom Tromey <tom@tromey.com>
4484 * tui/tui-winsource.h (struct tui_source_window_base)
4485 <update_breakpoint_info>: Declare.
4486 (tui_update_breakpoint_info): Don't declare.
4487 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4488 (tui_update_all_breakpoint_info): Update.
4489 (tui_source_window_base::update_breakpoint_info): Rename from
4490 tui_update_breakpoint_info.
4491 (tui_source_window_base::update_exec_info): Update.
4493 2019-08-16 Tom Tromey <tom@tromey.com>
4495 * tui/tui-winsource.h (struct tui_source_window_base)
4496 <update_source_window>: Declare.
4497 (tui_update_source_window): Don't declare.
4498 * tui/tui-winsource.c
4499 (tui_source_window_base::update_source_window): Rename from
4500 tui_update_source_window.
4501 (tui_source_window_base::rerender): Update.
4502 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4503 * tui/tui-disasm.c (tui_show_disassem)
4504 (tui_show_disassem_and_update_source)
4505 (tui_disasm_window::maybe_update): Update.
4507 2019-08-16 Tom Tromey <tom@tromey.com>
4509 * tui/tui-winsource.h (struct tui_source_window_base)
4510 <update_source_window_as_is>: Declare.
4511 (tui_update_source_window_as_is): Don't declare.
4512 * tui/tui-winsource.c (tui_update_source_window): Update
4513 (tui_source_window_base::update_source_window_as_is): Rename from
4514 tui_update_source_window_as_is.
4515 (tui_source_window_base::refill): Update.
4516 * tui/tui-source.c (tui_show_symtab_source): Update.
4517 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4520 2019-08-16 Tom Tromey <tom@tromey.com>
4522 * tui/tui-winsource.h (tui_update_source_window)
4523 (tui_update_source_window_as_is): Remove "noerror" parameter.
4524 * tui/tui-winsource.c (tui_update_source_window)
4525 (tui_update_source_window_as_is): Remove "noerror" parameter.
4526 (tui_update_source_windows_with_addr)
4527 (tui_update_source_windows_with_line)
4528 (tui_source_window_base::rerender)
4529 (tui_source_window_base::refill): Update.
4530 * tui/tui-source.h (tui_set_source_content)
4531 (tui_show_symtab_source): Remove "noerror" parameter.
4532 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4534 (tui_show_symtab_source): Likewise.
4535 (tui_source_window::maybe_update): Update.
4536 * tui/tui-disasm.c (tui_show_disassem)
4537 (tui_show_disassem_and_update_source)
4538 (tui_disasm_window::do_scroll_vertical)
4539 (tui_disasm_window::maybe_update): Update.
4541 2019-08-16 Tom Tromey <tom@tromey.com>
4543 * tui/tui.c (tui_is_window_visible): Update.
4544 * tui/tui-wingeneral.c (tui_make_window)
4545 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4546 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4547 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4548 (tui_set_win_height_command, parse_scrolling_args): Update.
4549 * tui/tui-source.c (tui_source_window::style_changed): Update.
4550 * tui/tui-regs.c (tui_show_registers)
4551 (tui_data_window::first_data_item_displayed)
4552 (tui_data_window::delete_data_content_windows)
4553 (tui_check_register_values, tui_reg_command): Update.
4554 * tui/tui-disasm.c (tui_show_disassem): Update.
4555 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4557 <is_visible>: Remove field.
4558 * tui/tui-data.c (tui_next_win, tui_prev_win)
4559 (tui_delete_invisible_windows): Update.
4561 2019-08-16 Tom Tromey <tom@tromey.com>
4563 * tui/tui-winsource.h (struct tui_source_window_base)
4564 <m_has_locator>: Remove.
4565 * tui/tui-layout.c (show_source_disasm_command, show_data)
4566 (show_source_or_disasm_and_command): Update.
4568 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4570 * NEWS (Other MI changes): New subsection.
4571 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4572 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4573 * arch-utils.c (default_get_pc_address_flags): New function.
4574 * arch-utils.h (default_get_pc_address_flags): New declaration.
4575 * gdbarch.sh: Add get_pc_address_flags.
4576 * gdbarch.c: Regenerate.
4577 * gdbarch.h: Likewise.
4578 * stack.c (print_pc): New function.
4579 (print_frame_info) (print_frame): Call print_pc.
4581 2019-08-16 Tom de Vries <tdevries@suse.de>
4583 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4584 print_objfile_section_info.
4586 2019-08-15 Tom Tromey <tom@tromey.com>
4588 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4589 calling update_cmdwin_start_line.
4590 * tui/tui-winsource.h (struct tui_source_window_base)
4591 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4592 <rerender>: Declare.
4593 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4595 (tui_source_window_base::set_new_height): Remove.
4596 (tui_source_window_base::rerender): Rename from
4597 do_make_visible_with_new_height.
4598 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4600 (tui_win_info::make_invisible_and_set_new_height)
4601 (tui_win_info::make_visible_with_new_height): Remove.
4602 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4604 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4605 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4606 do_make_visible_with_new_height>: Don't declare.
4607 <rerender>: Declare.
4608 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4610 (tui_data_window::do_make_visible_with_new_height): Remove.
4611 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4612 call tui_show_locator_content.
4613 (tui_gen_win_info::resize): Call rerender.
4614 (show_source_or_disasm_and_command): Don't call
4615 tui_show_locator_content.
4616 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4618 (struct tui_win_info) <rerender>: Declare.
4619 <set_new_height, make_invisible_and_set_new_height,
4620 make_visible_with_new_height>: Don't declare.
4621 * tui/tui-data.c (tui_win_list::rerender): New method.
4622 * tui/tui-command.h (struct tui_cmd_window)
4623 <do_make_visible_with_new_height>: Don't declare.
4625 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4627 2019-08-15 Tom Tromey <tromey@adacore.com>
4629 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4630 * ada-lang.c (ada_enum_name): Likewise.
4632 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4634 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4636 (GdbOutputErrorFile): Likewise.
4637 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4639 (execute_unwinders): Rename to have a leading underscore.
4640 (auto_load_packages): Likewise.
4641 (global scope): Adjust call to auto_load_packages accordingly.
4642 (GdbSetPythonDirectory): Likewise.
4643 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4644 instead of execute_unwinders.
4646 2019-08-15 Tom Tromey <tom@tromey.com>
4648 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4649 (show_data): Don't change window visibility.
4650 (tui_gen_win_info::resize): Remove special case for command
4651 window. Use wresize, when available.
4652 (show_source_or_disasm_and_command): Don't change window
4654 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4655 <make_visible>: New method.
4656 * tui/tui-command.c (tui_cmd_window::resize): New method.
4658 2019-08-15 Tom Tromey <tom@tromey.com>
4660 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4661 (struct tui_source_windows): New.
4662 * tui/tui-winsource.c (tui_display_main): Update.
4663 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4664 (new_height_ok, parse_scrolling_args): Update.
4665 * tui/tui-layout.c (show_layout, show_data): Update.
4666 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4667 (tui_add_to_source_windows): Don't declare.
4668 * tui/tui-data.c (source_windows, tui_source_windows)
4669 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4671 2019-08-15 Tom Tromey <tom@tromey.com>
4673 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4675 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4676 * tui/tui-layout.c (show_source_disasm_command, show_data):
4678 (tui_gen_win_info::resize): Rename.
4679 (show_source_or_disasm_and_command): Update.
4680 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4683 2019-08-15 Tom Tromey <tom@tromey.com>
4685 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4686 * tui/tui-interp.c (tui_interp::init): Don't call
4687 tui_initialize_static_data.
4688 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4690 2019-08-15 Tom Tromey <tom@tromey.com>
4692 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4693 examine tui_win_list.
4695 2019-08-15 Tom Tromey <tom@tromey.com>
4697 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4698 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4699 tui_clear_source_content.
4700 (tui_clear_source_content): Remove.
4701 (tui_source_window_base::do_erase_source_content): Hoist call to
4703 * tui/tui-stack.c (tui_show_frame_info): Don't call
4704 tui_clear_source_content.
4706 2019-08-15 Tom Tromey <tom@tromey.com>
4708 * tui/tui-winsource.h (struct tui_source_window_base)
4709 <do_erase_source_content>: New method.
4710 <erase_source_content>: New method.
4711 (tui_erase_source_content): Don't declare.
4712 * tui/tui-winsource.c (tui_clear_source_content): Update.
4713 (tui_source_window_base::do_erase_source_content): Rename from
4714 tui_erase_source_content.
4715 (tui_source_window_base::show_source_content): Update.
4716 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4717 * tui/tui-source.h (struct tui_source_window)
4718 <erase_source_content>: New method.
4719 * tui/tui-disasm.h (struct tui_disasm_window)
4720 <erase_source_content>: New method.
4722 2019-08-15 Tom Tromey <tom@tromey.com>
4724 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4725 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4727 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4728 * tui/tui-source.c (tui_set_source_content): Update.
4729 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4731 2019-08-15 Tom Tromey <tom@tromey.com>
4733 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4734 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4736 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4738 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4740 (tui_source_window::maybe_update): Update.
4742 2019-08-15 Tom Tromey <tom@tromey.com>
4744 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4745 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4747 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4749 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4751 (tui_disasm_window::maybe_update): Update.
4753 2019-08-15 Tom Tromey <tom@tromey.com>
4755 * tui/tui-winsource.h (struct tui_source_window_base)
4756 <maybe_update>: Declare.
4757 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4759 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4761 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4762 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4764 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4766 2019-08-15 Tom Tromey <tom@tromey.com>
4768 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4770 2019-08-15 Tom Tromey <tom@tromey.com>
4772 * tui/tui-wingeneral.c: Include tui-stack.h.
4773 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4774 (struct tui_locator_window): Move from tui-data.h.
4775 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4776 (tui_initialize_static_data): Move from tui-data.c.
4777 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4778 (struct tui_locator_window): Move to tui-stack.c.
4779 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4780 (tui_initialize_static_data): Move to tui-stack.c.
4782 2019-08-15 Tom Tromey <tom@tromey.com>
4784 * tui/tui-layout.c (show_source_disasm_command)
4785 (show_source_or_disasm_and_command): Use make_visible method, not
4787 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4790 2019-08-15 Tom Tromey <tom@tromey.com>
4792 * tui/tui-wingeneral.h (tui_make_window): Update.
4793 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4795 (tui_gen_win_info::make_visible): Update.
4796 * tui/tui-regs.c (tui_data_window::display_registers_from):
4798 * tui/tui-layout.c (show_source_disasm_command)
4799 (show_source_or_disasm_and_command): Update.
4800 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4801 (enum tui_box): Remove.
4802 (struct tui_win_info) <can_box>: New method.
4803 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4806 2019-08-15 Tom de Vries <tdevries@suse.de>
4808 * linux-nat-trad.c: Include gdbarch.h.
4810 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4812 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4815 2019-08-14 Tom Tromey <tromey@adacore.com>
4817 * darwin-nat.c: Include gdbarch.h.
4818 * darwin-nat-info.c: Include gdbarch.h.
4820 2019-08-13 Tom Tromey <tom@tromey.com>
4822 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4824 * tui/tui-data.c (tui_initialize_static_data): Update.
4826 2019-08-13 Tom Tromey <tom@tromey.com>
4828 * tui/tui-winsource.h (struct tui_exec_info_window)
4829 <~tui_exec_info_window, maybe_allocate_content, get_content,
4831 (struct tui_source_window_base) <set_exec_info_content,
4832 show_exec_info_content>: Don't declare.
4833 * tui/tui-winsource.c
4834 (tui_exec_info_window::maybe_allocate_content): Remove.
4835 (tui_source_window_base::update_exec_info): Rename from
4836 set_exec_info_content.
4837 (tui_source_window_base::show_exec_info_content)
4838 (tui_source_window_base::update_exec_info): Remove.
4840 2019-08-13 Tom Tromey <tom@tromey.com>
4842 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4844 * tui/tui-winsource.c (tui_update_source_window_as_is)
4845 (tui_update_source_windows_with_addr, tui_erase_source_content):
4847 (tui_clear_exec_info_content): Remove.
4849 2019-08-13 Tom Tromey <tom@tromey.com>
4851 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4853 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4854 call tui_erase_exec_info_content.
4855 (tui_clear_exec_info_content): Rename from
4856 tui_erase_exec_info_content.
4857 (tui_clear_exec_info_content): Delete.
4859 2019-08-13 Tom Tromey <tom@tromey.com>
4861 * tui/tui-winsource.h (struct tui_source_window_base)
4862 <show_exec_info_content>: Declare.
4863 (tui_show_exec_info_content): Don't declare.
4864 * tui/tui-winsource.c
4865 (tui_source_window_base::show_exec_info_content): Rename from
4866 tui_show_exec_info_content.
4867 (tui_source_window_base::update_exec_info): Update.
4869 2019-08-13 Tom Tromey <tom@tromey.com>
4871 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4872 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4873 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4874 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4875 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4876 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4879 2019-08-13 Tom Tromey <tom@tromey.com>
4881 * tui/tui-winsource.h (struct tui_source_window_base)
4882 <update_exec_info>: Declare.
4883 (tui_update_exec_info): Don't declare.
4884 * tui/tui-winsource.c (tui_update_source_window_as_is)
4885 (tui_source_window_base::refresh_all)
4886 (tui_update_all_breakpoint_info): Update.
4887 (tui_source_window_base::update_exec_info): Rename from
4888 tui_update_exec_info.
4889 * tui/tui-stack.c (tui_show_frame_info): Update.
4891 2019-08-13 Tom Tromey <tom@tromey.com>
4893 * tui/tui-winsource.h (struct tui_source_window_base)
4894 <set_exec_info_content>: Declare.
4895 (tui_set_exec_info_content): Don't declare.
4896 * tui/tui-winsource.c
4897 (tui_source_window_base::set_exec_info_content): Rename from
4898 tui_set_exec_info_content.
4899 (tui_update_exec_info): Update.
4901 2019-08-13 Tom Tromey <tom@tromey.com>
4903 * tui/tui-winsource.h (struct tui_source_window_base)
4904 <show_source_content>: Declare.
4905 (tui_show_source_content): Don't declare.
4906 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4907 (tui_source_window_base::show_source_content): Rename from
4908 tui_show_source_content.
4909 (tui_source_window_base::refresh_all): Update.
4910 * tui/tui-layout.c (show_source_disasm_command)
4911 (show_source_or_disasm_and_command): Update.
4913 2019-08-13 Tom Tromey <tom@tromey.com>
4915 * tui/tui-winsource.c (tui_erase_source_content)
4916 (tui_show_source_content, tui_source_window_base::refresh_all):
4918 * tui/tui-wingeneral.h
4919 (tui_check_and_display_highlight_if_needed): Don't declare.
4920 * tui/tui-wingeneral.c
4921 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4922 check_and_display_highlight_if_needed.
4923 * tui/tui-win.c (tui_rehighlight_all)
4924 (tui_win_info::make_visible_with_new_height): Update.
4925 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4926 (tui_data_window::erase_data_content)
4927 (tui_data_window::display_all_data): Update.
4928 * tui/tui-data.h (struct tui_win_info)
4929 <check_and_display_highlight_if_needed>: Declare.
4931 2019-08-13 Tom Tromey <tom@tromey.com>
4933 * tui/tui-win.c (tui_resize_all): Call
4934 tui_delete_invisible_windows.
4935 * tui/tui-layout.c (show_layout): Call
4936 tui_delete_invisible_windows.
4937 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4938 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4940 2019-08-13 Tom Tromey <tom@tromey.com>
4942 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4943 tui_add_win_to_layout.
4945 2019-08-13 Tom Tromey <tom@tromey.com>
4947 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4948 * tui/tui-layout.c (tui_default_win_height): Now static.
4950 2019-08-13 Tom Tromey <tom@tromey.com>
4952 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4954 (show_source_disasm_command, show_source_or_disasm_and_command):
4955 Don't check current layout.
4957 2019-08-13 Tom Tromey <tom@tromey.com>
4959 * tui/tui-wingeneral.c (make_all_visible): Remove.
4960 (tui_make_all_invisible): Simplify.
4961 * tui/tui-layout.c (tui_make_all_invisible): Move from
4962 tui-wingeneral.c; simplify.
4963 (show_layout): Hoist call to tui_make_all_invisible.
4964 (show_data): Don't call tui_make_all_invisible.
4966 2019-08-13 Tom Tromey <tom@tromey.com>
4968 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4969 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4971 2019-08-13 Tom Tromey <tom@tromey.com>
4973 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4975 (show_source_disasm_command, show_data)
4976 (show_source_or_disasm_and_command): Don't use
4977 tui_set_current_layout_to.
4978 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4979 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4981 (tui_set_current_layout_to): Remove.
4983 2019-08-13 Tom Tromey <tom@tromey.com>
4985 * tui/tui-layout.c (tui_set_layout): Update.
4986 * tui/tui-data.h (struct tui_layout_def): Remove.
4987 (tui_layout_def): Don't declare.
4988 * tui/tui-data.c (layout_def): Remove.
4989 (tui_layout_def): Remove.
4991 2019-08-13 Tom Tromey <tom@tromey.com>
4993 * tui/tui-winsource.h (struct tui_source_window_base)
4994 <clear_detail>: No longer "override".
4995 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4996 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4997 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4998 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5000 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5002 2019-08-13 Tom Tromey <tromey@adacore.com>
5004 * tracepoint.c: Don't include readline.h or history.h.
5006 2019-08-12 Tom Tromey <tom@tromey.com>
5008 * configure: Rebuild.
5009 * configure.ac: Check for readline 7.
5010 * NEWS: Mention readline 7 requirement.
5013 2019-08-12 Tom Tromey <tom@tromey.com>
5015 * mingw-hdep.c (gdb_select): Remove readline hack.
5017 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5019 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5020 when the function fails.
5022 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5024 * s390-tdep.c (s390_type_align): New function.
5025 (s390_gdbarch_init): Set it as type_align gdbarch method.
5027 2019-08-09 Tom de Vries <tdevries@suse.de>
5030 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5031 pc_low with relocation offset.
5033 2019-08-07 Tom Tromey <tromey@adacore.com>
5035 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5036 (print_frame_args): Update.
5037 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5039 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5040 * frame.h (struct frame_arg): Add initializers.
5041 <error>: Now a unique_xmalloc_ptr.
5043 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5045 * NEWS: Expand the Pointer Authentication entry.
5046 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5047 (aarch64_frame_unmask_lr): ... to this.
5048 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5049 Call aarch64_frame_unmask_lr.
5050 * frame.c (struct frame_info): Add "masked" variable.
5051 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5052 (fprint_frame): Check for masked pc.
5053 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5055 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5056 * stack.c (print_frame): Check for masked pc.
5058 2019-08-06 Tom Tromey <tom@tromey.com>
5060 * stabsread.c (patch_block_stabs, read_one_struct_field)
5061 (read_enum_type): Use obstack_strndup.
5062 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5063 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5064 * dwarf2read.c (guess_full_die_structure_name)
5065 (anonymous_struct_prefix): Use obstack_strndup.
5066 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5067 * c-exp.y (yylex): Use obstack_strndup.
5068 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5069 (write_var_or_type): Use obstack_strndup.
5071 2019-08-06 Tom Tromey <tom@tromey.com>
5073 * symfile.c (reread_symbols): Use obstack_strdup.
5074 * stabsread.c (read_type): Use obstack_strdup.
5075 * gdb_obstack.h (obstack_strdup): New overload.
5076 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5077 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5078 (dwarf2_canonicalize_name): Use obstack_strdup.
5079 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5080 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5083 2019-08-06 Tom Tromey <tom@tromey.com>
5085 * gdb_obstack.h (obstack_strdup): Define.
5086 * gdb_obstack.c (obstack_strdup): Don't define.
5088 2019-08-06 Tom Tromey <tom@tromey.com>
5090 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5092 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5094 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5095 * stabsread.c (common_block_start): Use obstack_strdup.
5096 * objfiles.c (set_objfile_main_name, objfile): Use
5098 * namespace.c (add_using_directive): Use obstack_strdup.
5099 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5100 * jit.c (finalize_symtab): Use obstack_strdup.
5101 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5102 (guess_partial_die_structure_name, partial_die_info::fixup)
5103 (dwarf2_name): Use obstack_strdup.
5104 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5106 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5107 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5109 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5111 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113 * unittests/help-doc-selftests.c: New file.
5114 * Makefile.in: Add the new file.
5116 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5118 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5119 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5120 the full first line, except when FOR_VALUE_PREFIX. In this case,
5121 the trailing '.' is not output, and the first character is uppercased.
5122 (print_help_for_command): Update call to print_doc_line.
5123 (print_doc_of_command): Likewise.
5124 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5125 * cli/cli-option.c (append_indented_doc): Do not append newline.
5126 (build_help_option): Append newline after first appended_indented_doc
5127 only if a second call is done.
5128 (build_help): Append 2 new lines before each option, except the first
5130 * compile/compile.c (_initialize_compile): Add new lines after
5131 %OPTIONS%, when not at the end of the help.
5132 Change help doc or code
5133 producing the help doc to respect the invariants.
5134 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5135 Also removed the new line after 'Options:', as all other commands
5136 do not put an empty line between 'Options:' and the first option.
5137 * printcmd.c (_initialize_printcmd): Likewise.
5138 * stack.c (_initialize_stack): Likewise.
5139 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5140 incorrectly telling COMMAND is optional.
5141 * ada-lang.c (_initialize_ada_language): Change help doc or code
5142 producing the help doc to respect the invariants.
5143 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5144 * breakpoint.c (_initialize_breakpoint): Likewise.
5145 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5146 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5147 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5148 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5149 _initialize_cli_style): Likewise.
5150 * corelow.c (core_target_info): Likewise.
5151 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5152 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5153 * filesystem.c (_initialize_filesystem): Likewise.
5154 * frame.c (_initialize_frame): Likewise.
5155 * gnu-nat.c (add_task_commands): Likewise.
5156 * infcall.c (_initialize_infcall): Likewise.
5157 * infcmd.c (_initialize_infcmd): Likewise.
5158 * interps.c (_initialize_interpreter): Likewise.
5159 * language.c (_initialize_language): Likewise.
5160 * linux-fork.c (_initialize_linux_fork): Likewise.
5161 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5162 * maint.c (_initialize_maint_cmds): Likewise.
5163 * memattr.c (_initialize_mem): Likewise.
5164 * printcmd.c (_initialize_printcmd): Likewise.
5165 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5167 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5168 * record-btrace.c (_initialize_record_btrace): Likewise.
5169 * record-full.c (_initialize_record_full): Likewise.
5170 * record.c (_initialize_record): Likewise.
5171 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5172 * regcache.c (_initialize_regcache): Likewise.
5173 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5174 _initialize_remote): Likewise.
5175 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5176 * serial.c (_initialize_serial): Likewise.
5177 * skip.c (_initialize_step_skip): Likewise.
5178 * source.c (_initialize_source): Likewise.
5179 * stack.c (_initialize_stack): Likewise.
5180 * symfile.c (_initialize_symfile): Likewise.
5181 * symtab.c (_initialize_symtab): Likewise.
5182 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5183 * top.c (init_main): Likewise.
5184 * tracefile-tfile.c (tfile_target_info): Likewise.
5185 * tracepoint.c (_initialize_tracepoint): Likewise.
5186 * tui/tui-win.c (_initialize_tui_win): Likewise.
5187 * utils.c (add_internal_problem_command): Likewise.
5188 * valprint.c (value_print_option_defs): Likewise.
5190 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5193 * configure.ac: Drop enable-libmcheck support.
5194 * configure, config.in: Rebuild.
5195 * libmcheck.m4: Remove.
5196 * acinclude.m4: Don't include it.
5197 * Makefile.in: Don't distribute it.
5198 * top.c (print_gdb_configuration): Don't mention it.
5200 2019-08-06 Tom Tromey <tom@tromey.com>
5202 * utils.c (set_output_style): Sometimes pass stream to
5204 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5205 * record-btrace.c (btrace_insn_history): Update.
5206 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5208 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5209 Update initializers.
5210 <m_uiout>: New field.
5212 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5213 Remove "uiout" parameter.
5214 (dump_insns): Update.
5215 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5216 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5218 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5220 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5221 (error_in_psymtab_expansion): Likewise.
5222 (lookup_symbol_via_quick_fns): Likewise.
5223 (basic_lookup_transparent_type_quick): Likewise.
5224 (basic_lookup_transparent_type_1): Likewise.
5226 2019-08-06 Tom Tromey <tromey@adacore.com>
5228 * source.c (last_source_error): Now bool.
5229 (print_source_lines_base): Make "noprint" bool. Only open
5230 source file when last_source_visited changes.
5232 2019-08-06 Tom Tromey <tromey@adacore.com>
5234 * annotate.c (annotate_source_line): Use g_source_cache.
5235 * source-cache.c (source_cache::get_plain_source_lines): Change
5236 parameters. Populate m_offset_cache.
5237 (source_cache::ensure): New method.
5238 (source_cache::get_line_charpos): New method.
5239 (extract_lines): Move lower. Change parameters.
5240 (source_cache::get_source_lines): Move lower.
5241 * source-cache.h (class source_cache): Update comment.
5242 <get_line_charpos>: New method.
5243 <get_source_lines>: Update comment.
5244 <clear>: Clear m_offset_cache.
5245 <get_plain_source_lines>: Change parameters.
5246 <ensure>: New method
5247 <m_offset_cache>: New member.
5248 * source.c (forget_cached_source_info_for_objfile): Update.
5249 (info_source_command): Use g_source_cache.
5250 (find_source_lines, open_source_file_with_line_charpos): Remove.
5251 (print_source_lines_base, search_command_helper): Use g_source_cache.
5252 * source.h (open_source_file_with_line_charpos): Don't declare.
5253 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5254 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5257 2019-08-06 Tom Tromey <tromey@adacore.com>
5259 * source-cache.c (source_cache::get_plain_source_lines):
5260 Remove "first_line" and "last_line" parameters.
5261 (source_cache::get_source_lines): Cache plain text.
5262 * source-cache.h (class source_cache)
5263 <get_plain_source_lines>: Update.
5265 2019-08-06 Tom Tromey <tromey@adacore.com>
5267 * source-cache.c (extract_lines): No longer a method.
5268 Changed type of parameter. Include final newline.
5269 (selftests::extract_lines_test): New function.
5270 (_initialize_source_cache): Likewise.
5271 * source-cache.h (class source_cache)
5272 <extract_lines>: Don't declare.
5274 2019-08-06 Tom Tromey <tromey@adacore.com>
5276 * breakpoint.c (init_breakpoint_sal): Update.
5277 (breakpoint): Update.
5278 * breakpoint.h (struct breakpoint) <filter>: Now a
5281 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5283 * NEWS: Mention dictionary access on blocks.
5284 * python/py-block.c (blpy_getitem): New function.
5285 (block_object_as_mapping): New struct.
5286 (block_object_type): Use new struct for tp_as_mapping field.
5288 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5290 * objfiles.h (objfile): Add a comment describing partial symbols.
5292 2019-08-05 Tom Tromey <tromey@adacore.com>
5294 * compile/compile.c (_initialize_compile): Use _(), not N_().
5295 * thread.c (_initialize_thread): Use _(), not N_().
5296 * stack.c (_initialize_stack): Use _(), not N_().
5297 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5299 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5301 * dwarf2read.c (struct dw2_symtab_iterator):
5302 <want_specific_block>: Remove.
5303 <block_index>: Change type to gdb::optional.
5304 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5305 change type of BLOCK_INDEX parameter to gdb::optional.
5306 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5307 (dw2_lookup_symbol): Don't pass argument for
5308 WANT_SPECIFIC_BLOCK.
5309 (dw2_expand_symtabs_for_function): Don't pass argument for
5310 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5311 (class dw2_debug_names_iterator)
5312 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5313 parameter, change BLOCK_INDEX type to gdb::optional.
5314 <m_want_specific_block>: Remove.
5315 <m_block_index>: Change type to gdb::optional.
5316 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5317 gdb::optional. Re-write in function of gdb::optional.
5318 (dw2_debug_names_lookup_symbol): Don't pass argument for
5319 WANT_SPECIFIC_BLOCK.
5320 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5321 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5324 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5326 * NEWS: Mention changes to "info sources" command.
5328 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5330 * symtab.c (filename_partial_match_opts): New struct type.
5331 (struct output_source_filename_data): New members
5332 regexp, c_regexp, partial_match.
5333 (output_source_filename): Use new members to decide to print file.
5334 (info_sources_option_defs): New variable.
5335 (make_info_sources_options_def_group, print_info_sources_header,
5336 info_sources_command_completer):
5338 (info_sources_command): Read new optional arguments.
5339 (_initialize_symtab): Update info sources help.
5341 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5343 * ada-lang.c (exception_support_info_v0): Renamed from...
5344 (default_exception_support_info): ... this. Create new
5346 (ada_has_this_exception_support): Look up catch_handlers_sym.
5347 (ada_exception_support_info_sniffer): Try v0 after default.
5349 2019-08-01 Tom Tromey <tromey@adacore.com>
5351 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5354 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5356 * s12z-tdep.c: Fix include path for s12z-opc.h.
5358 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5360 * NEWS: Require GNU make 3.82.
5362 2019-07-16 Tom Tromey <tom@tromey.com>
5364 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5367 2019-07-30 Tom Tromey <tromey@adacore.com>
5369 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5371 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5373 * printcmd.c (print_address_symbolic): Print negative offsets.
5374 (build_address_symbolic): Force signed arithmetic when computing
5377 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5379 PR/24474: Add a function to lookup static variables.
5380 * NEWS: Mention this new function.
5381 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5382 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5383 * python/python.c (python_GdbMethods): Add new function.
5385 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5387 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5388 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5389 (objfpy_lookup_static_symbol): New function.
5390 (objfile_object_methods): Add new functions.
5392 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5394 * NEWS: Mention 'set|show print frame-info'. Mention new
5395 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5396 backtrace argument. Mention that python frame filtering code
5397 is now consistent with what 'backtrace' command prints.
5399 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5401 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5403 (print_frame_info_auto, print_frame_info_source_line,
5404 print_frame_info_location, print_frame_info_source_and_location,
5405 print_frame_info_location_and_address, print_frame_info_short_location):
5407 (struct frame_print_options): New member print_frame_info.
5408 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5409 * stack.h (get_user_print_what_frame_info): New declaration.
5410 (frame_show_address): New declaration.
5411 * stack.c (print_frame_arguments_choices): New value 'presence'.
5412 (print_frame_info_auto, print_frame_info_source_line,
5413 print_frame_info_location, print_frame_info_source_and_location,
5414 print_frame_info_location_and_address, print_frame_info_short_location,
5415 print_frame_info_choices, print_frame_info_print_what): New definitions.
5416 (print_frame_args): Only print dots for args if print frame-arguments
5418 (frame_print_option_defs): New element for "frame-info".
5419 (get_user_print_what_frame_info): New function.
5420 (frame_show_address): Make non static. Move comment to stack.h.
5421 (print_frame_info_to_print_what): New function.
5422 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5423 to decide what to print.
5424 (backtrace_command_1): Handle the new print_frame_arguments_presence
5426 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5427 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5428 (py_print_frame): In non-mi mode, use LOCATION as default for
5429 print_what, similarly to frame information printed directly by
5430 backtrace command. Handle frame-info user option in non MI mode.
5432 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5434 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5435 Add case for debugging 32-bit target on 64-bit host. Revise
5438 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5440 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5441 instead of find_function_entry_range_from_pc.
5443 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5445 * stack.c (find_frame_funname): Remove code which preferred
5446 minsym over symtab sym in "certain pathological cases".
5448 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5449 parameter. Change type of "do_demangle" to bool.
5450 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5451 Pass suitable "prefer_sym_over_minsym" flag to
5452 build_address_symbolic(). Don't output "+" for negative offsets.
5453 * printcmd.c (print_address_symbolic): Update invocation of
5454 build_address_symbolic to include a "prefer_sym_over_minsym"
5456 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5457 Restrict cases in which use of minimal symbol is preferred to that
5458 of a found symbol. Update comments.
5460 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5461 for entry pc when entry pc is out of range for that FDE.
5463 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5466 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5469 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5471 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5472 this function's Python signature.
5475 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5477 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5478 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5479 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5480 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5481 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5484 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5486 * h8300-tdep.c (h8300_register_name_common): New.
5487 h8300_register_name): Use h8300_register_name_common.
5488 (h8300s_register_name): Likewise.
5489 (h8300sx_register_name): Likewise.
5490 (h8300h_register_nam): New.
5491 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5494 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5496 * arm-tdep.c (arm_skip_cmse_entry): New function.
5497 (arm_is_sgstubs_section): New function.
5498 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5500 2019-07-22 Tom Tromey <tom@tromey.com>
5502 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5505 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5507 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5510 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5512 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5513 so that GDB doesn't match any msymbols when searching in the
5515 (print_symbol_info): Print using typedef_print or type_print based
5516 on the type of the symbol. Add updated FIXME comment moved from...
5517 (_initialize_symtab): ... move and update FIXME comment to above.
5519 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5521 * NEWS: Mention adding -q option to "info types".
5522 * symtab.c (struct info_types_options): New struct.
5523 (info_types_options_defs): New variable.
5524 (make_info_types_options_def_group): New function.
5525 (info_types_command): Use gdb::option framework to parse options.
5526 (info_types_command_completer): New function.
5527 (_initialize_symtab): Extend the help text on "info types" and
5528 register command completer.
5530 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5532 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5533 (lookup_symbol_in_objfile): Change int to block_enum and add a
5534 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5536 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5538 * MAINTAINERS (Write After Approval): Add self.
5540 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5542 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5543 instruction to the dummy code region.
5545 2019-07-19 Tom Tromey <tromey@adacore.com>
5547 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5548 (ARGSUSED, PARAMS, __func__): Remove rules.
5550 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5552 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5553 * features/arm/arm-with-iwmmxt.c: Remove.
5554 * features/arm/arm-with-iwmmxt.xml: Remove.
5555 * features/arm/arm-with-m-fpa-layout.c: Remove.
5556 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5557 * features/arm/arm-with-m-vfp-d16.c: Remove.
5558 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5559 * features/arm/arm-with-m.c: Remove.
5560 * features/arm/arm-with-m.xml: Remove.
5561 * features/arm/arm-with-neon.c: Remove.
5562 * features/arm/arm-with-neon.xml: Remove.
5563 * features/arm/arm-with-vfpv2.c: Remove.
5564 * features/arm/arm-with-vfpv2.xml: Remove.
5565 * features/arm/arm-with-vfpv3.c: Remove.
5566 * features/arm/arm-with-vfpv3.xml: Remove.
5568 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5570 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5572 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5574 * arch/aarch32.c (aarch32_create_target_description): Create
5575 target descriptions using features.
5576 * arch/arm.c (arm_create_target_description)
5577 (arm_create_mprofile_target_description): Likewise.
5578 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5580 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5582 * Makefile.in: Add new files.
5583 * aarch32-tdep.c: New file.
5584 * aarch32-tdep.h: New file.
5585 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5586 Call aarch32_read_description.
5587 * arch/aarch32.c: New file.
5588 * arch/aarch32.h: New file.
5589 * arch/arm.c (arm_create_target_description)
5590 (arm_create_mprofile_target_description): New function.
5591 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5592 (arm_create_target_description)
5593 (arm_create_mprofile_target_description): New declaration.
5594 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5595 read_description functions.
5596 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5598 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5599 * arm-tdep.c (tdesc_arm_list): New variable.
5600 (arm_register_g_packet_guesses): Call create description functions.
5601 (arm_read_description) (arm_read_mprofile_description): New
5603 * arm-tdep.h (arm_read_description)
5604 (arm_read_mprofile_description): Add declaration.
5605 * configure.tgt: Add new files.
5607 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5609 * top.c (new_ui_command): Open specified terminal just once.
5611 2019-07-18 Tom Tromey <tromey@adacore.com>
5613 * symtab.c (main_name): Constify return type.
5614 * symfile.c (set_initial_language): Update.
5615 * symtab.h (main_name): Constify return type.
5617 2019-07-17 Tom Tromey <tom@tromey.com>
5619 * tui/tui-winsource.c (tui_update_source_window)
5620 (tui_update_source_window_as_is)
5621 (tui_update_source_windows_with_line): Remove return.
5622 * tui/tui-disasm.c (tui_show_disassem)
5623 (tui_show_disassem_and_update_source): Remove return.
5624 * tui/tui.c (tui_reset): Remove return.
5625 * tui/tui-wingeneral.c
5626 (tui_check_and_display_highlight_if_needed): Remove return.
5628 2019-07-17 Tom Tromey <tom@tromey.com>
5630 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5632 2019-07-17 Tom Tromey <tom@tromey.com>
5634 * tui/tui-winsource.h (struct tui_exec_info_window)
5635 (struct tui_source_window_base): Move from tui-data.h.
5636 * tui/tui-winsource.c: Move many method definitions from
5637 elsewhere. Remove "structuring" comments.
5638 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5639 (tui_source_window_base::refresh_window): Move to
5641 * tui/tui-win.c (tui_source_window_base::refresh_all)
5642 (tui_source_window_base::update_tab_width)
5643 (tui_source_window_base::set_new_height)
5644 (tui_source_window_base::do_make_visible_with_new_height): Move to
5646 * tui/tui-source.h: Update.
5647 * tui/tui-source.c (tui_source_window_base::reset): Move to
5649 * tui/tui-disasm.h: Update.
5650 * tui/tui-data.h (struct tui_exec_info_window): Move to
5652 (struct tui_source_window_base): Likewise.
5653 * tui/tui-data.c (tui_source_window_base::clear_detail)
5654 (tui_source_window_base, ~tui_source_window_base): Move to
5657 2019-07-17 Tom Tromey <tom@tromey.com>
5659 * tui/tui-win.c (tui_resize_all)
5660 (tui_source_window_base::update_tab_width)
5661 (tui_adjust_win_heights): Update.
5662 (tui_win_info::make_invisible_and_set_new_height): Rename from
5663 make_invisible_and_set_new_height.
5664 * tui/tui-data.h (struct tui_win_info)
5665 <make_invisible_and_set_new_height>: New method.
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5669 * tui/tui.c: Update.
5670 * tui/tui-source.h (struct tui_source_window): Move from
5672 * tui/tui-layout.c: Update.
5673 * tui/tui-disasm.c: Update.
5674 * tui/tui-data.h (struct tui_source_window): Move to
5677 2019-07-17 Tom Tromey <tom@tromey.com>
5679 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5681 * tui/tui-data.h (struct tui_disasm_window): Move to
5684 2019-07-17 Tom Tromey <tom@tromey.com>
5686 * tui/tui-regs.h (struct tui_data_item_window): Move from
5688 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5689 * tui/tui-data.h (struct tui_data_item_window): Move to
5691 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5693 2019-07-17 Tom Tromey <tom@tromey.com>
5695 * tui/tui.c: Update.
5696 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5697 (tui_cmd_window::max_height): Move to tui-command.c.
5698 * tui/tui-layout.c: Update.
5699 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5700 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5702 * tui/tui-command.h (struct tui_cmd_window): Move from
5704 * tui/tui-command.c: Remove "structuring" comments.
5705 (tui_cmd_window::clear_detail)
5706 (tui_cmd_window::do_make_visible_with_new_height)
5707 (tui_cmd_window::max_height): Move from elsewhere.
5709 2019-07-17 Tom Tromey <tom@tromey.com>
5711 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5713 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5714 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5718 * tui/tui.c: Update.
5719 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5721 * tui/tui-windata.h: Remove file.
5722 * tui/tui-windata.c: Remove file.
5723 * tui/tui-win.c (tui_data_window::set_new_height)
5724 (tui_data_window::do_make_visible_with_new_height): Move to
5726 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5727 * tui/tui-regs.c: Remove "structuring" comments.
5728 (tui_data_window::first_data_item_displayed)
5729 (tui_data_window::delete_data_content_windows)
5730 (tui_data_window::erase_data_content)
5731 (tui_data_window::display_all_data)
5732 (tui_data_window::refresh_all)
5733 (tui_data_window::do_scroll_vertical)
5734 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5735 (tui_data_window::do_make_visible_with_new_height)
5736 (tui_data_window::refresh_window): Move from elsewhere.
5737 (_initialize_tui_regs): Move to end of file.
5738 * tui/tui-layout.c: Update.
5739 * tui/tui-hooks.c: Update.
5740 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5741 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5743 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5745 2019-07-17 Tom Tromey <tom@tromey.com>
5747 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5750 2019-07-17 Tom Tromey <tom@tromey.com>
5752 * tui/tui-win.c (tui_source_window_base::set_new_height)
5753 (tui_source_window_base::do_make_visible_with_new_height): Use
5754 m_has_locator field directly.
5755 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5757 (struct tui_source_window_base) <has_locator>: Likewise.
5759 2019-07-17 Tom Tromey <tom@tromey.com>
5761 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5763 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5765 * tui/tui-win.c (tui_source_window_base::set_new_height)
5766 (tui_source_window_base::set_new_height)
5767 (make_invisible_and_set_new_height)
5768 (tui_source_window_base::do_make_visible_with_new_height)
5769 (tui_source_window_base::do_make_visible_with_new_height):
5771 * tui/tui-layout.c (show_source_disasm_command, show_data)
5772 (show_source_or_disasm_and_command): Update.
5773 * tui/tui-layout.c (show_layout): Update.
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5777 * tui/tui-layout.c (make_data_window): Remove.
5778 (show_data): Unify creation and re-initialization cases.
5780 2019-07-17 Tom Tromey <tom@tromey.com>
5782 * tui/tui-layout.c (make_source_window, make_disasm_window):
5784 (show_data): Unify creation and re-initialization cases.
5786 2019-07-17 Tom Tromey <tom@tromey.com>
5788 * tui/tui-layout.c (make_command_window): Remove.
5789 (show_source_disasm_command, show_source_or_disasm_and_command):
5790 Unify creation and re-initialization cases.
5792 2019-07-17 Tom Tromey <tom@tromey.com>
5794 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5795 creation and re-initialization cases.
5797 2019-07-17 Tom Tromey <tom@tromey.com>
5799 * tui/tui-regs.c (tui_get_register): Return void.
5801 2019-07-17 Tom Tromey <tom@tromey.com>
5803 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5806 2019-07-17 Tom Tromey <tom@tromey.com>
5808 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5811 2019-07-17 Tom Tromey <tom@tromey.com>
5813 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5814 * tui/tui-regs.c (tui_reg_layout): New function.
5815 (tui_show_registers, tui_reg_command): Use it.
5816 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5817 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5819 (tui_layout_command): Remove.
5821 2019-07-17 Tom Tromey <tom@tromey.com>
5823 * tui/tui-layout.h (tui/tui-layout): Return void.
5824 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5826 2019-07-17 Tom Tromey <tom@tromey.com>
5828 * tui/tui-layout.c (show_source_disasm_command, show_data):
5830 (reset_locator): Remove.
5831 (show_source_or_disasm_and_command): Update.
5833 2019-07-17 Tom Tromey <tom@tromey.com>
5835 * tui/tui-source.c (tui_source_window_base::reset): Remove
5837 * tui/tui-layout.c (make_command_window, make_source_window)
5838 (make_disasm_window, make_data_window)
5839 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5840 (reset_locator, show_source_or_disasm_and_command): Update.
5841 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5843 (struct tui_source_window_base) <reset>: Likewise.
5845 2019-07-17 Tom Tromey <tom@tromey.com>
5847 * tui/tui-layout.c (show_source_disasm_command): Use
5849 (reset_locator): New function.
5850 (init_and_make_win): Remove.
5851 (show_source_or_disasm_and_command): Use reset_locator.
5853 2019-07-17 Tom Tromey <tom@tromey.com>
5855 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5857 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5859 * tui/tui-source.c (tui_source_window_base::reset): New method.
5860 * tui/tui-layout.c (make_command_window): Don't call
5862 (make_source_window, make_disasm_window): Don't call
5863 make_source_or_disasm_window.
5864 (make_data_window): Don't call init_and_make_win. Change calling
5866 (show_source_disasm_command, show_data): Simplify.
5867 (make_source_or_disasm_window): Remove.
5868 (show_source_or_disasm_and_command): Simplify.
5869 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5870 (struct tui_source_window_base) <reset>: Likewise.
5871 <execution_info>: Remove initializer.
5872 * tui/tui-data.c (tui_source_window_base): Initialize
5875 2019-07-17 Tom Tromey <tom@tromey.com>
5877 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5880 2019-07-17 Tom Tromey <tom@tromey.com>
5882 * tui/tui.c (tui_rl_other_window): Update.
5883 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5884 superclass method first. Always iterate over regs_content.
5885 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5887 * tui/tui-win.c (tui_set_focus_command): Update.
5889 2019-07-17 Tom Tromey <tom@tromey.com>
5891 * tui/tui-win.c (tui_set_focus_command): Rename from
5892 tui_set_focus. Call tui_enable.
5893 (tui_set_focus_command): Remove.
5895 2019-07-17 Tom Tromey <tom@tromey.com>
5897 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5899 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5901 (tui_data_window::refresh_window): Call refresh_window on data
5902 items. Always call superclass refresh_window.
5903 (tui_win_info::refresh): Remove.
5904 (tui_source_window_base::refresh_window): Update.
5905 (tui_refresh_all): Update.
5906 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5908 (show_source_or_disasm_and_command): Likewise.
5909 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5910 (struct tui_source_window_base) <refresh>: Likewise.
5912 2019-07-17 Tom Tromey <tom@tromey.com>
5914 * tui/tui-winsource.c (tui_clear_source_content)
5915 (tui_show_source_content): Update.
5916 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5917 whether content is empty.
5918 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5921 2019-07-17 Tom Tromey <tom@tromey.com>
5923 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5925 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5926 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5928 2019-07-17 Tom Tromey <tom@tromey.com>
5930 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5931 (struct tui_data_item_window): Update.
5933 2019-07-17 Tom Tromey <tom@tromey.com>
5935 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5936 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5939 2019-07-17 Tom Tromey <tom@tromey.com>
5941 * tui/tui-winsource.h (tui_erase_source_content)
5942 (tui_clear_source_content): Remove "display_prompt" parameter.
5943 * tui/tui-winsource.c (tui_update_source_window_as_is)
5944 (tui_update_source_windows_with_addr): Update.
5945 (tui_clear_source_content): Remove "display_prompt" parameter.
5946 (tui_erase_source_content): Likewise. Simplify.
5947 (tui_show_source_content): Update.
5948 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5949 * tui/tui-stack.c (tui_show_frame_info): Update.
5950 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5955 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5956 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5958 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5961 2019-07-17 Tom Tromey <tom@tromey.com>
5963 * tui/tui-winsource.c (tui_clear_source_content)
5964 (tui_show_source_content, tui_show_exec_info_content)
5965 (tui_clear_exec_info_content): Update.
5966 * tui/tui-stack.c (tui_show_locator_content): Update.
5967 (tui_show_frame_info): Update.
5968 * tui/tui-source.h (tui_source_window): Don't declare.
5969 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5970 from tui_source_is_displayed.
5971 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5973 (struct tui_source_window_base) <content_in_use>: New field. Now
5975 (struct tui_source_window) <showing_source_p>: New method.
5976 (TUI_SRC_WIN): Change cast.
5977 * tui/tui-data.c (tui_initialize_static_data): Update.
5979 2019-07-17 Tom Tromey <tom@tromey.com>
5981 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5983 * tui/tui-source.c (tui_source_window::location_matches_p): New
5985 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5987 * tui/tui-data.h (struct tui_source_window_base)
5988 <location_matches_p>: New method.
5989 (struct tui_source_window, struct tui_disasm_window)
5990 <location_matches_p>: Likewise.
5992 2019-07-17 Tom Tromey <tom@tromey.com>
5994 * tui/tui-win.c (tui_set_win_height_command): Rename from
5996 (tui_set_win_height_command): Remove.
5998 2019-07-17 Tom Tromey <tom@tromey.com>
6000 * tui/tui-source.c (tui_source_window): New constructor. Add
6002 (~tui_source_window): New destructor.
6003 (tui_source_window::style_changed): New method.
6004 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6005 (tui_attach_detach_observers): Update.
6006 * tui/tui-data.h (struct tui_source_window): Make constructor not
6007 inline. Add destructor.
6008 (struct tui_source_window) <style_changed>: New method.
6009 <m_observable>: New member.
6011 2019-07-17 Tom Tromey <tom@tromey.com>
6013 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6014 * tui/tui-win.c (tui_resize_all): Fix typo.
6016 2019-07-17 Tom Tromey <tom@tromey.com>
6018 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6019 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6020 (tui_refresh_all): Remove "list" parameter. Use foreach.
6021 * tui/tui-win.c (window_name_completer): Use foreach.
6022 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6023 (update_tab_width): Likewise.
6024 * tui/tui-layout.c (show_layout): Update.
6025 * tui/tui-data.h (class tui_window_iterator): New.
6026 (struct all_tui_windows): New.
6027 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6029 2019-07-17 Tom Tromey <tom@tromey.com>
6031 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6032 parameter. Don't reference globals.
6033 (tui_reg_command): Update.
6035 2019-07-17 Tom Tromey <tom@tromey.com>
6037 * tui/tui-regs.c (tui_show_registers): Simplify.
6039 2019-07-17 Tom Tromey <tom@tromey.com>
6041 * tui/tui-regs.c (tui_show_registers): Update.
6042 (tui_show_register_group): Add win_info parameter.
6044 2019-07-17 Tom Tromey <tom@tromey.com>
6046 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6047 Rename from tui_display_reg_element_at_line.
6048 (tui_data_window::display_registers_from_line): Update.
6049 * tui/tui-data.h (struct tui_data_window)
6050 <display_reg_element_at_line>: New method.
6052 2019-07-17 Tom Tromey <tom@tromey.com>
6054 * tui/tui-regs.h (tui_display_registers_from)
6055 (tui_display_registers_from_line): Don't declare.
6056 * tui/tui-windata.c (tui_data_window::display_all_data)
6057 (tui_data_window::refresh_all)
6058 (tui_data_window::do_scroll_vertical): Update.
6059 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6060 from tui_display_registers_from.
6061 (tui_display_reg_element_at_line): Update.
6062 (tui_data_window::display_registers_from_line): Rename from
6063 tui_display_registers_from_line.
6064 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6065 display_registers_from_line>: New methods.
6067 2019-07-17 Tom Tromey <tom@tromey.com>
6069 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6070 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6071 from tui_erase_data_content.
6072 (tui_data_window::display_all_data)
6073 (tui_data_window::refresh_all)
6074 (tui_data_window::do_scroll_vertical): Update.
6075 * tui/tui-regs.c (tui_show_registers): Update.
6076 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6079 2019-07-17 Tom Tromey <tom@tromey.com>
6081 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6084 (tui_data_window::delete_data_content_windows): Rename from
6085 tui_delete_data_content_windows.
6086 (tui_data_window::display_all_data)
6087 (tui_data_window::do_scroll_vertical): Update.
6088 * tui/tui-data.h (struct tui_data_window)
6089 <delete_data_content_windows>: New method.
6091 2019-07-17 Tom Tromey <tom@tromey.com>
6093 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6094 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6096 2019-07-17 Tom Tromey <tom@tromey.com>
6098 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6099 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6100 from tui_display_all_data.
6102 (tui_data_window::do_make_visible_with_new_height): Update.
6103 * tui/tui-regs.c (tui_show_registers): Update.
6104 * tui/tui-layout.c (tui_set_layout): Update.
6105 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6108 2019-07-17 Tom Tromey <tom@tromey.com>
6110 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6111 * tui/tui-windata.c (tui_display_data_from): Remove.
6112 (tui_data_window::refresh_all): Update.
6114 2019-07-17 Tom Tromey <tom@tromey.com>
6116 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6117 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6118 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6119 tui_display_registers_from_line.
6120 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6121 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6122 "force_display" parameter.
6124 2019-07-17 Tom Tromey <tom@tromey.com>
6126 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6128 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6129 Rename from tui_first_reg_element_no_inline.
6130 (tui_display_reg_element_at_line)
6131 (tui_display_registers_from_line): Update.
6132 * tui/tui-data.h (struct tui_data_window)
6133 <first_reg_element_no_inline>: New method.
6135 2019-07-17 Tom Tromey <tom@tromey.com>
6137 * tui/tui-windata.c (tui_display_data_from)
6138 (tui_data_window::do_scroll_vertical): Update.
6139 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6140 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6141 Rename from tui_line_from_reg_element_no.
6142 (tui_display_registers_from_line): Update.
6143 * tui/tui-data.h (struct tui_data_window)
6144 <line_from_reg_element_no>: New method.
6146 2019-07-17 Tom Tromey <tom@tromey.com>
6148 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6149 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6150 tui_last_regs_line_no.
6151 (tui_display_reg_element_at_line)
6152 (tui_display_registers_from_line): Update.
6153 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6156 2019-07-17 Tom Tromey <tom@tromey.com>
6159 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6160 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6161 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6162 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6163 (tui_update_breakpoint_info): Likewise.
6164 * tui/tui-hooks.c (tui_event_create_breakpoint)
6165 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6168 2019-07-17 Tom Tromey <tom@tromey.com>
6170 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6172 2019-07-17 Tom Tromey <tom@tromey.com>
6174 * tui/tui-winsource.c (tui_update_source_window_as_is)
6175 (tui_update_source_windows_with_addr): Update.
6176 * tui/tui-source.h (tui_set_source_content)
6177 (tui_show_symtab_source): Add "win_info" parameter.
6178 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6180 (tui_show_symtab_source): Likewise.
6182 2019-07-17 Tom Tromey <tom@tromey.com>
6184 * tui/tui-wingeneral.c
6185 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6187 2019-07-17 Tom Tromey <tom@tromey.com>
6189 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6190 (struct tui_cmd_window) <can_scroll>: New method.
6191 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6194 2019-07-17 Tom Tromey <tromey@adacore.com>
6196 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6197 do_field_signed>: Rename. Change type of "value".
6198 * ui-out.c (ui_out::field_signed): Rename from field_int.
6199 Change type of "value".
6200 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6202 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6203 do_field_int. Change type of "value".
6204 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6205 do_field_int. Change type of "value".
6206 * tracepoint.c (trace_status_mi, tfind_1)
6207 (print_one_static_tracepoint_marker): Update.
6208 * thread.c (print_thread_info_1, print_selected_thread_frame):
6210 * stack.c (print_frame, print_frame_info): Update.
6211 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6213 * source.c (print_source_lines_base): Update.
6214 * skip.c (info_skip_command): Update.
6215 * record-btrace.c (btrace_ui_out_decode_error)
6216 (btrace_call_history_src_line): Update.
6217 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6219 * progspace.c (print_program_space): Update.
6220 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6221 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6222 do_field_int. Change type of "value".
6223 * mi/mi-out.c (mi_ui_out::do_table_begin)
6224 (mi_ui_out::do_table_header): Update.
6225 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6227 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6228 (mi_cmd_data_list_changed_registers, output_register)
6229 (mi_cmd_data_read_memory, mi_load_progress)
6230 (mi_cmd_trace_frame_collected): Update.
6231 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6233 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6234 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6235 (mi_cmd_var_list_children, varobj_update_one): Update.
6236 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6237 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6239 * inferior.c (print_inferior): Update.
6240 * gdb_bfd.c (print_one_bfd): Update.
6241 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6243 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6244 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6245 do_field_int. Change type of "value".
6246 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6247 do_field_int. Change type of "value".
6248 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6249 (print_one_breakpoint_location, print_it_catch_fork)
6250 (print_one_catch_fork, print_it_catch_vfork)
6251 (print_one_catch_vfork, print_it_catch_solib)
6252 (print_it_catch_exec, print_it_ranged_breakpoint)
6253 (print_mention_watchpoint, print_mention_masked_watchpoint)
6254 (bkpt_print_it, update_static_tracepoint): Update.
6255 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6256 * break-catch-syscall.c (print_it_catch_syscall): Update.
6257 * ada-tasks.c (print_ada_task_info): Update.
6258 * ada-lang.c (print_it_exception, print_mention_exception):
6261 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6263 PR breakpoints/24541
6264 * gdbarch.c: Regenerate.
6265 * gdbarch.h: Regenerate.
6266 * gdbarch.sh: Adjust return type and parameter types for
6267 'stap_adjust_register'.
6268 (i386_stap_adjust_register): Adjust signature and return new
6270 * stap-probe.c (stap_parse_register_operand): Adjust use of
6271 'gdbarch_stap_adjust_register'.
6273 2019-07-17 Tom Tromey <tromey@adacore.com>
6275 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6277 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6279 (struct s390_process_info): Add initializers.
6280 (s390_add_process): Use new.
6281 (s390_linux_nat_target::low_forget_process): Use delete.
6282 (s390_linux_nat_target::low_new_fork)
6283 (s390_linux_nat_target::stopped_by_watchpoint)
6284 (s390_linux_nat_target::low_prepare_to_resume)
6285 (s390_linux_nat_target::insert_watchpoint)
6286 (s390_linux_nat_target::insert_hw_breakpoint)
6287 (s390_linux_nat_target::remove_watchpoint)
6288 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6290 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6292 * aarch64-fbsd-nat.c: Include regcache.h.
6293 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6295 (aarch64_fbsd_nat_target::fetch_registers)
6296 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6298 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6300 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6302 * fbsd-nat.c: Include gdbarch.h.
6304 2019-07-15 Tom Tromey <tromey@adacore.com>
6306 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6308 2019-07-15 Tom Tromey <tromey@adacore.com>
6310 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6311 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6312 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6313 * cli-out.c (cli_ui_out::do_field_int): New method.
6314 * ui-out.c (ui_out::field_unsigned): New method.
6315 * symfile.c (generic_load): Use field_unsigned.
6316 (print_transfer_performance): Likewise.
6317 * record-btrace.c (ui_out_field_uint): Remove.
6318 (btrace_call_history_insn_range, btrace_call_history): Use
6320 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6322 * ui-out.h (class ui_out) <field_unsigned>: New method.
6323 <do_field_unsigned>: Likewise.
6325 2019-07-15 Tom Tromey <tromey@adacore.com>
6327 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6328 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6329 * target.c (flash_erase_command): Use field_string.
6330 * infrun.c (print_signal_received_reason): Use field_string.
6331 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6332 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6334 * ada-tasks.c (print_ada_task_info): Use field_string.
6336 2019-07-15 Tom Tromey <tromey@adacore.com>
6338 * target.c (flash_erase_command): Use field_core_addr.
6339 * symfile.c (generic_load): Use field_core_addr.
6340 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6341 Use field_core_addr.
6342 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6345 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6347 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6348 value if its desired type is smaller than a CORE_ADDR and signed.
6350 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6352 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6353 of changes to field names, and use new is_reference field to
6354 decide if a property is a reference or not.
6355 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6357 (struct dwarf2_property_baton): Update header comment, rename
6358 'referenced_type' to 'property_type' and update comments.
6359 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6360 default property type, store in property baton, update to take
6361 accound of renamed field.
6362 (read_func_scope): Update call to attr_to_dynamic_prop.
6363 (read_array_type): Likewise.
6364 (dwarf2_per_cu_addr_sized_int_type): New function.
6365 (read_subrange_index_type): Move type finding code to
6366 dwarf2_per_cu_addr_sized_int_type.
6367 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6368 (dwarf2_per_cu_addr_type): New function.
6369 (set_die_type): Update calls to attr_to_dynamic_prop.
6371 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6373 * dwarf2read.c (read_subrange_index_type): New function.
6374 (read_subrange_type): Move code into new function and call it.
6375 * gdbtypes.c (create_range_type): Add some asserts.
6377 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6379 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6380 update return statements.
6381 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6382 declaration, and update comment to match.
6383 * gdbtypes.c (resolve_dynamic_array): Update call to
6384 dwarf2_evaluate_property to match new return type.
6386 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6388 * valarith.c (value_subscripted_rvalue): Change lowerbound
6389 parameter type from int to LONGEST.
6390 * value.h (value_subscripted_rvalue): Likewise in declaration.
6392 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6394 * cli/cli-utils.c (info_print_command_completer): New function.
6395 * cli/cli-utils.h: Add 'completer.h' include, and forward
6396 declaration for 'struct cmd_list_element'.
6397 (info_print_command_completer): Declare.
6398 * stack.c (_initialize_stack): Add completer for 'info locals' and
6400 * symtab.c (_initialize_symtab): Add completer for 'info
6401 variables' and 'info functions'.
6402 * NEWS: Mention completion for additional info commands.
6404 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6406 * cli/cli-utils.c (extract_info_print_args): Delete.
6407 (extract_arg_maybe_quoted): Delete.
6408 (info_print_options_defs): New variable.
6409 (make_info_print_options_def_group): New function.
6410 (extract_info_print_options): Define new function.
6411 * cli/cli-utils.h (extract_info_print_args): Delete.
6412 (struct info_print_options): New structure.
6413 (extract_info_print_options): Declare new function.
6414 * stack.c (info_locals_command): Update to use new
6415 extract_info_print_options, also add a header comment.
6416 (info_args_command): Likewise.
6417 * symtab.c (info_variables_command): Likewise.
6418 (info_functions_command): Likewise.
6420 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6422 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6423 to extract string arguments.
6424 * common/common-utils.c (extract_string_maybe_quoted): New function.
6425 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6427 2019-07-11 Tom Tromey <tromey@adacore.com>
6429 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6430 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6431 * top.h (gdbinit): Don't declare.
6432 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6434 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6435 * top.c (gdb_init): Don't call init_cli_cmds.
6437 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6439 2019-07-11 Tom Tromey <tromey@adacore.com>
6441 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6442 after it has been moved.
6444 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6446 * valops.c (value_must_coerce_to_target): Change return type to
6448 * value.h (value_must_coerce_to_target): Likewise.
6450 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6452 * breakpoint.c (is_hardware_watchpoint): Remove
6453 forward-declaration.
6454 (is_masked_watchpoint): Change return type to bool.
6455 (is_tracepoint): Likewise.
6456 (is_breakpoint): Likewise.
6457 (is_hardware_watchpoint): Likewise.
6458 (is_watchpoint): Likewise.
6459 (is_no_memory_software_watchpoint): Likewise.
6460 (is_catchpoint): Likewise.
6461 (breakpoint_1): Make FILTER parameter's return type bool.
6462 is_masked_watchpoint): Change return type to bool.
6463 (save_breakpoints): Make FILTER parameter's return type bool.
6464 * breakpoint.h (is_breakpoint): Change return type to bool.
6465 (is_watchpoint): Likewise.
6466 (is_catchpoint): Likewise.
6467 (is_tracepoint): Likewise.
6469 2019-07-10 Tom Tromey <tom@tromey.com>
6471 * defs.h: Don't include gdbarch.h.
6472 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6473 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6474 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6475 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6476 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6477 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6478 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6479 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6480 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6481 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6482 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6483 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6484 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6485 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6486 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6487 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6488 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6489 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6490 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6491 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6492 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6493 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6494 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6495 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6496 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6497 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6498 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6500 2019-07-10 Tom Tromey <tromey@adacore.com>
6502 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6503 * breakpoint.c (init_ada_exception_breakpoint): Register as
6505 (print_one_breakpoint_location, print_one_breakpoint): Use
6506 is_ada_exception_catchpoint.
6507 * ada-lang.c (class ada_catchpoint_location): Pass
6508 bp_loc_software_breakpoint to bp_location constructor.
6509 (is_ada_exception_catchpoint): New function.
6511 2019-07-10 Tom Tromey <tromey@adacore.com>
6513 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6515 (struct arm_exidx_entry): New method operator<.
6516 (struct arm_exidx_data) <section_maps>: Change type.
6517 (arm_exidx_data_free): Remove.
6518 (arm_exidx_data_key): Change type. Move lower.
6519 (arm_exidx_new_objfile): Update.
6520 (arm_compare_exidx_entries): Remove.
6521 (arm_find_exidx_entry, _initialize_arm_tdep)
6523 2019-07-10 Tom Tromey <tromey@adacore.com>
6525 * solib-spu.c (ocl_program_data_key): Change type.
6526 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6529 2019-07-10 Tom Tromey <tromey@adacore.com>
6531 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6532 (struct solib_aix_inferior_data) <library_list>: Change type.
6533 (solib_aix_inferior_data_handle): Change type.
6534 (get_solib_aix_inferior_data): Update.
6535 (solib_aix_free_library_list): Remove.
6536 (library_list_start_library): Update.
6537 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6539 (solib_aix_get_library_list)
6540 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6541 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6543 2019-07-10 Tom Tromey <tromey@adacore.com>
6545 * solib-dsbt.c (struct dsbt_info): Add initializers.
6546 (solib_dsbt_pspace_data): Change type.
6547 (dsbt_pspace_data_cleanup): Remove.
6548 (get_dsbt_info, _initialize_dsbt_solib): Update.
6550 2019-07-10 Tom Tromey <tromey@adacore.com>
6552 * spu-tdep.c (spu_overlay_data): Change type.
6553 (spu_get_overlay_table, spu_overlay_new_objfile)
6554 (_initialize_spu_tdep): Update.
6556 2019-07-10 Tom Tromey <tromey@adacore.com>
6558 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6560 (dbx_objfile_data_key): Change type and declare later.
6561 (DBX_SYMFILE_INFO): Rewrite.
6562 * dbxread.c (dbx_objfile_data_key): Change type.
6563 (dbx_symfile_init): Update.
6564 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6565 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6566 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6568 2019-07-10 Tom Tromey <tromey@adacore.com>
6570 * jit.c (jit_program_space_key): Change type. Move lower.
6571 (get_jit_program_space_data): Update.
6572 (jit_program_space_data_cleanup): Remove.
6573 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6575 (struct jit_program_space_data): Add initializers.
6577 2019-07-10 Tom Tromey <tromey@adacore.com>
6579 * solib-darwin.c (struct darwin_info): Add initializers.
6580 (solib_darwin_pspace_data): Change type.
6581 (darwin_pspace_data_cleanup): Remove.
6582 (get_darwin_info, _initialize_darwin_solib): Update.
6584 2019-07-10 Tom Tromey <tromey@adacore.com>
6586 * remote-sim.c (struct sim_inferior_data): Add initializers,
6587 constructor, and destructor.
6588 (sim_inferior_data_key): Change type. Move lower.
6589 (check_for_duplicate_sim_descriptor): Update.
6590 (get_sim_inferior_data): Use new. Update.
6591 (~sim_inferior_data_cleanup): Rename from
6592 sim_inferior_data_cleanup. Simplify.
6593 (gdbsim_close_inferior, simulator_command)
6594 (sim_command_completer, _initialize_remote_sim): Update.
6595 (next_pid, INITIAL_PID): Move earlier.
6597 2019-07-10 Tom Tromey <tromey@adacore.com>
6599 * python/python-internal.h (create_thread_object): Return
6601 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6602 * python/py-inferior.c (struct threadlist_entry): Add
6604 <thread_obj>: Now a gdbpy_ref.
6605 (thread_to_thread_object): Update.
6606 (add_thread_object): Use new.
6607 (delete_thread_object): Use delete.
6608 (infpy_threads): Update.
6609 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6612 2019-07-10 Tom Tromey <tromey@adacore.com>
6614 * valops.c (value_cast): Specialize error message for Ada.
6616 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6618 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6620 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6622 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6623 bpstat_should_step): Return bool, adjust comments.
6624 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6625 bpstat_should_step): Likewise.
6627 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6629 * features/Makefile: Use feature target descriptions for Arm.
6630 * features/arm/arm-core.c: Generate new file.
6631 * features/arm/arm-fpa.c: Likewise.
6632 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6633 * features/arm/arm-m-profile.c: Likewise.
6634 * features/arm/arm-vfpv2.c: Likewise.
6635 * features/arm/arm-vfpv3.c: Likewise.
6636 * features/arm/xscale-iwmmxt.c: Likewise.
6637 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6639 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6641 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6644 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6646 * features/aarch64-pauth.c: Regenerate.
6648 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6650 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6652 (bpstat_what): Use false instead of 0.
6654 2019-07-09 Pedro Alves <palves@redhat.com>
6656 * break-catch-throw.c (is_exception_catchpoint): New.
6657 * breakpoint.c (print_one_breakpoint_location): New parameter
6658 'raw_loc'. Handle it. Use
6659 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6660 looking at the breakpoint's type.
6661 (print_one_breakpoint): If handling "maint info breakpoints", also
6662 print locations of exception catchpoints.
6663 * breakpoint.h (is_exception_catchpoint): Declare.
6665 2019-07-09 Pedro Alves <palves@redhat.com>
6667 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6669 (allocate_location_exception_catchpoint): New.
6670 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6671 (initialize_throw_catchpoint_ops): Install
6672 allocate_location_exception_catchpoint as allocate_location
6674 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6675 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6677 (breakpoint_address_is_meaningful): Delete.
6678 (bl_address_is_meaningful): New.
6679 (breakpoint_locations_match): Adjust comment.
6680 (bp_location_from_bp_type): New, factored out of...
6681 (bp_location::bp_location(breakpoint *)): ... this.
6682 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6684 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6685 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6686 breakpoint_address_is_meaningful.
6687 (bp_locations_compare): Adjust comment.
6688 (update_global_location_list): Use bl_address_is_meaningful
6689 instead of breakpoint_address_is_meaningful.
6690 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6692 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6693 * python/py-breakpoint.c (bppy_get_location): No longer check
6694 whether location is null.
6696 2019-07-09 Pedro Alves <palves@redhat.com>
6699 * breakpoint.c (print_one_breakpoint_location): Remove
6700 single-location assert.
6702 2019-07-09 Tom Tromey <tom@tromey.com>
6704 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6705 * configure: Rebuild.
6706 * configure.ac: Change common to gdbsupport.
6707 * gdbsupport: Rename from common.
6708 * acinclude.m4: Change common to gdbsupport.
6709 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6710 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6712 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6713 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6714 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6715 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6716 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6717 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6718 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6719 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6720 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6721 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6722 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6723 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6724 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6725 coff-pe-read.c, command.h, compile/compile-c-support.c,
6726 compile/compile-c.h, compile/compile-cplus-symbols.c,
6727 compile/compile-cplus-types.c, compile/compile-cplus.h,
6728 compile/compile-loc2c.c, compile/compile.c, completer.c,
6729 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6730 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6731 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6732 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6733 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6734 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6735 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6736 features/aarch64-core.c, features/aarch64-fpu.c,
6737 features/aarch64-pauth.c, features/aarch64-sve.c,
6738 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6739 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6740 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6741 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6742 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6743 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6744 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6745 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6746 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6747 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6748 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6749 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6750 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6751 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6752 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6753 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6754 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6755 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6756 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6757 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6758 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6759 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6760 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6761 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6762 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6763 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6764 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6765 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6766 minsyms.c, mips-linux-tdep.c, namespace.h,
6767 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6768 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6769 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6770 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6771 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6772 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6773 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6774 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6775 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6776 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6777 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6778 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6779 procfs.c, producer.c, progspace.h, psymtab.h,
6780 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6781 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6782 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6783 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6784 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6785 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6786 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6787 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6788 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6789 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6790 target-memory.c, target.c, target.h, target/waitstatus.c,
6791 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6792 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6793 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6794 unittests/array-view-selftests.c,
6795 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6796 unittests/common-utils-selftests.c,
6797 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6798 unittests/format_pieces-selftests.c,
6799 unittests/function-view-selftests.c,
6800 unittests/lookup_name_info-selftests.c,
6801 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6802 unittests/mkdir-recursive-selftests.c,
6803 unittests/observable-selftests.c,
6804 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6805 unittests/parse-connection-spec-selftests.c,
6806 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6807 unittests/scoped_fd-selftests.c,
6808 unittests/scoped_mmap-selftests.c,
6809 unittests/scoped_restore-selftests.c,
6810 unittests/string_view-selftests.c, unittests/style-selftests.c,
6811 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6812 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6813 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6814 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6815 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6816 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6818 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6820 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6822 (decode_digits_ordinary): Set explicit_line field in sal.
6823 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6824 symtab_and_line that was set on an explicit line number in
6825 assembler code. Do always update the recorded symtab and line if
6826 we do skip the prologue.
6828 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6830 * breakpoint.c (set_breakpoint_location_function): Remove
6831 explicit_loc parameter.
6832 (momentary_breakpoint_from_master): Update call to
6833 set_breakpoint_location_function.
6834 (add_location_to_breakpoint): Likewise.
6836 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6838 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6839 required features based on default bfd type when no specific bfd
6842 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6844 * NEWS: Mention that GDB printf and eval commands can now print
6845 C-style and Ada-style convenience var strings without
6846 calling the inferior.
6847 * printcmd.c (printf_c_string): Locally print GDB internal var
6848 instead of transiting via the inferior.
6849 (printf_wide_c_string): Likewise.
6851 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6853 PR breakpoints/25011
6854 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6856 2019-07-04 Tom Tromey <tom@tromey.com>
6859 * tui/tui-winsource.c (tui_clear_source_content): Update.
6860 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6861 (tui_update_breakpoint_info): Update.
6862 (tui_set_exec_info_content): Update.
6863 * tui/tui-source.c (tui_set_source_content_nil): Update.
6864 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6866 * tui/tui-data.h (enum tui_bp_flag): New.
6867 (tui_bp_flags): New enum flags type.
6868 (struct tui_source_element) <break_mode>: Change type. Rename
6870 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6871 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6873 * tui/tui-winsource.h: Fix comment.
6875 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6877 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6878 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6879 (store_fpregs_to_thread)
6880 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6881 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6882 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6883 (IWMMXT_REGS_SIZE): Add define.
6884 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6885 (fetch_vfp_regs, store_vfp_regs)
6886 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6887 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6889 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6891 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6893 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6894 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6895 (ARM_INT_REGISTER_SIZE): ...to this.
6896 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6897 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6898 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6899 (arm_linux_collect_gregset, supply_nwfpe_register)
6900 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6902 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6903 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6904 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6905 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6906 (arm_return_in_memory, arm_store_return_value)
6907 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6908 (arm_record_ld_st_multiple): Likewise.
6909 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6910 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6912 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6914 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6915 AARCH64_DISPLACED_MODIFIED_INSNS.
6916 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6917 (aarch64_displaced_step_copy_insn): Likewise.
6918 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6919 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6920 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6921 ARM_DISPLACED_MODIFIED_INSNS.
6922 * arm-tdep.c (arm_gdbarch_init): Likewise.
6923 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6924 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6925 (struct arm_displaced_step_closure): Use
6926 ARM_DISPLACED_MODIFIED_INSNS.
6928 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6930 * features/Makefile: Remove unused xml files.
6931 * features/aarch64.xml: Remove.
6932 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6933 * features/i386/amd64-avx-avx512.xml: Remove.
6934 * features/i386/amd64-avx-linux.xml: Remove.
6935 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6936 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6937 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6938 * features/i386/amd64-avx-mpx.xml: Remove.
6939 * features/i386/amd64-avx.xml: Remove.
6940 * features/i386/amd64-linux.xml: Remove.
6941 * features/i386/amd64-mpx-linux.xml: Remove.
6942 * features/i386/amd64-mpx.xml: Remove.
6943 * features/i386/amd64.xml: Remove.
6944 * features/i386/i386-avx-avx512-linux.xml: Remove.
6945 * features/i386/i386-avx-avx512.xml: Remove.
6946 * features/i386/i386-avx-linux.xml: Remove.
6947 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6948 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6949 * features/i386/i386-avx-mpx-linux.xml: Remove.
6950 * features/i386/i386-avx-mpx.xml: Remove.
6951 * features/i386/i386-avx.xml: Remove.
6952 * features/i386/i386-linux.xml: Remove.
6953 * features/i386/i386-mmx-linux.xml: Remove.
6954 * features/i386/i386-mmx.xml: Remove.
6955 * features/i386/i386-mpx-linux.xml: Remove.
6956 * features/i386/i386-mpx.xml: Remove.
6957 * features/i386/i386.xml: Remove.
6958 * features/i386/x32-avx-avx512-linux.xml: Remove.
6959 * features/i386/x32-avx-linux.xml: Remove.
6960 * features/i386/x32-linux.xml: Remove.
6962 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6964 * regformats/aarch64.dat: Remove.
6965 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6966 * regformats/i386/amd64-avx-linux.dat: Remove.
6967 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6968 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6969 * regformats/i386/amd64-linux.dat: Remove.
6970 * regformats/i386/amd64-mpx-linux.dat: Remove.
6971 * regformats/i386/amd64.dat: Remove.
6972 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6973 * regformats/i386/i386-avx-linux.dat: Remove.
6974 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6975 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6976 * regformats/i386/i386-linux.dat: Remove.
6977 * regformats/i386/i386-mmx-linux.dat: Remove.
6978 * regformats/i386/i386-mpx-linux.dat: Remove.
6979 * regformats/i386/i386.dat: Remove.
6980 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6981 * regformats/i386/x32-avx-linux.dat: Remove.
6982 * regformats/i386/x32-linux.dat: Remove.
6984 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6986 * aarch64-tdep.c: Remove xml self tests.
6987 * amd64-linux-tdep.c: Likewise.
6988 * amd64-tdep.c: Likewise.
6989 * i386-linux-tdep.c: Likewise.
6990 * i386-tdep.c: Likewise.
6992 2019-07-03 Pedro Alves <palves@redhat.com>
6995 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6996 (pipe_cmd_option_defs): New.
6997 (make_pipe_cmd_options_def_group): New.
6998 (pipe_command): Use gdb::option::process_options.
6999 (pipe_command_completer): New function.
7000 (_initialize_cli_cmds): Install completer for "pipe" command.
7002 2019-07-03 Pedro Alves <palves@redhat.com>
7004 * cli/cli-option.c (union option_value) <string>: New field.
7005 (struct option_def_and_value): Add ctor, move ctor, dtor and
7006 use DISABLE_COPY_AND_ASSIGN.
7007 (option_def_and_value::clear_value): New.
7008 (parse_option, save_option_value_in_ctx, get_val_type_str)
7009 (add_setshow_cmds_for_options): Handle var_string.
7010 * cli-option.h (union option_def::var_address) <string>: New
7012 (struct string_option_def): New.
7013 * maint-test-options.c (struct test_options_opts): Add default
7014 ctor and use DISABLE_COPY_AND_ASSIGN.
7015 <string_opt>: New field.
7016 (test_options_opts::~test_options_opts): New.
7017 (test_options_opts::dump): Also dump "-string".
7018 (test_options_option_defs): Install "string.
7020 2019-07-03 Pedro Alves <palves@redhat.com>
7022 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7023 option_value with a null enumeration.
7024 (complete_options): Save the option values in the context.
7025 (save_option_value_in_ctx): New, factored out from ...
7026 (process_options): ... here.
7027 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7029 * maint-test-options.c (test_options_opts::dump): New, factored
7031 (maintenance_test_options_command_mode): ... here.
7032 (maintenance_test_options_command_completion_result): Delete.
7033 (maintenance_test_options_command_completion_text): Update
7035 (maintenance_show_test_options_completion_result): Change
7036 prototype. Just print
7037 maintenance_test_options_command_completion_text.
7038 (save_completion_result): New.
7039 (maintenance_test_options_completer_mode): Pass options context to
7040 complete_options, and then save a dump.
7041 (_initialize_maint_test_options): Use add_cmd to install "maint
7042 show test-options-completion-result".
7044 2019-07-03 Pedro Alves <palves@redhat.com>
7046 * NEWS (New commands): Mention "with" and "maint with".
7047 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7048 (with_command, with_command_completer): New.
7049 (pipe_command): Adjust to new repeat_previous
7051 (_initialize_cli_cmds): Install the "with" command and its "w"
7053 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7055 * cli/cli-setshow.c (parse_cli_var_uinteger)
7056 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7057 argument strings for all var_types.
7058 (get_setshow_command_value_string): New, factored out from ...
7059 (do_show_command): ... this.
7060 * cli/cli-setshow.h: Include <string>.
7061 (get_setshow_command_value_string): Declare.
7062 * command.h (repeat_previous): Now returns const char *. Adjust
7064 * maint.c: Include "cli/cli-cmds.h".
7065 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7066 (_initialize_maint_cmds): Register the "maintenance with" command.
7067 * top.c (repeat_previous): Move bits from pipe_command here:
7068 Return the saved command line, if any; error out if there's no
7069 command to relaunch.
7071 2019-07-03 Pedro Alves <palves@redhat.com>
7073 * NEWS (New commands): Mention "maint set/show test-settings"
7074 instead of "maint test-settings".
7075 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7076 (maintenance_test_settings_set_list): Rename to ...
7077 (maintenance_set_test_settings_list): ... this.
7078 (maintenance_test_settings_show_list): Rename to ...
7079 (maintenance_show_test_settings_list): ... this.
7080 (maintenance_test_settings_cmd): Delete.
7081 (maintenance_test_settings_set_cmd): ...
7082 (maintenance_set_test_settings_cmd): ... this.
7083 (maintenance_test_settings_show_cmd): ...
7084 (maintenance_show_test_settings_cmd): ... this.
7085 (maintenance_test_settings_show_value_cmd):
7086 (maintenance_show_test_settings_value_cmd): ... this.
7087 (_initialize_maint_test_settings): No longer install the "maint
7088 test-settings" prefix command. Rename "maint test-settings set"
7089 to "maint set test-settings", and "maint test-settings show" to
7090 "maint show test-settings". Adjust all subcommands.
7092 2019-07-03 Pedro Alves <palves@redhat.com>
7094 * maint-test-settings.c: Fix file's intro comment. Replace all
7095 references to "test-options" with references to "test-settings",
7098 2019-07-03 Pedro Alves <palves@redhat.com>
7100 * maint-test-settings.c (maintenance_test_settings_xxx)
7101 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7103 (maintenance_test_settings_enums): Use them.
7104 (maintenance_test_settings_enum): Default to
7105 maintenance_test_settings_xxx.
7106 (_initialize_maint_test_settings): Initialize
7107 MAINTENANCE_TEST_SETTINGS_FILENAME.
7109 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7111 * breakpoint.h (remove_breakpoints_inf): Change return type to
7112 void, move function documentation here.
7113 * breakpoint.c (remove_breakpoints_inf): Change return type to
7114 void, move function documentation to header.
7116 2019-07-02 Pedro Alves <palves@redhat.com>
7118 * NEWS (Completion improvements): Mention "info threads".
7119 * thread.c (struct info_threads_opts, info_threads_option_defs)
7120 (make_info_threads_options_def_group): New.
7121 (info_threads_command): Use gdb::option::process_options.
7122 (info_threads_command_completer): New.
7123 (_initialize_thread): Use gdb::option::build_help to build the
7124 help text for "info threads".
7126 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7128 * defs.h (generic_load): Move from here...
7129 * symfile.h (generic_load): ... to here. Rename name parameter
7131 * symfile.c (generic_load): Add comment.
7133 2019-07-01 Tom Tromey <tromey@adacore.com>
7136 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7137 declaration of without_params. Fix formatting.
7139 2019-07-01 Tom Tromey <tromey@adacore.com>
7141 * ada-exp.y (find_primitive_type): Update.
7142 * ada-lang.h (ada_lookup_symbol): Update.
7143 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7145 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7147 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7149 PR breakpoints/24541
7150 * gdbarch.c: Regenerate.
7151 * gdbarch.h: Regenerate.
7152 * gdbarch.sh: Add 'stap_adjust_register'.
7153 * i386-tdep.c: Include '<unordered_set>'.
7154 (i386_stap_adjust_register): New function.
7155 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7156 * stap-probe.c (stap_parse_register_operand): Call
7157 'gdbarch_stap_adjust_register'.
7159 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7162 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7163 * python/python.c (do_start_initialization): Use 'xmalloc'
7164 instead of 'PyMem_Malloc'.
7166 2019-06-28 Tom Tromey <tromey@adacore.com>
7168 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7171 2019-06-27 Tom Tromey <tromey@adacore.com>
7173 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7175 (arm_find_mapping_symbol, arm_record_special_symbol)
7176 (_initialize_arm_tdep): Update.
7177 (arm_objfile_data_free): Remove.
7179 2019-06-27 Tom Tromey <tromey@adacore.com>
7181 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7182 to cp_print_static_field.
7184 2019-06-26 Tom Tromey <tromey@adacore.com>
7186 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7187 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7190 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7192 * features/aarch64-core.c (create_feature_aarch64_core):
7194 * features/aarch64-core.xml: Add cpsr flags.
7196 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7198 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7199 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7201 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7203 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7205 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7207 (arm_record_special_symbol): Don't insert new symbol in sorted
7208 position, push it at the end.
7210 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7212 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7213 (arm_mapping_symbol_s): Remove.
7214 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7215 (arm_mapping_symbol_vec): New typedef.
7216 (struct arm_per_objfile): Add constructor.
7217 <section_maps>: Change type to
7218 std::unique_ptr<arm_mapping_symbol_vec[]>.
7219 (arm_compare_mapping_symbols): Remove.
7220 (arm_find_mapping_symbol): Adjust to section_maps type change.
7221 (arm_objfile_data_free): Call delete on arm_per_objfile.
7222 (arm_record_special_symbol): Adjust to section_maps type change.
7223 Allocate arm_per_objfile with new.
7225 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7227 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7228 with the command prefix.
7230 2019-06-25 Tom Tromey <tom@tromey.com>
7232 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7233 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7235 2019-06-25 Tom Tromey <tom@tromey.com>
7237 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7239 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7244 * tui/tui-winsource.c
7245 (tui_source_window_base::set_is_exec_point_at): Add check against
7248 2019-06-25 Tom Tromey <tom@tromey.com>
7250 * tui/tui-source.c (tui_set_source_content): Don't check before
7252 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7254 2019-06-25 Tom Tromey <tom@tromey.com>
7256 * tui/tui-winsource.h (tui_update_source_window_as_is)
7257 (tui_alloc_source_buffer, tui_line_is_displayed)
7258 (tui_addr_is_displayed): Change type of win_info.
7259 * tui/tui-winsource.c (tui_update_source_window_as_is)
7260 (tui_clear_source_content, tui_show_source_line)
7261 (tui_show_source_content, tui_source_window_base::refill)
7262 (tui_source_window_base::set_is_exec_point_at)
7263 (tui_source_window_base::set_is_exec_point_at)
7264 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7265 (tui_alloc_source_buffer, tui_line_is_displayed)
7266 (tui_addr_is_displayed): Change type of win_info. Update.
7267 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7268 (tui_source_window_base::do_make_visible_with_new_height):
7270 * tui/tui-source.c (tui_set_source_content)
7271 (tui_set_source_content_nil)
7272 (tui_source_window::do_scroll_vertical): Update.
7273 * tui/tui-layout.c (show_layout): Update.
7274 * tui/tui-disasm.c (tui_set_disassem_content)
7275 (tui_disasm_window::do_scroll_vertical): Update.
7276 * tui/tui-data.h (tui_win_content): Remove.
7277 (struct tui_gen_win_info) <content, content_size>: Remove.
7278 (struct tui_source_element): Add initializers and destructor.
7279 (union tui_which_element, struct tui_win_element): Remove.
7280 (struct tui_source_window_base) <content>: New field.
7281 (struct tui_data_window): Remove destructor.
7282 (tui_alloc_content, tui_free_win_content)
7283 (tui_free_all_source_wins_content): Don't declare.
7284 * tui/tui-data.c (tui_initialize_static_data): Update.
7285 (init_content_element, tui_alloc_content): Remove.
7286 (~tui_gen_win_info): Update.
7287 (~tui_data_window, tui_free_all_source_wins_content)
7288 (tui_free_win_content, free_content, free_content_elements):
7291 2019-06-25 Tom Tromey <tom@tromey.com>
7293 * tui/tui-winsource.h (tui_clear_source_content)
7294 (tui_erase_source_content, tui_show_source_content): Change type
7296 * tui/tui-winsource.c (tui_clear_source_content)
7297 (tui_erase_source_content, tui_show_source_content): Change type
7299 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7300 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7302 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7304 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7306 2019-06-25 Tom Tromey <tom@tromey.com>
7308 * tui/tui-winsource.c (tui_clear_source_content)
7309 (tui_source_window_base::set_is_exec_point_at): Update.
7310 * tui/tui-source.c (tui_set_source_content_nil): Update.
7311 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7313 * tui/tui-data.c (init_content_element): Update.
7315 2019-06-25 Tom Tromey <tom@tromey.com>
7317 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7318 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7319 * tui/tui-layout.c (init_and_make_win): Update.
7320 * tui/tui.h (enum tui_win_type): Update.
7321 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7322 tui_win_is_auxillary.
7323 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7324 tui_win_is_auxillary.
7326 2019-06-25 Tom Tromey <tom@tromey.com>
7328 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7329 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7330 (tui_delete_data_content_windows, tui_display_all_data)
7331 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7333 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7334 * tui/tui-regs.c (tui_last_regs_line_no)
7335 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7336 (tui_show_registers): Update.
7337 (tui_show_register_group): Return void. Update.
7338 (tui_display_registers_from, tui_display_reg_element_at_line)
7339 (tui_display_registers_from_line, tui_check_register_values):
7341 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7343 (struct tui_data_window) <regs_content>: Now a std::vector.
7344 <regs_content_count>: Remove.
7345 (tui_add_content_elements, tui_free_data_content): Don't declare.
7346 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7347 (init_content_element): Remove DATA_WIN case. Add assert.
7348 (tui_add_content_elements): Remove.
7349 (tui_data_window): Update.
7350 (tui_free_data_content): Remove.
7351 (free_content_elements): Remove DATA_WIN case.
7353 2019-06-25 Tom Tromey <tom@tromey.com>
7355 * tui/tui-data.c (tui_data_item_window): Update.
7356 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7357 * tui/tui-windata.c (tui_display_all_data)
7358 (tui_display_data_from_line): Update.
7359 (tui_check_data_values): Remove.
7360 * tui/tui-regs.c (tui_show_register_group)
7361 (tui_display_reg_element_at_line): Update.
7362 * tui/tui-hooks.c (tui_register_changed)
7363 (tui_refresh_frame_and_register_information): Call
7364 tui_check_register_values.
7365 * tui/tui-data.h (struct tui_data_window) <data_content,
7366 data_content_count, data_type>: Remove.
7367 (enum tui_data_type): Remove.
7369 * tui/tui-data.c (tui_data_window::clear_detail)
7370 (~tui_data_window): Update.
7372 2019-06-25 Tom Tromey <tom@tromey.com>
7374 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7376 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7377 Rename from tui_first_data_item_displayed. Update.
7378 (tui_data_window::refresh_all)
7379 (tui_data_window::do_scroll_vertical): Update.
7380 * tui/tui-data.h (struct tui_data_window)
7381 <first_data_item_displayed>: Declare new method.
7383 2019-06-25 Tom Tromey <tom@tromey.com>
7385 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7386 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7388 (tui_initialize_static_data): ...here.
7390 2019-06-25 Tom Tromey <tom@tromey.com>
7392 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7393 (tui_display_registers_from, tui_check_register_values): Update.
7394 (tui_display_register): Remove win_info parameter; update.
7395 (tui_get_register): Change type of parameters.
7396 * tui/tui-data.h (struct tui_data_element): Remove.
7397 (union tui_which_element) <data>: Remove.
7398 <data_window>: Change type.
7399 (struct tui_data_item_window): New.
7400 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7402 (~tui_data_item_window): New destructor.
7403 (free_content_elements): Remove DATA_ITEM_WIN case.
7405 2019-06-25 Tom Tromey <tom@tromey.com>
7407 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7410 2019-06-25 Tom Tromey <tom@tromey.com>
7412 * tui/tui-data.h (struct tui_command_element): Remove.
7413 (union tui_which_element) <command>: Remove.
7414 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7416 (free_content_elements): Remove CMD_WIN case.
7418 2019-06-25 Tom Tromey <tom@tromey.com>
7420 * tui/tui-layout.c (tui_set_layout): Update.
7421 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7422 * tui/tui-data.c (layout_def): Update.
7424 2019-06-25 Tom Tromey <tom@tromey.com>
7426 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7427 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7428 (tui_source_window_base::set_new_height): Update.
7429 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7431 (tui_set_locator_fullname, tui_set_locator_info)
7432 (tui_show_frame_info): Update.
7433 * tui/tui-source.c (tui_set_source_content)
7434 (tui_source_is_displayed): Update.
7435 * tui/tui-layout.c (show_source_disasm_command, show_data)
7436 (show_source_or_disasm_and_command): Update.
7437 * tui/tui-disasm.c (tui_set_disassem_content)
7438 (tui_get_begin_asm_address): Update.
7439 * tui/tui-data.h (struct tui_locator_element): Remove.
7440 (union tui_which_element) <locator>: Remove.
7441 (struct tui_locator_window): New.
7442 (tui_locator_win_info_ptr): Change return type.
7443 * tui/tui-data.c (_locator): Change type.
7444 (tui_locator_win_info_ptr): Change return type.
7445 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7446 (tui_alloc_content): Add assert.
7448 2019-06-25 Tom Tromey <tom@tromey.com>
7450 * tui/tui-winsource.c
7451 (tui_exec_info_window::maybe_allocate_content): New method.
7452 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7453 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7454 (make_source_or_disasm_window): Add cast.
7455 * tui/tui-data.h (union tui_which_element) <simple_string>:
7457 (struct tui_source_info): New.
7458 (struct tui_source_window_base) <execution_info>: Change type.
7459 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7460 case, and add assert.
7461 (tui_alloc_content): Add assert.
7463 2019-06-25 Tom Tromey <tom@tromey.com>
7465 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7466 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7467 * tui/tui-data.c (tui_alloc_win_info): Remove.
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7471 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7472 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7475 2019-06-25 Tom Tromey <tom@tromey.com>
7477 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7478 make_visible_with_new_height method.
7479 (tui_win_info::make_visible_with_new_height): New method.
7480 (tui_source_window_base::do_make_visible_with_new_height)
7481 (tui_data_window::do_make_visible_with_new_height)
7482 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7483 (make_visible_with_new_height): Remove.
7484 (tui_resize_all, tui_adjust_win_heights): Use
7485 make_visible_with_new_height method.
7486 * tui/tui-data.h (struct tui_win_info)
7487 <do_make_visible_with_new_height, make_visible_with_new_height>:
7489 (struct tui_source_window_base, struct tui_data_window)
7490 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7493 2019-06-25 Tom Tromey <tom@tromey.com>
7495 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7497 (update_tab_width): Call update_tab_width method.
7498 * tui/tui-data.h (struct tui_win_info)
7499 (struct tui_source_window_base) <update_tab_width>: New methods.
7501 2019-06-25 Tom Tromey <tom@tromey.com>
7503 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7505 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7507 (tui_gen_win_info::make_visible): Update.
7508 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7510 * tui/tui-data.h (enum tui_box): New enum.
7511 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7513 2019-06-25 Tom Tromey <tom@tromey.com>
7515 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7516 init_and_make_win for EXEC_INFO_WIN.
7517 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7519 (struct tui_win_info) <~tui_win_info>: Inline.
7520 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7522 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7523 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7525 (tui_initialize_static_data): Update.
7526 (~tui_gen_win_info): Handle more cleanup here.
7527 (~tui_source_window_base): Delete "execution_info".
7528 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7532 * tui/tui-layout.c (make_command_window): Don't set
7534 (show_source_disasm_command): Call the reset method.
7535 (show_data): Don't set can_highlight. Call the reset method.
7536 (tui_gen_win_info::reset): Rename from init_gen_win_info
7537 (init_and_make_win): Simplify. Return tui_gen_win_info.
7538 (show_source_or_disasm_and_command): Call the reset method.
7539 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7540 (struct tui_cmd_window): Set can_highlight.
7542 2019-06-25 Tom Tromey <tom@tromey.com>
7544 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7546 (tui_make_visible, tui_make_invisible): Rewrite.
7547 (tui_win_info::make_visible): Remove.
7548 (tui_source_window_base::make_visible): Update.
7549 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7550 method. Moved from...
7551 (struct tui_win_info) <make_visible>: ...here.
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7555 * tui/tui-winsource.c
7556 (tui_source_window_base::do_scroll_horizontal): Remove direction
7558 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7559 direction parameter.
7560 * tui/tui-win.c (tui_win_info::forward_scroll)
7561 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7562 (tui_win_info::right_scroll): Update.
7563 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7564 direction parameter.
7565 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7566 direction parameter.
7567 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7568 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7569 Remove direction parameter.
7570 (struct tui_source_window_base, struct tui_source_window)
7571 (struct tui_disasm_window, struct tui_data_window)
7572 (struct tui_cmd_window): Update.
7574 2019-06-25 Tom Tromey <tom@tromey.com>
7576 * tui/tui-winsource.h (tui_set_exec_info_content)
7577 (tui_show_exec_info_content, tui_erase_exec_info_content)
7578 (tui_clear_exec_info_content, tui_update_exec_info): Change
7579 argument to tui_source_window_base.
7580 * tui/tui-winsource.c (tui_set_exec_info_content)
7581 (tui_show_exec_info_content, tui_erase_exec_info_content)
7582 (tui_clear_exec_info_content, tui_update_exec_info): Change
7583 argument to tui_source_window_base.
7585 2019-06-25 Tom Tromey <tom@tromey.com>
7587 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7588 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7590 2019-06-25 Tom Tromey <tom@tromey.com>
7592 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7595 2019-06-25 Tom Tromey <tom@tromey.com>
7597 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7599 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7601 * tui/tui-source.c (tui_set_source_content): Update.
7602 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7604 2019-06-25 Tom Tromey <tom@tromey.com>
7606 * tui/tui-win.c (window_name_completer, tui_set_focus)
7607 (tui_all_windows_info): Use name method.
7608 * tui/tui-data.h (struct tui_gen_win_info)
7609 (struct tui_source_window, struct tui_disasm_window)
7610 (struct tui_data_window, struct tui_cmd_window) <name>: New
7612 (tui_win_name): Don't declare.
7613 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7614 (tui_win_name): Remove.
7616 2019-06-25 Tom Tromey <tom@tromey.com>
7618 * tui/tui-winsource.h (tui_update_source_window)
7619 (tui_update_source_window_as_is): Change parameter type.
7620 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7621 to be a tui_source_window_base.
7622 (tui_update_source_window_as_is): Likewise.
7623 * tui/tui-win.c (make_visible_with_new_height): Update.
7625 2019-06-25 Tom Tromey <tom@tromey.com>
7627 * tui/tui-winsource.c (tui_erase_source_content)
7628 (tui_show_source_content, tui_show_exec_info_content)
7629 (tui_erase_exec_info_content): Use refresh_window method.
7630 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7631 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7632 from tui_refresh_win.
7633 (tui_data_window::refresh_window): New method.
7634 (tui_win_info::refresh, tui_source_window_base::refresh)
7635 (tui_refresh_all): Use refresh_window method.
7636 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7638 * tui/tui-regs.c (tui_display_register): Call refresh_window
7640 * tui/tui-layout.c (show_source_disasm_command)
7641 (show_source_or_disasm_and_command): Call refresh_window method.
7642 * tui/tui-data.h (struct tui_gen_win_info)
7643 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7646 2019-06-25 Tom Tromey <tom@tromey.com>
7648 * tui/tui.c (tui_rl_other_window, tui_enable)
7649 (tui_is_window_visible, tui_get_command_dimension): Update.
7650 * tui/tui-winsource.c (tui_update_source_window_as_is)
7651 (tui_clear_source_content, tui_erase_source_content)
7652 (tui_show_source_line, tui_source_window_base::refill)
7653 (tui_source_window_base::do_scroll_horizontal)
7654 (tui_source_window_base::set_is_exec_point_at)
7655 (tui_update_breakpoint_info, tui_set_exec_info_content)
7656 (tui_alloc_source_buffer, tui_line_is_displayed)
7657 (tui_addr_is_displayed): Update.
7658 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7659 (tui_check_and_display_highlight_if_needed)
7660 (tui_win_info::make_visible, tui_win_info::refresh)
7661 (tui_refresh_all): Update.
7662 * tui/tui-windata.c (tui_first_data_item_displayed)
7663 (tui_delete_data_content_windows, tui_erase_data_content)
7664 (tui_display_all_data, tui_data_window::refresh_all)
7665 (tui_check_data_values): Update.
7666 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7667 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7668 (tui_win_info::backward_scroll, tui_refresh_all_win)
7669 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7670 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7671 (tui_source_window_base::set_new_height)
7672 (tui_data_window::set_new_height)
7673 (make_invisible_and_set_new_height)
7674 (make_visible_with_new_height, new_height_ok)
7675 (parse_scrolling_args): Update.
7676 * tui/tui-stack.c (tui_show_frame_info): Update.
7677 * tui/tui-source.c (tui_set_source_content)
7678 (tui_set_source_content_nil, tui_source_is_displayed)
7679 (tui_source_window::do_scroll_vertical): Update.
7680 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7681 (tui_display_registers_from, tui_display_reg_element_at_line)
7682 (tui_check_register_values, tui_reg_command): Update.
7683 * tui/tui-layout.c (tui_default_win_height)
7684 (show_source_disasm_command, show_data, init_and_make_win)
7685 (show_source_or_disasm_and_command): Update.
7686 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7687 (tui_redisplay_readline, tui_mld_flush)
7688 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7690 * tui/tui-disasm.c (tui_set_disassem_content)
7691 (tui_disasm_window::do_scroll_vertical): Update.
7692 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7694 (struct tui_win_info): Derive from tui_gen_win_info.
7695 <~tui_win_info>: Mark as override.
7696 <generic>: Remove member.
7697 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7698 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7699 (~tui_data_window, ~tui_win_info)
7700 (tui_free_all_source_wins_content): Update.
7701 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7703 2019-06-25 Tom Tromey <tom@tromey.com>
7705 * tui/tui-layout.c (init_and_make_win): Use new.
7706 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7707 destructor, initializers.
7708 (tui_alloc_generic_win_info): Don't declare.
7709 * tui/tui-data.c (_locator): Add argument to constructor.
7710 (source_win, disasm_win): New globals.
7711 (exec_info): Remove.
7712 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7714 (tui_alloc_generic_win_info): Remove.
7715 (init_content_element): Use new.
7716 (tui_win_info::tui_win_info): Update.
7717 (free_content_elements) <case DATA_WIN>: Use delete.
7719 2019-06-25 Tom Tromey <tom@tromey.com>
7721 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7722 * tui/tui-windata.c (tui_first_data_item_displayed)
7723 (tui_delete_data_content_windows): Update.
7724 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7725 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7726 (tui_display_registers_from, tui_check_register_values): Update.
7727 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7729 * tui/tui-data.c (init_content_element): Update. Allocate the new
7731 (tui_free_data_content): Update.
7732 (free_content_elements) <case DATA_WIN>: Free the window.
7734 2019-06-25 Tom Tromey <tom@tromey.com>
7736 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7738 * tui/tui-layout.c (make_command_window)
7739 (show_source_disasm_command, show_data, init_and_make_win)
7740 (show_source_or_disasm_and_command): Update.
7741 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7743 <can_highight, is_highlighted>: Now bool.
7744 (tui_set_win_highlight): Don't declare.
7745 * tui/tui-data.c (tui_set_win_highlight): Remove.
7747 2019-06-25 Tom Tromey <tom@tromey.com>
7749 * tui/tui-wingeneral.c (make_visible): Remove check of window
7752 2019-06-25 Tom Tromey <tom@tromey.com>
7754 * tui/tui-win.c (tui_win_info::max_height)
7755 (tui_cmd_window::max_height): New methods.
7756 (new_height_ok): Call max_height.
7757 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7758 <max_height>: New method.
7760 2019-06-25 Tom Tromey <tom@tromey.com>
7762 * tui/tui-win.c (tui_source_window_base::set_new_height)
7763 (tui_data_window::set_new_height): New methods.
7764 (make_invisible_and_set_new_height): Call set_new_height method.
7765 * tui/tui-data.h (struct tui_win_info)
7766 (struct tui_source_window_base, struct tui_data_window)
7767 <set_new_height>: New method.
7769 2019-06-25 Tom Tromey <tom@tromey.com>
7771 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7772 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7773 tui_refresh_data_win.
7774 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7776 (tui_refresh_all_win): Call the refresh_all method.
7777 (tui_set_focus): Likewise.
7778 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7779 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7782 2019-06-25 Tom Tromey <tom@tromey.com>
7784 * tui/tui-winsource.h (tui_refill_source_window)
7785 (tui_set_is_exec_point_at): Don't declare.
7786 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7787 (tui_source_window_base::refill): Rename from
7788 tui_refill_source_window.
7789 (tui_source_window_base::do_scroll_horizontal): Update.
7790 (tui_source_window_base::set_is_exec_point_at): Rename from
7791 tui_set_is_exec_point_at.
7792 (tui_update_all_breakpoint_info): Update.
7793 * tui/tui-stack.c (tui_show_frame_info): Update.
7794 * tui/tui-layout.c (show_data): Add cast.
7795 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7796 * tui/tui-data.h (struct tui_source_window_base) <refill,
7797 set_is_exec_point_at>: New methods.
7798 (tui_source_windows, tui_add_to_source_windows): Update types.
7799 (tui_add_to_source_windows): Remove redundant declaration.
7800 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7801 (tui_source_windows): Change return type.
7802 (tui_clear_source_windows_detail): Update.
7803 (tui_add_to_source_windows): Change type of parameter.
7804 (tui_free_all_source_wins_content): Update.
7806 2019-06-25 Tom Tromey <tom@tromey.com>
7808 * tui/tui-wingeneral.c (tui_win_info::refresh)
7809 (tui_source_window_base::refresh): New methods.
7810 (tui_refresh_all): Call the refresh method.
7811 * tui/tui-data.h (struct tui_win_info)
7812 (struct tui_source_window_base) <refresh>: New method.
7814 2019-06-25 Tom Tromey <tom@tromey.com>
7816 * tui/tui.h (tui_is_window_visible): Return bool.
7817 * tui/tui.c (tui_is_window_visible): Return bool.
7818 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7819 (tui_make_visible, tui_make_invisible)
7820 (tui_win_info::make_visible)
7821 (tui_source_window_base::make_visible, make_all_visible)
7822 (tui_make_all_visible, tui_make_all_invisible): Update.
7823 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7824 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7826 (struct tui_win_info, struct tui_source_window_base)
7827 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7828 * tui/tui-data.c (tui_init_generic_part): Update.
7830 2019-06-25 Tom Tromey <tom@tromey.com>
7832 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7833 (tui_source_window_base::make_visible): New methods.
7834 (make_all_visible): Make method call.
7835 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7836 (struct tui_source_window_base, struct tui_cmd_window): Override
7838 (tui_win_is_source_type): Don't declare.
7839 * tui/tui-data.c (tui_win_is_source_type): Remove.
7841 2019-06-25 Tom Tromey <tom@tromey.com>
7843 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7846 2019-06-25 Tom Tromey <tom@tromey.com>
7848 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7849 Inline constructor. Add initializers for members.
7850 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7851 constructors; now inline in class.
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7855 * tui/tui-regs.c (tui_show_registers): Update.
7856 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7858 * tui/tui-data.c (tui_data_window::clear_detail)
7859 (tui_data_window): Update.
7861 2019-06-25 Tom Tromey <tom@tromey.com>
7863 * tui/tui-windata.c (tui_display_all_data)
7864 (tui_display_data_from_line, tui_display_data_from)
7865 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7867 * tui/tui-regs.c (tui_last_regs_line_no)
7868 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7869 (tui_show_registers, tui_show_register_group)
7870 (tui_display_registers_from, tui_display_reg_element_at_line)
7871 (tui_display_registers_from_line, tui_check_register_values)
7872 (tui_reg_next, tui_reg_prev): Update.
7873 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7874 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7876 (struct tui_win_info) <detail>: Remove. Add new fields from
7878 (TUI_DATA_WIN): Add cast.
7879 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7880 (~tui_data_window): Simplify.
7882 2019-06-25 Tom Tromey <tom@tromey.com>
7884 * tui/tui-layout.c (show_source_disasm_command)
7885 (show_source_or_disasm_and_command): Update.
7886 * tui/tui-io.c (update_cmdwin_start_line)
7887 (tui_redisplay_readline): Update.
7888 * tui/tui-data.h (struct tui_command_info): Remove.
7889 (struct tui_win_info) <detail>: Remove command_info member.
7890 (struct tui_data_window) <start_line>: New member, from
7892 (TUI_CMD_WIN): Add casts.
7894 2019-06-25 Tom Tromey <tom@tromey.com>
7896 * tui/tui-winsource.c (tui_update_source_window)
7897 (tui_refill_source_window)
7898 (tui_source_window_base::do_scroll_horizontal)
7899 (tui_update_breakpoint_info, tui_set_exec_info_content)
7900 (tui_show_exec_info_content, tui_erase_exec_info_content)
7901 (tui_clear_exec_info_content): Update.
7902 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7904 * tui/tui-win.c (make_invisible_and_set_new_height)
7905 (make_visible_with_new_height): Update.
7906 * tui/tui-source.c (tui_set_source_content)
7907 (tui_show_symtab_source): Update.
7908 * tui/tui-layout.c (extract_display_start_addr)
7909 (show_source_disasm_command, show_data)
7910 (make_source_or_disasm_window)
7911 (show_source_or_disasm_and_command): Update.
7912 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7913 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7915 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7916 to tui_source_window_base.
7917 (struct tui_win_info) <detail>: Remove source_info member.
7918 (struct tui_source_window_base) <has_locator>: Inline.
7919 Move contents from tui_source_info; rename has_locator member to
7921 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7922 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7924 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7926 (tui_free_all_source_wins_content): Cast to
7927 tui_source_window_base.
7929 2019-06-25 Tom Tromey <tom@tromey.com>
7931 * tui/tui-win.c (make_invisible_and_set_new_height)
7932 (make_visible_with_new_height): Call has_locator method.
7933 * tui/tui-layout.c (show_source_disasm_command, show_data)
7934 (show_source_or_disasm_and_command): Update for bool change.
7935 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7936 (tui_win_info) <has_locator>: New method.
7937 (struct tui_source_window_base) <has_locator>: New method.
7938 (tui_win_has_locator): Don't declare.
7939 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7940 from tui_win_has_locator.
7941 (tui_source_window_base): Use false, not FALSE.
7943 2019-06-25 Tom Tromey <tom@tromey.com>
7945 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7946 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7947 clear_detail method directly.
7948 (tui_clear_win_detail): Remove.
7950 2019-06-25 Tom Tromey <tom@tromey.com>
7952 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7953 "this", not TUI_DISASM_WIN.
7955 2019-06-25 Tom Tromey <tom@tromey.com>
7957 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7959 * tui/tui-winsource.c
7960 (tui_source_window_base::do_scroll_horizontal): Rename from
7961 tui_horizontal_source_scroll.
7962 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7963 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7964 from tui_vertical_data_scroll.
7965 * tui/tui-win.h (tui_scroll): Don't declare.
7966 * tui/tui-win.c (tui_win_info::forward_scroll)
7967 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7968 (tui_win_info::right_scroll): Rename and update.
7969 (tui_scroll_forward_command, tui_scroll_backward_command)
7970 (tui_scroll_left_command, tui_scroll_right_command): Update.
7971 (tui_scroll): Remove.
7972 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7973 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7974 from tui_vertical_source_scroll.
7975 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7976 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7977 from tui_vertical_disassem_scroll.
7978 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7979 do_scroll_horizontal>: New methods.
7980 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7982 (struct tui_source_window_base): Add do_scroll_horizontal.
7983 (struct tui_source_window, struct tui_disasm_window): Add
7985 (struct tui_data_window, struct tui_cmd_window): Add
7986 do_scroll_horizontal and do_scroll_vertical.
7987 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7989 2019-06-25 Tom Tromey <tom@tromey.com>
7991 * tui/tui-data.h (struct tui_source_window_base): New struct.
7992 (struct tui_source_window): Derive from tui_source_window_base.
7993 (struct tui_disasm_window): New struct.
7994 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7995 from tui_source_window::clear_detail.
7996 (tui_source_window_base): Rename from tui_source_window.
7997 (~tui_source_window_base): Rename from ~tui_source_window.
7998 (tui_alloc_win_info): Create a tui_disasm_window.
8000 2019-06-25 Tom Tromey <tom@tromey.com>
8002 * tui/tui-data.h (struct tui_source_window)
8003 (struct tui_data_window): Declare destructors.
8004 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8006 (tui_win_info): Simplify.
8008 2019-06-25 Tom Tromey <tom@tromey.com>
8010 * tui/tui-winsource.c (tui_display_main)
8011 (tui_update_source_windows_with_addr)
8012 (tui_update_all_breakpoint_info): Update.
8013 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8014 (new_height_ok, parse_scrolling_args): Update.
8015 * tui/tui-stack.c (tui_show_frame_info): Update.
8016 * tui/tui-data.h (struct tui_list): Remove.
8017 (tui_source_windows): Return a reference to a std::vector.
8018 * tui/tui-data.c (source_windows): Now a std::vector.
8019 (tui_source_windows): Change return type.
8020 (tui_clear_source_windows): Rewrite.
8021 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8022 (tui_free_all_source_wins_content): Rewrite.
8024 2019-06-25 Tom Tromey <tom@tromey.com>
8026 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8027 (struct tui_data_window, struct tui_cmd_window): Declare
8028 clear_detail method.
8029 * tui/tui-data.c (tui_source_window::clear_detail)
8030 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8032 (tui_clear_win_detail): Simplify.
8034 2019-06-25 Tom Tromey <tom@tromey.com>
8036 * tui/tui-layout.c (make_source_window, make_disasm_window)
8037 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8038 Return the new window.
8039 (show_source_disasm_command, show_data)
8040 (show_source_or_disasm_and_command): Update.
8042 2019-06-25 Tom Tromey <tom@tromey.com>
8044 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8045 parameter. Return the new window.
8046 (show_source_disasm_command): Update and remove NULL check.
8047 (show_source_or_disasm_and_command): Update.
8049 2019-06-25 Tom Tromey <tom@tromey.com>
8051 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8053 2019-06-25 Tom Tromey <tom@tromey.com>
8055 * tui/tui-data.h (struct tui_win_info): Make constructor
8056 protected. Make destructor virtual. Add initializers.
8057 (tui_source_window, tui_data_window, tui_cmd_window): New
8059 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8060 constructor. Add "type" parameter.
8061 (tui_source_window, tui_data_window, tui_cmd_window): New
8063 (tui_alloc_win_info): Instantiate the appropriate subclass.
8065 2019-06-25 Tom Tromey <tom@tromey.com>
8067 * tui/tui-win.c (tui_resize_all): Use delete.
8068 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8070 (tui_free_window): Don't declare.
8071 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8074 2019-06-25 Tom Tromey <tom@tromey.com>
8076 * tui/tui-data.h (struct tui_win_info): Add constructor.
8077 * tui/tui-data.c (tui_alloc_win_info): Use new.
8078 (tui_free_window): Use delete.
8080 2019-06-22 Tom Tromey <tom@tromey.com>
8082 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8084 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8086 2019-06-22 Tom Tromey <tom@tromey.com>
8088 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8090 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8092 2019-06-22 Tom de Vries <tdevries@suse.de>
8094 * dwarf2read.c (create_addrmap_from_aranges)
8095 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8098 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8100 * dwarf2read.h (dwarf2_section_info_def): Remove.
8101 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8102 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8103 std::vector<dwarf2_section_info>.
8104 (struct dwo_file) <~dwo_file>: Remove.
8105 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8107 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8108 (dwarf2_read_debug_names): Likewise.
8109 (create_debug_types_hash_table): Change parameter type to
8110 array_view, adjust code accordingly.
8111 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8112 (partial_die_info::fixup): Likewise.
8113 (determine_prefix): Likewise.
8114 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8116 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8118 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8120 <~dwo_file>: Remove call to gdb_bfd_unref.
8121 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8122 gdb_bfd_ref_ptr::get.
8124 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8126 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8128 * dwarf2read.c (struct dwo_file): Initialize fields.
8130 (free_dwo_file): Remove, move content to ~dwo_file.
8131 (struct dwo_file_deleter): Remove.
8132 (dwo_file_up>: Remove custom deleter.
8133 (free_dwo_files): Remove.
8134 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8136 (process_skeletonless_type_units): Call unique_ptr::get.
8137 (allocate_dwo_file_hash_table): Add deleter to created hash
8138 table. Change return type to htab_up.
8139 (lookup_dwo_file_slot): Don't memset dwo_file, call
8141 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8142 (create_dwo_unit_in_dwp_v2): Likewise.
8143 (open_and_init_dwo_file): Likewise.
8144 (free_dwo_file_from_slot): Remove.
8146 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8148 * dwarf2read.h (struct dwarf2_section_info) <readin,
8149 is_virtual>: Change type to bool.
8150 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8153 2019-06-19 Tom Tromey <tom@tromey.com>
8155 * tui/tui-data.h (tui_init_content_element): Don't declare.
8157 2019-06-19 Tom Tromey <tom@tromey.com>
8159 * tui/tui-data.h (tui_init_win_info): Don't declare.
8161 2019-06-19 Tom de Vries <tdevries@suse.de>
8163 * dwarf2read.h (abstract_to_concrete): Change type to
8164 std::unordered_map<sect_offset, std::vector<sect_offset>,
8165 gdb::hash_enum<sect_offset>>.
8167 2019-06-19 Tom Tromey <tromey@adacore.com>
8169 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8170 EVAL_AVOID_SIDE_EFFECTS specially.
8172 2019-06-19 Tom Tromey <tromey@adacore.com>
8174 * source-cache.c (highlighter): New global.
8175 (source_cache::get_source_lines): Create a highlighter on demand.
8177 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8179 * defs.h (deprecated_interactive_hook): Delete declaration.
8180 * interps.c (clear_interpreter_hooks): Remove use of
8181 deprecated_interactive_hook.
8182 * top.c (deprecated_interactive_hook): Delete definition.
8183 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8185 2019-06-18 Tom de Vries <tdevries@suse.de>
8188 * dwarf2read.h (abstract_to_concrete): Change type from
8189 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8190 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8191 * dwarf2read.c (read_variable): Update.
8192 (dwarf2_fetch_die_loc_sect_off): Update.
8194 2019-06-17 Tom de Vries <tdevries@suse.de>
8197 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8198 accessing parent[parent_len - 1].
8200 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8203 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8204 call dtrace_process_dof with NULL dof.
8206 2019-06-16 Tom de Vries <tdevries@suse.de>
8209 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8211 2019-06-16 Tom Tromey <tom@tromey.com>
8213 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8214 (make_all_visible): Use address of member.
8216 2019-06-16 Tom Tromey <tom@tromey.com>
8218 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8219 (tui_free_window, free_content, free_content_elements): Remove
8221 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8223 * tui/tui-regs.c (tui_show_register_group)
8224 (tui_display_registers_from, tui_display_reg_element_at_line):
8225 Remove unnecessary cast.
8227 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8229 * linux-nat.c (normal_mask): Delete.
8230 (_initialize_linux_nat): Don't initialise normal_mask.
8232 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8235 * dwarf-index-write.h (write_psymtabs_to_index): Add
8236 dwz_basename parameter.
8237 * dwarf-index-write.c (write_gdbindex): Move file writing to
8238 write_gdbindex_1. Change return type void.
8239 (assert_file_size): Move up, remove filename parameter.
8240 (write_gdbindex_1): New function.
8241 (write_debug_names): Change return type to void, call
8243 (struct index_wip_file): New struct.
8244 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8245 file logic to index_wip_file. Write index for dwz file if
8247 (save_gdb_index_command): Pass basename of dwz file, if present.
8248 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8249 build-id of dwz file, if present.
8250 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8251 (dwarf2_get_dwz_file): Likewise.
8252 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8253 (dwarf2_get_dwz_file): Likewise.
8255 2019-06-16 Tom Tromey <tom@tromey.com>
8257 * coffread.c (process_coff_symbol): Use xstrdup.
8258 * value.c (create_internalvar): Use xstrdup.
8260 2019-06-16 Tom Tromey <tom@tromey.com>
8262 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8263 * breakpoint.c (stopin_command, stopat_command)
8264 (until_break_command, decode_location_default): Remove unnecessary
8266 * utils.c (subset_compare): Remove unnecessary cast.
8267 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8269 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8271 * infcmd.c (path_command): Remove unnecessary cast.
8272 * coffread.c (decode_type): Remove unnecessary cast.
8273 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8274 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8275 * tui/tui-stack.c (tui_show_locator_content)
8276 (tui_show_frame_info): Remove unnecessary cast.
8277 * tui/tui-win.c (tui_scroll_forward_command)
8278 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8279 (parse_scrolling_args): Remove unnecessary cast.
8280 * tui/tui-data.c (init_win_info, tui_del_window)
8281 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8282 (free_content_elements): Remove unnecessary cast.
8283 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8285 * tui/tui-source.c (tui_set_source_content)
8286 (tui_vertical_source_scroll): Remove unnecessary cast.
8287 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8289 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8290 * tui/tui-regs.c (tui_display_registers_from)
8291 (tui_display_register): Remove unnecessary cast.
8292 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8293 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8294 (make_visible): Remove unnecessary cast.
8295 * tui/tui-winsource.c (tui_erase_source_content)
8296 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8298 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8299 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8300 * stabsread.c (read_type, read_array_type, read_range_type):
8301 Remove unnecessary cast.
8302 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8303 (parse_symbol, parse_type, upgrade_type, parse_external)
8304 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8306 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8308 2019-06-16 Tom Tromey <tom@tromey.com>
8310 * tui/tui-data.c (tui_alloc_generic_win_info)
8311 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8314 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8315 Andrew Burgess <andrew.burgess@embecosm.com>
8317 * f-typeprint.c (f_print_type): Don't return early for not
8318 associated or not allocated types.
8319 (f_type_print_varspec_suffix): Add print_rank parameter and print
8320 ranks of array types in case they dangling.
8321 (f_type_print_base): Add print_rank parameter.
8323 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8325 * NEWS: Mention new MI commands.
8326 * break-catch-throw.c (enum exception_event_kind): Move to
8328 (print_mention_exception_catchpoint): Output text as a single
8330 (catch_exception_command_1): Rename to...
8331 (catch_exception_event): ...this, make non-static, update header
8332 command, and change some parameter types.
8333 (catch_catch_command): Update for changes to
8334 catch_exception_command_1.
8335 (catch_throw_command): Likewise.
8336 (catch_rethrow_command): Likewise.
8337 * breakpoint.c (enum exception_event_kind): Delete.
8338 * breakpoint.h (enum exception_event_kind): Moved here from
8339 break-catch-throw.c.
8340 (catch_exception_event): Declare.
8341 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8342 (mi_cmd_catch_throw): New function.
8343 (mi_cmd_catch_rethrow): New function.
8344 (mi_cmd_catch_catch): New function.
8345 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8346 'catch-catch' entries.
8347 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8348 (mi_cmd_catch_rethrow): Declare.
8349 (mi_cmd_catch_catch): Declare.
8351 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8353 * annotate.c (annotate_source_line): Change return type to void,
8354 update implementation to match.
8355 * annotate.h (annotate_source_line): Change return type to void,
8356 update header comment.
8357 * stack.c (print_frame_info): Don't change what frame information
8358 is printed based on whether annotations are on or not.
8360 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8362 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8363 (annotate_source): Make static.
8364 (annotate_source_line): Moved from source.c and renamed from
8365 identify_source_line. Update the return type.
8366 * annotate.h (annotate_source): Delete declaration.
8367 (annotate_source_line): Declaration moved from source.h, and
8368 renamed from identify_source_line. Return type updated.
8369 * source.c (identify_source_line): Moved to annotate.c and renamed
8370 to annotate_source_line.
8371 (info_line_command): Remove check of annotation_level.
8372 * source.h (identify_source_line): Move declaration to annotate.h
8373 and rename to annotate_source_line.
8374 * stack.c: Add 'annotate.h' include.
8375 (print_frame_info): Remove check of annotation_level before
8376 calling annotate_source_line.
8378 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8380 * source-cache.c (source_cache::get_plain_source_lines): Use
8381 open_source_file_with_line_charpos instead of just
8382 open_source_file, remove call to find_source_lines.
8383 (source_cache::get_source_lines): Likewise.
8384 * source.c (find_source_lines): Make static.
8385 (get_filename_and_charpos): Renamed into...
8386 (open_source_file_with_line_charpos): ..this along with changes to
8387 return a scoped_fd, and some other minor clean ups.
8388 (identify_source_line): Use open_source_file_with_line_charpos.
8389 (search_command_helper): Use open_source_file_with_line_charpos
8390 instead of just open_source_file, remove call to
8392 * source.h (open_source_file_with_line_charpos): Declare new
8394 (find_source_lines): Delete declaration.
8396 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8398 * source.c (get_filename_and_charpos): Remove fullname
8400 (identify_source_line): Update call to get_filename_and_charpos.
8402 2019-06-14 Tom Tromey <tromey@adacore.com>
8405 * ui-style.h (skip_ansi_escape): Update comment.
8406 * ui-file.h (class no_terminal_escape_file): New class.
8407 * ui-file.c (no_terminal_escape_file::write)
8408 (no_terminal_escape_file::puts): New methods.
8409 * cli/cli-logging.c (handle_redirections): Use
8410 no_terminal_escape_file.
8412 2019-06-14 Tom Tromey <tromey@adacore.com>
8414 * NEWS: Move convenience variable news above Python news.
8416 2019-06-14 Tom Tromey <tom@tromey.com>
8418 * gnulib: Move directory to top-level.
8419 * configure.ac: Don't configure gnulib.
8420 * configure: Rebuild.
8421 * common/common-defs.h: Use new path to gnulib.
8422 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8424 (INCGNU): Look in new gnulib location.
8425 (HFILES_NO_SRCDIR): Remove gnulib files.
8426 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8427 (generated_files): Remove GNULIB_H.
8428 ($(LIBGNU), all-lib): Remove targets.
8429 (distclean): Don't mention GNULIB_BUILDDIR.
8430 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8432 2019-06-14 Tom Tromey <tromey@adacore.com>
8434 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8435 Warn if symbol file does not provide any symbols.
8437 2019-06-14 Tom Tromey <tromey@adacore.com>
8439 * source.c (find_and_open_source): Respect basenames_may_differ.
8441 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8443 * annotate.c (annotate_breakpoints_invalid): Make use of
8444 scoped_restore_terminal_state.
8445 (annotate_frames_invalid): Likewise.
8447 2019-06-14 Tom Tromey <tromey@adacore.com>
8449 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8450 allow assignment to an internalvar.
8452 2019-06-14 Tom Tromey <tromey@adacore.com>
8454 * ada-lex.l: Allow "_" in attribute names.
8456 2019-06-14 Tom Tromey <tromey@adacore.com>
8459 * regcache.c (registers_changed): Don't call alloca.
8460 * top.c (execute_command): Don't call alloca.
8462 2019-06-13 Pedro Alves <palves@redhat.com>
8464 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8465 'expression'. When parsing an expression, error out if there's
8466 junk after "unlimited".
8467 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8468 (do_set_command): Adjust calls to is_unlimited_literal.
8470 2019-06-13 Pedro Alves <palves@redhat.com>
8472 * compile/compile.c (make_compile_options_def_group): Add braces
8473 around array_view initializer.
8474 * thread.c (make_thread_apply_all_options_def_group)
8475 (make_thread_apply_all_options_def_group): Likewise.
8477 2019-06-13 Pedro Alves <palves@redhat.com>
8479 * NEWS (New commands): Mention "maint test-options
8480 require-delimiter", "maint test-options unknown-is-error", "maint
8481 test-options unknown-is-operand" and "maint show
8482 test-options-completion-result".
8483 (New command options, command completion): New section.
8484 (Completion improvements): New section.
8485 Mention that you can abbreviate "unlimited".
8487 2019-06-13 Pedro Alves <palves@redhat.com>
8489 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8490 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8491 * unittests/cli-utils-selftests.c (test_parse_flags)
8492 (test_parse_flags_qcs): Delete.
8493 (test_cli_utils): Don't call deleted functions.
8495 2019-06-13 Pedro Alves <palves@redhat.com>
8497 * thread.c: Include "cli/cli-option.h".
8498 (tp_array_compar_ascending): Global.
8499 (tp_array_compar): Delete function.
8500 (tp_array_compar_ascending, tp_array_compar_descending): New
8502 (ascending_option_def, qcs_flag_option_def)
8503 (thr_qcs_flags_option_defs)
8504 (make_thread_apply_all_options_def_group)
8505 (make_thread_apply_options_def_group): New.
8506 (thread_apply_all_command): Use gdb::option::process_options.
8507 (thread_apply_command_completer)
8508 (thread_apply_all_command_completer): New.
8509 (thread_apply_command): Use gdb::option::process_options.
8510 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8511 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8512 to generate help text of "thread apply". Adjust "taas"'s help.
8513 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8514 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8516 2019-06-13 Pedro Alves <palves@redhat.com>
8518 * thread.c (thread_apply_command): Check for invalid TID with
8519 isdigit instead of !isalpha.
8521 2019-06-13 Pedro Alves <palves@redhat.com>
8523 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8524 (validate_flags_qcs): New.
8525 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8526 (validate_flags_qcs): Declare.
8527 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8528 (make_frame_apply_options_def_group): New.
8529 (frame_apply_command_count): Process options with
8530 gdb::option::process_options.
8531 (frame_apply_completer): New.
8532 (frame_apply_level_completer, frame_apply_all_completer)
8533 (frame_apply_completer): New.
8534 (_initialize_stack): Update help of "frame apply", "frame apply
8535 level", "frame apply all" and "faas" to mention supported options
8536 and install command completers.
8537 * stack.h (frame_apply_all_completer): Declare.
8538 * thread.c: Include "stack.h".
8539 (tfaas_command): Add "--".
8540 (_initialize_thread): Update help "tfaas" to mention supported
8541 options and install command completer.
8543 2019-06-13 Pedro Alves <palves@redhat.com>
8545 * completer.c (complete_nested_command_line): New.
8546 (gdb_completion_word_break_characters_throw): Add assertion.
8547 * completer.h (complete_nested_command_line): Declare.
8549 2019-06-13 Pedro Alves <palves@redhat.com>
8551 * stack.c (parse_backtrace_qualifiers): New.
8552 (backtrace_command): Use it.
8553 (backtrace_command_completer): Complete on qualifiers.
8555 2019-06-13 Pedro Alves <palves@redhat.com>
8557 * frame.c: Include "cli/cli-option.h.
8558 (user_set_backtrace_options): New.
8559 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8561 (get_prev_frame): Adjust.
8562 (boolean_option_def, uinteger_option_def)
8563 (set_backtrace_option_defs): New.
8564 (_initialize_frame): Adjust and use
8565 gdb::option::add_setshow_cmds_for_options to install "set
8566 backtrace past-main" and "set backtrace past-entry".
8567 * frame.h: Include "cli/cli-option.h".
8568 (struct frame_print_options): Forward declare.
8569 (print_frame_arguments_all, print_frame_arguments_scalars)
8570 (print_frame_arguments_none): Declare.
8571 (print_entry_values): Delete declaration.
8572 (struct frame_print_options, user_frame_print_options): New.
8573 (struct set_backtrace_options): New.
8574 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8575 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8576 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8577 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8578 (list_args_or_locals): Add frame_print_options parameter.
8579 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8580 * python/py-framefilter.c (enumerate_args): Pass down
8581 USER_FRAME_PRINT_OPTIONS.
8582 * stack.c: Include "cli/cli-option.h".
8583 (print_frame_arguments_all, print_frame_arguments_scalars)
8584 (print_frame_arguments_none): Declare.
8585 (print_raw_frame_arguments, print_entry_values): Delete.
8586 (user_frame_print_options): New.
8587 (boolean_option_def, enum_option_def, frame_print_option_defs):
8589 (struct backtrace_cmd_options): New.
8590 (bt_flag_option_def): New.
8591 (backtrace_command_option_defs): New.
8592 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8593 (print_frame_arg, read_frame_arg, print_frame_args)
8594 (print_frame_info, print_frame): Add frame_print_options parameter
8596 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8597 (backtrace_command_1): Add frame_print_options and
8598 backtrace_cmd_options parameters and use them.
8599 (make_backtrace_options_def_group): New.
8600 (backtrace_command): Process command options with
8601 gdb::option::process_options.
8602 (backtrace_command_completer): New.
8603 (_initialize_stack): Extend "backtrace"'s help to mention
8604 supported options. Install completer for "backtrace".
8605 Install some settings commands with add_setshow_cmds_for_options.
8607 2019-06-13 Pedro Alves <palves@redhat.com>
8609 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8610 and that "set/show print raw frame-arguments" are now deprecated.
8612 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8614 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8615 * stack.c (_initialize_stack): Install "set/show print
8616 raw-frame-arguments", and deprecate "set/show print raw
8618 * valprint.c (_initialize_valprint): Deprecate "set/show print
8621 2019-06-13 Pedro Alves <palves@redhat.com>
8623 * compile/compile.c (struct compile_options): New.
8624 (compile_flag_option_def, compile_command_option_defs)
8625 (make_compile_options_def_group): New.
8626 (compile_file_command): Handle options with
8627 gdb::option::process_options.
8628 (compile_file_command_completer): New function.
8629 (compile_code_command): Handle options with
8630 gdb::option::process_options.
8631 (compile_code_command_completer): New function.
8632 (_initialize_compiler): Install completers for "compile code" and
8633 "compile file". Mention available options in "compile code" and
8634 "compile code"'s help.
8635 * completer.c (advance_to_completion_word): New, factored out from
8637 (advance_to_expression_complete_word_point): ... this.
8638 (advance_to_filename_complete_word_point): New.
8639 * completer.h (advance_to_filename_complete_word_point): New
8642 2019-06-13 Pedro Alves <palves@redhat.com>
8644 * compile/compile.c: Include "cli/cli-option.h".
8645 (compile_print_value): Scope data pointer is now a
8646 value_print_options pointer; adjust.
8647 (compile_print_command): Process options. Scope data pointer is
8648 now a value_print_options pointer; adjust.
8649 (_initialize_compile): Update "compile print"'s help to include
8650 supported options. Install a completer for "compile print".
8651 * cp-valprint.c (show_vtblprint, show_objectprint)
8652 (show_static_field_print): Delete.
8653 (_initialize_cp_valprint): Don't install "set print
8654 static-members", "set print vtbl", "set print object" here.
8655 * printcmd.c: Include "cli/cli-option.h" and
8656 "common/gdb_optional.h".
8657 (print_command_parse_format): Rework to fill in a
8658 value_print_options instead of a format_data.
8659 (print_value): Change parameter type from format_data pointer to
8660 value_print_options reference. Adjust.
8661 (print_command_1): Process options. Adjust to pass down a
8662 value_print_options.
8663 (print_command_completer): New.
8664 (_initialize_printcmd): Install print_command_completer as
8665 handle_brkchars completer for the "print" command. Update
8666 "print"'s help to include supported options.
8667 * valprint.c: Include "cli/cli-option.h".
8668 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8669 here from cp-valprint.c.
8670 (boolean_option_def, uinteger_option_def)
8671 (value_print_option_defs, make_value_print_options_def_group):
8672 New. Use gdb::option::add_setshow_cmds_for_options to install
8673 "set print elements", "set print null-stop", "set print repeats",
8674 "set print pretty", "set print union", "set print array", "set
8675 print address", "set print symbol", "set print array-indexes".
8676 * valprint.h: Include <string> and "cli/cli-option.h".
8677 (make_value_print_options_def_group): Declare.
8678 (print_value): Change parameter type from format_data pointer to
8679 value_print_options reference.
8680 (print_command_completer): Declare.
8682 2019-06-13 Pedro Alves <palves@redhat.com>
8684 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8685 (COMMON_SFILES): Add maint-test-settings.c.
8686 * cli/cli-decode.c (boolean_enums): New global, factored out from
8688 (add_setshow_boolean_cmd): ... here.
8689 * cli/cli-decode.h (boolean_enums): Declare.
8690 * cli/cli-option.c: New file.
8691 * cli/cli-option.h: New file.
8692 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8693 factored out from ...
8694 (parse_cli_boolean_value(const char *)): ... this.
8695 (is_unlimited_literal): Change parameter type to pointer to
8696 pointer. Adjust and advance ARG pointer.
8697 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8698 (parse_cli_var_enum): New, factored out from ...
8699 (do_set_command): ... this. Adjust.
8700 * cli/cli-setshow.h (parse_cli_boolean_value)
8701 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8702 (parse_cli_var_enum): Declare.
8703 * cli/cli-utils.c: Include "cli/cli-option.h".
8704 (get_ulongest): New.
8705 * cli/cli-utils.h (get_ulongest): Declare.
8706 (check_for_argument): New overloads.
8707 * maint-test-options.c: New file.
8709 2019-06-13 Pedro Alves <palves@redhat.com>
8711 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8712 parse a range if "-" is at the end of the string.
8714 2019-06-13 Pedro Alves <palves@redhat.com>
8716 * cli/cli-setshow.c (parse_auto_binary_operation)
8717 (parse_cli_boolean_value): Don't allow "o".
8719 2019-06-13 Pedro Alves <palves@redhat.com>
8721 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8722 * NEWS: Mention maint test-settings KIND.
8723 * maint-test-settings.c: New file.
8725 2019-06-13 Pedro Alves <palves@redhat.com>
8727 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8729 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8732 2019-06-13 Pedro Alves <palves@redhat.com>
8734 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8737 2019-06-13 Pedro Alves <palves@redhat.com>
8739 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8741 2019-06-13 Pedro Alves <palves@redhat.com>
8743 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8744 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8746 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8747 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8749 (check_for_argument): Skip spaces after argument.
8751 2019-06-13 Pedro Alves <palves@redhat.com>
8753 * thread.c (thread_apply_command): Adjust TID parsing.
8754 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8755 detected before end of string.
8756 (tid_is_in_list): Error out if LIST is invalid.
8758 2019-06-13 Pedro Alves <palves@redhat.com>
8760 * completer.c (complete_line_internal_1): Rewind completion word
8762 (completion_tracker::advance_custom_word_point_by): Change
8763 parameter type to int.
8764 * completer.h (completion_tracker::advance_custom_word_point_by):
8767 2019-06-13 Pedro Alves <palves@redhat.com>
8769 * completer.c (advance_to_completion_word): Handle delimiters.
8771 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8773 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8775 2019-06-11 Tom Tromey <tom@tromey.com>
8777 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8778 (xmalloc_failed): Move to alloc.c.
8779 * alloc.c: New file.
8780 * Makefile.in (COMMON_SFILES): Add alloc.c.
8782 2019-06-11 Tom Tromey <tom@tromey.com>
8784 * nat/linux-waitpid.c: Don't include server.h.
8785 (linux_debug): Remove.
8786 (my_waitpid): Update.
8788 2019-06-11 Tom Tromey <tromey@adacore.com>
8790 * infcall.c (_initialize_infcall): Remove trailing newline from
8792 * user-regs.c (_initialize_user_regs): Remove trailing newline
8794 * typeprint.c (_initialize_typeprint): Remove trailing newline
8796 * reverse.c (_initialize_reverse): Remove trailing newlines from
8798 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8800 * language.c (add_set_language_command): Remove trailing newline
8802 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8804 * disasm.c (_initialize_disasm): Remove trailing newline from
8806 * top.c (init_main): Remove trailing newline from help.
8807 * interps.c (_initialize_interpreter): Remove trailing newline
8809 * btrace.c (_initialize_btrace): Remove trailing newlines from
8811 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8813 * python/python.c (_initialize_python): Remove trailing newline
8815 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8817 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8818 from help. Reformat some text.
8819 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8821 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8824 2019-06-11 Tom Tromey <tromey@adacore.com>
8826 * darwin-nat.c (darwin_decode_exception_message)
8827 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8829 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8831 * valops.c (value_slice): Check for not allocated or not
8834 2019-06-10 Tom de Vries <tdevries@suse.de>
8837 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8838 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8841 2019-06-10 Tom de Vries <tdevries@suse.de>
8844 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8845 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8847 2019-06-10 Tom de Vries <tdevries@suse.de>
8850 * symtab.c (struct demangled_name_entry): Add language field.
8851 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8852 static minimal symbol". Set and use language field.
8854 2019-06-10 Tom Tromey <tromey@adacore.com>
8856 * ada-lang.c (_initialize_ada_language): Update help text.
8858 2019-06-10 Tom Tromey <tromey@adacore.com>
8860 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8862 * guile/guile.c (handle_boot_error): Don't end warning with a
8864 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8865 warning with a newline.
8866 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8868 (s12z_frame_cache): Likewise.
8869 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8871 * solib-svr4.c (disable_probes_interface): Don't end warning with
8873 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8875 * python/python.c (do_finish_initialization): Don't end warning
8878 2019-06-10 Tom Tromey <tom@tromey.com>
8880 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8881 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8884 2019-06-10 Tom Tromey <tromey@adacore.com>
8886 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8888 (elf_new_init): Don't call stabsread_new_init.
8889 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8890 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8891 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8893 2019-06-10 Tom de Vries <tdevries@suse.de>
8897 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8899 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8901 * source.c (find_and_open_source): Also rewrite relative file
8904 2019-04-26 Amos Bird <amosbird@gmail.com>
8906 * annotate.c (annotate_thread_exited): Add "thread-exited"
8909 2019-06-06 Tom Tromey <tromey@adacore.com>
8911 * maint.h (class scoped_command_stats): Use
8912 DISABLE_COPY_AND_ASSIGN.
8913 <print_time>: New method.
8914 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8916 (scoped_command_stats::print_time): New method.
8918 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8920 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8921 instructions of lengths 6 or 8 bytes.
8923 2019-06-04 Pedro Alves <palves@redhat.com>
8925 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8927 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8928 * breakpoint.c (condition_completer): Likewise.
8929 * cli/cli-dump.c (scan_expression): Likewise.
8930 * common/filestuff.c (mkdir_recursive): Likewise.
8931 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8932 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8933 (gdb_abspath): Likewise.
8934 * compile/compile-cplus-types.c
8935 (compile_cplus_instance::decl_name): Likewise.
8936 * completer.c (complete_explicit_location):
8937 (signal_completer, reg_or_group_completer_1): Likewise.
8938 * cp-support.c (cp_remove_params_if_any): Likewise.
8939 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8940 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8941 * infcmd.c (strip_bg_char): Likewise.
8942 * linespec.c (copy_token_string): Likewise.
8943 * mi/mi-main.c (output_cores): Likewise.
8944 * psymtab.c (psymtab_search_name):
8945 * symfile.c (test_set_ext_lang_command): Likewise.
8946 * target.c (target_fileio_read_stralloc): Likewise.
8947 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8948 * value.c (complete_internalvar): Likewise.
8950 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8952 Add objfile property to gdb.Type.
8953 * NEWS: Mention Python API addition.
8954 * python/py-type.c (typy_get_objfile): New method.
8956 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8958 * NEWS: Mention the new set|show style [title|highlight].
8959 Mention changes to "show style", "help" and "apropos".
8961 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8963 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8964 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8965 instead of print_help_for_command.
8966 (print_doc_of_command): New function.
8967 (help_list): Add 'apropos -v word' suggestion.
8968 (print_help_for_command): Style the command name using title style.
8969 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8970 (_initialize_cli_cmds): Describe -v in apropos_command help.
8972 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8974 * cli/cli-style.h (cli_style_option): Add name in constructor,
8975 add m_name class member, add constructor with intensity,
8976 add name class function.
8977 (cli_style_option::add_setshow_commands): Remove name argument.
8978 (highlight_style, title_style): New styles.
8979 * cli/cli-style.c (do_show): New function that shows a style
8980 characteristic styling the style name with itself.
8981 (set_style_name): New function.
8982 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8983 Update all callers according to the changes in cli/cli-style.h.
8984 * utils.h (fputs_highlighted): New function.
8985 * utils.c (fputs_highlighted): Likewise.
8987 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8989 * NEWS: Mention new pipe command and new convenience variables.
8991 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8993 * cli/cli-cmds.c (pipe_command): New function.
8994 (_initialize_cli_cmds): Call add_com for pipe_command.
8995 Define | as an alias for pipe.
8996 (exit_status_set_internal_vars): New function.
8997 (shell_escape): Call exit_status_set_internal_vars.
8998 cli/cli-decode.c (find_command_name_length): Recognize | as
8999 a single character command.
9001 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9003 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9004 top.c (execute_command_to_ui_file): New function, mostly a copy
9005 of execute_command_to_string.
9006 (execute_command_to_string): Implement by calling
9007 execute_command_to_ui_file.
9009 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9011 * top.h (saved_command_line): Remove declaration.
9012 * top.c (previous_saved_command_line, previous_repeat_arguments):
9014 (saved_command_line): Make static, define together with other
9016 (dont_repeat): Clear repeat_arguments.
9017 (repeat_previous, get_saved_command_line, save_command_line):
9019 (gdb_init): Initialize saved_command_line
9020 and previous_saved_command_line.
9021 * main.c (captured_main_1): Remove saved_command_line initialization.
9022 * event-top.c (handle_line_of_input): Update to use
9023 the new 'repeat' related functions instead of direct access to
9025 * command.h (repeat_previous, get_saved_command_line,
9026 save_command_line): New declarations.
9027 (dont_repeat): Add comment.
9029 2019-05-30 Tom Tromey <tromey@adacore.com>
9031 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9033 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9035 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9038 * completer.c (complete): Initialize variable word.
9040 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9042 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9043 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9044 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9045 'body' is NULL to the outter 'if', protecting the '!is_define'
9048 2019-05-29 Tom Tromey <tromey@adacore.com>
9050 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9051 (dwarf_unknown): New function.
9052 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9053 (dwarf_type_encoding_name): Use dwarf_unknown.
9055 2019-05-29 Tom Tromey <tromey@adacore.com>
9058 * cp-valprint.c (cp_print_value_fields): Call
9059 cp_print_static_field inside "try".
9061 2019-05-29 Tom Tromey <tromey@adacore.com>
9063 * inflow.c (struct terminal_info): Add default operator=.
9064 * configure: Rebuild.
9065 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9066 -Wdeprecated-copy-dtor, -Wredundant-move.
9068 2019-05-29 Tom Tromey <tromey@adacore.com>
9071 * infcmd.c (print_return_value_1): Handle finish_print
9073 (show_print_finish): New function.
9074 (_initialize_infcmd): Add "set/show print finish" commands.
9075 * valprint.c (user_print_options): Initialize new member.
9076 * valprint.h (struct value_print_options) <finish_print>: New
9079 2019-05-28 Tom Tromey <tromey@adacore.com>
9081 * ada-lang.c (ada_remove_Xbn_suffix)
9082 (find_old_style_renaming_symbol)
9083 (parse_old_style_renaming): Remove.
9084 (ada_find_renaming_symbol): Don't call
9085 find_old_style_renaming_symbol.
9086 (ada_is_renaming_symbol): Rename from
9087 ada_find_renaming_symbol. Remove "block" parameter. Return
9089 (ada_read_var_value): Update and simplify.
9090 * ada-exp.y (write_var_or_type): Remove old code.
9092 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9095 * event-top.c: Remove include comment.
9096 * inflow.c (class scoped_ignore_sigttou): Move from here...
9097 * inflow.h (class scoped_ignore_sigttou): ...to here.
9098 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9099 * top.c: Remove include comment.
9101 2019-05-27 Tom Tromey <tom@tromey.com>
9105 2019-05-22 Tom Tromey <tromey@adacore.com>
9107 * target.c (target_follow_exec): Constify parameter.
9108 * target-delegates.c: Rebuild.
9109 * remote.c (remote_target::follow_exec): Constify parameter.
9110 * infrun.c (follow_exec): Constify parameter.
9111 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9112 (target_follow_exec): Likewise.
9114 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9116 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9117 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9119 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9121 * NEWS: Add debugredirect and testsuite sections.
9123 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9125 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9126 target descriptions using exclusively floating point register name
9129 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9132 * f-lang.c (build_fortran_types): Handle the case where
9133 gdbarch_floatformat_for_type returns a nullptr.
9135 2019-05-21 Tom de Vries <tdevries@suse.de>
9138 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9140 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9143 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9145 * i386-tdep.c (i386_floatformat_for_type): Use
9146 floatformats_ia64_quad for the 16-byte floating point component
9147 within a fortran 32-byte complex number.
9149 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9151 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9152 delete default constructor.
9153 (find_partial_die): Update to return const struct.
9154 (partial_die_parent_scope): Move variable declaration into scope
9155 of its use and change its type to auto.
9156 (guess_partial_die_structure_name): Likewise.
9157 (partial_die_info::fixup): Likewise.
9159 2019-05-17 Tom Tromey <tromey@adacore.com>
9161 * source.c (find_and_open_source): Remove cast.
9163 2019-05-17 Tom Tromey <tromey@adacore.com>
9165 * annotate.c (annotate_source): Make "filename" const.
9166 * annotate.h (annotate_source): Use const.
9168 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9170 * disasm.c (set_disassembler_options): Send errors to stderr.
9172 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9174 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9175 (cli_interp_base::set_logging): Check debug_redirect.
9176 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9177 * cli/cli-logging.c (debug_redirect): Add static variable.
9178 (pop_output_files): Add default param.
9179 (handle_redirections): Print debug setting.
9180 (show_logging_command): Likewise.
9181 (_initialize_cli_logging): Add debugredirect command.
9182 * interps.c (current_interp_set_logging): Add debug_redirect
9184 * interps.h (set_logging): Add debug_redirect parameter.
9185 (current_interp_set_logging): Likewise.
9186 * mi/mi-common.h: Likewise.
9187 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9189 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9190 Tom Tromey <tromey@adacore.com>
9192 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9194 * cli/cli-interp.h (make_logging_output): Remove declaration.
9195 * cli/cli-logging.c (make_logging_output): Remove function.
9196 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9198 * ui-file.c (tee_file::tee_file): Remove bools.
9199 (tee_file::~tee_file): Remove deletes.
9200 * ui-file.h (tee_file): Remove bools.
9202 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9204 * mi/mi-cmds.h (mi_cmd_complete): New function.
9205 * mi/mi-main.c (mi_cmd_complete): Likewise.
9206 * mi/mi-cmds.c: Define new MI command -complete.
9207 * NEWS: Mention new -complete command.
9209 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9211 * completer.h (complete): New function.
9212 * completer.c (complete): Likewise.
9213 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9214 function defined in completer.h.
9216 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9218 * MAINTAINERS (Write After Approval): Add myself.
9220 2019-05-17 Tom de Vries <tdevries@suse.de>
9223 * dwarf2read.c (struct cu_partial_die_info): New struct.
9224 (find_partial_die): Return cu_partial_die_info.
9225 (partial_die_parent_scope, guess_partial_die_structure_name)
9226 (partial_die_info::fixup): Handle new return type of find_partial_die.
9228 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9230 PR breakpoints/24541
9231 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9232 "std::string", simplifying the algorithm.
9234 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9236 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9237 (stap_static_probe_ops::get_probes): Likewise.
9239 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9241 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9242 '-')" and "else if".
9243 (stap_parse_single_operand): Join checks for
9244 "gdbarch_stap_parse_special_token_p" and
9245 "gdbarch_stap_parse_special_token" in the same "if" statement.
9246 Invert check when verifying for operation on register
9249 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9251 * stap-probe.c (stap_get_opcode): Update comment.
9252 (stap_get_expected_argument_type): Likewise.
9253 (handle_stap_probe): Likewise.
9255 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9257 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9258 return type to 'bool'. Adjust comment. Use 'bool' when
9260 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9261 * stap-probe.c (stap_parse_argument_1): Likewise.
9262 (stap_is_operator): Likewise.
9263 (stap_is_generic_prefix): Likewise.
9264 (stap_is_register_prefix): Likewise.
9265 (stap_is_register_indirection_prefix): Likewise.
9266 (stap_is_integer_prefix): Likewise.
9267 (stap_generic_check_suffix): Likewise.
9268 (stap_check_integer_suffix): Likewise.
9269 (stap_check_register_suffix): Likewise.
9270 (stap_check_register_indirection_suffix): Likewise.
9271 (stap_parse_register_operand): Likewise.
9272 (stap_parse_single_operand): Likewise.
9273 (stap_parse_argument_1): Likewise.
9274 (stap_probe::get_argument_count): Likewise.
9275 (stap_is_operator): Likewise.
9277 2019-05-16 Tom Tromey <tromey@adacore.com>
9279 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9282 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9284 * linux-thread-db.c (try_thread_db_load_1): Change return type
9286 (try_thread_db_load): Likewise.
9287 (try_thread_db_load_from_pdir_1): Likewise.
9288 (try_thread_db_load_from_pdir): Likewise.
9289 (try_thread_db_load_from_sdir): Likewise.
9290 (try_thread_db_load_from_dir): Likewise.
9291 (thread_db_load_search): Likewise.
9292 (has_libpthread): Likewise.
9293 (thread_db_load): Likewise.
9295 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9297 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9298 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9299 NULL, and complain/return if that's the case.
9301 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9303 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9304 (advance, posn, abstract_read_memory): New functions.
9305 [struct mem_read_abstraction]: New struct.
9306 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9308 2019-05-14 Tom Tromey <tromey@adacore.com>
9310 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9311 value is not lval_memory.
9313 2019-05-14 Tom Tromey <tromey@adacore.com>
9315 * solib.c (info_sharedlibrary_command): Style the file name.
9317 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9319 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9320 (aarch64_vnv_type): Likewise.
9321 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9322 * common/tdesc.c: Likewise.
9323 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9324 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9325 * features/aarch64-fpu.xml: Add ieee half view.
9326 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9327 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9328 * gdbtypes.h (struct builtin_type): Likewise.
9329 (struct objfile_type): Likewise.
9331 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9333 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9335 * location.h (string_to_event_location): Likewise.
9337 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9341 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9343 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9344 New variable declaration.
9345 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9347 (print_one_breakpoint): Use ui_out::test_flags and new global
9348 variable to compute use_fixed_output.
9349 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9351 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9352 (mi_multi_location_breakpoint_output_fixed): Remove.
9353 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9355 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9356 fix_multi_location_breakpoint_output flag if version >= 3.
9357 * ui-out.h (enum ui_out_flag)
9358 <fix_multi_location_breakpoint_output>: New enumerator.
9360 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9362 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9364 2019-05-10 Tom Tromey <tromey@adacore.com>
9366 * ada-lang.c (catch_ada_completer): New function.
9367 (_initialize_ada_language): Use it.
9369 2019-05-10 Tom Tromey <tromey@adacore.com>
9371 * thread.c (print_thread_info): Make "requested_threads" const.
9372 * gdbthread.h (print_thread_info): Make "requested_threads"
9374 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9375 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9377 2019-05-08 Tom Tromey <tom@tromey.com>
9379 * gdbtypes.c (objfile_type_data): Change type.
9380 (objfile_type, _initialize_gdbtypes): Update.
9382 2019-05-08 Tom Tromey <tom@tromey.com>
9384 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9385 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9386 (_initialize_dwarf2_frame): Update.
9388 2019-05-08 Tom Tromey <tom@tromey.com>
9390 * objc-lang.c (objc_objfile_data): Change type.
9391 (find_methods): Update.
9392 (_initialize_objc_lang): Remove.
9394 2019-05-08 Tom Tromey <tom@tromey.com>
9396 * stabsread.c (rs6000_builtin_type_data): Change type.
9397 (rs6000_builtin_type, _initialize_stabsread): Update.
9399 2019-05-08 Tom Tromey <tom@tromey.com>
9401 * mips-tdep.c (mips_pdr_data): Remove.
9402 (_initialize_mips_tdep): Update.
9404 2019-05-08 Tom Tromey <tom@tromey.com>
9406 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9407 (hppa_init_objfile_priv_data, read_unwind_info)
9408 (find_unwind_entry, _initialize_hppa_tdep): Update.
9410 2019-05-08 Tom Tromey <tom@tromey.com>
9412 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9413 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9415 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9417 2019-05-08 Tom Tromey <tom@tromey.com>
9419 * mdebugread.c (basic_type_data): Change type.
9420 (basic_type, _initialize_mdebugread): Update.
9422 2019-05-08 Tom Tromey <tom@tromey.com>
9424 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9426 2019-05-08 Tom Tromey <tom@tromey.com>
9428 * nto-tdep.c (nto_inferior_data_reg): Change type.
9429 (nto_inferior_data): Update.
9430 (nto_inferior_data_cleanup, nto_new_inferior_data)
9431 (_initialize_nto_tdep): Remove.
9432 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9434 2019-05-08 Tom Tromey <tom@tromey.com>
9436 * ada-lang.c (struct ada_inferior_data): Add initializers.
9437 (ada_inferior_data): Change type.
9438 (ada_inferior_data_cleanup): Remove.
9439 (get_ada_inferior_data, ada_inferior_exit)
9440 (struct ada_pspace_data): Add initializers, destructor.
9441 (ada_pspace_data_handle): Change type.
9442 (get_ada_pspace_data): Update.
9443 (ada_pspace_data_cleanup): Remove.
9445 2019-05-08 Tom Tromey <tom@tromey.com>
9447 * coffread.c (struct coff_symfile_info): Add initializers.
9448 (coff_objfile_data_key): Move lower. Change type.
9449 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9451 (coff_free_info): Remove.
9453 2019-05-08 Tom Tromey <tom@tromey.com>
9455 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9456 (fbsd_pspace_data_handle): Move lower. Change type.
9457 (get_fbsd_pspace_data): Update.
9458 (fbsd_pspace_data_cleanup): Remove.
9459 (_initialize_fbsd_tdep): Update.
9461 2019-05-08 Tom Tromey <tom@tromey.com>
9463 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9464 (get_ada_tasks_pspace_data): Update.
9465 (ada_tasks_pspace_data_cleanup): Remove.
9466 (_initialize_tasks): Update.
9467 (ada_tasks_inferior_data_handle): Change type.
9468 (get_ada_tasks_inferior_data): Update.
9469 (ada_tasks_inferior_data_cleanup): Remove.
9470 (struct ada_tasks_pspace_data): Add initializers.
9472 2019-05-08 Tom Tromey <tom@tromey.com>
9474 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9475 * symfile-debug.c (debug_sym_get_probes): Change type.
9476 * stap-probe.c (handle_stap_probe):
9477 (stap_static_probe_ops::get_probes): Change type.
9478 * probe.h (class static_probe_ops) <get_probes>: Change type.
9479 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9480 (parse_probes_in_pspace): Update.
9481 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9483 (any_static_probe_ops::get_probes): Change type.
9484 * elfread.c (elfread_data): New typedef.
9485 (probe_key): Change type.
9486 (elf_get_probes): Likewise. Update.
9487 (probe_key_free): Remove.
9488 (_initialize_elfread): Update.
9489 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9491 (dtrace_process_dof_probe, dtrace_process_dof)
9492 (dtrace_static_probe_ops::get_probe): Change type.
9494 2019-05-08 Tom Tromey <tom@tromey.com>
9496 * xcoffread.c (struct xcoff_symfile_info): Rename from
9497 coff_symfile_info. Add initializers.
9498 (xcoff_objfile_data_key): Move lower. Change type.
9499 (XCOFF_DATA): Rewrite.
9500 (xcoff_free_info): Remove.
9501 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9502 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9503 (xcoff_initial_scan): Update.
9505 2019-05-08 Tom Tromey <tom@tromey.com>
9507 * solib-svr4.c (struct svr4_info): Add initializers and
9509 <probes_table>: Now an htab_up.
9510 (solib_svr4_pspace_data): Change type.
9511 (free_probes_table): Simplify.
9512 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9513 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9514 (probes_table_remove_objfile_probes, register_solib_event_probe)
9515 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9516 (_initialize_svr4_solib): Update.
9518 2019-05-08 Tom Tromey <tom@tromey.com>
9520 * remote.c (remote_pspace_data): Change type.
9521 (remote_pspace_data_cleanup): Remove.
9522 (get_remote_exec_file, set_pspace_remote_exec_file)
9523 (_initialize_remote): Update.
9525 2019-05-08 Tom Tromey <tom@tromey.com>
9527 * breakpoint.c (breakpoint_objfile_key): Change type.
9528 (get_breakpoint_objfile_data): Update.
9529 (free_breakpoint_objfile_data): Remove.
9530 (_initialize_breakpoint): Update.
9532 2019-05-08 Tom Tromey <tom@tromey.com>
9534 * linux-tdep.c (struct linux_info): Add initializers.
9535 (linux_inferior_data): Move. Change type.
9536 (invalidate_linux_cache_inf): Update.
9537 (linux_inferior_data_cleanup): Remove.
9538 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9540 2019-05-08 Tom Tromey <tom@tromey.com>
9542 * auxv.c (auxv_inferior_data): Move. Change type.
9543 (auxv_inferior_data_cleanup): Remove.
9544 (invalidate_auxv_cache_inf): Rewrite.
9545 (get_auxv_inferior_data, _initialize_auxv): Update.
9547 2019-05-08 Tom Tromey <tom@tromey.com>
9549 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9550 (symfile_debug_objfile_data_key): Change type.
9551 (symfile_debug_installed, debug_qf_has_symbols)
9552 (debug_qf_find_last_source_symtab)
9553 (debug_qf_forget_cached_source_info)
9554 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9555 (debug_qf_print_stats, debug_qf_dump)
9556 (debug_qf_expand_symtabs_for_function)
9557 (debug_qf_expand_all_symtabs)
9558 (debug_qf_expand_symtabs_with_fullname)
9559 (debug_qf_map_matching_symbols)
9560 (debug_qf_expand_symtabs_matching)
9561 (debug_qf_find_pc_sect_compunit_symtab)
9562 (debug_qf_map_symbol_filenames)
9563 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9564 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9565 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9566 (debug_sym_read_linetable, debug_sym_relocate): Update.
9567 (symfile_debug_free_objfile): Remove.
9568 (install_symfile_debug_logging, _initialize_symfile_debug):
9571 2019-05-08 Tom Tromey <tom@tromey.com>
9573 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9574 allocate_on_obstack.
9575 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9576 (get_dwarf2_per_objfile): Update.
9577 (set_dwarf2_per_objfile): Remove.
9578 (dwarf2_has_info, dwarf2_get_section_info): Update.
9579 (dwarf2_free_objfile): Remove.
9580 (_initialize_dwarf2_read): Update.
9582 2019-05-08 Tom Tromey <tom@tromey.com>
9584 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9586 <unsupported_script_warning_printed,
9587 script_not_found_warning_printed>: Now bool.
9588 (auto_load_pspace_data): Change type.
9589 (~auto_load_pspace_info): Rename from
9590 auto_load_pspace_data_cleanup.
9591 (get_auto_load_pspace_data, init_loaded_scripts_info)
9592 (clear_section_scripts, maybe_print_unsupported_script_warning)
9593 (maybe_print_script_not_found_warning, _initialize_auto_load):
9596 2019-05-08 Tom Tromey <tom@tromey.com>
9598 * objfiles.c (objfile_pspace_info): Add destructor and
9600 (objfiles_pspace_data): Change type.
9601 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9602 (get_objfile_pspace_data): Update.
9603 (objfiles_bfd_data): Change type.
9604 (get_objfile_bfd_data): Update.
9605 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9607 2019-05-08 Tom Tromey <tom@tromey.com>
9609 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9611 (get_catch_syscall_inferior_data): Update.
9612 (catch_syscall_inferior_data_cleanup): Remove.
9613 (_initialize_break_catch_syscall): Update.
9615 2019-05-08 Tom Tromey <tom@tromey.com>
9617 * inflow.c (struct terminal_info): Add destructor and
9619 (inflow_inferior_data): Change type.
9620 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9621 (get_inflow_inferior_data, inflow_inferior_exit)
9622 (swap_terminal_info, _initialize_inflow): Update.
9624 2019-05-08 Tom Tromey <tom@tromey.com>
9626 * target-dcache.c (target_dcache_cleanup): Remove.
9627 (target_dcache_aspace_key): Change type.
9628 (target_dcache_init_p, target_dcache_invalidate)
9629 (target_dcache_get, target_dcache_get_or_init)
9630 (_initialize_target_dcache): Update.
9631 * dcache.h (struct dcache_deleter): New.
9633 2019-05-08 Tom Tromey <tom@tromey.com>
9635 * symtab.c (struct symbol_cache): Add destructor and
9637 (symbol_cache_key): Move. Change type.
9638 (make_symbol_cache, free_symbol_cache): Remove.
9639 (get_symbol_cache): Update.
9640 (symbol_cache_cleanup): Remove.
9641 (ALL_PSPACES, symbol_cache_flush)
9642 (maintenance_print_symbol_cache)
9643 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9646 2019-05-08 Tom Tromey <tom@tromey.com>
9648 * symtab.c (struct main_info): Add destructor and initializers.
9649 (main_progspace_key): Move. Change type.
9650 (get_main_info): Update.
9651 (main_info_cleanup): Remove.
9652 (_initialize_symtab): Update.
9654 2019-05-08 Tom Tromey <tom@tromey.com>
9656 * registry.h (DECLARE_REGISTRY): Define the _key class.
9658 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9660 * NEWS: Merge two 'New commands' sections.
9662 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9664 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9665 parameter and use Ada language definition instead.
9666 (ada_val_print_ptr): Remove unused language parameter.
9667 (ada_val_print_num): Remove language parameter and use Ada language
9669 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9671 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9672 parameter and use Ada language definition instead.
9673 (ada_val_print_1): Update all ada_val_print_xxx calls.
9674 Remove language parameter.
9675 (ada_val_print): Update ada_val_print_1 call.
9677 2019-05-08 Tom Tromey <tromey@adacore.com>
9679 * remote.c (remote_hw_watchpoint_limit)
9680 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9683 2019-05-08 Tom Tromey <tromey@adacore.com>
9685 * maint.c (_initialize_maint_cmds): Move initialization code to
9687 (watchdog, show_watchdog): Move to remote.c.
9688 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9690 (_initialize_remote): Move initialization code from maint.c.
9691 * defs.h (watchdog): Don't declare.
9693 2019-05-08 Tom Tromey <tromey@adacore.com>
9695 * tui/tui-interp.c: Include main.h.
9696 * interps.c: Include main.h.
9697 * main.h (interpreter_p): Declare.
9698 * defs.h (interpreter_p): Don't declare.
9700 2019-05-08 Tom Tromey <tromey@adacore.com>
9702 * dwarf2loc.c: Include dwarf2read.h.
9703 * defs.h (read_unsigned_leb128): Don't declare.
9704 * dwarf2read.h (read_unsigned_leb128): Declare.
9706 2019-05-08 Tom Tromey <tromey@adacore.com>
9708 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9711 2019-05-08 Tom Tromey <tromey@adacore.com>
9713 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9714 when no wrap column is set.
9716 2019-05-08 Tom Tromey <tromey@adacore.com>
9718 * c-lang.c (c_get_string): Handle non-C-style arrays.
9720 2019-05-08 Tom Tromey <tromey@adacore.com>
9722 * typeprint.c (print_offset_data::update): Print the bit offset,
9723 not the number of bits remaining.
9725 2019-05-08 Tom Tromey <tromey@adacore.com>
9727 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9728 padding at end of comment.
9730 2019-05-08 Tom Tromey <tromey@adacore.com>
9732 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9735 2019-05-06 Tom Tromey <tom@tromey.com>
9737 * common/scoped_mmap.c: Include common-defs.h.
9738 * common/scoped_mmap.h: Don't include config.h.
9740 2019-05-04 Tom Tromey <tom@tromey.com>
9742 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9743 (struct aarch64_call_info): Add initializers.
9744 <si>: Now a std::vector.
9745 (pass_on_stack, aarch64_push_dummy_call): Update.
9747 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9748 Tom Tromey <tom@tromey.com>
9750 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9751 (ppc_threads): Now a std::vector. Now static.
9752 (hwdebug_find_thread_points_by_tid)
9753 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9756 2019-05-04 Tom Tromey <tom@tromey.com>
9758 * arc-tdep.c (arc_tdesc_init): Return bool.
9760 2019-05-04 Tom Tromey <tom@tromey.com>
9762 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9763 Use gdb_assert_not_reached.
9765 2019-05-04 Tom Tromey <tom@tromey.com>
9767 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9770 2019-05-04 Tom Tromey <tom@tromey.com>
9772 * arc-tdep.c (arc_tdesc_init): Use bool.
9774 2019-05-04 Tom Tromey <tom@tromey.com>
9776 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9778 2019-05-04 Tom Tromey <tom@tromey.com>
9780 * cli/cli-cmds.c (valid_command_p): Return bool.
9782 2019-05-04 Tom Tromey <tom@tromey.com>
9784 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9785 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9787 2019-05-04 Raul Tambre <raul@tambre.ee>
9789 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9790 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9791 operator for comparison.
9793 2019-05-04 Tom Tromey <tom@tromey.com>
9795 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9796 (lookup_partial_symbol, print_partial_symbols)
9797 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9798 (psymbol_compare): Update.
9799 (add_psymbol_to_bcache): Clear the entire psymbol.
9800 (maintenance_check_psymtabs): Update.
9801 * psympriv.h (struct partial_symbol): Don't derive from
9802 general_symbol_info.
9803 <obj_section, unrelocated_address, address,
9804 set_unrelocated_address>: Update.
9805 <ginfo>: New member.
9806 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9807 (debug_names::write_psymbols): Update.
9809 2019-05-04 Tom de Vries <tdevries@suse.de>
9811 * contrib/cc-with-tweaks.sh: Support -n arg.
9813 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9815 * corelow.c (core_target::detach): Ensure frame cache and
9816 register caches are cleared.
9817 inferior.c (exit_inferior_1): Likewise.
9819 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9820 Tom Tromey <tom@tromey.com>
9822 * dictionary.c (collate_pending_symbols_by_language): Remove
9823 "struct" from foreach.
9824 * symtab.c (lookup_global_symbol_from_objfile)
9825 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9827 * ser-tcp.c (net_open): Remove "struct" from foreach.
9828 * objfiles.c (objfile_relocate, objfile_rebase)
9829 (objfile_has_symbols): Remove "struct" from foreach.
9830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9832 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9834 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9835 "struct" from foreach.
9836 * ada-lang.c (create_excep_cond_exprs)
9837 (ada_exception_catchpoint_cond_string): Remove "struct" from
9840 2019-05-03 Tom Tromey <tromey@adacore.com>
9842 * ada-exp.y (convert_char_literal): Check suffix of each
9845 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9848 * ada-exp.y (yywrap): Don't define.
9849 * ada-lex.l (%option): Add noyywrap
9852 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9854 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9855 _WIN32_WINNT to the XP level, unless already defined to a higher
9858 * unittests/parse-connection-spec-selftests.c:
9860 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9863 * symfile.c (find_separate_debug_file): Remove colon from the
9864 drive spec of DOS/Windows file names of the target, so that the
9865 file name produced from DEBUGDIR and the target's directory will
9866 be valid on DOS/Windows systems.
9868 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9870 * rust-lang.c (val_print_struct): Handle printing structures
9873 2019-05-02 Tom Tromey <tromey@adacore.com>
9875 * valarith.c (_initialize_valarith): Remove.
9877 2019-05-01 Tom Tromey <tromey@adacore.com>
9879 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9882 2019-05-01 Tom Tromey <tromey@adacore.com>
9884 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9885 for big-endian copies.
9887 2019-04-30 Ali Tamur <tamur@google.com>
9888 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9889 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9890 (read_3_bytes): New function.
9892 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9894 * windows-nat.c (main_thread_id): Delete.
9895 (handle_output_debug_string): Replace main_thread_id by
9896 current_event.dwThreadId.
9897 (fake_create_process): Likewise.
9898 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9899 Do not set main_thread_id.
9900 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9901 current_event.dwThreadId.
9902 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9904 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9906 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9907 Use current_event.dwThreadId instead of main_thread_id.
9909 2019-04-30 Tom Tromey <tromey@adacore.com>
9911 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9912 (create_excep_cond_exprs): Iterate over program spaces.
9913 (ada_exception_catchpoint_cond_string): Examine all minimal
9914 symbols for exception types.
9916 2019-04-30 Tom Tromey <tromey@adacore.com>
9919 * dwarf2read.c (process_structure_scope): Handle case where type
9920 has template parameters but no symbol was created.
9922 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9923 Chris January <chris.january@arm.com>
9925 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9927 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9929 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9931 * f-typeprint.c (f_print_type): Update rules for printing
9933 (f_type_print_varspec_suffix): Likewise.
9935 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9936 Chris January <chris.january@arm.com>
9938 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9941 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9943 * f-lang.c (build_fortran_types): Change name of void type to
9945 * f-typeprint.c (f_type_print_base): Print the name of the void
9946 type, rather than a fixed string.
9947 * f-valprint.c (f_decorations): Use lower case void string.
9949 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9950 Chris January <chris.january@arm.com>
9952 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9955 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9956 Chris January <chris.january@arm.com>
9957 David Lecomber <david.lecomber@arm.com>
9959 * f-exp.y (BINOP_INTRINSIC): New token.
9960 (exp): New parser rule handling BINOP_INTRINSIC.
9961 (f77_keywords): Add new builtin procedures.
9962 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9963 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9964 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9965 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9966 (print_unop_subexp_f): New function.
9967 (print_binop_subexp_f): New function.
9968 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9969 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9970 (dump_subexp_body_f): Likewise.
9971 (operator_check_f): Likewise.
9972 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9973 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9975 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9977 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9979 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9980 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9981 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9982 (operator_length_f): New fuction.
9983 (print_subexp_f): New function.
9984 (op_name_f): New function.
9985 (dump_subexp_body_f): New function.
9986 (operator_check_f): New function.
9987 (exp_descriptor_f): Replace standard expression handling functions
9989 * gdb/fortran-operator.def: New file.
9990 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9991 * gdb/std-operator.def: Remove UNOP_KIND.
9993 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9995 * std-operator.def: Remove unbalanced, stray double quote
9998 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9999 Chris January <chris.january@arm.com>
10000 Daniel Everett <daniel.everett@arm.com>
10001 Nick Forrington <nick.forrington@arm.com>
10002 Richard Bunt <richard.bunt@arm.com>
10004 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10005 of depth when printing anonymous structs or unions.
10006 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10007 Don't print either the top-level value, or the children if the
10008 max-depth is exceeded.
10009 (ppscm_print_children): When printing the key of a map, allow one
10010 extra level of depth.
10011 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10012 print either the top-level value, or the children if the max-depth
10014 (print_children): When printing the key of a map, allow one extra
10016 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10017 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10018 (user_print_options): Initialise max_depth field.
10019 (val_print_scalar_or_string_type_p): New function.
10020 (val_print): Check to see if the max depth has been reached.
10021 (val_print_check_max_depth): Define new function.
10022 (show_print_max_depth): New function.
10023 (_initialize_valprint): Add 'print max-depth' option.
10024 * valprint.h (struct value_print_options) <max_depth>: New field.
10025 (val_print_check_max_depth): Declare new function.
10026 * NEWS: Document new feature.
10028 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10030 * ada-lang.c (ada_language_defn): Initialise new field.
10031 * c-lang.c (c_is_string_type_p): New function.
10032 (c_language_defn): Initialise new field.
10033 (cplus_language_defn): Initialise new field.
10034 (asm_language_defn): Initialise new field.
10035 (minimal_language_defn): Initialise new field.
10036 * c-lang.h (c_is_string_type_p): Declare new function.
10037 * d-lang.c (d_language_defn): Initialise new field.
10038 * f-lang.c (f_is_string_type_p): New function.
10039 (f_language_defn): Initialise new field.
10040 * go-lang.c (go_is_string_type_p): New function.
10041 (go_language_defn): Initialise new field.
10042 * language.c (default_is_string_type_p): New function.
10043 (unknown_language_defn): Initialise new field.
10044 (auto_language_defn): Initialise new field.
10045 * language.h (struct language_defn) <la_is_string_type_p>: New
10047 (default_is_string_type_p): Declare new function.
10048 * m2-lang.c (m2_language_defn): Initialise new field.
10049 * objc-lang.c (objc_language_defn): Initialise new field.
10050 * opencl-lang.c (opencl_language_defn): Initialise new field.
10051 * p-lang.c (pascal_is_string_type_p): New function.
10052 (pascal_language_defn): Initialise new field.
10053 * rust-lang.c (rust_is_string_type_p): New function.
10054 (rust_language_defn): Initialise new field.
10056 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10058 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10060 * ada-lang.c (ada_language_defn): Initialise new field.
10061 * c-lang.c (c_language_defn): Likewise.
10062 (cplus_language_defn): Likewise.
10063 (asm_language_defn): Likewise.
10064 (minimal_language_defn): Likewise.
10065 * d-lang.c (d_language_defn): Likewise.
10066 * f-lang.c (f_language_defn): Likewise.
10067 * go-lang.c (go_language_defn): Likewise.
10068 * language.c (unknown_language_defn): Likewise.
10069 (auto_language_defn): Likewise.
10070 * m2-lang.c (m2_language_defn): Likewise.
10071 * objc-lang.c (objc_language_defn): Likewise.
10072 * opencl-lang.c (opencl_language_defn): Likewise.
10073 * p-lang.c (pascal_language_defn): Likewise.
10074 * rust-lang.c (rust_language_defn): Likewise.
10076 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10078 * ada-lang.c (ada_is_character_type): Change return type to bool.
10079 (ada_is_string_type): Likewise.
10080 * ada-lang.h (ada_is_character_type): Update declaration
10081 (ada_is_string_type): Likewise.
10083 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10085 Support style in 'frame|thread apply'
10087 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10088 * record.c (record_start, record_stop): Update callers of
10089 execute_command_to_string with false.
10090 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10091 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10093 (class string_file): New constructor with term_out parameter.
10094 Override methods term_out and can_emit_style_escape. New member
10096 (class stdio_file): Override can_emit_style_escape.
10097 (class tee_file): Override term_out and can_emit_style_escape.
10098 * utils.h (can_emit_style_escape): Remove.
10099 * utils.c (can_emit_style_escape): Likewise.
10100 Update all callers of can_emit_style_escape (SOMESTREAM) to
10101 SOMESTREAM->can_emit_style_escape.
10102 * source-cache.c (source_cache::get_source_lines): Likewise.
10103 * stack.c (frame_apply_command_count): Call execute_command_to_string
10104 passing the term_out characteristic of the current gdb_stdout.
10105 * thread.c (thr_try_catch_cmd): Likewise.
10106 * top.c (execute_command_to_string): pass term_out parameter
10107 to construct the string_file for the command output.
10108 * ui-file.c (term_cli_styling): New function (most code moved
10109 from utils.c can_emit_style_escape).
10110 (string_file::string_file, string_file::can_emit_style_escape,
10111 stdio_file::can_emit_style_escape, tee_file::term_out,
10112 tee_file::can_emit_style_escape): New functions.
10114 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10116 * NEWS: Mention the new set|show may-call-functions.
10117 * infcall.c (may_call_functions_p): New variable.
10118 (show_may_call_functions_p): New function.
10119 (call_function_by_hand_dummy): Throws an error if not
10120 may-call-functions.
10121 (_initialize_infcall): Call add_setshow_boolean_cmd for
10122 may-call-functions.
10124 2019-04-25 Keith Seitz <keiths@redhat.com>
10127 * cp-support.c (inspect_type): Don't attempt substitutions
10128 of symbol with the same name.
10130 2019-04-25 Tom Tromey <tromey@adacore.com>
10133 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10136 2019-04-25 Tom Tromey <tromey@adacore.com>
10138 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10140 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10141 (gdb_xml_parser::parse): Use std::move.
10142 * python/python-internal.h (gdbpy_convert_exception): Take a const
10144 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10146 * python/py-utils.c (gdbpy_convert_exception): Take a const
10148 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10150 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10152 * mi/mi-main.c (mi_print_exception): Take a const reference.
10153 * main.c (handle_command_errors): Take a const reference.
10154 * linespec.c (parse_linespec): Use std::move.
10155 * infcall.c (run_inferior_call): Use std::move.
10156 (call_function_by_hand_dummy): Use std::move.
10157 * exec.c (try_open_exec_file): Use std::move.
10158 * exceptions.h (exception_print, exception_fprintf)
10159 (exception_print_same): Update.
10160 * exceptions.c (print_exception, exception_print)
10161 (exception_fprintf, exception_print_same): Change parameters to
10163 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10164 * common/new-op.c: Use std::move.
10165 * common/common-exceptions.h (struct gdb_exception): Add move
10167 (struct gdb_exception_error, struct gdb_exception_quit, struct
10168 gdb_quit_bad_alloc): Change constructor to move constructor.
10169 (throw_exception): Change parameter to rvalue reference.
10170 * common/common-exceptions.c (throw_exception): Take rvalue
10172 * cli/cli-interp.c (safe_execute_command): Use std::move.
10173 * breakpoint.c (insert_bp_location, location_to_sals): Use
10176 2019-04-25 Tom Tromey <tromey@adacore.com>
10178 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10179 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10180 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10181 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10182 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10183 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10184 guile/scm-value.c: Use unpack.
10185 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10186 gdbscm_gdb_exception.
10187 (gdbscm_throw_gdb_exception): Likewise.
10188 (struct gdbscm_gdb_exception): New.
10189 (unpack): New function.
10190 (gdbscm_wrap): Use unpack.
10192 2019-04-25 Tom Tromey <tromey@adacore.com>
10194 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10195 (gdb_rl_callback_handler): Use std::move.
10196 * common/common-exceptions.h (struct gdb_exception): Add move
10197 assignment operator.
10198 (throw_exception_sjlj): Change "exception" to const reference.
10199 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10200 (throw_exception_sjlj): Change "exception" to const reference.
10202 2019-04-25 Tom Tromey <tromey@adacore.com>
10204 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10205 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10206 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10208 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10210 * mi/mi-interp.c (mi_interp::exec): Update.
10211 * linespec.c (parse_linespec): Update.
10212 * infcall.c (run_inferior_call): Update.
10213 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10214 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10215 (gdbscm_lookup_global_symbol): Update.
10216 * guile/scm-param.c (gdbscm_parameter_value): Update.
10217 * guile/scm-frame.c (gdbscm_frame_read_register)
10218 (gdbscm_frame_read_var): Update.
10219 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10220 * exec.c (try_open_exec_file): Update.
10221 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10222 (gdb_rl_callback_handler): Update.
10223 * common/common-exceptions.h (exception_none): Don't declare.
10224 * common/common-exceptions.c (exception_none): Don't define.
10225 (struct catcher) <exception>: Update.
10226 * cli/cli-interp.c (safe_execute_command): Update.
10227 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10229 2019-04-25 Ali Tamur <tamur@google.com>
10231 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10232 (read_attribute_value): Likewise.
10233 (dwarf2_read_addr_index): Update comment.
10234 (read_str_index): Add DW_FORM_strx.
10235 (dwarf2_string_attr): Likewise.
10236 (dwarf2_const_value_attr): Likewise.
10237 (dump_die_shallow): Likewise.
10238 (dwarf2_fetch_constant_bytes): Likewise.
10239 (skip_form_bytes): Likewise.
10240 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10242 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10246 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10247 OFFSET. Verify if current mapping contains an ELF header.
10248 (linux_find_memory_regions_full): Adjust call to
10251 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10252 Kang Li <kanglictf@gmail.com>
10256 * dwarf2-frame.c (read_initial_length): Be consistent about using
10257 unsigned representation of length.
10258 (decode_frame_entry_1): Likewise. Check for wraparound of
10259 end pointer as well as buffer overflow.
10261 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10263 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10266 2019-04-24 Tom Tromey <tromey@adacore.com>
10268 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10270 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10272 * s12z-tdep.c (s12z_unwind_pc): Delete.
10273 (s12z_unwind_sp): Delete.
10274 (s12z_gdbarch_init): Don't register deleted functions with
10277 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10279 * rl78-tdep.c (rl78_unwind_sp): Delete.
10280 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10282 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10284 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10285 (xstormy16_unwind_pc): Delete.
10286 (xstormy16_dummy_id): Delete.
10287 (xstormy16_gdbarch_init): Don't register deleted functions with
10290 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10292 * vax-tdep.c (vax_unwind_pc): Delete.
10293 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10297 * v850-tdep.c (v850_unwind_sp): Delete.
10298 (v850_unwind_pc): Delete.
10299 (v850_dummy_id): Delete.
10300 (v850_gdbarch_init): Don't register deleted functions with
10303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10305 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10306 (tilegx_unwind_pc): Delete.
10307 (tilegx_unwind_dummy_id): Delete.
10308 (tilegx_gdbarch_init): Don't register deleted functions with
10311 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10313 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10314 (tic6x_dummy_id): Delete.
10315 (tic6x_gdbarch_init): Don't register deleted functions with
10318 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10320 * sparc-tdep.c (sparc_unwind_pc): Delete.
10321 (sparc32_gdbarch_init): Don't register deleted function with
10324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10326 * sh-tdep.c (sh_unwind_sp): Delete.
10327 (sh_unwind_pc): Delete.
10328 (sh_dummy_id): Delete.
10329 (sh_gdbarch_init): Don't register deleted functions with
10332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10334 * score-tdep.c (score_unwind_sp): Delete.
10335 (score_unwind_pc): Delete.
10336 (score_dummy_id): Delete.
10337 (score_gdbarch_init): Don't register deleted functions with
10340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10342 * rx-tdep.c (rx_unwind_pc): Delete.
10343 (rx_unwind_sp): Delete.
10344 (rx_dummy_id): Delete.
10345 (rx_gdbarch_init): Don't register deleted functions with
10346 gdbarch. Update comment.
10348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10350 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10351 (rs6000_dummy_id): Delete.
10352 (rs6000_gdbarch_init): Don't register deleted functions with
10355 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10357 * or1k-tdep.c (or1k_dummy_id): Delete.
10358 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10360 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10362 * nios2-tdep.c (nios2_dummy_id): Delete.
10363 (nios2_unwind_sp): Delete.
10364 (nios2_gdbarch_init): Don't register deleted functions with
10367 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10369 * nds32-tdep.c (nds32_dummy_id): Delete.
10370 (nds32_unwind_pc): Delete.
10371 (nds32_unwind_sp): Delete.
10372 (nds32_gdbarch_init): Don't register deleted functions with
10375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10377 * msp430-tdep.c (msp430_unwind_pc): Delete.
10378 (msp430_unwind_sp): Delete.
10379 (msp430_dummy_id): Delete.
10380 (msp430_gdbarch_init): Don't register deleted functions with
10383 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10385 * moxie-tdep.c (moxie_unwind_sp): Delete.
10386 (moxie_unwind_pc): Delete.
10387 (moxie_dummy_id): Delete.
10388 (moxie_gdbarch_init): Don't register deleted functions with
10391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10393 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10394 (mn10300_unwind_pc): Delete.
10395 (mn10300_unwind_sp): Delete.
10396 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10398 (mn10300_frame_unwind_init): Don't register deleted functions with
10401 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10403 * mep-tdep.c (mep_unwind_pc): Delete.
10404 (mep_unwind_sp): Delete.
10405 (mep_dummy_id): Delete.
10406 (mep_gdbarch_init): Don't register deleted functions with
10409 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10411 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10412 (m68hc11_unwind_sp): Delete.
10413 (m68hc11_gdbarch_init): Don't register deleted functions with
10416 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10418 * m32r-tdep.c (m32r_unwind_sp): Delete.
10419 (m32r_unwind_pc): Delete.
10420 (m32r_dummy_id): Delete.
10421 (m32r_gdbarch_init): Don't register deleted functions with
10424 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10426 * m32c-tdep.c (m32c_unwind_pc): Delete.
10427 (m32c_unwind_sp): Delete.
10428 (m32c_dummy_id): Delete.
10429 (m32c_gdbarch_init): Don't register deleted functions with
10432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10434 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10435 (lm32_unwind_pc): Delete.
10436 (lm32_dummy_id): Delete.
10437 (lm32_gdbarch_init): Don't register deleted functions with
10440 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10442 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10443 (iq2000_unwind_pc): Delete.
10444 (iq2000_dummy_id): Delete.
10445 (iq2000_gdbarch_init): Don't register deleted functions with
10448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10450 * nds32-tdep.c (nds32_type_align): Delete.
10451 (nds32_push_dummy_call): Use type_align instead.
10453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * arm-tdep.c (arm_type_align): Only handle vector override case.
10456 (arm_push_dummy_call): Use type_align.
10457 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10459 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10461 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10463 (pass_on_stack): Use type_align.
10464 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10467 2019-04-23 Tom Tromey <tromey@adacore.com>
10469 * dwarf2read.c (line_header::file_name_at): Remove unused
10472 2019-04-23 Tom de Vries <tdevries@suse.de>
10475 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10479 2019-03-27 Ali Tamur <tamur@google.com>
10481 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10482 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10483 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10484 (dwarf_expr_context::get_addr_index): Likewise
10485 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10486 (symbol_needs_eval_context::get_addr_index): Likewise
10487 (disassemble_dwarf_expression): Add DW_OP_addrx
10488 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10489 (read_cutu_die_from_dwo): Update comment
10490 (skip_one_die): Add DW_FORM_addrx
10491 (read_attribute_value): Likewise
10492 (var_decode_location): Add DW_OP_addrx
10493 (dwarf2_const_value_attr): Add DW_FORM_addrx
10494 (dump_die_shallow): Likewise
10495 (dwarf2_fetch_constant_bytes): Likewise
10496 (decode_locdesc): Add DW_OP_addrx
10497 (skip_form_bytes): Add DW_FORM_addrx
10499 2019-04-22 Ali Tamur <tamur@google.com>
10501 * MAINTAINERS (Write After Approval): Add self.
10503 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10505 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10506 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10507 (open_symbol_file_object): Likewise.
10508 (svr4_default_sos): Add info parameter.
10509 (svr4_read_so_list): Likewise.
10510 (svr4_current_sos_direct): Adjust functions calls to pass down
10512 (svr4_current_sos_1): Add info parameter.
10513 (svr4_current_sos): Call get_svr4_info, pass info down to
10514 svr4_current_sos_1.
10515 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10517 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10519 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10521 (probes_table_remove_objfile_probes): Likewise.
10522 (register_solib_event_probe): Add info parameter.
10523 (solist_update_incremental): Pass info parameter down to
10525 (disable_probes_interface): Add info parameter.
10526 (svr4_handle_solib_event): Pass current_program_space to
10527 get_svr4_info. Adjust disable_probes_interface cleanup.
10528 (svr4_create_probe_breakpoints): Add info parameter, pass it
10529 down to register_solib_event_probe.
10530 (svr4_create_solib_event_breakpoints): Add info parameter,
10531 pass it down to svr4_create_probe_breakpoints.
10532 (enable_break): Pass info down to
10533 svr4_create_solib_event_breakpoints.
10534 (svr4_solib_create_inferior_hook): Pass current_program_space to
10536 (svr4_clear_solib): Likewise.
10538 2019-04-22 Pedro Alves <palves@redhat.com>
10540 * solib-svr4.c (svr4_free_objfile_observer): New.
10541 (probe_and_action::objfile): New field.
10542 (probes_table_htab_remove_objfile_probes)
10543 (probes_table_remove_objfile_probes): New functions.
10544 (register_solib_event_probe): Add 'objfile' parameter. Store it
10545 in the new probe_and_action. Don't store the probe in 'lookup'.
10546 (svr4_create_probe_breakpoints): Pass objfile to
10547 register_solib_event_probe.
10548 (_initialize_svr4_solib): Register a free_objfile observer.
10550 2019-04-19 Tom Tromey <tom@tromey.com>
10552 * common/queue.h: Remove.
10554 2019-04-19 Tom Tromey <tom@tromey.com>
10556 * event-loop.c: Don't include "common/queue.h".
10558 2019-04-19 Tom Tromey <tom@tromey.com>
10560 * remote.c (remote_target): Use delete.
10561 * remote-notif.h: Include <list>, not "common/queue.h".
10562 (notif_client_p): Remove typedef.
10563 (remote_notif_state): Add constructor, destructor, initializer.
10564 <notif_queue>: Now a std::list.
10565 (remote_notif_state_xfree): Don't declare.
10566 * remote-notif.c (remote_notif_process, handle_notification)
10567 (remote_notif_state_allocate): Update.
10568 (~remote_notif_state): Rename from remote_notif_state_xfree.
10570 2019-04-19 Tom Tromey <tom@tromey.com>
10572 * symfile.c (reread_symbols): Update.
10573 * objfiles.c (objfile_register_static_link)
10574 (objfile_lookup_static_link): Update
10575 (~objfile) Don't delete static_links.
10576 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10578 2019-04-19 Tom Tromey <tom@tromey.com>
10580 * type-stack.h (struct type_stack) <insert>: Constify string.
10581 * type-stack.c (type_stack::insert): Constify string.
10582 * gdbtypes.h (lookup_template_type): Update.
10583 (address_space_name_to_int): Update.
10584 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10586 (lookup_template_type): Make name const.
10587 * c-exp.y: Update rules.
10588 (lex_one_token, classify_name, classify_inner_name)
10589 (c_print_token): Update.
10590 * p-exp.y: Update rules.
10592 * f-exp.y: Update rules.
10594 * d-exp.y: Update rules.
10595 (lex_one_token, classify_name, classify_inner_name): Update.
10596 * parse.c (write_dollar_variable, copy_name): Return std::string.
10597 * parser-defs.h (copy_name): Change return type.
10598 * m2-exp.y: Update rules.
10600 * go-exp.y (lex_one_token): Update.
10602 (classify_unsafe_function, classify_packaged_name)
10603 (classify_name, yylex): Update.
10605 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10607 * configure.ac: add --enable-source-highlight switch.
10608 * configure: Regenerate.
10609 * top.c (print_gdb_version): plumb --enable-source-highlight
10610 status to "show configuration".
10612 2019-04-19 Tom Tromey <tromey@adacore.com>
10614 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10616 (empty_record, ada_template_to_fixed_record_type_1)
10617 (template_to_static_fixed_type)
10618 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10619 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10620 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10623 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10626 * source.c (print_source_lines_base): Advance "iter" when a
10627 control character is seen.
10629 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10631 * inferior.h (struct infcall_suspend_state_deleter):
10632 Catch exception in destructor to avoid crash.
10634 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10636 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10637 close to the add_com "shell".
10639 2019-04-18 Tom Tromey <tromey@adacore.com>
10641 * process-stratum-target.h (class process_stratum_target)
10642 <stratum>: Add "final".
10644 2019-04-17 Tom Tromey <tromey@adacore.com>
10646 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10647 against nullptr before use.
10649 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10651 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10653 2019-04-17 Jim Wilson <jimw@sifive.com>
10654 Andrew Burgess <andrew.burgess@embecosm.com>
10656 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10657 code read might fail, assume 4-byte breakpoint in that case.
10659 2019-04-15 Leszek Swirski <leszeks@google.com>
10661 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10662 rather than a hand-rolled POD check when checking for forced MEMORY
10665 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10667 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10668 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10670 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10671 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10672 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10675 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10677 * aarch64-linux-nat.c
10678 (aarch64_linux_nat_target::thread_architecture): Add override.
10679 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10682 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10684 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10686 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10688 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10689 target types of size 96-bits, add some additional comments, and
10690 check that the builtin type we found was the correct size.
10692 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10694 * utils.c (prompt_for_continue): Don't restore the styling at the
10695 end, as applied_style has the wrong value. This fixes styling in
10696 long lists of file names that are interrupted by the "Continue?"
10699 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10701 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10702 * c-lang.c (c_language_defn): Likewise.
10703 (cplus_language_defn): Likewise.
10704 (asm_language_defn): Likewise.
10705 (minimal_language_defn): Likewise.
10706 * d-lang.c (d_language_defn): Likewise.
10707 * f-lang.c (f_language_defn): Likewise.
10708 * go-lang.c (go_language_defn): Likewise.
10709 * language.c (unknown_language_defn): Likewise.
10710 (auto_language_defn): Likewise.
10711 * language.h (struct language_defn): Remove la_magic field.
10712 (LANG_MAGIC): Delete.
10713 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10714 * objc-lang.c (objc_language_defn): Likewise.
10715 * opencl-lang.c (opencl_language_defn): Likewise.
10716 * p-lang.c (pascal_language_defn): Likewise.
10717 * rust-lang.c (rust_language_defn): Likewise.
10719 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10721 * riscv-tdep.c (riscv_type_align): New function.
10722 (riscv_type_alignment): Delete.
10723 (riscv_arg_location): Use 'type_align'.
10724 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10726 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10728 * gdbtypes.c (type_align): A struct with no non-static fields also
10729 has alignment of 1.
10731 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10733 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10735 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10737 (riscv_struct_info::analyse): New implementation using new
10738 analyse_inner member function.
10739 (riscv_struct_info::field_offset): New member function.
10740 (riscv_struct_info::m_offsets): New member variable.
10741 (riscv_struct_info::analyse_inner): New private member function,
10742 takes the old implementation of riscv_struct_info::analyse but
10743 extended to track field offsets.
10744 (riscv_call_arg_struct): Update the struct folding special cases
10745 to handle cases where empty C++ structs, which are non-zero
10747 (riscv_arg_location): Initialise the length of each location, a
10748 non-zero length now indicates the location is in use.
10749 (riscv_push_dummy_call): Allow for the first location having a
10750 non-zero offset when setting up arguments.
10751 (riscv_return_value): Likewise, but for return values.
10753 2019-04-11 Tom Tromey <tromey@adacore.com>
10755 * utils.c (internal_vproblem): Make "msg" const.
10757 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10759 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10760 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10761 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10762 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10764 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10766 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10768 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10769 of amd64_collect_native_gregset.
10770 (amd64_linux_nat_target::store_registers): Likewise.
10772 2019-04-10 Tom Tromey <tom@tromey.com>
10774 * symtab.c (lookup_global_symbol_from_objfile)
10775 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10776 * objfiles.h (class separate_debug_iterator): New.
10777 (class separate_debug_range): New.
10778 (struct objfile) <separate_debug_objfiles>: New method.
10779 (objfile_separate_debug_iterate): Don't declare.
10780 * objfiles.c (separate_debug_iterator::operator++): Rename from
10781 objfile_separate_debug_iterate.
10782 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10784 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10787 2019-04-10 Tom Tromey <tom@tromey.com>
10789 * symfile.c (reread_symbols): Remove old comment.
10790 * objfiles.c (free_all_objfiles): Fix a typo.
10792 2019-04-10 Tom Tromey <tom@tromey.com>
10794 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10795 * minsyms.c (lookup_minimal_symbol): Use foreach.
10796 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10797 (lookup_minimal_symbol_solib_trampoline): Likewise.
10798 * symfile.c (reread_symbols): Use foreach.
10800 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10801 Tom Tromey <tromey@adacore.com>
10804 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10805 (rust_lex_int_test): Change "value" to be LONGEST.
10806 (rust_lex_tests): Add test for long integer literal.
10808 2019-04-09 Tom Tromey <tromey@adacore.com>
10810 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10812 (extended_remote_target::attach): Update.
10813 (remote_target::remote_notice_new_inferior): Update.
10814 (remote_target::add_current_inferior_and_thread): Update.
10815 * inferior.c (exit_inferior_1): Use "false".
10816 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10818 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10820 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10821 the "start" command.
10823 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10825 * python/py-inferior.c (infpy_thread_from_thread_handle):
10826 Adjust comments to reflect renaming of thread_from_thread_handle
10827 to thread_from_handle. Adjust keywords. Fix type error message.
10828 (inferior_object_methods): Add thread_from_handle. Retain
10829 thread_from_thread_handle, but mark it as deprecated.
10831 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10833 * gdbthread.h (find_thread_by_handle): Revise declaration.
10834 * thread.c (find_thread_by_handle): Likewise. Adjust
10835 implementation too.
10836 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10837 support for buffer objects as handles.
10839 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10841 * python/py-infthread.c (thpy_thread_handle): New function.
10842 (thread_object_methods): Register thpy_thread_handle.
10844 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10846 * gdbthread.h (thread_to_thread_handle): Declare.
10847 * thread.c (gdbtypes.h): Include.
10848 (thread_to_thread_handle): New function.
10850 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10851 (target_thread_info_to_thread_handle): Declare.
10852 * target.c (target_thread_info_to_thread_handle): New function.
10853 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10854 * target-delegates.c: Regenerate.
10856 * linux-thread-db.c (class thread_db_target): Add method
10857 thread_info_to_thread_handle.
10858 (thread_db_target::thread_info_to_thread_handle): Define.
10859 * remote.c (class remote_target): Add new method
10860 thread_info_to_thread_handle.
10861 (remote_target::thread_info_to_thread_handle): Define.
10863 2019-04-08 Pedro Alves <palves@redhat.com>
10865 * common/common-exceptions.c (throw_exception): Don't create
10866 named object to throw; throw directly.
10867 (throw_it): Likewise. Don't initialize gdb_exception::message
10868 here, with new; pass FMT and AP to the ctor instead.
10869 * common/common-exceptions.h: Include <string>.
10870 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10871 const char *, va_list)): New ctor. Use std::make_shared.
10872 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10874 (gdb_exception_error::gdb_exception_error(enum errors, const char
10876 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10878 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10880 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10881 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10884 2019-04-08 Tom Tromey <tom@tromey.com>
10886 * valops.c (value_rtti_indirect_type): Replace throw_exception
10888 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10890 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10892 * target.c (target_translate_tls_address): Replace throw_exception
10894 * stack.c (frame_apply_command_count): Replace throw_exception
10896 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10898 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10900 * rs6000-tdep.c (rs6000_frame_cache)
10901 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10902 * remote.c: Replace throw_exception with throw.
10903 * record-full.c (record_full_message, record_full_wait_1)
10904 (record_full_restore): Replace throw_exception with throw.
10906 (get_thread_current_frame_id, record_btrace_start_replaying)
10907 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10908 (cmd_record_btrace_start): Replace throw_exception with throw.
10909 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10911 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10912 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10914 (find_linespec_symbols): Replace throw_exception with throw.
10915 * infrun.c (displaced_step_prepare, resume): Replace
10916 throw_exception with throw.
10917 * infcmd.c (post_create_inferior): Replace throw_exception with
10919 * inf-loop.c (inferior_event_handler): Replace throw_exception
10921 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10922 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10923 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10924 (get_prev_frame_always, get_frame_pc_if_available)
10925 (get_frame_address_in_block_if_available, get_frame_language):
10926 Replace throw_exception with throw.
10927 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10928 throw_exception with throw.
10929 * eval.c (fetch_subexp_value, evaluate_var_value)
10930 (evaluate_funcall, evaluate_subexp_standard): Replace
10931 throw_exception with throw.
10932 * dwarf2loc.c (call_site_find_chain)
10933 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10934 Replace throw_exception with throw.
10935 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10937 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10939 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10940 * completer.c (complete_line_internal): Replace throw_exception
10942 * compile/compile-object-run.c (compile_object_run): Replace
10943 throw_exception with throw.
10944 * cli/cli-script.c (process_next_line): Replace throw_exception
10946 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10947 (btrace_enable, btrace_maint_update_pt_packets): Replace
10948 throw_exception with throw.
10949 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10950 throw_exception with throw.
10951 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10952 throw_exception with throw.
10953 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10954 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10955 * aarch64-tdep.c (aarch64_make_prologue_cache)
10956 (aarch64_make_stub_cache): Replace throw_exception with throw.
10958 2019-04-08 Tom Tromey <tom@tromey.com>
10960 * common/common-exceptions.c (throw_exception): Rename from
10961 throw_exception_cxx. Remove old copy. Make argument const.
10962 (throw_it): Create and throw exception objects directly.
10963 * common/common-exceptions.h (throw_exception): Make argument
10965 (struct gdb_exception_error): Add constructor.
10966 (struct gdb_exception_quit): Add constructor.
10968 2019-04-08 Tom Tromey <tom@tromey.com>
10970 * common/common-exceptions.h (exception_rethrow): Don't declare.
10971 (TRY_SJLJ): Update comment.
10972 (TRY, CATCH, END_CATCH): Remove.
10973 * common/common-exceptions.c (exception_rethrow): Remove.
10975 2019-04-08 Tom Tromey <tom@tromey.com>
10977 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10979 (gdb_exception_error): Rename from
10980 gdb_exception_RETURN_MASK_ERROR.
10981 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10982 (gdb_quit_bad_alloc): Update.
10983 * aarch64-tdep.c: Update.
10984 * ada-lang.c: Update.
10985 * ada-typeprint.c: Update.
10986 * ada-valprint.c: Update.
10987 * amd64-tdep.c: Update.
10988 * arch-utils.c: Update.
10989 * break-catch-throw.c: Update.
10990 * breakpoint.c: Update.
10991 * btrace.c: Update.
10992 * c-varobj.c: Update.
10993 * cli/cli-cmds.c: Update.
10994 * cli/cli-interp.c: Update.
10995 * cli/cli-script.c: Update.
10996 * common/common-exceptions.c: Update.
10997 * common/new-op.c: Update.
10998 * common/selftest.c: Update.
10999 * compile/compile-c-symbols.c: Update.
11000 * compile/compile-cplus-symbols.c: Update.
11001 * compile/compile-object-load.c: Update.
11002 * compile/compile-object-run.c: Update.
11003 * completer.c: Update.
11004 * corelow.c: Update.
11005 * cp-abi.c: Update.
11006 * cp-support.c: Update.
11007 * cp-valprint.c: Update.
11008 * darwin-nat.c: Update.
11009 * disasm-selftests.c: Update.
11010 * dtrace-probe.c: Update.
11011 * dwarf-index-cache.c: Update.
11012 * dwarf-index-write.c: Update.
11013 * dwarf2-frame-tailcall.c: Update.
11014 * dwarf2-frame.c: Update.
11015 * dwarf2loc.c: Update.
11016 * dwarf2read.c: Update.
11018 * event-loop.c: Update.
11019 * event-top.c: Update.
11021 * f-valprint.c: Update.
11022 * fbsd-tdep.c: Update.
11023 * frame-unwind.c: Update.
11025 * gdbtypes.c: Update.
11026 * gnu-v3-abi.c: Update.
11027 * guile/guile-internal.h: Update.
11028 * guile/scm-block.c: Update.
11029 * guile/scm-breakpoint.c: Update.
11030 * guile/scm-cmd.c: Update.
11031 * guile/scm-disasm.c: Update.
11032 * guile/scm-frame.c: Update.
11033 * guile/scm-lazy-string.c: Update.
11034 * guile/scm-math.c: Update.
11035 * guile/scm-param.c: Update.
11036 * guile/scm-ports.c: Update.
11037 * guile/scm-pretty-print.c: Update.
11038 * guile/scm-symbol.c: Update.
11039 * guile/scm-symtab.c: Update.
11040 * guile/scm-type.c: Update.
11041 * guile/scm-value.c: Update.
11042 * i386-linux-tdep.c: Update.
11043 * i386-tdep.c: Update.
11044 * inf-loop.c: Update.
11045 * infcall.c: Update.
11046 * infcmd.c: Update.
11047 * infrun.c: Update.
11049 * language.c: Update.
11050 * linespec.c: Update.
11051 * linux-fork.c: Update.
11052 * linux-nat.c: Update.
11053 * linux-tdep.c: Update.
11054 * linux-thread-db.c: Update.
11056 * mi/mi-cmd-break.c: Update.
11057 * mi/mi-cmd-stack.c: Update.
11058 * mi/mi-interp.c: Update.
11059 * mi/mi-main.c: Update.
11060 * objc-lang.c: Update.
11061 * p-valprint.c: Update.
11063 * ppc-linux-tdep.c: Update.
11064 * printcmd.c: Update.
11065 * python/py-arch.c: Update.
11066 * python/py-breakpoint.c: Update.
11067 * python/py-cmd.c: Update.
11068 * python/py-finishbreakpoint.c: Update.
11069 * python/py-frame.c: Update.
11070 * python/py-framefilter.c: Update.
11071 * python/py-gdb-readline.c: Update.
11072 * python/py-inferior.c: Update.
11073 * python/py-infthread.c: Update.
11074 * python/py-lazy-string.c: Update.
11075 * python/py-linetable.c: Update.
11076 * python/py-objfile.c: Update.
11077 * python/py-param.c: Update.
11078 * python/py-prettyprint.c: Update.
11079 * python/py-progspace.c: Update.
11080 * python/py-record-btrace.c: Update.
11081 * python/py-record.c: Update.
11082 * python/py-symbol.c: Update.
11083 * python/py-type.c: Update.
11084 * python/py-unwind.c: Update.
11085 * python/py-utils.c: Update.
11086 * python/py-value.c: Update.
11087 * python/python.c: Update.
11088 * record-btrace.c: Update.
11089 * record-full.c: Update.
11090 * remote-fileio.c: Update.
11091 * remote.c: Update.
11092 * riscv-tdep.c: Update.
11093 * rs6000-aix-tdep.c: Update.
11094 * rs6000-tdep.c: Update.
11095 * rust-exp.y: Update.
11096 * rust-lang.c: Update.
11097 * s390-tdep.c: Update.
11098 * selftest-arch.c: Update.
11099 * solib-dsbt.c: Update.
11100 * solib-frv.c: Update.
11101 * solib-spu.c: Update.
11102 * solib-svr4.c: Update.
11104 * sparc64-linux-tdep.c: Update.
11106 * symfile-mem.c: Update.
11107 * symmisc.c: Update.
11108 * target.c: Update.
11109 * thread.c: Update.
11111 * tracefile-tfile.c: Update.
11112 * tui/tui.c: Update.
11113 * typeprint.c: Update.
11114 * unittests/cli-utils-selftests.c: Update.
11115 * unittests/parse-connection-spec-selftests.c: Update.
11116 * valops.c: Update.
11117 * valprint.c: Update.
11119 * varobj.c: Update.
11120 * windows-nat.c: Update.
11121 * x86-linux-nat.c: Update.
11122 * xml-support.c: Update.
11124 2019-04-08 Tom Tromey <tom@tromey.com>
11126 * xml-support.c: Use C++ exception handling.
11127 * x86-linux-nat.c: Use C++ exception handling.
11128 * windows-nat.c: Use C++ exception handling.
11129 * varobj.c: Use C++ exception handling.
11130 * value.c: Use C++ exception handling.
11131 * valprint.c: Use C++ exception handling.
11132 * valops.c: Use C++ exception handling.
11133 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11135 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11136 * typeprint.c: Use C++ exception handling.
11137 * tui/tui.c: Use C++ exception handling.
11138 * tracefile-tfile.c: Use C++ exception handling.
11139 * top.c: Use C++ exception handling.
11140 * thread.c: Use C++ exception handling.
11141 * target.c: Use C++ exception handling.
11142 * symmisc.c: Use C++ exception handling.
11143 * symfile-mem.c: Use C++ exception handling.
11144 * stack.c: Use C++ exception handling.
11145 * sparc64-linux-tdep.c: Use C++ exception handling.
11146 * solib.c: Use C++ exception handling.
11147 * solib-svr4.c: Use C++ exception handling.
11148 * solib-spu.c: Use C++ exception handling.
11149 * solib-frv.c: Use C++ exception handling.
11150 * solib-dsbt.c: Use C++ exception handling.
11151 * selftest-arch.c: Use C++ exception handling.
11152 * s390-tdep.c: Use C++ exception handling.
11153 * rust-lang.c: Use C++ exception handling.
11154 * rust-exp.y: Use C++ exception handling.
11155 * rs6000-tdep.c: Use C++ exception handling.
11156 * rs6000-aix-tdep.c: Use C++ exception handling.
11157 * riscv-tdep.c: Use C++ exception handling.
11158 * remote.c: Use C++ exception handling.
11159 * remote-fileio.c: Use C++ exception handling.
11160 * record-full.c: Use C++ exception handling.
11161 * record-btrace.c: Use C++ exception handling.
11162 * python/python.c: Use C++ exception handling.
11163 * python/py-value.c: Use C++ exception handling.
11164 * python/py-utils.c: Use C++ exception handling.
11165 * python/py-unwind.c: Use C++ exception handling.
11166 * python/py-type.c: Use C++ exception handling.
11167 * python/py-symbol.c: Use C++ exception handling.
11168 * python/py-record.c: Use C++ exception handling.
11169 * python/py-record-btrace.c: Use C++ exception handling.
11170 * python/py-progspace.c: Use C++ exception handling.
11171 * python/py-prettyprint.c: Use C++ exception handling.
11172 * python/py-param.c: Use C++ exception handling.
11173 * python/py-objfile.c: Use C++ exception handling.
11174 * python/py-linetable.c: Use C++ exception handling.
11175 * python/py-lazy-string.c: Use C++ exception handling.
11176 * python/py-infthread.c: Use C++ exception handling.
11177 * python/py-inferior.c: Use C++ exception handling.
11178 * python/py-gdb-readline.c: Use C++ exception handling.
11179 * python/py-framefilter.c: Use C++ exception handling.
11180 * python/py-frame.c: Use C++ exception handling.
11181 * python/py-finishbreakpoint.c: Use C++ exception handling.
11182 * python/py-cmd.c: Use C++ exception handling.
11183 * python/py-breakpoint.c: Use C++ exception handling.
11184 * python/py-arch.c: Use C++ exception handling.
11185 * printcmd.c: Use C++ exception handling.
11186 * ppc-linux-tdep.c: Use C++ exception handling.
11187 * parse.c: Use C++ exception handling.
11188 * p-valprint.c: Use C++ exception handling.
11189 * objc-lang.c: Use C++ exception handling.
11190 * mi/mi-main.c: Use C++ exception handling.
11191 * mi/mi-interp.c: Use C++ exception handling.
11192 * mi/mi-cmd-stack.c: Use C++ exception handling.
11193 * mi/mi-cmd-break.c: Use C++ exception handling.
11194 * main.c: Use C++ exception handling.
11195 * linux-thread-db.c: Use C++ exception handling.
11196 * linux-tdep.c: Use C++ exception handling.
11197 * linux-nat.c: Use C++ exception handling.
11198 * linux-fork.c: Use C++ exception handling.
11199 * linespec.c: Use C++ exception handling.
11200 * language.c: Use C++ exception handling.
11201 * jit.c: Use C++ exception handling.
11202 * infrun.c: Use C++ exception handling.
11203 * infcmd.c: Use C++ exception handling.
11204 * infcall.c: Use C++ exception handling.
11205 * inf-loop.c: Use C++ exception handling.
11206 * i386-tdep.c: Use C++ exception handling.
11207 * i386-linux-tdep.c: Use C++ exception handling.
11208 * guile/scm-value.c: Use C++ exception handling.
11209 * guile/scm-type.c: Use C++ exception handling.
11210 * guile/scm-symtab.c: Use C++ exception handling.
11211 * guile/scm-symbol.c: Use C++ exception handling.
11212 * guile/scm-pretty-print.c: Use C++ exception handling.
11213 * guile/scm-ports.c: Use C++ exception handling.
11214 * guile/scm-param.c: Use C++ exception handling.
11215 * guile/scm-math.c: Use C++ exception handling.
11216 * guile/scm-lazy-string.c: Use C++ exception handling.
11217 * guile/scm-frame.c: Use C++ exception handling.
11218 * guile/scm-disasm.c: Use C++ exception handling.
11219 * guile/scm-cmd.c: Use C++ exception handling.
11220 * guile/scm-breakpoint.c: Use C++ exception handling.
11221 * guile/scm-block.c: Use C++ exception handling.
11222 * guile/guile-internal.h: Use C++ exception handling.
11223 * gnu-v3-abi.c: Use C++ exception handling.
11224 * gdbtypes.c: Use C++ exception handling.
11225 * frame.c: Use C++ exception handling.
11226 * frame-unwind.c: Use C++ exception handling.
11227 * fbsd-tdep.c: Use C++ exception handling.
11228 * f-valprint.c: Use C++ exception handling.
11229 * exec.c: Use C++ exception handling.
11230 * event-top.c: Use C++ exception handling.
11231 * event-loop.c: Use C++ exception handling.
11232 * eval.c: Use C++ exception handling.
11233 * dwarf2read.c: Use C++ exception handling.
11234 * dwarf2loc.c: Use C++ exception handling.
11235 * dwarf2-frame.c: Use C++ exception handling.
11236 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11237 * dwarf-index-write.c: Use C++ exception handling.
11238 * dwarf-index-cache.c: Use C++ exception handling.
11239 * dtrace-probe.c: Use C++ exception handling.
11240 * disasm-selftests.c: Use C++ exception handling.
11241 * darwin-nat.c: Use C++ exception handling.
11242 * cp-valprint.c: Use C++ exception handling.
11243 * cp-support.c: Use C++ exception handling.
11244 * cp-abi.c: Use C++ exception handling.
11245 * corelow.c: Use C++ exception handling.
11246 * completer.c: Use C++ exception handling.
11247 * compile/compile-object-run.c: Use C++ exception handling.
11248 * compile/compile-object-load.c: Use C++ exception handling.
11249 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11250 * compile/compile-c-symbols.c: Use C++ exception handling.
11251 * common/selftest.c: Use C++ exception handling.
11252 * common/new-op.c: Use C++ exception handling.
11253 * cli/cli-script.c: Use C++ exception handling.
11254 * cli/cli-interp.c: Use C++ exception handling.
11255 * cli/cli-cmds.c: Use C++ exception handling.
11256 * c-varobj.c: Use C++ exception handling.
11257 * btrace.c: Use C++ exception handling.
11258 * breakpoint.c: Use C++ exception handling.
11259 * break-catch-throw.c: Use C++ exception handling.
11260 * arch-utils.c: Use C++ exception handling.
11261 * amd64-tdep.c: Use C++ exception handling.
11262 * ada-valprint.c: Use C++ exception handling.
11263 * ada-typeprint.c: Use C++ exception handling.
11264 * ada-lang.c: Use C++ exception handling.
11265 * aarch64-tdep.c: Use C++ exception handling.
11267 2019-04-08 Tom Tromey <tom@tromey.com>
11269 * xml-support.c (gdb_xml_parser::parse): Update.
11270 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11271 * value.c (show_convenience): Update.
11272 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11273 (test_parse_flags_qcs): Update.
11274 * thread.c (thr_try_catch_cmd): Update.
11275 * target.c (target_translate_tls_address): Update.
11276 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11277 (info_frame_command_core, frame_apply_command_count): Update.
11278 * rust-exp.y (rust_lex_exception_test): Update.
11279 * riscv-tdep.c (riscv_print_one_register_info): Update.
11280 * remote.c (remote_target::enable_btrace): Update.
11281 * record-btrace.c (record_btrace_enable_warn): Update.
11282 * python/py-utils.c (gdbpy_convert_exception): Update.
11283 * printcmd.c (do_one_display, print_variable_and_value): Update.
11284 * mi/mi-main.c (mi_print_exception): Update.
11285 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11286 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11287 * linux-nat.c (linux_nat_target::attach): Update.
11288 * linux-fork.c (class scoped_switch_fork_info): Update.
11289 * infrun.c (displaced_step_prepare): Update.
11290 * infcall.c (call_function_by_hand_dummy): Update.
11291 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11292 * gnu-v3-abi.c (print_one_vtable): Update.
11293 * frame.c (get_prev_frame_always): Update.
11294 * f-valprint.c (info_common_command_for_block): Update.
11295 * exec.c (try_open_exec_file): Update.
11296 * exceptions.c (print_exception, exception_print)
11297 (exception_fprintf, exception_print_same): Update.
11298 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11299 * dwarf-index-cache.c (index_cache::store)
11300 (index_cache::lookup_gdb_index): Update.
11301 * darwin-nat.c (maybe_cache_shell): Update.
11302 * cp-valprint.c (cp_print_value_fields): Update.
11303 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11304 (gcc_cplus_symbol_address): Update.
11305 * compile/compile-c-symbols.c (gcc_convert_symbol)
11306 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11307 * common/selftest.c: Update.
11308 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11310 (exception_try_scope_entry, exception_try_scope_exit): Don't
11312 (struct exception_try_scope): Remove.
11313 (TRY): Don't use exception_try_scope.
11314 (struct gdb_exception): Add constructor, operator=.
11315 <what>: New method.
11316 (struct gdb_exception_RETURN_MASK_ALL)
11317 (struct gdb_exception_RETURN_MASK_ERROR)
11318 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11319 (struct gdb_quit_bad_alloc): Update.
11320 * common/common-exceptions.c (exception_none): Change
11322 (struct catcher) <state, exception>: Initialize inline.
11323 <prev>: Remove member.
11324 (current_catcher): Remove.
11325 (catchers): New global.
11326 (exceptions_state_mc_init): Simplify.
11327 (catcher_pop): Remove.
11328 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11329 (try_scope_depth, exception_try_scope_entry)
11330 (exception_try_scope_exit): Remove.
11331 (throw_exception_sjlj): Update.
11332 (exception_messages, exception_messages_size): Remove.
11333 (throw_it): Simplify.
11334 (gdb_exception_sliced_copy): Remove.
11335 (throw_exception_cxx): Update.
11336 * cli/cli-script.c (script_from_file): Update.
11337 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11339 * ada-valprint.c (ada_val_print): Update.
11340 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11341 (create_excep_cond_exprs): Update.
11343 2019-04-08 Tom Tromey <tom@tromey.com>
11345 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11346 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11347 (TRY, CATCH, END_CATCH): Remove some definitions.
11348 * common/common-exceptions.c: Don't use GDB_XCPT.
11349 (catcher_list_size): Remove.
11350 (throw_exception, throw_it): Simplify.
11352 2019-04-05 Tom Tromey <tom@tromey.com>
11354 Revert the header-sorting patch.
11355 * ft32-tdep.c: Revert.
11356 * frv-tdep.c: Revert.
11357 * frv-linux-tdep.c: Revert.
11359 * frame-unwind.c: Revert.
11360 * frame-base.c: Revert.
11361 * fork-child.c: Revert.
11362 * findvar.c: Revert.
11363 * findcmd.c: Revert.
11364 * filesystem.c: Revert.
11365 * filename-seen-cache.h: Revert.
11366 * filename-seen-cache.c: Revert.
11367 * fbsd-tdep.c: Revert.
11368 * fbsd-nat.h: Revert.
11369 * fbsd-nat.c: Revert.
11370 * f-valprint.c: Revert.
11371 * f-typeprint.c: Revert.
11372 * f-lang.c: Revert.
11373 * extension.h: Revert.
11374 * extension.c: Revert.
11375 * extension-priv.h: Revert.
11376 * expprint.c: Revert.
11379 * exceptions.c: Revert.
11380 * event-top.c: Revert.
11381 * event-loop.c: Revert.
11383 * elfread.c: Revert.
11384 * dwarf2read.h: Revert.
11385 * dwarf2read.c: Revert.
11386 * dwarf2loc.c: Revert.
11387 * dwarf2expr.h: Revert.
11388 * dwarf2expr.c: Revert.
11389 * dwarf2-frame.c: Revert.
11390 * dwarf2-frame-tailcall.c: Revert.
11391 * dwarf-index-write.h: Revert.
11392 * dwarf-index-write.c: Revert.
11393 * dwarf-index-common.c: Revert.
11394 * dwarf-index-cache.h: Revert.
11395 * dwarf-index-cache.c: Revert.
11396 * dummy-frame.c: Revert.
11397 * dtrace-probe.c: Revert.
11398 * disasm.h: Revert.
11399 * disasm.c: Revert.
11400 * disasm-selftests.c: Revert.
11401 * dictionary.c: Revert.
11402 * dicos-tdep.c: Revert.
11403 * demangle.c: Revert.
11404 * dcache.h: Revert.
11405 * dcache.c: Revert.
11406 * darwin-nat.h: Revert.
11407 * darwin-nat.c: Revert.
11408 * darwin-nat-info.c: Revert.
11409 * d-valprint.c: Revert.
11410 * d-namespace.c: Revert.
11411 * d-lang.c: Revert.
11413 * csky-tdep.c: Revert.
11414 * csky-linux-tdep.c: Revert.
11415 * cris-tdep.c: Revert.
11416 * cris-linux-tdep.c: Revert.
11417 * cp-valprint.c: Revert.
11418 * cp-support.c: Revert.
11419 * cp-namespace.c: Revert.
11420 * cp-abi.c: Revert.
11421 * corelow.c: Revert.
11422 * corefile.c: Revert.
11423 * continuations.c: Revert.
11424 * completer.h: Revert.
11425 * completer.c: Revert.
11426 * complaints.c: Revert.
11427 * coffread.c: Revert.
11428 * coff-pe-read.c: Revert.
11429 * cli-out.h: Revert.
11430 * cli-out.c: Revert.
11431 * charset.c: Revert.
11432 * c-varobj.c: Revert.
11433 * c-valprint.c: Revert.
11434 * c-typeprint.c: Revert.
11435 * c-lang.c: Revert.
11436 * buildsym.c: Revert.
11437 * buildsym-legacy.c: Revert.
11438 * build-id.h: Revert.
11439 * build-id.c: Revert.
11440 * btrace.c: Revert.
11441 * bsd-uthread.c: Revert.
11442 * breakpoint.h: Revert.
11443 * breakpoint.c: Revert.
11444 * break-catch-throw.c: Revert.
11445 * break-catch-syscall.c: Revert.
11446 * break-catch-sig.c: Revert.
11447 * blockframe.c: Revert.
11449 * bfin-tdep.c: Revert.
11450 * bfin-linux-tdep.c: Revert.
11451 * bfd-target.c: Revert.
11452 * bcache.c: Revert.
11453 * ax-general.c: Revert.
11454 * ax-gdb.h: Revert.
11455 * ax-gdb.c: Revert.
11456 * avr-tdep.c: Revert.
11458 * auto-load.c: Revert.
11459 * arm-wince-tdep.c: Revert.
11460 * arm-tdep.c: Revert.
11461 * arm-symbian-tdep.c: Revert.
11462 * arm-pikeos-tdep.c: Revert.
11463 * arm-obsd-tdep.c: Revert.
11464 * arm-nbsd-tdep.c: Revert.
11465 * arm-nbsd-nat.c: Revert.
11466 * arm-linux-tdep.c: Revert.
11467 * arm-linux-nat.c: Revert.
11468 * arm-fbsd-tdep.c: Revert.
11469 * arm-fbsd-nat.c: Revert.
11470 * arm-bsd-tdep.c: Revert.
11471 * arch-utils.c: Revert.
11472 * arc-tdep.c: Revert.
11473 * arc-newlib-tdep.c: Revert.
11474 * annotate.h: Revert.
11475 * annotate.c: Revert.
11476 * amd64-windows-tdep.c: Revert.
11477 * amd64-windows-nat.c: Revert.
11478 * amd64-tdep.c: Revert.
11479 * amd64-sol2-tdep.c: Revert.
11480 * amd64-obsd-tdep.c: Revert.
11481 * amd64-obsd-nat.c: Revert.
11482 * amd64-nbsd-tdep.c: Revert.
11483 * amd64-nbsd-nat.c: Revert.
11484 * amd64-nat.c: Revert.
11485 * amd64-linux-tdep.c: Revert.
11486 * amd64-linux-nat.c: Revert.
11487 * amd64-fbsd-tdep.c: Revert.
11488 * amd64-fbsd-nat.c: Revert.
11489 * amd64-dicos-tdep.c: Revert.
11490 * amd64-darwin-tdep.c: Revert.
11491 * amd64-bsd-nat.c: Revert.
11492 * alpha-tdep.c: Revert.
11493 * alpha-obsd-tdep.c: Revert.
11494 * alpha-nbsd-tdep.c: Revert.
11495 * alpha-mdebug-tdep.c: Revert.
11496 * alpha-linux-tdep.c: Revert.
11497 * alpha-linux-nat.c: Revert.
11498 * alpha-bsd-tdep.c: Revert.
11499 * alpha-bsd-nat.c: Revert.
11500 * aix-thread.c: Revert.
11502 * addrmap.c: Revert.
11503 * ada-varobj.c: Revert.
11504 * ada-valprint.c: Revert.
11505 * ada-typeprint.c: Revert.
11506 * ada-tasks.c: Revert.
11507 * ada-lang.c: Revert.
11508 * aarch64-tdep.c: Revert.
11509 * aarch64-ravenscar-thread.c: Revert.
11510 * aarch64-newlib-tdep.c: Revert.
11511 * aarch64-linux-tdep.c: Revert.
11512 * aarch64-linux-nat.c: Revert.
11513 * aarch64-fbsd-tdep.c: Revert.
11514 * aarch64-fbsd-nat.c: Revert.
11515 * aarch32-linux-nat.c: Revert.
11517 2019-04-05 Tom Tromey <tom@tromey.com>
11519 * ft32-tdep.c: Sort headers.
11520 * frv-tdep.c: Sort headers.
11521 * frv-linux-tdep.c: Sort headers.
11522 * frame.c: Sort headers.
11523 * frame-unwind.c: Sort headers.
11524 * frame-base.c: Sort headers.
11525 * fork-child.c: Sort headers.
11526 * findvar.c: Sort headers.
11527 * findcmd.c: Sort headers.
11528 * filesystem.c: Sort headers.
11529 * filename-seen-cache.h: Sort headers.
11530 * filename-seen-cache.c: Sort headers.
11531 * fbsd-tdep.c: Sort headers.
11532 * fbsd-nat.h: Sort headers.
11533 * fbsd-nat.c: Sort headers.
11534 * f-valprint.c: Sort headers.
11535 * f-typeprint.c: Sort headers.
11536 * f-lang.c: Sort headers.
11537 * extension.h: Sort headers.
11538 * extension.c: Sort headers.
11539 * extension-priv.h: Sort headers.
11540 * expprint.c: Sort headers.
11541 * exec.h: Sort headers.
11542 * exec.c: Sort headers.
11543 * exceptions.c: Sort headers.
11544 * event-top.c: Sort headers.
11545 * event-loop.c: Sort headers.
11546 * eval.c: Sort headers.
11547 * elfread.c: Sort headers.
11548 * dwarf2read.h: Sort headers.
11549 * dwarf2read.c: Sort headers.
11550 * dwarf2loc.c: Sort headers.
11551 * dwarf2expr.h: Sort headers.
11552 * dwarf2expr.c: Sort headers.
11553 * dwarf2-frame.c: Sort headers.
11554 * dwarf2-frame-tailcall.c: Sort headers.
11555 * dwarf-index-write.h: Sort headers.
11556 * dwarf-index-write.c: Sort headers.
11557 * dwarf-index-common.c: Sort headers.
11558 * dwarf-index-cache.h: Sort headers.
11559 * dwarf-index-cache.c: Sort headers.
11560 * dummy-frame.c: Sort headers.
11561 * dtrace-probe.c: Sort headers.
11562 * disasm.h: Sort headers.
11563 * disasm.c: Sort headers.
11564 * disasm-selftests.c: Sort headers.
11565 * dictionary.c: Sort headers.
11566 * dicos-tdep.c: Sort headers.
11567 * demangle.c: Sort headers.
11568 * dcache.h: Sort headers.
11569 * dcache.c: Sort headers.
11570 * darwin-nat.h: Sort headers.
11571 * darwin-nat.c: Sort headers.
11572 * darwin-nat-info.c: Sort headers.
11573 * d-valprint.c: Sort headers.
11574 * d-namespace.c: Sort headers.
11575 * d-lang.c: Sort headers.
11576 * ctf.c: Sort headers.
11577 * csky-tdep.c: Sort headers.
11578 * csky-linux-tdep.c: Sort headers.
11579 * cris-tdep.c: Sort headers.
11580 * cris-linux-tdep.c: Sort headers.
11581 * cp-valprint.c: Sort headers.
11582 * cp-support.c: Sort headers.
11583 * cp-namespace.c: Sort headers.
11584 * cp-abi.c: Sort headers.
11585 * corelow.c: Sort headers.
11586 * corefile.c: Sort headers.
11587 * continuations.c: Sort headers.
11588 * completer.h: Sort headers.
11589 * completer.c: Sort headers.
11590 * complaints.c: Sort headers.
11591 * coffread.c: Sort headers.
11592 * coff-pe-read.c: Sort headers.
11593 * cli-out.h: Sort headers.
11594 * cli-out.c: Sort headers.
11595 * charset.c: Sort headers.
11596 * c-varobj.c: Sort headers.
11597 * c-valprint.c: Sort headers.
11598 * c-typeprint.c: Sort headers.
11599 * c-lang.c: Sort headers.
11600 * buildsym.c: Sort headers.
11601 * buildsym-legacy.c: Sort headers.
11602 * build-id.h: Sort headers.
11603 * build-id.c: Sort headers.
11604 * btrace.c: Sort headers.
11605 * bsd-uthread.c: Sort headers.
11606 * breakpoint.h: Sort headers.
11607 * breakpoint.c: Sort headers.
11608 * break-catch-throw.c: Sort headers.
11609 * break-catch-syscall.c: Sort headers.
11610 * break-catch-sig.c: Sort headers.
11611 * blockframe.c: Sort headers.
11612 * block.c: Sort headers.
11613 * bfin-tdep.c: Sort headers.
11614 * bfin-linux-tdep.c: Sort headers.
11615 * bfd-target.c: Sort headers.
11616 * bcache.c: Sort headers.
11617 * ax-general.c: Sort headers.
11618 * ax-gdb.h: Sort headers.
11619 * ax-gdb.c: Sort headers.
11620 * avr-tdep.c: Sort headers.
11621 * auxv.c: Sort headers.
11622 * auto-load.c: Sort headers.
11623 * arm-wince-tdep.c: Sort headers.
11624 * arm-tdep.c: Sort headers.
11625 * arm-symbian-tdep.c: Sort headers.
11626 * arm-pikeos-tdep.c: Sort headers.
11627 * arm-obsd-tdep.c: Sort headers.
11628 * arm-nbsd-tdep.c: Sort headers.
11629 * arm-nbsd-nat.c: Sort headers.
11630 * arm-linux-tdep.c: Sort headers.
11631 * arm-linux-nat.c: Sort headers.
11632 * arm-fbsd-tdep.c: Sort headers.
11633 * arm-fbsd-nat.c: Sort headers.
11634 * arm-bsd-tdep.c: Sort headers.
11635 * arch-utils.c: Sort headers.
11636 * arc-tdep.c: Sort headers.
11637 * arc-newlib-tdep.c: Sort headers.
11638 * annotate.h: Sort headers.
11639 * annotate.c: Sort headers.
11640 * amd64-windows-tdep.c: Sort headers.
11641 * amd64-windows-nat.c: Sort headers.
11642 * amd64-tdep.c: Sort headers.
11643 * amd64-sol2-tdep.c: Sort headers.
11644 * amd64-obsd-tdep.c: Sort headers.
11645 * amd64-obsd-nat.c: Sort headers.
11646 * amd64-nbsd-tdep.c: Sort headers.
11647 * amd64-nbsd-nat.c: Sort headers.
11648 * amd64-nat.c: Sort headers.
11649 * amd64-linux-tdep.c: Sort headers.
11650 * amd64-linux-nat.c: Sort headers.
11651 * amd64-fbsd-tdep.c: Sort headers.
11652 * amd64-fbsd-nat.c: Sort headers.
11653 * amd64-dicos-tdep.c: Sort headers.
11654 * amd64-darwin-tdep.c: Sort headers.
11655 * amd64-bsd-nat.c: Sort headers.
11656 * alpha-tdep.c: Sort headers.
11657 * alpha-obsd-tdep.c: Sort headers.
11658 * alpha-nbsd-tdep.c: Sort headers.
11659 * alpha-mdebug-tdep.c: Sort headers.
11660 * alpha-linux-tdep.c: Sort headers.
11661 * alpha-linux-nat.c: Sort headers.
11662 * alpha-bsd-tdep.c: Sort headers.
11663 * alpha-bsd-nat.c: Sort headers.
11664 * aix-thread.c: Sort headers.
11665 * agent.c: Sort headers.
11666 * addrmap.c: Sort headers.
11667 * ada-varobj.c: Sort headers.
11668 * ada-valprint.c: Sort headers.
11669 * ada-typeprint.c: Sort headers.
11670 * ada-tasks.c: Sort headers.
11671 * ada-lang.c: Sort headers.
11672 * aarch64-tdep.c: Sort headers.
11673 * aarch64-ravenscar-thread.c: Sort headers.
11674 * aarch64-newlib-tdep.c: Sort headers.
11675 * aarch64-linux-tdep.c: Sort headers.
11676 * aarch64-linux-nat.c: Sort headers.
11677 * aarch64-fbsd-tdep.c: Sort headers.
11678 * aarch64-fbsd-nat.c: Sort headers.
11679 * aarch32-linux-nat.c: Sort headers.
11681 2019-04-04 Tom Tromey <tom@tromey.com>
11683 * varobj.c (varobj_create): Update.
11684 * rust-exp.y (struct rust_parser) <update_innermost_block,
11685 lookup_symbol>: New methods.
11686 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11688 (rust_parser::rust_lookup_type)
11689 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11690 * printcmd.c (display_command, do_one_display): Update.
11691 * parser-defs.h (struct parser_state) <parser_state>: Add
11692 "tracker" parameter.
11693 (block_tracker): New member.
11694 (class innermost_block_tracker) <innermost_block_tracker>: Add
11696 <reset>: Remove method.
11697 (innermost_block): Don't declare.
11698 (null_post_parser): Update.
11699 * parse.c (innermost_block): Remove global.
11700 (write_dollar_variable): Update.
11701 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11702 Remove "tracker_types" parameter.
11703 (parse_expression): Add "tracker" parameter.
11704 (parse_expression_for_completion): Update.
11705 (null_post_parser): Add "tracker" parameter.
11706 * p-exp.y: Update rules.
11707 * m2-exp.y: Update rules.
11708 * language.h (struct language_defn) <la_post_parser>: Add
11709 "tracker" parameter.
11710 * go-exp.y: Update rules.
11711 * f-exp.y: Update rules.
11712 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11714 * d-exp.y: Update rules.
11715 * c-exp.y: Update rules.
11716 * breakpoint.c (set_breakpoint_condition): Create an
11717 innermost_block_tracker.
11718 (watch_command_1): Likewise.
11719 * ada-lang.c (resolve): Add "tracker" parameter.
11720 (resolve_subexp): Likewise.
11721 * ada-exp.y (write_var_from_sym): Update.
11723 2019-04-04 Tom Tromey <tom@tromey.com>
11725 * type-stack.h: New file.
11726 * type-stack.c: New file.
11727 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11729 (insert_into_type_stack, insert_type, push_type, push_type_int)
11730 (insert_type_address_space, pop_type, pop_type_int)
11731 (pop_typelist, pop_type_stack, append_type_stack)
11732 (push_type_stack, get_type_stack, push_typelist)
11733 (follow_type_instance_flags, follow_types): Don't declare.
11734 * parse.c (type_stack): Remove global.
11735 (parse_exp_in_context): Update.
11736 (insert_into_type_stack, insert_type, push_type, push_type_int)
11737 (insert_type_address_space, pop_type, pop_type_int)
11738 (pop_typelist, pop_type_stack, append_type_stack)
11739 (push_type_stack, get_type_stack, push_typelist)
11740 (follow_type_instance_flags, follow_types): Remove (moved to
11742 * f-exp.y (type_stack): New global.
11744 (push_kind_type, f_parse): Update.
11745 * d-exp.y (type_stack): New global.
11748 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11750 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11751 (HFILES_NO_SRCDIR): Add type-stack.h.
11753 2019-04-04 Tom Tromey <tom@tromey.com>
11755 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11756 (rust_parser::convert_ast_to_expression, rust_parse)
11757 (rust_lex_test_completion, rust_lex_tests): Update.
11758 * parser-defs.h (struct expr_completion_state): New.
11759 (struct parser_state) <parser_state>: Add completion parameter.
11760 <mark_struct_expression, mark_completion_tag>: New methods.
11761 <parse_completion, m_completion_state>: New members.
11762 (prefixify_expression, null_post_parser): Update.
11763 (mark_struct_expression, mark_completion_tag): Don't declare.
11764 * parse.c (parse_completion, expout_last_struct)
11765 (expout_tag_completion_type, expout_completion_name): Remove
11767 (parser_state::mark_struct_expression)
11768 (parser_state::mark_completion_tag): Now methods.
11769 (prefixify_expression): Add last_struct parameter.
11770 (prefixify_subexp): Likewise.
11771 (parse_exp_1): Update.
11772 (parse_exp_in_context): Add cstate parameter. Update.
11773 (parse_expression_for_completion): Create an
11774 expr_completion_state.
11775 (null_post_parser): Add "completion" parameter.
11776 * p-exp.y: Update rules.
11778 * language.h (struct language_defn) <la_post_parser>: Add
11779 "completing" parameter.
11780 * go-exp.y: Update rules.
11781 (lex_one_token): Update.
11782 * expression.h (parse_completion): Don't declare.
11783 * d-exp.y: Update rules.
11784 (lex_one_token): Update rules.
11785 * c-exp.y: Update rules.
11786 (lex_one_token): Update.
11787 * ada-lang.c (resolve): Add "parse_completion" parameter.
11788 (resolve_subexp): Likewise.
11789 (ada_resolve_function): Likewise.
11791 2019-04-04 Tom Tromey <tom@tromey.com>
11793 * parser-defs.h (struct parser_state) <start_arglist,
11794 end_arglist>: New methods.
11795 <arglist_len, m_funcall_chain>: New members.
11796 (arglist_len, start_arglist, end_arglist): Don't declare.
11797 * parse.c (arglist_len, funcall_chain): Remove global.
11798 (start_arglist, end_arglist): Remove functions.
11799 (parse_exp_in_context): Update.
11800 * p-exp.y: Update rules.
11801 * m2-exp.y: Update rules.
11802 * go-exp.y: Update rules.
11803 * f-exp.y: Update rules.
11804 * d-exp.y: Update rules.
11805 * c-exp.y: Update rules.
11807 2019-04-04 Tom Tromey <tom@tromey.com>
11809 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11810 lex_operator, push_back>: New methods.
11812 (rust_parser::lex_hex, lex_escape): Rename and update.
11813 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11814 (rust_parser::lex_operator): Rename and update.
11815 (rust_parser::lex_number, rustyylex, rustyyerror)
11816 (rust_lex_test_init, rust_lex_test_sequence)
11817 (rust_lex_test_push_back, rust_lex_tests): Update.
11818 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11820 <lexptr, prev_lexptr>: New members.
11821 (lexptr, prev_lexptr): Don't declare.
11822 * parse.c (lexptr, prev_lexptr): Remove globals.
11823 (parse_exp_in_context): Update.
11824 * p-exp.y (yylex, yyerror): Update.
11825 * m2-exp.y (parse_number, yylex, yyerror): Update.
11826 * go-exp.y (lex_one_token, yyerror): Update.
11827 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11828 * d-exp.y (lex_one_token, yyerror): Update.
11829 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11830 (lex_one_token, yyerror): Update.
11831 * ada-lex.l (YY_INPUT): Update.
11832 (rewind_to_char): Update.
11833 * ada-exp.y (yyerror): Update.
11835 2019-04-04 Tom Tromey <tom@tromey.com>
11837 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11838 * parser-defs.h (struct parser_state) <parser_state>: Add new
11840 <comma_terminates>: New member.
11841 (comma_terminates): Don't declare global.
11842 * parse.c (comma_terminates): Remove global.
11843 (parse_exp_in_context): Update.
11844 * p-exp.y (yylex): Update.
11845 * m2-exp.y (yylex): Update.
11846 * go-exp.y (lex_one_token): Update.
11847 * f-exp.y (yylex): Update.
11848 * d-exp.y (lex_one_token): Update.
11849 * c-exp.y (lex_one_token): Update.
11850 * ada-lex.l: Update.
11852 2019-04-04 Tom Tromey <tom@tromey.com>
11854 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11855 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11856 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11857 * parser-defs.h (paren_depth): Don't declare.
11858 * parse.c (paren_depth): Remove global.
11859 (parse_exp_in_context): Update.
11860 * p-exp.y (paren_depth): New global.
11861 (pascal_parse): Initialize it.
11862 * m2-exp.y (paren_depth): New global.
11863 (m2_parse): Initialize it.
11864 * go-exp.y (paren_depth): New global.
11865 (go_parse): Initialize it.
11866 * f-exp.y (paren_depth): New global.
11867 (f_parse): Initialize it.
11868 * d-exp.y (paren_depth): New global.
11869 (d_parse): Initialize it.
11870 * c-exp.y (paren_depth): New global.
11871 (c_parse): Initialize it.
11872 * ada-lex.l (paren_depth): New global.
11873 (lexer_init): Initialize it.
11875 2019-04-04 Tom Tromey <tom@tromey.com>
11877 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11878 (rust_parser::convert_ast_to_type)
11879 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11880 * parser-defs.h (struct parser_state) <parser_state>: Add
11881 parameters. Initialize new members.
11882 <expression_context_block, expression_context_pc>: New members.
11883 * parse.c (expression_context_block, expression_context_pc):
11885 (parse_exp_in_context): Update.
11886 * p-exp.y: Update all rules.
11888 * m2-exp.y: Update all rules.
11890 * go-exp.y (yylex): Update.
11891 * f-exp.y (yylex): Update.
11892 * d-exp.y: Update all rules.
11894 * c-exp.y: Update all rules.
11895 (lex_one_token, classify_name, yylex, c_parse): Update.
11896 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11898 2019-04-04 Tom Tromey <tom@tromey.com>
11900 * gdbarch.h, gdbarch.c: Rebuild.
11901 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11903 (struct stap_parse_info): Replace "parser_state" with
11905 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11906 (parser_state): New class.
11907 * parse.c (expr_builder): Rename.
11908 (expr_builder::release): Rename.
11909 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11910 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11911 (write_exp_elt_longcst, write_exp_elt_floatcst)
11912 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11913 (write_exp_string_vector, write_exp_bitstring)
11914 (write_exp_msymbol, mark_struct_expression)
11915 (write_dollar_variable)
11916 (insert_type_address_space, increase_expout_size): Replace
11917 "parser_state" with "expr_builder".
11918 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11919 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11920 "parser_state" with "expr_builder".
11922 2019-04-04 Tom Tromey <tom@tromey.com>
11924 * rust-exp.y: Replace "parse_language" with method call.
11926 (yylex): Replace "parse_language" with method call.
11928 (yylex): Replace "parse_language" with method call.
11929 * go-exp.y (classify_name): Replace "parse_language" with method
11931 * f-exp.y (yylex): Replace "parse_language" with method call.
11932 * d-exp.y (lex_one_token): Replace "parse_language" with method
11935 (lex_one_token, classify_name, yylex): Replace "parse_language"
11937 * ada-exp.y (find_primitive_type, type_char)
11938 (type_system_address): Replace "parse_language" with method call.
11940 2019-04-04 Tom Tromey <tom@tromey.com>
11942 * rust-exp.y: Replace "parse_gdbarch" with method call.
11943 * parse.c (write_dollar_variable, insert_type_address_space):
11944 Replace "parse_gdbarch" with method call.
11945 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11947 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11949 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11950 "parse_gdbarch" with method call.
11951 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11953 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11954 "parse_gdbarch" with method call.
11955 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11956 "parse_gdbarch" with method call.
11957 * c-exp.y (parse_type, parse_number, classify_name): Replace
11958 "parse_gdbarch" with method call.
11959 * ada-lex.l: Replace "parse_gdbarch" with method call.
11960 * ada-exp.y (parse_type, find_primitive_type, type_char)
11961 (type_system_address): Replace "parse_gdbarch" with method call.
11963 2019-04-04 Tom Tromey <tom@tromey.com>
11965 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11966 * stap-probe.c (stap_parse_argument): Update.
11967 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11968 initial_size parameter.
11969 * rust-exp.y (rust_lex_tests): Update.
11970 * parse.c (parser_state): Update.
11971 (parse_exp_in_context): Update.
11972 * parser-defs.h (struct parser_state) <parser_state>: Remove
11973 "initial_size" parameter.
11975 2019-04-04 Tom Tromey <tom@tromey.com>
11977 * parser-defs.h (increase_expout_size): Don't declare.
11978 * parse.c (increase_expout_size): Now static.
11980 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11982 * gnu-nat.c (gnu_nat_target::wait): Fix
11983 target_waitstatus_to_string call.
11985 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11987 * eval.c (evaluate_subexp_standard): Handle internal functions
11988 during Fortran function call handling.
11990 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11992 * NEWS: Mention new internal functions.
11993 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11994 (read_base_type): Use dwarf2_init_complex_target_type.
11995 * value.c (creal_internal_fn): New function.
11996 (cimag_internal_fn): New function.
11997 (_initialize_values): Register new internal functions.
11999 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12001 * infrun.c (stop_all_threads): If debug_infrun, always
12002 trace the wait status after wait_one, using
12003 target_waitstatus_to_string and target_pid_to_str.
12004 (handle_inferior_event): Replace various trace of
12005 wait status kind by a single trace.
12006 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12007 wait status kind image by target_waitstatus_to_string.
12008 * target/waitstatus.c (target_waitstatus_to_string): Fix
12011 2019-04-01 Tom Tromey <tromey@adacore.com>
12014 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12016 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12017 Pedro Alves <palves@redhat.com>
12019 * top.c (quit_force): Call 'finalize_values'.
12020 * value.c (finalize_values): New function.
12021 * value.h (finalize_values): Declare.
12023 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12025 * NEWS: Announce $_gdb_major and $_gdb_minor.
12027 * top.c (init_gdb_version_vars): New function.
12028 (gdb_init): Call init_gdb_version_vars.
12030 2019-03-29 Tom Tromey <tromey@adacore.com>
12032 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12033 help text. Remove dead code.
12035 2019-03-29 Keith Seitz <keiths@redhat.com>
12037 From Siddhesh Poyarekar:
12038 * f-lang.h (f77_get_upperbound): Return LONGEST.
12039 (f77_get_lowerbound): Likewise.
12040 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12041 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12043 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12044 plongest to format print it.
12045 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12046 (f77_get_upperbound): Likewise.
12047 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12048 LOWER_BOUND to LONGEST.
12049 (f77_create_arrayprint_offset_tbl): Likewise.
12051 2019-03-29 Keith Seitz <keiths@redhat.com>
12053 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12054 %s/pulongest for TYPE_LENGTH instead of %d in format
12056 * ada-typerint.c (ada_print_type): Likewise.
12057 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12058 * compile/compile-c-support.c (generate_register_struct): Likewise.
12059 * gdbtypes.c (recursive_dump_type): Likewise.
12060 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12061 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12062 instead of %d in format strings.
12063 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12064 to std::min to ULONGEST.
12065 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12066 instead of %d in format strings.
12067 * tracepoint.c (info_scope_command): Likewise.
12068 * typeprint.c (print_offset_data::update)
12069 (print_offset_data::finish): Likewise.
12070 * xtensa-tdep.c (xtensa_store_return_value)
12071 (xtensa_push_dummy_call): Likewise.
12073 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12075 * windows-nat.c (display_selector): Fixed format specifications
12078 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12080 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12082 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12084 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12085 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12086 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12087 (nios2_linux_init_abi): Install it.
12089 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12091 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12093 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12095 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12097 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12098 Tom Tromey <tromey@adacore.com>
12100 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12102 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12104 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12105 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12106 method to compute the bounds of range types. Also print "[evaluated]"
12107 if the bounds' values come from a dynamic evaluation.
12109 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12111 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12112 whitespace when pretty printing is on.
12114 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12116 * ppc-linux-nat.c: Add include.
12118 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12120 * NEWS: Mention AArch64 Pointer Authentication.
12122 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12124 * arm-linux-nat.c: Add include.
12126 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12128 * source-cache.c (source_cache::get_source_lines): Re-read
12129 fullname after calling open_source_file.
12131 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12133 * NEWS: Mention TLS support for FreeBSD.
12135 2019-03-25 Tom Tromey <tromey@adacore.com>
12137 * minsyms.c (BUNCH_SIZE): Update comment.
12138 (~minimal_symbol_reader): Remove old comment.
12139 (compact_minimal_symbols): Update comment.
12140 (minimal_symbol_reader::install): Remove old comment. Update
12143 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12145 * s390-linux-nat.c: Add include.
12147 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12149 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12150 Call linux_get_hwcap.
12151 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12153 (aarch64_linux_get_hwcap): Remove function.
12154 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12156 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12158 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12159 * linux-tdep.c (linux_get_hwcap): Add function.
12160 (linux_get_hwcap2): Likewise.
12161 * linux-tdep.h (linux_get_hwcap): Add declaration.
12162 (linux_get_hwcap2): Likewise.
12163 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12164 (ppc_linux_get_hwcap2): Likewise.
12165 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12167 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12168 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12169 (ppc_linux_nat_target::read_description): Likewise.
12170 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12171 * s390-linux-nat.c: Likewise.
12172 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12174 2019-03-24 Tom Tromey <tom@tromey.com>
12176 * ada-lang.c (standard_lookup): Simplify initialization.
12177 (ada_lookup_symbol_nonlocal): Simplify return.
12178 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12179 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12180 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12181 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12183 * solib.c (solib_global_lookup): Simplify.
12184 * symtab.c (null_block_symbol): Remove.
12185 (symbol_cache_lookup): Simplify returns.
12186 (lookup_language_this): Simplify returns.
12187 (lookup_symbol_aux): Simplify return.
12188 (lookup_local_symbol): Simplify returns.
12189 (lookup_global_symbol_from_objfile): Simplify return.
12190 (lookup_symbol_in_objfile_symtabs)
12191 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12192 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12193 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12194 * cp-namespace.c (cp_lookup_bare_symbol)
12195 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12196 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12197 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12198 (cp_lookup_symbol_via_imports): Simplify initialization.
12199 (find_symbol_in_baseclass): Likewise.
12200 * symtab.h (null_block_symbol): Remove.
12201 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12202 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12203 (d_lookup_symbol_module): Likewise.
12204 (find_symbol_in_baseclass): Simplify initialization.
12206 2019-03-24 Tom Tromey <tom@tromey.com>
12208 * expression.h: Don't include symtab.h.
12209 (struct block): Forward declare.
12211 2019-03-24 Tom Tromey <tom@tromey.com>
12213 * c-exp.y (typebase): Remove casts.
12214 * gdbtypes.c (lookup_unsigned_typename, )
12215 (lookup_signed_typename): Remove cast.
12216 * eval.c (parse_to_comma_and_eval): Remove cast.
12217 * parse.c (write_dollar_variable): Remove cast.
12218 * block.h (struct block) <superblock>: Now const.
12219 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12220 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12221 (map_block): Make "block" const.
12222 * symfile.h (struct quick_symbol_functions)
12223 <map_matching_symbols>: Constify block argument to "callback".
12224 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12226 (find_pc_sect_compunit_symtab): Make "b" const.
12227 (find_symbol_at_address): Likewise.
12228 (search_symbols): Likewise.
12229 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12230 (dw2_debug_names_lookup_symbol): Likewise.
12231 (dw2_map_matching_symbols): Update.
12232 * p-valprint.c (pascal_val_print): Remove "block".
12233 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12234 (aux_add_nonlocal_symbols): Make "block" const.
12235 (resolve_subexp): Remove cast.
12236 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12238 (iterate_over_file_blocks): Likewise.
12239 * f-exp.y (%union) <bval>: Remove.
12240 * coffread.c (patch_opaque_types): Make "b" const.
12241 * spu-tdep.c (spu_catch_start): Make "block" const.
12242 * c-valprint.c (print_unpacked_pointer): Remove "block".
12243 * symmisc.c (dump_symtab_1): Make "b" const.
12244 (block_depth): Make "block" const.
12245 * d-exp.y (%union) <bval>: Remove.
12246 * cp-support.h (cp_lookup_rtti_type): Update.
12247 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12248 * psymtab.c (psym_lookup_symbol): Make "block" const.
12249 (maintenance_check_psymtabs): Make "b" const.
12250 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12251 (enumerate_locals, enumerate_args): Update.
12252 * python/py-symtab.c (stpy_global_block): Make "block" const.
12253 (stpy_static_block): Likewise.
12254 * inline-frame.c (block_starting_point_at): Make "new_block"
12256 * block.c (find_block_in_blockvector): Make return type const.
12257 (blockvector_for_pc_sect): Make "b" const.
12258 (find_block_in_blockvector): Make "b" const.
12260 2019-03-23 Tom Tromey <tom@tromey.com>
12262 * varobj.c (varobj_create): Update.
12263 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12264 * printcmd.c (display_command, do_one_display): Don't reset
12266 * parser-defs.h (enum innermost_block_tracker_type): Move to
12268 (innermost_block): Update comment.
12269 * parse.c (parse_exp_1): Add tracker_types parameter.
12270 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12271 tracker_types parameter. Reset innermost_block.
12272 (parse_exp_in_context): Remove.
12273 (parse_expression_for_completion): Update.
12274 * objfiles.c (~objfile): Don't reset expression_context_block or
12276 * expression.h (enum innermost_block_tracker_type): Move from
12278 (parse_exp_1): Add tracker_types parameter.
12279 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12280 reset innermost_block.
12282 2019-03-23 Tom Tromey <tom@tromey.com>
12284 * objfiles.h: Include bcache.h.
12286 2019-03-23 Tom Tromey <tom@tromey.com>
12288 * linespec.c (get_current_search_block): Use
12289 scoped_restore_current_language.
12290 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12292 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12293 Jiong Wang <jiong.wang@arm.com>
12295 * aarch64-linux-tdep.c
12296 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12298 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12300 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12301 Jiong Wang <jiong.wang@arm.com>
12303 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12305 (aarch64_analyze_prologue_test): Add PACIASP test.
12306 (aarch64_prologue_prev_register): Unmask PC value.
12308 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12309 Jiong Wang <jiong.wang@arm.com>
12311 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12312 (aarch64_dwarf2_prev_register): Unmask PC value.
12313 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12314 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12315 DW_CFA_AARCH64_negate_ra_state.
12316 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12318 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12319 Jiong Wang <jiong.wang@arm.com>
12321 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12323 (aarch64_pseudo_register_name): Likewise.
12324 (aarch64_pseudo_register_type): Likewise.
12325 (aarch64_pseudo_register_reggroup_p): Likewise.
12326 (aarch64_gdbarch_init): Add pauth registers.
12327 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12328 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12329 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12330 (struct gdbarch_tdep): Add regnum for ra_state.
12332 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12333 Jiong Wang <jiong.wang@arm.com>
12335 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12337 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12338 Jiong Wang <jiong.wang@arm.com>
12340 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12342 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12343 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12344 (aarch64_gdbarch_init): Add puth registers.
12345 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12346 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12347 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12349 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12350 Jiong Wang <jiong.wang@arm.com>
12352 * aarch64-linux-nat.c
12353 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12354 * aarch64-linux-tdep.c
12355 (aarch64_linux_core_read_description): Likewise.
12356 (aarch64_linux_get_hwcap): New function.
12357 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12358 (aarch64_linux_get_hwcap): New declaration.
12360 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12361 Jiong Wang <jiong.wang@arm.com>
12363 * aarch64-linux-nat.c
12364 (aarch64_linux_nat_target::read_description): Add pauth param.
12365 * aarch64-linux-tdep.c
12366 (aarch64_linux_core_read_description): Likewise.
12367 * aarch64-tdep.c (struct target_desc): Add in pauth.
12368 (aarch64_read_description): Add pauth param.
12369 (aarch64_gdbarch_init): Likewise.
12370 * aarch64-tdep.h (aarch64_read_description): Likewise.
12371 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12372 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12373 * features/Makefile: Add new files.
12374 * features/aarch64-pauth.c: New file.
12375 * features/aarch64-pauth.xml: New file.
12377 2019-03-20 Tom Tromey <tromey@adacore.com>
12379 * infrun.c (handle_inferior_event): Rename from
12380 handle_inferior_event_1. Create a scoped_value_mark.
12381 (handle_inferior_event): Remove.
12383 2019-03-19 Tom Tromey <tromey@adacore.com>
12385 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12386 * infrun.h (print_stop_event): Add "displays" parameter.
12387 * infrun.c (print_stop_event): Add "displays" parameter.
12389 2019-03-19 Pedro Alves <palves@redhat.com>
12391 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12392 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12393 to -1. Fix TABs vs spaces.
12394 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12395 * tui/tui-out.h (tui_ui_out) Add intro comments.
12396 <m_line, m_start_of_line>: In-class initialize, and add describing
12399 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12401 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12403 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12405 2019-03-18 Pedro Alves <palves@redhat.com>
12406 Eli Zaretskii <eliz@gnu.org>
12408 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12409 m_line and m_start_of_line.
12411 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12413 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12414 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12415 it returns a newline. This fixes a regression in TU mode, whereby
12416 the next line is output on the same screen line as the user input.
12418 2019-03-18 Tom Tromey <tromey@adacore.com>
12420 * minsyms.c (minimal_symbol_reader::install): Remove call to
12423 2019-03-18 Pedro Alves <palves@redhat.com>
12425 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12427 (apply_style): New, factored out from ...
12428 (apply_ansi_escape): ... this. Handle reverse video mode.
12429 (tui_set_reverse_mode): New function.
12430 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12431 * tui/tui-winsource.c (tui_show_source_line): Use
12432 tui_set_reverse_mode instead of setting A_STANDOUT.
12433 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12434 New setter methods.
12436 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12438 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12441 2019-03-18 Tom Tromey <tromey@adacore.com>
12443 * ada-lang.c (empty_array): Add "high" parameter.
12444 (ada_evaluate_subexp): Update.
12446 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12448 * unittests/string_view-selftests.c: Define
12449 _initialize_string_view_selftests unconditionally.
12451 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12454 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12456 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12459 * windows-nat.c (display_selector): Fix format specifiers.
12461 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12463 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12464 tui_refill_source_window instead of tui_refresh_win, to update the
12465 current execution line. This fixes redisplay of the current line
12466 when stepping through the code with "next" or "step".
12468 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12470 * source-cache.c (source_cache::get_source_lines): Call
12471 find_source_lines to initialize s->nlines. This fixes vertical
12472 scrolling of TUI source window when the DOWN arrow is pressed.
12474 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12476 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12477 linux-thread-db.c (_initialize_thread_db): Likewise.
12479 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12481 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12482 wclrtoeol in tui_show_source_line". This reverts changes made in
12483 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12485 2019-03-15 Tom Tromey <tom@tromey.com>
12487 * symtab.h (struct minimal_symbol): Derive from
12488 general_symbol_info.
12489 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12490 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12491 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12492 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12493 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12494 (MSYMBOL_SEARCH_NAME): Update.
12495 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12496 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12497 * minsyms.c (minimal_symbol_reader::record_full): Update.
12499 2019-03-15 Tom Tromey <tom@tromey.com>
12501 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12503 2019-03-15 Tom Tromey <tom@tromey.com>
12505 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12506 unique_xmalloc_ptr.
12507 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12509 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12510 (build_minimal_symbol_hash_tables)
12511 (minimal_symbol_reader::install): Update.
12513 2019-03-15 Tom Tromey <tom@tromey.com>
12515 * symtab.c (create_demangled_names_hash): Update.
12516 (symbol_set_names): Update.
12517 * objfiles.h (struct objfile_per_bfd_storage)
12518 <demangled_names_hash>: Now an htab_up.
12519 * objfiles.c (objfile_per_bfd_storage): Simplify.
12521 2019-03-15 Tom Tromey <tom@tromey.com>
12523 * objfiles.h (struct objfile_per_bfd_storage): Declare
12525 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12527 (get_objfile_bfd_data): Use new. Don't initialize
12529 (free_objfile_per_bfd_storage): Remove.
12530 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12532 2019-03-15 Tom Tromey <tom@tromey.com>
12534 * symfile.c (reread_symbols): Update.
12535 * objfiles.c (objfile::objfile): Update.
12536 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12537 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12539 (minimal_symbol_reader::install): Update.
12540 (terminate_minimal_symbol_table): Remove.
12541 * jit.c (jit_object_close_impl): Update.
12543 2019-03-15 Tom Tromey <tom@tromey.com>
12545 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12548 2019-03-15 Tom Tromey <tom@tromey.com>
12550 * objfiles.h (struct objfile_per_bfd_storage)
12551 <demangled_hash_languages>: Now a bitset.
12552 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12553 (lookup_minimal_symbol): Update.
12555 2019-03-15 Tom Tromey <tom@tromey.com>
12557 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12558 Don't return the symbol.
12559 * coffread.c (record_minimal_symbol): Use record_full.
12561 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12563 The MS-Windows port of ncurses fails to switch to a color pair if
12564 one or both of the colors are the implicit default colors. This
12565 change records the default colors when TUI is initialized, and
12566 then specifies them explicitly when a color pair uses the default
12567 colors. This allows color styling in TUI mode on MS-Windows.
12569 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12571 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12572 colors in ncurses_norm_attr.
12573 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12574 "none", replace it with the default color recorded in
12577 2019-03-14 Tom Tromey <tromey@adacore.com>
12579 * source-cache.h (class source_cache) <get_source_lines>: Return
12581 * source-cache.c (source_cache::extract_lines): Handle case where
12582 first_pos==npos. Return std::string.
12583 (source_cache::get_source_lines): Update.
12585 2019-03-14 Tom Tromey <tromey@adacore.com>
12587 * NEWS: Add item for "style sources" commands.
12588 * source-cache.c (source_cache::get_source_lines): Check
12590 * cli/cli-style.c (source_styling): New global.
12591 (_initialize_cli_style): Add "style sources" commands.
12592 (show_style_sources): New function.
12593 * cli/cli-style.h (source_styling): Declare.
12595 2019-03-14 Pedro Alves <palves@redhat.com>
12596 Tom Tromey <tromey@adacore.com>
12598 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12599 * tui/tui-winsource.c (tui_refill_source_window): New function,
12601 (tui_horizontal_source_scroll): ... here. Move some logic.
12602 * cli/cli-style.c (set_style_enabled): Notify new observable.
12603 * tui/tui-hooks.c (tui_redisplay_source): New function.
12604 (tui_attach_detach_observers): Attach or detach
12605 tui_redisplay_source.
12606 * observable.h (source_styling_changed): New observable.
12607 * observable.c: Define source_styling_changed observable.
12609 2019-03-13 Tom Tromey <tromey@adacore.com>
12611 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12612 (i386_gnu_nat_target::store_registers): Update.
12613 * target-debug.h (target_debug_print_std_string): New macro.
12614 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12615 * windows-tdep.c (display_one_tib): Update.
12616 * tui/tui-stack.c (tui_make_status_line): Update.
12617 * top.c (print_inferior_quit_action): Update.
12618 * thread.c (thr_try_catch_cmd): Update.
12619 (add_thread_with_info): Update.
12620 (thread_target_id_str): Update.
12621 (thr_try_catch_cmd): Update.
12622 (thread_command): Update.
12623 (thread_find_command): Update.
12624 * record-btrace.c (record_btrace_target::info_record)
12625 (record_btrace_resume_thread, record_btrace_target::resume)
12626 (record_btrace_cancel_resume, record_btrace_step_thread)
12627 (record_btrace_target::wait, record_btrace_target::wait)
12628 (record_btrace_target::wait, record_btrace_target::stop): Update.
12629 * progspace.c (print_program_space): Update.
12630 * process-stratum-target.c
12631 (process_stratum_target::thread_address_space): Update.
12632 * linux-fork.c (linux_fork_mourn_inferior)
12633 (detach_checkpoint_command, info_checkpoints_command)
12634 (linux_fork_context): Update.
12635 (linux_fork_detach): Update.
12636 (class scoped_switch_fork_info): Update.
12637 (delete_checkpoint_command): Update.
12638 * infrun.c (follow_fork_inferior): Update.
12639 (follow_fork_inferior): Update.
12640 (proceed_after_vfork_done): Update.
12641 (handle_vfork_child_exec_or_exit): Update.
12642 (follow_exec): Update.
12643 (displaced_step_prepare_throw): Update.
12644 (displaced_step_restore): Update.
12645 (start_step_over): Update.
12646 (resume_1): Update.
12647 (clear_proceed_status_thread): Update.
12649 (print_target_wait_results): Update.
12650 (do_target_wait): Update.
12651 (context_switch): Update.
12652 (stop_all_threads): Update.
12653 (restart_threads): Update.
12654 (finish_step_over): Update.
12655 (handle_signal_stop): Update.
12656 (switch_back_to_stepped_thread): Update.
12657 (keep_going_pass_signal): Update.
12658 (print_exited_reason): Update.
12659 (normal_stop): Update.
12660 * inferior.c (inferior_pid_to_str): Change return type.
12661 (print_selected_inferior): Update.
12662 (add_inferior): Update.
12663 (detach_inferior): Update.
12664 * dummy-frame.c (fprint_dummy_frames): Update.
12665 * dcache.c (dcache_info_1): Update.
12666 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12667 (btrace_fetch, btrace_clear): Update.
12668 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12669 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12671 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12672 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12673 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12674 * gdbarch.c, gdbarch.h: Rebuild.
12675 * gdbarch.sh (core_pid_to_str): Change return type.
12676 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12678 (windows_nat_target::pid_to_str): Change return type.
12679 (windows_delete_thread): Update.
12680 (windows_nat_target::attach): Update.
12681 (windows_nat_target::files_info): Update.
12682 * target-delegates.c: Rebuild.
12683 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12685 (sol_thread_target::pid_to_str): Change return type.
12686 * remote.c (class remote_target) <pid_to_str>: Change return
12688 (remote_target::pid_to_str): Change return type.
12689 (extended_remote_target::attach, remote_target::remote_stop_ns)
12690 (remote_target::remote_notif_remove_queued_reply)
12691 (remote_target::push_stop_reply, remote_target::disable_btrace):
12693 (extended_remote_target::attach): Update.
12694 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12696 (gdbsim_target::pid_to_str): Change return type.
12697 * ravenscar-thread.c (struct ravenscar_thread_target)
12698 <pid_to_str>: Change return type.
12699 (ravenscar_thread_target::pid_to_str): Change return type.
12700 * procfs.c (class procfs_target) <pid_to_str>: Change return
12702 (procfs_target::pid_to_str): Change return type.
12703 (procfs_target::attach): Update.
12704 (procfs_target::detach): Update.
12705 (procfs_target::fetch_registers): Update.
12706 (procfs_target::store_registers): Update.
12707 (procfs_target::wait): Update.
12708 (procfs_target::files_info): Update.
12709 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12710 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12712 (nto_procfs_target::pid_to_str): Change return type.
12713 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12714 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12716 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12717 (exit_lwp): Update.
12718 (attach_proc_task_lwp_callback, get_detach_signal)
12719 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12720 (linux_nat_target::resume, wait_lwp, stop_callback)
12721 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12722 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12723 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12724 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12725 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12727 (inf_ptrace_target::attach): Update.
12728 (inf_ptrace_target::files_info): Update.
12729 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12731 (go32_nat_target::pid_to_str): Change return type.
12732 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12733 (gnu_nat_target::wait): Update.
12734 (gnu_nat_target::wait): Update.
12735 (gnu_nat_target::resume): Update.
12736 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12737 (fbsd_nat_target::wait): Update.
12738 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12740 (darwin_nat_target::attach): Update.
12741 * corelow.c (class core_target) <pid_to_str>: Change return type.
12742 (core_target::pid_to_str): Change return type.
12743 * target.c (normal_pid_to_str): Change return type.
12744 (default_pid_to_str): Likewise.
12745 (target_pid_to_str): Change return type.
12746 (target_translate_tls_address): Update.
12747 (target_announce_detach): Update.
12748 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12750 (bsd_uthread_target::pid_to_str): Change return type.
12751 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12753 (bsd_kvm_target::pid_to_str): Change return type.
12754 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12756 (aix_thread_target::pid_to_str): Change return type.
12757 * target.h (struct target_ops) <pid_to_str>: Change return type.
12758 (target_pid_to_str, normal_pid_to_str): Likewise.
12759 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12761 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12763 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12765 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12767 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12769 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12772 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12774 * NEWS: Mention that the new default MI version is 3. Mention
12775 changes to the output of commands and events that deal with
12776 multi-location breakpoints.
12777 * breakpoint.c: Include "mi/mi-out.h".
12778 (print_one_breakpoint): Change output syntax if using MI version
12780 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12782 (mi_multi_location_breakpoint_output_fixed): New.
12783 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12784 (mi_cmd_fix_multi_location_breakpoint_output): New.
12785 (mi_multi_location_breakpoint_output_fixed): New.
12786 * mi/mi-cmds.c (mi_cmds): Register command
12787 -fix-multi-location-breakpoint-output.
12788 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12791 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12793 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12794 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12795 instantiate mi_ui_out based on interpreter name.
12796 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12797 * mi/mi-main.c (mi_load_progress): Likewise.
12799 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12801 * NEWS: Combine separate "New targets" sections for 8.3.
12803 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12805 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12806 (ppcfbsd_init_abi): Install gdbarch
12807 "fetch_tls_load_module_address" and "get_thread_local_address"
12810 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12812 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12813 (riscv_fbsd_init_abi): Install gdbarch
12814 "fetch_tls_load_module_address" and "get_thread_local_address"
12817 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12819 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12820 (i386fbsd_init_abi): Install gdbarch
12821 "fetch_tls_load_module_address" and "get_thread_local_address"
12824 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12826 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12827 (amd64fbsd_init_abi): Install gdbarch
12828 "fetch_tls_load_module_address" and "get_thread_local_address"
12831 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12833 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12834 (struct fbsd_pspace_data): New type.
12835 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12836 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12837 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12838 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12839 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12841 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12843 * gdbtypes.c (lookup_struct_elt): New function.
12844 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12845 * gdbtypes.h (struct struct_elt): New type.
12846 (lookup_struct_elt): New prototype.
12848 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12850 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12851 remove disabled code block.
12853 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12855 * gdbarch.sh (get_thread_local_address): New method.
12856 * gdbarch.h, gdbarch.c: Regenerate.
12857 * target.c (target_translate_tls_address): Use
12858 gdbarch_get_thread_local_address if present instead of
12859 target::get_thread_local_address.
12861 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12863 * target.h (target::get_thread_local_address): Update comment.
12865 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12867 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12868 objfile->separate_debug_objfile_backlink if not NULL.
12870 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12872 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12873 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12874 (amd64bsd_store_inferior_registers): Likewise.
12875 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12876 Enable segment base registers.
12877 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12878 PT_GETFSBASE and PT_GETGSBASE.
12879 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12881 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12882 segment base registers.
12883 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12885 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12887 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12888 Update calls to i386_target_description to add 'segments'
12890 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12891 add segment base registers.
12892 * arch/i386.c (i386_create_target_description): Add 'segments'
12893 parameter to enable segment base registers.
12894 * arch/i386.h (i386_create_target_description): Likewise.
12895 * features/i386/32bit-segments.xml: New file.
12896 * features/i386/32bit-segments.c: Generate.
12897 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12898 call to i386_target_description to add 'segments' parameter.
12899 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12900 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12901 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12902 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12903 if feature is present.
12904 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12905 Add 'segments' parameter to call to i386_target_description.
12906 (i386_target_description): Add 'segments' parameter to enable
12907 segment base registers.
12908 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12909 to call to i386_target_description.
12910 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12911 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12912 Define I386_NUM_REGS.
12913 (i386_target_description): Add 'segments' parameter to enable
12914 segment base registers.
12916 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12919 * source-cache.c: #undef open and close, to avoid unresolved
12920 externals during linking.
12922 2019-03-12 Tom Tromey <tromey@adacore.com>
12924 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12925 const. Add initializers.
12926 (_initialize_remote): Don't initialize ptid globals.
12928 2019-03-12 Pedro Alves <palves@redhat.com>
12930 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12932 2019-03-12 Pedro Alves <palves@redhat.com>
12934 * cp-name-parser.y (main): Remove unused 'len' variable.
12936 2019-03-12 Tom Tromey <tromey@adacore.com>
12938 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12939 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12941 2019-03-12 Tom Tromey <tromey@adacore.com>
12943 * linux-nat.c (iterate_over_lwps): Update.
12944 (stop_callback): Remove parameter.
12945 (stop_wait_callback, detach_callback, resume_set_callback)
12946 (select_singlestep_lwp_callback, set_ignore_sigint)
12947 (status_callback, resumed_callback, resume_clear_callback)
12948 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12950 (linux_nat_target::detach, linux_nat_target::resume)
12951 (linux_stop_and_wait_all_lwps, select_event_lwp)
12952 (linux_nat_filter_event, linux_nat_wait_1)
12953 (linux_nat_target::kill, linux_nat_target::stop)
12954 (linux_nat_target::stop): Update.
12955 (linux_nat_resume_callback): Change type.
12956 (resume_stopped_resumed_lwps, count_events_callback)
12957 (select_event_lwp_callback): Likewise.
12958 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12959 * arm-linux-nat.c (struct update_registers_data): Remove.
12960 (update_registers_callback): Change type.
12961 (arm_linux_insert_hw_breakpoint1): Update.
12962 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12964 (x86_linux_dr_set_addr): Update.
12965 (x86_linux_dr_set_control): Update.
12966 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12967 (iterate_over_lwps): Use gdb::function_view.
12968 * nat/aarch64-linux-hw-point.c (struct
12969 aarch64_dr_update_callback_param): Remove.
12970 (debug_reg_change_callback): Change type.
12971 (aarch64_notify_debug_reg_change): Update.
12972 * s390-linux-nat.c (s390_refresh_per_info): Update.
12974 2019-03-11 Tom Tromey <tromey@adacore.com>
12976 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12977 redundant assignment to "this_cu".
12979 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12981 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12983 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12985 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12987 (rank_one_type): ... this.
12989 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12991 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12993 (rank_one_type): ... this.
12995 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12997 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12999 (rank_one_type): ... this.
13001 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13003 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13005 (rank_one_type): ... this.
13007 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13009 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13011 (rank_one_type): ... this.
13013 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13015 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13017 (rank_one_type): ... this.
13019 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13021 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13023 (rank_one_type): ... this.
13025 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13027 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13029 (rank_one_type): ... this.
13031 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13033 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13035 (rank_one_type): ... this.
13037 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13039 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13041 (rank_one_type): ... this.
13043 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13045 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13047 (rank_one_type): ... this.
13049 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13051 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13053 (rank_one_type): ... this.
13055 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13057 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13058 inferior-events' shows the example events.
13060 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13062 Support styling on native MS-Windows console
13065 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13066 on MS-Windows if $TERM is not defined.
13068 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13070 * posix-hdep.c (gdb_console_fputs):
13071 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13073 * ui-file.h (gdb_console_fputs): Add prototype.
13075 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13076 back to fputs only if the former returns zero.
13078 2019-03-07 Tom Tromey <tom@tromey.com>
13080 * symmisc.c (print_symbol_bcache_statistics): Update.
13081 (print_objfile_statistics): Update.
13082 * symfile.c (allocate_symtab): Update.
13083 * stabsread.c: Don't include bcache.h.
13084 * psymtab.h (struct psymbol_bcache): Don't declare.
13085 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13086 (psymbol_bcache_init, psymbol_bcache_free)
13087 (psymbol_bcache_get_bcache): Don't declare.
13088 * psymtab.c (struct psymbol_bcache): Remove.
13089 (psymtab_storage::psymtab_storage): Update.
13090 (psymtab_storage::~psymtab_storage): Update.
13091 (psymbol_bcache_init, psymbol_bcache_free)
13092 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13093 (add_psymbol_to_bcache): Update.
13094 (allocate_psymtab): Update.
13095 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13096 macro_cache>: No longer pointers.
13097 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13098 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13099 * macrotab.c (macro_bcache): Update.
13100 * macroexp.c: Don't include bcache.h.
13101 * gdbtypes.c (check_types_worklist): Update.
13102 (types_deeply_equal): Remove TRY/CATCH. Update.
13103 * elfread.c (elf_symtab_read): Update.
13104 * dwarf2read.c: Don't include bcache.h.
13105 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13106 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13107 (print_bcache_statistics, bcache_memory_used): Don't declare.
13108 (struct bcache): Move from bcache.c. Add constructor, destructor,
13109 methods. Rename all data members.
13110 * bcache.c (struct bcache): Move to bcache.h.
13111 (bcache::expand_hash_table): Rename from expand_hash_table.
13113 (bcache::insert): Rename from bcache_full.
13114 (bcache::compare): Rename from bcache_compare.
13115 (bcache_xmalloc): Remove.
13116 (bcache::~bcache): Rename from bcache_xfree.
13117 (bcache::print_statistics): Rename from print_bcache_statistics.
13118 (bcache::memory_used): Rename from bcache_memory_used.
13120 2019-03-07 Pedro Alves <palves@redhat.com>
13122 * infrun.c (normal_stop): Also check for
13123 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13125 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13127 * f-lang.c (value_from_host_double): Moved to...
13128 * value.c (value_from_host_double): ...here.
13129 * value.h (value_from_host_double): Declare.
13130 * guile/scm-math.c (vlscm_convert_typed_number): Use
13131 value_from_host_double.
13132 (vlscm_convert_number): Likewise.
13133 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13134 * python/py-value.c (convert_value_from_python): Likewise.
13136 2019-03-06 Tom Tromey <tom@tromey.com>
13138 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13140 2019-03-06 Tom Tromey <tom@tromey.com>
13142 * utils.h (free_current_contents): Don't declare.
13143 * utils.c (free_current_contents): Remove.
13145 2019-03-06 Tom Tromey <tom@tromey.com>
13147 * top.c (quit_force): Update.
13148 * main.c (captured_command_loop): Update.
13149 * common/new-op.c (operator new): Update.
13150 * common/common-exceptions.c (struct catcher)
13151 <save_cleanup_chain>: Remove member.
13152 (exceptions_state_mc_init): Update.
13153 (exception_try_scope_entry): Return nullptr.
13154 (exception_try_scope_exit, exception_rethrow)
13155 (throw_exception_sjlj, throw_exception_cxx): Update.
13156 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13157 (all_cleanups, do_cleanups, discard_cleanups)
13158 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13159 (restore_cleanups, restore_final_cleanups): Don't declare.
13160 (do_final_cleanups): Remove parameter.
13161 * common/cleanups.c (cleanup_chain, make_cleanup)
13162 (make_cleanup_dtor, all_cleanups, do_cleanups)
13163 (discard_my_cleanups, discard_cleanups)
13164 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13165 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13166 (null_cleanup): Remove.
13167 (do_final_cleanups): Remove parameter.
13169 2019-03-06 Tom Tromey <tom@tromey.com>
13171 * remote.c (remote_target::remote_parse_stop_reply): Use
13172 unique_xmalloc_ptr.
13174 2019-03-06 Tom Tromey <tom@tromey.com>
13176 * stabsread.c (struct stabs_field_info): Rename from field_info.
13177 <list, fnlist>: Add initializers.
13178 <obstack>: New member.
13179 (read_member_functions, read_struct_fields, read_baseclasses):
13180 Allocate on obstack. Don't use cleanups.
13181 (read_one_struct_field, read_member_functions, read_struct_fields)
13182 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13183 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13184 (read_struct_type): Update.
13186 2019-03-06 Tom Tromey <tom@tromey.com>
13188 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13189 * common/filestuff.h (make_cleanup_close): Don't declare.
13190 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13193 2019-03-06 Tom Tromey <tom@tromey.com>
13195 * solib-aix.c: Use make_scope_exit.
13197 2019-03-06 Tom Tromey <tom@tromey.com>
13199 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13200 Use make_scope_exit.
13202 2019-03-06 Tom Tromey <tom@tromey.com>
13204 * solib-svr4.c (disable_probes_interface): Remove parameter.
13205 (svr4_handle_solib_event): Use make_scope_exit.
13207 2019-03-06 Tom Tromey <tom@tromey.com>
13209 * remote.c (struct stop_reply_deleter): Remove.
13210 (stop_reply_up): Update.
13211 (struct stop_reply): Derive from notif_event. Don't typedef.
13212 <regcache>: Now a std::vector.
13213 (stop_reply_xfree): Remove.
13214 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13215 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13216 (remote_target::discard_pending_stop_replies): Use delete.
13217 (remote_target::remote_parse_stop_reply): Update.
13218 (remote_target::process_stop_reply): Update.
13219 * remote-notif.h (struct notif_event): Add virtual destructor.
13220 Remove "dtr" member.
13221 (struct notif_client) <alloc_event>: Return a unique_ptr.
13222 (notif_event_xfree): Don't declare.
13223 (notif_event_up): New typedef.
13224 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13225 (notif_event_xfree, do_notif_event_xfree): Remove.
13226 (remote_notif_state_xfree): Update.
13228 2019-03-06 Tom Tromey <tom@tromey.com>
13230 * infrun.c (displaced_step_clear_cleanup): Now a
13231 forward_scope_exit type.
13232 (displaced_step_prepare_throw): Update.
13233 (displaced_step_fixup): Update.
13235 2019-03-06 Tom Tromey <tom@tromey.com>
13237 * inferior.h (class inferior): Update comment.
13238 * gdbthread.h (class thread_info): Update comment.
13240 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13241 Tom Tromey <tom@tromey.com>
13243 * stabsread.h (struct stab_section_list): Remove.
13244 (coffstab_build_psymtabs): Update.
13245 * dbxread.c (symbuf_sections): Now a std::vector.
13246 (sect_idx): New global.
13247 (fill_symbuf): Update.
13248 (coffstab_build_psymtabs): Change type of stabsects parameter.
13250 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13252 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13253 (coff_locate_sections): Update.
13254 (coff_symfile_read): Remove cleanups. Update.
13255 (init_stringtab): Add storage parameter.
13256 (free_stringtab, free_stringtab_cleanup): Remove.
13257 (init_lineno): Add storage parameter.
13258 (free_linetab, free_linetab_cleanup): Remove.
13260 2019-03-06 Pedro Alves <palves@redhat.com>
13262 * linux-fork.c (fork_info::clobber_regs): Delete.
13263 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13264 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13266 (scoped_switch_fork_info::scoped_switch_fork_info)
13267 (checkpoint_command, linux_fork_context): Adjust
13268 fork_save_infrun_state calls.
13270 2019-03-06 Pedro Alves <palves@redhat.com>
13272 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13273 (inf_has_multiple_threads): Return 'bool' and rewrite using
13274 inferior_info::threads().
13276 2019-03-06 Pedro Alves <palves@redhat.com>
13278 * linux-fork.c: Include <list>.
13279 (fork_list): Now a std::list instance.
13280 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13281 (forks_exist_p, find_last_fork): Adjust.
13282 (new_fork): Delete.
13284 (add_fork): Adjust.
13285 (free_fork): Delete, folded into fork_info::~fork_info().
13286 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13288 (init_fork_list): Delete.
13289 (linux_fork_killall, linux_fork_mourn_inferior)
13290 (linux_fork_detach, info_checkpoints_command): Adjust.
13291 (_initialize_linux_fork): No longer call init_fork_list.
13293 2019-03-06 Pedro Alves <palves@redhat.com>
13295 * linux-fork.c (new_fork): New, split out of ...
13296 (add_fork): ... this. Return void. Move "first fork" special
13297 case from here, to ...
13298 (checkpoint_command): ... here.
13299 * linux-linux.h (add_fork): Return void.
13301 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13303 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13305 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13306 Chris January <chris.january@arm.com>
13307 David Lecomber <david.lecomber@arm.com>
13309 * f-exp.y: New token, UNOP_INTRINSIC.
13310 (exp): New pattern using UNOP_INTRINSIC token.
13311 (f77_keywords): Add 'abs' keyword.
13312 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13313 (value_from_host_double): New function.
13314 (evaluate_subexp_f): Support UNOP_ABS.
13316 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13318 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13321 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13323 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13324 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13325 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13327 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13329 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13331 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13332 Chris January <chris.january@arm.com>
13334 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13335 * f-exp.y: Define 'KIND' token.
13336 (exp): New pattern for KIND expressions.
13337 (ptype): Handle types with a kind extension.
13338 (direct_abs_decl): Extend to spot kind extensions.
13339 (f77_keywords): Add 'kind' to the list.
13340 (push_kind_type): New function.
13341 (convert_to_kind_type): New function.
13342 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13343 * parse.c (operator_length_standard): Likewise.
13344 * parser-defs.h (enum type_pieces): Add tp_kind.
13345 * std-operator.def: Add UNOP_KIND.
13347 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13349 * f-exp.y (f_parse): Set yydebug.
13351 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13353 * f-lang.c (evaluate_subexp_f): New function.
13354 (exp_descriptor_f): New global.
13355 (f_language_defn): Use exp_descriptor_f instead of
13356 exp_descriptor_standard.
13358 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13360 * f-exp.y (struct token): Add comments.
13361 (dot_ops): Remove uppercase versions and the end marker.
13362 (f77_keywords): Likewise.
13363 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13364 entries in the dot_ops array are case insensitive, and use
13365 strncasecmp to compare strings. Also some whitespace cleanup in
13366 this area. Similar for the f77_keywords array, except entries in
13367 this list might be case sensitive.
13369 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13371 * f-exp.y (struct f77_boolean_val): Add comments.
13372 (boolean_values): Remove uppercase versions, and end marker.
13373 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13374 and use strncasecmp to achieve case insensitivity. Additionally,
13375 perform whitespace cleanup around this code.
13377 2019-03-06 Tom Tromey <tromey@adacore.com>
13379 * remote-sim.c (gdbsim_target_open): Use result of
13382 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13383 Dirk Schubert <dirk.schubert@arm.com>
13384 Chris January <chris.january@arm.com>
13386 * eval.c (evaluate_subexp_standard): Call Fortran argument
13388 * f-lang.c (struct value): A value which can be passed into a
13389 Fortran function call.
13390 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13392 (struct type): Value ready for a Fortran function call.
13393 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13395 * f-lang.h (fortran_argument_convert): Declaration.
13396 (fortran_preserve_arg_pointer): Declaration.
13397 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13399 2019-03-05 Tom Tromey <tromey@adacore.com>
13401 * python/py-prettyprint.c (print_string_repr): Remove #if.
13402 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13404 2019-03-05 Tom Tromey <tromey@adacore.com>
13406 * target.c (the_dummy_target): Move later. Change type to
13408 (initialize_targets): Don't initialize the_dummy_target.
13410 2019-03-05 Tom Tromey <tromey@adacore.com>
13412 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13413 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13415 2019-03-05 Tom Tromey <tromey@adacore.com>
13417 * windows-nat.c (windows_nat_target::attach)
13418 (windows_nat_target::detach): Don't call gdb_flush.
13419 * valprint.c (generic_val_print, val_print, val_print_string):
13420 Don't call gdb_flush.
13421 * utils.c (defaulted_query): Don't call gdb_flush.
13422 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13423 * target.c (target_announce_detach): Don't call gdb_flush.
13424 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13425 * remote.c (extended_remote_target::attach): Don't call
13427 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13428 * printcmd.c (do_examine): Don't call gdb_flush.
13429 (info_display_command): Don't call gdb_flush.
13430 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13431 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13432 * memattr.c (info_mem_command): Don't call gdb_flush.
13433 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13434 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13435 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13436 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13437 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13438 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13439 (gnu_nat_target::detach): Don't call gdb_flush.
13440 * f-valprint.c (f_val_print): Don't call gdb_flush.
13441 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13442 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13443 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13445 * c-valprint.c (c_val_print): Don't call gdb_flush.
13446 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13448 2019-03-05 Tom Tromey <tromey@adacore.com>
13450 * varobj.c (update_dynamic_varobj_children): Update.
13451 (install_default_visualizer): Use reset, not release.
13452 * value.c (set_internalvar): Update.
13453 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13454 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13455 ATTRIBUTE_UNUSED_RESULT.
13457 2019-03-05 Tom Tromey <tromey@adacore.com>
13459 * remote.c (class scoped_remote_fd) <release>: Add
13460 ATTRIBUTE_UNUSED_RESULT.
13462 2019-03-05 Tom Tromey <tromey@adacore.com>
13464 * macroexp.c (struct macro_buffer) <release>: Add
13465 ATTRIBUTE_UNUSED_RESULT.
13467 2019-03-05 Tom Tromey <tromey@adacore.com>
13469 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13470 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13471 ATTRIBUTE_UNUSED_RESULT.
13473 2019-03-05 Tom Tromey <tromey@adacore.com>
13475 * common/scoped_fd.h (class scoped_fd) <release>: Add
13476 ATTRIBUTE_UNUSED_RESULT.
13478 2019-03-05 Tom Tromey <tromey@adacore.com>
13480 * parser-defs.h (struct parser_state) <release>: Add
13481 ATTRIBUTE_UNUSED_RESULT.
13483 2019-03-05 Tom Tromey <tromey@adacore.com>
13485 * utils.h (class gdb_argv) <release>: Add
13486 ATTRIBUTE_UNUSED_RESULT.
13487 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13489 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13491 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13492 for-loop range, to avoid compiler warnings.
13494 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13495 avoid compiler warnings about unused variables.
13497 * NEWS: Mention end of support for native debugging on MS-Windows
13501 * common/netstuff.c:
13502 * gdbserver/gdbreplay.c
13503 * gdbserver/remote-utils.c:
13505 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13506 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13507 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13508 'getaddrinfo' and 'freeaddrinfo' were not available before
13509 Windows XP, and mingw.org's MinGW headers by default define
13510 _WIN32_WINNT to 0x500.
13512 2019-03-01 Gary Benson <gbenson@redhat.com>
13514 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13516 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13517 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13520 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13521 set_sigint_trap, clear_sigint_trap.
13523 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13525 * target.c (target_detach): Clear the regcache and the
13528 2019-02-27 Pedro Alves <palves@redhat.com>
13530 * utils.c (set_screen_size): When we cap the height/width sizes,
13531 tweak the corresponding command variable to show "unlimited":
13533 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13534 Pedro Alves <palves@redhat.com>
13536 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13537 before calling rl_set_screen_size.
13539 2019-02-27 Tom Tromey <tromey@adacore.com>
13541 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13543 * python/py-value.c: Remove Python 2.4 workaround.
13544 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13546 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13547 Python 2.4 workaround.
13548 * python/python-internal.h: Remove Python 2.4 comment.
13549 (Py_ssize_t): Don't define.
13550 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13551 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13552 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13553 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13554 * python/python.c (do_start_initialization): Remove Python 2.4
13556 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13557 (print_children): Remove Python 2.4 workaround.
13558 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13560 (CHARBUFFERPROC_NAME): Remove.
13561 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13562 Python 2.4 workaround.
13564 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13566 * NEWS: Note minimum Python version.
13568 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13570 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13571 code from these functions. Remove corresponding ifdefs. Use
13572 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13573 Remove gotos and target of gotos.
13574 (infpy_search_memory): Likewise.
13576 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13578 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13579 (hppa_gdbarch_init): Don't register deleted functions with
13582 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13584 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13585 (h8300_unwind_sp): Delete.
13586 (h8300_dummy_id): Delete.
13587 (h8300_gdbarch_init): Don't register deleted functions with
13590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13592 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13593 (ft32_unwind_pc): Delete.
13594 (ft32_unwind_sp): Delete.
13595 (ft32_gdbarch_init): Don't register deleted functions with
13598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13600 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13601 (frv_unwind_pc): Delete.
13602 (frv_unwind_sp): Delete.
13603 (frv_gdbarch_init): Don't register deleted functions with
13606 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13608 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13609 (riscv_unwind_pc): Delete.
13610 (riscv_unwind_sp): Delete.
13611 (riscv_gdbarch_init): Don't register deleted functions with
13614 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13616 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13617 (csky_unwind_pc): Delete.
13618 (csky_unwind_sp): Delete.
13619 (csky_gdbarch_init): Don't register deleted functions with
13622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13624 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13625 (cris_unwind_pc): Delete.
13626 (cris_unwind_sp): Delete.
13627 (cris_gdbarch_init): Don't register deleted functions with
13630 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13632 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13633 (bfin_unwind_pc): Delete.
13634 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13636 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13638 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13639 (arm_unwind_pc): Delete.
13640 (arm_unwind_sp): Delete.
13641 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13643 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13645 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13646 (arc_unwind_pc): Delete.
13647 (arc_unwind_sp): Delete.
13648 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13650 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13652 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13653 (alpha_unwind_pc): Delete.
13654 (alpha_gdbarch_init): Don't register deleted functions with
13657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13659 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13660 (aarch64_unwind_pc): Delete.
13661 (aarch64_unwind_sp): Delete.
13662 (aarch64_gdbarch_init): Don't register deleted functions with
13665 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13667 * gdbtypes.c (type_align): Don't consider static members when
13668 computing structure alignment.
13670 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13672 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13673 return 0 for other types.
13674 * arch-utils.c (default_type_align): Always return 0.
13675 * gdbarch.h: Regenerate.
13676 * gdbarch.sh (type_align): Extend comment.
13677 * gdbtypes.c (type_align): Add additional comments, always call
13678 gdbarch_type_align before applying the default rules.
13679 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13680 generic code will then apply a suitable default.
13681 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13682 types, return 0 for other types.
13684 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13686 * NEWS: Create a new section for the next release branch.
13687 Rename the section of the current branch, now that it has
13690 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13692 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13693 * version.in: Bump version to 8.3.50.DATE-git.
13695 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13697 * aix-thread.c (ptid_cmp): Remove unused variable.
13698 (get_signaled_thread): Likewise.
13699 (store_regs_user_thread): Likewise.
13700 (store_regs_kernel_thread): Likewise.
13701 (fetch_regs_kernel_thread): Remove shadowed variable.
13703 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13705 * features/riscv/32bit-cpu.xml: Add register numbers.
13706 * features/riscv/32bit-fpu.c: Regenerate.
13707 * features/riscv/32bit-fpu.xml: Add register numbers.
13708 * features/riscv/64bit-cpu.xml: Add register numbers.
13709 * features/riscv/64bit-fpu.c: Regenerate.
13710 * features/riscv/64bit-fpu.xml: Add register numbers.
13712 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13714 * NEWS: Mention two argument form of gdb.Value constructor.
13715 * python/py-value.c (convert_buffer_and_type_to_value): New
13717 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13718 Add support for handling an optional second argument. Call
13719 convert_buffer_and_type_to_value as appropriate.
13720 * python/python-internal.h (Py_buffer_deleter): New struct.
13721 (Py_buffer_up): New typedef.
13723 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13725 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13726 instead of releasing ownership.
13728 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13730 * dwarf2read.c (open_and_init_dwp_file): Call
13731 elf_numsections instead of bfd_count_sections to initialize
13732 dwp_file->num_sections.
13734 2019-02-25 Tom Tromey <tromey@adacore.com>
13736 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13738 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13740 * gcore.in: Add '--readnever' option when invoking GDB.
13742 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13744 * MAINTAINERS: Update my email address.
13746 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13748 * build-id.c (build_id_to_debug_bfd_1): New function.
13749 (build_id_to_debug_bfd): Look for separate debug file in
13752 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13754 * gdbarch.sh: Update the copyright year range that is placed into
13757 2019-02-22 Keith Seitz <keiths@redhat.com>
13760 * linespec.c (create_sals_line_offset): Search for the default
13761 symtab's filename instead of its fullname.
13763 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13765 * NEWS: Update style defaults.
13767 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13769 * main.c (captured_main_1): Disable styling in batch mode.
13771 2019-02-20 Tom Tromey <tom@tromey.com>
13773 * symtab.c (symtab_symbol_info): Fix typos.
13775 2019-02-20 Tom Tromey <tromey@adacore.com>
13777 * findcmd.c (_initialize_mem_search): Use upper case for
13778 metasyntactic variables.
13780 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13782 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13783 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13785 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13787 * top.h (source_file_name): Change to std::string.
13788 * top.c (source_file_name): Likewise.
13789 (command_line_input): Adjust.
13790 * cli/cli-script.c (script_from_file): Adjust.
13792 2019-02-19 Tom Tromey <tromey@adacore.com>
13794 * ravenscar-thread.c
13795 (ravenscar_thread_target::update_thread_list): Don't call
13796 ada_build_task_list.
13797 * ada-lang.h (ada_build_task_list): Don't declare.
13798 * ada-tasks.c (struct ada_tasks_inferior_data)
13799 <task_list_valid_p>: Now bool.
13800 (read_known_tasks, ada_task_list_changed)
13801 (ada_tasks_invalidate_inferior_data): Update.
13802 (read_known_tasks_array): Return bool.
13803 (read_known_tasks_list): Likewise.
13804 (read_known_tasks): Return void.
13805 (ada_build_task_list): Now static.
13807 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13809 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13810 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13812 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13814 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13815 variant for ada_tasks_pspace_data_handle and
13816 ada_tasks_inferior_data_handle.
13817 (ada_tasks_pspace_data_cleanup): New function.
13818 (ada_tasks_inferior_data_cleanup): New function.
13820 2019-02-17 Tom Tromey <tom@tromey.com>
13822 * macrotab.h (macro_source_fullname): Return a std::string.
13823 * macrotab.c (macro_include, check_for_redefinition)
13824 (macro_undef, macro_lookup_definition, foreach_macro)
13825 (foreach_macro_in_scope): Update.
13826 (macro_source_fullname): Return a std::string.
13827 * macrocmd.c (show_pp_source_pos): Update.
13829 2019-02-17 Tom Tromey <tom@tromey.com>
13831 * macrocmd.c (show_pp_source_pos): Style the file names.
13833 2019-02-17 Tom Tromey <tom@tromey.com>
13836 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13838 2019-02-17 Tom Tromey <tom@tromey.com>
13840 * ada-lang.c (user_select_syms): Use filtered printing.
13841 * utils.c (wrap_style): New global.
13842 (desired_style): Remove.
13843 (emit_style_escape): Add stream parameter.
13844 (set_output_style, reset_terminal_style, prompt_for_continue):
13846 (flush_wrap_buffer): Only flush gdb_stdout.
13847 (wrap_here): Set wrap_style.
13848 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13849 treat escape sequences as a character. Change when wrap buffer is
13851 (fputs_styled): Do not set the output style when the default is
13853 * ui-style.h (struct ui_file_style) <is_default>: New method.
13854 * source.c (print_source_lines_base): Emit escape sequences in one
13857 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13859 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13860 integers and enumeration types.
13862 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13864 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13865 instead of lookup_symbol_in_language
13866 (do_exact_match): New function.
13867 (ada_get_symbol_name_matcher): Return do_exact_match when
13868 doing a verbatim match.
13870 2019-02-15 Tom Tromey <tromey@adacore.com>
13872 * ravenscar-thread.c (ravenscar_thread_target::resume)
13873 (ravenscar_thread_target::wait): Special case wildcard requests.
13875 2019-02-15 Tom Tromey <tromey@adacore.com>
13877 * ravenscar-thread.c (base_ptid): Remove.
13878 (struct ravenscar_thread_target) <close>: New method.
13879 <m_base_ptid>: New member.
13880 <update_inferior_ptid, active_task, task_is_currently_active,
13881 runtime_initialized>: Declare methods.
13882 <ravenscar_thread_target>: Add constructor.
13883 (ravenscar_thread_target::task_is_currently_active)
13884 (ravenscar_thread_target::update_inferior_ptid)
13885 (ravenscar_runtime_initialized): Rename. Now methods.
13886 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13887 (ravenscar_thread_target::update_thread_list): Update.
13888 (ravenscar_thread_target::active_task): Now method.
13889 (ravenscar_thread_target::store_registers)
13890 (ravenscar_thread_target::prepare_to_store)
13891 (ravenscar_thread_target::prepare_to_store)
13892 (ravenscar_thread_target::mourn_inferior): Update.
13893 (ravenscar_inferior_created): Use "new" to create target.
13894 (ravenscar_thread_target::get_ada_task_ptid): Update.
13895 (_initialize_ravenscar): Don't initialize base_ptid.
13896 (ravenscar_ops): Remove global.
13898 2019-02-15 Tom Tromey <tromey@adacore.com>
13900 * target.h (push_target): Declare new overload.
13901 * target.c (push_target): New overload, taking an rvalue reference.
13902 * remote.c (remote_target::open_1): Use push_target overload.
13903 * corelow.c (core_target_open): Use push_target overload.
13905 2019-02-15 Tom Tromey <tromey@adacore.com>
13907 * ravenscar-thread.c (is_ravenscar_task)
13908 (ravenscar_task_is_currently_active): Return bool.
13909 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13910 (_initialize_ravenscar): Remove "(void)".
13911 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13914 2019-02-15 Tom Tromey <tromey@adacore.com>
13916 * ravenscar-thread.c (ravenscar_runtime_initializer)
13917 (has_ravenscar_runtime, get_running_thread_id)
13918 (ravenscar_thread_target::resume): Fix indentation.
13920 2019-02-15 Tom Tromey <tromey@adacore.com>
13922 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13923 from ravenscar_arch_ops.
13924 (sparc_ravenscar_ops::fetch_registers)
13925 (sparc_ravenscar_ops::store_registers): Now methods.
13926 (sparc_ravenscar_prepare_to_store): Remove.
13927 (sparc_ravenscar_ops): Redefine.
13928 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13929 methods and destructor. Remove members.
13930 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13931 (ravenscar_thread_target::store_registers)
13932 (ravenscar_thread_target::prepare_to_store): Update.
13933 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13935 (struct ppc_ravenscar_powerpc_ops): Derive from
13936 ravenscar_arch_ops.
13937 (ppc_ravenscar_powerpc_ops::fetch_registers)
13938 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13939 (ppc_ravenscar_powerpc_ops): Redefine.
13940 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13941 (ppc_ravenscar_e500_ops::fetch_registers)
13942 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13943 (ppc_ravenscar_e500_ops): Redefine.
13944 * aarch64-ravenscar-thread.c
13945 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13946 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13947 (aarch64_ravenscar_fetch_registers)
13948 (aarch64_ravenscar_store_registers): Now methods.
13949 (aarch64_ravenscar_ops): Redefine.
13951 2019-02-15 Tom Tromey <tromey@adacore.com>
13953 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13954 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13955 (ravenscar_thread_target::stopped_by_watchpoint)
13956 (ravenscar_thread_target::stopped_data_address)
13957 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13959 2019-02-15 Tom Tromey <tromey@adacore.com>
13961 * ravenscar-thread.c: Fix some typos.
13963 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13964 Tom Tromey <tromey@adacore.com>
13966 * ada-lang.c (ada_exception_sal): Change addr_string to a
13968 (create_ada_exception_catchpoint): Update.
13970 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13971 Tom Tromey <tromey@adacore.com>
13973 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13974 (bp_location_ops): Remove.
13975 (base_breakpoint_allocate_location): Update.
13976 (free_bp_location): Update.
13977 * ada-lang.c (class ada_catchpoint_location)
13978 <ada_catchpoint_location>: Remove ops parameter.
13979 (ada_catchpoint_location_dtor): Remove.
13980 (ada_catchpoint_location_ops): Remove.
13981 (allocate_location_exception): Update.
13982 * breakpoint.h (struct bp_location_ops): Remove.
13983 (class bp_location) <bp_location>: Remove bp_location_ops
13985 <~bp_location>: Add destructor.
13988 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13989 Pedro Alves <palves@redhat.com>
13991 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13994 2019-02-14 David Michael <fedora.dm0@gmail.com>
13995 Samuel Thibault <samuel.thibault@gnu.org>
13996 Thomas Schwinge <thomas@codesourcery.com>
13998 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13999 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14001 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14003 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14004 (check_empty): Use "const char *".
14006 * gnu-nat.c (gnu_nat_target::detach): Instead of
14007 'detach_inferior (pid)' call
14008 'detach_inferior (find_inferior_pid (pid))'.
14010 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14011 'nat/fork-inferior.o'.
14012 * gnu-nat.c: #include "nat/fork-inferior.h".
14014 * gnu-nat.c (gnu_nat_target::detach): Instead of
14015 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14016 * gnu-nat.h: #include "inf-child.h".
14017 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14018 'i386_gnu_nat_target::fetch_registers'.
14019 (gnu_store_registers): Rename/move to
14020 'i386_gnu_nat_target::store_registers'.
14022 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14023 * gnu-nat.h (mach_thread_info): New function.
14024 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14026 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14028 2019-02-14 Frederic Konrad <konrad@adacore.com>
14030 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14032 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14034 * windows-nat.c (windows_add_thread): Add new parameter
14035 "main_thread_p" with default value set to false. Update
14036 function documentation as well as all callers.
14037 (windows_delete_thread): Likewise.
14038 (fake_create_process): Update call to windows_add_thread.
14039 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14040 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14041 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14042 call to windows_delete_thread.
14044 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14046 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14048 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14050 * symfile.c (find_separate_debug_file): Use canonical path of
14051 sysroot with child_path instead of gdb_sysroot if it is valid.
14053 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14055 * symfile.c (find_separate_debug_file): Use child_path to
14056 determine if an object file is under a sysroot.
14058 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14061 unittests/child-path-selftests.c.
14062 * common/pathstuff.c (child_path): New function.
14063 * common/pathstuff.h (child_path): New prototype.
14064 * unittests/child-path-selftests.c: New file.
14066 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14068 * symfile.c (find_separate_debug_file): Look for separate debug
14069 files in debug directories under the sysroot.
14071 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14073 * symtab.h (struct minimal_symbol data_p): New const method.
14074 (struct minimal_symbol text_p): Likewise.
14075 * symtab.c (output_source_filename): Use file name style
14076 to print file name.
14077 (print_symbol_info): Likewise.
14078 (print_msymbol_info): Use address style to print addresses.
14079 Use function name style to print executable text symbols.
14080 (expand_symtab_containing_pc): Use data_p.
14081 (find_pc_sect_compunit_symtab): Likewise.
14083 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14085 * breakpoint.c (describe_other_breakpoints): Use address style
14086 to print addresses.
14087 (say_where): Likewise.
14089 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14091 * ada-typeprint.c (print_func_type): Print function name
14092 style to print function name.
14093 * c-typeprint.c (c_print_type_1): Likewise.
14095 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14097 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14100 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14102 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14105 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14107 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14108 TYPE_CODE_REF types.
14110 2019-02-08 Jim Wilson <jimw@sifive.com>
14112 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14113 (riscv_linux_fregset): New.
14114 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14116 2019-02-07 Tom Tromey <tom@tromey.com>
14118 * thread.c (thread_cancel_execution_command): Update.
14119 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14121 (struct thread_fsm_ops): Remove.
14122 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14123 (thread_fsm_should_stop, thread_fsm_return_value)
14124 (thread_fsm_set_finished, thread_fsm_finished_p)
14125 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14127 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14128 * infrun.c (clear_proceed_status_thread)
14129 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14130 (print_stop_event): Update.
14131 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14133 (step_command_fsm_ops): Remove.
14134 (new_step_command_fsm): Remove.
14136 (step_command_fsm::should_stop): Rename from
14137 step_command_fsm_should_stop.
14138 (step_command_fsm::clean_up): Rename from
14139 step_command_fsm_clean_up.
14140 (step_command_fsm::do_async_reply_reason): Rename from
14141 step_command_fsm_async_reply_reason.
14142 (struct until_next_fsm): Inherit from thread_fsm. Add
14144 (until_next_fsm_ops): Remove.
14145 (new_until_next_fsm): Remove.
14146 (until_next_fsm::should_stop): Rename from
14147 until_next_fsm_should_stop.
14148 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14149 (until_next_fsm::do_async_reply_reason): Rename from
14150 until_next_fsm_async_reply_reason.
14151 (struct finish_command_fsm): Inherit from thread_fsm. Add
14152 constructor. Change type of breakpoint.
14153 (finish_command_fsm_ops): Remove.
14154 (new_finish_command_fsm): Remove.
14155 (finish_command_fsm::should_stop): Rename from
14156 finish_command_fsm_should_stop.
14157 (finish_command_fsm::clean_up): Rename from
14158 finish_command_fsm_clean_up.
14159 (finish_command_fsm::return_value): Rename from
14160 finish_command_fsm_return_value.
14161 (finish_command_fsm::do_async_reply_reason): Rename from
14162 finish_command_fsm_async_reply_reason.
14163 (finish_command): Update.
14164 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14166 (call_thread_fsm_ops): Remove.
14167 (call_thread_fsm::call_thread_fsm): Rename from
14168 new_call_thread_fsm.
14169 (call_thread_fsm::should_stop): Rename from
14170 call_thread_fsm_should_stop.
14171 (call_thread_fsm::should_notify_stop): Rename from
14172 call_thread_fsm_should_notify_stop.
14173 (run_inferior_call, call_function_by_hand_dummy): Update.
14174 * cli/cli-interp.c (should_print_stop_to_console): Update.
14175 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14176 Add constructor. Change type of location_breakpoint,
14178 (until_break_fsm_ops): Remove.
14179 (new_until_break_fsm): Remove.
14180 (until_break_fsm::should_stop): Rename from
14181 until_break_fsm_should_stop.
14182 (until_break_fsm::clean_up): Rename from
14183 until_break_fsm_clean_up.
14184 (until_break_fsm::do_async_reply_reason): Rename from
14185 until_break_fsm_async_reply_reason.
14186 (until_break_command): Update.
14187 * thread-fsm.c: Remove.
14188 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14190 2019-02-07 Tom Tromey <tom@tromey.com>
14192 * yy-remap.h: Add include guard.
14193 * xtensa-tdep.h: Add include guard.
14194 * xcoffread.h: Rename include guard.
14195 * varobj-iter.h: Add include guard.
14196 * tui/tui.h: Rename include guard.
14197 * tui/tui-winsource.h: Rename include guard.
14198 * tui/tui-wingeneral.h: Rename include guard.
14199 * tui/tui-windata.h: Rename include guard.
14200 * tui/tui-win.h: Rename include guard.
14201 * tui/tui-stack.h: Rename include guard.
14202 * tui/tui-source.h: Rename include guard.
14203 * tui/tui-regs.h: Rename include guard.
14204 * tui/tui-out.h: Rename include guard.
14205 * tui/tui-layout.h: Rename include guard.
14206 * tui/tui-io.h: Rename include guard.
14207 * tui/tui-hooks.h: Rename include guard.
14208 * tui/tui-file.h: Rename include guard.
14209 * tui/tui-disasm.h: Rename include guard.
14210 * tui/tui-data.h: Rename include guard.
14211 * tui/tui-command.h: Rename include guard.
14212 * tic6x-tdep.h: Add include guard.
14213 * target/waitstatus.h: Rename include guard.
14214 * target/wait.h: Rename include guard.
14215 * target/target.h: Rename include guard.
14216 * target/resume.h: Rename include guard.
14217 * target-float.h: Rename include guard.
14218 * stabsread.h: Add include guard.
14219 * rs6000-tdep.h: Add include guard.
14220 * riscv-fbsd-tdep.h: Add include guard.
14221 * regformats/regdef.h: Rename include guard.
14222 * record.h: Rename include guard.
14223 * python/python.h: Rename include guard.
14224 * python/python-internal.h: Rename include guard.
14225 * python/py-stopevent.h: Rename include guard.
14226 * python/py-ref.h: Rename include guard.
14227 * python/py-record.h: Rename include guard.
14228 * python/py-record-full.h: Rename include guard.
14229 * python/py-record-btrace.h: Rename include guard.
14230 * python/py-instruction.h: Rename include guard.
14231 * python/py-events.h: Rename include guard.
14232 * python/py-event.h: Rename include guard.
14233 * procfs.h: Add include guard.
14234 * proc-utils.h: Add include guard.
14235 * p-lang.h: Add include guard.
14236 * or1k-tdep.h: Rename include guard.
14237 * observable.h: Rename include guard.
14238 * nto-tdep.h: Rename include guard.
14239 * nat/x86-linux.h: Rename include guard.
14240 * nat/x86-linux-dregs.h: Rename include guard.
14241 * nat/x86-gcc-cpuid.h: Add include guard.
14242 * nat/x86-dregs.h: Rename include guard.
14243 * nat/x86-cpuid.h: Rename include guard.
14244 * nat/ppc-linux.h: Rename include guard.
14245 * nat/mips-linux-watch.h: Rename include guard.
14246 * nat/linux-waitpid.h: Rename include guard.
14247 * nat/linux-ptrace.h: Rename include guard.
14248 * nat/linux-procfs.h: Rename include guard.
14249 * nat/linux-osdata.h: Rename include guard.
14250 * nat/linux-nat.h: Rename include guard.
14251 * nat/linux-namespaces.h: Rename include guard.
14252 * nat/linux-btrace.h: Rename include guard.
14253 * nat/glibc_thread_db.h: Rename include guard.
14254 * nat/gdb_thread_db.h: Rename include guard.
14255 * nat/gdb_ptrace.h: Rename include guard.
14256 * nat/fork-inferior.h: Rename include guard.
14257 * nat/amd64-linux-siginfo.h: Rename include guard.
14258 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14259 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14260 * nat/aarch64-linux.h: Rename include guard.
14261 * nat/aarch64-linux-hw-point.h: Rename include guard.
14262 * mn10300-tdep.h: Add include guard.
14263 * mips-linux-tdep.h: Add include guard.
14264 * mi/mi-parse.h: Rename include guard.
14265 * mi/mi-out.h: Rename include guard.
14266 * mi/mi-main.h: Rename include guard.
14267 * mi/mi-interp.h: Rename include guard.
14268 * mi/mi-getopt.h: Rename include guard.
14269 * mi/mi-console.h: Rename include guard.
14270 * mi/mi-common.h: Rename include guard.
14271 * mi/mi-cmds.h: Rename include guard.
14272 * mi/mi-cmd-break.h: Rename include guard.
14273 * m2-lang.h: Add include guard.
14274 * location.h: Rename include guard.
14275 * linux-record.h: Rename include guard.
14276 * linux-nat.h: Add include guard.
14277 * linux-fork.h: Add include guard.
14278 * i386-darwin-tdep.h: Rename include guard.
14279 * hppa-linux-offsets.h: Add include guard.
14280 * guile/guile.h: Rename include guard.
14281 * guile/guile-internal.h: Rename include guard.
14282 * gnu-nat.h: Rename include guard.
14283 * gdb-stabs.h: Rename include guard.
14284 * frv-tdep.h: Add include guard.
14285 * f-lang.h: Add include guard.
14286 * event-loop.h: Add include guard.
14287 * darwin-nat.h: Rename include guard.
14288 * cp-abi.h: Rename include guard.
14289 * config/sparc/nm-sol2.h: Rename include guard.
14290 * config/nm-nto.h: Rename include guard.
14291 * config/nm-linux.h: Add include guard.
14292 * config/i386/nm-i386gnu.h: Rename include guard.
14293 * config/djgpp/nl_types.h: Rename include guard.
14294 * config/djgpp/langinfo.h: Rename include guard.
14295 * compile/gcc-cp-plugin.h: Add include guard.
14296 * compile/gcc-c-plugin.h: Add include guard.
14297 * compile/compile.h: Rename include guard.
14298 * compile/compile-object-run.h: Rename include guard.
14299 * compile/compile-object-load.h: Rename include guard.
14300 * compile/compile-internal.h: Rename include guard.
14301 * compile/compile-cplus.h: Rename include guard.
14302 * compile/compile-c.h: Rename include guard.
14303 * common/xml-utils.h: Rename include guard.
14304 * common/x86-xstate.h: Rename include guard.
14305 * common/version.h: Rename include guard.
14306 * common/vec.h: Rename include guard.
14307 * common/tdesc.h: Rename include guard.
14308 * common/selftest.h: Rename include guard.
14309 * common/scoped_restore.h: Rename include guard.
14310 * common/scoped_mmap.h: Rename include guard.
14311 * common/scoped_fd.h: Rename include guard.
14312 * common/safe-iterator.h: Rename include guard.
14313 * common/run-time-clock.h: Rename include guard.
14314 * common/refcounted-object.h: Rename include guard.
14315 * common/queue.h: Rename include guard.
14316 * common/ptid.h: Rename include guard.
14317 * common/print-utils.h: Rename include guard.
14318 * common/preprocessor.h: Rename include guard.
14319 * common/pathstuff.h: Rename include guard.
14320 * common/observable.h: Rename include guard.
14321 * common/netstuff.h: Rename include guard.
14322 * common/job-control.h: Rename include guard.
14323 * common/host-defs.h: Rename include guard.
14324 * common/gdb_wait.h: Rename include guard.
14325 * common/gdb_vecs.h: Rename include guard.
14326 * common/gdb_unlinker.h: Rename include guard.
14327 * common/gdb_unique_ptr.h: Rename include guard.
14328 * common/gdb_tilde_expand.h: Rename include guard.
14329 * common/gdb_sys_time.h: Rename include guard.
14330 * common/gdb_string_view.h: Rename include guard.
14331 * common/gdb_splay_tree.h: Rename include guard.
14332 * common/gdb_setjmp.h: Rename include guard.
14333 * common/gdb_ref_ptr.h: Rename include guard.
14334 * common/gdb_optional.h: Rename include guard.
14335 * common/gdb_locale.h: Rename include guard.
14336 * common/gdb_assert.h: Rename include guard.
14337 * common/filtered-iterator.h: Rename include guard.
14338 * common/filestuff.h: Rename include guard.
14339 * common/fileio.h: Rename include guard.
14340 * common/environ.h: Rename include guard.
14341 * common/common-utils.h: Rename include guard.
14342 * common/common-types.h: Rename include guard.
14343 * common/common-regcache.h: Rename include guard.
14344 * common/common-inferior.h: Rename include guard.
14345 * common/common-gdbthread.h: Rename include guard.
14346 * common/common-exceptions.h: Rename include guard.
14347 * common/common-defs.h: Rename include guard.
14348 * common/common-debug.h: Rename include guard.
14349 * common/cleanups.h: Rename include guard.
14350 * common/buffer.h: Rename include guard.
14351 * common/btrace-common.h: Rename include guard.
14352 * common/break-common.h: Rename include guard.
14353 * cli/cli-utils.h: Rename include guard.
14354 * cli/cli-style.h: Rename include guard.
14355 * cli/cli-setshow.h: Rename include guard.
14356 * cli/cli-script.h: Rename include guard.
14357 * cli/cli-interp.h: Rename include guard.
14358 * cli/cli-decode.h: Rename include guard.
14359 * cli/cli-cmds.h: Rename include guard.
14360 * charset-list.h: Add include guard.
14361 * buildsym-legacy.h: Rename include guard.
14362 * bfin-tdep.h: Add include guard.
14363 * ax.h: Rename include guard.
14364 * arm-linux-tdep.h: Add include guard.
14365 * arm-fbsd-tdep.h: Add include guard.
14366 * arch/xtensa.h: Rename include guard.
14367 * arch/tic6x.h: Add include guard.
14368 * arch/i386.h: Add include guard.
14369 * arch/arm.h: Rename include guard.
14370 * arch/arm-linux.h: Rename include guard.
14371 * arch/arm-get-next-pcs.h: Rename include guard.
14372 * arch/amd64.h: Add include guard.
14373 * arch/aarch64-insn.h: Rename include guard.
14374 * arch-utils.h: Rename include guard.
14375 * annotate.h: Add include guard.
14376 * amd64-darwin-tdep.h: Rename include guard.
14377 * aarch64-linux-tdep.h: Add include guard.
14378 * aarch64-fbsd-tdep.h: Add include guard.
14379 * aarch32-linux-nat.h: Add include guard.
14381 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14383 * macrotab.c (macro_define_internal): New function that
14384 factorizes macro_define_object_internal and macro_define_function
14386 (macro_define_object_internal): Use macro_define_internal.
14387 (macro_define_function): Likewise.
14389 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14391 * macrocmd.c (extract_identifier): Return
14392 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14395 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14397 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14399 2019-02-05 Tom Tromey <tom@tromey.com>
14401 * target.c (target_stack::unpush): Move assertion earlier.
14403 2019-01-30 Tom Tromey <tom@tromey.com>
14406 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14407 (gdbpy_parse_and_eval): Likewise.
14408 * python/python-internal.h (gdbpy_allow_threads): New class.
14410 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14412 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14413 (aarch64_fbsd_fpregmap): Move earlier.
14414 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14415 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14416 instead of individual calls to trad_frame_set_reg_addr.
14417 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14419 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14420 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14421 instead of individual calls to trad_frame_set_reg_addr.
14423 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14425 * CONTRIBUTE: Replace contribution list with wiki link.
14427 2019-01-25 Tom Tromey <tom@tromey.com>
14429 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14431 2019-01-25 Tom Tromey <tom@tromey.com>
14433 * xtensa-linux-nat.c: Fix common/ includes.
14434 * xml-support.h: Fix common/ includes.
14435 * xml-support.c: Fix common/ includes.
14436 * x86-linux-nat.c: Fix common/ includes.
14437 * windows-nat.c: Fix common/ includes.
14438 * varobj.h: Fix common/ includes.
14439 * varobj.c: Fix common/ includes.
14440 * value.c: Fix common/ includes.
14441 * valops.c: Fix common/ includes.
14442 * utils.c: Fix common/ includes.
14443 * unittests/xml-utils-selftests.c: Fix common/ includes.
14444 * unittests/utils-selftests.c: Fix common/ includes.
14445 * unittests/unpack-selftests.c: Fix common/ includes.
14446 * unittests/tracepoint-selftests.c: Fix common/ includes.
14447 * unittests/style-selftests.c: Fix common/ includes.
14448 * unittests/string_view-selftests.c: Fix common/ includes.
14449 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14450 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14451 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14452 * unittests/rsp-low-selftests.c: Fix common/ includes.
14453 * unittests/parse-connection-spec-selftests.c: Fix common/
14455 * unittests/optional-selftests.c: Fix common/ includes.
14456 * unittests/offset-type-selftests.c: Fix common/ includes.
14457 * unittests/observable-selftests.c: Fix common/ includes.
14458 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14459 * unittests/memrange-selftests.c: Fix common/ includes.
14460 * unittests/memory-map-selftests.c: Fix common/ includes.
14461 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14462 * unittests/function-view-selftests.c: Fix common/ includes.
14463 * unittests/environ-selftests.c: Fix common/ includes.
14464 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14465 * unittests/common-utils-selftests.c: Fix common/ includes.
14466 * unittests/cli-utils-selftests.c: Fix common/ includes.
14467 * unittests/array-view-selftests.c: Fix common/ includes.
14468 * ui-file.c: Fix common/ includes.
14469 * tui/tui-io.c: Fix common/ includes.
14470 * tracepoint.h: Fix common/ includes.
14471 * tracepoint.c: Fix common/ includes.
14472 * tracefile-tfile.c: Fix common/ includes.
14473 * top.h: Fix common/ includes.
14474 * top.c: Fix common/ includes.
14475 * thread.c: Fix common/ includes.
14476 * target/waitstatus.h: Fix common/ includes.
14477 * target/waitstatus.c: Fix common/ includes.
14478 * target.h: Fix common/ includes.
14479 * target.c: Fix common/ includes.
14480 * target-memory.c: Fix common/ includes.
14481 * target-descriptions.c: Fix common/ includes.
14482 * symtab.h: Fix common/ includes.
14483 * symfile.c: Fix common/ includes.
14484 * stap-probe.c: Fix common/ includes.
14485 * spu-linux-nat.c: Fix common/ includes.
14486 * sparc-nat.c: Fix common/ includes.
14487 * source.c: Fix common/ includes.
14488 * solib.c: Fix common/ includes.
14489 * solib-target.c: Fix common/ includes.
14490 * ser-unix.c: Fix common/ includes.
14491 * ser-tcp.c: Fix common/ includes.
14492 * ser-pipe.c: Fix common/ includes.
14493 * ser-base.c: Fix common/ includes.
14494 * selftest-arch.c: Fix common/ includes.
14495 * s12z-tdep.c: Fix common/ includes.
14496 * rust-exp.y: Fix common/ includes.
14497 * rs6000-aix-tdep.c: Fix common/ includes.
14498 * riscv-tdep.c: Fix common/ includes.
14499 * remote.c: Fix common/ includes.
14500 * remote-notif.h: Fix common/ includes.
14501 * remote-fileio.h: Fix common/ includes.
14502 * remote-fileio.c: Fix common/ includes.
14503 * regcache.h: Fix common/ includes.
14504 * regcache.c: Fix common/ includes.
14505 * record-btrace.c: Fix common/ includes.
14506 * python/python.c: Fix common/ includes.
14507 * python/py-type.c: Fix common/ includes.
14508 * python/py-inferior.c: Fix common/ includes.
14509 * progspace.h: Fix common/ includes.
14510 * producer.c: Fix common/ includes.
14511 * procfs.c: Fix common/ includes.
14512 * proc-api.c: Fix common/ includes.
14513 * printcmd.c: Fix common/ includes.
14514 * ppc-linux-nat.c: Fix common/ includes.
14515 * parser-defs.h: Fix common/ includes.
14516 * osdata.c: Fix common/ includes.
14517 * obsd-nat.c: Fix common/ includes.
14518 * nat/x86-linux.c: Fix common/ includes.
14519 * nat/x86-linux-dregs.c: Fix common/ includes.
14520 * nat/x86-dregs.h: Fix common/ includes.
14521 * nat/x86-dregs.c: Fix common/ includes.
14522 * nat/ppc-linux.c: Fix common/ includes.
14523 * nat/mips-linux-watch.h: Fix common/ includes.
14524 * nat/mips-linux-watch.c: Fix common/ includes.
14525 * nat/linux-waitpid.c: Fix common/ includes.
14526 * nat/linux-ptrace.h: Fix common/ includes.
14527 * nat/linux-ptrace.c: Fix common/ includes.
14528 * nat/linux-procfs.c: Fix common/ includes.
14529 * nat/linux-personality.c: Fix common/ includes.
14530 * nat/linux-osdata.c: Fix common/ includes.
14531 * nat/linux-namespaces.c: Fix common/ includes.
14532 * nat/linux-btrace.h: Fix common/ includes.
14533 * nat/linux-btrace.c: Fix common/ includes.
14534 * nat/fork-inferior.c: Fix common/ includes.
14535 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14536 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14537 * nat/aarch64-linux.c: Fix common/ includes.
14538 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14539 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14540 * namespace.h: Fix common/ includes.
14541 * mips-linux-tdep.c: Fix common/ includes.
14542 * minsyms.c: Fix common/ includes.
14543 * mi/mi-parse.h: Fix common/ includes.
14544 * mi/mi-main.c: Fix common/ includes.
14545 * mi/mi-cmd-env.c: Fix common/ includes.
14546 * memrange.h: Fix common/ includes.
14547 * memattr.c: Fix common/ includes.
14548 * maint.h: Fix common/ includes.
14549 * maint.c: Fix common/ includes.
14550 * main.c: Fix common/ includes.
14551 * machoread.c: Fix common/ includes.
14552 * location.c: Fix common/ includes.
14553 * linux-thread-db.c: Fix common/ includes.
14554 * linux-nat.c: Fix common/ includes.
14555 * linux-fork.c: Fix common/ includes.
14556 * inline-frame.c: Fix common/ includes.
14557 * infrun.c: Fix common/ includes.
14558 * inflow.c: Fix common/ includes.
14559 * inferior.h: Fix common/ includes.
14560 * inferior.c: Fix common/ includes.
14561 * infcmd.c: Fix common/ includes.
14562 * inf-ptrace.c: Fix common/ includes.
14563 * inf-child.c: Fix common/ includes.
14564 * ia64-linux-nat.c: Fix common/ includes.
14565 * i387-tdep.c: Fix common/ includes.
14566 * i386-tdep.c: Fix common/ includes.
14567 * i386-linux-tdep.c: Fix common/ includes.
14568 * i386-linux-nat.c: Fix common/ includes.
14569 * i386-go32-tdep.c: Fix common/ includes.
14570 * i386-fbsd-tdep.c: Fix common/ includes.
14571 * i386-fbsd-nat.c: Fix common/ includes.
14572 * guile/scm-type.c: Fix common/ includes.
14573 * guile/guile.c: Fix common/ includes.
14574 * go32-nat.c: Fix common/ includes.
14575 * gnu-nat.c: Fix common/ includes.
14576 * gdbthread.h: Fix common/ includes.
14577 * gdbarch-selftests.c: Fix common/ includes.
14578 * gdb_usleep.c: Fix common/ includes.
14579 * gdb_select.h: Fix common/ includes.
14580 * gdb_bfd.c: Fix common/ includes.
14581 * gcore.c: Fix common/ includes.
14582 * fork-child.c: Fix common/ includes.
14583 * findvar.c: Fix common/ includes.
14584 * fbsd-nat.c: Fix common/ includes.
14585 * event-top.c: Fix common/ includes.
14586 * event-loop.c: Fix common/ includes.
14587 * dwarf2read.c: Fix common/ includes.
14588 * dwarf2loc.c: Fix common/ includes.
14589 * dwarf2-frame.c: Fix common/ includes.
14590 * dwarf-index-cache.c: Fix common/ includes.
14591 * dtrace-probe.c: Fix common/ includes.
14592 * disasm-selftests.c: Fix common/ includes.
14593 * defs.h: Fix common/ includes.
14594 * csky-tdep.c: Fix common/ includes.
14595 * cp-valprint.c: Fix common/ includes.
14596 * cp-support.h: Fix common/ includes.
14597 * cp-support.c: Fix common/ includes.
14598 * corelow.c: Fix common/ includes.
14599 * completer.h: Fix common/ includes.
14600 * completer.c: Fix common/ includes.
14601 * compile/compile.c: Fix common/ includes.
14602 * compile/compile-loc2c.c: Fix common/ includes.
14603 * compile/compile-cplus-types.c: Fix common/ includes.
14604 * compile/compile-cplus-symbols.c: Fix common/ includes.
14605 * command.h: Fix common/ includes.
14606 * cli/cli-dump.c: Fix common/ includes.
14607 * cli/cli-cmds.c: Fix common/ includes.
14608 * charset.c: Fix common/ includes.
14609 * build-id.c: Fix common/ includes.
14610 * btrace.h: Fix common/ includes.
14611 * btrace.c: Fix common/ includes.
14612 * breakpoint.h: Fix common/ includes.
14613 * breakpoint.c: Fix common/ includes.
14615 (enum agent_op): Fix common/ includes.
14616 * ax-general.c (struct aop_map): Fix common/ includes.
14617 * ax-gdb.c: Fix common/ includes.
14618 * auxv.c: Fix common/ includes.
14619 * auto-load.c: Fix common/ includes.
14620 * arm-tdep.c: Fix common/ includes.
14621 * arch/riscv.c: Fix common/ includes.
14622 * arch/ppc-linux-common.c: Fix common/ includes.
14623 * arch/i386.c: Fix common/ includes.
14624 * arch/arm.c: Fix common/ includes.
14625 * arch/arm-linux.c: Fix common/ includes.
14626 * arch/arm-get-next-pcs.c: Fix common/ includes.
14627 * arch/amd64.c: Fix common/ includes.
14628 * arch/aarch64.c: Fix common/ includes.
14629 * arch/aarch64-insn.c: Fix common/ includes.
14630 * arch-utils.c: Fix common/ includes.
14631 * amd64-windows-tdep.c: Fix common/ includes.
14632 * amd64-tdep.c: Fix common/ includes.
14633 * amd64-sol2-tdep.c: Fix common/ includes.
14634 * amd64-obsd-tdep.c: Fix common/ includes.
14635 * amd64-nbsd-tdep.c: Fix common/ includes.
14636 * amd64-linux-tdep.c: Fix common/ includes.
14637 * amd64-linux-nat.c: Fix common/ includes.
14638 * amd64-fbsd-tdep.c: Fix common/ includes.
14639 * amd64-fbsd-nat.c: Fix common/ includes.
14640 * amd64-dicos-tdep.c: Fix common/ includes.
14641 * amd64-darwin-tdep.c: Fix common/ includes.
14642 * agent.c: Fix common/ includes.
14643 * ada-lang.h: Fix common/ includes.
14644 * ada-lang.c: Fix common/ includes.
14645 * aarch64-tdep.c: Fix common/ includes.
14647 2019-01-25 Tom Tromey <tom@tromey.com>
14649 * common/create-version.sh: Use common/version.h.
14651 2019-01-24 Pedro Alves <palves@redhat.com>
14653 * infrun.c (signal_stop, signal_print, signal_program)
14654 (signal_catch, signal_pass): Now arrays instead of pointers.
14655 (update_signals_program_target, do_target_resume)
14656 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14657 * linux-nat.c (linux_nat_target::pass_signals)
14658 (linux_nat_target::create_inferior, linux_nat_target::attach):
14660 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14661 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14662 * procfs.c (procfs_target::pass_signals): Adjust.
14663 * record-full.c (record_full_target::resume): Adjust.
14664 * remote.c (remote_target::pass_signals)
14665 (remote_target::program_signals): Adjust.
14666 * target-debug.h (target_debug_print_signals): Now takes a
14667 gdb::array_view as parameter. Adjust.
14668 * target.h (target_ops) <pass_signals, program_signals>: Replace
14669 pointer and length parameters with gdb::array_view.
14670 (target_pass_signals, target_program_signals): Likewise.
14671 * target-delegates.c: Regenerate.
14673 2019-01-24 Pedro Alves <palves@redhat.com>
14675 * common/forward-scope-exit.h
14676 (forward_scope_exit::forward_scope_exit): Pass arguments to
14677 m_bind_function directly, instead of creating a std::bind and
14680 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14682 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14683 for static members.
14684 (pass_in_v_vfp_candidate): Likewise.
14686 2019-01-23 Tom Tromey <tom@tromey.com>
14687 Pedro Alves <palves@redhat.com>
14689 * regcache.c (class regcache_invalidator): Remove.
14690 (regcache::raw_write): Use make_scope_exit.
14692 2019-01-23 Tom Tromey <tom@tromey.com>
14694 * ui-out.h (class ui_out_emit_type): Update comment.
14696 2019-01-23 Tom Tromey <tom@tromey.com>
14698 * infrun.c (fetch_inferior_event): Update comment.
14700 2019-01-23 Tom Tromey <tom@tromey.com>
14701 Pedro Alves <palves@redhat.com>
14703 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14705 (fetch_inferior_event): Use SCOPE_EXIT.
14708 2019-01-23 Tom Tromey <tom@tromey.com>
14709 Pedro Alves <palves@redhat.com>
14711 * infrun.c (disable_thread_events): Delete.
14712 (stop_all_threads): Use SCOPE_EXIT.
14714 2019-01-23 Tom Tromey <tom@tromey.com>
14715 Pedro Alves <palves@redhat.com>
14717 * symfile.c: Include forward-scope-exit.h.
14718 (clear_symtab_users_cleanup): Replace forward declaration with
14719 a FORWARD_SCOPE_EXIT.
14720 (syms_from_objfile_1): Use the forward_scope_exit and
14721 gdb::optional instead of cleanup_function.
14722 (reread_symbols): Use the forward_scope_exit instead of
14724 (clear_symtab_users_cleanup): Remove function.
14726 2019-01-23 Tom Tromey <tom@tromey.com>
14727 Pedro Alves <palves@redhat.com>
14729 * linux-nat.c: Include scope-exit.h.
14730 (cleanup_target_stop): Remove.
14731 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14734 2019-01-23 Tom Tromey <tom@tromey.com>
14735 Pedro Alves <palves@redhat.com>
14737 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14738 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14740 2019-01-23 Tom Tromey <tom@tromey.com>
14741 Andrew Burgess <andrew.burgess@embecosm.com>
14742 Pedro Alves <palves@redhat.com>
14744 * infrun.c (fetch_inferior_event): Use scope_exit.
14745 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14746 * top.c (execute_command): Use scope_exit.
14747 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14748 * utils.c (do_bpstat_clear_actions_cleanup)
14749 (make_bpstat_clear_actions_cleanup): Remove.
14751 2019-01-23 Tom Tromey <tom@tromey.com>
14752 Pedro Alves <palves@redhat.com>
14754 * infrun.c: Include "common/scope-exit.h"
14755 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14756 (wait_for_inferior): Use SCOPE_EXIT.
14757 (fetch_inferior_event): Use scope_exit.
14759 2019-01-23 Tom Tromey <tom@tromey.com>
14760 Pedro Alves <palves@redhat.com>
14762 * breakpoint.c (create_breakpoint): Remove cleanup.
14764 2019-01-23 Tom Tromey <tom@tromey.com>
14765 Andrew Burgess <andrew.burgess@embecosm.com>
14766 Pedro Alves <palves@redhat.com>
14768 2019-01-23 Pedro Alves <palves@redhat.com>
14770 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14772 2019-01-23 Pedro Alves <palves@redhat.com>
14773 Andrew Burgess <andrew.burgess@embecosm.com>
14775 * gdbthread.h: Include "common/forward-scope-exit.h".
14776 (scoped_finish_thread_state): Redefine custom class in terms of
14777 forward_scope_exit.
14779 2019-01-23 Pedro Alves <palves@redhat.com>
14780 Andrew Burgess <andrew.burgess@embecosm.com>
14782 * common/forward-scope-exit.h: New file.
14784 2019-01-23 Pedro Alves <palves@redhat.com>
14785 Andrew Burgess <andrew.burgess@embecosm.com>
14786 Tom Tromey <tom@tromey.com>
14788 * common/scope-exit.h: New file.
14790 2019-01-23 Pedro Alves <palves@redhat.com>
14792 * common/preprocessor.h (ESC): Rename to ...
14793 (ESC_PARENS): ... this.
14794 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14795 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14797 2019-01-23 Tom Tromey <tom@tromey.com>
14799 * language.h (class scoped_switch_to_sym_language_if_auto):
14800 Initialize m_lang in both cases.
14802 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14804 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14807 2019-01-22 Tom Tromey <tom@tromey.com>
14809 * corelow.c: Do not include sys/file.h.
14811 2019-01-22 Tom Tromey <tom@tromey.com>
14813 * tui/tui-wingeneral.h: Include gdb_curses.h.
14815 2019-01-22 Tom Tromey <tom@tromey.com>
14817 * source-cache.h (class source_cache) <get_source_lines,
14818 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14820 2019-01-22 Tom Tromey <tom@tromey.com>
14822 * remote-fileio.h (struct remote_target): Declare.
14824 2019-01-22 Tom Tromey <tom@tromey.com>
14826 * python/py-arch.c: Do not include py-ref.h.
14827 * python/py-bpevent.c: Do not include py-ref.h.
14828 * python/py-cmd.c: Do not include py-ref.h.
14829 * python/py-continueevent.c: Do not include py-ref.h.
14830 * python/py-event.h: Do not include py-ref.h.
14831 * python/py-evtregistry.c: Do not include py-ref.h.
14832 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14833 * python/py-frame.c: Do not include py-ref.h.
14834 * python/py-framefilter.c: Do not include py-ref.h.
14835 * python/py-function.c: Do not include py-ref.h.
14836 * python/py-infevents.c: Do not include py-ref.h.
14837 * python/py-linetable.c: Do not include py-ref.h.
14838 * python/py-objfile.c: Do not include py-ref.h.
14839 * python/py-param.c: Do not include py-ref.h.
14840 * python/py-prettyprint.c: Do not include py-ref.h.
14841 * python/py-progspace.c: Do not include py-ref.h.
14842 * python/py-symbol.c: Do not include py-ref.h.
14843 * python/py-symtab.c: Do not include py-ref.h.
14844 * python/py-type.c: Do not include py-ref.h.
14845 * python/py-unwind.c: Do not include py-ref.h.
14846 * python/py-utils.c: Do not include py-ref.h.
14847 * python/py-value.c: Do not include py-ref.h.
14848 * python/py-varobj.c: Do not include py-ref.h.
14849 * python/py-xmethods.c: Do not include py-ref.h.
14850 * python/python.c: Do not include py-ref.h.
14851 * varobj.c: Do not include py-ref.h.
14853 2019-01-22 Tom Tromey <tom@tromey.com>
14855 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14856 keyword for bcache.
14858 2019-01-22 Tom Tromey <tom@tromey.com>
14860 * compile/compile-cplus-types.c: Remove a comment by #include.
14862 2019-01-22 Tom Tromey <tom@tromey.com>
14864 * compile/gcc-c-plugin.h: Include compile-internal.h.
14866 2019-01-22 Tom Tromey <tom@tromey.com>
14868 * stabsread.c (EXTERN): Do not define.
14869 (symnum, next_symbol_text_func, processing_gcc_compilation)
14870 (within_function, global_sym_chain, global_stabs)
14871 (previous_stab_code, this_object_header_files)
14872 (n_this_object_header_files)
14873 (n_allocated_this_object_header_files): Define.
14874 * stabsread.h (EXTERN): Never define. Use "extern".
14876 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14878 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14881 2019-01-21 Tom Tromey <tom@tromey.com>
14883 * ui-out.c: Fix includes.
14884 * tui/tui-source.c: Fix includes.
14885 * target.c: Fix includes.
14886 * remote.c: Fix includes.
14887 * regcache.c: Fix includes.
14888 * python/py-block.c: Fix includes.
14889 * printcmd.c: Fix includes.
14890 * or1k-tdep.c: Fix includes.
14891 * mi/mi-main.c: Fix includes.
14892 * m32r-tdep.c: Fix includes.
14893 * csky-tdep.c: Fix includes.
14894 * compile/compile-cplus-types.c: Fix includes.
14895 * cli/cli-interp.c: Fix includes.
14897 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14899 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14902 2019-01-16 Tom Tromey <tom@tromey.com>
14904 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14906 (struct objfile) <msymbols_range>: Move from top level.
14907 <msymbols>: New method.
14908 (class objfile_msymbols): Remove.
14909 * symtab.c (default_collect_symbol_completion_matches_break_on):
14911 * symmisc.c (dump_msymbols): Update.
14912 * stabsread.c (scan_file_globals): Update.
14913 * objc-lang.c (info_selectors_command, info_classes_command)
14914 (find_methods): Update.
14915 * minsyms.c (find_solib_trampoline_target): Update.
14916 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14917 * coffread.c (coff_symfile_read): Update.
14918 * ada-lang.c (ada_lookup_simple_minsym)
14919 (ada_collect_symbol_completion_matches): Update.
14921 2019-01-16 Tom Tromey <tom@tromey.com>
14923 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14924 type. Remove no-argument constructor.
14925 <iterator::operator++>: Simplify.
14927 <end>: Use minimal_symbol_count.
14929 2019-01-16 Tom Tromey <tom@tromey.com>
14931 * objfiles.h (struct objfile) <psymtabs>: New method.
14932 (class objfile_psymtabs): Remove.
14933 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14935 <range>: New method.
14936 (require_partial_symbols): Change return type.
14937 * psymtab.c (require_partial_symbols)
14938 (psym_expand_symtabs_matching): Update.
14939 * mdebugread.c (parse_partial_symbols): Update.
14940 * dbxread.c (dbx_end_psymtab): Update.
14942 2019-01-15 Tom Tromey <tom@tromey.com>
14944 * symtab.c (lookup_objfile_from_block)
14945 (lookup_symbol_in_objfile_symtabs)
14946 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14947 (find_line_symtab, info_sources_command)
14948 (default_collect_symbol_completion_matches_break_on)
14949 (make_source_files_completion_list): Update.
14950 * symmisc.c (print_objfile_statistics, dump_objfile)
14951 (maintenance_print_symbols, maintenance_info_symtabs)
14952 (maintenance_check_symtabs, maintenance_info_line_tables):
14954 * source.c (select_source_symtab)
14955 (forget_cached_source_info_for_objfile): Update.
14956 * objfiles.h (class objfile_compunits): Remove.
14957 (struct objfile) <compunits_range>: New typedef.
14958 (compunits): New method.
14959 * objfiles.c (objfile_relocate1): Update.
14960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14961 * maint.c (count_symtabs_and_blocks): Update.
14962 * linespec.c (iterate_over_all_matching_symtabs): Update.
14963 * cp-support.c (add_symbol_overload_list_qualified): Update.
14964 * coffread.c (coff_symtab_read): Update.
14965 * ada-lang.c (add_nonlocal_symbols)
14966 (ada_collect_symbol_completion_matches)
14967 (ada_add_global_exceptions): Update.
14969 2019-01-15 Tom Tromey <tom@tromey.com>
14971 * progspace.h (program_space) <objfiles_safe_range>: New
14973 <objfiles_safe>: New method.
14974 * objfiles.h (class all_objfiles_safe): Remove.
14975 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14976 * jit.c (jit_inferior_exit_hook): Update.
14978 2019-01-17 Tom Tromey <tom@tromey.com>
14980 * progspace.h (program_space) <objfiles_range>: New typedef.
14981 <objfiles>: New method.
14982 <objfiles_head>: Rename from objfiles.
14983 (object_files): Update.
14984 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14985 * guile/scm-pretty-print.c
14986 (ppscm_find_pretty_printer_from_objfiles): Update.
14987 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14988 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14990 * python/py-progspace.c (pspy_get_objfiles): Update.
14991 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14993 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14994 (objfpy_lookup_objfile_by_build_id): Update.
14995 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14996 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14998 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14999 (expand_symtab_containing_pc, lookup_objfile_from_block)
15000 (lookup_static_symbol, basic_lookup_transparent_type)
15001 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15002 (find_line_symtab, info_sources_command)
15003 (default_collect_symbol_completion_matches_break_on)
15004 (make_source_files_completion_list, find_main_name): Update.
15005 * symmisc.c (print_symbol_bcache_statistics)
15006 (print_objfile_statistics, maintenance_print_symbols)
15007 (maintenance_print_msymbols, maintenance_print_objfiles)
15008 (maintenance_info_symtabs, maintenance_check_symtabs)
15009 (maintenance_expand_symtabs, maintenance_info_line_tables):
15011 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15012 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15013 (map_overlay_command, unmap_overlay_command)
15014 (simple_overlay_update, expand_symtabs_matching)
15015 (map_symbol_filenames): Update.
15016 * symfile-debug.c (set_debug_symfile): Update.
15017 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15019 * source.c (select_source_symtab, forget_cached_source_info):
15021 * solib.c (solib_read_symbols): Update.
15022 * solib-spu.c (append_ocl_sos): Update.
15023 * psymtab.c (maintenance_print_psymbols)
15024 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15025 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15026 * printcmd.c (info_symbol_command): Update.
15027 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15029 * objfiles.h (class all_objfiles): Remove.
15030 * objfiles.c (have_partial_symbols, have_full_symbols)
15031 (have_minimal_symbols, qsort_cmp, update_section_map)
15032 (shared_objfile_contains_address_p)
15033 (default_iterate_over_objfiles_in_search_order): Update.
15034 * objc-lang.c (info_selectors_command, info_classes_command)
15035 (find_methods): Update.
15036 * minsyms.c (find_solib_trampoline_target): Update.
15037 * maint.c (maintenance_info_sections)
15038 (maintenance_translate_address, count_symtabs_and_blocks):
15040 * main.c (captured_main_1): Update.
15041 * linux-thread-db.c (try_thread_db_load_from_pdir)
15042 (has_libpthread): Update.
15043 * linespec.c (iterate_over_all_matching_symtabs)
15044 (search_minsyms_for_name): Update.
15045 * jit.c (jit_find_objf_with_entry_addr): Update.
15046 * hppa-tdep.c (find_unwind_entry)
15047 (hppa_lookup_stub_minimal_symbol): Update.
15048 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15050 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15051 (elf_gnu_ifunc_resolve_by_got): Update.
15052 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15053 * dwarf-index-write.c (save_gdb_index_command): Update.
15054 * cp-support.c (add_symbol_overload_list_qualified): Update.
15055 * breakpoint.c (create_overlay_event_breakpoint)
15056 (create_longjmp_master_breakpoint)
15057 (create_std_terminate_master_breakpoint)
15058 (create_exception_master_breakpoint): Update.
15059 * blockframe.c (find_pc_partial_function): Update.
15060 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15061 (ada_collect_symbol_completion_matches)
15062 (ada_add_global_exceptions): Update.
15064 2019-01-17 Tom Tromey <tom@tromey.com>
15066 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15068 (solib_target_parse_libraries): Change return type.
15069 (library_list_start_segment, library_list_start_section)
15070 (library_list_end_library, library_list_start_library); Update.
15071 (solib_target_free_library_list): Remove.
15072 (solib_target_parse_libraries): Remove cleanup. Change return
15074 (solib_target_current_sos): Update.
15076 2019-01-17 Tom Tromey <tromey@bapiya>
15078 * valprint.c: Replace "the the" with "the".
15079 * symtab.c: Replace "the the" with "the".
15080 * solib.c: Replace "the the" with "the".
15081 * solib-dsbt.c: Replace "the the" with "the".
15082 * linespec.c: Replace "the the" with "the".
15083 * dwarf2loc.h: Replace "the the" with "the".
15084 * amd64-windows-tdep.c: Replace "the the" with "the".
15085 * aarch64-tdep.c: Replace "the the" with "the".
15087 2019-01-16 Keith Seitz <keiths@redhat.com>
15090 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15091 <builder>: Rename to ..
15092 <m_builder>: ... this and make private.
15093 (dwarf2_cu::get_builder): New method. Change all users of
15094 `builder' to use this method.
15095 (dwarf2_start_symtab): Move to ...
15096 (dwarf2_cu::start_symtab): ... here. Update all callers
15097 (setup_type_unit_groups): Move to ...
15098 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15100 (dwarf2_cu::reset_builder): New method.
15101 (process_full_compunit, process_full_type_unit): Use
15102 dwarf2_cu::reset_builder.
15103 (follow_die_offset): Record the ancestor CU if it is different
15104 from the followed DIE's CU.
15105 (follow_die_sig_1): Likewise.
15107 2019-01-15 Tom Tromey <tom@tromey.com>
15109 * remote.c (class remote_state) <buf>: Now a char_vector.
15110 <buf_size>: Remove.
15111 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15113 (remote_target::getpkt_or_notif_sane_1)
15114 (remote_target::getpkt_sane)
15115 (remote_target::getpkt_or_notif_sane): Likewise.
15116 (class remote_target) <putpkt>: New overload.
15117 (remote_target::read_frame): Change type of "buf_p". Remove
15118 sizeof_p parameter.
15119 (packet_ok): New overload.
15120 (packet_check_result): New overload.
15123 2019-01-14 Tom Tromey <tom@tromey.com>
15125 * remote-notif.c (handle_notification, remote_notif_ack)
15126 (remote_notif_parse): Make "buf" const.
15127 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15129 (remote_notif_parse, remote_notif_ack, handle_notification):
15131 * remote.c (remote_notif_stop_parse): Make "buf" const.
15132 (remote_target::remote_parse_stop_reply): Make "buf" const.
15133 (remote_notif_stop_ack): Make "buf" const.
15135 2019-01-14 Tom Tromey <tom@tromey.com>
15137 * remote.c (remote_console_output): Make parameter const.
15139 2019-01-14 Tom Tromey <tom@tromey.com>
15141 * target-debug.h (target_debug_print_signals): Constify.
15142 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15143 * procfs.c (procfs_target::pass_signals): Update.
15144 * linux-nat.c (linux_nat_target::pass_signals): Update.
15145 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15146 * target-delegates.c: Rebuild.
15147 * remote.c (remote_target::program_signals): Update.
15148 (remote_target::pass_signals): Update.
15149 * target.c (target_pass_signals): Constify argument.
15150 (target_program_signals): Likewise.
15151 * target.h (struct target_ops) <pass_signals, program_signals>:
15153 (target_pass_signals, target_program_signals): Constify argument.
15155 2019-01-14 Tom Tromey <tom@tromey.com>
15158 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15160 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15162 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15164 * rs6000-tdep.c: Include reggroups.h.
15165 (IS_V_ALIAS_PSEUDOREG): Define.
15166 (rs6000_register_name): Return names for the "vX" aliases.
15167 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15168 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15169 aliases. Call default_register_reggroup_p for all other
15171 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15173 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15174 Handle "vX" aliases.
15175 (v_alias_pseudo_register_collect): New function.
15176 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15177 (rs6000_gdbarch_init): Initialize "vX" aliases as
15178 pseudo-registers. Restore registration of
15179 rs6000_pseudo_register_reggroup_p with
15180 set_tdesc_pseudo_register_reggroup_p.
15182 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15184 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15185 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15186 set_gdbarch_num_pseudo_regs.
15188 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15190 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15191 Remove arg prefixname, add do_set and do_show.
15192 Add member functions set_list and show_list.
15193 * cli/cli-style.c (class cli_style_option): Update accordingly.
15194 (style_set_list): Move to file scope.
15195 (style_show_list): Likewise.
15196 (set_style): Call help_list.
15197 (show_style): Call cmd_show_list.
15198 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15199 Update to use the new macro.
15201 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15203 * ada-lang.c (_initialize_ada_language): Expand the help text
15204 for the "catch exception" command.
15206 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15208 * symtab.c (matching_obj_sections): Initialize obj,
15209 declare it closer to its usage.
15211 2019-01-10 Tom Tromey <tom@tromey.com>
15213 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15214 (basic_inf_threads_range): Remove.
15215 (inf_threads_range, inf_non_exited_threads_range)
15216 (safe_inf_threads_range): Use next_adapter.
15218 2019-01-10 Keith Seitz <keiths@redhat.com>
15222 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15223 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15225 2019-01-10 Keith Seitz <keiths@redhat.com>
15229 * dictionary.c (pending_to_vector): Remove.
15230 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15231 Remove _1 suffix, replacing functions of the same name. Update
15233 (dict_create_hashed, dict_create_hashed_expandable)
15234 (dict_create_linear, dict_create_linear_expandable, dict_free)
15235 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15236 Make functions static.
15238 2019-01-10 Keith Seitz <keiths@redhat.com>
15242 * dictionary.h (struct dictionary): Replace declaration with
15244 (dict_create_hashed, dict_create_hashed_expandable)
15245 (dict_create_linear, dict_create_linear_expandable)
15246 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15247 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15248 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15249 taking multidictionary argument.
15250 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15251 * block.h (struct block) <dict>: Change to multidictionary
15252 and rename `multidict'.
15253 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15254 symmisc.c: Update all dictionary references to multidictionary.
15256 2019-01-10 Keith Seitz <keiths@redhat.com>
15260 * dictionary.c: Include unordered_map.
15261 (pending_to_vector): New function.
15262 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15263 Rewrite the non-"_1" functions to take vector instead
15265 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15266 "new" _1 versions of the same name.
15267 (multidictionary): Define.
15268 (std::hash<enum language): New definition.
15269 (collate_pending_symbols_by_language, mdict_create_hashed)
15270 (mdict_create_hashed_expandable, mdict_create_linear)
15271 (mdict_create_linear_expandable, mdict_free)
15272 (find_language_dictionary, create_new_language_dictionary)
15273 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15274 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15275 (mdict_size, mdict_empty): New functions.
15276 * dictionary.h (mdict_iterator): Define.
15278 2019-01-10 Pedro Alves <palves@redhat.com>
15280 * breakpoint.c (read_uploaded_action)
15281 (create_tracepoint_from_upload): Adjust to use
15282 gdb::unique_xmalloc_ptr.
15283 * ctf.c (ctf_write_uploaded_tp):
15284 (SET_ARRAY_FIELD): Use emplace_back.
15285 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15286 * tracefile-tfile.c (tfile_write_uploaded_tp):
15287 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15288 gdb::unique_xmalloc_ptr.
15289 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15290 at_string, cond_string, cmd_strings>: Replace char pointers
15291 with gdb::unique_xmalloc_ptr.
15293 2019-01-10 Pedro Alves <palves@redhat.com>
15295 * solib-target.c (library_list_start_library): Don't xstrdup name.
15297 2019-01-10 Pedro Alves <palves@redhat.com>
15299 * mdebugread.c (parse_partial_symbols): Use
15300 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15302 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15304 * linux-fork.c (scoped_switch_fork_info)
15305 <~scoped_switch_fork_info>: Fix incorrect variable name.
15307 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15309 * linux-fork.c (scoped_switch_fork_info)
15310 <scoped_switch_fork_info>: Make explicit.
15311 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15313 2019-01-10 Tom Tromey <tom@tromey.com>
15315 * objfiles.h (objfile::reset_psymtabs): Update.
15316 * objfiles.c (objfile::objfile): Update.
15317 * psymtab.h (psymtab_storage::obstack): Update.
15318 (psymtab_storage::m_obstack): Use gdb::optional.
15319 (class psymtab_storage): Update comment. Remove objfile
15321 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15323 2019-01-10 Tom Tromey <tom@tromey.com>
15325 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15326 <free_psymtabs>: Now private.
15327 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15328 (allocate_psymtab): Use new method.
15330 2019-01-10 Tom Tromey <tom@tromey.com>
15332 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15333 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15334 * mdebugread.c (parse_partial_symbols): Use
15335 allocate_dependencies.
15336 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15337 allocate_dependencies.
15338 (process_psymtab_comp_unit_reader)
15339 (build_type_psymtab_dependencies): Likewise.
15340 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15342 2019-01-10 Tom Tromey <tom@tromey.com>
15344 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15345 PSYMBOL_SET_LANGUAGE.
15346 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15348 2019-01-10 Tom Tromey <tom@tromey.com>
15350 * psymtab.h (psymtab_storage::obstack): New method.
15351 <m_obstack>: Rename from obstack; now private.
15352 * psymtab.c (psymtab_storage): Update.
15353 * dwarf2read.c (create_addrmap_from_index)
15354 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15357 2019-01-10 Tom Tromey <tom@tromey.com>
15359 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15360 * objfiles.h (objfile::reset_psymtabs): New method.
15362 2019-01-10 Tom Tromey <tom@tromey.com>
15364 * symmisc.c (print_symbol_bcache_statistics): Update.
15365 (print_objfile_statistics): Update.
15366 * symfile.c (reread_symbols): Update.
15367 * psymtab.h (class psymtab_storage): New.
15368 * psymtab.c (psymtab_storage): New constructor.
15369 (~psymtab_storage): New destructor.
15370 (require_partial_symbols): Update.
15371 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15372 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15373 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15374 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15375 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15376 (start_psymtab_common, end_psymtab_common)
15377 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15378 (allocate_psymtab): Update.
15379 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15381 (dump_psymtab_addrmap, maintenance_print_psymbols)
15382 (maintenance_check_psymtabs): Update.
15383 (class objfile_psymtabs): Move to objfiles.h.
15384 * psympriv.h (discard_psymtab): Now inline.
15385 (psymtab_discarder::psymtab_discarder): Update.
15386 (psymtab_discarder::~psymtab_discarder): Update.
15387 (ALL_OBJFILE_PSYMTABS): Rewrite.
15388 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15389 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15391 <partial_symtabs>: New field.
15392 (class objfile_psymtabs): Move from psymtab.h. Update.
15393 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15395 (objfile::~objfile): Don't destroy psymbol_cache.
15396 * mdebugread.c (parse_partial_symbols): Update.
15397 * dwarf2read.c (create_addrmap_from_index)
15398 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15399 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15400 (add_partial_subprogram, dwarf2_ranges_read): Update.
15401 * dwarf-index-write.c (write_address_map)
15402 (write_one_signatured_type, recursively_write_psymbols)
15403 (class debug_names, class debug_names, write_psymtabs_to_index):
15406 2019-01-10 Tom Tromey <tom@tromey.com>
15408 * symtab.h (SYMBOL_SET_NAMES): Update.
15409 (symbol_set_names): Update.
15410 (MSYMBOL_SET_NAMES): Update.
15411 * symtab.c (symbol_set_names): Change argument to be an
15412 objfile_per_bfd_storage.
15413 * psymtab.c (add_psymbol_to_bcache): Update.
15414 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15416 2019-01-10 Tom Tromey <tom@tromey.com>
15418 * symtab.c (create_demangled_names_hash): Change argument to be an
15419 objfile_per_bfd_storage.
15420 (symbol_set_names): Update.
15422 2019-01-10 Tom Tromey <tom@tromey.com>
15424 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15426 * psymtab.c (init_psymbol_list): Do nothing if already called.
15427 * psympriv.h (init_psymbol_list): Add comment.
15428 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15430 * dbxread.c (dbx_symfile_read): Unconditionally call
15433 2019-01-10 Tom Tromey <tom@tromey.com>
15435 * xcoffread.c (scan_xcoff_symtab): Update.
15436 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15438 * mdebugread.c (parse_partial_symbols)
15439 (handle_psymbol_enumerators): Update.
15440 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15441 * dbxread.c (read_dbx_symtab): Update.
15442 * psympriv.h (psymbol_placement): New enum.
15443 (add_psymbol_to_list): Update.
15445 2019-01-10 Tom Tromey <tom@tromey.com>
15447 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15448 static_psymbols parameters.
15449 (scan_xcoff_symtab): Update.
15450 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15451 static_psymbols parameters.
15452 * psympriv.h (start_psymtab_common): Update.
15453 * mdebugread.c (parse_partial_symbols): Update.
15454 * dwarf2read.c (create_partial_symtab): Update.
15455 * dbxread.c (read_dbx_symtab): Update.
15456 (start_psymtab): Remove global_psymbols and static_psymbols
15459 2019-01-10 Tom Tromey <tom@tromey.com>
15461 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15462 * psymtab.c (allocate_psymtab): Add comment.
15463 * psympriv.h (allocate_psymtab): Add comment.
15464 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15466 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15468 2019-01-10 Tom Tromey <tom@tromey.com>
15470 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15472 * mipsread.c: Include mdebugread.h.
15473 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15475 * elfread.c: Include mdebugread.h.
15477 2019-01-09 Tom Tromey <tom@tromey.com>
15479 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15480 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15481 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15482 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15483 (psym_lookup_symbol, psym_find_last_source_symtab)
15484 (psym_forget_cached_source_info, psym_print_stats)
15485 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15486 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15487 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15488 (psym_find_compunit_symtab_by_address)
15489 (maintenance_print_psymbols, maintenance_info_psymtabs)
15490 (maintenance_check_psymtabs): Use ranged for.
15491 * psymtab.h (class objfile_psymtabs): New.
15492 (require_partial_symbols): Return objfile_psymtabs.
15493 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15495 2019-01-09 Tom Tromey <tom@tromey.com>
15497 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15498 (find_pc_mapped_section, list_overlays_command)
15499 (map_overlay_command, unmap_overlay_command)
15500 (simple_overlay_update): Use all_objfiles.
15501 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15502 * printcmd.c (info_symbol_command): Use all_objfiles.
15503 * objfiles.h (ALL_OBJSECTIONS): Remove.
15504 * maint.c (maintenance_translate_address): Use all_objfiles.
15505 * gcore.c (gcore_create_callback): Use all_objfiles.
15506 (objfile_find_memory_regions): Likewise.
15508 2019-01-09 Tom Tromey <tom@tromey.com>
15510 * symtab.c (find_line_symtab, info_sources_command)
15511 (make_source_files_completion_list): Use objfile_compunits.
15512 * source.c (select_source_symtab): Use objfile_compunits.
15513 * objfiles.h (struct objfile): Update comment.
15514 (ALL_OBJFILES): Remove.
15515 (ALL_FILETABS): Remove.
15516 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15519 2019-01-09 Tom Tromey <tom@tromey.com>
15521 * symmisc.c (print_objfile_statistics, dump_objfile)
15522 (maintenance_print_symbols): Use compunit_filetabs.
15523 * source.c (forget_cached_source_info_for_objfile): Use
15525 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15526 (ALL_FILETABS): Use compunit_filetabs.
15527 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15528 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15530 2019-01-09 Tom Tromey <tom@tromey.com>
15532 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15533 (compunit_filetabs): New.
15534 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15536 (info_sources_command, make_source_files_completion_list): Remove
15538 * symmisc.c (print_objfile_statistics, dump_objfile)
15539 (maintenance_print_symbols): Remove declaration.
15540 (maintenance_info_symtabs): Use compunit_filetabs.
15541 (maintenance_info_line_tables): Likewise.
15542 * source.c (select_source_symtab): Change local variable name.
15543 (forget_cached_source_info_for_objfile): Remove declaration.
15544 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15545 * objfiles.c (objfile_relocate1): Remove declaration.
15546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15548 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15549 * coffread.c (coff_symtab_read): Remove declaration.
15550 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15553 2019-01-09 Tom Tromey <tom@tromey.com>
15555 * symtab.c (lookup_objfile_from_block)
15556 (find_pc_sect_compunit_symtab, search_symbols)
15557 (default_collect_symbol_completion_matches_break_on): Use
15559 * objfiles.h (ALL_COMPUNITS): Remove.
15560 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15561 * cp-support.c (add_symbol_overload_list_qualified): Use
15563 * ada-lang.c (ada_collect_symbol_completion_matches)
15564 (ada_add_global_exceptions): Use objfile_compunits.
15566 2019-01-09 Tom Tromey <tom@tromey.com>
15568 * source.c (select_source_symtab)
15569 (forget_cached_source_info_for_objfile): Remove declaration.
15570 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15572 * maint.c (count_symtabs_and_blocks): Remove declaration.
15573 * cp-support.c (add_symbol_overload_list_qualified): Remove
15575 * coffread.c (coff_symtab_read): Remove declaration.
15576 * symtab.c (lookup_symbol_in_objfile_symtabs)
15577 (basic_lookup_transparent_type_1): Use objfile_compunits.
15578 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15579 (info_sources_command, search_symbols)
15580 (default_collect_symbol_completion_matches_break_on)
15581 (make_source_files_completion_list): Remove declaration.
15582 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15583 (ada_collect_symbol_completion_matches)
15584 (ada_add_global_exceptions): Remove declaration.
15585 * linespec.c (iterate_over_all_matching_symtabs): Use
15587 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15588 (class objfile_compunits): New.
15589 (ALL_COMPUNITS): Use objfile_compunits.
15590 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15591 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15593 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15595 2019-01-09 Tom Tromey <tom@tromey.com>
15597 * symtab.c (search_symbols)
15598 (default_collect_symbol_completion_matches_break_on): Use
15600 * ada-lang.c (ada_lookup_simple_minsym)
15601 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15602 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15603 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15605 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15606 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15607 * objc-lang.c (find_methods): Use objfile_msymbols.
15608 (info_selectors_command, info_classes_command): Likewise.
15609 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15610 * objfiles.h (class objfile_msymbols): New.
15611 (ALL_OBJFILE_MSYMBOLS): Remove.
15612 (ALL_MSYMBOLS): Remove.
15614 2019-01-09 Tom Tromey <tom@tromey.com>
15616 * common/next-iterator.h (next_adapter): Add Iterator template
15618 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15619 (class all_objfiles_safe): New.
15620 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15621 * objfiles.c (put_objfile_before): Update comment.
15622 (add_separate_debug_objfile): Likewise.
15623 (free_all_objfiles): Use all_objfiles_safe.
15624 (objfile_purge_solibs): Likewise.
15626 2019-01-09 Tom Tromey <tom@tromey.com>
15628 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15629 (expand_symtab_containing_pc, lookup_static_symbol)
15630 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15631 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15633 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15634 * breakpoint.c (create_overlay_event_breakpoint)
15635 (create_longjmp_master_breakpoint)
15636 (create_std_terminate_master_breakpoint)
15637 (create_exception_master_breakpoint): Use all_objfiles.
15638 * linux-thread-db.c (try_thread_db_load_from_pdir)
15639 (has_libpthread): Use all_objfiles.
15640 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15641 * linespec.c (iterate_over_all_matching_symtabs)
15642 (search_minsyms_for_name): Use all_objfiles.
15643 * maint.c (maintenance_info_sections): Use all_objfiles.
15644 * main.c (captured_main_1): Use all_objfiles.
15645 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15646 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15647 * guile/scm-pretty-print.c
15648 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15649 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15650 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15651 (maintenance_print_msymbols): Use all_objfiles.
15652 * source.c (select_source_symtab): Use all_objfiles.
15653 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15654 * symfile.c (remove_symbol_file_command)
15655 (expand_symtabs_matching, map_symbol_filenames): Use
15657 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15659 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15660 * objc-lang.c (find_methods): Use all_objfiles.
15661 * objfiles.c (have_partial_symbols, have_full_symbols)
15662 (have_minimal_symbols, qsort_cmp)
15663 (default_iterate_over_objfiles_in_search_order): Use
15665 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15666 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15667 (maintenance_check_psymtabs): Use all_objfiles.
15668 (ALL_PSYMTABS): Remove.
15669 * compile/compile-object-run.c (do_module_cleanup): Use
15671 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15672 * cp-support.c (add_symbol_overload_list_qualified): Use
15674 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15676 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15677 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15679 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15680 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15681 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15683 * solib.c (solib_read_symbols): Use all_objfiles
15685 2019-01-09 Tom Tromey <tom@tromey.com>
15687 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15688 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15690 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15691 * symmisc.c (print_symbol_bcache_statistics)
15692 (print_objfile_statistics, maintenance_print_objfiles)
15693 (maintenance_info_symtabs, maintenance_check_symtabs)
15694 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15696 * source.c (forget_cached_source_info): Use all_objfiles.
15697 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15698 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15699 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15700 * objfiles.c (update_section_map): Use all_objfiles.
15701 (shared_objfile_contains_address_p): Likewise.
15702 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15703 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15705 2019-01-09 Tom Tromey <tom@tromey.com>
15707 * common/next-iterator.h: New file.
15708 * objfiles.h (class all_objfiles): New.
15709 (struct objfile_iterator): New.
15711 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15713 * NEWS: Move the description of the changed "frame", "select-frame",
15714 and "info frame" commands to the Changed commands section.
15716 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15718 * gdbtypes.c (check_stub_method_group): Remove handling of old
15720 * linespec.c (find_methods): Likewise.
15721 * stabsread.c (read_member_functions): Likewise.
15722 * valops.c (search_struct_method): Likewise.
15723 (value_struct_elt_for_reference): Likewise.
15724 * NEWS: Mention this change.
15726 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15728 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15729 print_source_lines.
15730 * source.c (print_source_lines_base): Update line number check.
15731 (print_source_lines): New function.
15732 (source_lines_range::source_lines_range): New function.
15733 * source.h (class source_lines_range): New class.
15734 (print_source_lines): New declaration.
15736 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15738 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15740 2019-01-08 Tom Tromey <tom@tromey.com>
15741 Simon Marchi <simon.marchi@ericsson.com>
15744 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15745 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15746 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15747 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15748 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15749 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15751 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15753 * source.c (select_source_symtab): Move header comment to
15754 declaration in source.h.
15755 (forget_cached_source_info_for_objfile): Likewise.
15756 (forget_cached_source_info): Likewise.
15757 (identify_source_line): Likewise.
15758 * source.h (identify_source_line): Move declaration from symtab.h
15759 and add comment from source.c
15760 (print_source_lines): Likewise.
15761 (forget_cached_source_info_for_objfile): Likewise.
15762 (forget_cached_source_info): Likewise.
15763 (select_source_symtab): Likewise.
15764 (enum print_source_lines_flag): Move definition from symtab.h.
15765 * symtab.h (identify_source_line): Move declaration to source.h.
15766 (print_source_lines): Likewise.
15767 (forget_cached_source_info_for_objfile): Likewise.
15768 (forget_cached_source_info): Likewise.
15769 (select_source_symtab): Likewise.
15770 (enum print_source_lines_flag): Move definition to source.h.
15771 * tui/tui-hooks.c: Add 'source.h' include.
15773 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15775 * source.c (print_source_lines_base): Handle requests to print
15776 reverse line number sequences, and guard against empty lines
15779 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15781 * source.c (print_source_lines_base): Fix skip of '\r' if next
15784 2019-01-06 Tom Tromey <tom@tromey.com>
15786 * c-exp.y (struct c_parse_state) <macro_original_text,
15787 expansion_obstack>: New member.
15788 (macro_original_text, expansion_obstack): Remove globals.
15789 (scan_macro_expansion, scanning_macro_expansion)
15790 (finished_macro_expansion): Update.
15791 (scan_macro_cleanup): Remove.
15792 (yylex, c_parse): Update.
15794 2019-01-06 Tom Tromey <tom@tromey.com>
15796 * c-exp.y (struct c_parse_state) <strings>: New member.
15797 (operator_stoken): Update.
15799 2019-01-06 Tom Tromey <tom@tromey.com>
15801 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15802 (union type_stack_elt) <typelist_val>: Now a pointer to
15804 (type_stack_cleanup): Don't declare.
15805 (push_typelist): Update.
15806 * parse.c (pop_typelist): Return a std::vector.
15807 (push_typelist): Take a std::vector.
15808 (follow_types): Update. Do not free args.
15809 (type_stack_cleanup): Remove.
15810 * c-exp.y (struct c_parse_state): New.
15811 (cpstate): New global.
15812 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15813 (nonempty_typelist): Update.
15814 (func_mod): Create a new vector.
15815 (c_parse): Create a c_parse_state.
15816 (check_parameter_typelist): Do not delete params.
15817 (function_method): Update. Do not delete type_list.
15819 2019-01-06 Tom Tromey <tom@tromey.com>
15822 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15824 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15825 (print_return_value): Likewise.
15827 2019-01-05 Tom Tromey <tom@tromey.com>
15829 * contrib/cleanup_check.py: Remove.
15830 * contrib/gcc-with-excheck: Remove.
15831 * contrib/exsummary.py: Remove.
15832 * contrib/excheck.py: Remove.
15834 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15836 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15837 NULL. Initialize tpprev to NULL instead of assigning it
15838 to NULL on the next statement.
15839 * windows-nat.c (windows_delete_thread): Remove check for
15840 main_thread_id before printing thread exit notifications.
15841 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15842 Remove thread ID check against main_thread_id.
15843 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15844 windows_delete_thread.
15845 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15847 2019-01-04 Tom Tromey <tom@tromey.com>
15849 * compile/compile.c (_initialize_compile): Use upper case for
15850 metasyntactic variables.
15851 * symmisc.c (_initialize_symmisc): Use upper case for
15852 metasyntactic variables.
15853 * psymtab.c (_initialize_psymtab): Use upper case for
15854 metasyntactic variables.
15855 * demangle.c (demangle_command): Use upper case for metasyntactic
15857 (_initialize_demangler): Likewise.
15858 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15861 2019-01-03 Tom Tromey <tom@tromey.com>
15863 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15865 2019-01-03 Tom Tromey <tom@tromey.com>
15867 * python/py-symtab.c (salpy_str): Update.
15868 (struct salpy_sal_object) <symtab>: Now a PyObject.
15869 (salpy_dealloc): Update.
15870 (del_objfile_sal): Use gdbpy_ref.
15872 2019-01-03 Tom Tromey <tom@tromey.com>
15874 * python/py-type.c (convert_field): Use new_reference. Return
15876 (make_fielditem): Return gdbpy_ref.
15877 (typy_fields): Update.
15878 (typy_getitem): Update.
15879 (field_name): Return gdbpy_ref. Use new_reference.
15880 (typy_iterator_iternext): Update.
15882 2019-01-03 Tom Tromey <tom@tromey.com>
15884 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15886 2019-01-03 Tom Tromey <tom@tromey.com>
15888 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15889 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15890 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15891 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15892 (pspy_set_type_printers): Likewise.
15893 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15894 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15895 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15896 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15897 (objfpy_set_type_printers): Likewise.
15899 2019-01-03 Tom Tromey <tom@tromey.com>
15901 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15902 (gdbpy_print_stack): Use gdbpy_err_fetch.
15903 * python/python-internal.h (class gdbpy_err_fetch): New class.
15904 (class gdbpy_enter) <m_error_type, m_error_value,
15905 m_error_traceback>: Remove.
15906 <m_error>: New member.
15907 (gdbpy_exception_to_string): Don't declare.
15908 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15909 * python/py-value.c (convert_value_from_python): Use
15911 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15912 gdbpy_exception_to_string.
15913 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15914 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15917 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15919 * linux-nat.c (delete_lwp_cleanup): Delete.
15920 (struct lwp_deleter): New struct.
15921 (lwp_info_up): New typedef.
15922 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15925 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15927 * linux-fork.c (class scoped_switch_fork_info): New class.
15928 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15930 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15932 * valops.c (find_overload_match): Remove use of null_cleanup, and
15933 calls to do_cleanups.
15935 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15937 * compile/compile-cplus-types.c
15938 (compile_cplus_instance::decl_name): Handle changes to
15940 * cp-support.c (cp_func_name): Update header comment, update
15942 * cp-support.h (cp_func_name): Update return type in declaration.
15943 * valops.c (find_overload_match): Move temp_func local to top
15944 level of function and change its type. Use temp_func to hold and
15945 delete temporary string obtained from cp_func_name.
15947 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15949 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15950 gdb::char_vector, remove cleanup, and update uses of `msg`.
15952 2019-01-03 Jim Wilson <jimw@sifive.com>
15954 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15956 2019-01-02 Tom Tromey <tom@tromey.com>
15958 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15959 (tdesc_parse_xml): Remove cleanups.
15960 * target-descriptions.h (make_cleanup_free_target_description):
15962 (target_desc_deleter): New struct.
15963 (target_desc_up): New typedef.
15964 * target-descriptions.c (target_desc_deleter::operator()): Rename
15965 from free_target_description.
15966 (make_cleanup_free_target_description): Remove.
15968 2019-01-02 Tom Tromey <tom@tromey.com>
15970 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15971 constructor, destructor.
15972 (linespec_parser): Remove typedef.
15973 (~linespec_parser): Rename from linespec_parser_delete.
15974 (linespec_lex_to_end, linespec_complete_label)
15975 (linespec_complete): Update.
15976 (decode_line_full): Remove cleanups.
15977 (decode_line_1): Update.
15979 2019-01-02 Tom Tromey <tom@tromey.com>
15981 * python/python-internal.h (inferior_to_inferior_object): Change
15983 * python/py-exitedevent.c (create_exited_event_object): Update.
15984 * python/py-inferior.c (inferior_to_inferior_object): Return
15986 (python_new_inferior, python_inferior_deleted)
15987 (thread_to_thread_object, delete_thread_object)
15988 (build_inferior_list, gdbpy_selected_inferior): Update.
15989 * python/py-infthread.c (create_thread_object): Update. Also fail
15990 if inferior_to_inferior_object fails.
15992 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15994 * inferior.h (class inferior) <displaced_step_state>: New field.
15995 * infrun.h (struct displaced_step_state): Move here from
15996 infrun.c. Initialize fields, add constructor.
15997 <inf>: Remove field.
15998 <reset>: New method.
15999 * infrun.c (struct displaced_step_inferior_state): Move to
16001 (displaced_step_inferior_states): Remove.
16002 (get_displaced_stepping_state): Adust.
16003 (displaced_step_in_progress_any_inferior): Adjust.
16004 (displaced_step_in_progress_thread): Adjust.
16005 (displaced_step_in_progress): Adjust.
16006 (add_displaced_stepping_state): Remove.
16007 (get_displaced_step_closure_by_addr): Adjust.
16008 (remove_displaced_stepping_state): Remove.
16009 (infrun_inferior_exit): Call displaced_step_state.reset.
16010 (use_displaced_stepping): Don't check for NULL.
16011 (displaced_step_prepare_throw): Call
16012 get_displaced_stepping_state.
16013 (displaced_step_fixup): Don't check for NULL.
16014 (prepare_for_detach): Don't check for NULL.
16016 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16018 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16019 in case of call that did not complete.
16021 2019-01-02 Andrey Utkin <autkin@undo.io>
16023 * symfile.c (find_separate_debug_file): Fix search of debug files for
16026 2019-01-02 Tom Tromey <tom@tromey.com>
16028 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16030 * python/py-frame.c (frapy_older): Remove cast.
16031 (frapy_newer): Likewise.
16032 * python/py-breakpoint.c (local_setattro): Remove cast.
16033 * python/py-arch.c (archpy_name): Remove local variable.
16034 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16036 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16038 * unittests/basic_string_view/element_access/char/empty.cc:
16039 Fix year range in copyright header.
16041 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16043 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16045 <operator==>: Update with for removed field.
16047 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16048 <isa_features>: ...this.
16049 <abi_features>: New field.
16050 (riscv_isa_flen): Update comment.
16051 (riscv_abi_xlen): New declaration.
16052 (riscv_abi_flen): New declaration.
16053 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16055 (riscv_abi_xlen): New function.
16056 (riscv_isa_flen): Update to get answer from isa_features.
16057 (riscv_abi_flen): New function.
16058 (riscv_has_fp_abi): Update to get answer from abi_features.
16059 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16061 (riscv_call_info) <xlen, flen>: Update comment.
16062 (riscv_call_arg_struct): Remove invalid assertions
16063 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16065 (riscv_gdbarch_init): Gather isa features and abi features
16066 separately, ensure both match on the gdbarch when reusing an old
16067 gdbarch. Relax an error check to allow 32-bit abi float to run on
16068 a target with 64-bit float hardware.
16070 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16072 * source.c (search_command_helper): Stop reverse search
16073 when line 1 has been searched.
16075 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16077 * record-full.c (record_full_base_target::close): Rewrite
16078 record_full_core_buf_list free logic.
16080 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16082 * break-catch-syscall.c (print_one_catch_syscall): xfree
16085 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16087 * top.c (print_gdb_version): Update Copyright year in version
16090 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16092 Update copyright year range in all GDB files.
16094 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16096 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16098 For older changes see ChangeLog-2018.
16104 version-control: never