1 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
3 * jit.c: Fix indentation, replace spaces with tabs where
6 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
10 2019-12-12 Tom Tromey <tom@tromey.com>
12 * objfiles.h (struct objfile) <partial_symtabs>: Now a
15 2019-12-12 Tom Tromey <tom@tromey.com>
17 * progspace.h (objfile_list): New typedef.
18 (class unwrapping_objfile_iterator)
19 (struct unwrapping_objfile_range): Newl
20 (struct program_space) <objfiles_range>: Change type.
21 <objfiles>: Change return type.
22 <add_objfile>: Change type of "objfile" parameter.
23 <objfiles_list>: Now a list of shared_ptr.
24 * progspace.c (program_space::add_objfile): Change type of
26 (program_space::remove_objfile): Update.
27 * objfiles.h (struct objfile) <~objfile>: Make public.
28 * objfiles.c (objfile::make): Update.
29 (objfile::unlink): Don't call delete.
31 2019-12-12 Tom Tromey <tom@tromey.com>
33 * symfile.c (symbol_file_clear): Update.
34 * progspace.h (struct program_space) <free_all_objfiles>: Declare
36 * progspace.c (program_space::free_all_objfiles): New method.
37 * objfiles.h (free_all_objfiles): Don't declare.
38 * objfiles.c (free_all_objfiles): Move to program_space.
40 2019-12-12 Tom Tromey <tom@tromey.com>
42 * progspace.c (program_space::add_objfile)
43 (program_space::remove_objfile): Update.
44 (program_space::multi_objfile_p): Remove.
45 * objfiles.h (struct objfile) <next>: Remove.
46 * objfiles.c (objfile::objfile): Update.
47 (put_objfile_before): Update.
48 (unlink_objfile): Update.
49 * progspace.h (object_files): Remove.
50 (struct program_space) <objfiles_head>: Remove.
51 <objfiles_list>: New member.
52 <objfiles_range, objfiles_safe_range>: Change type.
53 (objfiles): Change return type.
54 (objfiles_safe): Update.
55 (multi_objfile_p): Rewrite and inline.
56 (object_files): Remove macro.
58 2019-12-12 Tom Tromey <tom@tromey.com>
60 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
62 (basic_safe_range): New class.
64 2019-12-12 Tom Tromey <tom@tromey.com>
66 * progspace.c (program_space::multi_objfile_p): New method.
67 * printcmd.c (info_symbol_command): Update.
68 * maint.c (maintenance_translate_address): Update.
69 * objfiles.h (MULTI_OBJFILE_P): Remove.
70 * progspace.h (struct program_space) <multi_objfile_p>: New
73 2019-12-12 Tom Tromey <tom@tromey.com>
75 * progspace.h (struct program_space) <remove_objfile>: Declare.
76 * progspace.c (program_space::remove_objfile): New method.
77 * objfiles.c (unlink_objfile): Remove.
78 (objfile::unlink): Call remove_objfile.
79 (objfile): Don't call unlink_objfile.
81 2019-12-12 Tom Tromey <tom@tromey.com>
83 * progspace.h (struct program_space) <add_objfile>: Declare
85 * progspace.c (program_space::add_objfile): New method.
86 * objfiles.c (~objfile): Don't unlink objfile.
87 (put_objfile_before): Remove.
88 (add_separate_debug_objfile): Don't call put_objfile_before.
89 (objfile::make): Call add_objfile. Set new_objfiles_available on
90 the per-program-space data.
92 2019-12-12 Tom Tromey <tom@tromey.com>
94 * symfile.c (syms_from_objfile_1): Use objfile_up.
95 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
97 (reread_symbols): Use objfile_up.
98 * solib.c (update_solib_list, reload_shared_libraries_1): Call
100 * objfiles.h (struct objfile) <~objfile>: Now private.
101 <unlink>: New method.
102 (struct objfile_deleter): New.
103 (objfile_up): New typedef.
104 * objfiles.c (objfile::unlink): New method.
105 (free_objfile_separate_debug, free_all_objfiles)
106 (objfile_purge_solibs): Use it.
107 * jit.c (jit_unregister_code): Remove.
108 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
110 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
112 * compile/compile-object-load.c (compile_object_load): Use
115 2019-12-12 Tom Tromey <tom@tromey.com>
117 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
119 * objfiles.h (struct objjfile) <make>: No longer inline.
120 (add_separate_debug_objfile): Don't declare.
121 * objfiles.c (add_separate_debug_objfile): Now static.
122 (objfile::make): Move from objfiles.h. Call
123 add_separate_debug_objfile. Add "parent" parameter.
125 2019-12-12 Tom Tromey <tom@tromey.com>
127 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
128 * objfiles.h (struct objfile): Make constructor private.
129 <make>: New static method.
130 * jit.c (jit_object_close_impl): Update.
132 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
134 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
137 2019-12-12 Tom Tromey <tromey@adacore.com>
139 * xml-support.c (xml_fetch_content_from_file): Don't call
141 * utils.h (class gdb_argv): Remove malloc_failure comment.
142 * utils.c (gdb_argv::reset): Don't call malloc_failure.
144 2019-12-12 Tom Tromey <tromey@adacore.com>
146 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
147 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
148 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
149 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
150 * riscv-ravenscar-thread.c: New file.
151 * riscv-ravenscar-thread.h: New file.
152 * riscv-tdep.c (riscv_gdbarch_init): Call
153 register_riscv_ravenscar_ops.
155 2019-12-12 Tom Tromey <tromey@adacore.com>
157 * gdbsupport/thread-pool.c (set_thread_name): Use
160 2019-12-12 Luis Machado <luis.machado@linaro.org>
162 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
163 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
166 2019-12-11 Tom Tromey <tom@tromey.com>
168 * tui/tui-win.c (tui_set_win_height_command): Call
169 tui_adjust_window_height.
170 (tui_adjust_win_heights, new_height_ok): Remove.
171 * tui/tui-layout.h (tui_adjust_window_height): Declare.
172 * tui/tui-layout.c (tui_adjust_window_height): New function.
174 2019-12-11 Tom Tromey <tom@tromey.com>
176 * tui/tui-win.c (tui_resize_all): Remove code, call
177 tui_apply_current_layout.
179 2019-12-11 Tom Tromey <tom@tromey.com>
181 * tui/tui-layout.h (tui_apply_current_layout): Declare.
182 * tui/tui-layout.c (standard_layouts, applied_layout): New
184 (tui_apply_current_layout): New function.
185 (show_layout): Set applied_layout. Call
186 tui_apply_current_layout.
187 (show_source_command, show_disasm_command)
188 (show_source_disasm_command, show_data)
189 (show_source_or_disasm_and_command): Remove.
190 (initialize_layouts): New function.
191 (_initialize_tui_layout): Call initialize_layouts.
193 2019-12-11 Tom Tromey <tom@tromey.com>
195 * tui/tui-layout.h (class tui_layout_base)
196 (class tui_layout_window, class tui_layout_split): New.
197 * tui/tui-layout.c (tui_get_window_by_name)
198 (tui_layout_window::clone, tui_layout_window::apply)
199 (tui_layout_window::get_sizes, tui_layout_window::add_split)
200 (tui_layout_split::add_window, tui_layout_split::clone)
201 (tui_layout_split::get_sizes)
202 (tui_layout_split::set_weights_from_heights)
203 (tui_layout_split::adjust_size, tui_layout_split::apply): New
205 (tui_layout_split::add_split, tui_layout_split::add_split)
206 (tui_layout_split::set_weights_from_heights)
207 (tui_layout_split::set_weights_from_heights): New functions.
209 2019-12-11 Tom Tromey <tom@tromey.com>
211 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
212 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
213 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
214 * tui/tui-data.h (struct tui_point): Remove.
215 (struct tui_gen_win_info) <origin>: Remove.
217 * tui/tui-command.c (tui_cmd_window::resize): Update.
219 2019-12-11 Tom Tromey <tom@tromey.com>
221 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
223 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
225 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
227 (struct tui_win_info) <min_height>: Implement.
229 2019-12-11 Tom Tromey <tom@tromey.com>
231 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
232 (struct tui_win_info) <can_box>: Update.
234 2019-12-11 Tom Tromey <tom@tromey.com>
236 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
238 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
240 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
242 (struct tui_win_info) <max_height>: Now override.
244 2019-12-11 Joel Brobecker <brobecker@adacore.com>
246 * NEWS: Create a new section for the next release branch.
247 Rename the section of the current branch, now that it has
250 2019-12-11 Joel Brobecker <brobecker@adacore.com>
252 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
253 * version.in: Bump version to 10.0.50.DATE-git.
255 2019-12-11 Tom Tromey <tromey@adacore.com>
258 * gdbsupport/thread-pool.c (set_thread_name): New function.
259 (thread_pool::set_thread_count): Don't call pthread_setname_np.
260 (thread_pool::thread_function): Call set_thread_name.
262 2019-12-11 Tom Tromey <tromey@adacore.com>
264 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
267 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
269 * NEWS: Document -raw-values option and the related setting commands.
270 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
271 only set it on when /r is given.
272 * valprint.c (value_print_option_defs): New element raw-values.
273 * Makefile.in: Add the new file.
275 2019-12-10 Christian Biesinger <cbiesinger@google.com>
277 * gdbsupport/safe-strerror.c: Supress the unused function warning
278 for select_strerror_r.
280 2019-12-10 Christian Biesinger <cbiesinger@google.com>
282 * config.in: Regenerate.
283 * configure: Regenerate.
284 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
285 safe_strerror instead of strerror.
286 * gdbsupport/common.m4: Don't check for strerror.
287 * gdbsupport/safe-strerror.c: Support both the glibc version
288 of strerror_r and the XSI version.
290 2019-12-10 Tom Tromey <tromey@adacore.com>
292 * ada-typeprint.c (print_choices): Use a single "?".
293 (print_variant_part): Print "?" if the discriminant name
296 2019-12-10 George Barrett <bob@bob131.so>
298 Fix scripted probe breakpoints.
299 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
301 (breakpoint_ops_for_event_location_type)
302 (breakpoint_ops_for_event_location): Add function definitions.
303 (break_command_1, trace_command): Use
304 breakpoint_ops_for_event_location.
305 * breakpoint.h (breakpoint_ops_for_event_location): Add function
307 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
308 breakpoint_ops_for_event_location.
309 * python/py-breakpoint.c (bppy_init): Use
310 breakpoint_ops_for_event_location.
312 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
314 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
315 when ranking an lvalue argument for an rvalue parameter.
317 2019-12-08 Wataru Ashihara <wataash@wataash.com>
319 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
320 template argument for scoped_restore_tmpl from bool to int.
322 2019-12-07 Keith Seitz <keiths@redhat.com>
324 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
325 (build_id_to_debug_bfd): Make static, rewriting to use
326 build_id_to_bfd_suffix.
327 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
328 adding `suffix' parameter. Append SUFFIX to file names
329 when searching for matching files.
330 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
331 (build_id_to_exec_bfd): Likewise.
332 * build-id.h (build_id_to_debug_bfd): Clarify that function
333 searches for BFD of debug info file.
334 (build_id_to_exec_bfd): Declare.
335 * corelow.c: Include build-id.h.
336 (locate_exec_from_corefile_build_id): New function.
337 (core_target_open): If no executable BFD is found,
338 search for a core file BFD using build-id.
340 2019-12-06 Christian Biesinger <cbiesinger@google.com>
342 * bcache.c: Put in namespace gdb.
343 * bcache.h: Likewise.
344 * gdbtypes.c (check_types_worklist): Update.
345 (types_deeply_equal): Update.
346 * macrotab.c (struct macro_table) <bcache>: Update.
347 (new_macro_table): Update.
348 * macrotab.h (struct bcache): Put this forward declaration
349 inside namespace gdb.
350 (new_macro_table): Update.
351 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
353 <macro_cache>: Update.
354 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
356 2019-12-06 Tom de Vries <tdevries@suse.de>
359 * block.c (best_symbol, better_symbol): New function.
360 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
363 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
366 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
367 for ranking see-through reference cases.
369 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
370 * stack.c (faas_command): Check a command is provided.
371 * thread.c (taas_command, tfaas_command): Likewise.
373 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
374 * inferior.c (prune_inferiors): Only call delete_inferior,
375 Do not modify the inferior list.
377 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
379 * c-exp.y: Update calls to lookup_typename,
380 lookup_signed_typename and lookup_unsigned_typename.
381 * c-lang.c (evaluate_subexp_c): Likewise.
382 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
384 * eval.c (binop_promote): Likewise.
385 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
386 (lookup_unsigned_typename): Likewise.
387 (lookup_signed_typename): Likewise.
388 * gdbtypes.h (lookup_unsigned_typename): Likewise.
389 (lookup_signed_typename): Likewise.
390 (lookup_typename): Likewise.
391 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
392 lookup_typename, lookup_signed_typename,
393 lookup_unsigned_typename.
394 * m2-exp.y: Likewise.
395 * printcmd.c (printf_wide_c_string): Likewise.
396 (ui_printf): Likewise.
397 * python/py-type.c (typy_lookup_typename): Likewise.
398 * python/py-xmethods.c (python_xmethod_worker::invoke):
400 * rust-exp.y: Likewise.
402 2019-12-04 Christian Biesinger <cbiesinger@google.com>
404 * configure.nat (obsd64): Add missing files x86-nat.o and
407 2019-12-04 Tom Tromey <tom@tromey.com>
409 * valprint.c (val_print_string): Use metadata_style.
410 * go-valprint.c (print_go_string): Use metadata style.
411 * p-valprint.c (pascal_object_print_static_field): Use metadata
413 * cp-valprint.c (cp_print_static_field): Use metadata style.
415 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
416 Chris January <chris.january@arm.com>
418 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
420 (typebase): New patterns for complex, single/double precision, and
421 single/double complex.
422 (f77_keywords): Change token for complex keyword, and add single,
423 double, and precision keywords.
425 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
427 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
430 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
432 * regcache.c (cooked_read_test): Initialize thread list of
435 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
437 * aarch64-linux-tdep.c: Remove includes.
439 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
441 * aarch64-tdep.c: Remove includes.
443 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
445 * filtered-iterator.h (filtered_iterator) <operator==,
446 operator!=>: Compare wrapped iterators, not wrapped pointers.
447 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
448 unittests/filtered_iterator-selftests.c.
449 * unittests/filtered_iterator-selftests.c: New file.
451 2019-12-04 Tom Tromey <tromey@adacore.com>
453 * gdbtypes.c (create_range_type): Inherit endianity
456 2019-12-04 Tom Tromey <tromey@adacore.com>
458 * ada-lang.c (decode_constrained_packed_array)
459 (ada_value_assign, value_assign_to_component): Update.
460 * dwarf2loc.c (rw_pieced_value, access_memory)
461 (dwarf2_compile_expr_to_ax): Update.
462 * dwarf2read.c (dwarf2_add_field): Update.
463 * eval.c (evaluate_subexp_standard): Update.
464 * gdbarch.c, gdbarch.h: Rebuild.
465 * gdbarch.sh (bits_big_endian): Remove.
466 * gdbtypes.h (union field_location): Update comment.
467 * target-descriptions.c (make_gdb_type): Update.
468 * valarith.c (value_bit_index): Update.
469 * value.c (struct value) <bitpos>: Update comment.
470 (unpack_bits_as_long, modify_field): Update.
471 * value.h (value_bitpos): Update comment.
473 2019-12-04 Tom Tromey <tromey@adacore.com>
475 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
478 2019-12-04 Tom Tromey <tromey@adacore.com>
480 * dwarf2read.c (dwarf2_init_float_type)
481 (dwarf2_init_complex_target_type): Add byte_order parameter.
482 (read_base_type): Compute byte order earlier.
483 * gdbtypes.c (init_float_type): Add byte_order parameter.
484 * gdbtypes.h (init_float_type): Add byte_order parameter.
486 2019-12-04 Tom Tromey <tromey@adacore.com>
488 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
490 2019-12-04 Tom Tromey <tromey@adacore.com>
492 * dwarf2read.c (process_structure_scope): Initialize
495 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
497 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
498 add it into the search spec.
499 (parse_max_results_option): New function.
500 (mi_info_functions_or_variables): Parse -max-results flag and pass
501 it to mi_symbol_info.
502 (mi_cmd_symbol_info_modules): Likewise.
503 (mi_cmd_symbol_info_types): Likewise.
504 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
505 return type to bool, change result container into a set, and don't
506 add new results if we have enough already.
507 (global_symbol_searcher::add_matching_msymbols): Change return
508 type to bool, and don't add new results if we have enough already.
509 (sort_search_symbols_remove_dups): Delete.
510 (global_symbol_searcher::search): Early exit from search loop when
511 we have enough results. Use a std::set to collect the results
512 from calling add_matching_symbols.
513 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
515 (global_symbol_searcher) <m_max_search_results>: New member
517 (global_symbol_searcher) <add_matching_symbols>: Update header
518 comment and change return type to bool.
519 (global_symbol_searcher) <add_matching_msymbols>: Update header
520 comment and change return type to bool.
522 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
524 * symtab.c (symbol_search::compare_search_syms): Update header
526 (global_symbol_searcher::is_suitable_msymbol): New function.
527 (global_symbol_searcher::expand_symtabs): New function.
528 (global_symbol_searcher::add_matching_symbols): New function.
529 (global_symbol_searcher::add_matching_msymbols): New function.
530 (global_symbol_searcher::search): Move most of the content
531 into the new functions above, and call them as needed.
532 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
534 (global_symbol_searcher) <add_matching_symbols>: New member
536 (global_symbol_searcher) <add_matching_msymbols>: New member
538 (global_symbol_searcher) <is_suitable_msymbol>: New member
541 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
543 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
544 -symbol-info-module-variables entries.
545 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
546 (mi_cmd_symbol_info_module_variables): Declare.
547 * mi/mi-symbol-cmds.c
548 (module_symbol_search_iterator): New typedef.
549 (output_module_symbols_in_single_module_and_file): New function.
550 (output_module_symbols_in_single_module): New function.
551 (mi_info_module_functions_or_variables): New function.
552 (mi_cmd_symbol_info_module_functions): New function.
553 (mi_cmd_symbol_info_module_variables): New function.
554 * NEWS: Mention new MI command.
556 2019-12-03 Christian Biesinger <cbiesinger@google.com>
558 * bcache.c (hash): Remove.
559 (hash_continue): Remove.
560 * bcache.h (hash): Remove.
561 (hash_continue): Remove.
562 (struct bcache) <ctor>: Update.
563 * psymtab.c (psymbol_hash): Update.
564 * stabsread.c (hashname): Update.
565 * utils.h (fast_hash): Add an argument for a start value,
568 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
569 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
570 (destroy_block_symbol_cache): New function.
571 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
572 (resize_symbol_cache): Likewise.
574 2019-12-02 Tom Tromey <tom@tromey.com>
576 * unittests/tui-selftests.c (run_tests): Make conditional.
577 (_initialize_tui_selftest): Make conditional.
579 2019-12-02 Christian Biesinger <cbiesinger@google.com>
581 * aix-thread.c (debug_aix_thread): Change type to bool.
583 2019-12-02 Luis Machado <luis.machado@linaro.org>
585 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
587 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
589 * dwarf2read.c (read_tag_string_type): Read the fields required to
590 make a dynamic string, and possibly create a dynamic range for the
592 (attr_to_dynamic_prop): Setup is_reference based on the type of
593 attribute being processed.
594 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
595 (resolve_dynamic_array): Rename to...
596 (resolve_dynamic_array_or_string): ...this, update header comment,
597 and accept TYPE_CODE_STRING.
598 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
600 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
602 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
603 of its implementation from...
604 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
607 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
609 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
610 create a range with stride where appropriate.
611 * f-valprint.c: Include 'gdbarch.h'.
612 (f77_print_array_1): Take the stride into account when walking the
613 array. Also convert the stride into addressable units.
614 * gdbtypes.c (create_range_type): Initialise the stride to
616 (create_range_type_with_stride): New function, initialise the
617 range as normal, and then setup the stride.
618 (has_static_range): Include the stride here. Also change the
620 (create_array_type_with_stride): Consider the range stride if the
621 array isn't given its own stride.
622 (resolve_dynamic_range): Resolve the stride if needed.
623 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
624 (struct range_bounds) <flag_is_byte_stride>: New member variable.
625 (TYPE_BIT_STRIDE): Define.
626 (TYPE_ARRAY_BIT_STRIDE): Define.
627 (create_range_type_with_stride): Declare.
628 * valarith.c (value_subscripted_rvalue): Take range stride into
629 account when walking the array.
631 2019-12-01 Tom Tromey <tom@tromey.com>
633 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
636 2019-12-01 Tom Tromey <tom@tromey.com>
638 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
640 * unittests/tui-selftests.c: New file.
641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
643 2019-12-01 Tom Tromey <tom@tromey.com>
645 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
647 2019-12-01 Tom Tromey <tom@tromey.com>
649 * NEWS: Document new settings.
650 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
651 * tui/tui-win.c (_initialize_tui_win): Add border style
653 * tui/tui-io.h (tui_apply_style): Declare.
654 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
656 (apply_ansi_escape, tui_set_reverse_mode): Update.
657 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
658 Add "skip_intensity" parameter.
659 <changed>: New member.
660 <do_set_value>: Declare.
661 (tui_border_style, tui_active_border_style): Declare.
662 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
664 (cli_style_option): Initialize "changed".
665 (cli_style_option::do_set_value): New function.
666 (cli_style_option::add_setshow_commands): Add "skip_intensity"
668 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
669 (_initialize_cli_style): Update. Create TUI border style
672 2019-12-01 Tom Tromey <tom@tromey.com>
674 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
676 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
678 * tui/tui-win.h (compact_source): Declare.
679 * tui/tui-win.c (compact_source): New global.
680 (tui_set_compact_source, tui_show_compact_source): New functions.
681 (_initialize_tui_win): Add "compact-source" setting.
682 * tui/tui-source.c (tui_source_window::set_contents): Handle
683 compact_source setting.
684 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
685 * NEWS: Document new setting.
687 2019-11-30 Tom Tromey <tom@tromey.com>
689 * dwarf2read.c (dwarf2_add_field): Include field offset when
690 computing variant part length.
692 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
693 * NEWS: Mention define-prefix. Tell that command names can now
694 contain a . character.
696 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
698 * command.h (valid_cmd_char_p): Declare.
699 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
700 the check of valid command char.
701 (find_command_name_length, valid_user_defined_cmd_name_p): Use
703 * cli/cli-script.c (validate_comname): Likewise.
704 * completer.c (gdb_completer_command_word_break_characters):
705 Do not remove . from the word break char, update comments.
706 (complete_line_internal_1): Use valid_cmd_char_p.
707 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
708 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
710 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
712 * cli/cli-script.c (do_define_command): Ensure a redefined
713 prefix command is kept as a prefix command.
714 (define_prefix_command): New function.
715 (show_user_1): Report user defined prefixes.
716 (_initialize_cli_script): Create the new 'define-prefix' command.
717 Add completers for 'define' and 'document'.
718 * top.c (execute_command): If command is a user-defined prefix only
719 command, report the list of commands for this prefix command.
721 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
723 * valops.c (find_oload_champ): Improve debug output.
725 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727 * valops.c (find_oload_champ): Print part of debug messages
728 before the badness vector is std::move'd.
730 2019-11-28 Tom Tromey <tom@tromey.com>
732 * value.c (creal_internal_fn): Fix comment.
734 2019-11-28 Tom Tromey <tom@tromey.com>
736 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
737 flag_bound_evaluated>: Now unsigned.
739 2019-11-28 Tom Tromey <tom@tromey.com>
741 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
744 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
746 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
748 * jit.c (jit_unregister_code): Add debug print to match
751 2019-11-27 Christian Biesinger <cbiesinger@google.com>
753 * NEWS: Mention the new multithreaded symbol loading.
755 2019-11-27 Christian Biesinger <cbiesinger@google.com>
757 * maint.c (n_worker_threads): Default to 0.
758 (worker_threads_disabled): New function.
759 * maint.h (worker_threads_disabled): New function.
760 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
761 here if worker_threads_disabled () is true.
762 (minimal_symbol_reader::install): Skip all threading if
763 worker_threads_disabled () is true.
765 2019-11-27 Christian Biesinger <cbiesinger@google.com>
767 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
768 hash code if possible.
769 (add_minsym_to_demangled_hash_table): Likewise.
770 (minimal_symbol_reader::install): Compute the hash codes for msymbol
771 on the background thread.
772 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
775 2019-11-27 Christian Biesinger <cbiesinger@google.com>
777 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
778 of the mangled name on the background thread.
779 * symtab.c (symbol_set_names): Allow passing in the hash of the
781 * symtab.h (symbol_set_names): Likewise.
783 2019-11-27 Kevin Buettner <kevinb@redhat.com>
785 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
786 physnames are computed for inherited DIEs.
788 2019-11-27 Tom Tromey <tromey@adacore.com>
790 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
792 * cp-support.c: Remove unnecessary backslashes.
794 2019-11-27 Christian Biesinger <cbiesinger@google.com>
796 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
797 with sym->set_linkage_name.
798 * coffread.c (coff_read_enum_type): Likewise.
799 * mdebugread.c (parse_symbol): Likewise.
800 * stabsread.c (patch_block_stabs): Likewise.
801 (define_symbol): Likewise.
802 (read_enum_type): Likewise.
803 (common_block_end): Likewise.
804 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
806 (SYMBOL_SET_LINKAGE_NAME): Remove.
807 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
808 with sym->set_linkage_name.
810 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
812 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
813 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
814 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
815 * NEWS: Mention new MI command.
817 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
819 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
820 '-symbol-info-types', and '-symbol-info-variables'.
821 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
822 (mi_cmd_symbol_info_types): Declare.
823 (mi_cmd_symbol_info_variables): Declare.
824 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
825 (output_debug_symbol): New function.
826 (output_nondebug_symbol): New function.
827 (mi_symbol_info): New function.
828 (mi_info_functions_or_variables): New function.
829 (mi_cmd_symbol_info_functions): New function.
830 (mi_cmd_symbol_info_types): New function.
831 (mi_cmd_symbol_info_variables): New function.
832 * NEWS: Mention new commands.
834 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
836 * symtab.c (symbol_to_info_string): New function, most content
837 moved from print_symbol_info, but updated to return a std::string.
838 (print_symbol_info): Update to use symbol_to_info_string and print
840 * symtab.h (symbol_to_info_string): Declare new function.
842 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
844 * python/python.c (gdbpy_rbreak): Convert to using
845 global_symbol_searcher.
846 * symtab.c (file_matches): Convert return type to bool, change
847 file list to std::vector, update header comment.
848 (search_symbols): Rename to...
849 (global_symbol_searcher::search): ...this and update now its
850 a member function of global_symbol_searcher. Take account of the
851 changes to file_matches.
852 (symtab_symbol_info): Convert to using global_symbol_searcher.
853 (rbreak_command): Likewise.
854 (search_module_symbols): Likewise.
855 * symtab.h (enum symbol_search): Update comment.
856 (search_symbols): Remove declaration.
857 (class global_symbol_searcher): New class.
859 2019-11-26 Tom Tromey <tromey@adacore.com>
861 * cp-support.c (_initialize_cp_support): Conditionally initialize
862 gdb_demangle_attempt_core_dump.
864 2019-11-26 Tom Tromey <tom@tromey.com>
866 * python/py-function.c (fnpy_init): Update.
867 * value.h (add_internal_function): Adjust declaration.
868 * value.c (function_destroyer): Remove.
869 (do_add_internal_function): Don't set destroyer or copy name.
870 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
872 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
873 (cmdpy_init): Set name_allocated.
874 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
876 (~cmd_list_element): Free "name" if needed.
878 2019-11-26 Tom Tromey <tom@tromey.com>
880 * value.h (add_internal_function): Add new overload. Move
881 documentation from value.h.
882 * value.c (do_add_internal_function): New function.
883 (add_internal_function): Use it. Add new overload.
884 (function_destroyer): Don't free doc.
885 * python/py-function.c (fnpy_init): Update.
887 2019-11-26 Tom Tromey <tom@tromey.com>
889 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
890 (cmdpy_init): Set "doc_allocated".
892 2019-11-26 Tom Tromey <tom@tromey.com>
894 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
895 name of worker thread.
896 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
898 * configure, config.in: Rebuild.
900 2019-11-26 Tom Tromey <tom@tromey.com>
902 * python/python.c (class gdbpy_gil): New.
903 (struct gdbpy_event): Add constructor, destructor, operator().
904 (gdbpy_post_event): Use run_on_main_thread.
905 (gdbpy_initialize_events): Remove.
906 (do_start_initialization): Update.
908 2019-11-26 Tom Tromey <tom@tromey.com>
911 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
912 commands. Call update_thread_pool_size.
913 (update_thread_pool_size, maintenance_set_worker_threads): New
915 (n_worker_threads): New global.
917 2019-11-26 Christian Biesinger <cbiesinger@google.com>
918 Tom Tromey <tom@tromey.com>
920 * minsyms.c (minimal_symbol_reader::install): Use
922 * gdbsupport/parallel-for.h: New file.
923 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
925 2019-11-26 Christian Biesinger <cbiesinger@google.com>
926 Tom Tromey <tom@tromey.com>
928 * gdbsupport/thread-pool.h: New file.
929 * gdbsupport/thread-pool.c: New file.
930 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
931 (HFILES_NO_SRCDIR): Add thread-pool.h.
933 2019-11-26 Tom Tromey <tom@tromey.com>
935 * event-top.h (thread_local_segv_handler): Declare.
936 * event-top.c (thread_local_segv_handler): New global.
937 (install_handle_sigsegv, handle_sigsegv): New functions.
938 (async_init_signals): Install SIGSEGV handler.
939 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
941 (report_failed_demangle): New function.
942 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
943 handler-setting code, instead use segv_handler. Run warning code
946 2019-11-26 Tom Tromey <tom@tromey.com>
948 * run-on-main-thread.c: New file.
949 * run-on-main-thread.h: New file.
950 * unittests/main-thread-selftests.c: New file.
951 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
952 main-thread-selftests.c.
953 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
954 (COMMON_SFILES): Add run-on-main-thread.c.
956 2019-11-26 Tom Tromey <tom@tromey.com>
958 * main.c (setup_alternate_signal_stack): Remove.
959 (captured_main_1): Use gdb::alternate_signal_stack.
960 * gdbsupport/alt-stack.h: New file.
962 2019-11-26 Tom Tromey <tom@tromey.com>
964 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
966 (save_original_signals_state, restore_original_signals_state): Use
968 * linux-nat.c (block_child_signals, restore_child_signals_mask)
969 (_initialize_linux_nat): Use gdb_sigmask.
970 * guile/guile.c (_initialize_guile): Use block_signals.
971 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
972 * gdbsupport/gdb-sigmask.h: New file.
973 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
974 * cp-support.c (gdb_demangle): Use gdb_sigmask.
975 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
977 * configure, config.in: Rebuild.
978 * gdbsupport/block-signals.h: New file.
980 2019-11-26 Tom Tromey <tom@tromey.com>
982 * acinclude.m4: Include ax_pthread.m4.
983 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
984 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
985 (CLIBS): Use PTHREAD_LIBS.
986 (aclocal_m4_deps): Add ax_pthread.m4.
987 * config.in, configure: Rebuild.
988 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
990 2019-11-26 Tom Tromey <tom@tromey.com>
992 * symtab.h (struct minimal_symbol) <name_set>: New member.
993 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
994 Don't call symbol_set_names.
995 (minimal_symbol_reader::install): Call symbol_set_names.
997 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
999 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1000 restore_active_ext_lang, as GIL is needed for (indirectly)
1001 called PyOS_InterruptOccurred.
1003 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1005 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1008 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1010 * remote-sim.c (simulator_command): Make static, remove
1013 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1015 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1017 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1018 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1020 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1022 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1024 * unittests/basic_string_view/element_access/char/1.cc (test01):
1027 * unittests/basic_string_view/element_access/char/empty.cc (main):
1029 * unittests/basic_string_view/element_access/char/front_back.cc
1032 * unittests/basic_string_view/inserters/char/2.cc (test05):
1035 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1038 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1041 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1043 * unittests/basic_string_view/operations/compare/char/1.cc
1046 * unittests/basic_string_view/operations/compare/char/13650.cc
1048 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1051 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1054 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1057 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1060 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1063 * unittests/basic_string_view/operations/find/char/4.cc (main):
1065 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1068 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1071 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1074 * unittests/basic_string_view/operations/substr/char/1.cc
1077 * unittests/basic_string_view/operators/char/2.cc (main):
1079 * unittests/optional/assignment/1.cc (test): Likewise.
1080 * unittests/optional/assignment/2.cc (test): Likewise.
1081 * unittests/optional/assignment/3.cc (test): Likewise.
1082 * unittests/optional/assignment/4.cc (test): Likewise.
1083 * unittests/optional/assignment/5.cc (test): Likewise.
1084 * unittests/optional/assignment/6.cc (test): Likewise.
1085 * unittests/optional/assignment/7.cc (test): Likewise.
1086 * unittests/optional/cons/copy.cc (test): Likewise.
1087 * unittests/optional/cons/default.cc (test): Likewise.
1088 * unittests/optional/cons/move.cc (test): Likewise.
1089 * unittests/optional/cons/value.cc (test): Likewise.
1090 * unittests/optional/in_place.cc (test): Likewise.
1091 * unittests/optional/observers/1.cc (test): Likewise.
1092 * unittests/optional/observers/2.cc (test): Likewise.
1094 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1096 * tui-win.h (tui_set_var_cmd): Remove.
1097 * tui-win.c (tui_set_var_cmd): Make static.
1099 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1101 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1102 rbreak_command_wrapper): Remove.
1103 * symtab.c (rbreak_command_wrapper): Remove.
1105 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1107 * inferior.h (info_terminal_command): Remove declaration.
1108 * inflow.c (info_terminal_command): Make static.
1110 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1112 * inferior.c (exit_inferior_silent): Remove.
1114 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1116 * dictionary.c (dict_empty, mdict_empty): Remove.
1117 * dictionary.c (mdict_empty): Remove.
1119 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1121 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1122 (arc_insn_get_memory_offset): Likewise.
1123 (arc_insn_dump): Likewise.
1124 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1125 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1126 * dictionary.c (dict_iterator_next): Likewise.
1127 (dict_iter_match_first): Likewise.
1128 (dict_iter_match_next): Likewise.
1129 * f-lang.c (evaluate_subexp_f): Likewise.
1130 * hppa-tdep.c (hppa_read_pc): Likewise.
1131 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1132 * parse.c (write_exp_elt_msym): Likewise.
1133 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1134 * remote.c (remote_packet_size): Likewise.
1135 (remote_notif_stop_parse): Likewise.
1136 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1137 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1138 * source.c (prepare_path_for_appending): Likewise.
1139 * sparc64-linux-tdep.c
1140 (sparc64_linux_handle_segmentation_fault); Likewise.
1141 * stack.c (frame_selection_by_function_completer): Likewise.
1143 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1145 * completer.c (set_gdb_completion_word_break_characters):
1148 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1150 * dwarf-index-write.c: Include dwarf-index-write.h.
1151 * mi/mi-interp.c: Include mi/mi-interp.h.
1153 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1155 * aarch32-tdep.c: Include aarch32-tdep.h.
1156 * aarch32-tdep.h: Forward-declare struct target_desc.
1158 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1160 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1162 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1163 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1165 2019-11-25 Tom de Vries <tdevries@suse.de>
1167 * contrib/words.sh: Add -c option.
1169 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1171 * solib.c (solib_find_1): Change int to bool.
1172 (exec_file_find): Change int to bool.
1173 (solib_find): Change int to bool.
1174 (solib_read_symbols): Change int to bool.
1175 (solib_used): Change int to bool.
1176 (solib_add): Change int to bool.
1177 (info_sharedlibrary_command): Change int to bool.
1178 (solib_contains_address_p): Change int to bool.
1179 (solib_keep_data_in_core): Change int to bool.
1180 (in_solib_dynsym_resolve_code): Change int to bool.
1181 (reload_shared_libraries_1): Change int to bool.
1182 (gdb_sysroot_changed): Change int to bool.
1183 * solib.h (solib_read_symbols): Change int to bool.
1184 (solib_contains_address_p): Change int to bool.
1185 (solib_keep_data_in_core): Change int to bool.
1186 (in_solib_dynsym_resolve_code): Change int to bool.
1187 (libpthread_name_p): Change int to bool.
1189 2019-11-25 Luis Machado <luis.machado@linaro.org>
1191 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1192 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1193 (remote_packet_max_chars): New static global.
1194 (show_remote_packet_max_chars): New function.
1195 (remote_target::putpkt_binary): Adjust to use new
1196 remote_packet_max_chars option.
1197 (remote_target::getpkt_or_notif_sane_1): Likewise.
1198 (_initialize_remote): Register new remote-packet-max-chars option.
1200 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1202 * m68k-linux-nat.c: Include gdbarch.h.
1204 2019-11-24 Tom Tromey <tom@tromey.com>
1206 * symfile.c (read_symbols): Update.
1207 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1209 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1210 (psym_lookup_symbol, psym_find_last_source_symtab)
1211 (psym_forget_cached_source_info, psym_print_stats)
1212 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1213 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1214 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1215 (psym_find_compunit_symtab_by_address)
1216 (maintenance_print_psymbols, maintenance_info_psymtabs)
1217 (maintenance_check_psymtabs): Update.
1218 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1221 2019-11-22 Tom Tromey <tom@tromey.com>
1223 * observable.h: Update comments.
1225 2019-11-22 Tom Tromey <tromey@adacore.com>
1227 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1228 (print_ada_task_info): Don't try to fetch thread id if task is not
1231 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1233 * ada-exp.y: Update.
1234 * ada-lang.c (sort_choices): Update.
1235 (ada_print_symbol_signature): Update.
1236 (resolve_subexp): Update.
1237 (ada_parse_renaming): Update.
1238 (ada_read_renaming_var_value): Update.
1239 (lesseq_defined_than): Update.
1240 (remove_extra_symbols): Update.
1241 (remove_irrelevant_renamings): Update.
1242 (ada_add_block_symbols): Update.
1243 (ada_collect_symbol_completion_matches): Update.
1244 (ada_is_renaming_symbol): Update.
1245 (aggregate_assign_from_choices): Update.
1246 (ada_evaluate_subexp): Update.
1247 (ada_has_this_exception_support): Update.
1248 (ada_is_non_standard_exception_sym): Update.
1249 (ada_add_exceptions_from_frame): Update.
1250 (ada_add_global_exceptions): Update.
1251 (ada_print_subexp): Update.
1252 * ax-gdb.c (gen_var_ref): Update.
1253 (gen_maybe_namespace_elt): Update.
1254 (gen_expr_for_cast): Update.
1257 * blockframe.c (find_pc_partial_function): Update.
1258 * breakpoint.c (print_breakpoint_location): Update.
1259 (update_static_tracepoint): Update.
1260 * btrace.c (ftrace_print_function_name): Update.
1261 (ftrace_function_switched): Update.
1262 * buildsym.c (find_symbol_in_list): Update.
1264 * c-typeprint.c (c_print_typedef): Update.
1265 (c_type_print_template_args): Update.
1266 * cli/cli-cmds.c (edit_command): Update.
1267 (list_command): Update.
1268 (print_sal_location): Update.
1269 * coffread.c (patch_opaque_types): Update.
1270 (process_coff_symbol): Update.
1271 (coff_read_enum_type): Update.
1272 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1273 (convert_one_symbol): Update.
1274 (hash_symname): Update.
1275 (eq_symname): Update.
1276 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1277 * compile/compile-cplus-types.c (debug_print_scope): Update.
1278 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1279 * compile/compile-object-load.c (get_out_value_type): Update.
1280 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1281 (search_symbol_list): Update.
1282 (cp_lookup_symbol_imports_or_template): Update.
1283 * cp-support.c (overload_list_add_symbol): Update.
1284 * ctfread.c (psymtab_to_symtab): Update.
1285 * dbxread.c (cp_set_block_scope): Update.
1286 * dictionary.c (iter_match_first_hashed): Update.
1287 (iter_match_next_hashed): Update.
1288 (insert_symbol_hashed): Update.
1289 (iter_match_next_linear): Update.
1290 * dictionary.h: Update.
1291 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1292 (locexpr_describe_location_piece): Update.
1293 (locexpr_describe_location_1): Update.
1294 (locexpr_generate_c_location): Update.
1295 (loclist_describe_location): Update.
1296 (loclist_generate_c_location): Update.
1297 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1298 (read_func_scope): Update.
1299 (process_enumeration_scope): Update.
1300 (new_symbol): Update.
1301 (dwarf2_const_value): Update.
1302 (dwarf2_symbol_mark_computed): Update.
1303 * eval.c (evaluate_funcall): Update.
1304 (evaluate_subexp_standard): Update.
1305 * expprint.c (print_subexp_standard): Update.
1306 (dump_subexp_body_standard): Update.
1307 * f-valprint.c (info_common_command_for_block): Update.
1308 * findvar.c (get_hosting_frame): Update.
1309 (default_read_var_value): Update.
1310 * go-lang.c (go_symbol_package_name): Update.
1311 * guile/scm-block.c (bkscm_print_block_smob): Update.
1312 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1313 (gdbscm_symbol_name): Update.
1314 (gdbscm_symbol_linkage_name): Update.
1315 (gdbscm_symbol_print_name): Update.
1316 * infcall.c (get_function_name): Update.
1317 * infcmd.c (jump_command): Update.
1318 (finish_command): Update.
1319 * infrun.c (insert_exception_resume_breakpoint): Update.
1320 * linespec.c (canonicalize_linespec): Update.
1321 (create_sals_line_offset): Update.
1322 (convert_linespec_to_sals): Update.
1323 (complete_label): Update.
1324 (find_label_symbols_in_block): Update.
1325 * m2-typeprint.c (m2_print_typedef): Update.
1326 * mdebugread.c (mdebug_reg_to_regnum): Update.
1327 (parse_symbol): Update.
1328 (mylookup_symbol): Update.
1329 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1330 (list_args_or_locals): Update.
1331 * objc-lang.c (compare_selectors): Update.
1332 (info_selectors_command): Update.
1333 (compare_classes): Update.
1334 (info_classes_command): Update.
1335 (find_imps): Update.
1336 * p-typeprint.c (pascal_print_typedef): Update.
1337 * printcmd.c (build_address_symbolic): Update.
1338 (info_address_command): Update.
1339 (print_variable_and_value): Update.
1340 * python/py-framefilter.c (extract_sym): Update.
1341 (py_print_single_arg): Update.
1342 * python/py-symbol.c (sympy_str): Update.
1343 (sympy_get_name): Update.
1344 (sympy_get_linkage_name): Update.
1345 * python/python.c (gdbpy_rbreak): Update.
1346 * record-btrace.c (btrace_get_bfun_name): Update.
1347 (btrace_call_history): Update.
1348 * rust-lang.c (rust_print_typedef): Update.
1349 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1350 * stabsread.c (stab_reg_to_regnum): Update.
1351 (define_symbol): Update.
1352 (read_enum_type): Update.
1353 (common_block_end): Update.
1354 (cleanup_undefined_types_1): Update.
1355 (scan_file_globals): Update.
1356 * stack.c (print_frame_arg): Update.
1357 (print_frame_args): Update.
1358 (find_frame_funname): Update.
1359 (info_frame_command_core): Update.
1360 (iterate_over_block_locals): Update.
1361 (print_block_frame_labels): Update.
1362 (do_print_variable_and_value): Update.
1363 (iterate_over_block_arg_vars): Update.
1364 (return_command): Update.
1365 * symmisc.c (dump_symtab_1): Update.
1366 (print_symbol): Update.
1367 * symtab.c (eq_symbol_entry): Update.
1368 (symbol_cache_dump): Update.
1369 (lookup_language_this): Update.
1370 (find_pc_sect_line): Update.
1371 (skip_prologue_sal): Update.
1372 (symbol_search::compare_search_syms): Update.
1373 (treg_matches_sym_type_name): Update.
1374 (search_symbols): Update.
1375 (print_symbol_info): Update.
1376 (rbreak_command): Update.
1377 (completion_list_add_symbol): Update.
1378 (find_gnu_ifunc): Update.
1379 (get_symbol_address): Update.
1380 (search_module_symbols): Update.
1381 (info_module_subcommand): Update.
1382 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1383 (SYMBOL_LINKAGE_NAME): Remove.
1384 (SYMBOL_DEMANGLED_NAME): Remove.
1385 (SYMBOL_PRINT_NAME): Remove.
1386 (SYMBOL_SEARCH_NAME): Remove.
1387 * tracepoint.c (set_traceframe_context): Update.
1388 (validate_actionline): Update.
1389 (collection_list::collect_symbol): Update.
1390 (encode_actions_1): Update.
1391 (info_scope_command): Update.
1392 (print_one_static_tracepoint_marker): Update.
1393 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1394 * valops.c (address_of_variable): Update.
1395 (find_overload_match): Update.
1396 (find_oload_champ): Update.
1398 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1400 * ada-lang.c (ada_lookup_simple_minsym): Update.
1401 (ada_collect_symbol_completion_matches): Update.
1402 * ada-tasks.c (read_atcb): Update.
1403 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1404 (amd64_windows_skip_trampoline_code): Update.
1405 * arm-tdep.c (skip_prologue_function): Update.
1406 (arm_skip_stack_protector): Update.
1407 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1408 (arm_wince_skip_main_prologue): Update.
1409 * ax-gdb.c (gen_expr): Update.
1410 * block.c (call_site_for_pc): Update.
1411 * blockframe.c (find_pc_partial_function): Update.
1412 * breakpoint.c (set_breakpoint_location_function): Update.
1413 * btrace.c (ftrace_print_function_name): Update.
1414 (ftrace_function_switched): Update.
1415 * c-valprint.c (print_unpacked_pointer): Update.
1416 * coffread.c (coff_symfile_read): Update.
1417 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1418 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1419 * dwarf-index-write.c (write_psymbols): Update.
1420 * dwarf2loc.c (call_site_to_target_addr): Update.
1421 (func_verify_no_selftailcall): Update.
1422 (tailcall_dump): Update.
1423 (call_site_find_chain_1): Update.
1424 (dwarf_expr_reg_to_entry_parameter): Update.
1425 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1426 * eval.c (evaluate_funcall): Update.
1427 (evaluate_subexp_standard): Update.
1428 (evaluate_subexp_for_sizeof): Update.
1429 * expprint.c (print_subexp_standard): Update.
1430 (dump_subexp_body_standard): Update.
1431 * frame.c (get_prev_frame_always_1): Update.
1432 * frv-tdep.c (frv_skip_main_prologue): Update.
1433 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1434 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1435 (gnuv3_get_typename_from_type_info): Update.
1436 (gnuv3_skip_trampoline): Update.
1437 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1438 * i386-tdep.c (i386_skip_main_prologue): Update.
1439 (i386_pe_skip_trampoline_code): Update.
1440 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1441 * infcall.c (get_function_name): Update.
1442 * linespec.c (minsym_found): Update.
1443 * linux-fork.c (info_checkpoints_command): Update.
1444 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1445 (m32c_m16c_pointer_to_address): Update.
1446 * maint.c (maintenance_translate_address): Update.
1447 * minsyms.c (add_minsym_to_hash_table): Update.
1448 (add_minsym_to_demangled_hash_table): Update.
1449 (lookup_minimal_symbol_mangled): Update.
1450 (lookup_minimal_symbol_demangled): Update.
1451 (lookup_minimal_symbol_linkage): Update.
1452 (lookup_minimal_symbol_text): Update.
1453 (lookup_minimal_symbol_by_pc_name): Update.
1454 (minimal_symbol_is_less_than): Update.
1455 (compact_minimal_symbols): Update.
1456 (build_minimal_symbol_hash_tables): Update.
1457 (find_solib_trampoline_target): Update.
1458 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1459 (mips_skip_pic_trampoline_code): Update.
1460 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1461 * objc-lang.c (info_selectors_command): Update.
1462 (info_classes_command): Update.
1463 (find_methods): Update.
1464 (find_imps): Update.
1465 * p-valprint.c (pascal_val_print): Update.
1466 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1467 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1468 * printcmd.c (build_address_symbolic): Update.
1469 (info_symbol_command): Update.
1470 * psymtab.c (psymbol_name_matches): Update.
1471 (match_partial_symbol): Update.
1472 (lookup_partial_symbol): Update.
1473 (print_partial_symbols): Update.
1474 (sort_pst_symbols): Update.
1475 (maintenance_check_psymtabs): Update.
1476 * python/py-framefilter.c (py_print_frame): Update.
1477 * python/python.c (gdbpy_rbreak): Update.
1478 * record-btrace.c (btrace_get_bfun_name): Update.
1479 (btrace_call_history): Update.
1480 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1481 (rs6000_skip_trampoline_code): Update.
1482 * sol-thread.c (info_cb): Update.
1483 * stabsread.c (scan_file_globals): Update.
1484 * stack.c (find_frame_funname): Update.
1485 (info_frame_command_core): Update.
1486 * symmisc.c (dump_msymbols): Update.
1487 * symtab.c (symbol_natural_name): Rename to..,
1488 (general_symbol_info::natural_name): ...this.
1489 (symbol_demangled_name): Rename to...
1490 (general_symbol_info::demangled_name): ...this.
1491 (symbol_search_name): Rename to...
1492 (general_symbol_info::search_name): ...this.
1493 (symbol_matches_search_name): Update.
1494 (find_pc_sect_line): Update.
1495 (skip_prologue_sal): Update.
1496 (search_symbols): Update.
1497 (print_msymbol_info): Update.
1498 (rbreak_command): Update.
1499 (completion_list_add_msymbol): Update.
1500 (completion_list_objc_symbol): Update.
1501 (get_msymbol_address): Update.
1502 * symtab.h (struct general_symbol_info): Add member functions
1503 natural_name (), linkage_name (), print_name (), demangled_name (),
1505 (SYMBOL_NATURAL_NAME): Update.
1506 (symbol_natural_name): Move to a member function on general_symbol_info.
1507 (SYMBOL_DEMANGLED_NAME): Update.
1508 (symbol_demangled_name): Move to a member function on
1509 general_symbol_info.
1510 (SYMBOL_SEARCH_NAME): Update.
1511 (symbol_search_name): Move to a member function on general_symbol_info.
1512 (MSYMBOL_NATURAL_NAME): Remove.
1513 (MSYMBOL_LINKAGE_NAME): Remove.
1514 (MSYMBOL_PRINT_NAME): Remove.
1515 (MSYMBOL_DEMANGLED_NAME): Remove.
1516 (MSYMBOL_SEARCH_NAME): Remove.
1517 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1519 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1521 * symtab.c (create_demangled_names_hash): Use per_bfd->
1522 minimal_symbol_count for computing the initial size, if greater
1523 than our default size.
1525 2019-11-22 Tom de Vries <tdevries@suse.de>
1527 * contrib/words.sh: Improve words extraction.
1529 2019-11-22 Tom de Vries <tdevries@suse.de>
1531 * contrib/words.sh: Combine sed invocations.
1533 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1535 * Makefile.in: Update.
1536 * demangle.c: Rename to...
1537 * gdb-demangle.c: ..this.
1538 (is_cplus_marker): Change return type to bool.
1539 (_initialize_demangler): Rename to...
1540 (_initialize_gdb_demangle): ...this.
1541 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1542 * symtab.h (demangle): Remove declaration; instead include
1545 2019-11-21 Tom Tromey <tromey@adacore.com>
1547 * gdbsupport/format.c (format_pieces): Parse %I64d.
1548 * unittests/format_pieces-selftests.c (test_windows_formats): New
1550 (run_tests): Call it.
1552 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1554 Byte reverse display of variables with DW_END_big, DW_END_little
1555 (DW_AT_endianity) dwarf attributes if different than the native
1557 * ada-lang.c (ada_value_binop):
1558 Use type_byte_order instead of gdbarch_byte_order.
1559 * ada-valprint.c (printstr):
1560 (ada_val_print_string):
1561 * ada-lang.c (value_pointer):
1563 Use type_byte_order instead of gdbarch_byte_order.
1564 * c-lang.c (c_get_string):
1565 Use type_byte_order instead of gdbarch_byte_order.
1566 * c-valprint.c (c_val_print_array):
1567 Use type_byte_order instead of gdbarch_byte_order.
1568 * cp-valprint.c (cp_print_class_member):
1569 Use type_byte_order instead of gdbarch_byte_order.
1570 * dwarf2loc.c (rw_pieced_value):
1571 Use type_byte_order instead of gdbarch_byte_order.
1572 * dwarf2read.c (read_base_type): Handle DW_END_big,
1574 * f-lang.c (f_get_encoding):
1575 Use type_byte_order instead of gdbarch_byte_order.
1576 * findvar.c (default_read_var_value):
1577 Use type_byte_order instead of gdbarch_byte_order.
1578 * gdbtypes.c (check_types_equal):
1579 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1580 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1581 and TYPE_ENDIANITY_LITTLE if set.
1582 (type_byte_order): new function.
1583 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1584 (struct main_type) <flag_endianity_not_default>:
1586 (type_byte_order): New function.
1587 * infcmd.c (default_print_one_register_info):
1588 Use type_byte_order instead of gdbarch_byte_order.
1589 * p-lang.c (pascal_printstr):
1590 Use type_byte_order instead of gdbarch_byte_order.
1591 * p-valprint.c (pascal_val_print):
1592 Use type_byte_order instead of gdbarch_byte_order.
1593 * printcmd.c (print_scalar_formatted):
1594 Use type_byte_order instead of gdbarch_byte_order.
1595 * solib-darwin.c (darwin_current_sos):
1596 Use type_byte_order instead of gdbarch_byte_order.
1597 * solib-svr4.c (solib_svr4_r_ldsomap):
1598 Use type_byte_order instead of gdbarch_byte_order.
1599 * stap-probe.c (stap_modify_semaphore):
1600 Use type_byte_order instead of gdbarch_byte_order.
1601 * target-float.c (target_float_same_format_p):
1602 Use type_byte_order instead of gdbarch_byte_order.
1603 * valarith.c (scalar_binop):
1605 Use type_byte_order instead of gdbarch_byte_order.
1606 * valops.c (value_cast):
1607 Use type_byte_order instead of gdbarch_byte_order.
1608 * valprint.c (generic_emit_char):
1611 Use type_byte_order instead of gdbarch_byte_order.
1612 * value.c (unpack_long):
1613 (unpack_bits_as_long):
1614 (unpack_value_bitfield):
1617 (pack_unsigned_long):
1618 Use type_byte_order instead of gdbarch_byte_order.
1619 * findvar.c (unsigned_pointer_to_address):
1620 (signed_pointer_to_address):
1621 (unsigned_address_to_pointer):
1622 (address_to_signed_pointer):
1623 (default_read_var_value):
1624 (default_value_from_register):
1625 Use type_byte_order instead of gdbarch_byte_order.
1626 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1627 Use type_byte_order instead of gdbarch_byte_order.
1628 * riscv-tdep.c (riscv_print_one_register_info):
1629 Use type_byte_order instead of gdbarch_byte_order.
1631 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1633 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1634 (current_ui_gdb_stdin_ptr): Likewise.
1635 (current_ui_gdb_stderr_ptr): Likewise.
1636 (current_ui_gdb_stdlog_ptr): Likewise.
1637 (current_ui_current_uiout_ptr): Likewise.
1638 (gen_ret_current_ui_field_ptr): Remove.
1640 2019-11-21 Tom de Vries <tdevries@suse.de>
1643 * cli/cli-script.c (execute_control_command): Only switch to
1644 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1646 2019-11-19 Tom Tromey <tom@tromey.com>
1648 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1649 Now static. Change type of "name".
1650 (tui_set_win_height_command): Don't copy "arg".
1651 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1652 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1654 2019-11-19 Ali Tamur <tamur@google.com>
1656 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1657 "if (attr != nullptr)".
1658 (dwarf2_find_base_address): Likewise.
1659 (dwarf2_build_include_psymtabs): Likewise.
1660 (read_cutu_die_from_dwo): Likewise.
1661 (read_func_scope): Likewise.
1662 (read_call_site_scope): Likewise.
1663 (dwarf2_get_pc_bounds): Likewise.
1664 (dwarf2_record_block_ranges): Likewise.
1665 (dwarf2_add_field): Likewise.
1666 (dwarf2_add_member_fn): Likewise.
1667 (read_structure_type): Likewise.
1668 (read_enumeration_type): Likewise.
1669 (read_array_type): Likewise.
1670 (read_array_order): Likewise.
1671 (read_set_type): Likewise.
1672 (read_common_block): Likewise.
1673 (read_tag_reference_type): Likewise.
1674 (read_tag_string_type): Likewise.
1675 (read_subroutine_type): Likewise.
1676 (read_base_type): Likewise.
1677 (read_subrange_type): Likewise.
1678 (new_symbol): Likewise.
1679 (prepare_one_comp_unit): Likewise.
1681 2019-11-19 Tom Tromey <tromey@adacore.com>
1683 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1684 result in error when DebugActiveProcess fails.
1686 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1687 Pedro Alves <palves@redhat.com>
1689 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1690 * target.c (target_stack::push): Call 'unpush' if there's a
1691 target on top of the stack.
1693 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1695 * python/py-block.c (blpy_dealloc): Call tp_free.
1696 (blpy_block_syms_dealloc): Likewise.
1697 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1698 * python/py-inferior.c (infpy_dealloc): Likewise.
1699 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1700 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1701 * python/py-symbol.c (sympy_dealloc): Likewise.
1702 * python/py-symtab.c (stpy_dealloc): Likewise.
1703 * python/py-type.c (typy_iterator_dealloc): Likewise.
1705 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1707 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1708 constructor instead of using a class initializer.
1710 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1712 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1713 * configure: Regenerate.
1714 * configure.ac: Don't source common.host.
1715 * gdbsupport/common.host: Remove.
1716 * gdbsupport/mingw-strerror.c: Remove.
1717 * gdbsupport/posix-strerror.c: Rename to...
1718 * gdbsupport/safe-strerror.c: ...this.
1720 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1722 * maint.c (scoped_command_stats::print_time): Use localtime_r
1723 instead of localtime (provided through gnulib if necessary).
1724 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1727 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1729 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1730 avoid compile errors.
1732 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1734 * config.in: Regenerate.
1735 * configure: Regenerate.
1736 * gdbsupport/common.m4: No longer check for strerror_r.
1737 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1738 POSIX version of strerror_r, now that gnulib provides it if
1741 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1743 * README (`configure' options): Update.
1745 2019-11-14 Tom Tromey <tromey@adacore.com>
1747 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1748 expected type for the RHS if the LHS is a convenience variable.
1750 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1752 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1753 Provide explicit default and copy constructor.
1755 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1757 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1758 only call Py_INCREF (newbp) in the bppy_pending_object case.
1760 2019-11-13 Tom Tromey <tromey@adacore.com>
1763 * psympriv.h (partial_symbol): Remove static assert.
1764 * symtab.h (general_symbol_info, symbol): Remove static assert.
1766 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1768 * gdbsupport/format.c (format_pieces::format_pieces): Support
1769 printf 'z' size modifier.
1770 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1771 * printcmd.c (ui_printf): Handle size_t_arg.
1772 * ui-out.c (ui_out::vmessage): Likewise.
1773 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1775 (run_tests): Call test_format_int_sizes.
1777 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1779 * ada-exp.y (write_ambiguous_var): Update.
1780 * buildsym.c (add_symbol_to_list): Update.
1781 * dwarf2read.c (read_variable): Update.
1782 (new_symbol): Update.
1783 * jit.c (finalize_symtab): Update.
1784 * language.c (language_alloc_type_symbol): Update.
1785 * symtab.c (fixup_symbol_section): Update.
1786 (initialize_objfile_symbol_1): Move code to...
1787 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1788 (allocate_symbol): Update.
1789 (allocate_template_symbol): Update.
1790 (get_symbol_address): Update.
1791 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1792 of having as a field, and add a constructor.
1793 (SYMBOL_VALUE): Update.
1794 (SYMBOL_VALUE_ADDRESS): Update.
1795 (SET_SYMBOL_VALUE_ADDRESS): Update.
1796 (SYMBOL_VALUE_BYTES): Update.
1797 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1798 (SYMBOL_BLOCK_VALUE): Update.
1799 (SYMBOL_VALUE_CHAIN): Update.
1800 (SYMBOL_LANGUAGE): Update.
1801 (SYMBOL_SECTION): Update.
1802 (SYMBOL_OBJ_SECTION): Update.
1803 (SYMBOL_SET_LANGUAGE): Update.
1804 (SYMBOL_SET_LINKAGE_NAME): Update.
1805 (SYMBOL_SET_NAMES): Update.
1806 (SYMBOL_NATURAL_NAME): Update.
1807 (SYMBOL_LINKAGE_NAME): Update.
1808 (SYMBOL_DEMANGLED_NAME): Update.
1809 (SYMBOL_SEARCH_NAME): Update.
1810 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1811 (struct symbol): Update.
1812 (struct template_symbol): Update.
1813 (struct rust_vtable_symbol): Update.
1814 * xcoffread.c (SYMBOL_DUP): Update.
1816 2019-11-12 Tom Tromey <tom@tromey.com>
1818 * tui/tui-layout.c (show_layout): Set current_layout.
1819 (show_source_disasm_command, show_data)
1820 (show_source_or_disasm_and_command): Don't set current_layout.
1822 2019-11-12 Tom Tromey <tom@tromey.com>
1824 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1826 2019-11-12 Tom Tromey <tom@tromey.com>
1828 * tui/tui-win.c (resize_message): New global.
1829 (show_tui_resize_message): New function.
1830 (tui_async_resize_screen): Print message if requested.
1831 (_initialize_tui_win): Add tui-resize-message setting.
1832 * NEWS: Add entry for new commands.
1834 2019-11-11 Tom Tromey <tom@tromey.com>
1836 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1839 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1841 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1843 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1845 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1847 * python/python-internal.h (gdbpy_lookup_static_symbols):
1848 Declare new function.
1849 * python/python.c (python_GdbMethods): Add
1850 gdb.lookup_static_symbols method.
1851 * NEWS: Mention gdb.lookup_static_symbols.
1853 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1856 static block of current object file first. Also fix typo in
1859 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1861 * stack.c (set_last_displayed_sal): Delete.
1862 (last_displayed_sal_valid): Delete.
1863 (last_displayed_pspace): Delete.
1864 (last_displayed_addr): Delete.
1865 (last_displayed_symtab): Delete.
1866 (last_displayed_line): Delete.
1867 (class last_displayed_symtab_info_type): New.
1868 (last_displayed_symtab_info): New static global variable.
1869 (print_frame_info): Call methods on last_displayed_symtab_info.
1870 (clear_last_displayed_sal): Update header comment, and make use of
1871 last_displayed_symtab_info.
1872 (last_displayed_sal_is_valid): Likewise.
1873 (get_last_displayed_pspace): Likewise.
1874 (get_last_displayed_addr): Likewise.
1875 (get_last_displayed_symtab): Likewise.
1876 (get_last_displayed_line): Likewise.
1877 (get_last_displayed_sal): Likewise.
1878 * stack.h (clear_last_displayed_sal): Update header comment.
1879 (last_displayed_sal_is_valid): Likewise.
1880 (get_last_displayed_pspace): Likewise.
1881 (get_last_displayed_addr): Likewise.
1882 (get_last_displayed_symtab): Likewise.
1883 (get_last_displayed_line): Likewise.
1884 (get_last_displayed_sal): Likewise.
1886 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1888 * stack.c (frame_show_address): Convert return type to bool.
1889 * stack.h (frame_show_address): Likewise, and update header
1892 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1895 * unittests/vec-utils-selftests.c: New file.
1896 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1898 2019-11-10 Tom Tromey <tom@tromey.com>
1900 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1901 (tui_highlight_win): Likewise.
1902 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1903 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1904 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1905 Don't set can_highlight.
1907 2019-11-10 Tom Tromey <tom@tromey.com>
1909 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1910 Remove unused declaration.
1912 2019-11-08 Tom Tromey <tromey@adacore.com>
1914 * top.c (read_command_file): Update.
1915 (command_line_input): Make return type const.
1916 * python/py-gdb-readline.c: Update.
1917 * linespec.c (decode_line_2): Update.
1918 * defs.h (command_line_input): Make return type const.
1919 * cli/cli-script.c (read_next_line): Make return type const.
1920 * ada-lang.c (get_selections): Update.
1922 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1924 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1925 * mi/mi-main.c (output_cores): Likewise.
1926 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1927 (linux_xfer_osdata_modules): Likewise.
1928 * remote.c (register_remote_support_xml): Likewise.
1929 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1930 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1932 2019-11-06 Tom Tromey <tom@tromey.com>
1934 * tui/tui-interp.c: Don't include readline.h.
1935 * tui/tui-hooks.c: Don't include readline.h.
1936 * symmisc.c: Include tilde.h, not readline.h.
1937 * symfile.c: Include tilde.h, not readline.h.
1938 * source.c: Include tilde.h, not readline.h.
1939 * solib.c: Include tilde.h, not readline.h.
1940 * psymtab.c: Include tilde.h, not readline.h.
1941 * exec.c: Include tilde.h, not readline.h.
1942 * corelow.c: Include tilde.h, not readline.h.
1943 * cli/cli-dump.c: Include tilde.h, not readline.h.
1944 * cli/cli-cmds.c: Don't include readline.h.
1946 2019-11-05 Tom Tromey <tom@tromey.com>
1948 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1949 (tui_disassemble): Set addr_size.
1950 (tui_disasm_window::set_contents): Use addr_size.
1952 2019-11-05 Tom Tromey <tom@tromey.com>
1954 * rust-lang.c (rust_language_defn): Update.
1955 * python/py-value.c (valpy_string): Call c_get_string.
1956 * p-lang.c (pascal_language_defn): Update.
1957 * opencl-lang.c (opencl_language_defn): Update.
1958 * objc-lang.c (objc_language_defn): Update.
1959 * m2-lang.c (m2_language_defn): Update.
1960 * language.c (unknown_language_defn, auto_language_defn): Update.
1961 (default_get_string): Remove.
1962 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1963 * go-lang.c (go_language_defn): Update.
1964 * f-lang.c (f_language_defn): Update.
1965 * d-lang.c (d_language_defn): Update.
1966 * c-lang.c (c_language_defn, cplus_language_defn)
1967 (asm_language_defn, minimal_language_defn): Update.
1968 * ada-lang.c (ada_language_defn): Update.
1969 * language.h (struct language_defn) <la_get_string>: Remove.
1970 (LA_GET_STRING): Remove.
1971 (default_get_string): Don't declare.
1973 2019-11-05 Tom Tromey <tom@tromey.com>
1975 * tui/tui-source.h (struct tui_source_window): Inline
1976 constructor. Remove destructor.
1977 <style_changed, m_observable>: Move to superclass.
1978 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1979 (struct tui_source_window_base): Move private members to end.
1980 <style_changed, m_observable>: Move from tui_source_window.
1981 * tui/tui-winsource.c (tui_copy_source_line): Move from
1982 tui-source.c. Rename from copy_source_line. Add special handling
1983 for negative line number.
1984 (tui_source_window_base::style_changed): Move from
1986 (tui_source_window_base): Register observer.
1987 (~tui_source_window_base): New.
1988 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1990 (tui_source_window::set_contents): Use tui_copy_source_line.
1991 (tui_source_window::tui_source_window): Move to tui-source.h.
1992 (tui_source_window::~tui_source_window): Remove.
1993 (tui_source_window::style_changed): Move to superclass.
1994 * tui/tui-disasm.c (tui_disassemble): Create string file with
1995 styling, when possible. Add "addr_size" parameter.
1996 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1997 Don't compute maximum size.
1998 (len_without_escapes): New function
2000 2019-11-05 Tom Tromey <tom@tromey.com>
2002 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2004 * tui/tui-winsource.c (tui_show_source_line): Update.
2005 * tui/tui-source.c (tui_source_window::set_contents): Update.
2006 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2008 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2010 * symtab.h (gdb_static_assert): Put && operator at the beginning
2011 of the line instead of the end.
2013 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2015 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2016 and sizeof (symbol).
2017 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2019 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2021 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2022 * configure.host: Mark *-*-solaris2.10* obsolete.
2023 * configure.tgt: Mark Solaris < 11 obsolete.
2024 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2025 Update target triplet.
2027 2019-11-01 Tom Tromey <tromey@adacore.com>
2029 * utils.c (print_sys_errmsg): Simplify.
2031 2019-11-01 Tom Tromey <tromey@adacore.com>
2033 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2035 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2037 * configure: Regenerate.
2038 * configure.ac: Remove check for strerror_r.
2039 * gdbsupport/common.m4: Check for strerror_r.
2041 2019-11-01 Luis Machado <luis.machado@linaro.org>
2045 * arm-tdep.c (arm_per_objfile): Rename to ...
2046 (arm_per_bfd): ... this.
2047 (arm_objfile_data_key): Rename to ...
2048 (arm_bfd_data_key): ... this.
2049 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2051 (arm_record_special_symbol): Likewise.
2053 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2055 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2057 * c-typeprint.c (c_print_typedef): Likewise.
2058 * f-typeprint.c (f_print_typedef): Likewise.
2059 * m2-typeprint.c (m2_print_typedef): Likewise.
2060 * p-typeprint.c (pascal_print_typedef): Likewise.
2061 * rust-lang.c (rust_print_typedef): Likewise.
2062 * symtab.c (print_symbol_info): Print a newline after calling
2065 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2067 * symtab.c (info_module_cmdlist): New variable.
2068 (info_module_command): New function.
2069 (search_module_symbols): New function.
2070 (info_module_subcommand): New function.
2071 (struct info_modules_var_func_options): New struct.
2072 (info_modules_var_func_options_defs): New variable.
2073 (make_info_modules_var_func_options_def_group): New function.
2074 (info_module_functions_command): New function.
2075 (info_module_variables_command): New function.
2076 (info_module_var_func_command_completer): New function.
2077 (_initialize_symtab): Register new 'info module functions' and
2078 'info module variables' commands.
2079 * symtab.h (typedef symbol_search_in_module): New typedef.
2080 (search_module_symbols): Declare new function.
2081 * NEWS: Mention new commands.
2083 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2085 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2086 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2087 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2089 (scan_partial_symbols): Only create partial module symbols for non
2091 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2093 * symtab.c (search_domain_name): Likewise.
2094 (search_symbols): Likewise.
2095 (print_symbol_info): Likewise.
2096 (symtab_symbol_info): Likewise.
2097 (info_modules_command): New function.
2098 (_initialize_symtab): Register 'info modules' command.
2099 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2100 * NEWS: Mention new 'info modules' command.
2102 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2105 and $_gdb_maint_setting_str.
2107 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2109 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2110 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2111 (str_value_from_setting, gdb_setting_str_internal_fn)
2112 (gdb_maint_setting_str_internal_fn): New functions.
2113 (_initialize_cli_cmds): Define the new convenience functions.
2114 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2115 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2117 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2119 * agent.c (set_can_use_agent): When the setting is turned on,
2120 look up agent symbols if we don't have them yet.
2121 (agent_new_objfile): Don't look up agent symbols when the agent
2124 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2126 * config.in: Regenerate.
2128 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2130 * configure: Regenerate.
2131 * configure.ac: Check for strerror_r.
2132 * gdbsupport/common-utils.h (safe_strerror): Change return value
2133 to const char * and document that this function is now threadsafe.
2134 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2135 thread_local and call strerror_r, if available.
2136 * utils.c (perror_string): Update.
2137 (print_sys_errmsg): Update.
2139 2019-10-31 Luis Machado <luis.machado@linaro.org>
2141 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2143 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2144 objfile to fetch per-bfd data.
2145 (arm_find_exidx_entry): Likewise.
2147 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2149 * gdbsupport/agent.c (debug_agent): Change type to bool.
2150 (use_agent): Likewise.
2151 (all_agent_symbols_look_up): Likewise.
2152 (agent_loaded_p): Change return value to bool.
2153 (agent_look_up_symbols): Update.
2154 (agent_capability_check): Change return value to bool.
2155 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2156 (debug_agent): Change type to bool.
2157 (use_agent): Likewise.
2158 (agent_capability_check): Change return value to bool.
2160 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2162 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2163 (build_minimal_symbol_hash_tables): Code to clear the table moved
2164 to clear_minimal_symbol_hash_tables.
2165 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2168 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2170 * infcmd.c: Remove includes.
2171 * infrun.c: Remove includes.
2173 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2175 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2176 (grow_vect): Remove declaration.
2177 (ada_type_of_array): Remove declaration.
2178 (ada_update_initial_language): Remove declaration.
2179 (ada_fold_name): Remove declaration.
2180 (ada_fill_in_ada_prototype): Remove declaration.
2181 (user_select_syms): Remove declaration.
2182 (get_selections): Remove declaration.
2183 (ada_tag_type): Remove declaration.
2184 (ada_value_tag): Remove declaration.
2185 (ada_is_others_clause): Remove declaration.
2186 (ada_in_variant): Remove declaration.
2187 (ada_value_struct_elt): Remove declaration.
2188 (ada_attribute_name): Remove declaration.
2189 (ada_system_address_type): Remove declaration.
2190 * ada-lang.c (ada_watch_location_expression): Make static.
2191 (GROW_VECT): Move here from ada-lang.h.
2192 (grow_vect): Make static.
2193 (ada_update_initial_language): Make static.
2194 (ada_fold_name): Make static.
2195 (ada_type_of_array): Make static.
2196 (encoded_ordered_before): Move up.
2197 (sort_choices): Move up.
2198 (print_signatures): Move up.
2199 (ada_print_symbol_signature): Move up.
2200 (get_selections): Move up and make static.
2201 (user_select_syms): Move up and make static.
2202 (ada_value_struct_elt): Move up and make static.
2203 (ada_tag_type): Make static.
2204 (ada_value_tag): Make static.
2205 (ada_is_others_clause): Make static.
2206 (ada_in_variant): Make static.
2207 (ada_attribute_name): Make static.
2209 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2211 * ada-lang.c: Remove includes.
2212 * ada-typeprint.c: Remove includes.
2213 * ada-valprint.c: Remove includes.
2215 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2217 * addrmap.c: Add static assertions of type size, moved from
2218 _initialize_addrmap.
2219 (_initialize_addrmap): Remove.
2221 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2223 * coffread.c (record_minimal_symbol): Update.
2224 (process_coff_symbol): Update.
2225 * dbxread.c (read_dbx_symtab): Update.
2226 * dwarf2read.c (add_partial_symbol): Update.
2227 (fixup_go_packaging): Update.
2228 (load_partial_dies): Update.
2229 (new_symbol): Update.
2230 * elfread.c (record_minimal_symbol): Change signature to use
2231 gdb::string_view instead of name+len.
2232 (elf_symtab_read): Update.
2233 (elf_rel_plt_read): Update.
2234 * mdebugread.c (parse_partial_symbols): Update.
2235 (handle_psymbol_enumerators): Update.
2236 (new_symbol): Update.
2237 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2238 to use gdb::string_view instead of name+len.
2239 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2240 * psympriv.h (add_psymbol_to_list): Likewise.
2241 * psymtab.c (add_psymbol_to_bcache): Likewise.
2242 (add_psymbol_to_list): Likewise.
2243 * stabsread.c (define_symbol): Update.
2244 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2245 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2246 (symbol_set_names): Likewise.
2247 * xcoffread.c (scan_xcoff_symtab): Update.
2249 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2251 * symtab.h (symbol_set_names): Document that copy_name must be
2252 set to true for non-nullterminated strings.
2253 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2254 linkage_name if the entry was not found and we need to demangle.
2256 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2258 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2259 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2260 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2261 * gdbsupport/gdb_binary_search.h: New file.
2263 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2265 * NEWS: Mention new --with-system-gdbinit-dir option.
2266 * config.in: Regenerate.
2267 * configure: Regenerate.
2268 * configure.ac: Add new option --with-system-gdbinit-dir.
2269 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2270 for a ".gdb" suffix.
2271 * main.c (get_init_files): Change system_gdbinit argument to
2272 a vector and return the files in SYSTEM_GDBINIT_DIR in
2273 addition to SYSTEM_GDBINIT.
2274 (captured_main_1): Update.
2275 (print_gdb_help): Update.
2276 * top.c (print_gdb_configuration): Also print the value of
2279 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2281 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2282 that takes gdb::string_view arguments.
2284 2019-10-26 Tom de Vries <tdevries@suse.de>
2286 * aarch64-linux-tdep.c: Fix typos in comments.
2287 * aarch64-tdep.c: Same.
2289 * amd64-nat.c: Same.
2291 * arch/aarch64-insn.c: Same.
2293 * breakpoint.h: Same.
2296 * cli/cli-decode.c: Same.
2297 * cli/cli-script.c: Same.
2298 * cli/cli-utils.h: Same.
2299 * coff-pe-read.c: Same.
2301 * compile/compile-cplus-symbols.c: Same.
2302 * compile/compile-object-run.c: Same.
2303 * completer.c: Same.
2305 * cp-support.c: Same.
2307 * dwarf-index-write.c: Same.
2308 * dwarf2-frame.c: Same.
2309 * dwarf2-frame.h: Same.
2311 * frame-base.h: Same.
2316 * guile/scm-objfile.c: Same.
2317 * i386-tdep.c: Same.
2318 * i386-tdep.h: Same.
2321 * linux-nat.c: Same.
2322 * m68k-tdep.c: Same.
2325 * mi/mi-cmd-disas.c: Same.
2326 * mi/mi-getopt.h: Same.
2327 * mi/mi-main.c: Same.
2329 * nat/aarch64-sve-linux-sigcontext.h: Same.
2331 * ppc-linux-nat.c: Same.
2332 * ppc-linux-tdep.c: Same.
2334 * progspace.h: Same.
2335 * prologue-value.h: Same.
2336 * python/py-evtregistry.c: Same.
2337 * python/py-instruction.h: Same.
2338 * record-btrace.c: Same.
2339 * record-full.c: Same.
2341 * rs6000-tdep.c: Same.
2343 * sol-thread.c: Same.
2344 * sparc-sol2-tdep.c: Same.
2345 * sparc64-tdep.c: Same.
2346 * stabsread.c: Same.
2350 * tracepoint.c: Same.
2351 * tui/tui-data.h: Same.
2352 * tui/tui-io.c: Same.
2353 * tui/tui-win.c: Same.
2355 * unittests/rsp-low-selftests.c: Same.
2356 * user-regs.h: Same.
2367 * xtensa-tdep.c: Same.
2369 2019-10-25 Ali Tamur <tamur@google.com>
2371 * charset.c (find_charset_names): Reflect API change.
2373 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2375 * symtab.c (struct demangled_name_entry): Change demangled name
2376 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2377 part of the struct anymore.
2378 (symbol_set_names): No longer obstack allocate + copy the demangled
2379 name, just store the allocated name from bfd.
2381 2019-10-25 Tom Tromey <tromey@adacore.com>
2383 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2384 (bsearch_cie_cmp, add_cie): Remove.
2385 (find_cie): Reimplement.
2386 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2387 (dwarf2_build_frame_info): Update.
2389 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2392 * symfile.c (reread_symbols): Call forget_cached_source_info to
2393 clear the stale source cache.
2395 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2397 * configure: Regenerate.
2398 * configure.ac: Remove code that sets python_has_threads.
2400 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2402 * config.in: Regenerate.
2403 * configure: Regenerate.
2404 * configure.ac: Remove the code that uses sed to get the python
2405 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2407 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2409 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2412 2019-10-23 Tom Tromey <tom@tromey.com>
2414 * arc-tdep.c: Remove ".." from include.
2415 * frv-tdep.c: Remove ".." from include.
2416 * lm32-tdep.c: Remove ".." from include.
2417 * microblaze-tdep.c: Remove ".." from include.
2418 * or1k-tdep.h: Remove ".." from include.
2419 * s12z-tdep.c: Remove ".." from include.
2420 * Makefile.in (OPCODES_CFLAGS): Add comment.
2421 (TOP_CFLAGS): New variable.
2422 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2424 2019-10-23 Tom Tromey <tom@tromey.com>
2426 * Makefile.in (READLINE_DIR): Update.
2428 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2430 * infcall.c (call_function_by_hand_dummy): Fix the function
2431 comment. And extract out a code section into...
2432 (reserve_stack_space): ...this new function.
2434 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436 * infcall.c (value_arg_coerce): Remove an unused parameter.
2437 (call_function_by_hand_dummy): Update the call to
2440 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2442 * infcall.c (call_function_by_hand_dummy): Refactor.
2444 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2446 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2448 2019-10-23 Tom Tromey <tom@tromey.com>
2450 * configure: Rebuild.
2451 * configure.ac: Don't check for sigprocmask.
2452 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2454 2019-10-23 Tom Tromey <tom@tromey.com>
2456 * configure: Rebuild.
2457 * acinclude.m4: Use m4_include, not sinclude.
2459 2019-10-23 Tom de Vries <tdevries@suse.de>
2461 PR breakpoints/24687
2462 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2464 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2466 * symtab.c (struct demangled_name_entry) <language>: Change from
2467 bitfield to regular variable.
2469 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2471 * symtab.c (struct demangled_name_entry): Add a constructor.
2472 (free_demangled_name_entry): New function to call the destructor
2473 for demangled_name_entry.
2474 (create_demangled_names_hash): Pass free_demangled_name_entry to
2476 (symbol_set_names): Call placement new for demangled_name_entry.
2477 * utils.c: No longer include xxhash.h here, now that fast_hash
2478 is inlined in the header.
2479 * utils.h: Instead, include it here.
2481 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2483 * Makefile.in: Link with libxxhash.
2484 * config.in: Regenerate.
2485 * configure: Regenerate.
2486 * configure.ac: Search for libxxhash.
2487 * utils.c (fast_hash): Use xxhash if present.
2489 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2491 * utils.h (fast_hash): New function.
2492 * symtab.c (hash_demangled_name_entry): Call new function
2495 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2497 * symtab.c (struct demangled_name_entry): Change type of mangled
2498 to gdb::string_view. Also adds a constructor that takes the
2500 (hash_demangled_name_entry): Update.
2501 (eq_demangled_name_entry): Update.
2502 (free_demangled_name_entry): New function to call the destructor
2503 now that this is not a POD anymore.
2504 (create_demangled_names_hash): Pass free_demangled_name_entry to
2506 (symbol_set_names): Update.
2508 2019-10-21 Ali Tamur <tamu@google.com>
2510 * dwarf2read.c (dir_index): Change type.
2511 (file_name_index): Likewise.
2512 (line_header::include_dir_at): Change comment and implementation on
2513 whether it is DWARF 5.
2514 (line_header::is_valid_file_index): New function.
2515 (line_header::file_name_at): Change comment and implementation on
2516 whether it is DWARF 5.
2517 (line_header::file_names): Change to private field renamed as
2518 m_file_names and introduce a new accessor method.
2519 (line_header::file_names_size): New method.
2520 (line_header::include_dirs): Change to private field and rename as
2522 (dw2_get_file_names_reader): Define local var at a smaller scope and
2524 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2525 (process_structure_scope): Likewise.
2526 (line_header::add_include_dir): Change message and reflect renaming.
2527 (line_header::add_file_name): Likewise.
2528 (read_formatted_entries): Handle DW_FORM_data16.
2529 (dwarf_decode_line_header): Fix line header length calculation.
2530 (psymtab_include_file_name): Change comment and API.
2531 (lnp_state_machine::m_file): Update comment and reflect type change.
2532 (lnp_state_machine::record_line): Reflect type change.
2533 (dwarf_decode_lines): Reflect API change.
2534 (file_file_name): Likewise.
2535 (file_full_name): Likewise.
2537 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2539 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2541 2019-10-21 Tom Tromey <tom@tromey.com>
2543 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2545 2019-10-21 Tom Tromey <tom@tromey.com>
2547 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2548 NM_H. Use AC_CONFIG_LINKS.
2549 * configure: Rebuild.
2550 * Makefile.in (NM_H): New variable.
2551 (generated_files): Add NM_H. Remove gcore.
2552 (nm.h, stamp-nmh): New targets.
2554 2019-10-20 Tom Tromey <tom@tromey.com>
2556 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2557 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2559 (put_objfile_before): Now static.
2561 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2563 * gdbsupport/common-utils.h (startswith): Change return type to
2566 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2568 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2569 * breakpoint.c (bp_locations_compare): Rename to...
2570 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2571 (update_global_location_list): Use std::sort instead of qsort.
2572 * buildsym.c (compare_line_numbers): Rename to...
2573 (lte_is_less_than): ...this, and change to std::sort semantics.
2574 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2576 * disasm.c (compare_lines): Rename to...
2577 (line_is_less_than): ...this, and change to std::sort semantics.
2578 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2580 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2581 (fde_is_less_than): ...this, and change to std::sort semantics.
2582 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2583 * mdebugread.c (compare_blocks):
2584 (block_is_less_than): ...this, and change to std::sort semantics.
2585 (sort_blocks): Call std::sort instead of qsort.
2586 * objfiles.c (qsort_cmp): Rename to...
2587 (sort_cmp): ...this, and change to std::sort semantics.
2588 (update_section_map): Call std::sort instead of qsort.
2589 * remote.c (compare_pnums): Remove.
2590 (map_regcache_remote_table): Call std::sort instead of qsort.
2591 * utils.c (compare_positive_ints): Remove.
2592 * utils.h (compare_positive_ints): Remove.
2593 * xcoffread.c (compare_lte): Remove.
2594 (arrange_linetable): Call std::sort instead of qsort.
2596 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2598 * symfile.c (init_entry_point_info): Fix typo.
2599 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2601 2019-10-18 Tom de Vries <tdevries@suse.de>
2603 * aarch64-tdep.c: Fix typos in comments.
2605 * ada-tasks.c: Same.
2606 * alpha-tdep.c: Same.
2607 * alpha-tdep.h: Same.
2608 * amd64-nat.c: Same.
2609 * amd64-windows-tdep.c: Same.
2612 * arch-utils.c: Same.
2613 * arm-nbsd-tdep.c: Same.
2616 * blockframe.c: Same.
2619 * coff-pe-read.c: Same.
2621 * cris-tdep.c: Same.
2622 * darwin-nat.c: Same.
2626 * dtrace-probe.c: Same.
2627 * dwarf-index-write.c: Same.
2628 * dwarf2-frame-tailcall.c: Same.
2629 * dwarf2-frame.c: Same.
2630 * dwarf2read.c: Same.
2632 * exceptions.c: Same.
2633 * fbsd-tdep.c: Same.
2637 * gnu-v3-abi.c: Same.
2639 * h8300-tdep.c: Same.
2640 * hppa-tdep.c: Same.
2641 * i386-linux-tdep.c: Same.
2642 * i386-tdep.c: Same.
2643 * ia64-libunwind-tdep.c: Same.
2644 * ia64-tdep.c: Same.
2648 * linux-nat.c: Same.
2649 * linux-thread-db.c: Same.
2650 * machoread.c: Same.
2651 * mdebugread.c: Same.
2653 * mn10300-tdep.c: Same.
2654 * namespace.c: Same.
2656 * opencl-lang.c: Same.
2657 * or1k-tdep.c: Same.
2659 * ppc-linux-nat.c: Same.
2660 * ppc-linux-tdep.c: Same.
2661 * ppc-sysv-tdep.c: Same.
2664 * record-btrace.c: Same.
2665 * record-full.c: Same.
2666 * remote-fileio.c: Same.
2668 * rs6000-tdep.c: Same.
2669 * s12z-tdep.c: Same.
2670 * score-tdep.c: Same.
2674 * sol-thread.c: Same.
2675 * solib-svr4.c: Same.
2678 * sparc-nat.c: Same.
2679 * sparc-sol2-tdep.c: Same.
2680 * sparc-tdep.c: Same.
2681 * sparc64-tdep.c: Same.
2682 * stabsread.c: Same.
2686 * target-descriptions.c: Same.
2687 * target-float.c: Same.
2694 * windows-nat.c: Same.
2695 * xcoffread.c: Same.
2696 * xstormy16-tdep.c: Same.
2697 * xtensa-tdep.c: Same.
2699 2019-10-17 Tom Tromey <tromey@adacore.com>
2701 * configure: Rebuild.
2702 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2703 in AC_CONFIG_FILES invocation.
2704 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2705 new-style config.status invocation.
2707 2019-10-17 Tom de Vries <tdevries@suse.de>
2709 * arm-nbsd-nat.c: Fix typos in comments.
2711 * darwin-nat-info.c: Same.
2712 * dwarf2read.c: Same.
2714 * event-top.c: Same.
2717 * hppa-tdep.c: Same.
2718 * i386-tdep.c: Same.
2721 * mdebugread.c: Same.
2722 * moxie-tdep.c: Same.
2723 * nto-procfs.c: Same.
2725 * ppc-linux-tdep.c: Same.
2727 * riscv-tdep.c: Same.
2728 * s390-tdep.c: Same.
2730 * sparc-linux-tdep.c: Same.
2731 * sparc-nat.c: Same.
2733 * target-descriptions.c: Same.
2737 2019-10-16 Tom Tromey <tom@tromey.com>
2739 * objfiles.h (struct objfile) <original_name>: Now const.
2741 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2743 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2744 pass on to sigsetjmp's second argument.
2745 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2747 2019-10-16 Keith Seitz <keiths@redhat.com>
2750 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2751 sections whose size is greater than the file size.
2753 2019-10-16 Jim Wilson <jimw@sifive.com>
2755 * riscv-tdep.c (riscv_gcc_target_options): New.
2756 (riscv_gnu_triplet_regexp): New.
2757 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2758 set_gdbarch_gnu_triplet_regexp.
2760 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2762 * Makefile.in: Add xml-builtin.h.
2763 * features/feature_to_c.sh: Add an include for xml-builtin.h
2764 to ensure that the compiler checks that the types match.
2765 * xml-builtin.h: New file.
2766 * xml-support.c (fetch_xml_builtin): Add missing const.
2767 * xml-support.h: Remove declaration of xml_builtins.
2769 2019-10-16 Tom de Vries <tdevries@suse.de>
2772 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2773 (amd64_classify_aggregate): ... here.
2774 (amd64_classify_aggregate_field): Handled fiels of nested structs
2777 2019-10-16 Tom de Vries <tdevries@suse.de>
2780 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2781 that handles 'theclass'.
2783 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2785 * linespec.c (decode_digits_ordinary): Update comment.
2786 * make-target-delegates: No longer need to handle VEC case.
2787 * memrange.c (normalize_mem_ranges): Update comment.
2788 * namespace.c (add_using_directive): Update comment.
2789 * objc-lang.c (uniquify_strings): Update comment.
2790 * ppc-linux-nat.c (struct thread_points): Update comment.
2791 * probe.h (find_probes_in_objfile): Update comment.
2792 * target.h (enum flash_preserve_mode): Update comment.
2793 * varobj.c (varobj_restrict_range): Update comment.
2794 * varobj.h (varobj_list_children): Update comment.
2796 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2798 * Makefile.in: Remove references to vec.h and vec.c.
2799 * aarch64-tdep.c: No longer include vec.h.
2800 * ada-lang.c: Likewise.
2801 * ada-lang.h: Likewise.
2802 * arm-tdep.c: Likewise.
2804 * breakpoint.h: Likewise.
2805 * charset.c: Likewise.
2806 * cp-support.h: Likewise.
2807 * dtrace-probe.c: Likewise.
2808 * dwarf2read.c: Likewise.
2809 * extension.h: Likewise.
2810 * gdb_bfd.c: Likewise.
2811 * gdbsupport/gdb_vecs.h: Likewise.
2812 * gdbsupport/vec.c: Remove.
2813 * gdbsupport/vec.h: Remove.
2814 * gdbthread.h: Likewise.
2815 * guile/scm-type.c: Likewise.
2816 * inline-frame.c: Likewise.
2817 * machoread.c: Likewise.
2818 * memattr.c: Likewise.
2819 * memrange.h: Likewise.
2820 * namespace.h: Likewise.
2821 * nat/linux-btrace.h: Likewise.
2822 * osdata.c: Likewise.
2823 * parser-defs.h: Likewise.
2824 * progspace.h: Likewise.
2825 * python/py-type.c: Likewise.
2826 * record-btrace.c: Likewise.
2827 * rust-exp.y: Likewise.
2828 * solib-target.c: Likewise.
2829 * stap-probe.c: Likewise.
2830 * target-descriptions.c: Likewise.
2831 * target-memory.c: Likewise.
2832 * target.h: Likewise.
2833 * varobj.c: Likewise.
2834 * varobj.h: Likewise.
2835 * xml-support.h: Likewise.
2837 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2839 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2840 Update for new std::vector based implementation.
2841 (process_psymtab_comp_unit_reader): Likewise.
2842 (scan_partial_symbols): Likewise.
2843 (recursively_compute_inclusions): Likewise.
2844 (compute_compunit_symtab_includes): Likewise.
2845 (process_imported_unit_die): Likewise.
2846 (queue_and_load_dwo_tu): Likewise.
2847 (follow_die_sig_1): Likewise.
2848 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2849 (typedef dwarf2_per_cu_ptr): Remove.
2850 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2852 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2853 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2854 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2855 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2858 2019-10-15 Tom Tromey <tromey@adacore.com>
2860 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2863 2019-10-15 Tom Tromey <tromey@adacore.com>
2865 * windows-nat.c (windows_nat_target::fetch_registers)
2866 (windows_nat_target::store_registers): Rename "pid" to "tid".
2868 2019-10-15 Tom Tromey <tromey@adacore.com>
2870 * gdbarch.h, gdbarch.c: Rebuild.
2871 * gdbarch.sh (gcc_target_options): Change return type to
2873 * compile/compile.c (get_args): Update.
2874 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2875 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2877 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2879 * arch-utils.c (default_gcc_target_options): Return std::string.
2880 * arch-utils.h (default_gcc_target_options): Return std::string.
2881 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2883 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2885 * breakpoint.c (breakpoint_chain): Make static.
2886 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2887 of accessing breakpoint_chain.
2889 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2891 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2892 to a gdb::function_view and return value to bool.
2893 * breakpoint.h (iterate_over_breakpoints): Likewise.
2894 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2895 (pop_dummy_frame): Update.
2896 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2897 (gdbscm_breakpoints): Update.
2898 * python/py-breakpoint.c (build_bp_list): Update.
2899 (gdbpy_breakpoints): Update.
2900 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2902 (bpfinishpy_handle_stop): Update.
2903 (bpfinishpy_handle_exit): Update.
2904 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2905 (svr4_update_solib_event_breakpoints): Update.
2907 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2909 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2910 when unwrapping single-field structs.
2912 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2914 * dwarf2read.c: Remove includes.
2916 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2918 * ui-out.c (ui_out::call_do_message): Silence
2919 -Wformat-nonliteral warning.
2921 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2923 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2924 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2925 include: readline/tilde.h.
2927 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2929 * remote.c (remote_target::get_trace_status): Remove declaration of
2930 trace_regblock_size.
2932 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2934 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2935 (show_user): Remove declaration of cmdlist.
2936 * cli/cli-cmds.h (max_user_call_depth): Declare.
2937 * cli/cli-script.c (execute_user_command): Remove declaration
2938 of max_user_call_depth.
2940 2019-10-11 Jim Wilson <jimw@sifive.com>
2942 * gdbsupport/print-utils.h (pulongest): Fix comment.
2943 (plongest): Likewise.
2944 (phex): Add missing comment, mention leading zeros.
2945 (phex_nz): Add mention of no leading zeros to comment.
2947 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2948 plongest instead of unsigned long long cast.
2950 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2952 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2953 for external_editor_command and gdbtk_test.
2955 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2957 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2958 * varobj.c (varobjdebug): Move comment to...
2959 * varobj.h (varobjdebug): ...here, and declare.
2961 2019-10-09 Tom Tromey <tom@tromey.com>
2963 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2966 2019-10-09 Tom Tromey <tom@tromey.com>
2968 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2969 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2970 * tui/tui-command.c (tui_cmd_window::resize)
2971 (tui_refresh_cmd_win): Update.
2972 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2973 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2974 * tui/tui-data.c (~tui_gen_win_info): Remove.
2975 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2976 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2977 (tui_redisplay_readline, tui_mld_flush)
2978 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2979 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2980 (tui_data_window::erase_data_content)
2981 (tui_data_item_window::rerender)
2982 (tui_data_item_window::refresh_window): Update.
2983 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2984 (box_win, tui_gen_win_info::make_window)
2985 (tui_gen_win_info::make_visible): Update.
2986 (tui_delete_win): Remove.
2987 * tui/tui-winsource.c
2988 (tui_source_window_base::do_erase_source_content): Update.
2989 (tui_show_source_line, tui_source_window_base::update_tab_width)
2990 (tui_source_window_base::update_exec_info): Update.
2991 * tui/tui-data.h (struct curses_deleter): New.
2992 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2993 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2995 2019-10-09 Tom Tromey <tom@tromey.com>
2997 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2999 2019-10-09 Tom Tromey <tom@tromey.com>
3001 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3002 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3004 2019-10-09 Tom Tromey <tom@tromey.com>
3006 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3007 window height directly.
3008 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3010 * tui/tui-layout.c (tui_default_win_height): Remove.
3011 (tui_default_win_viewport_height): Remove.
3013 2019-10-09 Tom Tromey <tom@tromey.com>
3015 * tui/tui.h: Remove comments.
3017 2019-10-09 Tom de Vries <tdevries@suse.de>
3019 * python/lib/gdb/printer/bound_registers.py: Use
3020 '^builtin_type_bound128' as regexp argument for
3021 add_builtin_pretty_printer.
3023 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3025 * guile/guile.c (guile_extension_script_ops): Remove forward
3026 declaration and mark as static.
3027 (guile_script_ops): Likewise.
3028 (extension_language_guile): Move further down in the file so
3029 it can reference the definitions for guile_{extension_,}script_ops.
3031 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3033 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3034 except SORTL, DFLTCC, and KDSA.
3036 2019-10-08 Tom Tromey <tromey@adacore.com>
3038 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3039 (struct safe_symbol_file_add_args): Remove.
3041 2019-10-08 Tom Tromey <tromey@adacore.com>
3043 * windows-nat.c: Don't include buildsym-legacy.h.
3045 2019-10-08 Tom Tromey <tromey@adacore.com>
3047 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3049 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3051 * gdbtypes.c (overload_debug): Move comment to header.
3052 * gdbtypes.h (overload_debug): Declare.
3053 * valops.c: Remove declaration of overload_debug, instead
3056 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3058 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3060 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3062 * language.h (lang_frame_mismatch_warn): ... here. Also add
3064 * top.c (lang_frame_mismatch_warn): Remove declaration.
3065 (check_frame_language_change): Pass lang_frame_mismatch_warn
3068 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3070 * c-lang.h (vtbl_ptr_name): Declare.
3071 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3073 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3075 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3077 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3080 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3082 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3083 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3084 * ctfread.c: New file.
3085 * ctfread.h: New file.
3086 * elfread.c: Include ctfread.h.
3087 (struct elfinfo text_p): New member ctfsect.
3088 (elf_locate_sections): Mark CTF section.
3089 (elf_symfile_read): Call elfctf_build_psymtabs.
3090 * Makefile.in (LIBCTF): Add.
3093 (DIST): Add ctfread.c.
3095 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3097 * ctfread.c (struct nextfield): Renamed to ...
3098 (struct ctf_nextfield): ... this.
3099 (struct field_info): Renamed to ...
3100 (strut ctf_field_info): ... this.
3101 (attach_fields_to_type): Update for renamed structures.
3102 (ctf_add_member_cb): Likewise.
3103 (ctf_add_enum_member_cb): Likewise.
3104 (process_struct_members): Likewise.
3105 (process_enum_type): Likewise.
3107 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3109 * tracectf.h: Rename, was ctf.h.
3110 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3111 * tracefile.c: Likewise.
3112 * tracepoint.c: Remove unused include ctf.h.
3113 * mi/mi-main.c: Likewise.
3114 * Makefile.in Replace ctf.c with tracectf.c.
3116 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3118 * version.in: Change version number to "9.0.50.DATE-git".
3120 2019-10-03 Tom Tromey <tom@tromey.com>
3123 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3125 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3127 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3128 cp_search_name_hash.
3129 * NEWS: Add entry about nested function support.
3131 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3132 Andrew Burgess <andrew.burgess@embecosm.com>
3134 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3135 for nested static variables when searchin VAR_DOMAIN.
3136 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3137 global scope, update comment.
3138 (add_partial_subprogram): Call add_partial_subprogram recursively
3139 for nested subroutines when processinng Fortran.
3140 (load_partial_dies): Process the child entities of a subprogram
3141 when processing Fortran.
3142 (partial_die_parent_scope): Handle building scope
3143 for Fortran nested functions.
3144 (process_die): Record that nested functions have a scope.
3145 (new_symbol): Always record Fortran subprograms on the global
3147 (determine_prefix): How to build the prefix for Fortran
3150 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3152 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3153 have just sent the thread a SIGSTOP and are waiting for it to
3156 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3158 * btrace.c (btrace_add_pc): Remove whitespace before the template
3159 parameter in 'std::vector <...>'.
3160 (parse_xml_btrace_block): Likewise.
3161 (btrace_maint_decode_pt): Likewise.
3162 (btrace_maint_update_packets): Likewise.
3163 (btrace_maint_print_packets): Likewise.
3164 * btrace.h (struct btrace_maint_info): Likewise.
3165 * dwarf2read.c (struct type_unit_group): Likewise.
3166 (build_type_psymtabs_reader): Likewise.
3167 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3168 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3169 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3171 2019-10-03 Tom de Vries <tdevries@suse.de>
3173 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3174 the first line of the help text for set/show style metadata.
3176 2019-10-02 Tom Tromey <tromey@adacore.com>
3178 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3179 * gdbsupport/common-inferior.c: New file.
3180 * infcmd.c (startup_with_shell): Don't define.
3181 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3182 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3183 * inferior.h (startup_with_shell): Don't declare.
3185 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3187 * gdbsupport/gdb_assert.h: Include errors.h.
3188 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3190 2019-10-02 Tom Tromey <tromey@adacore.com>
3192 * NEWS: Add $_ada_exception entry.
3193 * ada-lang.c (struct ada_catchpoint): Add constructor.
3194 <m_kind>: New member.
3195 (allocate_location_exception, re_set_exception): Remove
3197 (should_stop_exception): Compute $_ada_exception.
3198 (check_status_exception, print_it_exception)
3199 (print_one_exception, print_mention_exception): Remove
3201 (allocate_location_catch_exception, re_set_catch_exception)
3202 (check_status_exception, print_it_catch_exception)
3203 (print_one_catch_exception, print_mention_catch_exception)
3204 (print_recreate_catch_exception)
3205 (allocate_location_catch_exception_unhandled)
3206 (re_set_catch_exception_unhandled)
3207 (check_status_exception, print_it_catch_exception_unhandled)
3208 (print_one_catch_exception_unhandled)
3209 (print_mention_catch_exception_unhandled)
3210 (print_recreate_catch_exception_unhandled)
3211 (allocate_location_catch_assert, re_set_catch_assert)
3212 (check_status_assert, print_it_catch_assert)
3213 (print_one_catch_assert, print_mention_catch_assert)
3214 (print_recreate_catch_assert)
3215 (allocate_location_catch_handlers, re_set_catch_handlers)
3216 (check_status_handlers, print_it_catch_handlers)
3217 (print_one_catch_handlers, print_mention_catch_handlers)
3218 (print_recreate_catch_handlers): Remove.
3219 (create_ada_exception_catchpoint): Update.
3220 (initialize_ada_catchpoint_ops): Update.
3222 2019-10-02 Tom Tromey <tromey@adacore.com>
3224 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3225 (create_excep_cond_exprs): Simplify exception string computation.
3226 (ada_exception_catchpoint_cond_string): Likewise.
3228 2019-10-02 Tom Tromey <tromey@adacore.com>
3230 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3231 * ada-lang.c (lesseq_defined_than): Handle
3233 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3235 (dwarf2_has_info): Likewise.
3236 (new_symbol): Set maybe_copied on symbol when
3238 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3240 <can_copy>: New member.
3241 * elfread.c (record_minimal_symbol): Set maybe_copied
3242 on symbol when appropriate.
3243 (elf_symfile_read): Update call to dwarf2_has_info.
3244 * minsyms.c (lookup_minimal_symbol_linkage): New
3246 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3247 * symtab.c (get_symbol_address, get_msymbol_address):
3249 * symtab.h (get_symbol_address, get_msymbol_address):
3251 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3253 (struct symbol, struct minimal_symbol) <maybe_copied>:
3256 2019-10-02 Tom Tromey <tromey@adacore.com>
3258 * source.c (struct current_source_location): New.
3259 (current_source_key): New global.
3260 (current_source_symtab, current_source_line)
3261 (current_source_pspace): Remove.
3262 (get_source_location): New function.
3263 (get_current_source_symtab_and_line)
3264 (set_default_source_symtab_and_line)
3265 (set_current_source_symtab_and_line)
3266 (clear_current_source_symtab_and_line, select_source_symtab)
3267 (info_source_command, print_source_lines_base)
3268 (info_line_command, search_command_helper, _initialize_source):
3271 2019-10-02 Tom Tromey <tromey@adacore.com>
3273 * source.c (select_source_symtab): Don't call
3274 decode_line_with_current_source.
3276 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3278 * symtab.c (lookup_global_symbol): Search global block.
3280 2019-10-02 Tom Tromey <tromey@adacore.com>
3282 * coffread.c (process_coff_symbol): Update.
3283 * dwarf2read.c (var_decode_location, new_symbol): Update.
3284 * mdebugread.c (parse_symbol): Update.
3285 * objfiles.c (relocate_one_symbol): Update.
3286 * stabsread.c (define_symbol, fix_common_block)
3287 (scan_file_globals): Update.
3288 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3289 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3290 * xcoffread.c (process_xcoff_symbol): Update.
3292 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3294 * MAINTAINERS: Update my email address.
3296 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3298 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3300 (build_type_psymtabs_reader): Update for std::vector.
3301 (build_type_psymtab_dependencies): Likewise.
3302 * dwarf2read.h: Remove use of DEF_VEC_P.
3303 (typedef sig_type_ptr): Delete.
3305 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3307 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3309 (btrace_maint_decode_pt): Likewise, and move allocation of the
3310 vector outside of the loop.
3311 (btrace_maint_update_packets): Update to handle change from VEC to
3313 (btrace_maint_print_packets): Likewise.
3314 (maint_info_btrace_cmd): Likewise.
3315 * btrace.h: Remove use of DEF_VEC_O.
3316 (typedef btrace_pt_packet_s): Delete.
3317 (struct btrace_maint_info) <packets>: Change fromm VEC to
3319 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3321 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3323 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3324 make accesses into the vector constant references.
3325 (btrace_add_pc): Update for std::vector.
3326 (btrace_stitch_bts): Likewise.
3327 (parse_xml_btrace_block): Likewise.
3328 (btrace_maint_update_packets): Likewise.
3329 (btrace_maint_print_packets): Likewise.
3330 (maint_info_btrace_cmd): Likewise.
3331 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3333 (btrace_data::empty): Likewise.
3334 (btrace_data_append): Likewise.
3335 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3336 (typedef btrace_block_s): Delete.
3337 (struct btrace_block): Add constructor.
3338 (struct btrace_data_bts) <blocks>: Change to std::vector.
3339 * nat/linux-btrace.c (perf_event_read_bts): Update for
3341 (linux_read_bts): Likewise.
3343 2019-10-01 Tom Tromey <tom@tromey.com>
3345 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3347 2019-10-01 Tom Tromey <tom@tromey.com>
3349 * stack.c (print_frame, info_frame_command_core): Use
3351 * linux-thread-db.c (try_thread_db_load_1)
3352 (try_thread_db_load_from_pdir_1): Use styled_string.
3353 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3354 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3355 (maybe_print_unsupported_script_warning)
3356 (maybe_print_script_not_found_warning): Use styled_string.
3357 * ada-lang.c (user_select_syms): Use styled_string.
3359 2019-10-01 Tom Tromey <tom@tromey.com>
3361 * p-lang.c (pascal_printstr): Use metadata style.
3362 * value.c (show_convenience): Use metadata style.
3363 * valprint.c (valprint_check_validity, val_print_optimized_out)
3364 (val_print_not_saved, val_print_unavailable)
3365 (val_print_invalid_address, generic_val_print, val_print)
3366 (value_check_printable, val_print_array_elements): Use metadata
3368 * ui-out.h (class ui_out) <field_fmt>: New overload.
3369 <do_field_fmt>: Add style parameter.
3370 * ui-out.c (ui_out::field_fmt): New overload.
3371 * typeprint.c (type_print_unknown_return_type)
3372 (val_print_not_allocated, val_print_not_associated): Use metadata
3374 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3376 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3377 * tracepoint.c (tvariables_info_1): Use metadata style.
3378 * stack.c (print_frame_arg, print_frame_info, print_frame)
3379 (info_frame_command_core): Use metadata style.
3380 * skip.c (info_skip_command): Use metadata style.
3381 * rust-lang.c (rust_print_enum): Use metadata style.
3382 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3384 * python/py-framefilter.c (py_print_single_arg): Use metadata
3386 * printcmd.c (do_one_display, print_variable_and_value): Use
3388 * p-valprint.c (pascal_val_print)
3389 (pascal_object_print_value_fields): Use metadata style.
3390 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3391 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3393 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3394 * m2-valprint.c (m2_print_long_set): Use metadata style.
3395 * m2-typeprint.c (m2_print_type): Use metadata style.
3396 * infcmd.c (print_return_value_1): Use metadata style.
3397 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3398 * f-valprint.c (info_common_command_for_block): Use metadata
3400 * f-typeprint.c (f_type_print_base): Use metadata style.
3401 * expprint.c (print_subexp_standard): Use metadata style.
3402 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3403 * cli/cli-style.h (class cli_style_option): Add constructor.
3404 (metadata_style): Declare.
3405 * cli/cli-style.c (metadata_style): New global.
3406 (_initialize_cli_style): Register metadata style.
3407 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3409 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3410 * c-typeprint.c (c_type_print_base_struct_union)
3411 (c_type_print_base_1): Use metadata style.
3412 * breakpoint.c (watchpoint_value_print)
3413 (print_one_breakpoint_location): Use metadata style.
3414 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3416 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3418 * ada-valprint.c (val_print_packed_array_elements, printstr)
3419 (print_field_values, ada_val_print_ref, ada_val_print): Use
3421 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3423 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3425 * ada-lang.c (user_select_syms): Use metadata style.
3427 2019-10-01 Tom Tromey <tom@tromey.com>
3429 * cli/cli-cmds.c (pwd_command): Style output.
3431 2019-10-01 Pedro Alves <palves@redhat.com>
3432 Tom Tromey <tom@tromey.com>
3434 * symtab.c (print_symbol_info): Use %ps.
3435 (print_msymbol_info): Use %ps.
3436 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3437 * printcmd.c (print_variable_and_value): Use %ps.
3438 * macrocmd.c (show_pp_source_pos): Use %ps.
3439 * infrun.c (print_exited_reason): Use ui_out::message.
3440 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3441 (describe_other_breakpoints): Use ui_out::message and new
3443 (say_where): Use new formats.
3444 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3447 2019-10-01 Pedro Alves <palves@redhat.com>
3448 Tom Tromey <tom@tromey.com>
3450 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3451 (test_gdb_formats): New function.
3452 (run_tests): Call it.
3453 (test_format_specifier): Update.
3454 * utils.h (fputs_filtered): Update comment.
3455 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3456 (fputs_styled_unfiltered): Declare.
3457 * utils.c (fputs_styled_unfiltered): New function.
3458 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3459 (vfprintf_filtered): Update.
3460 (vfprintf_unfiltered, vprintf_filtered): Update.
3461 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3462 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3463 disallow_ui_out_field>: New constants.
3464 (enum class field_kind): New.
3465 (struct base_field_s, struct signed_field_s): New.
3466 (signed_field): New function.
3467 (struct string_field_s): New.
3468 (string_field): New function.
3469 (struct styled_string_s): New.
3470 (styled_string): New function.
3471 (class ui_out) <message>: Add comment.
3472 <vmessage, call_do_message>: New methods.
3473 <do_message>: Add style parameter.
3474 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3476 (ui_out::message): Rewrite.
3477 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3479 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3480 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3481 gdb_extensions parameter.
3482 (class format_piece): Add parameter to constructor.
3483 (n_int_args): New field.
3484 * gdbsupport/format.c (format_pieces::format_pieces): Add
3485 gdb_extensions parameter. Handle '*'.
3486 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3487 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3488 vfprintf_styled_no_gdbfmt.
3489 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3490 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3492 * ui-style.h (struct ui_file_style) <ptr>: New method.
3494 2019-10-01 Tom Tromey <tom@tromey.com>
3496 * unittests/format_pieces-selftests.c: Update. Add final format.
3497 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3498 empty literal pieces.
3500 2019-10-01 Tom Tromey <tom@tromey.com>
3502 * ui-out.h (enum class ui_out_style_kind): Remove.
3503 (class ui_out) <field_string, field_stsream, do_field_string>:
3504 Change type of "style".
3505 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3506 (ui_out::field_string): Update.
3507 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3509 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3510 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3511 * stack.c (print_frame_arg, print_frame_info, print_frame):
3513 * source.c (print_source_lines_base): Update.
3514 * solib.c (info_sharedlibrary_command): Update.
3515 * skip.c (info_skip_command): Update.
3516 * record-btrace.c (btrace_call_history_src_line)
3517 (btrace_call_history): Update.
3518 * python/py-framefilter.c (py_print_frame): Update.
3519 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3521 * mi/mi-out.c (mi_ui_out::do_table_header)
3522 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3523 (mi_ui_out::do_field_string): Update.
3524 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3526 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3528 * cli-out.c (cli_ui_out::do_table_header)
3529 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3530 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3531 (cli_ui_out::do_field_fmt): Update.
3532 * breakpoint.c (print_breakpoint_location): Update.
3533 (update_static_tracepoint): Update.
3535 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3537 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3538 conversion of gdb_datadir.
3539 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3540 remove not needed c_str ().
3542 2019-09-30 Ali Tamur <tamur@google.com>
3544 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3545 (dwarf2_string_attr): Likewise.
3547 2019-09-30 Ali Tamur <tamur@google.com>
3549 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3550 (process_full_type_unit): Likewise.
3551 (dump_die_shallow): Likewise.
3552 (cu_debug_loc_section): Likewise.
3554 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3556 * minsyms.c (compare_minimal_symbols): Rename to...
3557 (minimal_symbol_is_less_than): ...this, and adjust to STL
3558 conventions (return bool, take arguments as references)
3559 (minimal_symbol_reader::install): Call std::sort instead
3562 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3564 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3566 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3567 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3569 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3571 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3572 * psympriv.h (add_psymbol_to_list): Move comment here and update
3575 2019-09-29 Tom de Vries <tdevries@suse.de>
3577 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3578 Use $tmpdir/$(basename "$output_file").dwz instead of
3579 "${output_file}.dwz".
3581 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3584 * hppa-linux-nat.c: Include gdbarch.h.
3586 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3588 * blockframe.c (find_pc_partial_function): Change return type to bool.
3589 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3590 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3591 (stub_gnu_ifunc_resolve_name): Likewise.
3592 * symtab.c (compare_filenames_for_search): Likewise.
3593 (compare_glob_filenames_for_search): Likewise.
3594 (matching_obj_sections): Likewise.
3595 (symbol_matches_domain): Likewise.
3596 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3597 (find_line_pc): Change return type to bool.
3598 (find_line_pc_range): Likewise.
3599 (producer_is_realview): Likewise.
3600 * symtab.h (symbol_matches_domain): Likewise.
3601 (find_pc_partial_function): Likewise.
3602 (find_pc_line_pc_range): Likewise.
3603 (in_gnu_ifunc_stub): Likewise.
3604 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3605 (find_line_pc): Likewise.
3606 (find_line_pc_range): Likewise.
3607 (matching_obj_sections): Likewise.
3608 (find_line_symtab): Change out parameter to bool.
3609 (producer_is_realview): Change return type to bool.
3610 (compare_filenames_for_search): Likewise.
3611 (compare_glob_filenames_for_search): Likewise.
3613 2019-09-26 Tom Tromey <tom@tromey.com>
3615 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3616 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3617 * gdb_usleep.h: Remove.
3618 * gdb_usleep.c: Remove.
3619 * utils.c: Don't include gdb_usleep.h.
3621 2019-09-26 Tom Tromey <tromey@adacore.com>
3623 * python/py-type.c (type_to_type_object): Call check_typedef
3626 2019-09-26 Tom Tromey <tom@tromey.com>
3628 * utils.h (initialize_utils): Don't declare.
3629 * top.c (gdb_init): Don't call initialize_utils.
3630 * utils.c (initialize_utils): Remove. Move contents...
3631 (_initialize_utils): ... here.
3633 2019-09-25 Tom Tromey <tom@tromey.com>
3635 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3636 * utils.h (make_hex_string): Don't declare.
3637 * utils.c (make_hex_string): Remove.
3639 2019-09-24 Tom de Vries <tdevries@suse.de>
3642 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3643 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3645 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3647 * NEWS: Mention new simulator port for PRU.
3649 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3651 * ada-exp.y (write_object_remaining): Update.
3652 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3653 and eliminate the static buffer.
3654 (ada_decode_symbol): Update.
3655 (ada_la_decode): Update.
3656 (ada_sniff_from_mangled_name): Update.
3657 (is_valid_name_for_wild_match): Update.
3658 (ada_lookup_name_info::matches): Update and simplify.
3659 (name_matches_regex): Update.
3660 (ada_add_global_exceptions): Update.
3661 * ada-lang.h (ada_decode): Update signature.
3662 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3663 * dwarf-index-write.c (debug_names::insert): Update.
3665 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3667 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3670 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3672 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3673 Change "nonzero" to "true" in documentation.
3675 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3677 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3678 (_initialize_darwin_solib): Don't set
3679 darwin_so_ops.lookup_lib_global_symbol.
3680 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3681 set_gdbarch_iterate_over_objfiles_in_search_order.
3682 (elf_lookup_lib_symbol): Rename to...
3683 (svr4_iterate_over_objfiles_in_search_order): this, and update
3684 to iterate semantics.
3685 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3686 * solib.c (solib_global_lookup): Remove.
3687 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3688 (solib_global_lookup): Remove.
3689 * symtab.c (lookup_global_or_static_symbol): Remove call to
3690 solib_global_lookup.
3692 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3694 * NEWS: Move entries about default MI version now being
3695 version 3, and about the GDB/MI fix for multi-location
3696 breakpoints to the "since GDB 8.3" section.
3698 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3702 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3704 * NEWS: Mention that Cell/B.E. debugging support was removed.
3705 * MAINTAINERS: Remove spu target.
3707 * config/djgpp/fnchange.lst: Remove entries for removed files.
3709 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3710 spu-multiarch.o, and spu-tdep.o.
3711 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3712 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3713 spu-multiarch.c, and spu-tdep.c.
3714 * spu-linux-nat.c: Remove file.
3715 * spu-multiarch.c: Remove file.
3716 * spu-tdep.c: Remove file.
3717 * spu-tdep.h: Remove file.
3718 * solib-spu.c: Remove file.
3719 * solib-spu.h: Remove file.
3721 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3722 * configure.nat (spu-linux): Remove.
3723 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3724 solib-multiarch.o from gdb_target_obs.
3727 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3729 (ppc_linux_no_features): Update.
3730 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3732 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3733 (tdesc_powerpc_cell64l): Likewise.
3734 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3735 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3737 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3738 Do not include "features/rs6000/powerpc-cell32l.c" or
3739 "features/rs6000/powerpc-cell64l.c".
3740 (ppc_linux_spu_section): Remove.
3741 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3742 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3743 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3744 (ppc_linux_spe_context_lookup): Remove.
3745 (ppc_linux_spe_context_inferior_created): Remove.
3746 (ppc_linux_spe_context_solib_loaded): Remove.
3747 (ppc_linux_spe_context_solib_unloaded): Remove.
3748 (ppc_linux_spe_context): Remove.
3749 (struct ppu2spu_cache): Remove.
3750 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3751 (struct ppu2spu_data): Remove.
3752 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3753 ppu2spu_unwind): Remove.
3754 (ppc_linux_init_abi): Remove Cell/B.E. support.
3755 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3757 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3758 (rs6000/powerpc-cell64l-expedite): Likewise
3759 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3760 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3761 rs6000/powerpc-cell64l.xml.
3762 * features/rs6000/powerpc-cell32l.xml: Remove.
3763 * features/rs6000/powerpc-cell64l.xml: Likewise.
3764 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3765 * features/rs6000/powerpc-cell64l.c: Likewise.
3766 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3767 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3768 * regformats/reg-spu.dat: Remove.
3770 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3771 * corelow.c (struct spuid_list): Remove.
3772 (add_to_spuid_list): Remove.
3773 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3774 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3775 (remote_protocol_features): Remove associated entries.
3776 (_initialize_remote): No longer initialize them.
3777 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3778 * linux-nat.c (SPUFS_MAGIC): Remove.
3779 (linux_proc_xfer_spu): Remove.
3780 (spu_enumerate_spu_ids): Remove.
3781 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3782 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3783 (linux_make_corefile_notes): No longer call it.
3785 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3786 (cooked_write_test): Likewise.
3788 2019-09-20 Tom Tromey <tom@tromey.com>
3790 * NEWS: Mention case-sensitivity of TUI commands.
3791 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3792 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3793 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3795 2019-09-20 Tom Tromey <tom@tromey.com>
3797 * tui/tui-source.c (tui_source_window::set_contents): Use
3798 make_unique_xstrdup.
3799 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3800 make_unique_xstrdup.
3802 2019-09-20 Tom Tromey <tom@tromey.com>
3804 * tui/tui-data.c: Remove separator comments.
3805 * tui/tui-layout.c: Remove separator comments.
3806 * tui/tui-win.c: Remove separator comments.
3807 * tui/tui-wingeneral.c: Remove separator comments.
3809 2019-09-20 Tom Tromey <tom@tromey.com>
3811 * tui/tui.h (strcat_to_buf): Don't declare.
3812 * tui/tui.c (strcat_to_buf): Remove.
3814 2019-09-20 Tom Tromey <tom@tromey.com>
3816 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3818 * tui/tui-source.c (tui_source_window::set_contents)
3819 (tui_source_window::location_matches_p)
3820 (tui_source_window::maybe_update): Update.
3822 2019-09-20 Tom Tromey <tom@tromey.com>
3824 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3826 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3828 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3829 (tui_data_window::line_from_reg_element_no)
3830 (tui_data_window::first_reg_element_no_inline)
3831 (tui_data_window::show_registers)
3832 (tui_data_window::show_register_group)
3833 (tui_data_window::display_registers_from)
3834 (tui_data_window::display_registers_from_line)
3835 (tui_data_window::first_data_item_displayed)
3836 (tui_data_window::delete_data_content_windows)
3837 (tui_data_window::erase_data_content)
3838 (tui_data_window::do_scroll_vertical)
3839 (tui_data_window::refresh_window)
3840 (tui_data_window::check_register_values): Update.
3842 2019-09-20 Tom Tromey <tom@tromey.com>
3844 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3845 (struct tui_locator_window) <full_name, proc_name>: Now
3847 * tui/tui-stack.c (tui_locator_window::make_status_line)
3848 (tui_locator_window::set_locator_fullname)
3849 (tui_locator_window::set_locator_info): Update.
3850 * tui/tui-source.c (tui_source_window::set_contents)
3851 (tui_source_window::showing_source_p): Update.
3853 2019-09-20 Tom Tromey <tom@tromey.com>
3855 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3856 Don't call tui_locator_win_info_ptr.
3858 2019-09-20 Tom Tromey <tom@tromey.com>
3860 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3862 2019-09-20 Tom Tromey <tom@tromey.com>
3864 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3866 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3867 * tui/tui-layout.c (show_source_disasm_command, show_data)
3868 (show_source_or_disasm_and_command): Use 1 as height for locator.
3870 2019-09-20 Tom Tromey <tom@tromey.com>
3872 * tui/tui.c (tui_enable): Update.
3873 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3875 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3877 * tui/tui-data.c (win_resized): Now bool.
3878 (tui_win_resized): Return bool.
3879 (tui_set_win_resized_to): Accept a bool.
3881 2019-09-20 Tom Tromey <tom@tromey.com>
3883 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3884 Change type of "refresh_values_only".
3885 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3886 type of "refresh_values_only".
3888 2019-09-20 Tom Tromey <tom@tromey.com>
3890 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3892 (tui_disassemble): Add "pos" parameter.
3893 (tui_disasm_window::set_contents): Simplify.
3895 2019-09-20 Tom Tromey <tom@tromey.com>
3897 * tui/tui-winsource.h (struct tui_source_window_base)
3898 <show_source_content>: Now private.
3899 * tui/tui-winsource.c
3900 (tui_source_window_base::show_source_content): Don't handle empty
3903 2019-09-20 Tom Tromey <tom@tromey.com>
3905 * tui/tui-layout.c (show_source_disasm_command)
3906 (show_source_or_disasm_and_command): Don't call
3907 show_source_content.
3909 2019-09-20 Tom Tromey <tom@tromey.com>
3911 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3913 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3914 from tui_make_status_line.
3915 (tui_locator_window::rerender): Update.
3917 2019-09-20 Tom Tromey <tom@tromey.com>
3919 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3920 (tui_locator_window::rerender): Update.
3922 2019-09-20 Tom Tromey <tom@tromey.com>
3924 * tui/tui-winsource.h (struct tui_source_window_base)
3925 <~tui_source_window_base>: Don't declare.
3927 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3928 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3930 * tui/tui-source.c (tui_source_window::set_contents): Update.
3931 (tui_source_window::location_matches_p)
3932 (tui_source_window::maybe_update): Update.
3934 2019-09-20 Tom Tromey <tom@tromey.com>
3936 * tui/tui-winsource.h (~tui_source_element): Remove.
3937 (tui_source_element): Update.
3938 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3939 * tui/tui-winsource.c (tui_show_source_line): Update.
3940 * tui/tui-source.c (tui_source_window::set_contents): Update.
3941 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3943 2019-09-20 Tom Tromey <tom@tromey.com>
3945 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3947 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3948 tui_clear_source_windows_detail.
3949 * tui/tui-winsource.h (struct tui_source_window_base)
3950 <clear_detail>: Don't declare.
3951 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3953 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3955 2019-09-20 Tom Tromey <tromey@adacore.com>
3958 * block.c (contained_in): Fix final return value.
3960 2019-09-20 Alan Modra <amodra@gmail.com>
3962 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3963 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3964 (read_indirect_string_from_dwz): Use bfd accessor.
3965 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3966 * machoread.c (macho_symfile_read_all_oso): Likewise.
3967 * solib.c (solib_bfd_open): Likewise.
3969 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3971 * eval.c: Move declaration of overload_resolution to...
3974 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3976 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3977 * arm-linux-tdep.c: Likewise.
3978 * arm-nbsd-nat.c: Likewise.
3979 * arm-tdep.h: Declare arm_apcs_32.
3980 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3982 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3984 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3985 * dwarf2read.h: Declare dwarf_always_disassemble.
3987 2019-09-19 Tom de Vries <tdevries@suse.de>
3990 * source-cache.c (source_cache::ensure): Catch exception thrown during
3991 construction of the highlighter.
3993 2019-09-18 Alan Modra <amodra@gmail.com>
3995 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3996 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3997 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3998 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3999 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4000 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4001 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4002 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4003 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4004 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4005 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4006 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4007 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4008 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4009 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4010 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4011 * mi/mi-interp.c: Update throughout for bfd section macro and
4013 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4014 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4016 2019-09-18 Tom Tromey <tom@tromey.com>
4019 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4021 (tui_enable): Do not call rl_initialize.
4023 2019-09-18 Christian Groessler <chris@groessler.org>
4025 * alpha-linux-nat.c: Include gdbarch.h.
4027 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4029 * ui-file.c: Include cli/cli-style.h.
4030 (term_cli_styling): Remove cli_styling declaration.
4032 2019-09-18 Alan Modra <amodra@gmail.com>
4034 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4035 to bfd_asymbol_section.
4037 2019-09-18 Alan Modra <amodra@gmail.com>
4039 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4040 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4041 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4043 2019-09-18 Alan Modra <amodra@gmail.com>
4045 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4046 * spu-linux-nat.c (spu_bfd_open): Likewise.
4048 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4050 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4051 to bool to match definition in dwarf2read.c.
4053 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4055 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4056 (print_signatures): Likewise.
4057 (trust_pad_over_xvs): Likewise.
4058 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4059 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4060 * arm-linux-nat.c (arm_apcs_32): Likewise.
4061 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4062 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4063 * arm-tdep.c (arm_debug): Likewise.
4064 (arm_apcs_32): Likewise.
4065 * auto-load.c (debug_auto_load): Likewise.
4066 (auto_load_gdb_scripts): Likewise.
4067 (global_auto_load): Likewise.
4068 (auto_load_local_gdbinit): Likewise.
4069 (auto_load_local_gdbinit_loaded): Likewise.
4070 * auto-load.h (global_auto_load): Likewise.
4071 (auto_load_local_gdbinit): Likewise.
4072 (auto_load_local_gdbinit_loaded): Likewise.
4073 * breakpoint.c (disconnected_dprintf): Likewise.
4074 (breakpoint_proceeded): Likewise.
4075 (automatic_hardware_breakpoints): Likewise.
4076 (always_inserted_mode): Likewise.
4077 (target_exact_watchpoints): Likewise.
4078 (_initialize_breakpoint): Update.
4079 * breakpoint.h (target_exact_watchpoints): Change to bool.
4080 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4081 * cli/cli-cmds.c (trace_commands): Likewise.
4082 * cli/cli-cmds.h (trace_commands): Likewise.
4083 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4085 * cli/cli-logging.c (logging_overwrite): Change to bool.
4086 (logging_redirect): Likewise.
4087 (debug_redirect): Likewise.
4088 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4089 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4091 <boolean_option_def>: Update.
4092 (struct flag_option_def): Change default type of Context to bool
4094 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4095 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4096 (get_setshow_command_value_string): Likewise.
4097 * cli/cli-style.c (cli_styling): Change to bool.
4098 (source_styling): Likewise.
4099 * cli/cli-style.h (source_styling): Likewise.
4100 (cli_styling): Likewise.
4101 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4103 * command.h (var_types): Update comment.
4104 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4105 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4107 (debug_compile_cplus_scopes): Likewise.
4108 * compile/compile-internal.h (compile_debug): Likewise.
4109 * compile/compile.c (compile_debug): Likewise.
4110 (struct compile_options) <raw>: Likewise.
4111 * cp-support.c (catch_demangler_crashes): Likewise.
4112 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4113 (usr_cmd_cris_dwarf2_cfi): Likewise.
4114 * csky-tdep.c (csky_debug): Likewise.
4115 * darwin-nat.c (enable_mach_exceptions): Likewise.
4116 * dcache.c (dcache_enabled_p): Likewise.
4117 * defs.h (info_verbose): Likewise.
4118 * demangle.c (demangle): Likewise.
4119 (asm_demangle): Likewise.
4120 * dwarf-index-cache.c (debug_index_cache): Likewise.
4121 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4122 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4123 * dwarf2read.c (check_physname): Likewise.
4124 (use_deprecated_index_sections): Likewise.
4125 (dwarf_always_disassemble): Likewise.
4126 * eval.c (overload_resolution): Likewise.
4127 * event-top.c (set_editing_cmd_var): Likewise.
4128 (exec_done_display_p): Likewise.
4129 * event-top.h (set_editing_cmd_var): Likewise.
4130 (exec_done_display_p): Likewise.
4131 * exec.c (write_files): Likewise.
4132 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4133 (debug_fbsd_nat): Likewise.
4134 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4136 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4137 <backtrace_past_entry> Likewise.
4138 * gdb-demangle.h (demangle): Likewise.
4139 (asm_demangle): Likewise.
4140 * gdb_bfd.c (bfd_sharing): Likewise.
4141 * gdbcore.h (write_files): Likewise.
4142 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4143 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4144 * gdbthread.h (print_thread_events): Likewise.
4145 * gdbtypes.c (opaque_type_resolution): Likewise.
4146 (strict_type_checking): Likewise.
4147 * gnu-nat.c (gnu_debug_flag): Likewise.
4148 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4149 * guile/scm-param.c (pascm_variable): Add boolval.
4150 (add_setshow_generic): Update.
4151 (pascm_param_value): Update.
4152 (pascm_set_param_value_x): Update.
4153 * hppa-tdep.c (hppa_debug): Change to bool..
4154 * infcall.c (may_call_functions_p): Likewise.
4155 (coerce_float_to_double_p): Likewise.
4156 (unwind_on_signal_p): Likewise.
4157 (unwind_on_terminating_exception_p): Likewise.
4158 * infcmd.c (startup_with_shell): Likewise.
4159 * inferior.c (print_inferior_events): Likewise.
4160 * inferior.h (startup_with_shell): Likewise.
4161 (print_inferior_events): Likewise.
4162 * infrun.c (step_stop_if_no_debug): Likewise.
4163 (detach_fork): Likewise.
4164 (debug_displaced): Likewise.
4165 (disable_randomization): Likewise.
4166 (non_stop): Likewise.
4167 (non_stop_1): Likewise.
4168 (observer_mode): Likewise.
4169 (observer_mode_1): Likewise.
4170 (set_observer_mode): Update.
4171 (sched_multi): Change to bool.
4172 * infrun.h (debug_displaced): Likewise.
4173 (sched_multi): Likewise.
4174 (step_stop_if_no_debug): Likewise.
4175 (non_stop): Likewise.
4176 (disable_randomization): Likewise.
4177 * linux-tdep.c (use_coredump_filter): Likewise.
4178 (dump_excluded_mappings): Likewise.
4179 * linux-thread-db.c (auto_load_thread_db): Likewise.
4180 (check_thread_db_on_load): Likewise.
4181 * main.c (captured_main_1): Update.
4182 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4183 xx2_opt, boolean_opt>: Change to bool.
4184 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4185 * maint.c (maintenance_profile_p): Likewise.
4186 (per_command_time): Likewise.
4187 (per_command_space): Likewise.
4188 (per_command_symtab): Likewise.
4189 * memattr.c (inaccessible_by_default): Likewise.
4190 * mi/mi-main.c (mi_async): Likewise.
4191 (mi_async_1): Likewise.
4192 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4193 * nat/fork-inferior.h (startup_with_shell): Likewise.
4194 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4195 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4196 * nios2-tdep.c (nios2_debug): Likewise.
4197 * or1k-tdep.c (or1k_debug): Likewise.
4198 * parse.c (parser_debug): Likewise.
4199 * parser-defs.h (parser_debug): Likewise.
4200 * printcmd.c (print_symbol_filename): Likewise.
4201 * proc-api.c (procfs_trace): Likewise.
4202 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4203 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4204 (set_parameter_value): Update.
4205 (add_setshow_generic): Update.
4206 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4208 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4210 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4211 * record-btrace.c (record_btrace_target::store_registers): Update.
4212 * record-full.c (record_full_memory_query): Change to bool.
4213 (record_full_stop_at_limit): Likewise.
4214 * record-full.h (record_full_memory_query): Likewise.
4215 * remote-notif.c (notif_debug): Likewise.
4216 * remote-notif.h (notif_debug): Likewise.
4217 * remote.c (use_range_stepping): Likewise.
4218 (interrupt_on_connect): Likewise.
4219 (remote_break): Likewise.
4220 * ser-tcp.c (tcp_auto_retry): Likewise.
4221 * ser-unix.c (serial_hwflow): Likewise.
4222 * skip.c (debug_skip): Likewise.
4223 * solib-aix.c (solib_aix_debug): Likewise.
4224 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4225 (spu_auto_flush_cache_p): Likewise.
4226 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4228 (struct info_print_options) <quiet>: Likewise.
4229 * symfile-debug.c (debug_symfile): Likewise.
4230 * symfile.c (auto_solib_add): Likewise.
4231 (separate_debug_file_debug): Likewise.
4232 * symfile.h (auto_solib_add): Likewise.
4233 (separate_debug_file_debug): Likewise.
4234 * symtab.c (basenames_may_differ): Likewise.
4235 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4236 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4237 (struct info_types_options) <quiet>: Likewise.
4238 * symtab.h (demangle): Likewise.
4239 (basenames_may_differ): Likewise.
4240 * target-dcache.c (stack_cache_enabled_1): Likewise.
4241 (code_cache_enabled_1): Likewise.
4242 * target.c (trust_readonly): Likewise.
4243 (may_write_registers): Likewise.
4244 (may_write_memory): Likewise.
4245 (may_insert_breakpoints): Likewise.
4246 (may_insert_tracepoints): Likewise.
4247 (may_insert_fast_tracepoints): Likewise.
4248 (may_stop): Likewise.
4249 (auto_connect_native_target): Likewise.
4250 (target_stop_and_wait): Update.
4251 (target_async_permitted): Change to bool.
4252 (target_async_permitted_1): Likewise.
4253 (may_write_registers_1): Likewise.
4254 (may_write_memory_1): Likewise.
4255 (may_insert_breakpoints_1): Likewise.
4256 (may_insert_tracepoints_1): Likewise.
4257 (may_insert_fast_tracepoints_1): Likewise.
4258 (may_stop_1): Likewise.
4259 * target.h (target_async_permitted): Likewise.
4260 (may_write_registers): Likewise.
4261 (may_write_memory): Likewise.
4262 (may_insert_breakpoints): Likewise.
4263 (may_insert_tracepoints): Likewise.
4264 (may_insert_fast_tracepoints): Likewise.
4265 (may_stop): Likewise.
4266 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4267 (make_thread_apply_all_options_def_group): Change argument from int*
4269 (thread_apply_all_command): Update.
4270 (print_thread_events): Change to bool.
4271 * top.c (confirm): Likewise.
4272 (command_editing_p): Likewise.
4273 (history_expansion_p): Likewise.
4274 (write_history_p): Likewise.
4275 (info_verbose): Likewise.
4276 * top.h (confirm): Likewise.
4277 (history_expansion_p): Likewise.
4278 * tracepoint.c (disconnected_tracing): Likewise.
4279 (circular_trace_buffer): Likewise.
4280 * typeprint.c (print_methods): Likewise.
4281 (print_typedefs): Likewise.
4282 * utils.c (debug_timestamp): Likewise.
4283 (sevenbit_strings): Likewise.
4284 (pagination_enabled): Likewise.
4285 * utils.h (sevenbit_strings): Likewise.
4286 (pagination_enabled): Likewise.
4287 * valops.c (overload_resolution): Likewise.
4288 * valprint.h (struct value_print_options) <prettyformat_arrays,
4289 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4290 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4291 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4293 * windows-nat.c (new_console): Likewise.
4294 (cygwin_exceptions): Likewise.
4295 (new_group): Likewise.
4296 (debug_exec): Likewise.
4297 (debug_events): Likewise.
4298 (debug_memory): Likewise.
4299 (debug_exceptions): Likewise.
4300 (useshell): Likewise.
4301 * windows-tdep.c (maint_display_all_tib): Likewise.
4302 * xml-support.c (debug_xml): Likewise.
4304 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4306 * source.c (prepare_path_for_appending): New function.
4307 (openp): Make use of new function.
4308 (find_and_open_source): Search for the compilation directory and
4309 source file as a relative path beneath the directory search path.
4311 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4313 * source-cache.c (source_cache::get_line_charpos): Catch
4314 exceptions and return false, this matches the behaviour documented
4317 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4319 * ada-tasks.c (info_task): Remove quoting of the task's name.
4321 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4323 * symfile.c (auto_solib_add): Replace comment with a reference
4326 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4328 * NEWS: Mention that gdb can now be compiled with Python 3
4331 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4333 * maint.c (maint_print_section_data::maint_print_section_data):
4334 Force use of 'float log10 (float)' by casting the argument to
4337 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4339 * maint.c: Add 'cmath' include.
4340 (struct maint_print_section_data): New structure.
4341 (print_section_index): New function.
4342 (print_bfd_section_info): Add header comment, small whitespace
4343 cleanup, and update to call new print_section_index function.
4344 (print_objfile_section_info): Likewise.
4345 (maint_obj_section_from_bfd_section): New function.
4346 (print_bfd_section_info_maybe_relocated): New function.
4347 (maintenance_info_sections): Add header comment, always use
4348 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4350 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4352 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4353 inner scope, add check that the objfile has psymtabs before
4354 checking psymtabs_addrmap.
4355 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4357 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4359 * NEWS: Announce that Ada task names are now shown at more places,
4360 and between quotes (except in info task output).
4361 * gdb/ada-tasks.c (task_to_str): New function.
4362 (display_current_task_id): Call task_to_str.
4363 (task_command_1): Likewise.
4364 (print_ada_task_info): In non-mi mode, Properly align headers and data
4365 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4367 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4369 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4370 prstatus.pr_lwp.pr_info instead of making it up.
4372 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4374 * auto-load.c (auto_load_expand_dir_vars): Update.
4375 * defs.h (gdb_datadir): Change to std::string.
4376 (python_libdir): Likewise.
4377 (relocate_gdb_directory): Change return type to std::string.
4378 * guile/guile.c (gdbscm_data_directory): Update.
4379 (initialize_scheme_side): Update.
4380 * jit.c (jit_reader_dir): Change to std::string.
4381 (jit_reader_load_command): Update.
4382 * main.c (gdb_datadir): Change to std::string.
4383 (python_libdir): Likewise.
4384 (set_gdb_data_directory): Update.
4385 (relocate_path): Change to return std::string.
4386 (relocate_gdb_directory): Change to return std::string.
4387 (relocate_gdbinit_path_maybe_in_datadir): Update.
4388 (captured_main_1): Update.
4389 * python/python.c (do_start_initialization): Update.
4390 * top.c (show_gdb_datadir): Update.
4391 * xml-syscall.c (xml_init_syscalls_info): Update.
4392 (init_syscalls_info): Update.
4394 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4396 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4397 out of get_init_files.
4398 (get_init_files): Update.
4400 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4402 * main.c (get_init_files): Change to use std::string.
4403 (captured_main_1): Update.
4404 (print_gdb_help): Update.
4406 2019-09-11 Ali Tamur <tamur@google.com>
4408 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4411 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4413 * dbxread.c (read_dbx_symtab): Update.
4414 * dwarf2read.c (load_partial_dies): Update.
4415 * mdebugread.c (parse_partial_symbols): Update.
4416 (handle_psymbol_enumerators): Update.
4417 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4418 * psymtab.c (add_psymbol_to_bcache): Likewise.
4419 (add_psymbol_to_list): Likewise.
4420 * symtab.c (symbol_set_names): Likewise.
4421 * symtab.h (symbol_set_names): Likewise.
4422 * xcoffread.c (scan_xcoff_symtab): Update.
4424 2019-09-11 Tom Tromey <tom@tromey.com>
4426 * symfile-mem.c (symbol_file_add_from_memory): Use
4428 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4429 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4431 2019-09-10 Tom Tromey <tromey@adacore.com>
4433 * dwarf-index-write.c (write_psymbols): Extend error message.
4434 (debug_names::insert): Add Ada code.
4435 (debug_names::write_psymbols): Remove Ada check.
4436 (debug_names) <m_string_obstack>: New member.
4437 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4438 (gdb_index_symbol_name_matcher::matches): Remove.
4439 (mapped_index_base::find_name_components_bounds): Add "lang"
4441 (mapped_index_base::build_name_components): Also split names
4442 according to Ada syntax.
4443 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4444 type of "match_callback".
4445 (check_match, check_find_bounds_finds)
4446 (dw2_expand_symtabs_matching): Update.
4447 (dw2_debug_names_iterator): Add new constructor.
4448 (dw2_debug_names_map_matching_symbols): New function.
4449 (dw2_debug_names_expand_symtabs_matching): Update.
4450 (dwarf2_debug_names_functions): Use
4451 dw2_debug_names_map_matching_symbols.
4453 2019-09-10 Tom Tromey <tromey@adacore.com>
4455 * dwarf2read.c (dw2_get_file_names_reader): Add the
4456 CU's file name to the results.
4458 2019-09-10 Tom Tromey <tromey@adacore.com>
4460 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4461 map_matching_symbols. Update.
4462 * dwarf2read.c (dw2_map_matching_symbols): Update.
4463 * psymtab.c (match_partial_symbol): Change type; update.
4464 (psym_map_matching_symbols): Likewise.
4465 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4467 * symfile.h (struct quick_symbol_functions)
4468 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4471 2019-09-10 Tom Tromey <tromey@adacore.com>
4473 * psymtab.c (map_block): Remove.
4474 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4475 * symtab.c (iterate_over_symbols_terminated): New function.
4476 * symtab.c (iterate_over_symbols_terminated): Declare.
4478 2019-09-10 Tom Tromey <tromey@adacore.com>
4480 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4481 * language.h (struct language_defn) <la_iterate_over_symbols>:
4483 * symtab.c (iterate_over_symbols): Return bool.
4484 * symtab.h (iterate_over_symbols): Return bool.
4486 2019-09-10 Tom Tromey <tromey@adacore.com>
4488 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4489 (add_nonlocal_symbols): Update.
4490 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4491 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4492 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4493 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4494 Change type of "callback". Remove "data".
4497 2019-09-09 Ali Tamur <tamur@google.com>
4499 * dwarf2read.c (comp_unit_head): Update comment.
4500 (dwarf2_dwo_name): New function declaration.
4501 (dwarf_unit_type_name): New function declaration.
4502 (read_comp_unit_head): Add support for new compilation units,
4503 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4504 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4505 (currently named as "signature") in their header. Also clarify error
4507 (lookup_dwo_id): New function. Returns the dwo id of the given
4509 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4510 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4512 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4513 (dwarf2_dwo_name): Get the dwo name if present.
4514 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4517 2019-09-09 Tom Tromey <tom@tromey.com>
4519 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4521 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4523 * python/python.c (do_start_initialization): Make progname_copy static,
4524 to avoid a leak report.
4526 2019-09-08 Tom Tromey <tom@tromey.com>
4528 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4530 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4532 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4533 Change type to gdb::optional<block_enum>.
4534 (dw2_symtab_iter_init): Change block_index parameter type
4535 to gdb::optional<block_enum>.
4536 (dw2_lookup_symbol): Change block_index parameter
4537 type to block_enum.c
4538 (dw2_debug_names_lookup_symbol): Likewise.
4539 * psymtab.c (psym_lookup_symbol): Likewise.
4540 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4541 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4544 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4546 * defs.h (relocate_gdb_directory): Change int to bool in
4547 signature and rename flag to relocatable.
4548 * main.c (relocate_path): Likewise.
4549 (relocate_gdb_directory): Likewise.
4551 2019-09-06 Alan Modra <amodra@gmail.com>
4553 * coffread.c (coff_symfile_read): Constify filename variable.
4554 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4555 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4556 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4557 * solib.c (reload_shared_libraries_1): Likewise.
4558 * symfile.c (reread_symbols): Likewise.
4559 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4560 * solib-darwin.c (darwin_bfd_open): Likewise.
4561 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4563 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4565 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4566 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4568 2019-09-03 Tom Tromey <tromey@adacore.com>
4570 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4572 (has_negatives): Unbias a range type bound.
4573 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4574 * gdbtypes.c (operator==): Handle new field.
4575 (create_range_type): Add "bias" parameter.
4576 (create_static_range_type, resolve_dynamic_range): Update.
4577 * gdbtypes.h (struct range_bounds) <bias>: New member.
4578 (create_range_type): Add bias parameter.
4579 * printcmd.c (print_scalar_formatted): Unbias range types.
4580 * value.c (unpack_long): Unbias range types.
4581 (pack_long): Bias range types.
4583 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4585 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4588 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4590 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4591 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4592 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4593 (compile_probe_arg): Likewise.
4594 * probe.h (get_argument_count): Likewise.
4595 * solib-svr4.c (solib_event_probe_action): Likewise.
4596 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4598 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4600 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4602 (svr4_create_solib_event_breakpoints): ...from here.
4604 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4606 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4607 suffix from warning message.
4609 2019-08-30 Tom Tromey <tom@tromey.com>
4611 * tui/tui-winsource.h (struct tui_source_window_base)
4612 <refresh_all>: Don't declare.
4613 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4615 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4616 tui_show_locator_content.
4617 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4619 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4620 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4623 2019-08-30 Tom Tromey <tom@tromey.com>
4625 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4627 2019-08-30 Tom Tromey <tom@tromey.com>
4629 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4630 Remove unnecessary forward declarations.
4632 2019-08-30 Tom Tromey <tom@tromey.com>
4634 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4636 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4637 tui_show_locator_content.
4639 2019-08-30 Tom Tromey <tom@tromey.com>
4641 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4642 (tui_locator_window::rerender): Rewrite using body of previous
4643 tui_show_locator_content.
4645 2019-08-30 Tom Tromey <tom@tromey.com>
4647 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4648 set_locator_fullname>: New methods.
4649 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4650 Rename from tui_set_locator_fullname.
4651 (tui_locator_window::set_locator_info): Rename from
4652 tui_set_locator_info. Return bool.
4653 (tui_update_locator_fullname, tui_show_frame_info): Update.
4655 2019-08-30 Tom Tromey <tom@tromey.com>
4657 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4659 2019-08-30 Tom Tromey <tom@tromey.com>
4661 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4664 2019-08-30 Tom Tromey <tom@tromey.com>
4666 * tui/tui-wingeneral.c (box_win): Assume win_info and
4667 win_info->handle cannot be NULL.
4669 2019-08-30 Tom Tromey <tom@tromey.com>
4671 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4672 refresh_window>: Declare.
4673 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4675 (tui_data_item_window::rerender): Rename from
4676 tui_display_register.
4677 (tui_data_item_window::refresh_window): New method.
4678 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4681 2019-08-30 Tom Tromey <tom@tromey.com>
4683 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4684 regs_column_count, current_group>: Move later. Now private.
4685 <get_current_group>: New method.
4686 * tui/tui-regs.c (tui_reg_command): Update.
4687 * tui/tui-layout.c (tui_set_layout): Update.
4689 2019-08-30 Tom Tromey <tom@tromey.com>
4691 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4692 (tui_data_window::rerender): Don't call
4693 check_and_display_highlight_if_needed.
4694 (tui_data_window::refresh_all): Remove call to
4697 2019-08-30 Tom Tromey <tom@tromey.com>
4699 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4700 (tui_data_window::display_registers_from)
4701 (tui_data_window::display_reg_element_at_line)
4702 (tui_data_window::display_registers_from_line): Remove checks of
4705 2019-08-30 Tom Tromey <tom@tromey.com>
4707 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4709 * tui/tui-regs.c (tui_data_window::show_registers): Call
4711 (tui_data_window::rerender): Rename from display_all_data.
4712 (tui_data_window::rerender): Remove old implementation.
4714 2019-08-30 Tom Tromey <tom@tromey.com>
4716 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4718 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4720 2019-08-29 Bernhard Wodok <barto@gmx.net>
4721 Sergio Durigan Junior <sergiodj@redhat.com>
4724 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4726 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4728 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4729 when searching for types.
4731 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4733 * f-lang.c (f_language_defn): Use f_print_typedef.
4734 * f-lang.h (f_print_typedef): Declare.
4735 * f-typeprint.c (f_print_typedef): Define.
4737 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4739 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4741 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4743 * cli/cli-utils.c (info_print_options_defs): Delete.
4744 (make_info_print_options_def_group): Delete.
4745 (extract_info_print_options): Delete.
4746 (info_print_command_completer): Delete.
4747 (info_print_args_help): Add extra parameter, and optionally
4748 include text about -n flag.
4749 * cli/cli-utils.h (struct info_print_options): Delete.
4750 (extract_info_print_options): Delete declaration.
4751 (info_print_command_completer): Delete declaration.
4752 (info_print_args_help): Add extra parameter, extend header
4754 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4756 * stack.c (struct info_print_options): New type.
4757 (info_print_options_defs): New file scoped variable.
4758 (make_info_print_options_def_group): New static function.
4759 (info_print_command_completer): New static function.
4760 (info_locals_command): Update to use new local functions.
4761 (info_args_command): Likewise.
4762 (_initialize_stack): Add extra parameter to calls to
4763 info_print_args_help.
4764 * symtab.c (search_symbols): Add extra parameter, use this to
4765 possibly excluse non-debug symbols.
4766 (symtab_symbol_info): Add extra parameter, which is passed on to
4768 (struct info_print_options): New type.
4769 (info_print_options_defs): New file scoped variable.
4770 (make_info_print_options_def_group): New static function.
4771 (info_print_command_completer): New static function.
4772 (info_variables_command): Update to use local functions, and pass
4773 extra parameter through to symtab_symbol_info.
4774 (info_functions_command): Likewise.
4775 (info_types_command): Pass additional argument through to
4777 (rbreak_command): Pass extra argument to search_symbols.
4778 (_initialize_symtab): Add extra arguments for calls to
4779 info_print_args_help, and update help text for 'info variables',
4780 'whereis', and 'info functions' commands.
4781 * symtab.h (search_symbols): Add extra argument to declaration.
4782 * NEWS: Mention new flags.
4784 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4786 * symtab.c (lookup_static_symbol): Call the new function (and move
4787 it down to be next to lookup_global_symbol).
4788 (struct global_sym_lookup_data): Add block_enum member and rename to...
4789 (struct global_or_static_sym_lookup_data): ...this.
4790 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4791 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4792 (lookup_symbol_global_or_static_iterator_cb): ...this.
4793 (lookup_global_or_static_symbol): New function.
4794 (lookup_global_symbol): Call new function.
4796 2019-08-26 Tom de Vries <tdevries@suse.de>
4799 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4800 when pc_probe.prob == NULL.
4802 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4804 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4805 variable symbol_linkage to symbol_linkage_.
4807 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4809 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4810 represent whether the symbol is static, dynamic, or we don't
4813 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4815 * gdb/rx-tdep.c (rx_register_names): New.
4816 (rx_register_name): Delete.
4817 (rx_psw_type): Delete.
4818 (rx_fpsw_type): Delete.
4819 (rx_register_type): Delete.
4820 (rx_gdbarch_init): Convert target-descriptions.
4821 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4822 * gdb/features/Makefile: Add rx.xml.
4823 * gdb/features/rx.xml: New.
4824 * gdb/features/rx.c: Generated.
4825 * gdb/NEWS: Mention target description support.
4827 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4829 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4832 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4834 * configure.ac: Don't check for 'dlfcn.h' (moved to
4835 gdbsupport/common.m4).
4836 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4838 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4839 * compile/compile-c-support.c: Include
4840 'gdbsupport/gdb-dlfcn.h'.
4841 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4842 * gdb-dlfcn.c: Move to...
4843 * gdbsupport/gdb-dlfcn.c: ... here.
4844 * gdb-dlfcn.h: Move to...
4845 * gdbsupport/gdb-dlfcn.h: ... here.
4847 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4849 * nios2-tdep.c (struct reg_value): Improve comments. Make
4850 the offset field signed.
4852 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4854 * python/lib/gdb/__init__.py (_execute_file): New function.
4855 * python/python.c (python_run_simple_file): Call gdb._execute_file
4858 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4860 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4861 all uses as this was never set to anything but a zero value.
4863 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4865 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4867 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4869 * tui/tui-data.h (tui_gen_win_info): Add an =default
4870 move constructor, required by some GCC versions.
4872 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4874 * go32-nat.c (go32_sysinfo): Add hygon_p.
4876 2019-08-20 Tom Tromey <tom@tromey.com>
4878 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4879 line_from_reg_element_no, first_reg_element_no_inline,
4880 display_all_data, delete_data_content_windows,
4881 erase_data_content>: Now private.
4883 2019-08-20 Tom Tromey <tom@tromey.com>
4885 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4886 (tui_unhighlight_win, tui_highlight_win)
4887 (tui_win_info::make_window): Update.
4888 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4890 2019-08-20 Tom Tromey <tom@tromey.com>
4892 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4893 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4894 (MAX_PID_WIDTH): Move to tui-stack.c.
4895 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4896 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4897 (MAX_PID_WIDTH): Move from tui-data.h.
4899 2019-08-20 Tom Tromey <tom@tromey.com>
4901 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4902 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4904 (tui_gen_win_info::make_window): Rename from tui_make_window.
4905 (tui_win_info::make_window): New method.
4906 (tui_gen_win_info::make_visible): Update.
4907 * tui/tui-source.c (tui_source_window::set_contents): Update.
4908 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4909 (tui_data_window::display_registers_from): Update.
4910 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4911 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4915 (struct tui_win_info) <make_window>: Declare.
4916 <can_box>: Now virtual.
4917 <title>: New member.
4918 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4919 * tui/tui-command.c (tui_cmd_window::resize): Update.
4921 2019-08-20 Tom Tromey <tom@tromey.com>
4923 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4924 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4925 (tui_data_window::check_register_values): Update.
4927 2019-08-20 Tom Tromey <tom@tromey.com>
4929 * tui/tui-regs.h (struct tui_data_window): Use
4930 DISABLE_COPY_AND_ASSIGN.
4931 <regs_content>: Change type, removing unique_ptr.
4932 <tui_data_window>: Add move constructor.
4933 * tui/tui-regs.c (tui_data_window::show_registers)
4934 (tui_data_window::show_register_group)
4935 (tui_data_window::display_registers_from)
4936 (tui_data_window::display_registers_from)
4937 (tui_data_window::first_data_item_displayed)
4938 (tui_data_window::delete_data_content_windows)
4939 (tui_data_window::rerender, tui_data_window::refresh_window)
4940 (tui_data_window::check_register_values): Update.
4942 2019-08-20 Tom Tromey <tom@tromey.com>
4944 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4945 show_register_group>: Declare.
4946 (tui_show_register_group): Don't declare.
4947 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4949 (tui_data_window::show_register_group): Rename from
4950 tui_show_register_group.
4951 (tui_data_window::check_register_values, tui_reg_command):
4953 * tui/tui-layout.c (tui_set_layout): Update.
4955 2019-08-20 Tom Tromey <tom@tromey.com>
4957 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4959 (tui_check_register_values): Don't declare.
4960 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4961 from tui_check_register_values.
4962 * tui/tui-hooks.c (tui_register_changed): Update.
4964 2019-08-20 Tom Tromey <tom@tromey.com>
4966 * tui/tui-regs.c (tui_reg_layout): Move later.
4967 (tui_show_registers): Don't enable TUI mode or change layout.
4969 2019-08-20 Tom Tromey <tom@tromey.com>
4971 * tui/tui-regs.h (struct tui_data_item_window)
4972 <~tui_data_item_window>: Remove.
4973 <content>: Now a unique_xmalloc_ptr.
4974 * tui/tui-regs.c (tui_register_format): Return a
4976 (tui_get_register): Update.
4977 (~tui_data_item_window): Remove.
4978 (tui_data_window::display_registers_from, tui_display_register):
4980 * tui/tui-io.h (tui_expand_tabs): Update.
4981 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4982 Remove "col" parameter.
4984 2019-08-20 Tom Tromey <tom@tromey.com>
4986 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4988 * tui/tui-regs.c (~tui_data_item_window): Update.
4990 2019-08-20 Tom Tromey <tom@tromey.com>
4992 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4995 2019-08-20 Tom Tromey <tom@tromey.com>
4997 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4999 2019-08-20 Tom Tromey <tom@tromey.com>
5001 * tui/tui-source.h (struct tui_source_window): Update.
5002 * tui/tui-regs.c (tui_show_registers): Update.
5003 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5004 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5005 (NO_REGS_STRING): Remove defines.
5007 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5009 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5010 unnecessary thread walk if remote doesn't support the packet.
5012 2019-08-19 Tom Tromey <tromey@adacore.com>
5014 * python/py-value.c (value_has_field): Fix indentation.
5016 2019-08-19 Tom Tromey <tromey@adacore.com>
5018 * printcmd.c (do_one_display, info_display_command): Update.
5019 * block.h (contained_in): Return bool. Add allow_nested
5021 * block.c (contained_in): Return bool. Add allow_nested
5024 2019-08-19 Tom Tromey <tom@tromey.com>
5026 * configure: Rebuild.
5027 * configure.ac: Disallow the combination of -static-libstdc++ and
5029 * source-cache.c (get_language_name): Handle rust.
5030 (source_cache::get_source_lines): Ignore highlighting exceptions.
5032 2019-08-16 Tom Tromey <tom@tromey.com>
5034 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5035 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5036 (struct tui_source_window_base) <make_visible, refresh_window,
5037 resize>: Remove methods.
5038 <execution_info>: Remove field.
5039 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5040 (tui_show_source_line, tui_source_window_base)
5041 (~tui_source_window_base): Update.
5042 (tui_source_window_base::resize)
5043 (tui_source_window_base::make_visible)
5044 (tui_source_window_base::refresh_window): Remove.
5045 (tui_source_window_base::update_exec_info): Update.
5046 * tui/tui-source.c (tui_source_window::set_contents): Update.
5047 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5049 2019-08-16 Tom Tromey <tom@tromey.com>
5051 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5052 deprecated_query_hook.
5054 2019-08-16 Tom Tromey <tom@tromey.com>
5056 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5057 (tui_update_source_windows_with_line): Update.
5058 * tui/tui-source.h (struct tui_source_window)
5059 <show_symtab_source>: Declare.
5060 (tui_show_symtab_source): Don't declare.
5061 * tui/tui-source.c (tui_show_symtab_source): Rename from
5062 tui_show_symtab_source.
5064 2019-08-16 Tom Tromey <tom@tromey.com>
5066 * tui/tui-winsource.h (struct tui_source_window_base)
5067 <set_contents>: Declare.
5068 * tui/tui-winsource.c
5069 (tui_source_window_base::update_source_window_as_is): Update.
5070 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5072 (tui_set_source_content): Don't declare.
5073 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5074 tui_set_source_content.
5075 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5077 (tui_set_disassem_content): Don't declare.
5078 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5079 tui_set_disassem_content.
5081 2019-08-16 Tom Tromey <tom@tromey.com>
5083 * tui/tui-winsource.h (struct tui_source_window_base)
5084 <update_breakpoint_info>: Declare.
5085 (tui_update_breakpoint_info): Don't declare.
5086 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5087 (tui_update_all_breakpoint_info): Update.
5088 (tui_source_window_base::update_breakpoint_info): Rename from
5089 tui_update_breakpoint_info.
5090 (tui_source_window_base::update_exec_info): Update.
5092 2019-08-16 Tom Tromey <tom@tromey.com>
5094 * tui/tui-winsource.h (struct tui_source_window_base)
5095 <update_source_window>: Declare.
5096 (tui_update_source_window): Don't declare.
5097 * tui/tui-winsource.c
5098 (tui_source_window_base::update_source_window): Rename from
5099 tui_update_source_window.
5100 (tui_source_window_base::rerender): Update.
5101 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5102 * tui/tui-disasm.c (tui_show_disassem)
5103 (tui_show_disassem_and_update_source)
5104 (tui_disasm_window::maybe_update): Update.
5106 2019-08-16 Tom Tromey <tom@tromey.com>
5108 * tui/tui-winsource.h (struct tui_source_window_base)
5109 <update_source_window_as_is>: Declare.
5110 (tui_update_source_window_as_is): Don't declare.
5111 * tui/tui-winsource.c (tui_update_source_window): Update
5112 (tui_source_window_base::update_source_window_as_is): Rename from
5113 tui_update_source_window_as_is.
5114 (tui_source_window_base::refill): Update.
5115 * tui/tui-source.c (tui_show_symtab_source): Update.
5116 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5119 2019-08-16 Tom Tromey <tom@tromey.com>
5121 * tui/tui-winsource.h (tui_update_source_window)
5122 (tui_update_source_window_as_is): Remove "noerror" parameter.
5123 * tui/tui-winsource.c (tui_update_source_window)
5124 (tui_update_source_window_as_is): Remove "noerror" parameter.
5125 (tui_update_source_windows_with_addr)
5126 (tui_update_source_windows_with_line)
5127 (tui_source_window_base::rerender)
5128 (tui_source_window_base::refill): Update.
5129 * tui/tui-source.h (tui_set_source_content)
5130 (tui_show_symtab_source): Remove "noerror" parameter.
5131 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5133 (tui_show_symtab_source): Likewise.
5134 (tui_source_window::maybe_update): Update.
5135 * tui/tui-disasm.c (tui_show_disassem)
5136 (tui_show_disassem_and_update_source)
5137 (tui_disasm_window::do_scroll_vertical)
5138 (tui_disasm_window::maybe_update): Update.
5140 2019-08-16 Tom Tromey <tom@tromey.com>
5142 * tui/tui.c (tui_is_window_visible): Update.
5143 * tui/tui-wingeneral.c (tui_make_window)
5144 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5145 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5146 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5147 (tui_set_win_height_command, parse_scrolling_args): Update.
5148 * tui/tui-source.c (tui_source_window::style_changed): Update.
5149 * tui/tui-regs.c (tui_show_registers)
5150 (tui_data_window::first_data_item_displayed)
5151 (tui_data_window::delete_data_content_windows)
5152 (tui_check_register_values, tui_reg_command): Update.
5153 * tui/tui-disasm.c (tui_show_disassem): Update.
5154 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5156 <is_visible>: Remove field.
5157 * tui/tui-data.c (tui_next_win, tui_prev_win)
5158 (tui_delete_invisible_windows): Update.
5160 2019-08-16 Tom Tromey <tom@tromey.com>
5162 * tui/tui-winsource.h (struct tui_source_window_base)
5163 <m_has_locator>: Remove.
5164 * tui/tui-layout.c (show_source_disasm_command, show_data)
5165 (show_source_or_disasm_and_command): Update.
5167 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5169 * NEWS (Other MI changes): New subsection.
5170 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5171 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5172 * arch-utils.c (default_get_pc_address_flags): New function.
5173 * arch-utils.h (default_get_pc_address_flags): New declaration.
5174 * gdbarch.sh: Add get_pc_address_flags.
5175 * gdbarch.c: Regenerate.
5176 * gdbarch.h: Likewise.
5177 * stack.c (print_pc): New function.
5178 (print_frame_info) (print_frame): Call print_pc.
5180 2019-08-16 Tom de Vries <tdevries@suse.de>
5182 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5183 print_objfile_section_info.
5185 2019-08-15 Tom Tromey <tom@tromey.com>
5187 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5188 calling update_cmdwin_start_line.
5189 * tui/tui-winsource.h (struct tui_source_window_base)
5190 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5191 <rerender>: Declare.
5192 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5194 (tui_source_window_base::set_new_height): Remove.
5195 (tui_source_window_base::rerender): Rename from
5196 do_make_visible_with_new_height.
5197 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5199 (tui_win_info::make_invisible_and_set_new_height)
5200 (tui_win_info::make_visible_with_new_height): Remove.
5201 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5203 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5204 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5205 do_make_visible_with_new_height>: Don't declare.
5206 <rerender>: Declare.
5207 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5209 (tui_data_window::do_make_visible_with_new_height): Remove.
5210 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5211 call tui_show_locator_content.
5212 (tui_gen_win_info::resize): Call rerender.
5213 (show_source_or_disasm_and_command): Don't call
5214 tui_show_locator_content.
5215 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5217 (struct tui_win_info) <rerender>: Declare.
5218 <set_new_height, make_invisible_and_set_new_height,
5219 make_visible_with_new_height>: Don't declare.
5220 * tui/tui-data.c (tui_win_list::rerender): New method.
5221 * tui/tui-command.h (struct tui_cmd_window)
5222 <do_make_visible_with_new_height>: Don't declare.
5224 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5226 2019-08-15 Tom Tromey <tromey@adacore.com>
5228 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5229 * ada-lang.c (ada_enum_name): Likewise.
5231 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5233 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5235 (GdbOutputErrorFile): Likewise.
5236 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5238 (execute_unwinders): Rename to have a leading underscore.
5239 (auto_load_packages): Likewise.
5240 (global scope): Adjust call to auto_load_packages accordingly.
5241 (GdbSetPythonDirectory): Likewise.
5242 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5243 instead of execute_unwinders.
5245 2019-08-15 Tom Tromey <tom@tromey.com>
5247 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5248 (show_data): Don't change window visibility.
5249 (tui_gen_win_info::resize): Remove special case for command
5250 window. Use wresize, when available.
5251 (show_source_or_disasm_and_command): Don't change window
5253 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5254 <make_visible>: New method.
5255 * tui/tui-command.c (tui_cmd_window::resize): New method.
5257 2019-08-15 Tom Tromey <tom@tromey.com>
5259 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5260 (struct tui_source_windows): New.
5261 * tui/tui-winsource.c (tui_display_main): Update.
5262 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5263 (new_height_ok, parse_scrolling_args): Update.
5264 * tui/tui-layout.c (show_layout, show_data): Update.
5265 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5266 (tui_add_to_source_windows): Don't declare.
5267 * tui/tui-data.c (source_windows, tui_source_windows)
5268 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5270 2019-08-15 Tom Tromey <tom@tromey.com>
5272 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5274 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5275 * tui/tui-layout.c (show_source_disasm_command, show_data):
5277 (tui_gen_win_info::resize): Rename.
5278 (show_source_or_disasm_and_command): Update.
5279 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5282 2019-08-15 Tom Tromey <tom@tromey.com>
5284 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5285 * tui/tui-interp.c (tui_interp::init): Don't call
5286 tui_initialize_static_data.
5287 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5289 2019-08-15 Tom Tromey <tom@tromey.com>
5291 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5292 examine tui_win_list.
5294 2019-08-15 Tom Tromey <tom@tromey.com>
5296 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5297 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5298 tui_clear_source_content.
5299 (tui_clear_source_content): Remove.
5300 (tui_source_window_base::do_erase_source_content): Hoist call to
5302 * tui/tui-stack.c (tui_show_frame_info): Don't call
5303 tui_clear_source_content.
5305 2019-08-15 Tom Tromey <tom@tromey.com>
5307 * tui/tui-winsource.h (struct tui_source_window_base)
5308 <do_erase_source_content>: New method.
5309 <erase_source_content>: New method.
5310 (tui_erase_source_content): Don't declare.
5311 * tui/tui-winsource.c (tui_clear_source_content): Update.
5312 (tui_source_window_base::do_erase_source_content): Rename from
5313 tui_erase_source_content.
5314 (tui_source_window_base::show_source_content): Update.
5315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5316 * tui/tui-source.h (struct tui_source_window)
5317 <erase_source_content>: New method.
5318 * tui/tui-disasm.h (struct tui_disasm_window)
5319 <erase_source_content>: New method.
5321 2019-08-15 Tom Tromey <tom@tromey.com>
5323 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5324 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5326 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5327 * tui/tui-source.c (tui_set_source_content): Update.
5328 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5330 2019-08-15 Tom Tromey <tom@tromey.com>
5332 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5333 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5335 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5337 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5339 (tui_source_window::maybe_update): Update.
5341 2019-08-15 Tom Tromey <tom@tromey.com>
5343 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5344 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5346 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5348 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5350 (tui_disasm_window::maybe_update): Update.
5352 2019-08-15 Tom Tromey <tom@tromey.com>
5354 * tui/tui-winsource.h (struct tui_source_window_base)
5355 <maybe_update>: Declare.
5356 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5358 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5360 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5361 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5363 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5365 2019-08-15 Tom Tromey <tom@tromey.com>
5367 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5369 2019-08-15 Tom Tromey <tom@tromey.com>
5371 * tui/tui-wingeneral.c: Include tui-stack.h.
5372 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5373 (struct tui_locator_window): Move from tui-data.h.
5374 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5375 (tui_initialize_static_data): Move from tui-data.c.
5376 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5377 (struct tui_locator_window): Move to tui-stack.c.
5378 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5379 (tui_initialize_static_data): Move to tui-stack.c.
5381 2019-08-15 Tom Tromey <tom@tromey.com>
5383 * tui/tui-layout.c (show_source_disasm_command)
5384 (show_source_or_disasm_and_command): Use make_visible method, not
5386 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5389 2019-08-15 Tom Tromey <tom@tromey.com>
5391 * tui/tui-wingeneral.h (tui_make_window): Update.
5392 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5394 (tui_gen_win_info::make_visible): Update.
5395 * tui/tui-regs.c (tui_data_window::display_registers_from):
5397 * tui/tui-layout.c (show_source_disasm_command)
5398 (show_source_or_disasm_and_command): Update.
5399 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5400 (enum tui_box): Remove.
5401 (struct tui_win_info) <can_box>: New method.
5402 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5405 2019-08-15 Tom de Vries <tdevries@suse.de>
5407 * linux-nat-trad.c: Include gdbarch.h.
5409 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5411 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5414 2019-08-14 Tom Tromey <tromey@adacore.com>
5416 * darwin-nat.c: Include gdbarch.h.
5417 * darwin-nat-info.c: Include gdbarch.h.
5419 2019-08-13 Tom Tromey <tom@tromey.com>
5421 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5423 * tui/tui-data.c (tui_initialize_static_data): Update.
5425 2019-08-13 Tom Tromey <tom@tromey.com>
5427 * tui/tui-winsource.h (struct tui_exec_info_window)
5428 <~tui_exec_info_window, maybe_allocate_content, get_content,
5430 (struct tui_source_window_base) <set_exec_info_content,
5431 show_exec_info_content>: Don't declare.
5432 * tui/tui-winsource.c
5433 (tui_exec_info_window::maybe_allocate_content): Remove.
5434 (tui_source_window_base::update_exec_info): Rename from
5435 set_exec_info_content.
5436 (tui_source_window_base::show_exec_info_content)
5437 (tui_source_window_base::update_exec_info): Remove.
5439 2019-08-13 Tom Tromey <tom@tromey.com>
5441 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5443 * tui/tui-winsource.c (tui_update_source_window_as_is)
5444 (tui_update_source_windows_with_addr, tui_erase_source_content):
5446 (tui_clear_exec_info_content): Remove.
5448 2019-08-13 Tom Tromey <tom@tromey.com>
5450 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5452 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5453 call tui_erase_exec_info_content.
5454 (tui_clear_exec_info_content): Rename from
5455 tui_erase_exec_info_content.
5456 (tui_clear_exec_info_content): Delete.
5458 2019-08-13 Tom Tromey <tom@tromey.com>
5460 * tui/tui-winsource.h (struct tui_source_window_base)
5461 <show_exec_info_content>: Declare.
5462 (tui_show_exec_info_content): Don't declare.
5463 * tui/tui-winsource.c
5464 (tui_source_window_base::show_exec_info_content): Rename from
5465 tui_show_exec_info_content.
5466 (tui_source_window_base::update_exec_info): Update.
5468 2019-08-13 Tom Tromey <tom@tromey.com>
5470 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5471 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5472 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5473 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5474 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5475 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5478 2019-08-13 Tom Tromey <tom@tromey.com>
5480 * tui/tui-winsource.h (struct tui_source_window_base)
5481 <update_exec_info>: Declare.
5482 (tui_update_exec_info): Don't declare.
5483 * tui/tui-winsource.c (tui_update_source_window_as_is)
5484 (tui_source_window_base::refresh_all)
5485 (tui_update_all_breakpoint_info): Update.
5486 (tui_source_window_base::update_exec_info): Rename from
5487 tui_update_exec_info.
5488 * tui/tui-stack.c (tui_show_frame_info): Update.
5490 2019-08-13 Tom Tromey <tom@tromey.com>
5492 * tui/tui-winsource.h (struct tui_source_window_base)
5493 <set_exec_info_content>: Declare.
5494 (tui_set_exec_info_content): Don't declare.
5495 * tui/tui-winsource.c
5496 (tui_source_window_base::set_exec_info_content): Rename from
5497 tui_set_exec_info_content.
5498 (tui_update_exec_info): Update.
5500 2019-08-13 Tom Tromey <tom@tromey.com>
5502 * tui/tui-winsource.h (struct tui_source_window_base)
5503 <show_source_content>: Declare.
5504 (tui_show_source_content): Don't declare.
5505 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5506 (tui_source_window_base::show_source_content): Rename from
5507 tui_show_source_content.
5508 (tui_source_window_base::refresh_all): Update.
5509 * tui/tui-layout.c (show_source_disasm_command)
5510 (show_source_or_disasm_and_command): Update.
5512 2019-08-13 Tom Tromey <tom@tromey.com>
5514 * tui/tui-winsource.c (tui_erase_source_content)
5515 (tui_show_source_content, tui_source_window_base::refresh_all):
5517 * tui/tui-wingeneral.h
5518 (tui_check_and_display_highlight_if_needed): Don't declare.
5519 * tui/tui-wingeneral.c
5520 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5521 check_and_display_highlight_if_needed.
5522 * tui/tui-win.c (tui_rehighlight_all)
5523 (tui_win_info::make_visible_with_new_height): Update.
5524 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5525 (tui_data_window::erase_data_content)
5526 (tui_data_window::display_all_data): Update.
5527 * tui/tui-data.h (struct tui_win_info)
5528 <check_and_display_highlight_if_needed>: Declare.
5530 2019-08-13 Tom Tromey <tom@tromey.com>
5532 * tui/tui-win.c (tui_resize_all): Call
5533 tui_delete_invisible_windows.
5534 * tui/tui-layout.c (show_layout): Call
5535 tui_delete_invisible_windows.
5536 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5537 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5539 2019-08-13 Tom Tromey <tom@tromey.com>
5541 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5542 tui_add_win_to_layout.
5544 2019-08-13 Tom Tromey <tom@tromey.com>
5546 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5547 * tui/tui-layout.c (tui_default_win_height): Now static.
5549 2019-08-13 Tom Tromey <tom@tromey.com>
5551 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5553 (show_source_disasm_command, show_source_or_disasm_and_command):
5554 Don't check current layout.
5556 2019-08-13 Tom Tromey <tom@tromey.com>
5558 * tui/tui-wingeneral.c (make_all_visible): Remove.
5559 (tui_make_all_invisible): Simplify.
5560 * tui/tui-layout.c (tui_make_all_invisible): Move from
5561 tui-wingeneral.c; simplify.
5562 (show_layout): Hoist call to tui_make_all_invisible.
5563 (show_data): Don't call tui_make_all_invisible.
5565 2019-08-13 Tom Tromey <tom@tromey.com>
5567 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5568 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5570 2019-08-13 Tom Tromey <tom@tromey.com>
5572 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5574 (show_source_disasm_command, show_data)
5575 (show_source_or_disasm_and_command): Don't use
5576 tui_set_current_layout_to.
5577 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5578 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5580 (tui_set_current_layout_to): Remove.
5582 2019-08-13 Tom Tromey <tom@tromey.com>
5584 * tui/tui-layout.c (tui_set_layout): Update.
5585 * tui/tui-data.h (struct tui_layout_def): Remove.
5586 (tui_layout_def): Don't declare.
5587 * tui/tui-data.c (layout_def): Remove.
5588 (tui_layout_def): Remove.
5590 2019-08-13 Tom Tromey <tom@tromey.com>
5592 * tui/tui-winsource.h (struct tui_source_window_base)
5593 <clear_detail>: No longer "override".
5594 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5595 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5596 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5597 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5599 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5601 2019-08-13 Tom Tromey <tromey@adacore.com>
5603 * tracepoint.c: Don't include readline.h or history.h.
5605 2019-08-12 Tom Tromey <tom@tromey.com>
5607 * configure: Rebuild.
5608 * configure.ac: Check for readline 7.
5609 * NEWS: Mention readline 7 requirement.
5612 2019-08-12 Tom Tromey <tom@tromey.com>
5614 * mingw-hdep.c (gdb_select): Remove readline hack.
5616 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5618 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5619 when the function fails.
5621 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5623 * s390-tdep.c (s390_type_align): New function.
5624 (s390_gdbarch_init): Set it as type_align gdbarch method.
5626 2019-08-09 Tom de Vries <tdevries@suse.de>
5629 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5630 pc_low with relocation offset.
5632 2019-08-07 Tom Tromey <tromey@adacore.com>
5634 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5635 (print_frame_args): Update.
5636 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5638 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5639 * frame.h (struct frame_arg): Add initializers.
5640 <error>: Now a unique_xmalloc_ptr.
5642 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5644 * NEWS: Expand the Pointer Authentication entry.
5645 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5646 (aarch64_frame_unmask_lr): ... to this.
5647 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5648 Call aarch64_frame_unmask_lr.
5649 * frame.c (struct frame_info): Add "masked" variable.
5650 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5651 (fprint_frame): Check for masked pc.
5652 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5654 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5655 * stack.c (print_frame): Check for masked pc.
5657 2019-08-06 Tom Tromey <tom@tromey.com>
5659 * stabsread.c (patch_block_stabs, read_one_struct_field)
5660 (read_enum_type): Use obstack_strndup.
5661 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5662 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5663 * dwarf2read.c (guess_full_die_structure_name)
5664 (anonymous_struct_prefix): Use obstack_strndup.
5665 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5666 * c-exp.y (yylex): Use obstack_strndup.
5667 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5668 (write_var_or_type): Use obstack_strndup.
5670 2019-08-06 Tom Tromey <tom@tromey.com>
5672 * symfile.c (reread_symbols): Use obstack_strdup.
5673 * stabsread.c (read_type): Use obstack_strdup.
5674 * gdb_obstack.h (obstack_strdup): New overload.
5675 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5676 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5677 (dwarf2_canonicalize_name): Use obstack_strdup.
5678 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5679 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5682 2019-08-06 Tom Tromey <tom@tromey.com>
5684 * gdb_obstack.h (obstack_strdup): Define.
5685 * gdb_obstack.c (obstack_strdup): Don't define.
5687 2019-08-06 Tom Tromey <tom@tromey.com>
5689 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5691 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5693 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5694 * stabsread.c (common_block_start): Use obstack_strdup.
5695 * objfiles.c (set_objfile_main_name, objfile): Use
5697 * namespace.c (add_using_directive): Use obstack_strdup.
5698 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5699 * jit.c (finalize_symtab): Use obstack_strdup.
5700 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5701 (guess_partial_die_structure_name, partial_die_info::fixup)
5702 (dwarf2_name): Use obstack_strdup.
5703 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5705 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5706 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5708 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5710 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5712 * unittests/help-doc-selftests.c: New file.
5713 * Makefile.in: Add the new file.
5715 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5717 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5718 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5719 the full first line, except when FOR_VALUE_PREFIX. In this case,
5720 the trailing '.' is not output, and the first character is uppercased.
5721 (print_help_for_command): Update call to print_doc_line.
5722 (print_doc_of_command): Likewise.
5723 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5724 * cli/cli-option.c (append_indented_doc): Do not append newline.
5725 (build_help_option): Append newline after first appended_indented_doc
5726 only if a second call is done.
5727 (build_help): Append 2 new lines before each option, except the first
5729 * compile/compile.c (_initialize_compile): Add new lines after
5730 %OPTIONS%, when not at the end of the help.
5731 Change help doc or code
5732 producing the help doc to respect the invariants.
5733 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5734 Also removed the new line after 'Options:', as all other commands
5735 do not put an empty line between 'Options:' and the first option.
5736 * printcmd.c (_initialize_printcmd): Likewise.
5737 * stack.c (_initialize_stack): Likewise.
5738 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5739 incorrectly telling COMMAND is optional.
5740 * ada-lang.c (_initialize_ada_language): Change help doc or code
5741 producing the help doc to respect the invariants.
5742 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5743 * breakpoint.c (_initialize_breakpoint): Likewise.
5744 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5745 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5746 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5747 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5748 _initialize_cli_style): Likewise.
5749 * corelow.c (core_target_info): Likewise.
5750 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5751 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5752 * filesystem.c (_initialize_filesystem): Likewise.
5753 * frame.c (_initialize_frame): Likewise.
5754 * gnu-nat.c (add_task_commands): Likewise.
5755 * infcall.c (_initialize_infcall): Likewise.
5756 * infcmd.c (_initialize_infcmd): Likewise.
5757 * interps.c (_initialize_interpreter): Likewise.
5758 * language.c (_initialize_language): Likewise.
5759 * linux-fork.c (_initialize_linux_fork): Likewise.
5760 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5761 * maint.c (_initialize_maint_cmds): Likewise.
5762 * memattr.c (_initialize_mem): Likewise.
5763 * printcmd.c (_initialize_printcmd): Likewise.
5764 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5766 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5767 * record-btrace.c (_initialize_record_btrace): Likewise.
5768 * record-full.c (_initialize_record_full): Likewise.
5769 * record.c (_initialize_record): Likewise.
5770 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5771 * regcache.c (_initialize_regcache): Likewise.
5772 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5773 _initialize_remote): Likewise.
5774 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5775 * serial.c (_initialize_serial): Likewise.
5776 * skip.c (_initialize_step_skip): Likewise.
5777 * source.c (_initialize_source): Likewise.
5778 * stack.c (_initialize_stack): Likewise.
5779 * symfile.c (_initialize_symfile): Likewise.
5780 * symtab.c (_initialize_symtab): Likewise.
5781 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5782 * top.c (init_main): Likewise.
5783 * tracefile-tfile.c (tfile_target_info): Likewise.
5784 * tracepoint.c (_initialize_tracepoint): Likewise.
5785 * tui/tui-win.c (_initialize_tui_win): Likewise.
5786 * utils.c (add_internal_problem_command): Likewise.
5787 * valprint.c (value_print_option_defs): Likewise.
5789 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5792 * configure.ac: Drop enable-libmcheck support.
5793 * configure, config.in: Rebuild.
5794 * libmcheck.m4: Remove.
5795 * acinclude.m4: Don't include it.
5796 * Makefile.in: Don't distribute it.
5797 * top.c (print_gdb_configuration): Don't mention it.
5799 2019-08-06 Tom Tromey <tom@tromey.com>
5801 * utils.c (set_output_style): Sometimes pass stream to
5803 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5804 * record-btrace.c (btrace_insn_history): Update.
5805 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5807 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5808 Update initializers.
5809 <m_uiout>: New field.
5811 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5812 Remove "uiout" parameter.
5813 (dump_insns): Update.
5814 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5815 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5817 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5819 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5820 (error_in_psymtab_expansion): Likewise.
5821 (lookup_symbol_via_quick_fns): Likewise.
5822 (basic_lookup_transparent_type_quick): Likewise.
5823 (basic_lookup_transparent_type_1): Likewise.
5825 2019-08-06 Tom Tromey <tromey@adacore.com>
5827 * source.c (last_source_error): Now bool.
5828 (print_source_lines_base): Make "noprint" bool. Only open
5829 source file when last_source_visited changes.
5831 2019-08-06 Tom Tromey <tromey@adacore.com>
5833 * annotate.c (annotate_source_line): Use g_source_cache.
5834 * source-cache.c (source_cache::get_plain_source_lines): Change
5835 parameters. Populate m_offset_cache.
5836 (source_cache::ensure): New method.
5837 (source_cache::get_line_charpos): New method.
5838 (extract_lines): Move lower. Change parameters.
5839 (source_cache::get_source_lines): Move lower.
5840 * source-cache.h (class source_cache): Update comment.
5841 <get_line_charpos>: New method.
5842 <get_source_lines>: Update comment.
5843 <clear>: Clear m_offset_cache.
5844 <get_plain_source_lines>: Change parameters.
5845 <ensure>: New method
5846 <m_offset_cache>: New member.
5847 * source.c (forget_cached_source_info_for_objfile): Update.
5848 (info_source_command): Use g_source_cache.
5849 (find_source_lines, open_source_file_with_line_charpos): Remove.
5850 (print_source_lines_base, search_command_helper): Use g_source_cache.
5851 * source.h (open_source_file_with_line_charpos): Don't declare.
5852 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5853 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5856 2019-08-06 Tom Tromey <tromey@adacore.com>
5858 * source-cache.c (source_cache::get_plain_source_lines):
5859 Remove "first_line" and "last_line" parameters.
5860 (source_cache::get_source_lines): Cache plain text.
5861 * source-cache.h (class source_cache)
5862 <get_plain_source_lines>: Update.
5864 2019-08-06 Tom Tromey <tromey@adacore.com>
5866 * source-cache.c (extract_lines): No longer a method.
5867 Changed type of parameter. Include final newline.
5868 (selftests::extract_lines_test): New function.
5869 (_initialize_source_cache): Likewise.
5870 * source-cache.h (class source_cache)
5871 <extract_lines>: Don't declare.
5873 2019-08-06 Tom Tromey <tromey@adacore.com>
5875 * breakpoint.c (init_breakpoint_sal): Update.
5876 (breakpoint): Update.
5877 * breakpoint.h (struct breakpoint) <filter>: Now a
5880 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5882 * NEWS: Mention dictionary access on blocks.
5883 * python/py-block.c (blpy_getitem): New function.
5884 (block_object_as_mapping): New struct.
5885 (block_object_type): Use new struct for tp_as_mapping field.
5887 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5889 * objfiles.h (objfile): Add a comment describing partial symbols.
5891 2019-08-05 Tom Tromey <tromey@adacore.com>
5893 * compile/compile.c (_initialize_compile): Use _(), not N_().
5894 * thread.c (_initialize_thread): Use _(), not N_().
5895 * stack.c (_initialize_stack): Use _(), not N_().
5896 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5898 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5900 * dwarf2read.c (struct dw2_symtab_iterator):
5901 <want_specific_block>: Remove.
5902 <block_index>: Change type to gdb::optional.
5903 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5904 change type of BLOCK_INDEX parameter to gdb::optional.
5905 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5906 (dw2_lookup_symbol): Don't pass argument for
5907 WANT_SPECIFIC_BLOCK.
5908 (dw2_expand_symtabs_for_function): Don't pass argument for
5909 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5910 (class dw2_debug_names_iterator)
5911 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5912 parameter, change BLOCK_INDEX type to gdb::optional.
5913 <m_want_specific_block>: Remove.
5914 <m_block_index>: Change type to gdb::optional.
5915 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5916 gdb::optional. Re-write in function of gdb::optional.
5917 (dw2_debug_names_lookup_symbol): Don't pass argument for
5918 WANT_SPECIFIC_BLOCK.
5919 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5920 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5923 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5925 * NEWS: Mention changes to "info sources" command.
5927 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5929 * symtab.c (filename_partial_match_opts): New struct type.
5930 (struct output_source_filename_data): New members
5931 regexp, c_regexp, partial_match.
5932 (output_source_filename): Use new members to decide to print file.
5933 (info_sources_option_defs): New variable.
5934 (make_info_sources_options_def_group, print_info_sources_header,
5935 info_sources_command_completer):
5937 (info_sources_command): Read new optional arguments.
5938 (_initialize_symtab): Update info sources help.
5940 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5942 * ada-lang.c (exception_support_info_v0): Renamed from...
5943 (default_exception_support_info): ... this. Create new
5945 (ada_has_this_exception_support): Look up catch_handlers_sym.
5946 (ada_exception_support_info_sniffer): Try v0 after default.
5948 2019-08-01 Tom Tromey <tromey@adacore.com>
5950 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5953 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5955 * s12z-tdep.c: Fix include path for s12z-opc.h.
5957 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5959 * NEWS: Require GNU make 3.82.
5961 2019-07-16 Tom Tromey <tom@tromey.com>
5963 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5966 2019-07-30 Tom Tromey <tromey@adacore.com>
5968 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5970 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5972 * printcmd.c (print_address_symbolic): Print negative offsets.
5973 (build_address_symbolic): Force signed arithmetic when computing
5976 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5978 PR/24474: Add a function to lookup static variables.
5979 * NEWS: Mention this new function.
5980 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5981 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5982 * python/python.c (python_GdbMethods): Add new function.
5984 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5986 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5987 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5988 (objfpy_lookup_static_symbol): New function.
5989 (objfile_object_methods): Add new functions.
5991 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5993 * NEWS: Mention 'set|show print frame-info'. Mention new
5994 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5995 backtrace argument. Mention that python frame filtering code
5996 is now consistent with what 'backtrace' command prints.
5998 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6000 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6002 (print_frame_info_auto, print_frame_info_source_line,
6003 print_frame_info_location, print_frame_info_source_and_location,
6004 print_frame_info_location_and_address, print_frame_info_short_location):
6006 (struct frame_print_options): New member print_frame_info.
6007 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6008 * stack.h (get_user_print_what_frame_info): New declaration.
6009 (frame_show_address): New declaration.
6010 * stack.c (print_frame_arguments_choices): New value 'presence'.
6011 (print_frame_info_auto, print_frame_info_source_line,
6012 print_frame_info_location, print_frame_info_source_and_location,
6013 print_frame_info_location_and_address, print_frame_info_short_location,
6014 print_frame_info_choices, print_frame_info_print_what): New definitions.
6015 (print_frame_args): Only print dots for args if print frame-arguments
6017 (frame_print_option_defs): New element for "frame-info".
6018 (get_user_print_what_frame_info): New function.
6019 (frame_show_address): Make non static. Move comment to stack.h.
6020 (print_frame_info_to_print_what): New function.
6021 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6022 to decide what to print.
6023 (backtrace_command_1): Handle the new print_frame_arguments_presence
6025 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6026 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6027 (py_print_frame): In non-mi mode, use LOCATION as default for
6028 print_what, similarly to frame information printed directly by
6029 backtrace command. Handle frame-info user option in non MI mode.
6031 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6033 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6034 Add case for debugging 32-bit target on 64-bit host. Revise
6037 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6039 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6040 instead of find_function_entry_range_from_pc.
6042 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6044 * stack.c (find_frame_funname): Remove code which preferred
6045 minsym over symtab sym in "certain pathological cases".
6047 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6048 parameter. Change type of "do_demangle" to bool.
6049 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6050 Pass suitable "prefer_sym_over_minsym" flag to
6051 build_address_symbolic(). Don't output "+" for negative offsets.
6052 * printcmd.c (print_address_symbolic): Update invocation of
6053 build_address_symbolic to include a "prefer_sym_over_minsym"
6055 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6056 Restrict cases in which use of minimal symbol is preferred to that
6057 of a found symbol. Update comments.
6059 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6060 for entry pc when entry pc is out of range for that FDE.
6062 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6065 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6068 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6070 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6071 this function's Python signature.
6074 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6076 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6077 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6078 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6079 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6080 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6083 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6085 * h8300-tdep.c (h8300_register_name_common): New.
6086 h8300_register_name): Use h8300_register_name_common.
6087 (h8300s_register_name): Likewise.
6088 (h8300sx_register_name): Likewise.
6089 (h8300h_register_nam): New.
6090 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6093 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6095 * arm-tdep.c (arm_skip_cmse_entry): New function.
6096 (arm_is_sgstubs_section): New function.
6097 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6099 2019-07-22 Tom Tromey <tom@tromey.com>
6101 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6104 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6106 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6109 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6111 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6112 so that GDB doesn't match any msymbols when searching in the
6114 (print_symbol_info): Print using typedef_print or type_print based
6115 on the type of the symbol. Add updated FIXME comment moved from...
6116 (_initialize_symtab): ... move and update FIXME comment to above.
6118 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6120 * NEWS: Mention adding -q option to "info types".
6121 * symtab.c (struct info_types_options): New struct.
6122 (info_types_options_defs): New variable.
6123 (make_info_types_options_def_group): New function.
6124 (info_types_command): Use gdb::option framework to parse options.
6125 (info_types_command_completer): New function.
6126 (_initialize_symtab): Extend the help text on "info types" and
6127 register command completer.
6129 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6131 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6132 (lookup_symbol_in_objfile): Change int to block_enum and add a
6133 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6135 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6137 * MAINTAINERS (Write After Approval): Add self.
6139 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6141 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6142 instruction to the dummy code region.
6144 2019-07-19 Tom Tromey <tromey@adacore.com>
6146 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6147 (ARGSUSED, PARAMS, __func__): Remove rules.
6149 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6151 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6152 * features/arm/arm-with-iwmmxt.c: Remove.
6153 * features/arm/arm-with-iwmmxt.xml: Remove.
6154 * features/arm/arm-with-m-fpa-layout.c: Remove.
6155 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6156 * features/arm/arm-with-m-vfp-d16.c: Remove.
6157 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6158 * features/arm/arm-with-m.c: Remove.
6159 * features/arm/arm-with-m.xml: Remove.
6160 * features/arm/arm-with-neon.c: Remove.
6161 * features/arm/arm-with-neon.xml: Remove.
6162 * features/arm/arm-with-vfpv2.c: Remove.
6163 * features/arm/arm-with-vfpv2.xml: Remove.
6164 * features/arm/arm-with-vfpv3.c: Remove.
6165 * features/arm/arm-with-vfpv3.xml: Remove.
6167 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6169 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6171 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6173 * arch/aarch32.c (aarch32_create_target_description): Create
6174 target descriptions using features.
6175 * arch/arm.c (arm_create_target_description)
6176 (arm_create_mprofile_target_description): Likewise.
6177 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6179 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6181 * Makefile.in: Add new files.
6182 * aarch32-tdep.c: New file.
6183 * aarch32-tdep.h: New file.
6184 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6185 Call aarch32_read_description.
6186 * arch/aarch32.c: New file.
6187 * arch/aarch32.h: New file.
6188 * arch/arm.c (arm_create_target_description)
6189 (arm_create_mprofile_target_description): New function.
6190 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6191 (arm_create_target_description)
6192 (arm_create_mprofile_target_description): New declaration.
6193 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6194 read_description functions.
6195 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6197 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6198 * arm-tdep.c (tdesc_arm_list): New variable.
6199 (arm_register_g_packet_guesses): Call create description functions.
6200 (arm_read_description) (arm_read_mprofile_description): New
6202 * arm-tdep.h (arm_read_description)
6203 (arm_read_mprofile_description): Add declaration.
6204 * configure.tgt: Add new files.
6206 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6208 * top.c (new_ui_command): Open specified terminal just once.
6210 2019-07-18 Tom Tromey <tromey@adacore.com>
6212 * symtab.c (main_name): Constify return type.
6213 * symfile.c (set_initial_language): Update.
6214 * symtab.h (main_name): Constify return type.
6216 2019-07-17 Tom Tromey <tom@tromey.com>
6218 * tui/tui-winsource.c (tui_update_source_window)
6219 (tui_update_source_window_as_is)
6220 (tui_update_source_windows_with_line): Remove return.
6221 * tui/tui-disasm.c (tui_show_disassem)
6222 (tui_show_disassem_and_update_source): Remove return.
6223 * tui/tui.c (tui_reset): Remove return.
6224 * tui/tui-wingeneral.c
6225 (tui_check_and_display_highlight_if_needed): Remove return.
6227 2019-07-17 Tom Tromey <tom@tromey.com>
6229 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6231 2019-07-17 Tom Tromey <tom@tromey.com>
6233 * tui/tui-winsource.h (struct tui_exec_info_window)
6234 (struct tui_source_window_base): Move from tui-data.h.
6235 * tui/tui-winsource.c: Move many method definitions from
6236 elsewhere. Remove "structuring" comments.
6237 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6238 (tui_source_window_base::refresh_window): Move to
6240 * tui/tui-win.c (tui_source_window_base::refresh_all)
6241 (tui_source_window_base::update_tab_width)
6242 (tui_source_window_base::set_new_height)
6243 (tui_source_window_base::do_make_visible_with_new_height): Move to
6245 * tui/tui-source.h: Update.
6246 * tui/tui-source.c (tui_source_window_base::reset): Move to
6248 * tui/tui-disasm.h: Update.
6249 * tui/tui-data.h (struct tui_exec_info_window): Move to
6251 (struct tui_source_window_base): Likewise.
6252 * tui/tui-data.c (tui_source_window_base::clear_detail)
6253 (tui_source_window_base, ~tui_source_window_base): Move to
6256 2019-07-17 Tom Tromey <tom@tromey.com>
6258 * tui/tui-win.c (tui_resize_all)
6259 (tui_source_window_base::update_tab_width)
6260 (tui_adjust_win_heights): Update.
6261 (tui_win_info::make_invisible_and_set_new_height): Rename from
6262 make_invisible_and_set_new_height.
6263 * tui/tui-data.h (struct tui_win_info)
6264 <make_invisible_and_set_new_height>: New method.
6266 2019-07-17 Tom Tromey <tom@tromey.com>
6268 * tui/tui.c: Update.
6269 * tui/tui-source.h (struct tui_source_window): Move from
6271 * tui/tui-layout.c: Update.
6272 * tui/tui-disasm.c: Update.
6273 * tui/tui-data.h (struct tui_source_window): Move to
6276 2019-07-17 Tom Tromey <tom@tromey.com>
6278 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6280 * tui/tui-data.h (struct tui_disasm_window): Move to
6283 2019-07-17 Tom Tromey <tom@tromey.com>
6285 * tui/tui-regs.h (struct tui_data_item_window): Move from
6287 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6288 * tui/tui-data.h (struct tui_data_item_window): Move to
6290 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6292 2019-07-17 Tom Tromey <tom@tromey.com>
6294 * tui/tui.c: Update.
6295 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6296 (tui_cmd_window::max_height): Move to tui-command.c.
6297 * tui/tui-layout.c: Update.
6298 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6299 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6301 * tui/tui-command.h (struct tui_cmd_window): Move from
6303 * tui/tui-command.c: Remove "structuring" comments.
6304 (tui_cmd_window::clear_detail)
6305 (tui_cmd_window::do_make_visible_with_new_height)
6306 (tui_cmd_window::max_height): Move from elsewhere.
6308 2019-07-17 Tom Tromey <tom@tromey.com>
6310 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6312 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6313 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6315 2019-07-17 Tom Tromey <tom@tromey.com>
6317 * tui/tui.c: Update.
6318 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6320 * tui/tui-windata.h: Remove file.
6321 * tui/tui-windata.c: Remove file.
6322 * tui/tui-win.c (tui_data_window::set_new_height)
6323 (tui_data_window::do_make_visible_with_new_height): Move to
6325 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6326 * tui/tui-regs.c: Remove "structuring" comments.
6327 (tui_data_window::first_data_item_displayed)
6328 (tui_data_window::delete_data_content_windows)
6329 (tui_data_window::erase_data_content)
6330 (tui_data_window::display_all_data)
6331 (tui_data_window::refresh_all)
6332 (tui_data_window::do_scroll_vertical)
6333 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6334 (tui_data_window::do_make_visible_with_new_height)
6335 (tui_data_window::refresh_window): Move from elsewhere.
6336 (_initialize_tui_regs): Move to end of file.
6337 * tui/tui-layout.c: Update.
6338 * tui/tui-hooks.c: Update.
6339 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6340 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6342 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6344 2019-07-17 Tom Tromey <tom@tromey.com>
6346 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6349 2019-07-17 Tom Tromey <tom@tromey.com>
6351 * tui/tui-win.c (tui_source_window_base::set_new_height)
6352 (tui_source_window_base::do_make_visible_with_new_height): Use
6353 m_has_locator field directly.
6354 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6356 (struct tui_source_window_base) <has_locator>: Likewise.
6358 2019-07-17 Tom Tromey <tom@tromey.com>
6360 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6362 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6364 * tui/tui-win.c (tui_source_window_base::set_new_height)
6365 (tui_source_window_base::set_new_height)
6366 (make_invisible_and_set_new_height)
6367 (tui_source_window_base::do_make_visible_with_new_height)
6368 (tui_source_window_base::do_make_visible_with_new_height):
6370 * tui/tui-layout.c (show_source_disasm_command, show_data)
6371 (show_source_or_disasm_and_command): Update.
6372 * tui/tui-layout.c (show_layout): Update.
6374 2019-07-17 Tom Tromey <tom@tromey.com>
6376 * tui/tui-layout.c (make_data_window): Remove.
6377 (show_data): Unify creation and re-initialization cases.
6379 2019-07-17 Tom Tromey <tom@tromey.com>
6381 * tui/tui-layout.c (make_source_window, make_disasm_window):
6383 (show_data): Unify creation and re-initialization cases.
6385 2019-07-17 Tom Tromey <tom@tromey.com>
6387 * tui/tui-layout.c (make_command_window): Remove.
6388 (show_source_disasm_command, show_source_or_disasm_and_command):
6389 Unify creation and re-initialization cases.
6391 2019-07-17 Tom Tromey <tom@tromey.com>
6393 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6394 creation and re-initialization cases.
6396 2019-07-17 Tom Tromey <tom@tromey.com>
6398 * tui/tui-regs.c (tui_get_register): Return void.
6400 2019-07-17 Tom Tromey <tom@tromey.com>
6402 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6405 2019-07-17 Tom Tromey <tom@tromey.com>
6407 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6410 2019-07-17 Tom Tromey <tom@tromey.com>
6412 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6413 * tui/tui-regs.c (tui_reg_layout): New function.
6414 (tui_show_registers, tui_reg_command): Use it.
6415 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6416 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6418 (tui_layout_command): Remove.
6420 2019-07-17 Tom Tromey <tom@tromey.com>
6422 * tui/tui-layout.h (tui/tui-layout): Return void.
6423 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6425 2019-07-17 Tom Tromey <tom@tromey.com>
6427 * tui/tui-layout.c (show_source_disasm_command, show_data):
6429 (reset_locator): Remove.
6430 (show_source_or_disasm_and_command): Update.
6432 2019-07-17 Tom Tromey <tom@tromey.com>
6434 * tui/tui-source.c (tui_source_window_base::reset): Remove
6436 * tui/tui-layout.c (make_command_window, make_source_window)
6437 (make_disasm_window, make_data_window)
6438 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6439 (reset_locator, show_source_or_disasm_and_command): Update.
6440 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6442 (struct tui_source_window_base) <reset>: Likewise.
6444 2019-07-17 Tom Tromey <tom@tromey.com>
6446 * tui/tui-layout.c (show_source_disasm_command): Use
6448 (reset_locator): New function.
6449 (init_and_make_win): Remove.
6450 (show_source_or_disasm_and_command): Use reset_locator.
6452 2019-07-17 Tom Tromey <tom@tromey.com>
6454 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6456 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6458 * tui/tui-source.c (tui_source_window_base::reset): New method.
6459 * tui/tui-layout.c (make_command_window): Don't call
6461 (make_source_window, make_disasm_window): Don't call
6462 make_source_or_disasm_window.
6463 (make_data_window): Don't call init_and_make_win. Change calling
6465 (show_source_disasm_command, show_data): Simplify.
6466 (make_source_or_disasm_window): Remove.
6467 (show_source_or_disasm_and_command): Simplify.
6468 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6469 (struct tui_source_window_base) <reset>: Likewise.
6470 <execution_info>: Remove initializer.
6471 * tui/tui-data.c (tui_source_window_base): Initialize
6474 2019-07-17 Tom Tromey <tom@tromey.com>
6476 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6479 2019-07-17 Tom Tromey <tom@tromey.com>
6481 * tui/tui.c (tui_rl_other_window): Update.
6482 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6483 superclass method first. Always iterate over regs_content.
6484 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6486 * tui/tui-win.c (tui_set_focus_command): Update.
6488 2019-07-17 Tom Tromey <tom@tromey.com>
6490 * tui/tui-win.c (tui_set_focus_command): Rename from
6491 tui_set_focus. Call tui_enable.
6492 (tui_set_focus_command): Remove.
6494 2019-07-17 Tom Tromey <tom@tromey.com>
6496 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6498 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6500 (tui_data_window::refresh_window): Call refresh_window on data
6501 items. Always call superclass refresh_window.
6502 (tui_win_info::refresh): Remove.
6503 (tui_source_window_base::refresh_window): Update.
6504 (tui_refresh_all): Update.
6505 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6507 (show_source_or_disasm_and_command): Likewise.
6508 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6509 (struct tui_source_window_base) <refresh>: Likewise.
6511 2019-07-17 Tom Tromey <tom@tromey.com>
6513 * tui/tui-winsource.c (tui_clear_source_content)
6514 (tui_show_source_content): Update.
6515 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6516 whether content is empty.
6517 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6520 2019-07-17 Tom Tromey <tom@tromey.com>
6522 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6524 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6525 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6527 2019-07-17 Tom Tromey <tom@tromey.com>
6529 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6530 (struct tui_data_item_window): Update.
6532 2019-07-17 Tom Tromey <tom@tromey.com>
6534 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6535 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6538 2019-07-17 Tom Tromey <tom@tromey.com>
6540 * tui/tui-winsource.h (tui_erase_source_content)
6541 (tui_clear_source_content): Remove "display_prompt" parameter.
6542 * tui/tui-winsource.c (tui_update_source_window_as_is)
6543 (tui_update_source_windows_with_addr): Update.
6544 (tui_clear_source_content): Remove "display_prompt" parameter.
6545 (tui_erase_source_content): Likewise. Simplify.
6546 (tui_show_source_content): Update.
6547 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6548 * tui/tui-stack.c (tui_show_frame_info): Update.
6549 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6552 2019-07-17 Tom Tromey <tom@tromey.com>
6554 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6555 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6557 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6560 2019-07-17 Tom Tromey <tom@tromey.com>
6562 * tui/tui-winsource.c (tui_clear_source_content)
6563 (tui_show_source_content, tui_show_exec_info_content)
6564 (tui_clear_exec_info_content): Update.
6565 * tui/tui-stack.c (tui_show_locator_content): Update.
6566 (tui_show_frame_info): Update.
6567 * tui/tui-source.h (tui_source_window): Don't declare.
6568 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6569 from tui_source_is_displayed.
6570 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6572 (struct tui_source_window_base) <content_in_use>: New field. Now
6574 (struct tui_source_window) <showing_source_p>: New method.
6575 (TUI_SRC_WIN): Change cast.
6576 * tui/tui-data.c (tui_initialize_static_data): Update.
6578 2019-07-17 Tom Tromey <tom@tromey.com>
6580 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6582 * tui/tui-source.c (tui_source_window::location_matches_p): New
6584 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6586 * tui/tui-data.h (struct tui_source_window_base)
6587 <location_matches_p>: New method.
6588 (struct tui_source_window, struct tui_disasm_window)
6589 <location_matches_p>: Likewise.
6591 2019-07-17 Tom Tromey <tom@tromey.com>
6593 * tui/tui-win.c (tui_set_win_height_command): Rename from
6595 (tui_set_win_height_command): Remove.
6597 2019-07-17 Tom Tromey <tom@tromey.com>
6599 * tui/tui-source.c (tui_source_window): New constructor. Add
6601 (~tui_source_window): New destructor.
6602 (tui_source_window::style_changed): New method.
6603 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6604 (tui_attach_detach_observers): Update.
6605 * tui/tui-data.h (struct tui_source_window): Make constructor not
6606 inline. Add destructor.
6607 (struct tui_source_window) <style_changed>: New method.
6608 <m_observable>: New member.
6610 2019-07-17 Tom Tromey <tom@tromey.com>
6612 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6613 * tui/tui-win.c (tui_resize_all): Fix typo.
6615 2019-07-17 Tom Tromey <tom@tromey.com>
6617 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6618 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6619 (tui_refresh_all): Remove "list" parameter. Use foreach.
6620 * tui/tui-win.c (window_name_completer): Use foreach.
6621 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6622 (update_tab_width): Likewise.
6623 * tui/tui-layout.c (show_layout): Update.
6624 * tui/tui-data.h (class tui_window_iterator): New.
6625 (struct all_tui_windows): New.
6626 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6628 2019-07-17 Tom Tromey <tom@tromey.com>
6630 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6631 parameter. Don't reference globals.
6632 (tui_reg_command): Update.
6634 2019-07-17 Tom Tromey <tom@tromey.com>
6636 * tui/tui-regs.c (tui_show_registers): Simplify.
6638 2019-07-17 Tom Tromey <tom@tromey.com>
6640 * tui/tui-regs.c (tui_show_registers): Update.
6641 (tui_show_register_group): Add win_info parameter.
6643 2019-07-17 Tom Tromey <tom@tromey.com>
6645 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6646 Rename from tui_display_reg_element_at_line.
6647 (tui_data_window::display_registers_from_line): Update.
6648 * tui/tui-data.h (struct tui_data_window)
6649 <display_reg_element_at_line>: New method.
6651 2019-07-17 Tom Tromey <tom@tromey.com>
6653 * tui/tui-regs.h (tui_display_registers_from)
6654 (tui_display_registers_from_line): Don't declare.
6655 * tui/tui-windata.c (tui_data_window::display_all_data)
6656 (tui_data_window::refresh_all)
6657 (tui_data_window::do_scroll_vertical): Update.
6658 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6659 from tui_display_registers_from.
6660 (tui_display_reg_element_at_line): Update.
6661 (tui_data_window::display_registers_from_line): Rename from
6662 tui_display_registers_from_line.
6663 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6664 display_registers_from_line>: New methods.
6666 2019-07-17 Tom Tromey <tom@tromey.com>
6668 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6669 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6670 from tui_erase_data_content.
6671 (tui_data_window::display_all_data)
6672 (tui_data_window::refresh_all)
6673 (tui_data_window::do_scroll_vertical): Update.
6674 * tui/tui-regs.c (tui_show_registers): Update.
6675 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6678 2019-07-17 Tom Tromey <tom@tromey.com>
6680 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6683 (tui_data_window::delete_data_content_windows): Rename from
6684 tui_delete_data_content_windows.
6685 (tui_data_window::display_all_data)
6686 (tui_data_window::do_scroll_vertical): Update.
6687 * tui/tui-data.h (struct tui_data_window)
6688 <delete_data_content_windows>: New method.
6690 2019-07-17 Tom Tromey <tom@tromey.com>
6692 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6693 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6695 2019-07-17 Tom Tromey <tom@tromey.com>
6697 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6698 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6699 from tui_display_all_data.
6701 (tui_data_window::do_make_visible_with_new_height): Update.
6702 * tui/tui-regs.c (tui_show_registers): Update.
6703 * tui/tui-layout.c (tui_set_layout): Update.
6704 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6707 2019-07-17 Tom Tromey <tom@tromey.com>
6709 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6710 * tui/tui-windata.c (tui_display_data_from): Remove.
6711 (tui_data_window::refresh_all): Update.
6713 2019-07-17 Tom Tromey <tom@tromey.com>
6715 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6716 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6717 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6718 tui_display_registers_from_line.
6719 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6720 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6721 "force_display" parameter.
6723 2019-07-17 Tom Tromey <tom@tromey.com>
6725 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6727 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6728 Rename from tui_first_reg_element_no_inline.
6729 (tui_display_reg_element_at_line)
6730 (tui_display_registers_from_line): Update.
6731 * tui/tui-data.h (struct tui_data_window)
6732 <first_reg_element_no_inline>: New method.
6734 2019-07-17 Tom Tromey <tom@tromey.com>
6736 * tui/tui-windata.c (tui_display_data_from)
6737 (tui_data_window::do_scroll_vertical): Update.
6738 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6739 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6740 Rename from tui_line_from_reg_element_no.
6741 (tui_display_registers_from_line): Update.
6742 * tui/tui-data.h (struct tui_data_window)
6743 <line_from_reg_element_no>: New method.
6745 2019-07-17 Tom Tromey <tom@tromey.com>
6747 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6748 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6749 tui_last_regs_line_no.
6750 (tui_display_reg_element_at_line)
6751 (tui_display_registers_from_line): Update.
6752 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6755 2019-07-17 Tom Tromey <tom@tromey.com>
6758 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6759 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6760 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6761 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6762 (tui_update_breakpoint_info): Likewise.
6763 * tui/tui-hooks.c (tui_event_create_breakpoint)
6764 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6767 2019-07-17 Tom Tromey <tom@tromey.com>
6769 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6771 2019-07-17 Tom Tromey <tom@tromey.com>
6773 * tui/tui-winsource.c (tui_update_source_window_as_is)
6774 (tui_update_source_windows_with_addr): Update.
6775 * tui/tui-source.h (tui_set_source_content)
6776 (tui_show_symtab_source): Add "win_info" parameter.
6777 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6779 (tui_show_symtab_source): Likewise.
6781 2019-07-17 Tom Tromey <tom@tromey.com>
6783 * tui/tui-wingeneral.c
6784 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6786 2019-07-17 Tom Tromey <tom@tromey.com>
6788 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6789 (struct tui_cmd_window) <can_scroll>: New method.
6790 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6793 2019-07-17 Tom Tromey <tromey@adacore.com>
6795 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6796 do_field_signed>: Rename. Change type of "value".
6797 * ui-out.c (ui_out::field_signed): Rename from field_int.
6798 Change type of "value".
6799 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6801 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6802 do_field_int. Change type of "value".
6803 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6804 do_field_int. Change type of "value".
6805 * tracepoint.c (trace_status_mi, tfind_1)
6806 (print_one_static_tracepoint_marker): Update.
6807 * thread.c (print_thread_info_1, print_selected_thread_frame):
6809 * stack.c (print_frame, print_frame_info): Update.
6810 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6812 * source.c (print_source_lines_base): Update.
6813 * skip.c (info_skip_command): Update.
6814 * record-btrace.c (btrace_ui_out_decode_error)
6815 (btrace_call_history_src_line): Update.
6816 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6818 * progspace.c (print_program_space): Update.
6819 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6820 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6821 do_field_int. Change type of "value".
6822 * mi/mi-out.c (mi_ui_out::do_table_begin)
6823 (mi_ui_out::do_table_header): Update.
6824 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6826 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6827 (mi_cmd_data_list_changed_registers, output_register)
6828 (mi_cmd_data_read_memory, mi_load_progress)
6829 (mi_cmd_trace_frame_collected): Update.
6830 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6832 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6833 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6834 (mi_cmd_var_list_children, varobj_update_one): Update.
6835 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6836 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6838 * inferior.c (print_inferior): Update.
6839 * gdb_bfd.c (print_one_bfd): Update.
6840 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6842 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6843 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6844 do_field_int. Change type of "value".
6845 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6846 do_field_int. Change type of "value".
6847 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6848 (print_one_breakpoint_location, print_it_catch_fork)
6849 (print_one_catch_fork, print_it_catch_vfork)
6850 (print_one_catch_vfork, print_it_catch_solib)
6851 (print_it_catch_exec, print_it_ranged_breakpoint)
6852 (print_mention_watchpoint, print_mention_masked_watchpoint)
6853 (bkpt_print_it, update_static_tracepoint): Update.
6854 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6855 * break-catch-syscall.c (print_it_catch_syscall): Update.
6856 * ada-tasks.c (print_ada_task_info): Update.
6857 * ada-lang.c (print_it_exception, print_mention_exception):
6860 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6862 PR breakpoints/24541
6863 * gdbarch.c: Regenerate.
6864 * gdbarch.h: Regenerate.
6865 * gdbarch.sh: Adjust return type and parameter types for
6866 'stap_adjust_register'.
6867 (i386_stap_adjust_register): Adjust signature and return new
6869 * stap-probe.c (stap_parse_register_operand): Adjust use of
6870 'gdbarch_stap_adjust_register'.
6872 2019-07-17 Tom Tromey <tromey@adacore.com>
6874 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6876 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6878 (struct s390_process_info): Add initializers.
6879 (s390_add_process): Use new.
6880 (s390_linux_nat_target::low_forget_process): Use delete.
6881 (s390_linux_nat_target::low_new_fork)
6882 (s390_linux_nat_target::stopped_by_watchpoint)
6883 (s390_linux_nat_target::low_prepare_to_resume)
6884 (s390_linux_nat_target::insert_watchpoint)
6885 (s390_linux_nat_target::insert_hw_breakpoint)
6886 (s390_linux_nat_target::remove_watchpoint)
6887 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6889 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6891 * aarch64-fbsd-nat.c: Include regcache.h.
6892 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6894 (aarch64_fbsd_nat_target::fetch_registers)
6895 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6897 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6899 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6901 * fbsd-nat.c: Include gdbarch.h.
6903 2019-07-15 Tom Tromey <tromey@adacore.com>
6905 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6907 2019-07-15 Tom Tromey <tromey@adacore.com>
6909 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6910 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6911 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6912 * cli-out.c (cli_ui_out::do_field_int): New method.
6913 * ui-out.c (ui_out::field_unsigned): New method.
6914 * symfile.c (generic_load): Use field_unsigned.
6915 (print_transfer_performance): Likewise.
6916 * record-btrace.c (ui_out_field_uint): Remove.
6917 (btrace_call_history_insn_range, btrace_call_history): Use
6919 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6921 * ui-out.h (class ui_out) <field_unsigned>: New method.
6922 <do_field_unsigned>: Likewise.
6924 2019-07-15 Tom Tromey <tromey@adacore.com>
6926 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6927 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6928 * target.c (flash_erase_command): Use field_string.
6929 * infrun.c (print_signal_received_reason): Use field_string.
6930 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6931 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6933 * ada-tasks.c (print_ada_task_info): Use field_string.
6935 2019-07-15 Tom Tromey <tromey@adacore.com>
6937 * target.c (flash_erase_command): Use field_core_addr.
6938 * symfile.c (generic_load): Use field_core_addr.
6939 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6940 Use field_core_addr.
6941 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6944 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6946 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6947 value if its desired type is smaller than a CORE_ADDR and signed.
6949 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6951 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6952 of changes to field names, and use new is_reference field to
6953 decide if a property is a reference or not.
6954 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6956 (struct dwarf2_property_baton): Update header comment, rename
6957 'referenced_type' to 'property_type' and update comments.
6958 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6959 default property type, store in property baton, update to take
6960 accound of renamed field.
6961 (read_func_scope): Update call to attr_to_dynamic_prop.
6962 (read_array_type): Likewise.
6963 (dwarf2_per_cu_addr_sized_int_type): New function.
6964 (read_subrange_index_type): Move type finding code to
6965 dwarf2_per_cu_addr_sized_int_type.
6966 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6967 (dwarf2_per_cu_addr_type): New function.
6968 (set_die_type): Update calls to attr_to_dynamic_prop.
6970 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6972 * dwarf2read.c (read_subrange_index_type): New function.
6973 (read_subrange_type): Move code into new function and call it.
6974 * gdbtypes.c (create_range_type): Add some asserts.
6976 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6978 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6979 update return statements.
6980 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6981 declaration, and update comment to match.
6982 * gdbtypes.c (resolve_dynamic_array): Update call to
6983 dwarf2_evaluate_property to match new return type.
6985 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6987 * valarith.c (value_subscripted_rvalue): Change lowerbound
6988 parameter type from int to LONGEST.
6989 * value.h (value_subscripted_rvalue): Likewise in declaration.
6991 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6993 * cli/cli-utils.c (info_print_command_completer): New function.
6994 * cli/cli-utils.h: Add 'completer.h' include, and forward
6995 declaration for 'struct cmd_list_element'.
6996 (info_print_command_completer): Declare.
6997 * stack.c (_initialize_stack): Add completer for 'info locals' and
6999 * symtab.c (_initialize_symtab): Add completer for 'info
7000 variables' and 'info functions'.
7001 * NEWS: Mention completion for additional info commands.
7003 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7005 * cli/cli-utils.c (extract_info_print_args): Delete.
7006 (extract_arg_maybe_quoted): Delete.
7007 (info_print_options_defs): New variable.
7008 (make_info_print_options_def_group): New function.
7009 (extract_info_print_options): Define new function.
7010 * cli/cli-utils.h (extract_info_print_args): Delete.
7011 (struct info_print_options): New structure.
7012 (extract_info_print_options): Declare new function.
7013 * stack.c (info_locals_command): Update to use new
7014 extract_info_print_options, also add a header comment.
7015 (info_args_command): Likewise.
7016 * symtab.c (info_variables_command): Likewise.
7017 (info_functions_command): Likewise.
7019 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7021 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7022 to extract string arguments.
7023 * common/common-utils.c (extract_string_maybe_quoted): New function.
7024 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7026 2019-07-11 Tom Tromey <tromey@adacore.com>
7028 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7029 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7030 * top.h (gdbinit): Don't declare.
7031 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7033 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7034 * top.c (gdb_init): Don't call init_cli_cmds.
7036 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7038 2019-07-11 Tom Tromey <tromey@adacore.com>
7040 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7041 after it has been moved.
7043 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7045 * valops.c (value_must_coerce_to_target): Change return type to
7047 * value.h (value_must_coerce_to_target): Likewise.
7049 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7051 * breakpoint.c (is_hardware_watchpoint): Remove
7052 forward-declaration.
7053 (is_masked_watchpoint): Change return type to bool.
7054 (is_tracepoint): Likewise.
7055 (is_breakpoint): Likewise.
7056 (is_hardware_watchpoint): Likewise.
7057 (is_watchpoint): Likewise.
7058 (is_no_memory_software_watchpoint): Likewise.
7059 (is_catchpoint): Likewise.
7060 (breakpoint_1): Make FILTER parameter's return type bool.
7061 is_masked_watchpoint): Change return type to bool.
7062 (save_breakpoints): Make FILTER parameter's return type bool.
7063 * breakpoint.h (is_breakpoint): Change return type to bool.
7064 (is_watchpoint): Likewise.
7065 (is_catchpoint): Likewise.
7066 (is_tracepoint): Likewise.
7068 2019-07-10 Tom Tromey <tom@tromey.com>
7070 * defs.h: Don't include gdbarch.h.
7071 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7072 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7073 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7074 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7075 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7076 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7077 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7078 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7079 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7080 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7081 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7082 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7083 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7084 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7085 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7086 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7087 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7088 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7089 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7090 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7091 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7092 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7093 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7094 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7095 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7096 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7097 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7099 2019-07-10 Tom Tromey <tromey@adacore.com>
7101 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7102 * breakpoint.c (init_ada_exception_breakpoint): Register as
7104 (print_one_breakpoint_location, print_one_breakpoint): Use
7105 is_ada_exception_catchpoint.
7106 * ada-lang.c (class ada_catchpoint_location): Pass
7107 bp_loc_software_breakpoint to bp_location constructor.
7108 (is_ada_exception_catchpoint): New function.
7110 2019-07-10 Tom Tromey <tromey@adacore.com>
7112 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7114 (struct arm_exidx_entry): New method operator<.
7115 (struct arm_exidx_data) <section_maps>: Change type.
7116 (arm_exidx_data_free): Remove.
7117 (arm_exidx_data_key): Change type. Move lower.
7118 (arm_exidx_new_objfile): Update.
7119 (arm_compare_exidx_entries): Remove.
7120 (arm_find_exidx_entry, _initialize_arm_tdep)
7122 2019-07-10 Tom Tromey <tromey@adacore.com>
7124 * solib-spu.c (ocl_program_data_key): Change type.
7125 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7128 2019-07-10 Tom Tromey <tromey@adacore.com>
7130 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7131 (struct solib_aix_inferior_data) <library_list>: Change type.
7132 (solib_aix_inferior_data_handle): Change type.
7133 (get_solib_aix_inferior_data): Update.
7134 (solib_aix_free_library_list): Remove.
7135 (library_list_start_library): Update.
7136 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7138 (solib_aix_get_library_list)
7139 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7140 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7142 2019-07-10 Tom Tromey <tromey@adacore.com>
7144 * solib-dsbt.c (struct dsbt_info): Add initializers.
7145 (solib_dsbt_pspace_data): Change type.
7146 (dsbt_pspace_data_cleanup): Remove.
7147 (get_dsbt_info, _initialize_dsbt_solib): Update.
7149 2019-07-10 Tom Tromey <tromey@adacore.com>
7151 * spu-tdep.c (spu_overlay_data): Change type.
7152 (spu_get_overlay_table, spu_overlay_new_objfile)
7153 (_initialize_spu_tdep): Update.
7155 2019-07-10 Tom Tromey <tromey@adacore.com>
7157 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7159 (dbx_objfile_data_key): Change type and declare later.
7160 (DBX_SYMFILE_INFO): Rewrite.
7161 * dbxread.c (dbx_objfile_data_key): Change type.
7162 (dbx_symfile_init): Update.
7163 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7164 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7165 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7167 2019-07-10 Tom Tromey <tromey@adacore.com>
7169 * jit.c (jit_program_space_key): Change type. Move lower.
7170 (get_jit_program_space_data): Update.
7171 (jit_program_space_data_cleanup): Remove.
7172 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7174 (struct jit_program_space_data): Add initializers.
7176 2019-07-10 Tom Tromey <tromey@adacore.com>
7178 * solib-darwin.c (struct darwin_info): Add initializers.
7179 (solib_darwin_pspace_data): Change type.
7180 (darwin_pspace_data_cleanup): Remove.
7181 (get_darwin_info, _initialize_darwin_solib): Update.
7183 2019-07-10 Tom Tromey <tromey@adacore.com>
7185 * remote-sim.c (struct sim_inferior_data): Add initializers,
7186 constructor, and destructor.
7187 (sim_inferior_data_key): Change type. Move lower.
7188 (check_for_duplicate_sim_descriptor): Update.
7189 (get_sim_inferior_data): Use new. Update.
7190 (~sim_inferior_data_cleanup): Rename from
7191 sim_inferior_data_cleanup. Simplify.
7192 (gdbsim_close_inferior, simulator_command)
7193 (sim_command_completer, _initialize_remote_sim): Update.
7194 (next_pid, INITIAL_PID): Move earlier.
7196 2019-07-10 Tom Tromey <tromey@adacore.com>
7198 * python/python-internal.h (create_thread_object): Return
7200 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7201 * python/py-inferior.c (struct threadlist_entry): Add
7203 <thread_obj>: Now a gdbpy_ref.
7204 (thread_to_thread_object): Update.
7205 (add_thread_object): Use new.
7206 (delete_thread_object): Use delete.
7207 (infpy_threads): Update.
7208 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7211 2019-07-10 Tom Tromey <tromey@adacore.com>
7213 * valops.c (value_cast): Specialize error message for Ada.
7215 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7217 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7219 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7221 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7222 bpstat_should_step): Return bool, adjust comments.
7223 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7224 bpstat_should_step): Likewise.
7226 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7228 * features/Makefile: Use feature target descriptions for Arm.
7229 * features/arm/arm-core.c: Generate new file.
7230 * features/arm/arm-fpa.c: Likewise.
7231 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7232 * features/arm/arm-m-profile.c: Likewise.
7233 * features/arm/arm-vfpv2.c: Likewise.
7234 * features/arm/arm-vfpv3.c: Likewise.
7235 * features/arm/xscale-iwmmxt.c: Likewise.
7236 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7238 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7240 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7243 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7245 * features/aarch64-pauth.c: Regenerate.
7247 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7249 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7251 (bpstat_what): Use false instead of 0.
7253 2019-07-09 Pedro Alves <palves@redhat.com>
7255 * break-catch-throw.c (is_exception_catchpoint): New.
7256 * breakpoint.c (print_one_breakpoint_location): New parameter
7257 'raw_loc'. Handle it. Use
7258 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7259 looking at the breakpoint's type.
7260 (print_one_breakpoint): If handling "maint info breakpoints", also
7261 print locations of exception catchpoints.
7262 * breakpoint.h (is_exception_catchpoint): Declare.
7264 2019-07-09 Pedro Alves <palves@redhat.com>
7266 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7268 (allocate_location_exception_catchpoint): New.
7269 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7270 (initialize_throw_catchpoint_ops): Install
7271 allocate_location_exception_catchpoint as allocate_location
7273 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7274 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7276 (breakpoint_address_is_meaningful): Delete.
7277 (bl_address_is_meaningful): New.
7278 (breakpoint_locations_match): Adjust comment.
7279 (bp_location_from_bp_type): New, factored out of...
7280 (bp_location::bp_location(breakpoint *)): ... this.
7281 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7283 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7284 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7285 breakpoint_address_is_meaningful.
7286 (bp_locations_compare): Adjust comment.
7287 (update_global_location_list): Use bl_address_is_meaningful
7288 instead of breakpoint_address_is_meaningful.
7289 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7291 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7292 * python/py-breakpoint.c (bppy_get_location): No longer check
7293 whether location is null.
7295 2019-07-09 Pedro Alves <palves@redhat.com>
7298 * breakpoint.c (print_one_breakpoint_location): Remove
7299 single-location assert.
7301 2019-07-09 Tom Tromey <tom@tromey.com>
7303 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7304 * configure: Rebuild.
7305 * configure.ac: Change common to gdbsupport.
7306 * gdbsupport: Rename from common.
7307 * acinclude.m4: Change common to gdbsupport.
7308 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7309 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7311 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7312 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7313 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7314 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7315 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7316 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7317 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7318 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7319 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7320 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7321 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7322 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7323 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7324 coff-pe-read.c, command.h, compile/compile-c-support.c,
7325 compile/compile-c.h, compile/compile-cplus-symbols.c,
7326 compile/compile-cplus-types.c, compile/compile-cplus.h,
7327 compile/compile-loc2c.c, compile/compile.c, completer.c,
7328 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7329 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7330 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7331 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7332 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7333 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7334 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7335 features/aarch64-core.c, features/aarch64-fpu.c,
7336 features/aarch64-pauth.c, features/aarch64-sve.c,
7337 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7338 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7339 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7340 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7341 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7342 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7343 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7344 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7345 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7346 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7347 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7348 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7349 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7350 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7351 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7352 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7353 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7354 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7355 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7356 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7357 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7358 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7359 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7360 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7361 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7362 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7363 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7364 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7365 minsyms.c, mips-linux-tdep.c, namespace.h,
7366 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7367 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7368 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7369 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7370 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7371 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7372 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7373 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7374 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7375 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7376 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7377 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7378 procfs.c, producer.c, progspace.h, psymtab.h,
7379 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7380 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7381 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7382 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7383 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7384 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7385 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7386 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7387 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7388 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7389 target-memory.c, target.c, target.h, target/waitstatus.c,
7390 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7391 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7392 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7393 unittests/array-view-selftests.c,
7394 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7395 unittests/common-utils-selftests.c,
7396 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7397 unittests/format_pieces-selftests.c,
7398 unittests/function-view-selftests.c,
7399 unittests/lookup_name_info-selftests.c,
7400 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7401 unittests/mkdir-recursive-selftests.c,
7402 unittests/observable-selftests.c,
7403 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7404 unittests/parse-connection-spec-selftests.c,
7405 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7406 unittests/scoped_fd-selftests.c,
7407 unittests/scoped_mmap-selftests.c,
7408 unittests/scoped_restore-selftests.c,
7409 unittests/string_view-selftests.c, unittests/style-selftests.c,
7410 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7411 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7412 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7413 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7414 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7415 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7417 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7419 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7421 (decode_digits_ordinary): Set explicit_line field in sal.
7422 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7423 symtab_and_line that was set on an explicit line number in
7424 assembler code. Do always update the recorded symtab and line if
7425 we do skip the prologue.
7427 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7429 * breakpoint.c (set_breakpoint_location_function): Remove
7430 explicit_loc parameter.
7431 (momentary_breakpoint_from_master): Update call to
7432 set_breakpoint_location_function.
7433 (add_location_to_breakpoint): Likewise.
7435 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7437 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7438 required features based on default bfd type when no specific bfd
7441 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7443 * NEWS: Mention that GDB printf and eval commands can now print
7444 C-style and Ada-style convenience var strings without
7445 calling the inferior.
7446 * printcmd.c (printf_c_string): Locally print GDB internal var
7447 instead of transiting via the inferior.
7448 (printf_wide_c_string): Likewise.
7450 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7452 PR breakpoints/25011
7453 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7455 2019-07-04 Tom Tromey <tom@tromey.com>
7458 * tui/tui-winsource.c (tui_clear_source_content): Update.
7459 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7460 (tui_update_breakpoint_info): Update.
7461 (tui_set_exec_info_content): Update.
7462 * tui/tui-source.c (tui_set_source_content_nil): Update.
7463 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7465 * tui/tui-data.h (enum tui_bp_flag): New.
7466 (tui_bp_flags): New enum flags type.
7467 (struct tui_source_element) <break_mode>: Change type. Rename
7469 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7470 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7472 * tui/tui-winsource.h: Fix comment.
7474 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7476 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7477 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7478 (store_fpregs_to_thread)
7479 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7480 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7481 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7482 (IWMMXT_REGS_SIZE): Add define.
7483 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7484 (fetch_vfp_regs, store_vfp_regs)
7485 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7486 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7488 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7490 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7492 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7493 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7494 (ARM_INT_REGISTER_SIZE): ...to this.
7495 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7496 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7497 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7498 (arm_linux_collect_gregset, supply_nwfpe_register)
7499 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7501 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7502 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7503 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7504 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7505 (arm_return_in_memory, arm_store_return_value)
7506 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7507 (arm_record_ld_st_multiple): Likewise.
7508 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7509 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7511 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7513 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7514 AARCH64_DISPLACED_MODIFIED_INSNS.
7515 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7516 (aarch64_displaced_step_copy_insn): Likewise.
7517 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7518 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7519 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7520 ARM_DISPLACED_MODIFIED_INSNS.
7521 * arm-tdep.c (arm_gdbarch_init): Likewise.
7522 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7523 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7524 (struct arm_displaced_step_closure): Use
7525 ARM_DISPLACED_MODIFIED_INSNS.
7527 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7529 * features/Makefile: Remove unused xml files.
7530 * features/aarch64.xml: Remove.
7531 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7532 * features/i386/amd64-avx-avx512.xml: Remove.
7533 * features/i386/amd64-avx-linux.xml: Remove.
7534 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7535 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7536 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7537 * features/i386/amd64-avx-mpx.xml: Remove.
7538 * features/i386/amd64-avx.xml: Remove.
7539 * features/i386/amd64-linux.xml: Remove.
7540 * features/i386/amd64-mpx-linux.xml: Remove.
7541 * features/i386/amd64-mpx.xml: Remove.
7542 * features/i386/amd64.xml: Remove.
7543 * features/i386/i386-avx-avx512-linux.xml: Remove.
7544 * features/i386/i386-avx-avx512.xml: Remove.
7545 * features/i386/i386-avx-linux.xml: Remove.
7546 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7547 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7548 * features/i386/i386-avx-mpx-linux.xml: Remove.
7549 * features/i386/i386-avx-mpx.xml: Remove.
7550 * features/i386/i386-avx.xml: Remove.
7551 * features/i386/i386-linux.xml: Remove.
7552 * features/i386/i386-mmx-linux.xml: Remove.
7553 * features/i386/i386-mmx.xml: Remove.
7554 * features/i386/i386-mpx-linux.xml: Remove.
7555 * features/i386/i386-mpx.xml: Remove.
7556 * features/i386/i386.xml: Remove.
7557 * features/i386/x32-avx-avx512-linux.xml: Remove.
7558 * features/i386/x32-avx-linux.xml: Remove.
7559 * features/i386/x32-linux.xml: Remove.
7561 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7563 * regformats/aarch64.dat: Remove.
7564 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7565 * regformats/i386/amd64-avx-linux.dat: Remove.
7566 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7567 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7568 * regformats/i386/amd64-linux.dat: Remove.
7569 * regformats/i386/amd64-mpx-linux.dat: Remove.
7570 * regformats/i386/amd64.dat: Remove.
7571 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7572 * regformats/i386/i386-avx-linux.dat: Remove.
7573 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7574 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7575 * regformats/i386/i386-linux.dat: Remove.
7576 * regformats/i386/i386-mmx-linux.dat: Remove.
7577 * regformats/i386/i386-mpx-linux.dat: Remove.
7578 * regformats/i386/i386.dat: Remove.
7579 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7580 * regformats/i386/x32-avx-linux.dat: Remove.
7581 * regformats/i386/x32-linux.dat: Remove.
7583 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7585 * aarch64-tdep.c: Remove xml self tests.
7586 * amd64-linux-tdep.c: Likewise.
7587 * amd64-tdep.c: Likewise.
7588 * i386-linux-tdep.c: Likewise.
7589 * i386-tdep.c: Likewise.
7591 2019-07-03 Pedro Alves <palves@redhat.com>
7594 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7595 (pipe_cmd_option_defs): New.
7596 (make_pipe_cmd_options_def_group): New.
7597 (pipe_command): Use gdb::option::process_options.
7598 (pipe_command_completer): New function.
7599 (_initialize_cli_cmds): Install completer for "pipe" command.
7601 2019-07-03 Pedro Alves <palves@redhat.com>
7603 * cli/cli-option.c (union option_value) <string>: New field.
7604 (struct option_def_and_value): Add ctor, move ctor, dtor and
7605 use DISABLE_COPY_AND_ASSIGN.
7606 (option_def_and_value::clear_value): New.
7607 (parse_option, save_option_value_in_ctx, get_val_type_str)
7608 (add_setshow_cmds_for_options): Handle var_string.
7609 * cli-option.h (union option_def::var_address) <string>: New
7611 (struct string_option_def): New.
7612 * maint-test-options.c (struct test_options_opts): Add default
7613 ctor and use DISABLE_COPY_AND_ASSIGN.
7614 <string_opt>: New field.
7615 (test_options_opts::~test_options_opts): New.
7616 (test_options_opts::dump): Also dump "-string".
7617 (test_options_option_defs): Install "string.
7619 2019-07-03 Pedro Alves <palves@redhat.com>
7621 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7622 option_value with a null enumeration.
7623 (complete_options): Save the option values in the context.
7624 (save_option_value_in_ctx): New, factored out from ...
7625 (process_options): ... here.
7626 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7628 * maint-test-options.c (test_options_opts::dump): New, factored
7630 (maintenance_test_options_command_mode): ... here.
7631 (maintenance_test_options_command_completion_result): Delete.
7632 (maintenance_test_options_command_completion_text): Update
7634 (maintenance_show_test_options_completion_result): Change
7635 prototype. Just print
7636 maintenance_test_options_command_completion_text.
7637 (save_completion_result): New.
7638 (maintenance_test_options_completer_mode): Pass options context to
7639 complete_options, and then save a dump.
7640 (_initialize_maint_test_options): Use add_cmd to install "maint
7641 show test-options-completion-result".
7643 2019-07-03 Pedro Alves <palves@redhat.com>
7645 * NEWS (New commands): Mention "with" and "maint with".
7646 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7647 (with_command, with_command_completer): New.
7648 (pipe_command): Adjust to new repeat_previous
7650 (_initialize_cli_cmds): Install the "with" command and its "w"
7652 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7654 * cli/cli-setshow.c (parse_cli_var_uinteger)
7655 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7656 argument strings for all var_types.
7657 (get_setshow_command_value_string): New, factored out from ...
7658 (do_show_command): ... this.
7659 * cli/cli-setshow.h: Include <string>.
7660 (get_setshow_command_value_string): Declare.
7661 * command.h (repeat_previous): Now returns const char *. Adjust
7663 * maint.c: Include "cli/cli-cmds.h".
7664 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7665 (_initialize_maint_cmds): Register the "maintenance with" command.
7666 * top.c (repeat_previous): Move bits from pipe_command here:
7667 Return the saved command line, if any; error out if there's no
7668 command to relaunch.
7670 2019-07-03 Pedro Alves <palves@redhat.com>
7672 * NEWS (New commands): Mention "maint set/show test-settings"
7673 instead of "maint test-settings".
7674 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7675 (maintenance_test_settings_set_list): Rename to ...
7676 (maintenance_set_test_settings_list): ... this.
7677 (maintenance_test_settings_show_list): Rename to ...
7678 (maintenance_show_test_settings_list): ... this.
7679 (maintenance_test_settings_cmd): Delete.
7680 (maintenance_test_settings_set_cmd): ...
7681 (maintenance_set_test_settings_cmd): ... this.
7682 (maintenance_test_settings_show_cmd): ...
7683 (maintenance_show_test_settings_cmd): ... this.
7684 (maintenance_test_settings_show_value_cmd):
7685 (maintenance_show_test_settings_value_cmd): ... this.
7686 (_initialize_maint_test_settings): No longer install the "maint
7687 test-settings" prefix command. Rename "maint test-settings set"
7688 to "maint set test-settings", and "maint test-settings show" to
7689 "maint show test-settings". Adjust all subcommands.
7691 2019-07-03 Pedro Alves <palves@redhat.com>
7693 * maint-test-settings.c: Fix file's intro comment. Replace all
7694 references to "test-options" with references to "test-settings",
7697 2019-07-03 Pedro Alves <palves@redhat.com>
7699 * maint-test-settings.c (maintenance_test_settings_xxx)
7700 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7702 (maintenance_test_settings_enums): Use them.
7703 (maintenance_test_settings_enum): Default to
7704 maintenance_test_settings_xxx.
7705 (_initialize_maint_test_settings): Initialize
7706 MAINTENANCE_TEST_SETTINGS_FILENAME.
7708 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7710 * breakpoint.h (remove_breakpoints_inf): Change return type to
7711 void, move function documentation here.
7712 * breakpoint.c (remove_breakpoints_inf): Change return type to
7713 void, move function documentation to header.
7715 2019-07-02 Pedro Alves <palves@redhat.com>
7717 * NEWS (Completion improvements): Mention "info threads".
7718 * thread.c (struct info_threads_opts, info_threads_option_defs)
7719 (make_info_threads_options_def_group): New.
7720 (info_threads_command): Use gdb::option::process_options.
7721 (info_threads_command_completer): New.
7722 (_initialize_thread): Use gdb::option::build_help to build the
7723 help text for "info threads".
7725 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7727 * defs.h (generic_load): Move from here...
7728 * symfile.h (generic_load): ... to here. Rename name parameter
7730 * symfile.c (generic_load): Add comment.
7732 2019-07-01 Tom Tromey <tromey@adacore.com>
7735 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7736 declaration of without_params. Fix formatting.
7738 2019-07-01 Tom Tromey <tromey@adacore.com>
7740 * ada-exp.y (find_primitive_type): Update.
7741 * ada-lang.h (ada_lookup_symbol): Update.
7742 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7744 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7746 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7748 PR breakpoints/24541
7749 * gdbarch.c: Regenerate.
7750 * gdbarch.h: Regenerate.
7751 * gdbarch.sh: Add 'stap_adjust_register'.
7752 * i386-tdep.c: Include '<unordered_set>'.
7753 (i386_stap_adjust_register): New function.
7754 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7755 * stap-probe.c (stap_parse_register_operand): Call
7756 'gdbarch_stap_adjust_register'.
7758 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7761 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7762 * python/python.c (do_start_initialization): Use 'xmalloc'
7763 instead of 'PyMem_Malloc'.
7765 2019-06-28 Tom Tromey <tromey@adacore.com>
7767 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7770 2019-06-27 Tom Tromey <tromey@adacore.com>
7772 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7774 (arm_find_mapping_symbol, arm_record_special_symbol)
7775 (_initialize_arm_tdep): Update.
7776 (arm_objfile_data_free): Remove.
7778 2019-06-27 Tom Tromey <tromey@adacore.com>
7780 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7781 to cp_print_static_field.
7783 2019-06-26 Tom Tromey <tromey@adacore.com>
7785 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7786 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7789 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7791 * features/aarch64-core.c (create_feature_aarch64_core):
7793 * features/aarch64-core.xml: Add cpsr flags.
7795 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7797 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7798 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7800 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7802 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7804 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7806 (arm_record_special_symbol): Don't insert new symbol in sorted
7807 position, push it at the end.
7809 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7811 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7812 (arm_mapping_symbol_s): Remove.
7813 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7814 (arm_mapping_symbol_vec): New typedef.
7815 (struct arm_per_objfile): Add constructor.
7816 <section_maps>: Change type to
7817 std::unique_ptr<arm_mapping_symbol_vec[]>.
7818 (arm_compare_mapping_symbols): Remove.
7819 (arm_find_mapping_symbol): Adjust to section_maps type change.
7820 (arm_objfile_data_free): Call delete on arm_per_objfile.
7821 (arm_record_special_symbol): Adjust to section_maps type change.
7822 Allocate arm_per_objfile with new.
7824 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7826 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7827 with the command prefix.
7829 2019-06-25 Tom Tromey <tom@tromey.com>
7831 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7832 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7834 2019-06-25 Tom Tromey <tom@tromey.com>
7836 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7838 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7841 2019-06-25 Tom Tromey <tom@tromey.com>
7843 * tui/tui-winsource.c
7844 (tui_source_window_base::set_is_exec_point_at): Add check against
7847 2019-06-25 Tom Tromey <tom@tromey.com>
7849 * tui/tui-source.c (tui_set_source_content): Don't check before
7851 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7855 * tui/tui-winsource.h (tui_update_source_window_as_is)
7856 (tui_alloc_source_buffer, tui_line_is_displayed)
7857 (tui_addr_is_displayed): Change type of win_info.
7858 * tui/tui-winsource.c (tui_update_source_window_as_is)
7859 (tui_clear_source_content, tui_show_source_line)
7860 (tui_show_source_content, tui_source_window_base::refill)
7861 (tui_source_window_base::set_is_exec_point_at)
7862 (tui_source_window_base::set_is_exec_point_at)
7863 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7864 (tui_alloc_source_buffer, tui_line_is_displayed)
7865 (tui_addr_is_displayed): Change type of win_info. Update.
7866 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7867 (tui_source_window_base::do_make_visible_with_new_height):
7869 * tui/tui-source.c (tui_set_source_content)
7870 (tui_set_source_content_nil)
7871 (tui_source_window::do_scroll_vertical): Update.
7872 * tui/tui-layout.c (show_layout): Update.
7873 * tui/tui-disasm.c (tui_set_disassem_content)
7874 (tui_disasm_window::do_scroll_vertical): Update.
7875 * tui/tui-data.h (tui_win_content): Remove.
7876 (struct tui_gen_win_info) <content, content_size>: Remove.
7877 (struct tui_source_element): Add initializers and destructor.
7878 (union tui_which_element, struct tui_win_element): Remove.
7879 (struct tui_source_window_base) <content>: New field.
7880 (struct tui_data_window): Remove destructor.
7881 (tui_alloc_content, tui_free_win_content)
7882 (tui_free_all_source_wins_content): Don't declare.
7883 * tui/tui-data.c (tui_initialize_static_data): Update.
7884 (init_content_element, tui_alloc_content): Remove.
7885 (~tui_gen_win_info): Update.
7886 (~tui_data_window, tui_free_all_source_wins_content)
7887 (tui_free_win_content, free_content, free_content_elements):
7890 2019-06-25 Tom Tromey <tom@tromey.com>
7892 * tui/tui-winsource.h (tui_clear_source_content)
7893 (tui_erase_source_content, tui_show_source_content): Change type
7895 * tui/tui-winsource.c (tui_clear_source_content)
7896 (tui_erase_source_content, tui_show_source_content): Change type
7898 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7899 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7901 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7903 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7905 2019-06-25 Tom Tromey <tom@tromey.com>
7907 * tui/tui-winsource.c (tui_clear_source_content)
7908 (tui_source_window_base::set_is_exec_point_at): Update.
7909 * tui/tui-source.c (tui_set_source_content_nil): Update.
7910 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7912 * tui/tui-data.c (init_content_element): Update.
7914 2019-06-25 Tom Tromey <tom@tromey.com>
7916 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7917 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7918 * tui/tui-layout.c (init_and_make_win): Update.
7919 * tui/tui.h (enum tui_win_type): Update.
7920 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7921 tui_win_is_auxillary.
7922 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7923 tui_win_is_auxillary.
7925 2019-06-25 Tom Tromey <tom@tromey.com>
7927 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7928 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7929 (tui_delete_data_content_windows, tui_display_all_data)
7930 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7932 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7933 * tui/tui-regs.c (tui_last_regs_line_no)
7934 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7935 (tui_show_registers): Update.
7936 (tui_show_register_group): Return void. Update.
7937 (tui_display_registers_from, tui_display_reg_element_at_line)
7938 (tui_display_registers_from_line, tui_check_register_values):
7940 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7942 (struct tui_data_window) <regs_content>: Now a std::vector.
7943 <regs_content_count>: Remove.
7944 (tui_add_content_elements, tui_free_data_content): Don't declare.
7945 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7946 (init_content_element): Remove DATA_WIN case. Add assert.
7947 (tui_add_content_elements): Remove.
7948 (tui_data_window): Update.
7949 (tui_free_data_content): Remove.
7950 (free_content_elements): Remove DATA_WIN case.
7952 2019-06-25 Tom Tromey <tom@tromey.com>
7954 * tui/tui-data.c (tui_data_item_window): Update.
7955 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7956 * tui/tui-windata.c (tui_display_all_data)
7957 (tui_display_data_from_line): Update.
7958 (tui_check_data_values): Remove.
7959 * tui/tui-regs.c (tui_show_register_group)
7960 (tui_display_reg_element_at_line): Update.
7961 * tui/tui-hooks.c (tui_register_changed)
7962 (tui_refresh_frame_and_register_information): Call
7963 tui_check_register_values.
7964 * tui/tui-data.h (struct tui_data_window) <data_content,
7965 data_content_count, data_type>: Remove.
7966 (enum tui_data_type): Remove.
7968 * tui/tui-data.c (tui_data_window::clear_detail)
7969 (~tui_data_window): Update.
7971 2019-06-25 Tom Tromey <tom@tromey.com>
7973 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7975 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7976 Rename from tui_first_data_item_displayed. Update.
7977 (tui_data_window::refresh_all)
7978 (tui_data_window::do_scroll_vertical): Update.
7979 * tui/tui-data.h (struct tui_data_window)
7980 <first_data_item_displayed>: Declare new method.
7982 2019-06-25 Tom Tromey <tom@tromey.com>
7984 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7985 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7987 (tui_initialize_static_data): ...here.
7989 2019-06-25 Tom Tromey <tom@tromey.com>
7991 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7992 (tui_display_registers_from, tui_check_register_values): Update.
7993 (tui_display_register): Remove win_info parameter; update.
7994 (tui_get_register): Change type of parameters.
7995 * tui/tui-data.h (struct tui_data_element): Remove.
7996 (union tui_which_element) <data>: Remove.
7997 <data_window>: Change type.
7998 (struct tui_data_item_window): New.
7999 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8001 (~tui_data_item_window): New destructor.
8002 (free_content_elements): Remove DATA_ITEM_WIN case.
8004 2019-06-25 Tom Tromey <tom@tromey.com>
8006 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8009 2019-06-25 Tom Tromey <tom@tromey.com>
8011 * tui/tui-data.h (struct tui_command_element): Remove.
8012 (union tui_which_element) <command>: Remove.
8013 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8015 (free_content_elements): Remove CMD_WIN case.
8017 2019-06-25 Tom Tromey <tom@tromey.com>
8019 * tui/tui-layout.c (tui_set_layout): Update.
8020 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8021 * tui/tui-data.c (layout_def): Update.
8023 2019-06-25 Tom Tromey <tom@tromey.com>
8025 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8026 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8027 (tui_source_window_base::set_new_height): Update.
8028 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8030 (tui_set_locator_fullname, tui_set_locator_info)
8031 (tui_show_frame_info): Update.
8032 * tui/tui-source.c (tui_set_source_content)
8033 (tui_source_is_displayed): Update.
8034 * tui/tui-layout.c (show_source_disasm_command, show_data)
8035 (show_source_or_disasm_and_command): Update.
8036 * tui/tui-disasm.c (tui_set_disassem_content)
8037 (tui_get_begin_asm_address): Update.
8038 * tui/tui-data.h (struct tui_locator_element): Remove.
8039 (union tui_which_element) <locator>: Remove.
8040 (struct tui_locator_window): New.
8041 (tui_locator_win_info_ptr): Change return type.
8042 * tui/tui-data.c (_locator): Change type.
8043 (tui_locator_win_info_ptr): Change return type.
8044 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8045 (tui_alloc_content): Add assert.
8047 2019-06-25 Tom Tromey <tom@tromey.com>
8049 * tui/tui-winsource.c
8050 (tui_exec_info_window::maybe_allocate_content): New method.
8051 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8052 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8053 (make_source_or_disasm_window): Add cast.
8054 * tui/tui-data.h (union tui_which_element) <simple_string>:
8056 (struct tui_source_info): New.
8057 (struct tui_source_window_base) <execution_info>: Change type.
8058 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8059 case, and add assert.
8060 (tui_alloc_content): Add assert.
8062 2019-06-25 Tom Tromey <tom@tromey.com>
8064 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8065 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8066 * tui/tui-data.c (tui_alloc_win_info): Remove.
8068 2019-06-25 Tom Tromey <tom@tromey.com>
8070 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8071 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8074 2019-06-25 Tom Tromey <tom@tromey.com>
8076 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8077 make_visible_with_new_height method.
8078 (tui_win_info::make_visible_with_new_height): New method.
8079 (tui_source_window_base::do_make_visible_with_new_height)
8080 (tui_data_window::do_make_visible_with_new_height)
8081 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8082 (make_visible_with_new_height): Remove.
8083 (tui_resize_all, tui_adjust_win_heights): Use
8084 make_visible_with_new_height method.
8085 * tui/tui-data.h (struct tui_win_info)
8086 <do_make_visible_with_new_height, make_visible_with_new_height>:
8088 (struct tui_source_window_base, struct tui_data_window)
8089 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8092 2019-06-25 Tom Tromey <tom@tromey.com>
8094 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8096 (update_tab_width): Call update_tab_width method.
8097 * tui/tui-data.h (struct tui_win_info)
8098 (struct tui_source_window_base) <update_tab_width>: New methods.
8100 2019-06-25 Tom Tromey <tom@tromey.com>
8102 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8104 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8106 (tui_gen_win_info::make_visible): Update.
8107 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8109 * tui/tui-data.h (enum tui_box): New enum.
8110 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8112 2019-06-25 Tom Tromey <tom@tromey.com>
8114 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8115 init_and_make_win for EXEC_INFO_WIN.
8116 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8118 (struct tui_win_info) <~tui_win_info>: Inline.
8119 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8121 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8122 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8124 (tui_initialize_static_data): Update.
8125 (~tui_gen_win_info): Handle more cleanup here.
8126 (~tui_source_window_base): Delete "execution_info".
8127 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8129 2019-06-25 Tom Tromey <tom@tromey.com>
8131 * tui/tui-layout.c (make_command_window): Don't set
8133 (show_source_disasm_command): Call the reset method.
8134 (show_data): Don't set can_highlight. Call the reset method.
8135 (tui_gen_win_info::reset): Rename from init_gen_win_info
8136 (init_and_make_win): Simplify. Return tui_gen_win_info.
8137 (show_source_or_disasm_and_command): Call the reset method.
8138 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8139 (struct tui_cmd_window): Set can_highlight.
8141 2019-06-25 Tom Tromey <tom@tromey.com>
8143 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8145 (tui_make_visible, tui_make_invisible): Rewrite.
8146 (tui_win_info::make_visible): Remove.
8147 (tui_source_window_base::make_visible): Update.
8148 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8149 method. Moved from...
8150 (struct tui_win_info) <make_visible>: ...here.
8152 2019-06-25 Tom Tromey <tom@tromey.com>
8154 * tui/tui-winsource.c
8155 (tui_source_window_base::do_scroll_horizontal): Remove direction
8157 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8158 direction parameter.
8159 * tui/tui-win.c (tui_win_info::forward_scroll)
8160 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8161 (tui_win_info::right_scroll): Update.
8162 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8163 direction parameter.
8164 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8165 direction parameter.
8166 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8167 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8168 Remove direction parameter.
8169 (struct tui_source_window_base, struct tui_source_window)
8170 (struct tui_disasm_window, struct tui_data_window)
8171 (struct tui_cmd_window): Update.
8173 2019-06-25 Tom Tromey <tom@tromey.com>
8175 * tui/tui-winsource.h (tui_set_exec_info_content)
8176 (tui_show_exec_info_content, tui_erase_exec_info_content)
8177 (tui_clear_exec_info_content, tui_update_exec_info): Change
8178 argument to tui_source_window_base.
8179 * tui/tui-winsource.c (tui_set_exec_info_content)
8180 (tui_show_exec_info_content, tui_erase_exec_info_content)
8181 (tui_clear_exec_info_content, tui_update_exec_info): Change
8182 argument to tui_source_window_base.
8184 2019-06-25 Tom Tromey <tom@tromey.com>
8186 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8187 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8189 2019-06-25 Tom Tromey <tom@tromey.com>
8191 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8194 2019-06-25 Tom Tromey <tom@tromey.com>
8196 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8198 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8200 * tui/tui-source.c (tui_set_source_content): Update.
8201 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8203 2019-06-25 Tom Tromey <tom@tromey.com>
8205 * tui/tui-win.c (window_name_completer, tui_set_focus)
8206 (tui_all_windows_info): Use name method.
8207 * tui/tui-data.h (struct tui_gen_win_info)
8208 (struct tui_source_window, struct tui_disasm_window)
8209 (struct tui_data_window, struct tui_cmd_window) <name>: New
8211 (tui_win_name): Don't declare.
8212 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8213 (tui_win_name): Remove.
8215 2019-06-25 Tom Tromey <tom@tromey.com>
8217 * tui/tui-winsource.h (tui_update_source_window)
8218 (tui_update_source_window_as_is): Change parameter type.
8219 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8220 to be a tui_source_window_base.
8221 (tui_update_source_window_as_is): Likewise.
8222 * tui/tui-win.c (make_visible_with_new_height): Update.
8224 2019-06-25 Tom Tromey <tom@tromey.com>
8226 * tui/tui-winsource.c (tui_erase_source_content)
8227 (tui_show_source_content, tui_show_exec_info_content)
8228 (tui_erase_exec_info_content): Use refresh_window method.
8229 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8230 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8231 from tui_refresh_win.
8232 (tui_data_window::refresh_window): New method.
8233 (tui_win_info::refresh, tui_source_window_base::refresh)
8234 (tui_refresh_all): Use refresh_window method.
8235 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8237 * tui/tui-regs.c (tui_display_register): Call refresh_window
8239 * tui/tui-layout.c (show_source_disasm_command)
8240 (show_source_or_disasm_and_command): Call refresh_window method.
8241 * tui/tui-data.h (struct tui_gen_win_info)
8242 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8247 * tui/tui.c (tui_rl_other_window, tui_enable)
8248 (tui_is_window_visible, tui_get_command_dimension): Update.
8249 * tui/tui-winsource.c (tui_update_source_window_as_is)
8250 (tui_clear_source_content, tui_erase_source_content)
8251 (tui_show_source_line, tui_source_window_base::refill)
8252 (tui_source_window_base::do_scroll_horizontal)
8253 (tui_source_window_base::set_is_exec_point_at)
8254 (tui_update_breakpoint_info, tui_set_exec_info_content)
8255 (tui_alloc_source_buffer, tui_line_is_displayed)
8256 (tui_addr_is_displayed): Update.
8257 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8258 (tui_check_and_display_highlight_if_needed)
8259 (tui_win_info::make_visible, tui_win_info::refresh)
8260 (tui_refresh_all): Update.
8261 * tui/tui-windata.c (tui_first_data_item_displayed)
8262 (tui_delete_data_content_windows, tui_erase_data_content)
8263 (tui_display_all_data, tui_data_window::refresh_all)
8264 (tui_check_data_values): Update.
8265 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8266 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8267 (tui_win_info::backward_scroll, tui_refresh_all_win)
8268 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8269 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8270 (tui_source_window_base::set_new_height)
8271 (tui_data_window::set_new_height)
8272 (make_invisible_and_set_new_height)
8273 (make_visible_with_new_height, new_height_ok)
8274 (parse_scrolling_args): Update.
8275 * tui/tui-stack.c (tui_show_frame_info): Update.
8276 * tui/tui-source.c (tui_set_source_content)
8277 (tui_set_source_content_nil, tui_source_is_displayed)
8278 (tui_source_window::do_scroll_vertical): Update.
8279 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8280 (tui_display_registers_from, tui_display_reg_element_at_line)
8281 (tui_check_register_values, tui_reg_command): Update.
8282 * tui/tui-layout.c (tui_default_win_height)
8283 (show_source_disasm_command, show_data, init_and_make_win)
8284 (show_source_or_disasm_and_command): Update.
8285 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8286 (tui_redisplay_readline, tui_mld_flush)
8287 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8289 * tui/tui-disasm.c (tui_set_disassem_content)
8290 (tui_disasm_window::do_scroll_vertical): Update.
8291 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8293 (struct tui_win_info): Derive from tui_gen_win_info.
8294 <~tui_win_info>: Mark as override.
8295 <generic>: Remove member.
8296 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8297 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8298 (~tui_data_window, ~tui_win_info)
8299 (tui_free_all_source_wins_content): Update.
8300 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8302 2019-06-25 Tom Tromey <tom@tromey.com>
8304 * tui/tui-layout.c (init_and_make_win): Use new.
8305 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8306 destructor, initializers.
8307 (tui_alloc_generic_win_info): Don't declare.
8308 * tui/tui-data.c (_locator): Add argument to constructor.
8309 (source_win, disasm_win): New globals.
8310 (exec_info): Remove.
8311 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8313 (tui_alloc_generic_win_info): Remove.
8314 (init_content_element): Use new.
8315 (tui_win_info::tui_win_info): Update.
8316 (free_content_elements) <case DATA_WIN>: Use delete.
8318 2019-06-25 Tom Tromey <tom@tromey.com>
8320 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8321 * tui/tui-windata.c (tui_first_data_item_displayed)
8322 (tui_delete_data_content_windows): Update.
8323 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8324 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8325 (tui_display_registers_from, tui_check_register_values): Update.
8326 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8328 * tui/tui-data.c (init_content_element): Update. Allocate the new
8330 (tui_free_data_content): Update.
8331 (free_content_elements) <case DATA_WIN>: Free the window.
8333 2019-06-25 Tom Tromey <tom@tromey.com>
8335 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8337 * tui/tui-layout.c (make_command_window)
8338 (show_source_disasm_command, show_data, init_and_make_win)
8339 (show_source_or_disasm_and_command): Update.
8340 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8342 <can_highight, is_highlighted>: Now bool.
8343 (tui_set_win_highlight): Don't declare.
8344 * tui/tui-data.c (tui_set_win_highlight): Remove.
8346 2019-06-25 Tom Tromey <tom@tromey.com>
8348 * tui/tui-wingeneral.c (make_visible): Remove check of window
8351 2019-06-25 Tom Tromey <tom@tromey.com>
8353 * tui/tui-win.c (tui_win_info::max_height)
8354 (tui_cmd_window::max_height): New methods.
8355 (new_height_ok): Call max_height.
8356 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8357 <max_height>: New method.
8359 2019-06-25 Tom Tromey <tom@tromey.com>
8361 * tui/tui-win.c (tui_source_window_base::set_new_height)
8362 (tui_data_window::set_new_height): New methods.
8363 (make_invisible_and_set_new_height): Call set_new_height method.
8364 * tui/tui-data.h (struct tui_win_info)
8365 (struct tui_source_window_base, struct tui_data_window)
8366 <set_new_height>: New method.
8368 2019-06-25 Tom Tromey <tom@tromey.com>
8370 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8371 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8372 tui_refresh_data_win.
8373 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8375 (tui_refresh_all_win): Call the refresh_all method.
8376 (tui_set_focus): Likewise.
8377 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8378 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8381 2019-06-25 Tom Tromey <tom@tromey.com>
8383 * tui/tui-winsource.h (tui_refill_source_window)
8384 (tui_set_is_exec_point_at): Don't declare.
8385 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8386 (tui_source_window_base::refill): Rename from
8387 tui_refill_source_window.
8388 (tui_source_window_base::do_scroll_horizontal): Update.
8389 (tui_source_window_base::set_is_exec_point_at): Rename from
8390 tui_set_is_exec_point_at.
8391 (tui_update_all_breakpoint_info): Update.
8392 * tui/tui-stack.c (tui_show_frame_info): Update.
8393 * tui/tui-layout.c (show_data): Add cast.
8394 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8395 * tui/tui-data.h (struct tui_source_window_base) <refill,
8396 set_is_exec_point_at>: New methods.
8397 (tui_source_windows, tui_add_to_source_windows): Update types.
8398 (tui_add_to_source_windows): Remove redundant declaration.
8399 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8400 (tui_source_windows): Change return type.
8401 (tui_clear_source_windows_detail): Update.
8402 (tui_add_to_source_windows): Change type of parameter.
8403 (tui_free_all_source_wins_content): Update.
8405 2019-06-25 Tom Tromey <tom@tromey.com>
8407 * tui/tui-wingeneral.c (tui_win_info::refresh)
8408 (tui_source_window_base::refresh): New methods.
8409 (tui_refresh_all): Call the refresh method.
8410 * tui/tui-data.h (struct tui_win_info)
8411 (struct tui_source_window_base) <refresh>: New method.
8413 2019-06-25 Tom Tromey <tom@tromey.com>
8415 * tui/tui.h (tui_is_window_visible): Return bool.
8416 * tui/tui.c (tui_is_window_visible): Return bool.
8417 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8418 (tui_make_visible, tui_make_invisible)
8419 (tui_win_info::make_visible)
8420 (tui_source_window_base::make_visible, make_all_visible)
8421 (tui_make_all_visible, tui_make_all_invisible): Update.
8422 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8423 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8425 (struct tui_win_info, struct tui_source_window_base)
8426 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8427 * tui/tui-data.c (tui_init_generic_part): Update.
8429 2019-06-25 Tom Tromey <tom@tromey.com>
8431 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8432 (tui_source_window_base::make_visible): New methods.
8433 (make_all_visible): Make method call.
8434 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8435 (struct tui_source_window_base, struct tui_cmd_window): Override
8437 (tui_win_is_source_type): Don't declare.
8438 * tui/tui-data.c (tui_win_is_source_type): Remove.
8440 2019-06-25 Tom Tromey <tom@tromey.com>
8442 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8445 2019-06-25 Tom Tromey <tom@tromey.com>
8447 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8448 Inline constructor. Add initializers for members.
8449 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8450 constructors; now inline in class.
8452 2019-06-25 Tom Tromey <tom@tromey.com>
8454 * tui/tui-regs.c (tui_show_registers): Update.
8455 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8457 * tui/tui-data.c (tui_data_window::clear_detail)
8458 (tui_data_window): Update.
8460 2019-06-25 Tom Tromey <tom@tromey.com>
8462 * tui/tui-windata.c (tui_display_all_data)
8463 (tui_display_data_from_line, tui_display_data_from)
8464 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8466 * tui/tui-regs.c (tui_last_regs_line_no)
8467 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8468 (tui_show_registers, tui_show_register_group)
8469 (tui_display_registers_from, tui_display_reg_element_at_line)
8470 (tui_display_registers_from_line, tui_check_register_values)
8471 (tui_reg_next, tui_reg_prev): Update.
8472 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8473 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8475 (struct tui_win_info) <detail>: Remove. Add new fields from
8477 (TUI_DATA_WIN): Add cast.
8478 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8479 (~tui_data_window): Simplify.
8481 2019-06-25 Tom Tromey <tom@tromey.com>
8483 * tui/tui-layout.c (show_source_disasm_command)
8484 (show_source_or_disasm_and_command): Update.
8485 * tui/tui-io.c (update_cmdwin_start_line)
8486 (tui_redisplay_readline): Update.
8487 * tui/tui-data.h (struct tui_command_info): Remove.
8488 (struct tui_win_info) <detail>: Remove command_info member.
8489 (struct tui_data_window) <start_line>: New member, from
8491 (TUI_CMD_WIN): Add casts.
8493 2019-06-25 Tom Tromey <tom@tromey.com>
8495 * tui/tui-winsource.c (tui_update_source_window)
8496 (tui_refill_source_window)
8497 (tui_source_window_base::do_scroll_horizontal)
8498 (tui_update_breakpoint_info, tui_set_exec_info_content)
8499 (tui_show_exec_info_content, tui_erase_exec_info_content)
8500 (tui_clear_exec_info_content): Update.
8501 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8503 * tui/tui-win.c (make_invisible_and_set_new_height)
8504 (make_visible_with_new_height): Update.
8505 * tui/tui-source.c (tui_set_source_content)
8506 (tui_show_symtab_source): Update.
8507 * tui/tui-layout.c (extract_display_start_addr)
8508 (show_source_disasm_command, show_data)
8509 (make_source_or_disasm_window)
8510 (show_source_or_disasm_and_command): Update.
8511 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8512 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8514 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8515 to tui_source_window_base.
8516 (struct tui_win_info) <detail>: Remove source_info member.
8517 (struct tui_source_window_base) <has_locator>: Inline.
8518 Move contents from tui_source_info; rename has_locator member to
8520 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8521 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8523 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8525 (tui_free_all_source_wins_content): Cast to
8526 tui_source_window_base.
8528 2019-06-25 Tom Tromey <tom@tromey.com>
8530 * tui/tui-win.c (make_invisible_and_set_new_height)
8531 (make_visible_with_new_height): Call has_locator method.
8532 * tui/tui-layout.c (show_source_disasm_command, show_data)
8533 (show_source_or_disasm_and_command): Update for bool change.
8534 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8535 (tui_win_info) <has_locator>: New method.
8536 (struct tui_source_window_base) <has_locator>: New method.
8537 (tui_win_has_locator): Don't declare.
8538 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8539 from tui_win_has_locator.
8540 (tui_source_window_base): Use false, not FALSE.
8542 2019-06-25 Tom Tromey <tom@tromey.com>
8544 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8545 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8546 clear_detail method directly.
8547 (tui_clear_win_detail): Remove.
8549 2019-06-25 Tom Tromey <tom@tromey.com>
8551 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8552 "this", not TUI_DISASM_WIN.
8554 2019-06-25 Tom Tromey <tom@tromey.com>
8556 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8558 * tui/tui-winsource.c
8559 (tui_source_window_base::do_scroll_horizontal): Rename from
8560 tui_horizontal_source_scroll.
8561 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8562 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8563 from tui_vertical_data_scroll.
8564 * tui/tui-win.h (tui_scroll): Don't declare.
8565 * tui/tui-win.c (tui_win_info::forward_scroll)
8566 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8567 (tui_win_info::right_scroll): Rename and update.
8568 (tui_scroll_forward_command, tui_scroll_backward_command)
8569 (tui_scroll_left_command, tui_scroll_right_command): Update.
8570 (tui_scroll): Remove.
8571 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8572 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8573 from tui_vertical_source_scroll.
8574 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8575 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8576 from tui_vertical_disassem_scroll.
8577 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8578 do_scroll_horizontal>: New methods.
8579 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8581 (struct tui_source_window_base): Add do_scroll_horizontal.
8582 (struct tui_source_window, struct tui_disasm_window): Add
8584 (struct tui_data_window, struct tui_cmd_window): Add
8585 do_scroll_horizontal and do_scroll_vertical.
8586 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8588 2019-06-25 Tom Tromey <tom@tromey.com>
8590 * tui/tui-data.h (struct tui_source_window_base): New struct.
8591 (struct tui_source_window): Derive from tui_source_window_base.
8592 (struct tui_disasm_window): New struct.
8593 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8594 from tui_source_window::clear_detail.
8595 (tui_source_window_base): Rename from tui_source_window.
8596 (~tui_source_window_base): Rename from ~tui_source_window.
8597 (tui_alloc_win_info): Create a tui_disasm_window.
8599 2019-06-25 Tom Tromey <tom@tromey.com>
8601 * tui/tui-data.h (struct tui_source_window)
8602 (struct tui_data_window): Declare destructors.
8603 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8605 (tui_win_info): Simplify.
8607 2019-06-25 Tom Tromey <tom@tromey.com>
8609 * tui/tui-winsource.c (tui_display_main)
8610 (tui_update_source_windows_with_addr)
8611 (tui_update_all_breakpoint_info): Update.
8612 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8613 (new_height_ok, parse_scrolling_args): Update.
8614 * tui/tui-stack.c (tui_show_frame_info): Update.
8615 * tui/tui-data.h (struct tui_list): Remove.
8616 (tui_source_windows): Return a reference to a std::vector.
8617 * tui/tui-data.c (source_windows): Now a std::vector.
8618 (tui_source_windows): Change return type.
8619 (tui_clear_source_windows): Rewrite.
8620 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8621 (tui_free_all_source_wins_content): Rewrite.
8623 2019-06-25 Tom Tromey <tom@tromey.com>
8625 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8626 (struct tui_data_window, struct tui_cmd_window): Declare
8627 clear_detail method.
8628 * tui/tui-data.c (tui_source_window::clear_detail)
8629 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8631 (tui_clear_win_detail): Simplify.
8633 2019-06-25 Tom Tromey <tom@tromey.com>
8635 * tui/tui-layout.c (make_source_window, make_disasm_window)
8636 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8637 Return the new window.
8638 (show_source_disasm_command, show_data)
8639 (show_source_or_disasm_and_command): Update.
8641 2019-06-25 Tom Tromey <tom@tromey.com>
8643 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8644 parameter. Return the new window.
8645 (show_source_disasm_command): Update and remove NULL check.
8646 (show_source_or_disasm_and_command): Update.
8648 2019-06-25 Tom Tromey <tom@tromey.com>
8650 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8652 2019-06-25 Tom Tromey <tom@tromey.com>
8654 * tui/tui-data.h (struct tui_win_info): Make constructor
8655 protected. Make destructor virtual. Add initializers.
8656 (tui_source_window, tui_data_window, tui_cmd_window): New
8658 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8659 constructor. Add "type" parameter.
8660 (tui_source_window, tui_data_window, tui_cmd_window): New
8662 (tui_alloc_win_info): Instantiate the appropriate subclass.
8664 2019-06-25 Tom Tromey <tom@tromey.com>
8666 * tui/tui-win.c (tui_resize_all): Use delete.
8667 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8669 (tui_free_window): Don't declare.
8670 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8673 2019-06-25 Tom Tromey <tom@tromey.com>
8675 * tui/tui-data.h (struct tui_win_info): Add constructor.
8676 * tui/tui-data.c (tui_alloc_win_info): Use new.
8677 (tui_free_window): Use delete.
8679 2019-06-22 Tom Tromey <tom@tromey.com>
8681 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8683 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8685 2019-06-22 Tom Tromey <tom@tromey.com>
8687 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8689 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8691 2019-06-22 Tom de Vries <tdevries@suse.de>
8693 * dwarf2read.c (create_addrmap_from_aranges)
8694 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8697 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8699 * dwarf2read.h (dwarf2_section_info_def): Remove.
8700 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8701 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8702 std::vector<dwarf2_section_info>.
8703 (struct dwo_file) <~dwo_file>: Remove.
8704 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8706 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8707 (dwarf2_read_debug_names): Likewise.
8708 (create_debug_types_hash_table): Change parameter type to
8709 array_view, adjust code accordingly.
8710 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8711 (partial_die_info::fixup): Likewise.
8712 (determine_prefix): Likewise.
8713 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8715 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8717 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8719 <~dwo_file>: Remove call to gdb_bfd_unref.
8720 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8721 gdb_bfd_ref_ptr::get.
8723 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8725 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8727 * dwarf2read.c (struct dwo_file): Initialize fields.
8729 (free_dwo_file): Remove, move content to ~dwo_file.
8730 (struct dwo_file_deleter): Remove.
8731 (dwo_file_up>: Remove custom deleter.
8732 (free_dwo_files): Remove.
8733 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8735 (process_skeletonless_type_units): Call unique_ptr::get.
8736 (allocate_dwo_file_hash_table): Add deleter to created hash
8737 table. Change return type to htab_up.
8738 (lookup_dwo_file_slot): Don't memset dwo_file, call
8740 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8741 (create_dwo_unit_in_dwp_v2): Likewise.
8742 (open_and_init_dwo_file): Likewise.
8743 (free_dwo_file_from_slot): Remove.
8745 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8747 * dwarf2read.h (struct dwarf2_section_info) <readin,
8748 is_virtual>: Change type to bool.
8749 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8752 2019-06-19 Tom Tromey <tom@tromey.com>
8754 * tui/tui-data.h (tui_init_content_element): Don't declare.
8756 2019-06-19 Tom Tromey <tom@tromey.com>
8758 * tui/tui-data.h (tui_init_win_info): Don't declare.
8760 2019-06-19 Tom de Vries <tdevries@suse.de>
8762 * dwarf2read.h (abstract_to_concrete): Change type to
8763 std::unordered_map<sect_offset, std::vector<sect_offset>,
8764 gdb::hash_enum<sect_offset>>.
8766 2019-06-19 Tom Tromey <tromey@adacore.com>
8768 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8769 EVAL_AVOID_SIDE_EFFECTS specially.
8771 2019-06-19 Tom Tromey <tromey@adacore.com>
8773 * source-cache.c (highlighter): New global.
8774 (source_cache::get_source_lines): Create a highlighter on demand.
8776 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8778 * defs.h (deprecated_interactive_hook): Delete declaration.
8779 * interps.c (clear_interpreter_hooks): Remove use of
8780 deprecated_interactive_hook.
8781 * top.c (deprecated_interactive_hook): Delete definition.
8782 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8784 2019-06-18 Tom de Vries <tdevries@suse.de>
8787 * dwarf2read.h (abstract_to_concrete): Change type from
8788 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8789 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8790 * dwarf2read.c (read_variable): Update.
8791 (dwarf2_fetch_die_loc_sect_off): Update.
8793 2019-06-17 Tom de Vries <tdevries@suse.de>
8796 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8797 accessing parent[parent_len - 1].
8799 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8802 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8803 call dtrace_process_dof with NULL dof.
8805 2019-06-16 Tom de Vries <tdevries@suse.de>
8808 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8810 2019-06-16 Tom Tromey <tom@tromey.com>
8812 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8813 (make_all_visible): Use address of member.
8815 2019-06-16 Tom Tromey <tom@tromey.com>
8817 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8818 (tui_free_window, free_content, free_content_elements): Remove
8820 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8822 * tui/tui-regs.c (tui_show_register_group)
8823 (tui_display_registers_from, tui_display_reg_element_at_line):
8824 Remove unnecessary cast.
8826 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8828 * linux-nat.c (normal_mask): Delete.
8829 (_initialize_linux_nat): Don't initialise normal_mask.
8831 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8834 * dwarf-index-write.h (write_psymtabs_to_index): Add
8835 dwz_basename parameter.
8836 * dwarf-index-write.c (write_gdbindex): Move file writing to
8837 write_gdbindex_1. Change return type void.
8838 (assert_file_size): Move up, remove filename parameter.
8839 (write_gdbindex_1): New function.
8840 (write_debug_names): Change return type to void, call
8842 (struct index_wip_file): New struct.
8843 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8844 file logic to index_wip_file. Write index for dwz file if
8846 (save_gdb_index_command): Pass basename of dwz file, if present.
8847 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8848 build-id of dwz file, if present.
8849 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8850 (dwarf2_get_dwz_file): Likewise.
8851 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8852 (dwarf2_get_dwz_file): Likewise.
8854 2019-06-16 Tom Tromey <tom@tromey.com>
8856 * coffread.c (process_coff_symbol): Use xstrdup.
8857 * value.c (create_internalvar): Use xstrdup.
8859 2019-06-16 Tom Tromey <tom@tromey.com>
8861 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8862 * breakpoint.c (stopin_command, stopat_command)
8863 (until_break_command, decode_location_default): Remove unnecessary
8865 * utils.c (subset_compare): Remove unnecessary cast.
8866 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8868 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8870 * infcmd.c (path_command): Remove unnecessary cast.
8871 * coffread.c (decode_type): Remove unnecessary cast.
8872 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8873 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8874 * tui/tui-stack.c (tui_show_locator_content)
8875 (tui_show_frame_info): Remove unnecessary cast.
8876 * tui/tui-win.c (tui_scroll_forward_command)
8877 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8878 (parse_scrolling_args): Remove unnecessary cast.
8879 * tui/tui-data.c (init_win_info, tui_del_window)
8880 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8881 (free_content_elements): Remove unnecessary cast.
8882 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8884 * tui/tui-source.c (tui_set_source_content)
8885 (tui_vertical_source_scroll): Remove unnecessary cast.
8886 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8888 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8889 * tui/tui-regs.c (tui_display_registers_from)
8890 (tui_display_register): Remove unnecessary cast.
8891 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8892 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8893 (make_visible): Remove unnecessary cast.
8894 * tui/tui-winsource.c (tui_erase_source_content)
8895 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8897 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8898 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8899 * stabsread.c (read_type, read_array_type, read_range_type):
8900 Remove unnecessary cast.
8901 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8902 (parse_symbol, parse_type, upgrade_type, parse_external)
8903 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8905 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8907 2019-06-16 Tom Tromey <tom@tromey.com>
8909 * tui/tui-data.c (tui_alloc_generic_win_info)
8910 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8913 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8914 Andrew Burgess <andrew.burgess@embecosm.com>
8916 * f-typeprint.c (f_print_type): Don't return early for not
8917 associated or not allocated types.
8918 (f_type_print_varspec_suffix): Add print_rank parameter and print
8919 ranks of array types in case they dangling.
8920 (f_type_print_base): Add print_rank parameter.
8922 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8924 * NEWS: Mention new MI commands.
8925 * break-catch-throw.c (enum exception_event_kind): Move to
8927 (print_mention_exception_catchpoint): Output text as a single
8929 (catch_exception_command_1): Rename to...
8930 (catch_exception_event): ...this, make non-static, update header
8931 command, and change some parameter types.
8932 (catch_catch_command): Update for changes to
8933 catch_exception_command_1.
8934 (catch_throw_command): Likewise.
8935 (catch_rethrow_command): Likewise.
8936 * breakpoint.c (enum exception_event_kind): Delete.
8937 * breakpoint.h (enum exception_event_kind): Moved here from
8938 break-catch-throw.c.
8939 (catch_exception_event): Declare.
8940 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8941 (mi_cmd_catch_throw): New function.
8942 (mi_cmd_catch_rethrow): New function.
8943 (mi_cmd_catch_catch): New function.
8944 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8945 'catch-catch' entries.
8946 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8947 (mi_cmd_catch_rethrow): Declare.
8948 (mi_cmd_catch_catch): Declare.
8950 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8952 * annotate.c (annotate_source_line): Change return type to void,
8953 update implementation to match.
8954 * annotate.h (annotate_source_line): Change return type to void,
8955 update header comment.
8956 * stack.c (print_frame_info): Don't change what frame information
8957 is printed based on whether annotations are on or not.
8959 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8961 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8962 (annotate_source): Make static.
8963 (annotate_source_line): Moved from source.c and renamed from
8964 identify_source_line. Update the return type.
8965 * annotate.h (annotate_source): Delete declaration.
8966 (annotate_source_line): Declaration moved from source.h, and
8967 renamed from identify_source_line. Return type updated.
8968 * source.c (identify_source_line): Moved to annotate.c and renamed
8969 to annotate_source_line.
8970 (info_line_command): Remove check of annotation_level.
8971 * source.h (identify_source_line): Move declaration to annotate.h
8972 and rename to annotate_source_line.
8973 * stack.c: Add 'annotate.h' include.
8974 (print_frame_info): Remove check of annotation_level before
8975 calling annotate_source_line.
8977 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8979 * source-cache.c (source_cache::get_plain_source_lines): Use
8980 open_source_file_with_line_charpos instead of just
8981 open_source_file, remove call to find_source_lines.
8982 (source_cache::get_source_lines): Likewise.
8983 * source.c (find_source_lines): Make static.
8984 (get_filename_and_charpos): Renamed into...
8985 (open_source_file_with_line_charpos): ..this along with changes to
8986 return a scoped_fd, and some other minor clean ups.
8987 (identify_source_line): Use open_source_file_with_line_charpos.
8988 (search_command_helper): Use open_source_file_with_line_charpos
8989 instead of just open_source_file, remove call to
8991 * source.h (open_source_file_with_line_charpos): Declare new
8993 (find_source_lines): Delete declaration.
8995 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8997 * source.c (get_filename_and_charpos): Remove fullname
8999 (identify_source_line): Update call to get_filename_and_charpos.
9001 2019-06-14 Tom Tromey <tromey@adacore.com>
9004 * ui-style.h (skip_ansi_escape): Update comment.
9005 * ui-file.h (class no_terminal_escape_file): New class.
9006 * ui-file.c (no_terminal_escape_file::write)
9007 (no_terminal_escape_file::puts): New methods.
9008 * cli/cli-logging.c (handle_redirections): Use
9009 no_terminal_escape_file.
9011 2019-06-14 Tom Tromey <tromey@adacore.com>
9013 * NEWS: Move convenience variable news above Python news.
9015 2019-06-14 Tom Tromey <tom@tromey.com>
9017 * gnulib: Move directory to top-level.
9018 * configure.ac: Don't configure gnulib.
9019 * configure: Rebuild.
9020 * common/common-defs.h: Use new path to gnulib.
9021 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9023 (INCGNU): Look in new gnulib location.
9024 (HFILES_NO_SRCDIR): Remove gnulib files.
9025 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9026 (generated_files): Remove GNULIB_H.
9027 ($(LIBGNU), all-lib): Remove targets.
9028 (distclean): Don't mention GNULIB_BUILDDIR.
9029 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9031 2019-06-14 Tom Tromey <tromey@adacore.com>
9033 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9034 Warn if symbol file does not provide any symbols.
9036 2019-06-14 Tom Tromey <tromey@adacore.com>
9038 * source.c (find_and_open_source): Respect basenames_may_differ.
9040 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9042 * annotate.c (annotate_breakpoints_invalid): Make use of
9043 scoped_restore_terminal_state.
9044 (annotate_frames_invalid): Likewise.
9046 2019-06-14 Tom Tromey <tromey@adacore.com>
9048 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9049 allow assignment to an internalvar.
9051 2019-06-14 Tom Tromey <tromey@adacore.com>
9053 * ada-lex.l: Allow "_" in attribute names.
9055 2019-06-14 Tom Tromey <tromey@adacore.com>
9058 * regcache.c (registers_changed): Don't call alloca.
9059 * top.c (execute_command): Don't call alloca.
9061 2019-06-13 Pedro Alves <palves@redhat.com>
9063 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9064 'expression'. When parsing an expression, error out if there's
9065 junk after "unlimited".
9066 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9067 (do_set_command): Adjust calls to is_unlimited_literal.
9069 2019-06-13 Pedro Alves <palves@redhat.com>
9071 * compile/compile.c (make_compile_options_def_group): Add braces
9072 around array_view initializer.
9073 * thread.c (make_thread_apply_all_options_def_group)
9074 (make_thread_apply_all_options_def_group): Likewise.
9076 2019-06-13 Pedro Alves <palves@redhat.com>
9078 * NEWS (New commands): Mention "maint test-options
9079 require-delimiter", "maint test-options unknown-is-error", "maint
9080 test-options unknown-is-operand" and "maint show
9081 test-options-completion-result".
9082 (New command options, command completion): New section.
9083 (Completion improvements): New section.
9084 Mention that you can abbreviate "unlimited".
9086 2019-06-13 Pedro Alves <palves@redhat.com>
9088 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9089 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9090 * unittests/cli-utils-selftests.c (test_parse_flags)
9091 (test_parse_flags_qcs): Delete.
9092 (test_cli_utils): Don't call deleted functions.
9094 2019-06-13 Pedro Alves <palves@redhat.com>
9096 * thread.c: Include "cli/cli-option.h".
9097 (tp_array_compar_ascending): Global.
9098 (tp_array_compar): Delete function.
9099 (tp_array_compar_ascending, tp_array_compar_descending): New
9101 (ascending_option_def, qcs_flag_option_def)
9102 (thr_qcs_flags_option_defs)
9103 (make_thread_apply_all_options_def_group)
9104 (make_thread_apply_options_def_group): New.
9105 (thread_apply_all_command): Use gdb::option::process_options.
9106 (thread_apply_command_completer)
9107 (thread_apply_all_command_completer): New.
9108 (thread_apply_command): Use gdb::option::process_options.
9109 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9110 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9111 to generate help text of "thread apply". Adjust "taas"'s help.
9112 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9113 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9115 2019-06-13 Pedro Alves <palves@redhat.com>
9117 * thread.c (thread_apply_command): Check for invalid TID with
9118 isdigit instead of !isalpha.
9120 2019-06-13 Pedro Alves <palves@redhat.com>
9122 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9123 (validate_flags_qcs): New.
9124 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9125 (validate_flags_qcs): Declare.
9126 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9127 (make_frame_apply_options_def_group): New.
9128 (frame_apply_command_count): Process options with
9129 gdb::option::process_options.
9130 (frame_apply_completer): New.
9131 (frame_apply_level_completer, frame_apply_all_completer)
9132 (frame_apply_completer): New.
9133 (_initialize_stack): Update help of "frame apply", "frame apply
9134 level", "frame apply all" and "faas" to mention supported options
9135 and install command completers.
9136 * stack.h (frame_apply_all_completer): Declare.
9137 * thread.c: Include "stack.h".
9138 (tfaas_command): Add "--".
9139 (_initialize_thread): Update help "tfaas" to mention supported
9140 options and install command completer.
9142 2019-06-13 Pedro Alves <palves@redhat.com>
9144 * completer.c (complete_nested_command_line): New.
9145 (gdb_completion_word_break_characters_throw): Add assertion.
9146 * completer.h (complete_nested_command_line): Declare.
9148 2019-06-13 Pedro Alves <palves@redhat.com>
9150 * stack.c (parse_backtrace_qualifiers): New.
9151 (backtrace_command): Use it.
9152 (backtrace_command_completer): Complete on qualifiers.
9154 2019-06-13 Pedro Alves <palves@redhat.com>
9156 * frame.c: Include "cli/cli-option.h.
9157 (user_set_backtrace_options): New.
9158 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9160 (get_prev_frame): Adjust.
9161 (boolean_option_def, uinteger_option_def)
9162 (set_backtrace_option_defs): New.
9163 (_initialize_frame): Adjust and use
9164 gdb::option::add_setshow_cmds_for_options to install "set
9165 backtrace past-main" and "set backtrace past-entry".
9166 * frame.h: Include "cli/cli-option.h".
9167 (struct frame_print_options): Forward declare.
9168 (print_frame_arguments_all, print_frame_arguments_scalars)
9169 (print_frame_arguments_none): Declare.
9170 (print_entry_values): Delete declaration.
9171 (struct frame_print_options, user_frame_print_options): New.
9172 (struct set_backtrace_options): New.
9173 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9175 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9176 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9177 (list_args_or_locals): Add frame_print_options parameter.
9178 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9179 * python/py-framefilter.c (enumerate_args): Pass down
9180 USER_FRAME_PRINT_OPTIONS.
9181 * stack.c: Include "cli/cli-option.h".
9182 (print_frame_arguments_all, print_frame_arguments_scalars)
9183 (print_frame_arguments_none): Declare.
9184 (print_raw_frame_arguments, print_entry_values): Delete.
9185 (user_frame_print_options): New.
9186 (boolean_option_def, enum_option_def, frame_print_option_defs):
9188 (struct backtrace_cmd_options): New.
9189 (bt_flag_option_def): New.
9190 (backtrace_command_option_defs): New.
9191 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9192 (print_frame_arg, read_frame_arg, print_frame_args)
9193 (print_frame_info, print_frame): Add frame_print_options parameter
9195 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9196 (backtrace_command_1): Add frame_print_options and
9197 backtrace_cmd_options parameters and use them.
9198 (make_backtrace_options_def_group): New.
9199 (backtrace_command): Process command options with
9200 gdb::option::process_options.
9201 (backtrace_command_completer): New.
9202 (_initialize_stack): Extend "backtrace"'s help to mention
9203 supported options. Install completer for "backtrace".
9204 Install some settings commands with add_setshow_cmds_for_options.
9206 2019-06-13 Pedro Alves <palves@redhat.com>
9208 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9209 and that "set/show print raw frame-arguments" are now deprecated.
9211 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9213 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9214 * stack.c (_initialize_stack): Install "set/show print
9215 raw-frame-arguments", and deprecate "set/show print raw
9217 * valprint.c (_initialize_valprint): Deprecate "set/show print
9220 2019-06-13 Pedro Alves <palves@redhat.com>
9222 * compile/compile.c (struct compile_options): New.
9223 (compile_flag_option_def, compile_command_option_defs)
9224 (make_compile_options_def_group): New.
9225 (compile_file_command): Handle options with
9226 gdb::option::process_options.
9227 (compile_file_command_completer): New function.
9228 (compile_code_command): Handle options with
9229 gdb::option::process_options.
9230 (compile_code_command_completer): New function.
9231 (_initialize_compiler): Install completers for "compile code" and
9232 "compile file". Mention available options in "compile code" and
9233 "compile code"'s help.
9234 * completer.c (advance_to_completion_word): New, factored out from
9236 (advance_to_expression_complete_word_point): ... this.
9237 (advance_to_filename_complete_word_point): New.
9238 * completer.h (advance_to_filename_complete_word_point): New
9241 2019-06-13 Pedro Alves <palves@redhat.com>
9243 * compile/compile.c: Include "cli/cli-option.h".
9244 (compile_print_value): Scope data pointer is now a
9245 value_print_options pointer; adjust.
9246 (compile_print_command): Process options. Scope data pointer is
9247 now a value_print_options pointer; adjust.
9248 (_initialize_compile): Update "compile print"'s help to include
9249 supported options. Install a completer for "compile print".
9250 * cp-valprint.c (show_vtblprint, show_objectprint)
9251 (show_static_field_print): Delete.
9252 (_initialize_cp_valprint): Don't install "set print
9253 static-members", "set print vtbl", "set print object" here.
9254 * printcmd.c: Include "cli/cli-option.h" and
9255 "common/gdb_optional.h".
9256 (print_command_parse_format): Rework to fill in a
9257 value_print_options instead of a format_data.
9258 (print_value): Change parameter type from format_data pointer to
9259 value_print_options reference. Adjust.
9260 (print_command_1): Process options. Adjust to pass down a
9261 value_print_options.
9262 (print_command_completer): New.
9263 (_initialize_printcmd): Install print_command_completer as
9264 handle_brkchars completer for the "print" command. Update
9265 "print"'s help to include supported options.
9266 * valprint.c: Include "cli/cli-option.h".
9267 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9268 here from cp-valprint.c.
9269 (boolean_option_def, uinteger_option_def)
9270 (value_print_option_defs, make_value_print_options_def_group):
9271 New. Use gdb::option::add_setshow_cmds_for_options to install
9272 "set print elements", "set print null-stop", "set print repeats",
9273 "set print pretty", "set print union", "set print array", "set
9274 print address", "set print symbol", "set print array-indexes".
9275 * valprint.h: Include <string> and "cli/cli-option.h".
9276 (make_value_print_options_def_group): Declare.
9277 (print_value): Change parameter type from format_data pointer to
9278 value_print_options reference.
9279 (print_command_completer): Declare.
9281 2019-06-13 Pedro Alves <palves@redhat.com>
9283 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9284 (COMMON_SFILES): Add maint-test-settings.c.
9285 * cli/cli-decode.c (boolean_enums): New global, factored out from
9287 (add_setshow_boolean_cmd): ... here.
9288 * cli/cli-decode.h (boolean_enums): Declare.
9289 * cli/cli-option.c: New file.
9290 * cli/cli-option.h: New file.
9291 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9292 factored out from ...
9293 (parse_cli_boolean_value(const char *)): ... this.
9294 (is_unlimited_literal): Change parameter type to pointer to
9295 pointer. Adjust and advance ARG pointer.
9296 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9297 (parse_cli_var_enum): New, factored out from ...
9298 (do_set_command): ... this. Adjust.
9299 * cli/cli-setshow.h (parse_cli_boolean_value)
9300 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9301 (parse_cli_var_enum): Declare.
9302 * cli/cli-utils.c: Include "cli/cli-option.h".
9303 (get_ulongest): New.
9304 * cli/cli-utils.h (get_ulongest): Declare.
9305 (check_for_argument): New overloads.
9306 * maint-test-options.c: New file.
9308 2019-06-13 Pedro Alves <palves@redhat.com>
9310 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9311 parse a range if "-" is at the end of the string.
9313 2019-06-13 Pedro Alves <palves@redhat.com>
9315 * cli/cli-setshow.c (parse_auto_binary_operation)
9316 (parse_cli_boolean_value): Don't allow "o".
9318 2019-06-13 Pedro Alves <palves@redhat.com>
9320 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9321 * NEWS: Mention maint test-settings KIND.
9322 * maint-test-settings.c: New file.
9324 2019-06-13 Pedro Alves <palves@redhat.com>
9326 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9328 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9331 2019-06-13 Pedro Alves <palves@redhat.com>
9333 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9336 2019-06-13 Pedro Alves <palves@redhat.com>
9338 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9340 2019-06-13 Pedro Alves <palves@redhat.com>
9342 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9343 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9345 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9346 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9348 (check_for_argument): Skip spaces after argument.
9350 2019-06-13 Pedro Alves <palves@redhat.com>
9352 * thread.c (thread_apply_command): Adjust TID parsing.
9353 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9354 detected before end of string.
9355 (tid_is_in_list): Error out if LIST is invalid.
9357 2019-06-13 Pedro Alves <palves@redhat.com>
9359 * completer.c (complete_line_internal_1): Rewind completion word
9361 (completion_tracker::advance_custom_word_point_by): Change
9362 parameter type to int.
9363 * completer.h (completion_tracker::advance_custom_word_point_by):
9366 2019-06-13 Pedro Alves <palves@redhat.com>
9368 * completer.c (advance_to_completion_word): Handle delimiters.
9370 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9372 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9374 2019-06-11 Tom Tromey <tom@tromey.com>
9376 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9377 (xmalloc_failed): Move to alloc.c.
9378 * alloc.c: New file.
9379 * Makefile.in (COMMON_SFILES): Add alloc.c.
9381 2019-06-11 Tom Tromey <tom@tromey.com>
9383 * nat/linux-waitpid.c: Don't include server.h.
9384 (linux_debug): Remove.
9385 (my_waitpid): Update.
9387 2019-06-11 Tom Tromey <tromey@adacore.com>
9389 * infcall.c (_initialize_infcall): Remove trailing newline from
9391 * user-regs.c (_initialize_user_regs): Remove trailing newline
9393 * typeprint.c (_initialize_typeprint): Remove trailing newline
9395 * reverse.c (_initialize_reverse): Remove trailing newlines from
9397 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9399 * language.c (add_set_language_command): Remove trailing newline
9401 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9403 * disasm.c (_initialize_disasm): Remove trailing newline from
9405 * top.c (init_main): Remove trailing newline from help.
9406 * interps.c (_initialize_interpreter): Remove trailing newline
9408 * btrace.c (_initialize_btrace): Remove trailing newlines from
9410 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9412 * python/python.c (_initialize_python): Remove trailing newline
9414 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9416 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9417 from help. Reformat some text.
9418 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9420 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9423 2019-06-11 Tom Tromey <tromey@adacore.com>
9425 * darwin-nat.c (darwin_decode_exception_message)
9426 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9428 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9430 * valops.c (value_slice): Check for not allocated or not
9433 2019-06-10 Tom de Vries <tdevries@suse.de>
9436 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9437 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9440 2019-06-10 Tom de Vries <tdevries@suse.de>
9443 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9444 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9446 2019-06-10 Tom de Vries <tdevries@suse.de>
9449 * symtab.c (struct demangled_name_entry): Add language field.
9450 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9451 static minimal symbol". Set and use language field.
9453 2019-06-10 Tom Tromey <tromey@adacore.com>
9455 * ada-lang.c (_initialize_ada_language): Update help text.
9457 2019-06-10 Tom Tromey <tromey@adacore.com>
9459 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9461 * guile/guile.c (handle_boot_error): Don't end warning with a
9463 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9464 warning with a newline.
9465 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9467 (s12z_frame_cache): Likewise.
9468 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9470 * solib-svr4.c (disable_probes_interface): Don't end warning with
9472 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9474 * python/python.c (do_finish_initialization): Don't end warning
9477 2019-06-10 Tom Tromey <tom@tromey.com>
9479 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9480 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9483 2019-06-10 Tom Tromey <tromey@adacore.com>
9485 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9487 (elf_new_init): Don't call stabsread_new_init.
9488 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9489 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9490 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9492 2019-06-10 Tom de Vries <tdevries@suse.de>
9496 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9498 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9500 * source.c (find_and_open_source): Also rewrite relative file
9503 2019-04-26 Amos Bird <amosbird@gmail.com>
9505 * annotate.c (annotate_thread_exited): Add "thread-exited"
9508 2019-06-06 Tom Tromey <tromey@adacore.com>
9510 * maint.h (class scoped_command_stats): Use
9511 DISABLE_COPY_AND_ASSIGN.
9512 <print_time>: New method.
9513 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9515 (scoped_command_stats::print_time): New method.
9517 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9519 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9520 instructions of lengths 6 or 8 bytes.
9522 2019-06-04 Pedro Alves <palves@redhat.com>
9524 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9526 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9527 * breakpoint.c (condition_completer): Likewise.
9528 * cli/cli-dump.c (scan_expression): Likewise.
9529 * common/filestuff.c (mkdir_recursive): Likewise.
9530 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9531 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9532 (gdb_abspath): Likewise.
9533 * compile/compile-cplus-types.c
9534 (compile_cplus_instance::decl_name): Likewise.
9535 * completer.c (complete_explicit_location):
9536 (signal_completer, reg_or_group_completer_1): Likewise.
9537 * cp-support.c (cp_remove_params_if_any): Likewise.
9538 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9539 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9540 * infcmd.c (strip_bg_char): Likewise.
9541 * linespec.c (copy_token_string): Likewise.
9542 * mi/mi-main.c (output_cores): Likewise.
9543 * psymtab.c (psymtab_search_name):
9544 * symfile.c (test_set_ext_lang_command): Likewise.
9545 * target.c (target_fileio_read_stralloc): Likewise.
9546 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9547 * value.c (complete_internalvar): Likewise.
9549 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9551 Add objfile property to gdb.Type.
9552 * NEWS: Mention Python API addition.
9553 * python/py-type.c (typy_get_objfile): New method.
9555 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9557 * NEWS: Mention the new set|show style [title|highlight].
9558 Mention changes to "show style", "help" and "apropos".
9560 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9562 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9563 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9564 instead of print_help_for_command.
9565 (print_doc_of_command): New function.
9566 (help_list): Add 'apropos -v word' suggestion.
9567 (print_help_for_command): Style the command name using title style.
9568 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9569 (_initialize_cli_cmds): Describe -v in apropos_command help.
9571 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9573 * cli/cli-style.h (cli_style_option): Add name in constructor,
9574 add m_name class member, add constructor with intensity,
9575 add name class function.
9576 (cli_style_option::add_setshow_commands): Remove name argument.
9577 (highlight_style, title_style): New styles.
9578 * cli/cli-style.c (do_show): New function that shows a style
9579 characteristic styling the style name with itself.
9580 (set_style_name): New function.
9581 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9582 Update all callers according to the changes in cli/cli-style.h.
9583 * utils.h (fputs_highlighted): New function.
9584 * utils.c (fputs_highlighted): Likewise.
9586 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9588 * NEWS: Mention new pipe command and new convenience variables.
9590 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9592 * cli/cli-cmds.c (pipe_command): New function.
9593 (_initialize_cli_cmds): Call add_com for pipe_command.
9594 Define | as an alias for pipe.
9595 (exit_status_set_internal_vars): New function.
9596 (shell_escape): Call exit_status_set_internal_vars.
9597 cli/cli-decode.c (find_command_name_length): Recognize | as
9598 a single character command.
9600 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9602 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9603 top.c (execute_command_to_ui_file): New function, mostly a copy
9604 of execute_command_to_string.
9605 (execute_command_to_string): Implement by calling
9606 execute_command_to_ui_file.
9608 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610 * top.h (saved_command_line): Remove declaration.
9611 * top.c (previous_saved_command_line, previous_repeat_arguments):
9613 (saved_command_line): Make static, define together with other
9615 (dont_repeat): Clear repeat_arguments.
9616 (repeat_previous, get_saved_command_line, save_command_line):
9618 (gdb_init): Initialize saved_command_line
9619 and previous_saved_command_line.
9620 * main.c (captured_main_1): Remove saved_command_line initialization.
9621 * event-top.c (handle_line_of_input): Update to use
9622 the new 'repeat' related functions instead of direct access to
9624 * command.h (repeat_previous, get_saved_command_line,
9625 save_command_line): New declarations.
9626 (dont_repeat): Add comment.
9628 2019-05-30 Tom Tromey <tromey@adacore.com>
9630 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9632 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9634 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9637 * completer.c (complete): Initialize variable word.
9639 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9641 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9642 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9643 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9644 'body' is NULL to the outter 'if', protecting the '!is_define'
9647 2019-05-29 Tom Tromey <tromey@adacore.com>
9649 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9650 (dwarf_unknown): New function.
9651 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9652 (dwarf_type_encoding_name): Use dwarf_unknown.
9654 2019-05-29 Tom Tromey <tromey@adacore.com>
9657 * cp-valprint.c (cp_print_value_fields): Call
9658 cp_print_static_field inside "try".
9660 2019-05-29 Tom Tromey <tromey@adacore.com>
9662 * inflow.c (struct terminal_info): Add default operator=.
9663 * configure: Rebuild.
9664 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9665 -Wdeprecated-copy-dtor, -Wredundant-move.
9667 2019-05-29 Tom Tromey <tromey@adacore.com>
9670 * infcmd.c (print_return_value_1): Handle finish_print
9672 (show_print_finish): New function.
9673 (_initialize_infcmd): Add "set/show print finish" commands.
9674 * valprint.c (user_print_options): Initialize new member.
9675 * valprint.h (struct value_print_options) <finish_print>: New
9678 2019-05-28 Tom Tromey <tromey@adacore.com>
9680 * ada-lang.c (ada_remove_Xbn_suffix)
9681 (find_old_style_renaming_symbol)
9682 (parse_old_style_renaming): Remove.
9683 (ada_find_renaming_symbol): Don't call
9684 find_old_style_renaming_symbol.
9685 (ada_is_renaming_symbol): Rename from
9686 ada_find_renaming_symbol. Remove "block" parameter. Return
9688 (ada_read_var_value): Update and simplify.
9689 * ada-exp.y (write_var_or_type): Remove old code.
9691 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9694 * event-top.c: Remove include comment.
9695 * inflow.c (class scoped_ignore_sigttou): Move from here...
9696 * inflow.h (class scoped_ignore_sigttou): ...to here.
9697 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9698 * top.c: Remove include comment.
9700 2019-05-27 Tom Tromey <tom@tromey.com>
9704 2019-05-22 Tom Tromey <tromey@adacore.com>
9706 * target.c (target_follow_exec): Constify parameter.
9707 * target-delegates.c: Rebuild.
9708 * remote.c (remote_target::follow_exec): Constify parameter.
9709 * infrun.c (follow_exec): Constify parameter.
9710 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9711 (target_follow_exec): Likewise.
9713 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9715 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9716 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9718 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9720 * NEWS: Add debugredirect and testsuite sections.
9722 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9724 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9725 target descriptions using exclusively floating point register name
9728 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9731 * f-lang.c (build_fortran_types): Handle the case where
9732 gdbarch_floatformat_for_type returns a nullptr.
9734 2019-05-21 Tom de Vries <tdevries@suse.de>
9737 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9739 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9742 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9744 * i386-tdep.c (i386_floatformat_for_type): Use
9745 floatformats_ia64_quad for the 16-byte floating point component
9746 within a fortran 32-byte complex number.
9748 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9750 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9751 delete default constructor.
9752 (find_partial_die): Update to return const struct.
9753 (partial_die_parent_scope): Move variable declaration into scope
9754 of its use and change its type to auto.
9755 (guess_partial_die_structure_name): Likewise.
9756 (partial_die_info::fixup): Likewise.
9758 2019-05-17 Tom Tromey <tromey@adacore.com>
9760 * source.c (find_and_open_source): Remove cast.
9762 2019-05-17 Tom Tromey <tromey@adacore.com>
9764 * annotate.c (annotate_source): Make "filename" const.
9765 * annotate.h (annotate_source): Use const.
9767 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9769 * disasm.c (set_disassembler_options): Send errors to stderr.
9771 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9773 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9774 (cli_interp_base::set_logging): Check debug_redirect.
9775 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9776 * cli/cli-logging.c (debug_redirect): Add static variable.
9777 (pop_output_files): Add default param.
9778 (handle_redirections): Print debug setting.
9779 (show_logging_command): Likewise.
9780 (_initialize_cli_logging): Add debugredirect command.
9781 * interps.c (current_interp_set_logging): Add debug_redirect
9783 * interps.h (set_logging): Add debug_redirect parameter.
9784 (current_interp_set_logging): Likewise.
9785 * mi/mi-common.h: Likewise.
9786 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9788 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9789 Tom Tromey <tromey@adacore.com>
9791 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9793 * cli/cli-interp.h (make_logging_output): Remove declaration.
9794 * cli/cli-logging.c (make_logging_output): Remove function.
9795 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9797 * ui-file.c (tee_file::tee_file): Remove bools.
9798 (tee_file::~tee_file): Remove deletes.
9799 * ui-file.h (tee_file): Remove bools.
9801 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9803 * mi/mi-cmds.h (mi_cmd_complete): New function.
9804 * mi/mi-main.c (mi_cmd_complete): Likewise.
9805 * mi/mi-cmds.c: Define new MI command -complete.
9806 * NEWS: Mention new -complete command.
9808 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9810 * completer.h (complete): New function.
9811 * completer.c (complete): Likewise.
9812 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9813 function defined in completer.h.
9815 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9817 * MAINTAINERS (Write After Approval): Add myself.
9819 2019-05-17 Tom de Vries <tdevries@suse.de>
9822 * dwarf2read.c (struct cu_partial_die_info): New struct.
9823 (find_partial_die): Return cu_partial_die_info.
9824 (partial_die_parent_scope, guess_partial_die_structure_name)
9825 (partial_die_info::fixup): Handle new return type of find_partial_die.
9827 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9829 PR breakpoints/24541
9830 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9831 "std::string", simplifying the algorithm.
9833 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9835 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9836 (stap_static_probe_ops::get_probes): Likewise.
9838 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9840 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9841 '-')" and "else if".
9842 (stap_parse_single_operand): Join checks for
9843 "gdbarch_stap_parse_special_token_p" and
9844 "gdbarch_stap_parse_special_token" in the same "if" statement.
9845 Invert check when verifying for operation on register
9848 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9850 * stap-probe.c (stap_get_opcode): Update comment.
9851 (stap_get_expected_argument_type): Likewise.
9852 (handle_stap_probe): Likewise.
9854 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9856 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9857 return type to 'bool'. Adjust comment. Use 'bool' when
9859 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9860 * stap-probe.c (stap_parse_argument_1): Likewise.
9861 (stap_is_operator): Likewise.
9862 (stap_is_generic_prefix): Likewise.
9863 (stap_is_register_prefix): Likewise.
9864 (stap_is_register_indirection_prefix): Likewise.
9865 (stap_is_integer_prefix): Likewise.
9866 (stap_generic_check_suffix): Likewise.
9867 (stap_check_integer_suffix): Likewise.
9868 (stap_check_register_suffix): Likewise.
9869 (stap_check_register_indirection_suffix): Likewise.
9870 (stap_parse_register_operand): Likewise.
9871 (stap_parse_single_operand): Likewise.
9872 (stap_parse_argument_1): Likewise.
9873 (stap_probe::get_argument_count): Likewise.
9874 (stap_is_operator): Likewise.
9876 2019-05-16 Tom Tromey <tromey@adacore.com>
9878 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9881 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9883 * linux-thread-db.c (try_thread_db_load_1): Change return type
9885 (try_thread_db_load): Likewise.
9886 (try_thread_db_load_from_pdir_1): Likewise.
9887 (try_thread_db_load_from_pdir): Likewise.
9888 (try_thread_db_load_from_sdir): Likewise.
9889 (try_thread_db_load_from_dir): Likewise.
9890 (thread_db_load_search): Likewise.
9891 (has_libpthread): Likewise.
9892 (thread_db_load): Likewise.
9894 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9896 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9897 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9898 NULL, and complain/return if that's the case.
9900 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9902 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9903 (advance, posn, abstract_read_memory): New functions.
9904 [struct mem_read_abstraction]: New struct.
9905 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9907 2019-05-14 Tom Tromey <tromey@adacore.com>
9909 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9910 value is not lval_memory.
9912 2019-05-14 Tom Tromey <tromey@adacore.com>
9914 * solib.c (info_sharedlibrary_command): Style the file name.
9916 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9918 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9919 (aarch64_vnv_type): Likewise.
9920 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9921 * common/tdesc.c: Likewise.
9922 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9923 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9924 * features/aarch64-fpu.xml: Add ieee half view.
9925 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9926 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9927 * gdbtypes.h (struct builtin_type): Likewise.
9928 (struct objfile_type): Likewise.
9930 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9932 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9934 * location.h (string_to_event_location): Likewise.
9936 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9940 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9942 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9943 New variable declaration.
9944 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9946 (print_one_breakpoint): Use ui_out::test_flags and new global
9947 variable to compute use_fixed_output.
9948 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9950 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9951 (mi_multi_location_breakpoint_output_fixed): Remove.
9952 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9954 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9955 fix_multi_location_breakpoint_output flag if version >= 3.
9956 * ui-out.h (enum ui_out_flag)
9957 <fix_multi_location_breakpoint_output>: New enumerator.
9959 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9961 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9963 2019-05-10 Tom Tromey <tromey@adacore.com>
9965 * ada-lang.c (catch_ada_completer): New function.
9966 (_initialize_ada_language): Use it.
9968 2019-05-10 Tom Tromey <tromey@adacore.com>
9970 * thread.c (print_thread_info): Make "requested_threads" const.
9971 * gdbthread.h (print_thread_info): Make "requested_threads"
9973 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9974 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9976 2019-05-08 Tom Tromey <tom@tromey.com>
9978 * gdbtypes.c (objfile_type_data): Change type.
9979 (objfile_type, _initialize_gdbtypes): Update.
9981 2019-05-08 Tom Tromey <tom@tromey.com>
9983 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9984 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9985 (_initialize_dwarf2_frame): Update.
9987 2019-05-08 Tom Tromey <tom@tromey.com>
9989 * objc-lang.c (objc_objfile_data): Change type.
9990 (find_methods): Update.
9991 (_initialize_objc_lang): Remove.
9993 2019-05-08 Tom Tromey <tom@tromey.com>
9995 * stabsread.c (rs6000_builtin_type_data): Change type.
9996 (rs6000_builtin_type, _initialize_stabsread): Update.
9998 2019-05-08 Tom Tromey <tom@tromey.com>
10000 * mips-tdep.c (mips_pdr_data): Remove.
10001 (_initialize_mips_tdep): Update.
10003 2019-05-08 Tom Tromey <tom@tromey.com>
10005 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10006 (hppa_init_objfile_priv_data, read_unwind_info)
10007 (find_unwind_entry, _initialize_hppa_tdep): Update.
10009 2019-05-08 Tom Tromey <tom@tromey.com>
10011 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10012 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10014 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10016 2019-05-08 Tom Tromey <tom@tromey.com>
10018 * mdebugread.c (basic_type_data): Change type.
10019 (basic_type, _initialize_mdebugread): Update.
10021 2019-05-08 Tom Tromey <tom@tromey.com>
10023 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10025 2019-05-08 Tom Tromey <tom@tromey.com>
10027 * nto-tdep.c (nto_inferior_data_reg): Change type.
10028 (nto_inferior_data): Update.
10029 (nto_inferior_data_cleanup, nto_new_inferior_data)
10030 (_initialize_nto_tdep): Remove.
10031 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10033 2019-05-08 Tom Tromey <tom@tromey.com>
10035 * ada-lang.c (struct ada_inferior_data): Add initializers.
10036 (ada_inferior_data): Change type.
10037 (ada_inferior_data_cleanup): Remove.
10038 (get_ada_inferior_data, ada_inferior_exit)
10039 (struct ada_pspace_data): Add initializers, destructor.
10040 (ada_pspace_data_handle): Change type.
10041 (get_ada_pspace_data): Update.
10042 (ada_pspace_data_cleanup): Remove.
10044 2019-05-08 Tom Tromey <tom@tromey.com>
10046 * coffread.c (struct coff_symfile_info): Add initializers.
10047 (coff_objfile_data_key): Move lower. Change type.
10048 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10050 (coff_free_info): Remove.
10052 2019-05-08 Tom Tromey <tom@tromey.com>
10054 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10055 (fbsd_pspace_data_handle): Move lower. Change type.
10056 (get_fbsd_pspace_data): Update.
10057 (fbsd_pspace_data_cleanup): Remove.
10058 (_initialize_fbsd_tdep): Update.
10060 2019-05-08 Tom Tromey <tom@tromey.com>
10062 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10063 (get_ada_tasks_pspace_data): Update.
10064 (ada_tasks_pspace_data_cleanup): Remove.
10065 (_initialize_tasks): Update.
10066 (ada_tasks_inferior_data_handle): Change type.
10067 (get_ada_tasks_inferior_data): Update.
10068 (ada_tasks_inferior_data_cleanup): Remove.
10069 (struct ada_tasks_pspace_data): Add initializers.
10071 2019-05-08 Tom Tromey <tom@tromey.com>
10073 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10074 * symfile-debug.c (debug_sym_get_probes): Change type.
10075 * stap-probe.c (handle_stap_probe):
10076 (stap_static_probe_ops::get_probes): Change type.
10077 * probe.h (class static_probe_ops) <get_probes>: Change type.
10078 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10079 (parse_probes_in_pspace): Update.
10080 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10082 (any_static_probe_ops::get_probes): Change type.
10083 * elfread.c (elfread_data): New typedef.
10084 (probe_key): Change type.
10085 (elf_get_probes): Likewise. Update.
10086 (probe_key_free): Remove.
10087 (_initialize_elfread): Update.
10088 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10090 (dtrace_process_dof_probe, dtrace_process_dof)
10091 (dtrace_static_probe_ops::get_probe): Change type.
10093 2019-05-08 Tom Tromey <tom@tromey.com>
10095 * xcoffread.c (struct xcoff_symfile_info): Rename from
10096 coff_symfile_info. Add initializers.
10097 (xcoff_objfile_data_key): Move lower. Change type.
10098 (XCOFF_DATA): Rewrite.
10099 (xcoff_free_info): Remove.
10100 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10101 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10102 (xcoff_initial_scan): Update.
10104 2019-05-08 Tom Tromey <tom@tromey.com>
10106 * solib-svr4.c (struct svr4_info): Add initializers and
10108 <probes_table>: Now an htab_up.
10109 (solib_svr4_pspace_data): Change type.
10110 (free_probes_table): Simplify.
10111 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10112 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10113 (probes_table_remove_objfile_probes, register_solib_event_probe)
10114 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10115 (_initialize_svr4_solib): Update.
10117 2019-05-08 Tom Tromey <tom@tromey.com>
10119 * remote.c (remote_pspace_data): Change type.
10120 (remote_pspace_data_cleanup): Remove.
10121 (get_remote_exec_file, set_pspace_remote_exec_file)
10122 (_initialize_remote): Update.
10124 2019-05-08 Tom Tromey <tom@tromey.com>
10126 * breakpoint.c (breakpoint_objfile_key): Change type.
10127 (get_breakpoint_objfile_data): Update.
10128 (free_breakpoint_objfile_data): Remove.
10129 (_initialize_breakpoint): Update.
10131 2019-05-08 Tom Tromey <tom@tromey.com>
10133 * linux-tdep.c (struct linux_info): Add initializers.
10134 (linux_inferior_data): Move. Change type.
10135 (invalidate_linux_cache_inf): Update.
10136 (linux_inferior_data_cleanup): Remove.
10137 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10139 2019-05-08 Tom Tromey <tom@tromey.com>
10141 * auxv.c (auxv_inferior_data): Move. Change type.
10142 (auxv_inferior_data_cleanup): Remove.
10143 (invalidate_auxv_cache_inf): Rewrite.
10144 (get_auxv_inferior_data, _initialize_auxv): Update.
10146 2019-05-08 Tom Tromey <tom@tromey.com>
10148 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10149 (symfile_debug_objfile_data_key): Change type.
10150 (symfile_debug_installed, debug_qf_has_symbols)
10151 (debug_qf_find_last_source_symtab)
10152 (debug_qf_forget_cached_source_info)
10153 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10154 (debug_qf_print_stats, debug_qf_dump)
10155 (debug_qf_expand_symtabs_for_function)
10156 (debug_qf_expand_all_symtabs)
10157 (debug_qf_expand_symtabs_with_fullname)
10158 (debug_qf_map_matching_symbols)
10159 (debug_qf_expand_symtabs_matching)
10160 (debug_qf_find_pc_sect_compunit_symtab)
10161 (debug_qf_map_symbol_filenames)
10162 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10163 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10164 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10165 (debug_sym_read_linetable, debug_sym_relocate): Update.
10166 (symfile_debug_free_objfile): Remove.
10167 (install_symfile_debug_logging, _initialize_symfile_debug):
10170 2019-05-08 Tom Tromey <tom@tromey.com>
10172 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10173 allocate_on_obstack.
10174 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10175 (get_dwarf2_per_objfile): Update.
10176 (set_dwarf2_per_objfile): Remove.
10177 (dwarf2_has_info, dwarf2_get_section_info): Update.
10178 (dwarf2_free_objfile): Remove.
10179 (_initialize_dwarf2_read): Update.
10181 2019-05-08 Tom Tromey <tom@tromey.com>
10183 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10185 <unsupported_script_warning_printed,
10186 script_not_found_warning_printed>: Now bool.
10187 (auto_load_pspace_data): Change type.
10188 (~auto_load_pspace_info): Rename from
10189 auto_load_pspace_data_cleanup.
10190 (get_auto_load_pspace_data, init_loaded_scripts_info)
10191 (clear_section_scripts, maybe_print_unsupported_script_warning)
10192 (maybe_print_script_not_found_warning, _initialize_auto_load):
10195 2019-05-08 Tom Tromey <tom@tromey.com>
10197 * objfiles.c (objfile_pspace_info): Add destructor and
10199 (objfiles_pspace_data): Change type.
10200 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10201 (get_objfile_pspace_data): Update.
10202 (objfiles_bfd_data): Change type.
10203 (get_objfile_bfd_data): Update.
10204 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10206 2019-05-08 Tom Tromey <tom@tromey.com>
10208 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10210 (get_catch_syscall_inferior_data): Update.
10211 (catch_syscall_inferior_data_cleanup): Remove.
10212 (_initialize_break_catch_syscall): Update.
10214 2019-05-08 Tom Tromey <tom@tromey.com>
10216 * inflow.c (struct terminal_info): Add destructor and
10218 (inflow_inferior_data): Change type.
10219 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10220 (get_inflow_inferior_data, inflow_inferior_exit)
10221 (swap_terminal_info, _initialize_inflow): Update.
10223 2019-05-08 Tom Tromey <tom@tromey.com>
10225 * target-dcache.c (target_dcache_cleanup): Remove.
10226 (target_dcache_aspace_key): Change type.
10227 (target_dcache_init_p, target_dcache_invalidate)
10228 (target_dcache_get, target_dcache_get_or_init)
10229 (_initialize_target_dcache): Update.
10230 * dcache.h (struct dcache_deleter): New.
10232 2019-05-08 Tom Tromey <tom@tromey.com>
10234 * symtab.c (struct symbol_cache): Add destructor and
10236 (symbol_cache_key): Move. Change type.
10237 (make_symbol_cache, free_symbol_cache): Remove.
10238 (get_symbol_cache): Update.
10239 (symbol_cache_cleanup): Remove.
10240 (ALL_PSPACES, symbol_cache_flush)
10241 (maintenance_print_symbol_cache)
10242 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10245 2019-05-08 Tom Tromey <tom@tromey.com>
10247 * symtab.c (struct main_info): Add destructor and initializers.
10248 (main_progspace_key): Move. Change type.
10249 (get_main_info): Update.
10250 (main_info_cleanup): Remove.
10251 (_initialize_symtab): Update.
10253 2019-05-08 Tom Tromey <tom@tromey.com>
10255 * registry.h (DECLARE_REGISTRY): Define the _key class.
10257 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10259 * NEWS: Merge two 'New commands' sections.
10261 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10263 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10264 parameter and use Ada language definition instead.
10265 (ada_val_print_ptr): Remove unused language parameter.
10266 (ada_val_print_num): Remove language parameter and use Ada language
10267 definition instead.
10268 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10270 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10271 parameter and use Ada language definition instead.
10272 (ada_val_print_1): Update all ada_val_print_xxx calls.
10273 Remove language parameter.
10274 (ada_val_print): Update ada_val_print_1 call.
10276 2019-05-08 Tom Tromey <tromey@adacore.com>
10278 * remote.c (remote_hw_watchpoint_limit)
10279 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10282 2019-05-08 Tom Tromey <tromey@adacore.com>
10284 * maint.c (_initialize_maint_cmds): Move initialization code to
10286 (watchdog, show_watchdog): Move to remote.c.
10287 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10289 (_initialize_remote): Move initialization code from maint.c.
10290 * defs.h (watchdog): Don't declare.
10292 2019-05-08 Tom Tromey <tromey@adacore.com>
10294 * tui/tui-interp.c: Include main.h.
10295 * interps.c: Include main.h.
10296 * main.h (interpreter_p): Declare.
10297 * defs.h (interpreter_p): Don't declare.
10299 2019-05-08 Tom Tromey <tromey@adacore.com>
10301 * dwarf2loc.c: Include dwarf2read.h.
10302 * defs.h (read_unsigned_leb128): Don't declare.
10303 * dwarf2read.h (read_unsigned_leb128): Declare.
10305 2019-05-08 Tom Tromey <tromey@adacore.com>
10307 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10310 2019-05-08 Tom Tromey <tromey@adacore.com>
10312 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10313 when no wrap column is set.
10315 2019-05-08 Tom Tromey <tromey@adacore.com>
10317 * c-lang.c (c_get_string): Handle non-C-style arrays.
10319 2019-05-08 Tom Tromey <tromey@adacore.com>
10321 * typeprint.c (print_offset_data::update): Print the bit offset,
10322 not the number of bits remaining.
10324 2019-05-08 Tom Tromey <tromey@adacore.com>
10326 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10327 padding at end of comment.
10329 2019-05-08 Tom Tromey <tromey@adacore.com>
10331 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10332 Compare main types.
10334 2019-05-06 Tom Tromey <tom@tromey.com>
10336 * common/scoped_mmap.c: Include common-defs.h.
10337 * common/scoped_mmap.h: Don't include config.h.
10339 2019-05-04 Tom Tromey <tom@tromey.com>
10341 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10342 (struct aarch64_call_info): Add initializers.
10343 <si>: Now a std::vector.
10344 (pass_on_stack, aarch64_push_dummy_call): Update.
10346 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10347 Tom Tromey <tom@tromey.com>
10349 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10350 (ppc_threads): Now a std::vector. Now static.
10351 (hwdebug_find_thread_points_by_tid)
10352 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10355 2019-05-04 Tom Tromey <tom@tromey.com>
10357 * arc-tdep.c (arc_tdesc_init): Return bool.
10359 2019-05-04 Tom Tromey <tom@tromey.com>
10361 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10362 Use gdb_assert_not_reached.
10364 2019-05-04 Tom Tromey <tom@tromey.com>
10366 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10369 2019-05-04 Tom Tromey <tom@tromey.com>
10371 * arc-tdep.c (arc_tdesc_init): Use bool.
10373 2019-05-04 Tom Tromey <tom@tromey.com>
10375 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10377 2019-05-04 Tom Tromey <tom@tromey.com>
10379 * cli/cli-cmds.c (valid_command_p): Return bool.
10381 2019-05-04 Tom Tromey <tom@tromey.com>
10383 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10384 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10386 2019-05-04 Raul Tambre <raul@tambre.ee>
10388 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10389 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10390 operator for comparison.
10392 2019-05-04 Tom Tromey <tom@tromey.com>
10394 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10395 (lookup_partial_symbol, print_partial_symbols)
10396 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10397 (psymbol_compare): Update.
10398 (add_psymbol_to_bcache): Clear the entire psymbol.
10399 (maintenance_check_psymtabs): Update.
10400 * psympriv.h (struct partial_symbol): Don't derive from
10401 general_symbol_info.
10402 <obj_section, unrelocated_address, address,
10403 set_unrelocated_address>: Update.
10404 <ginfo>: New member.
10405 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10406 (debug_names::write_psymbols): Update.
10408 2019-05-04 Tom de Vries <tdevries@suse.de>
10410 * contrib/cc-with-tweaks.sh: Support -n arg.
10412 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10414 * corelow.c (core_target::detach): Ensure frame cache and
10415 register caches are cleared.
10416 inferior.c (exit_inferior_1): Likewise.
10418 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10419 Tom Tromey <tom@tromey.com>
10421 * dictionary.c (collate_pending_symbols_by_language): Remove
10422 "struct" from foreach.
10423 * symtab.c (lookup_global_symbol_from_objfile)
10424 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10426 * ser-tcp.c (net_open): Remove "struct" from foreach.
10427 * objfiles.c (objfile_relocate, objfile_rebase)
10428 (objfile_has_symbols): Remove "struct" from foreach.
10429 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10431 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10433 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10434 "struct" from foreach.
10435 * ada-lang.c (create_excep_cond_exprs)
10436 (ada_exception_catchpoint_cond_string): Remove "struct" from
10439 2019-05-03 Tom Tromey <tromey@adacore.com>
10441 * ada-exp.y (convert_char_literal): Check suffix of each
10444 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10447 * ada-exp.y (yywrap): Don't define.
10448 * ada-lex.l (%option): Add noyywrap
10451 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10453 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10454 _WIN32_WINNT to the XP level, unless already defined to a higher
10457 * unittests/parse-connection-spec-selftests.c:
10459 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10462 * symfile.c (find_separate_debug_file): Remove colon from the
10463 drive spec of DOS/Windows file names of the target, so that the
10464 file name produced from DEBUGDIR and the target's directory will
10465 be valid on DOS/Windows systems.
10467 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10469 * rust-lang.c (val_print_struct): Handle printing structures
10470 containing strings.
10472 2019-05-02 Tom Tromey <tromey@adacore.com>
10474 * valarith.c (_initialize_valarith): Remove.
10476 2019-05-01 Tom Tromey <tromey@adacore.com>
10478 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10481 2019-05-01 Tom Tromey <tromey@adacore.com>
10483 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10484 for big-endian copies.
10486 2019-04-30 Ali Tamur <tamur@google.com>
10487 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10488 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10489 (read_3_bytes): New function.
10491 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10493 * windows-nat.c (main_thread_id): Delete.
10494 (handle_output_debug_string): Replace main_thread_id by
10495 current_event.dwThreadId.
10496 (fake_create_process): Likewise.
10497 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10498 Do not set main_thread_id.
10499 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10500 current_event.dwThreadId.
10501 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10503 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10505 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10506 Use current_event.dwThreadId instead of main_thread_id.
10508 2019-04-30 Tom Tromey <tromey@adacore.com>
10510 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10511 (create_excep_cond_exprs): Iterate over program spaces.
10512 (ada_exception_catchpoint_cond_string): Examine all minimal
10513 symbols for exception types.
10515 2019-04-30 Tom Tromey <tromey@adacore.com>
10518 * dwarf2read.c (process_structure_scope): Handle case where type
10519 has template parameters but no symbol was created.
10521 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10522 Chris January <chris.january@arm.com>
10524 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10526 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10528 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10530 * f-typeprint.c (f_print_type): Update rules for printing
10532 (f_type_print_varspec_suffix): Likewise.
10534 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10535 Chris January <chris.january@arm.com>
10537 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10538 function arguments.
10540 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10542 * f-lang.c (build_fortran_types): Change name of void type to
10544 * f-typeprint.c (f_type_print_base): Print the name of the void
10545 type, rather than a fixed string.
10546 * f-valprint.c (f_decorations): Use lower case void string.
10548 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10549 Chris January <chris.january@arm.com>
10551 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10554 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10555 Chris January <chris.january@arm.com>
10556 David Lecomber <david.lecomber@arm.com>
10558 * f-exp.y (BINOP_INTRINSIC): New token.
10559 (exp): New parser rule handling BINOP_INTRINSIC.
10560 (f77_keywords): Add new builtin procedures.
10561 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10562 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10563 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10564 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10565 (print_unop_subexp_f): New function.
10566 (print_binop_subexp_f): New function.
10567 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10568 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10569 (dump_subexp_body_f): Likewise.
10570 (operator_check_f): Likewise.
10571 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10574 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10576 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10578 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10579 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10580 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10581 (operator_length_f): New fuction.
10582 (print_subexp_f): New function.
10583 (op_name_f): New function.
10584 (dump_subexp_body_f): New function.
10585 (operator_check_f): New function.
10586 (exp_descriptor_f): Replace standard expression handling functions
10587 with new functions.
10588 * gdb/fortran-operator.def: New file.
10589 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10590 * gdb/std-operator.def: Remove UNOP_KIND.
10592 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10594 * std-operator.def: Remove unbalanced, stray double quote
10597 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10598 Chris January <chris.january@arm.com>
10599 Daniel Everett <daniel.everett@arm.com>
10600 Nick Forrington <nick.forrington@arm.com>
10601 Richard Bunt <richard.bunt@arm.com>
10603 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10604 of depth when printing anonymous structs or unions.
10605 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10606 Don't print either the top-level value, or the children if the
10607 max-depth is exceeded.
10608 (ppscm_print_children): When printing the key of a map, allow one
10609 extra level of depth.
10610 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10611 print either the top-level value, or the children if the max-depth
10613 (print_children): When printing the key of a map, allow one extra
10615 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10616 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10617 (user_print_options): Initialise max_depth field.
10618 (val_print_scalar_or_string_type_p): New function.
10619 (val_print): Check to see if the max depth has been reached.
10620 (val_print_check_max_depth): Define new function.
10621 (show_print_max_depth): New function.
10622 (_initialize_valprint): Add 'print max-depth' option.
10623 * valprint.h (struct value_print_options) <max_depth>: New field.
10624 (val_print_check_max_depth): Declare new function.
10625 * NEWS: Document new feature.
10627 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10629 * ada-lang.c (ada_language_defn): Initialise new field.
10630 * c-lang.c (c_is_string_type_p): New function.
10631 (c_language_defn): Initialise new field.
10632 (cplus_language_defn): Initialise new field.
10633 (asm_language_defn): Initialise new field.
10634 (minimal_language_defn): Initialise new field.
10635 * c-lang.h (c_is_string_type_p): Declare new function.
10636 * d-lang.c (d_language_defn): Initialise new field.
10637 * f-lang.c (f_is_string_type_p): New function.
10638 (f_language_defn): Initialise new field.
10639 * go-lang.c (go_is_string_type_p): New function.
10640 (go_language_defn): Initialise new field.
10641 * language.c (default_is_string_type_p): New function.
10642 (unknown_language_defn): Initialise new field.
10643 (auto_language_defn): Initialise new field.
10644 * language.h (struct language_defn) <la_is_string_type_p>: New
10646 (default_is_string_type_p): Declare new function.
10647 * m2-lang.c (m2_language_defn): Initialise new field.
10648 * objc-lang.c (objc_language_defn): Initialise new field.
10649 * opencl-lang.c (opencl_language_defn): Initialise new field.
10650 * p-lang.c (pascal_is_string_type_p): New function.
10651 (pascal_language_defn): Initialise new field.
10652 * rust-lang.c (rust_is_string_type_p): New function.
10653 (rust_language_defn): Initialise new field.
10655 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10657 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10659 * ada-lang.c (ada_language_defn): Initialise new field.
10660 * c-lang.c (c_language_defn): Likewise.
10661 (cplus_language_defn): Likewise.
10662 (asm_language_defn): Likewise.
10663 (minimal_language_defn): Likewise.
10664 * d-lang.c (d_language_defn): Likewise.
10665 * f-lang.c (f_language_defn): Likewise.
10666 * go-lang.c (go_language_defn): Likewise.
10667 * language.c (unknown_language_defn): Likewise.
10668 (auto_language_defn): Likewise.
10669 * m2-lang.c (m2_language_defn): Likewise.
10670 * objc-lang.c (objc_language_defn): Likewise.
10671 * opencl-lang.c (opencl_language_defn): Likewise.
10672 * p-lang.c (pascal_language_defn): Likewise.
10673 * rust-lang.c (rust_language_defn): Likewise.
10675 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10677 * ada-lang.c (ada_is_character_type): Change return type to bool.
10678 (ada_is_string_type): Likewise.
10679 * ada-lang.h (ada_is_character_type): Update declaration
10680 (ada_is_string_type): Likewise.
10682 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10684 Support style in 'frame|thread apply'
10686 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10687 * record.c (record_start, record_stop): Update callers of
10688 execute_command_to_string with false.
10689 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10690 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10692 (class string_file): New constructor with term_out parameter.
10693 Override methods term_out and can_emit_style_escape. New member
10695 (class stdio_file): Override can_emit_style_escape.
10696 (class tee_file): Override term_out and can_emit_style_escape.
10697 * utils.h (can_emit_style_escape): Remove.
10698 * utils.c (can_emit_style_escape): Likewise.
10699 Update all callers of can_emit_style_escape (SOMESTREAM) to
10700 SOMESTREAM->can_emit_style_escape.
10701 * source-cache.c (source_cache::get_source_lines): Likewise.
10702 * stack.c (frame_apply_command_count): Call execute_command_to_string
10703 passing the term_out characteristic of the current gdb_stdout.
10704 * thread.c (thr_try_catch_cmd): Likewise.
10705 * top.c (execute_command_to_string): pass term_out parameter
10706 to construct the string_file for the command output.
10707 * ui-file.c (term_cli_styling): New function (most code moved
10708 from utils.c can_emit_style_escape).
10709 (string_file::string_file, string_file::can_emit_style_escape,
10710 stdio_file::can_emit_style_escape, tee_file::term_out,
10711 tee_file::can_emit_style_escape): New functions.
10713 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10715 * NEWS: Mention the new set|show may-call-functions.
10716 * infcall.c (may_call_functions_p): New variable.
10717 (show_may_call_functions_p): New function.
10718 (call_function_by_hand_dummy): Throws an error if not
10719 may-call-functions.
10720 (_initialize_infcall): Call add_setshow_boolean_cmd for
10721 may-call-functions.
10723 2019-04-25 Keith Seitz <keiths@redhat.com>
10726 * cp-support.c (inspect_type): Don't attempt substitutions
10727 of symbol with the same name.
10729 2019-04-25 Tom Tromey <tromey@adacore.com>
10732 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10735 2019-04-25 Tom Tromey <tromey@adacore.com>
10737 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10739 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10740 (gdb_xml_parser::parse): Use std::move.
10741 * python/python-internal.h (gdbpy_convert_exception): Take a const
10743 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10745 * python/py-utils.c (gdbpy_convert_exception): Take a const
10747 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10749 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10751 * mi/mi-main.c (mi_print_exception): Take a const reference.
10752 * main.c (handle_command_errors): Take a const reference.
10753 * linespec.c (parse_linespec): Use std::move.
10754 * infcall.c (run_inferior_call): Use std::move.
10755 (call_function_by_hand_dummy): Use std::move.
10756 * exec.c (try_open_exec_file): Use std::move.
10757 * exceptions.h (exception_print, exception_fprintf)
10758 (exception_print_same): Update.
10759 * exceptions.c (print_exception, exception_print)
10760 (exception_fprintf, exception_print_same): Change parameters to
10762 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10763 * common/new-op.c: Use std::move.
10764 * common/common-exceptions.h (struct gdb_exception): Add move
10766 (struct gdb_exception_error, struct gdb_exception_quit, struct
10767 gdb_quit_bad_alloc): Change constructor to move constructor.
10768 (throw_exception): Change parameter to rvalue reference.
10769 * common/common-exceptions.c (throw_exception): Take rvalue
10771 * cli/cli-interp.c (safe_execute_command): Use std::move.
10772 * breakpoint.c (insert_bp_location, location_to_sals): Use
10775 2019-04-25 Tom Tromey <tromey@adacore.com>
10777 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10778 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10779 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10780 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10781 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10782 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10783 guile/scm-value.c: Use unpack.
10784 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10785 gdbscm_gdb_exception.
10786 (gdbscm_throw_gdb_exception): Likewise.
10787 (struct gdbscm_gdb_exception): New.
10788 (unpack): New function.
10789 (gdbscm_wrap): Use unpack.
10791 2019-04-25 Tom Tromey <tromey@adacore.com>
10793 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10794 (gdb_rl_callback_handler): Use std::move.
10795 * common/common-exceptions.h (struct gdb_exception): Add move
10796 assignment operator.
10797 (throw_exception_sjlj): Change "exception" to const reference.
10798 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10799 (throw_exception_sjlj): Change "exception" to const reference.
10801 2019-04-25 Tom Tromey <tromey@adacore.com>
10803 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10804 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10805 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10807 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10809 * mi/mi-interp.c (mi_interp::exec): Update.
10810 * linespec.c (parse_linespec): Update.
10811 * infcall.c (run_inferior_call): Update.
10812 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10813 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10814 (gdbscm_lookup_global_symbol): Update.
10815 * guile/scm-param.c (gdbscm_parameter_value): Update.
10816 * guile/scm-frame.c (gdbscm_frame_read_register)
10817 (gdbscm_frame_read_var): Update.
10818 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10819 * exec.c (try_open_exec_file): Update.
10820 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10821 (gdb_rl_callback_handler): Update.
10822 * common/common-exceptions.h (exception_none): Don't declare.
10823 * common/common-exceptions.c (exception_none): Don't define.
10824 (struct catcher) <exception>: Update.
10825 * cli/cli-interp.c (safe_execute_command): Update.
10826 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10828 2019-04-25 Ali Tamur <tamur@google.com>
10830 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10831 (read_attribute_value): Likewise.
10832 (dwarf2_read_addr_index): Update comment.
10833 (read_str_index): Add DW_FORM_strx.
10834 (dwarf2_string_attr): Likewise.
10835 (dwarf2_const_value_attr): Likewise.
10836 (dump_die_shallow): Likewise.
10837 (dwarf2_fetch_constant_bytes): Likewise.
10838 (skip_form_bytes): Likewise.
10839 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10841 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10845 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10846 OFFSET. Verify if current mapping contains an ELF header.
10847 (linux_find_memory_regions_full): Adjust call to
10850 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10851 Kang Li <kanglictf@gmail.com>
10855 * dwarf2-frame.c (read_initial_length): Be consistent about using
10856 unsigned representation of length.
10857 (decode_frame_entry_1): Likewise. Check for wraparound of
10858 end pointer as well as buffer overflow.
10860 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10862 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10865 2019-04-24 Tom Tromey <tromey@adacore.com>
10867 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10869 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10871 * s12z-tdep.c (s12z_unwind_pc): Delete.
10872 (s12z_unwind_sp): Delete.
10873 (s12z_gdbarch_init): Don't register deleted functions with
10876 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10878 * rl78-tdep.c (rl78_unwind_sp): Delete.
10879 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10881 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10883 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10884 (xstormy16_unwind_pc): Delete.
10885 (xstormy16_dummy_id): Delete.
10886 (xstormy16_gdbarch_init): Don't register deleted functions with
10889 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10891 * vax-tdep.c (vax_unwind_pc): Delete.
10892 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10896 * v850-tdep.c (v850_unwind_sp): Delete.
10897 (v850_unwind_pc): Delete.
10898 (v850_dummy_id): Delete.
10899 (v850_gdbarch_init): Don't register deleted functions with
10902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10904 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10905 (tilegx_unwind_pc): Delete.
10906 (tilegx_unwind_dummy_id): Delete.
10907 (tilegx_gdbarch_init): Don't register deleted functions with
10910 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10912 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10913 (tic6x_dummy_id): Delete.
10914 (tic6x_gdbarch_init): Don't register deleted functions with
10917 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10919 * sparc-tdep.c (sparc_unwind_pc): Delete.
10920 (sparc32_gdbarch_init): Don't register deleted function with
10923 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10925 * sh-tdep.c (sh_unwind_sp): Delete.
10926 (sh_unwind_pc): Delete.
10927 (sh_dummy_id): Delete.
10928 (sh_gdbarch_init): Don't register deleted functions with
10931 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10933 * score-tdep.c (score_unwind_sp): Delete.
10934 (score_unwind_pc): Delete.
10935 (score_dummy_id): Delete.
10936 (score_gdbarch_init): Don't register deleted functions with
10939 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10941 * rx-tdep.c (rx_unwind_pc): Delete.
10942 (rx_unwind_sp): Delete.
10943 (rx_dummy_id): Delete.
10944 (rx_gdbarch_init): Don't register deleted functions with
10945 gdbarch. Update comment.
10947 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10949 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10950 (rs6000_dummy_id): Delete.
10951 (rs6000_gdbarch_init): Don't register deleted functions with
10954 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10956 * or1k-tdep.c (or1k_dummy_id): Delete.
10957 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10959 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10961 * nios2-tdep.c (nios2_dummy_id): Delete.
10962 (nios2_unwind_sp): Delete.
10963 (nios2_gdbarch_init): Don't register deleted functions with
10966 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10968 * nds32-tdep.c (nds32_dummy_id): Delete.
10969 (nds32_unwind_pc): Delete.
10970 (nds32_unwind_sp): Delete.
10971 (nds32_gdbarch_init): Don't register deleted functions with
10974 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10976 * msp430-tdep.c (msp430_unwind_pc): Delete.
10977 (msp430_unwind_sp): Delete.
10978 (msp430_dummy_id): Delete.
10979 (msp430_gdbarch_init): Don't register deleted functions with
10982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10984 * moxie-tdep.c (moxie_unwind_sp): Delete.
10985 (moxie_unwind_pc): Delete.
10986 (moxie_dummy_id): Delete.
10987 (moxie_gdbarch_init): Don't register deleted functions with
10990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10992 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10993 (mn10300_unwind_pc): Delete.
10994 (mn10300_unwind_sp): Delete.
10995 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10997 (mn10300_frame_unwind_init): Don't register deleted functions with
11000 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11002 * mep-tdep.c (mep_unwind_pc): Delete.
11003 (mep_unwind_sp): Delete.
11004 (mep_dummy_id): Delete.
11005 (mep_gdbarch_init): Don't register deleted functions with
11008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11010 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11011 (m68hc11_unwind_sp): Delete.
11012 (m68hc11_gdbarch_init): Don't register deleted functions with
11015 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11017 * m32r-tdep.c (m32r_unwind_sp): Delete.
11018 (m32r_unwind_pc): Delete.
11019 (m32r_dummy_id): Delete.
11020 (m32r_gdbarch_init): Don't register deleted functions with
11023 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11025 * m32c-tdep.c (m32c_unwind_pc): Delete.
11026 (m32c_unwind_sp): Delete.
11027 (m32c_dummy_id): Delete.
11028 (m32c_gdbarch_init): Don't register deleted functions with
11031 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11033 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11034 (lm32_unwind_pc): Delete.
11035 (lm32_dummy_id): Delete.
11036 (lm32_gdbarch_init): Don't register deleted functions with
11039 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11041 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11042 (iq2000_unwind_pc): Delete.
11043 (iq2000_dummy_id): Delete.
11044 (iq2000_gdbarch_init): Don't register deleted functions with
11047 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11049 * nds32-tdep.c (nds32_type_align): Delete.
11050 (nds32_push_dummy_call): Use type_align instead.
11052 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11054 * arm-tdep.c (arm_type_align): Only handle vector override case.
11055 (arm_push_dummy_call): Use type_align.
11056 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11058 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11060 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11062 (pass_on_stack): Use type_align.
11063 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11066 2019-04-23 Tom Tromey <tromey@adacore.com>
11068 * dwarf2read.c (line_header::file_name_at): Remove unused
11071 2019-04-23 Tom de Vries <tdevries@suse.de>
11074 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11078 2019-03-27 Ali Tamur <tamur@google.com>
11080 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11081 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11082 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11083 (dwarf_expr_context::get_addr_index): Likewise
11084 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11085 (symbol_needs_eval_context::get_addr_index): Likewise
11086 (disassemble_dwarf_expression): Add DW_OP_addrx
11087 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11088 (read_cutu_die_from_dwo): Update comment
11089 (skip_one_die): Add DW_FORM_addrx
11090 (read_attribute_value): Likewise
11091 (var_decode_location): Add DW_OP_addrx
11092 (dwarf2_const_value_attr): Add DW_FORM_addrx
11093 (dump_die_shallow): Likewise
11094 (dwarf2_fetch_constant_bytes): Likewise
11095 (decode_locdesc): Add DW_OP_addrx
11096 (skip_form_bytes): Add DW_FORM_addrx
11098 2019-04-22 Ali Tamur <tamur@google.com>
11100 * MAINTAINERS (Write After Approval): Add self.
11102 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11104 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11105 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11106 (open_symbol_file_object): Likewise.
11107 (svr4_default_sos): Add info parameter.
11108 (svr4_read_so_list): Likewise.
11109 (svr4_current_sos_direct): Adjust functions calls to pass down
11111 (svr4_current_sos_1): Add info parameter.
11112 (svr4_current_sos): Call get_svr4_info, pass info down to
11113 svr4_current_sos_1.
11114 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11116 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11118 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11120 (probes_table_remove_objfile_probes): Likewise.
11121 (register_solib_event_probe): Add info parameter.
11122 (solist_update_incremental): Pass info parameter down to
11124 (disable_probes_interface): Add info parameter.
11125 (svr4_handle_solib_event): Pass current_program_space to
11126 get_svr4_info. Adjust disable_probes_interface cleanup.
11127 (svr4_create_probe_breakpoints): Add info parameter, pass it
11128 down to register_solib_event_probe.
11129 (svr4_create_solib_event_breakpoints): Add info parameter,
11130 pass it down to svr4_create_probe_breakpoints.
11131 (enable_break): Pass info down to
11132 svr4_create_solib_event_breakpoints.
11133 (svr4_solib_create_inferior_hook): Pass current_program_space to
11135 (svr4_clear_solib): Likewise.
11137 2019-04-22 Pedro Alves <palves@redhat.com>
11139 * solib-svr4.c (svr4_free_objfile_observer): New.
11140 (probe_and_action::objfile): New field.
11141 (probes_table_htab_remove_objfile_probes)
11142 (probes_table_remove_objfile_probes): New functions.
11143 (register_solib_event_probe): Add 'objfile' parameter. Store it
11144 in the new probe_and_action. Don't store the probe in 'lookup'.
11145 (svr4_create_probe_breakpoints): Pass objfile to
11146 register_solib_event_probe.
11147 (_initialize_svr4_solib): Register a free_objfile observer.
11149 2019-04-19 Tom Tromey <tom@tromey.com>
11151 * common/queue.h: Remove.
11153 2019-04-19 Tom Tromey <tom@tromey.com>
11155 * event-loop.c: Don't include "common/queue.h".
11157 2019-04-19 Tom Tromey <tom@tromey.com>
11159 * remote.c (remote_target): Use delete.
11160 * remote-notif.h: Include <list>, not "common/queue.h".
11161 (notif_client_p): Remove typedef.
11162 (remote_notif_state): Add constructor, destructor, initializer.
11163 <notif_queue>: Now a std::list.
11164 (remote_notif_state_xfree): Don't declare.
11165 * remote-notif.c (remote_notif_process, handle_notification)
11166 (remote_notif_state_allocate): Update.
11167 (~remote_notif_state): Rename from remote_notif_state_xfree.
11169 2019-04-19 Tom Tromey <tom@tromey.com>
11171 * symfile.c (reread_symbols): Update.
11172 * objfiles.c (objfile_register_static_link)
11173 (objfile_lookup_static_link): Update
11174 (~objfile) Don't delete static_links.
11175 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11177 2019-04-19 Tom Tromey <tom@tromey.com>
11179 * type-stack.h (struct type_stack) <insert>: Constify string.
11180 * type-stack.c (type_stack::insert): Constify string.
11181 * gdbtypes.h (lookup_template_type): Update.
11182 (address_space_name_to_int): Update.
11183 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11185 (lookup_template_type): Make name const.
11186 * c-exp.y: Update rules.
11187 (lex_one_token, classify_name, classify_inner_name)
11188 (c_print_token): Update.
11189 * p-exp.y: Update rules.
11191 * f-exp.y: Update rules.
11193 * d-exp.y: Update rules.
11194 (lex_one_token, classify_name, classify_inner_name): Update.
11195 * parse.c (write_dollar_variable, copy_name): Return std::string.
11196 * parser-defs.h (copy_name): Change return type.
11197 * m2-exp.y: Update rules.
11199 * go-exp.y (lex_one_token): Update.
11201 (classify_unsafe_function, classify_packaged_name)
11202 (classify_name, yylex): Update.
11204 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11206 * configure.ac: add --enable-source-highlight switch.
11207 * configure: Regenerate.
11208 * top.c (print_gdb_version): plumb --enable-source-highlight
11209 status to "show configuration".
11211 2019-04-19 Tom Tromey <tromey@adacore.com>
11213 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11215 (empty_record, ada_template_to_fixed_record_type_1)
11216 (template_to_static_fixed_type)
11217 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11218 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11219 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11222 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11225 * source.c (print_source_lines_base): Advance "iter" when a
11226 control character is seen.
11228 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11230 * inferior.h (struct infcall_suspend_state_deleter):
11231 Catch exception in destructor to avoid crash.
11233 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11235 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11236 close to the add_com "shell".
11238 2019-04-18 Tom Tromey <tromey@adacore.com>
11240 * process-stratum-target.h (class process_stratum_target)
11241 <stratum>: Add "final".
11243 2019-04-17 Tom Tromey <tromey@adacore.com>
11245 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11246 against nullptr before use.
11248 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11250 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11252 2019-04-17 Jim Wilson <jimw@sifive.com>
11253 Andrew Burgess <andrew.burgess@embecosm.com>
11255 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11256 code read might fail, assume 4-byte breakpoint in that case.
11258 2019-04-15 Leszek Swirski <leszeks@google.com>
11260 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11261 rather than a hand-rolled POD check when checking for forced MEMORY
11264 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11266 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11267 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11269 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11270 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11271 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11274 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11276 * aarch64-linux-nat.c
11277 (aarch64_linux_nat_target::thread_architecture): Add override.
11278 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11281 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11283 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11285 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11287 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11288 target types of size 96-bits, add some additional comments, and
11289 check that the builtin type we found was the correct size.
11291 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11293 * utils.c (prompt_for_continue): Don't restore the styling at the
11294 end, as applied_style has the wrong value. This fixes styling in
11295 long lists of file names that are interrupted by the "Continue?"
11298 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11300 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11301 * c-lang.c (c_language_defn): Likewise.
11302 (cplus_language_defn): Likewise.
11303 (asm_language_defn): Likewise.
11304 (minimal_language_defn): Likewise.
11305 * d-lang.c (d_language_defn): Likewise.
11306 * f-lang.c (f_language_defn): Likewise.
11307 * go-lang.c (go_language_defn): Likewise.
11308 * language.c (unknown_language_defn): Likewise.
11309 (auto_language_defn): Likewise.
11310 * language.h (struct language_defn): Remove la_magic field.
11311 (LANG_MAGIC): Delete.
11312 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11313 * objc-lang.c (objc_language_defn): Likewise.
11314 * opencl-lang.c (opencl_language_defn): Likewise.
11315 * p-lang.c (pascal_language_defn): Likewise.
11316 * rust-lang.c (rust_language_defn): Likewise.
11318 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11320 * riscv-tdep.c (riscv_type_align): New function.
11321 (riscv_type_alignment): Delete.
11322 (riscv_arg_location): Use 'type_align'.
11323 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11325 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11327 * gdbtypes.c (type_align): A struct with no non-static fields also
11328 has alignment of 1.
11330 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11332 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11334 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11336 (riscv_struct_info::analyse): New implementation using new
11337 analyse_inner member function.
11338 (riscv_struct_info::field_offset): New member function.
11339 (riscv_struct_info::m_offsets): New member variable.
11340 (riscv_struct_info::analyse_inner): New private member function,
11341 takes the old implementation of riscv_struct_info::analyse but
11342 extended to track field offsets.
11343 (riscv_call_arg_struct): Update the struct folding special cases
11344 to handle cases where empty C++ structs, which are non-zero
11346 (riscv_arg_location): Initialise the length of each location, a
11347 non-zero length now indicates the location is in use.
11348 (riscv_push_dummy_call): Allow for the first location having a
11349 non-zero offset when setting up arguments.
11350 (riscv_return_value): Likewise, but for return values.
11352 2019-04-11 Tom Tromey <tromey@adacore.com>
11354 * utils.c (internal_vproblem): Make "msg" const.
11356 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11358 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11359 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11360 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11361 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11363 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11365 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11367 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11368 of amd64_collect_native_gregset.
11369 (amd64_linux_nat_target::store_registers): Likewise.
11371 2019-04-10 Tom Tromey <tom@tromey.com>
11373 * symtab.c (lookup_global_symbol_from_objfile)
11374 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11375 * objfiles.h (class separate_debug_iterator): New.
11376 (class separate_debug_range): New.
11377 (struct objfile) <separate_debug_objfiles>: New method.
11378 (objfile_separate_debug_iterate): Don't declare.
11379 * objfiles.c (separate_debug_iterator::operator++): Rename from
11380 objfile_separate_debug_iterate.
11381 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11383 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11386 2019-04-10 Tom Tromey <tom@tromey.com>
11388 * symfile.c (reread_symbols): Remove old comment.
11389 * objfiles.c (free_all_objfiles): Fix a typo.
11391 2019-04-10 Tom Tromey <tom@tromey.com>
11393 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11394 * minsyms.c (lookup_minimal_symbol): Use foreach.
11395 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11396 (lookup_minimal_symbol_solib_trampoline): Likewise.
11397 * symfile.c (reread_symbols): Use foreach.
11399 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11400 Tom Tromey <tromey@adacore.com>
11403 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11404 (rust_lex_int_test): Change "value" to be LONGEST.
11405 (rust_lex_tests): Add test for long integer literal.
11407 2019-04-09 Tom Tromey <tromey@adacore.com>
11409 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11411 (extended_remote_target::attach): Update.
11412 (remote_target::remote_notice_new_inferior): Update.
11413 (remote_target::add_current_inferior_and_thread): Update.
11414 * inferior.c (exit_inferior_1): Use "false".
11415 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11417 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11419 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11420 the "start" command.
11422 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11424 * python/py-inferior.c (infpy_thread_from_thread_handle):
11425 Adjust comments to reflect renaming of thread_from_thread_handle
11426 to thread_from_handle. Adjust keywords. Fix type error message.
11427 (inferior_object_methods): Add thread_from_handle. Retain
11428 thread_from_thread_handle, but mark it as deprecated.
11430 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11432 * gdbthread.h (find_thread_by_handle): Revise declaration.
11433 * thread.c (find_thread_by_handle): Likewise. Adjust
11434 implementation too.
11435 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11436 support for buffer objects as handles.
11438 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11440 * python/py-infthread.c (thpy_thread_handle): New function.
11441 (thread_object_methods): Register thpy_thread_handle.
11443 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11445 * gdbthread.h (thread_to_thread_handle): Declare.
11446 * thread.c (gdbtypes.h): Include.
11447 (thread_to_thread_handle): New function.
11449 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11450 (target_thread_info_to_thread_handle): Declare.
11451 * target.c (target_thread_info_to_thread_handle): New function.
11452 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11453 * target-delegates.c: Regenerate.
11455 * linux-thread-db.c (class thread_db_target): Add method
11456 thread_info_to_thread_handle.
11457 (thread_db_target::thread_info_to_thread_handle): Define.
11458 * remote.c (class remote_target): Add new method
11459 thread_info_to_thread_handle.
11460 (remote_target::thread_info_to_thread_handle): Define.
11462 2019-04-08 Pedro Alves <palves@redhat.com>
11464 * common/common-exceptions.c (throw_exception): Don't create
11465 named object to throw; throw directly.
11466 (throw_it): Likewise. Don't initialize gdb_exception::message
11467 here, with new; pass FMT and AP to the ctor instead.
11468 * common/common-exceptions.h: Include <string>.
11469 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11470 const char *, va_list)): New ctor. Use std::make_shared.
11471 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11473 (gdb_exception_error::gdb_exception_error(enum errors, const char
11475 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11477 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11479 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11480 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11483 2019-04-08 Tom Tromey <tom@tromey.com>
11485 * valops.c (value_rtti_indirect_type): Replace throw_exception
11487 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11489 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11491 * target.c (target_translate_tls_address): Replace throw_exception
11493 * stack.c (frame_apply_command_count): Replace throw_exception
11495 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11497 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11499 * rs6000-tdep.c (rs6000_frame_cache)
11500 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11501 * remote.c: Replace throw_exception with throw.
11502 * record-full.c (record_full_message, record_full_wait_1)
11503 (record_full_restore): Replace throw_exception with throw.
11505 (get_thread_current_frame_id, record_btrace_start_replaying)
11506 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11507 (cmd_record_btrace_start): Replace throw_exception with throw.
11508 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11510 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11511 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11513 (find_linespec_symbols): Replace throw_exception with throw.
11514 * infrun.c (displaced_step_prepare, resume): Replace
11515 throw_exception with throw.
11516 * infcmd.c (post_create_inferior): Replace throw_exception with
11518 * inf-loop.c (inferior_event_handler): Replace throw_exception
11520 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11521 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11522 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11523 (get_prev_frame_always, get_frame_pc_if_available)
11524 (get_frame_address_in_block_if_available, get_frame_language):
11525 Replace throw_exception with throw.
11526 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11527 throw_exception with throw.
11528 * eval.c (fetch_subexp_value, evaluate_var_value)
11529 (evaluate_funcall, evaluate_subexp_standard): Replace
11530 throw_exception with throw.
11531 * dwarf2loc.c (call_site_find_chain)
11532 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11533 Replace throw_exception with throw.
11534 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11536 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11538 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11539 * completer.c (complete_line_internal): Replace throw_exception
11541 * compile/compile-object-run.c (compile_object_run): Replace
11542 throw_exception with throw.
11543 * cli/cli-script.c (process_next_line): Replace throw_exception
11545 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11546 (btrace_enable, btrace_maint_update_pt_packets): Replace
11547 throw_exception with throw.
11548 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11549 throw_exception with throw.
11550 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11551 throw_exception with throw.
11552 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11553 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11554 * aarch64-tdep.c (aarch64_make_prologue_cache)
11555 (aarch64_make_stub_cache): Replace throw_exception with throw.
11557 2019-04-08 Tom Tromey <tom@tromey.com>
11559 * common/common-exceptions.c (throw_exception): Rename from
11560 throw_exception_cxx. Remove old copy. Make argument const.
11561 (throw_it): Create and throw exception objects directly.
11562 * common/common-exceptions.h (throw_exception): Make argument
11564 (struct gdb_exception_error): Add constructor.
11565 (struct gdb_exception_quit): Add constructor.
11567 2019-04-08 Tom Tromey <tom@tromey.com>
11569 * common/common-exceptions.h (exception_rethrow): Don't declare.
11570 (TRY_SJLJ): Update comment.
11571 (TRY, CATCH, END_CATCH): Remove.
11572 * common/common-exceptions.c (exception_rethrow): Remove.
11574 2019-04-08 Tom Tromey <tom@tromey.com>
11576 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11578 (gdb_exception_error): Rename from
11579 gdb_exception_RETURN_MASK_ERROR.
11580 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11581 (gdb_quit_bad_alloc): Update.
11582 * aarch64-tdep.c: Update.
11583 * ada-lang.c: Update.
11584 * ada-typeprint.c: Update.
11585 * ada-valprint.c: Update.
11586 * amd64-tdep.c: Update.
11587 * arch-utils.c: Update.
11588 * break-catch-throw.c: Update.
11589 * breakpoint.c: Update.
11590 * btrace.c: Update.
11591 * c-varobj.c: Update.
11592 * cli/cli-cmds.c: Update.
11593 * cli/cli-interp.c: Update.
11594 * cli/cli-script.c: Update.
11595 * common/common-exceptions.c: Update.
11596 * common/new-op.c: Update.
11597 * common/selftest.c: Update.
11598 * compile/compile-c-symbols.c: Update.
11599 * compile/compile-cplus-symbols.c: Update.
11600 * compile/compile-object-load.c: Update.
11601 * compile/compile-object-run.c: Update.
11602 * completer.c: Update.
11603 * corelow.c: Update.
11604 * cp-abi.c: Update.
11605 * cp-support.c: Update.
11606 * cp-valprint.c: Update.
11607 * darwin-nat.c: Update.
11608 * disasm-selftests.c: Update.
11609 * dtrace-probe.c: Update.
11610 * dwarf-index-cache.c: Update.
11611 * dwarf-index-write.c: Update.
11612 * dwarf2-frame-tailcall.c: Update.
11613 * dwarf2-frame.c: Update.
11614 * dwarf2loc.c: Update.
11615 * dwarf2read.c: Update.
11617 * event-loop.c: Update.
11618 * event-top.c: Update.
11620 * f-valprint.c: Update.
11621 * fbsd-tdep.c: Update.
11622 * frame-unwind.c: Update.
11624 * gdbtypes.c: Update.
11625 * gnu-v3-abi.c: Update.
11626 * guile/guile-internal.h: Update.
11627 * guile/scm-block.c: Update.
11628 * guile/scm-breakpoint.c: Update.
11629 * guile/scm-cmd.c: Update.
11630 * guile/scm-disasm.c: Update.
11631 * guile/scm-frame.c: Update.
11632 * guile/scm-lazy-string.c: Update.
11633 * guile/scm-math.c: Update.
11634 * guile/scm-param.c: Update.
11635 * guile/scm-ports.c: Update.
11636 * guile/scm-pretty-print.c: Update.
11637 * guile/scm-symbol.c: Update.
11638 * guile/scm-symtab.c: Update.
11639 * guile/scm-type.c: Update.
11640 * guile/scm-value.c: Update.
11641 * i386-linux-tdep.c: Update.
11642 * i386-tdep.c: Update.
11643 * inf-loop.c: Update.
11644 * infcall.c: Update.
11645 * infcmd.c: Update.
11646 * infrun.c: Update.
11648 * language.c: Update.
11649 * linespec.c: Update.
11650 * linux-fork.c: Update.
11651 * linux-nat.c: Update.
11652 * linux-tdep.c: Update.
11653 * linux-thread-db.c: Update.
11655 * mi/mi-cmd-break.c: Update.
11656 * mi/mi-cmd-stack.c: Update.
11657 * mi/mi-interp.c: Update.
11658 * mi/mi-main.c: Update.
11659 * objc-lang.c: Update.
11660 * p-valprint.c: Update.
11662 * ppc-linux-tdep.c: Update.
11663 * printcmd.c: Update.
11664 * python/py-arch.c: Update.
11665 * python/py-breakpoint.c: Update.
11666 * python/py-cmd.c: Update.
11667 * python/py-finishbreakpoint.c: Update.
11668 * python/py-frame.c: Update.
11669 * python/py-framefilter.c: Update.
11670 * python/py-gdb-readline.c: Update.
11671 * python/py-inferior.c: Update.
11672 * python/py-infthread.c: Update.
11673 * python/py-lazy-string.c: Update.
11674 * python/py-linetable.c: Update.
11675 * python/py-objfile.c: Update.
11676 * python/py-param.c: Update.
11677 * python/py-prettyprint.c: Update.
11678 * python/py-progspace.c: Update.
11679 * python/py-record-btrace.c: Update.
11680 * python/py-record.c: Update.
11681 * python/py-symbol.c: Update.
11682 * python/py-type.c: Update.
11683 * python/py-unwind.c: Update.
11684 * python/py-utils.c: Update.
11685 * python/py-value.c: Update.
11686 * python/python.c: Update.
11687 * record-btrace.c: Update.
11688 * record-full.c: Update.
11689 * remote-fileio.c: Update.
11690 * remote.c: Update.
11691 * riscv-tdep.c: Update.
11692 * rs6000-aix-tdep.c: Update.
11693 * rs6000-tdep.c: Update.
11694 * rust-exp.y: Update.
11695 * rust-lang.c: Update.
11696 * s390-tdep.c: Update.
11697 * selftest-arch.c: Update.
11698 * solib-dsbt.c: Update.
11699 * solib-frv.c: Update.
11700 * solib-spu.c: Update.
11701 * solib-svr4.c: Update.
11703 * sparc64-linux-tdep.c: Update.
11705 * symfile-mem.c: Update.
11706 * symmisc.c: Update.
11707 * target.c: Update.
11708 * thread.c: Update.
11710 * tracefile-tfile.c: Update.
11711 * tui/tui.c: Update.
11712 * typeprint.c: Update.
11713 * unittests/cli-utils-selftests.c: Update.
11714 * unittests/parse-connection-spec-selftests.c: Update.
11715 * valops.c: Update.
11716 * valprint.c: Update.
11718 * varobj.c: Update.
11719 * windows-nat.c: Update.
11720 * x86-linux-nat.c: Update.
11721 * xml-support.c: Update.
11723 2019-04-08 Tom Tromey <tom@tromey.com>
11725 * xml-support.c: Use C++ exception handling.
11726 * x86-linux-nat.c: Use C++ exception handling.
11727 * windows-nat.c: Use C++ exception handling.
11728 * varobj.c: Use C++ exception handling.
11729 * value.c: Use C++ exception handling.
11730 * valprint.c: Use C++ exception handling.
11731 * valops.c: Use C++ exception handling.
11732 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11734 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11735 * typeprint.c: Use C++ exception handling.
11736 * tui/tui.c: Use C++ exception handling.
11737 * tracefile-tfile.c: Use C++ exception handling.
11738 * top.c: Use C++ exception handling.
11739 * thread.c: Use C++ exception handling.
11740 * target.c: Use C++ exception handling.
11741 * symmisc.c: Use C++ exception handling.
11742 * symfile-mem.c: Use C++ exception handling.
11743 * stack.c: Use C++ exception handling.
11744 * sparc64-linux-tdep.c: Use C++ exception handling.
11745 * solib.c: Use C++ exception handling.
11746 * solib-svr4.c: Use C++ exception handling.
11747 * solib-spu.c: Use C++ exception handling.
11748 * solib-frv.c: Use C++ exception handling.
11749 * solib-dsbt.c: Use C++ exception handling.
11750 * selftest-arch.c: Use C++ exception handling.
11751 * s390-tdep.c: Use C++ exception handling.
11752 * rust-lang.c: Use C++ exception handling.
11753 * rust-exp.y: Use C++ exception handling.
11754 * rs6000-tdep.c: Use C++ exception handling.
11755 * rs6000-aix-tdep.c: Use C++ exception handling.
11756 * riscv-tdep.c: Use C++ exception handling.
11757 * remote.c: Use C++ exception handling.
11758 * remote-fileio.c: Use C++ exception handling.
11759 * record-full.c: Use C++ exception handling.
11760 * record-btrace.c: Use C++ exception handling.
11761 * python/python.c: Use C++ exception handling.
11762 * python/py-value.c: Use C++ exception handling.
11763 * python/py-utils.c: Use C++ exception handling.
11764 * python/py-unwind.c: Use C++ exception handling.
11765 * python/py-type.c: Use C++ exception handling.
11766 * python/py-symbol.c: Use C++ exception handling.
11767 * python/py-record.c: Use C++ exception handling.
11768 * python/py-record-btrace.c: Use C++ exception handling.
11769 * python/py-progspace.c: Use C++ exception handling.
11770 * python/py-prettyprint.c: Use C++ exception handling.
11771 * python/py-param.c: Use C++ exception handling.
11772 * python/py-objfile.c: Use C++ exception handling.
11773 * python/py-linetable.c: Use C++ exception handling.
11774 * python/py-lazy-string.c: Use C++ exception handling.
11775 * python/py-infthread.c: Use C++ exception handling.
11776 * python/py-inferior.c: Use C++ exception handling.
11777 * python/py-gdb-readline.c: Use C++ exception handling.
11778 * python/py-framefilter.c: Use C++ exception handling.
11779 * python/py-frame.c: Use C++ exception handling.
11780 * python/py-finishbreakpoint.c: Use C++ exception handling.
11781 * python/py-cmd.c: Use C++ exception handling.
11782 * python/py-breakpoint.c: Use C++ exception handling.
11783 * python/py-arch.c: Use C++ exception handling.
11784 * printcmd.c: Use C++ exception handling.
11785 * ppc-linux-tdep.c: Use C++ exception handling.
11786 * parse.c: Use C++ exception handling.
11787 * p-valprint.c: Use C++ exception handling.
11788 * objc-lang.c: Use C++ exception handling.
11789 * mi/mi-main.c: Use C++ exception handling.
11790 * mi/mi-interp.c: Use C++ exception handling.
11791 * mi/mi-cmd-stack.c: Use C++ exception handling.
11792 * mi/mi-cmd-break.c: Use C++ exception handling.
11793 * main.c: Use C++ exception handling.
11794 * linux-thread-db.c: Use C++ exception handling.
11795 * linux-tdep.c: Use C++ exception handling.
11796 * linux-nat.c: Use C++ exception handling.
11797 * linux-fork.c: Use C++ exception handling.
11798 * linespec.c: Use C++ exception handling.
11799 * language.c: Use C++ exception handling.
11800 * jit.c: Use C++ exception handling.
11801 * infrun.c: Use C++ exception handling.
11802 * infcmd.c: Use C++ exception handling.
11803 * infcall.c: Use C++ exception handling.
11804 * inf-loop.c: Use C++ exception handling.
11805 * i386-tdep.c: Use C++ exception handling.
11806 * i386-linux-tdep.c: Use C++ exception handling.
11807 * guile/scm-value.c: Use C++ exception handling.
11808 * guile/scm-type.c: Use C++ exception handling.
11809 * guile/scm-symtab.c: Use C++ exception handling.
11810 * guile/scm-symbol.c: Use C++ exception handling.
11811 * guile/scm-pretty-print.c: Use C++ exception handling.
11812 * guile/scm-ports.c: Use C++ exception handling.
11813 * guile/scm-param.c: Use C++ exception handling.
11814 * guile/scm-math.c: Use C++ exception handling.
11815 * guile/scm-lazy-string.c: Use C++ exception handling.
11816 * guile/scm-frame.c: Use C++ exception handling.
11817 * guile/scm-disasm.c: Use C++ exception handling.
11818 * guile/scm-cmd.c: Use C++ exception handling.
11819 * guile/scm-breakpoint.c: Use C++ exception handling.
11820 * guile/scm-block.c: Use C++ exception handling.
11821 * guile/guile-internal.h: Use C++ exception handling.
11822 * gnu-v3-abi.c: Use C++ exception handling.
11823 * gdbtypes.c: Use C++ exception handling.
11824 * frame.c: Use C++ exception handling.
11825 * frame-unwind.c: Use C++ exception handling.
11826 * fbsd-tdep.c: Use C++ exception handling.
11827 * f-valprint.c: Use C++ exception handling.
11828 * exec.c: Use C++ exception handling.
11829 * event-top.c: Use C++ exception handling.
11830 * event-loop.c: Use C++ exception handling.
11831 * eval.c: Use C++ exception handling.
11832 * dwarf2read.c: Use C++ exception handling.
11833 * dwarf2loc.c: Use C++ exception handling.
11834 * dwarf2-frame.c: Use C++ exception handling.
11835 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11836 * dwarf-index-write.c: Use C++ exception handling.
11837 * dwarf-index-cache.c: Use C++ exception handling.
11838 * dtrace-probe.c: Use C++ exception handling.
11839 * disasm-selftests.c: Use C++ exception handling.
11840 * darwin-nat.c: Use C++ exception handling.
11841 * cp-valprint.c: Use C++ exception handling.
11842 * cp-support.c: Use C++ exception handling.
11843 * cp-abi.c: Use C++ exception handling.
11844 * corelow.c: Use C++ exception handling.
11845 * completer.c: Use C++ exception handling.
11846 * compile/compile-object-run.c: Use C++ exception handling.
11847 * compile/compile-object-load.c: Use C++ exception handling.
11848 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11849 * compile/compile-c-symbols.c: Use C++ exception handling.
11850 * common/selftest.c: Use C++ exception handling.
11851 * common/new-op.c: Use C++ exception handling.
11852 * cli/cli-script.c: Use C++ exception handling.
11853 * cli/cli-interp.c: Use C++ exception handling.
11854 * cli/cli-cmds.c: Use C++ exception handling.
11855 * c-varobj.c: Use C++ exception handling.
11856 * btrace.c: Use C++ exception handling.
11857 * breakpoint.c: Use C++ exception handling.
11858 * break-catch-throw.c: Use C++ exception handling.
11859 * arch-utils.c: Use C++ exception handling.
11860 * amd64-tdep.c: Use C++ exception handling.
11861 * ada-valprint.c: Use C++ exception handling.
11862 * ada-typeprint.c: Use C++ exception handling.
11863 * ada-lang.c: Use C++ exception handling.
11864 * aarch64-tdep.c: Use C++ exception handling.
11866 2019-04-08 Tom Tromey <tom@tromey.com>
11868 * xml-support.c (gdb_xml_parser::parse): Update.
11869 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11870 * value.c (show_convenience): Update.
11871 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11872 (test_parse_flags_qcs): Update.
11873 * thread.c (thr_try_catch_cmd): Update.
11874 * target.c (target_translate_tls_address): Update.
11875 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11876 (info_frame_command_core, frame_apply_command_count): Update.
11877 * rust-exp.y (rust_lex_exception_test): Update.
11878 * riscv-tdep.c (riscv_print_one_register_info): Update.
11879 * remote.c (remote_target::enable_btrace): Update.
11880 * record-btrace.c (record_btrace_enable_warn): Update.
11881 * python/py-utils.c (gdbpy_convert_exception): Update.
11882 * printcmd.c (do_one_display, print_variable_and_value): Update.
11883 * mi/mi-main.c (mi_print_exception): Update.
11884 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11885 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11886 * linux-nat.c (linux_nat_target::attach): Update.
11887 * linux-fork.c (class scoped_switch_fork_info): Update.
11888 * infrun.c (displaced_step_prepare): Update.
11889 * infcall.c (call_function_by_hand_dummy): Update.
11890 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11891 * gnu-v3-abi.c (print_one_vtable): Update.
11892 * frame.c (get_prev_frame_always): Update.
11893 * f-valprint.c (info_common_command_for_block): Update.
11894 * exec.c (try_open_exec_file): Update.
11895 * exceptions.c (print_exception, exception_print)
11896 (exception_fprintf, exception_print_same): Update.
11897 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11898 * dwarf-index-cache.c (index_cache::store)
11899 (index_cache::lookup_gdb_index): Update.
11900 * darwin-nat.c (maybe_cache_shell): Update.
11901 * cp-valprint.c (cp_print_value_fields): Update.
11902 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11903 (gcc_cplus_symbol_address): Update.
11904 * compile/compile-c-symbols.c (gcc_convert_symbol)
11905 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11906 * common/selftest.c: Update.
11907 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11909 (exception_try_scope_entry, exception_try_scope_exit): Don't
11911 (struct exception_try_scope): Remove.
11912 (TRY): Don't use exception_try_scope.
11913 (struct gdb_exception): Add constructor, operator=.
11914 <what>: New method.
11915 (struct gdb_exception_RETURN_MASK_ALL)
11916 (struct gdb_exception_RETURN_MASK_ERROR)
11917 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11918 (struct gdb_quit_bad_alloc): Update.
11919 * common/common-exceptions.c (exception_none): Change
11921 (struct catcher) <state, exception>: Initialize inline.
11922 <prev>: Remove member.
11923 (current_catcher): Remove.
11924 (catchers): New global.
11925 (exceptions_state_mc_init): Simplify.
11926 (catcher_pop): Remove.
11927 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11928 (try_scope_depth, exception_try_scope_entry)
11929 (exception_try_scope_exit): Remove.
11930 (throw_exception_sjlj): Update.
11931 (exception_messages, exception_messages_size): Remove.
11932 (throw_it): Simplify.
11933 (gdb_exception_sliced_copy): Remove.
11934 (throw_exception_cxx): Update.
11935 * cli/cli-script.c (script_from_file): Update.
11936 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11938 * ada-valprint.c (ada_val_print): Update.
11939 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11940 (create_excep_cond_exprs): Update.
11942 2019-04-08 Tom Tromey <tom@tromey.com>
11944 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11945 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11946 (TRY, CATCH, END_CATCH): Remove some definitions.
11947 * common/common-exceptions.c: Don't use GDB_XCPT.
11948 (catcher_list_size): Remove.
11949 (throw_exception, throw_it): Simplify.
11951 2019-04-05 Tom Tromey <tom@tromey.com>
11953 Revert the header-sorting patch.
11954 * ft32-tdep.c: Revert.
11955 * frv-tdep.c: Revert.
11956 * frv-linux-tdep.c: Revert.
11958 * frame-unwind.c: Revert.
11959 * frame-base.c: Revert.
11960 * fork-child.c: Revert.
11961 * findvar.c: Revert.
11962 * findcmd.c: Revert.
11963 * filesystem.c: Revert.
11964 * filename-seen-cache.h: Revert.
11965 * filename-seen-cache.c: Revert.
11966 * fbsd-tdep.c: Revert.
11967 * fbsd-nat.h: Revert.
11968 * fbsd-nat.c: Revert.
11969 * f-valprint.c: Revert.
11970 * f-typeprint.c: Revert.
11971 * f-lang.c: Revert.
11972 * extension.h: Revert.
11973 * extension.c: Revert.
11974 * extension-priv.h: Revert.
11975 * expprint.c: Revert.
11978 * exceptions.c: Revert.
11979 * event-top.c: Revert.
11980 * event-loop.c: Revert.
11982 * elfread.c: Revert.
11983 * dwarf2read.h: Revert.
11984 * dwarf2read.c: Revert.
11985 * dwarf2loc.c: Revert.
11986 * dwarf2expr.h: Revert.
11987 * dwarf2expr.c: Revert.
11988 * dwarf2-frame.c: Revert.
11989 * dwarf2-frame-tailcall.c: Revert.
11990 * dwarf-index-write.h: Revert.
11991 * dwarf-index-write.c: Revert.
11992 * dwarf-index-common.c: Revert.
11993 * dwarf-index-cache.h: Revert.
11994 * dwarf-index-cache.c: Revert.
11995 * dummy-frame.c: Revert.
11996 * dtrace-probe.c: Revert.
11997 * disasm.h: Revert.
11998 * disasm.c: Revert.
11999 * disasm-selftests.c: Revert.
12000 * dictionary.c: Revert.
12001 * dicos-tdep.c: Revert.
12002 * demangle.c: Revert.
12003 * dcache.h: Revert.
12004 * dcache.c: Revert.
12005 * darwin-nat.h: Revert.
12006 * darwin-nat.c: Revert.
12007 * darwin-nat-info.c: Revert.
12008 * d-valprint.c: Revert.
12009 * d-namespace.c: Revert.
12010 * d-lang.c: Revert.
12012 * csky-tdep.c: Revert.
12013 * csky-linux-tdep.c: Revert.
12014 * cris-tdep.c: Revert.
12015 * cris-linux-tdep.c: Revert.
12016 * cp-valprint.c: Revert.
12017 * cp-support.c: Revert.
12018 * cp-namespace.c: Revert.
12019 * cp-abi.c: Revert.
12020 * corelow.c: Revert.
12021 * corefile.c: Revert.
12022 * continuations.c: Revert.
12023 * completer.h: Revert.
12024 * completer.c: Revert.
12025 * complaints.c: Revert.
12026 * coffread.c: Revert.
12027 * coff-pe-read.c: Revert.
12028 * cli-out.h: Revert.
12029 * cli-out.c: Revert.
12030 * charset.c: Revert.
12031 * c-varobj.c: Revert.
12032 * c-valprint.c: Revert.
12033 * c-typeprint.c: Revert.
12034 * c-lang.c: Revert.
12035 * buildsym.c: Revert.
12036 * buildsym-legacy.c: Revert.
12037 * build-id.h: Revert.
12038 * build-id.c: Revert.
12039 * btrace.c: Revert.
12040 * bsd-uthread.c: Revert.
12041 * breakpoint.h: Revert.
12042 * breakpoint.c: Revert.
12043 * break-catch-throw.c: Revert.
12044 * break-catch-syscall.c: Revert.
12045 * break-catch-sig.c: Revert.
12046 * blockframe.c: Revert.
12048 * bfin-tdep.c: Revert.
12049 * bfin-linux-tdep.c: Revert.
12050 * bfd-target.c: Revert.
12051 * bcache.c: Revert.
12052 * ax-general.c: Revert.
12053 * ax-gdb.h: Revert.
12054 * ax-gdb.c: Revert.
12055 * avr-tdep.c: Revert.
12057 * auto-load.c: Revert.
12058 * arm-wince-tdep.c: Revert.
12059 * arm-tdep.c: Revert.
12060 * arm-symbian-tdep.c: Revert.
12061 * arm-pikeos-tdep.c: Revert.
12062 * arm-obsd-tdep.c: Revert.
12063 * arm-nbsd-tdep.c: Revert.
12064 * arm-nbsd-nat.c: Revert.
12065 * arm-linux-tdep.c: Revert.
12066 * arm-linux-nat.c: Revert.
12067 * arm-fbsd-tdep.c: Revert.
12068 * arm-fbsd-nat.c: Revert.
12069 * arm-bsd-tdep.c: Revert.
12070 * arch-utils.c: Revert.
12071 * arc-tdep.c: Revert.
12072 * arc-newlib-tdep.c: Revert.
12073 * annotate.h: Revert.
12074 * annotate.c: Revert.
12075 * amd64-windows-tdep.c: Revert.
12076 * amd64-windows-nat.c: Revert.
12077 * amd64-tdep.c: Revert.
12078 * amd64-sol2-tdep.c: Revert.
12079 * amd64-obsd-tdep.c: Revert.
12080 * amd64-obsd-nat.c: Revert.
12081 * amd64-nbsd-tdep.c: Revert.
12082 * amd64-nbsd-nat.c: Revert.
12083 * amd64-nat.c: Revert.
12084 * amd64-linux-tdep.c: Revert.
12085 * amd64-linux-nat.c: Revert.
12086 * amd64-fbsd-tdep.c: Revert.
12087 * amd64-fbsd-nat.c: Revert.
12088 * amd64-dicos-tdep.c: Revert.
12089 * amd64-darwin-tdep.c: Revert.
12090 * amd64-bsd-nat.c: Revert.
12091 * alpha-tdep.c: Revert.
12092 * alpha-obsd-tdep.c: Revert.
12093 * alpha-nbsd-tdep.c: Revert.
12094 * alpha-mdebug-tdep.c: Revert.
12095 * alpha-linux-tdep.c: Revert.
12096 * alpha-linux-nat.c: Revert.
12097 * alpha-bsd-tdep.c: Revert.
12098 * alpha-bsd-nat.c: Revert.
12099 * aix-thread.c: Revert.
12101 * addrmap.c: Revert.
12102 * ada-varobj.c: Revert.
12103 * ada-valprint.c: Revert.
12104 * ada-typeprint.c: Revert.
12105 * ada-tasks.c: Revert.
12106 * ada-lang.c: Revert.
12107 * aarch64-tdep.c: Revert.
12108 * aarch64-ravenscar-thread.c: Revert.
12109 * aarch64-newlib-tdep.c: Revert.
12110 * aarch64-linux-tdep.c: Revert.
12111 * aarch64-linux-nat.c: Revert.
12112 * aarch64-fbsd-tdep.c: Revert.
12113 * aarch64-fbsd-nat.c: Revert.
12114 * aarch32-linux-nat.c: Revert.
12116 2019-04-05 Tom Tromey <tom@tromey.com>
12118 * ft32-tdep.c: Sort headers.
12119 * frv-tdep.c: Sort headers.
12120 * frv-linux-tdep.c: Sort headers.
12121 * frame.c: Sort headers.
12122 * frame-unwind.c: Sort headers.
12123 * frame-base.c: Sort headers.
12124 * fork-child.c: Sort headers.
12125 * findvar.c: Sort headers.
12126 * findcmd.c: Sort headers.
12127 * filesystem.c: Sort headers.
12128 * filename-seen-cache.h: Sort headers.
12129 * filename-seen-cache.c: Sort headers.
12130 * fbsd-tdep.c: Sort headers.
12131 * fbsd-nat.h: Sort headers.
12132 * fbsd-nat.c: Sort headers.
12133 * f-valprint.c: Sort headers.
12134 * f-typeprint.c: Sort headers.
12135 * f-lang.c: Sort headers.
12136 * extension.h: Sort headers.
12137 * extension.c: Sort headers.
12138 * extension-priv.h: Sort headers.
12139 * expprint.c: Sort headers.
12140 * exec.h: Sort headers.
12141 * exec.c: Sort headers.
12142 * exceptions.c: Sort headers.
12143 * event-top.c: Sort headers.
12144 * event-loop.c: Sort headers.
12145 * eval.c: Sort headers.
12146 * elfread.c: Sort headers.
12147 * dwarf2read.h: Sort headers.
12148 * dwarf2read.c: Sort headers.
12149 * dwarf2loc.c: Sort headers.
12150 * dwarf2expr.h: Sort headers.
12151 * dwarf2expr.c: Sort headers.
12152 * dwarf2-frame.c: Sort headers.
12153 * dwarf2-frame-tailcall.c: Sort headers.
12154 * dwarf-index-write.h: Sort headers.
12155 * dwarf-index-write.c: Sort headers.
12156 * dwarf-index-common.c: Sort headers.
12157 * dwarf-index-cache.h: Sort headers.
12158 * dwarf-index-cache.c: Sort headers.
12159 * dummy-frame.c: Sort headers.
12160 * dtrace-probe.c: Sort headers.
12161 * disasm.h: Sort headers.
12162 * disasm.c: Sort headers.
12163 * disasm-selftests.c: Sort headers.
12164 * dictionary.c: Sort headers.
12165 * dicos-tdep.c: Sort headers.
12166 * demangle.c: Sort headers.
12167 * dcache.h: Sort headers.
12168 * dcache.c: Sort headers.
12169 * darwin-nat.h: Sort headers.
12170 * darwin-nat.c: Sort headers.
12171 * darwin-nat-info.c: Sort headers.
12172 * d-valprint.c: Sort headers.
12173 * d-namespace.c: Sort headers.
12174 * d-lang.c: Sort headers.
12175 * ctf.c: Sort headers.
12176 * csky-tdep.c: Sort headers.
12177 * csky-linux-tdep.c: Sort headers.
12178 * cris-tdep.c: Sort headers.
12179 * cris-linux-tdep.c: Sort headers.
12180 * cp-valprint.c: Sort headers.
12181 * cp-support.c: Sort headers.
12182 * cp-namespace.c: Sort headers.
12183 * cp-abi.c: Sort headers.
12184 * corelow.c: Sort headers.
12185 * corefile.c: Sort headers.
12186 * continuations.c: Sort headers.
12187 * completer.h: Sort headers.
12188 * completer.c: Sort headers.
12189 * complaints.c: Sort headers.
12190 * coffread.c: Sort headers.
12191 * coff-pe-read.c: Sort headers.
12192 * cli-out.h: Sort headers.
12193 * cli-out.c: Sort headers.
12194 * charset.c: Sort headers.
12195 * c-varobj.c: Sort headers.
12196 * c-valprint.c: Sort headers.
12197 * c-typeprint.c: Sort headers.
12198 * c-lang.c: Sort headers.
12199 * buildsym.c: Sort headers.
12200 * buildsym-legacy.c: Sort headers.
12201 * build-id.h: Sort headers.
12202 * build-id.c: Sort headers.
12203 * btrace.c: Sort headers.
12204 * bsd-uthread.c: Sort headers.
12205 * breakpoint.h: Sort headers.
12206 * breakpoint.c: Sort headers.
12207 * break-catch-throw.c: Sort headers.
12208 * break-catch-syscall.c: Sort headers.
12209 * break-catch-sig.c: Sort headers.
12210 * blockframe.c: Sort headers.
12211 * block.c: Sort headers.
12212 * bfin-tdep.c: Sort headers.
12213 * bfin-linux-tdep.c: Sort headers.
12214 * bfd-target.c: Sort headers.
12215 * bcache.c: Sort headers.
12216 * ax-general.c: Sort headers.
12217 * ax-gdb.h: Sort headers.
12218 * ax-gdb.c: Sort headers.
12219 * avr-tdep.c: Sort headers.
12220 * auxv.c: Sort headers.
12221 * auto-load.c: Sort headers.
12222 * arm-wince-tdep.c: Sort headers.
12223 * arm-tdep.c: Sort headers.
12224 * arm-symbian-tdep.c: Sort headers.
12225 * arm-pikeos-tdep.c: Sort headers.
12226 * arm-obsd-tdep.c: Sort headers.
12227 * arm-nbsd-tdep.c: Sort headers.
12228 * arm-nbsd-nat.c: Sort headers.
12229 * arm-linux-tdep.c: Sort headers.
12230 * arm-linux-nat.c: Sort headers.
12231 * arm-fbsd-tdep.c: Sort headers.
12232 * arm-fbsd-nat.c: Sort headers.
12233 * arm-bsd-tdep.c: Sort headers.
12234 * arch-utils.c: Sort headers.
12235 * arc-tdep.c: Sort headers.
12236 * arc-newlib-tdep.c: Sort headers.
12237 * annotate.h: Sort headers.
12238 * annotate.c: Sort headers.
12239 * amd64-windows-tdep.c: Sort headers.
12240 * amd64-windows-nat.c: Sort headers.
12241 * amd64-tdep.c: Sort headers.
12242 * amd64-sol2-tdep.c: Sort headers.
12243 * amd64-obsd-tdep.c: Sort headers.
12244 * amd64-obsd-nat.c: Sort headers.
12245 * amd64-nbsd-tdep.c: Sort headers.
12246 * amd64-nbsd-nat.c: Sort headers.
12247 * amd64-nat.c: Sort headers.
12248 * amd64-linux-tdep.c: Sort headers.
12249 * amd64-linux-nat.c: Sort headers.
12250 * amd64-fbsd-tdep.c: Sort headers.
12251 * amd64-fbsd-nat.c: Sort headers.
12252 * amd64-dicos-tdep.c: Sort headers.
12253 * amd64-darwin-tdep.c: Sort headers.
12254 * amd64-bsd-nat.c: Sort headers.
12255 * alpha-tdep.c: Sort headers.
12256 * alpha-obsd-tdep.c: Sort headers.
12257 * alpha-nbsd-tdep.c: Sort headers.
12258 * alpha-mdebug-tdep.c: Sort headers.
12259 * alpha-linux-tdep.c: Sort headers.
12260 * alpha-linux-nat.c: Sort headers.
12261 * alpha-bsd-tdep.c: Sort headers.
12262 * alpha-bsd-nat.c: Sort headers.
12263 * aix-thread.c: Sort headers.
12264 * agent.c: Sort headers.
12265 * addrmap.c: Sort headers.
12266 * ada-varobj.c: Sort headers.
12267 * ada-valprint.c: Sort headers.
12268 * ada-typeprint.c: Sort headers.
12269 * ada-tasks.c: Sort headers.
12270 * ada-lang.c: Sort headers.
12271 * aarch64-tdep.c: Sort headers.
12272 * aarch64-ravenscar-thread.c: Sort headers.
12273 * aarch64-newlib-tdep.c: Sort headers.
12274 * aarch64-linux-tdep.c: Sort headers.
12275 * aarch64-linux-nat.c: Sort headers.
12276 * aarch64-fbsd-tdep.c: Sort headers.
12277 * aarch64-fbsd-nat.c: Sort headers.
12278 * aarch32-linux-nat.c: Sort headers.
12280 2019-04-04 Tom Tromey <tom@tromey.com>
12282 * varobj.c (varobj_create): Update.
12283 * rust-exp.y (struct rust_parser) <update_innermost_block,
12284 lookup_symbol>: New methods.
12285 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12287 (rust_parser::rust_lookup_type)
12288 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12289 * printcmd.c (display_command, do_one_display): Update.
12290 * parser-defs.h (struct parser_state) <parser_state>: Add
12291 "tracker" parameter.
12292 (block_tracker): New member.
12293 (class innermost_block_tracker) <innermost_block_tracker>: Add
12295 <reset>: Remove method.
12296 (innermost_block): Don't declare.
12297 (null_post_parser): Update.
12298 * parse.c (innermost_block): Remove global.
12299 (write_dollar_variable): Update.
12300 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12301 Remove "tracker_types" parameter.
12302 (parse_expression): Add "tracker" parameter.
12303 (parse_expression_for_completion): Update.
12304 (null_post_parser): Add "tracker" parameter.
12305 * p-exp.y: Update rules.
12306 * m2-exp.y: Update rules.
12307 * language.h (struct language_defn) <la_post_parser>: Add
12308 "tracker" parameter.
12309 * go-exp.y: Update rules.
12310 * f-exp.y: Update rules.
12311 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12313 * d-exp.y: Update rules.
12314 * c-exp.y: Update rules.
12315 * breakpoint.c (set_breakpoint_condition): Create an
12316 innermost_block_tracker.
12317 (watch_command_1): Likewise.
12318 * ada-lang.c (resolve): Add "tracker" parameter.
12319 (resolve_subexp): Likewise.
12320 * ada-exp.y (write_var_from_sym): Update.
12322 2019-04-04 Tom Tromey <tom@tromey.com>
12324 * type-stack.h: New file.
12325 * type-stack.c: New file.
12326 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12328 (insert_into_type_stack, insert_type, push_type, push_type_int)
12329 (insert_type_address_space, pop_type, pop_type_int)
12330 (pop_typelist, pop_type_stack, append_type_stack)
12331 (push_type_stack, get_type_stack, push_typelist)
12332 (follow_type_instance_flags, follow_types): Don't declare.
12333 * parse.c (type_stack): Remove global.
12334 (parse_exp_in_context): Update.
12335 (insert_into_type_stack, insert_type, push_type, push_type_int)
12336 (insert_type_address_space, pop_type, pop_type_int)
12337 (pop_typelist, pop_type_stack, append_type_stack)
12338 (push_type_stack, get_type_stack, push_typelist)
12339 (follow_type_instance_flags, follow_types): Remove (moved to
12341 * f-exp.y (type_stack): New global.
12343 (push_kind_type, f_parse): Update.
12344 * d-exp.y (type_stack): New global.
12347 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12349 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12350 (HFILES_NO_SRCDIR): Add type-stack.h.
12352 2019-04-04 Tom Tromey <tom@tromey.com>
12354 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12355 (rust_parser::convert_ast_to_expression, rust_parse)
12356 (rust_lex_test_completion, rust_lex_tests): Update.
12357 * parser-defs.h (struct expr_completion_state): New.
12358 (struct parser_state) <parser_state>: Add completion parameter.
12359 <mark_struct_expression, mark_completion_tag>: New methods.
12360 <parse_completion, m_completion_state>: New members.
12361 (prefixify_expression, null_post_parser): Update.
12362 (mark_struct_expression, mark_completion_tag): Don't declare.
12363 * parse.c (parse_completion, expout_last_struct)
12364 (expout_tag_completion_type, expout_completion_name): Remove
12366 (parser_state::mark_struct_expression)
12367 (parser_state::mark_completion_tag): Now methods.
12368 (prefixify_expression): Add last_struct parameter.
12369 (prefixify_subexp): Likewise.
12370 (parse_exp_1): Update.
12371 (parse_exp_in_context): Add cstate parameter. Update.
12372 (parse_expression_for_completion): Create an
12373 expr_completion_state.
12374 (null_post_parser): Add "completion" parameter.
12375 * p-exp.y: Update rules.
12377 * language.h (struct language_defn) <la_post_parser>: Add
12378 "completing" parameter.
12379 * go-exp.y: Update rules.
12380 (lex_one_token): Update.
12381 * expression.h (parse_completion): Don't declare.
12382 * d-exp.y: Update rules.
12383 (lex_one_token): Update rules.
12384 * c-exp.y: Update rules.
12385 (lex_one_token): Update.
12386 * ada-lang.c (resolve): Add "parse_completion" parameter.
12387 (resolve_subexp): Likewise.
12388 (ada_resolve_function): Likewise.
12390 2019-04-04 Tom Tromey <tom@tromey.com>
12392 * parser-defs.h (struct parser_state) <start_arglist,
12393 end_arglist>: New methods.
12394 <arglist_len, m_funcall_chain>: New members.
12395 (arglist_len, start_arglist, end_arglist): Don't declare.
12396 * parse.c (arglist_len, funcall_chain): Remove global.
12397 (start_arglist, end_arglist): Remove functions.
12398 (parse_exp_in_context): Update.
12399 * p-exp.y: Update rules.
12400 * m2-exp.y: Update rules.
12401 * go-exp.y: Update rules.
12402 * f-exp.y: Update rules.
12403 * d-exp.y: Update rules.
12404 * c-exp.y: Update rules.
12406 2019-04-04 Tom Tromey <tom@tromey.com>
12408 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12409 lex_operator, push_back>: New methods.
12411 (rust_parser::lex_hex, lex_escape): Rename and update.
12412 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12413 (rust_parser::lex_operator): Rename and update.
12414 (rust_parser::lex_number, rustyylex, rustyyerror)
12415 (rust_lex_test_init, rust_lex_test_sequence)
12416 (rust_lex_test_push_back, rust_lex_tests): Update.
12417 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12419 <lexptr, prev_lexptr>: New members.
12420 (lexptr, prev_lexptr): Don't declare.
12421 * parse.c (lexptr, prev_lexptr): Remove globals.
12422 (parse_exp_in_context): Update.
12423 * p-exp.y (yylex, yyerror): Update.
12424 * m2-exp.y (parse_number, yylex, yyerror): Update.
12425 * go-exp.y (lex_one_token, yyerror): Update.
12426 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12427 * d-exp.y (lex_one_token, yyerror): Update.
12428 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12429 (lex_one_token, yyerror): Update.
12430 * ada-lex.l (YY_INPUT): Update.
12431 (rewind_to_char): Update.
12432 * ada-exp.y (yyerror): Update.
12434 2019-04-04 Tom Tromey <tom@tromey.com>
12436 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12437 * parser-defs.h (struct parser_state) <parser_state>: Add new
12439 <comma_terminates>: New member.
12440 (comma_terminates): Don't declare global.
12441 * parse.c (comma_terminates): Remove global.
12442 (parse_exp_in_context): Update.
12443 * p-exp.y (yylex): Update.
12444 * m2-exp.y (yylex): Update.
12445 * go-exp.y (lex_one_token): Update.
12446 * f-exp.y (yylex): Update.
12447 * d-exp.y (lex_one_token): Update.
12448 * c-exp.y (lex_one_token): Update.
12449 * ada-lex.l: Update.
12451 2019-04-04 Tom Tromey <tom@tromey.com>
12453 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12454 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12455 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12456 * parser-defs.h (paren_depth): Don't declare.
12457 * parse.c (paren_depth): Remove global.
12458 (parse_exp_in_context): Update.
12459 * p-exp.y (paren_depth): New global.
12460 (pascal_parse): Initialize it.
12461 * m2-exp.y (paren_depth): New global.
12462 (m2_parse): Initialize it.
12463 * go-exp.y (paren_depth): New global.
12464 (go_parse): Initialize it.
12465 * f-exp.y (paren_depth): New global.
12466 (f_parse): Initialize it.
12467 * d-exp.y (paren_depth): New global.
12468 (d_parse): Initialize it.
12469 * c-exp.y (paren_depth): New global.
12470 (c_parse): Initialize it.
12471 * ada-lex.l (paren_depth): New global.
12472 (lexer_init): Initialize it.
12474 2019-04-04 Tom Tromey <tom@tromey.com>
12476 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12477 (rust_parser::convert_ast_to_type)
12478 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12479 * parser-defs.h (struct parser_state) <parser_state>: Add
12480 parameters. Initialize new members.
12481 <expression_context_block, expression_context_pc>: New members.
12482 * parse.c (expression_context_block, expression_context_pc):
12484 (parse_exp_in_context): Update.
12485 * p-exp.y: Update all rules.
12487 * m2-exp.y: Update all rules.
12489 * go-exp.y (yylex): Update.
12490 * f-exp.y (yylex): Update.
12491 * d-exp.y: Update all rules.
12493 * c-exp.y: Update all rules.
12494 (lex_one_token, classify_name, yylex, c_parse): Update.
12495 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12497 2019-04-04 Tom Tromey <tom@tromey.com>
12499 * gdbarch.h, gdbarch.c: Rebuild.
12500 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12502 (struct stap_parse_info): Replace "parser_state" with
12504 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12505 (parser_state): New class.
12506 * parse.c (expr_builder): Rename.
12507 (expr_builder::release): Rename.
12508 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12509 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12510 (write_exp_elt_longcst, write_exp_elt_floatcst)
12511 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12512 (write_exp_string_vector, write_exp_bitstring)
12513 (write_exp_msymbol, mark_struct_expression)
12514 (write_dollar_variable)
12515 (insert_type_address_space, increase_expout_size): Replace
12516 "parser_state" with "expr_builder".
12517 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12518 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12519 "parser_state" with "expr_builder".
12521 2019-04-04 Tom Tromey <tom@tromey.com>
12523 * rust-exp.y: Replace "parse_language" with method call.
12525 (yylex): Replace "parse_language" with method call.
12527 (yylex): Replace "parse_language" with method call.
12528 * go-exp.y (classify_name): Replace "parse_language" with method
12530 * f-exp.y (yylex): Replace "parse_language" with method call.
12531 * d-exp.y (lex_one_token): Replace "parse_language" with method
12534 (lex_one_token, classify_name, yylex): Replace "parse_language"
12536 * ada-exp.y (find_primitive_type, type_char)
12537 (type_system_address): Replace "parse_language" with method call.
12539 2019-04-04 Tom Tromey <tom@tromey.com>
12541 * rust-exp.y: Replace "parse_gdbarch" with method call.
12542 * parse.c (write_dollar_variable, insert_type_address_space):
12543 Replace "parse_gdbarch" with method call.
12544 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12546 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12548 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12549 "parse_gdbarch" with method call.
12550 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12552 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12553 "parse_gdbarch" with method call.
12554 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12555 "parse_gdbarch" with method call.
12556 * c-exp.y (parse_type, parse_number, classify_name): Replace
12557 "parse_gdbarch" with method call.
12558 * ada-lex.l: Replace "parse_gdbarch" with method call.
12559 * ada-exp.y (parse_type, find_primitive_type, type_char)
12560 (type_system_address): Replace "parse_gdbarch" with method call.
12562 2019-04-04 Tom Tromey <tom@tromey.com>
12564 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12565 * stap-probe.c (stap_parse_argument): Update.
12566 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12567 initial_size parameter.
12568 * rust-exp.y (rust_lex_tests): Update.
12569 * parse.c (parser_state): Update.
12570 (parse_exp_in_context): Update.
12571 * parser-defs.h (struct parser_state) <parser_state>: Remove
12572 "initial_size" parameter.
12574 2019-04-04 Tom Tromey <tom@tromey.com>
12576 * parser-defs.h (increase_expout_size): Don't declare.
12577 * parse.c (increase_expout_size): Now static.
12579 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12581 * gnu-nat.c (gnu_nat_target::wait): Fix
12582 target_waitstatus_to_string call.
12584 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12586 * eval.c (evaluate_subexp_standard): Handle internal functions
12587 during Fortran function call handling.
12589 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12591 * NEWS: Mention new internal functions.
12592 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12593 (read_base_type): Use dwarf2_init_complex_target_type.
12594 * value.c (creal_internal_fn): New function.
12595 (cimag_internal_fn): New function.
12596 (_initialize_values): Register new internal functions.
12598 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12600 * infrun.c (stop_all_threads): If debug_infrun, always
12601 trace the wait status after wait_one, using
12602 target_waitstatus_to_string and target_pid_to_str.
12603 (handle_inferior_event): Replace various trace of
12604 wait status kind by a single trace.
12605 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12606 wait status kind image by target_waitstatus_to_string.
12607 * target/waitstatus.c (target_waitstatus_to_string): Fix
12610 2019-04-01 Tom Tromey <tromey@adacore.com>
12613 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12615 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12616 Pedro Alves <palves@redhat.com>
12618 * top.c (quit_force): Call 'finalize_values'.
12619 * value.c (finalize_values): New function.
12620 * value.h (finalize_values): Declare.
12622 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12624 * NEWS: Announce $_gdb_major and $_gdb_minor.
12626 * top.c (init_gdb_version_vars): New function.
12627 (gdb_init): Call init_gdb_version_vars.
12629 2019-03-29 Tom Tromey <tromey@adacore.com>
12631 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12632 help text. Remove dead code.
12634 2019-03-29 Keith Seitz <keiths@redhat.com>
12636 From Siddhesh Poyarekar:
12637 * f-lang.h (f77_get_upperbound): Return LONGEST.
12638 (f77_get_lowerbound): Likewise.
12639 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12640 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12642 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12643 plongest to format print it.
12644 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12645 (f77_get_upperbound): Likewise.
12646 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12647 LOWER_BOUND to LONGEST.
12648 (f77_create_arrayprint_offset_tbl): Likewise.
12650 2019-03-29 Keith Seitz <keiths@redhat.com>
12652 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12653 %s/pulongest for TYPE_LENGTH instead of %d in format
12655 * ada-typerint.c (ada_print_type): Likewise.
12656 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12657 * compile/compile-c-support.c (generate_register_struct): Likewise.
12658 * gdbtypes.c (recursive_dump_type): Likewise.
12659 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12660 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12661 instead of %d in format strings.
12662 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12663 to std::min to ULONGEST.
12664 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12665 instead of %d in format strings.
12666 * tracepoint.c (info_scope_command): Likewise.
12667 * typeprint.c (print_offset_data::update)
12668 (print_offset_data::finish): Likewise.
12669 * xtensa-tdep.c (xtensa_store_return_value)
12670 (xtensa_push_dummy_call): Likewise.
12672 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12674 * windows-nat.c (display_selector): Fixed format specifications
12677 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12679 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12681 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12683 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12684 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12685 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12686 (nios2_linux_init_abi): Install it.
12688 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12690 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12692 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12694 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12696 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12697 Tom Tromey <tromey@adacore.com>
12699 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12701 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12703 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12704 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12705 method to compute the bounds of range types. Also print "[evaluated]"
12706 if the bounds' values come from a dynamic evaluation.
12708 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12710 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12711 whitespace when pretty printing is on.
12713 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12715 * ppc-linux-nat.c: Add include.
12717 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12719 * NEWS: Mention AArch64 Pointer Authentication.
12721 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12723 * arm-linux-nat.c: Add include.
12725 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12727 * source-cache.c (source_cache::get_source_lines): Re-read
12728 fullname after calling open_source_file.
12730 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12732 * NEWS: Mention TLS support for FreeBSD.
12734 2019-03-25 Tom Tromey <tromey@adacore.com>
12736 * minsyms.c (BUNCH_SIZE): Update comment.
12737 (~minimal_symbol_reader): Remove old comment.
12738 (compact_minimal_symbols): Update comment.
12739 (minimal_symbol_reader::install): Remove old comment. Update
12742 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12744 * s390-linux-nat.c: Add include.
12746 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12748 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12749 Call linux_get_hwcap.
12750 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12752 (aarch64_linux_get_hwcap): Remove function.
12753 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12755 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12757 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12758 * linux-tdep.c (linux_get_hwcap): Add function.
12759 (linux_get_hwcap2): Likewise.
12760 * linux-tdep.h (linux_get_hwcap): Add declaration.
12761 (linux_get_hwcap2): Likewise.
12762 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12763 (ppc_linux_get_hwcap2): Likewise.
12764 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12766 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12767 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12768 (ppc_linux_nat_target::read_description): Likewise.
12769 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12770 * s390-linux-nat.c: Likewise.
12771 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12773 2019-03-24 Tom Tromey <tom@tromey.com>
12775 * ada-lang.c (standard_lookup): Simplify initialization.
12776 (ada_lookup_symbol_nonlocal): Simplify return.
12777 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12778 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12779 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12780 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12782 * solib.c (solib_global_lookup): Simplify.
12783 * symtab.c (null_block_symbol): Remove.
12784 (symbol_cache_lookup): Simplify returns.
12785 (lookup_language_this): Simplify returns.
12786 (lookup_symbol_aux): Simplify return.
12787 (lookup_local_symbol): Simplify returns.
12788 (lookup_global_symbol_from_objfile): Simplify return.
12789 (lookup_symbol_in_objfile_symtabs)
12790 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12791 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12792 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12793 * cp-namespace.c (cp_lookup_bare_symbol)
12794 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12795 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12796 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12797 (cp_lookup_symbol_via_imports): Simplify initialization.
12798 (find_symbol_in_baseclass): Likewise.
12799 * symtab.h (null_block_symbol): Remove.
12800 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12801 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12802 (d_lookup_symbol_module): Likewise.
12803 (find_symbol_in_baseclass): Simplify initialization.
12805 2019-03-24 Tom Tromey <tom@tromey.com>
12807 * expression.h: Don't include symtab.h.
12808 (struct block): Forward declare.
12810 2019-03-24 Tom Tromey <tom@tromey.com>
12812 * c-exp.y (typebase): Remove casts.
12813 * gdbtypes.c (lookup_unsigned_typename, )
12814 (lookup_signed_typename): Remove cast.
12815 * eval.c (parse_to_comma_and_eval): Remove cast.
12816 * parse.c (write_dollar_variable): Remove cast.
12817 * block.h (struct block) <superblock>: Now const.
12818 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12819 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12820 (map_block): Make "block" const.
12821 * symfile.h (struct quick_symbol_functions)
12822 <map_matching_symbols>: Constify block argument to "callback".
12823 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12825 (find_pc_sect_compunit_symtab): Make "b" const.
12826 (find_symbol_at_address): Likewise.
12827 (search_symbols): Likewise.
12828 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12829 (dw2_debug_names_lookup_symbol): Likewise.
12830 (dw2_map_matching_symbols): Update.
12831 * p-valprint.c (pascal_val_print): Remove "block".
12832 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12833 (aux_add_nonlocal_symbols): Make "block" const.
12834 (resolve_subexp): Remove cast.
12835 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12837 (iterate_over_file_blocks): Likewise.
12838 * f-exp.y (%union) <bval>: Remove.
12839 * coffread.c (patch_opaque_types): Make "b" const.
12840 * spu-tdep.c (spu_catch_start): Make "block" const.
12841 * c-valprint.c (print_unpacked_pointer): Remove "block".
12842 * symmisc.c (dump_symtab_1): Make "b" const.
12843 (block_depth): Make "block" const.
12844 * d-exp.y (%union) <bval>: Remove.
12845 * cp-support.h (cp_lookup_rtti_type): Update.
12846 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12847 * psymtab.c (psym_lookup_symbol): Make "block" const.
12848 (maintenance_check_psymtabs): Make "b" const.
12849 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12850 (enumerate_locals, enumerate_args): Update.
12851 * python/py-symtab.c (stpy_global_block): Make "block" const.
12852 (stpy_static_block): Likewise.
12853 * inline-frame.c (block_starting_point_at): Make "new_block"
12855 * block.c (find_block_in_blockvector): Make return type const.
12856 (blockvector_for_pc_sect): Make "b" const.
12857 (find_block_in_blockvector): Make "b" const.
12859 2019-03-23 Tom Tromey <tom@tromey.com>
12861 * varobj.c (varobj_create): Update.
12862 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12863 * printcmd.c (display_command, do_one_display): Don't reset
12865 * parser-defs.h (enum innermost_block_tracker_type): Move to
12867 (innermost_block): Update comment.
12868 * parse.c (parse_exp_1): Add tracker_types parameter.
12869 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12870 tracker_types parameter. Reset innermost_block.
12871 (parse_exp_in_context): Remove.
12872 (parse_expression_for_completion): Update.
12873 * objfiles.c (~objfile): Don't reset expression_context_block or
12875 * expression.h (enum innermost_block_tracker_type): Move from
12877 (parse_exp_1): Add tracker_types parameter.
12878 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12879 reset innermost_block.
12881 2019-03-23 Tom Tromey <tom@tromey.com>
12883 * objfiles.h: Include bcache.h.
12885 2019-03-23 Tom Tromey <tom@tromey.com>
12887 * linespec.c (get_current_search_block): Use
12888 scoped_restore_current_language.
12889 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12891 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12892 Jiong Wang <jiong.wang@arm.com>
12894 * aarch64-linux-tdep.c
12895 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12897 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12899 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12900 Jiong Wang <jiong.wang@arm.com>
12902 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12904 (aarch64_analyze_prologue_test): Add PACIASP test.
12905 (aarch64_prologue_prev_register): Unmask PC value.
12907 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12908 Jiong Wang <jiong.wang@arm.com>
12910 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12911 (aarch64_dwarf2_prev_register): Unmask PC value.
12912 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12913 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12914 DW_CFA_AARCH64_negate_ra_state.
12915 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12917 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12918 Jiong Wang <jiong.wang@arm.com>
12920 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12922 (aarch64_pseudo_register_name): Likewise.
12923 (aarch64_pseudo_register_type): Likewise.
12924 (aarch64_pseudo_register_reggroup_p): Likewise.
12925 (aarch64_gdbarch_init): Add pauth registers.
12926 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12927 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12928 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12929 (struct gdbarch_tdep): Add regnum for ra_state.
12931 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12932 Jiong Wang <jiong.wang@arm.com>
12934 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12936 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12937 Jiong Wang <jiong.wang@arm.com>
12939 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12941 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12942 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12943 (aarch64_gdbarch_init): Add puth registers.
12944 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12945 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12946 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12948 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12949 Jiong Wang <jiong.wang@arm.com>
12951 * aarch64-linux-nat.c
12952 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12953 * aarch64-linux-tdep.c
12954 (aarch64_linux_core_read_description): Likewise.
12955 (aarch64_linux_get_hwcap): New function.
12956 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12957 (aarch64_linux_get_hwcap): New declaration.
12959 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12960 Jiong Wang <jiong.wang@arm.com>
12962 * aarch64-linux-nat.c
12963 (aarch64_linux_nat_target::read_description): Add pauth param.
12964 * aarch64-linux-tdep.c
12965 (aarch64_linux_core_read_description): Likewise.
12966 * aarch64-tdep.c (struct target_desc): Add in pauth.
12967 (aarch64_read_description): Add pauth param.
12968 (aarch64_gdbarch_init): Likewise.
12969 * aarch64-tdep.h (aarch64_read_description): Likewise.
12970 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12971 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12972 * features/Makefile: Add new files.
12973 * features/aarch64-pauth.c: New file.
12974 * features/aarch64-pauth.xml: New file.
12976 2019-03-20 Tom Tromey <tromey@adacore.com>
12978 * infrun.c (handle_inferior_event): Rename from
12979 handle_inferior_event_1. Create a scoped_value_mark.
12980 (handle_inferior_event): Remove.
12982 2019-03-19 Tom Tromey <tromey@adacore.com>
12984 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12985 * infrun.h (print_stop_event): Add "displays" parameter.
12986 * infrun.c (print_stop_event): Add "displays" parameter.
12988 2019-03-19 Pedro Alves <palves@redhat.com>
12990 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12991 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12992 to -1. Fix TABs vs spaces.
12993 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12994 * tui/tui-out.h (tui_ui_out) Add intro comments.
12995 <m_line, m_start_of_line>: In-class initialize, and add describing
12998 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13000 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13002 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13004 2019-03-18 Pedro Alves <palves@redhat.com>
13005 Eli Zaretskii <eliz@gnu.org>
13007 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13008 m_line and m_start_of_line.
13010 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13012 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13013 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13014 it returns a newline. This fixes a regression in TU mode, whereby
13015 the next line is output on the same screen line as the user input.
13017 2019-03-18 Tom Tromey <tromey@adacore.com>
13019 * minsyms.c (minimal_symbol_reader::install): Remove call to
13022 2019-03-18 Pedro Alves <palves@redhat.com>
13024 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13026 (apply_style): New, factored out from ...
13027 (apply_ansi_escape): ... this. Handle reverse video mode.
13028 (tui_set_reverse_mode): New function.
13029 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13030 * tui/tui-winsource.c (tui_show_source_line): Use
13031 tui_set_reverse_mode instead of setting A_STANDOUT.
13032 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13033 New setter methods.
13035 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13037 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13040 2019-03-18 Tom Tromey <tromey@adacore.com>
13042 * ada-lang.c (empty_array): Add "high" parameter.
13043 (ada_evaluate_subexp): Update.
13045 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13047 * unittests/string_view-selftests.c: Define
13048 _initialize_string_view_selftests unconditionally.
13050 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13053 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13055 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13058 * windows-nat.c (display_selector): Fix format specifiers.
13060 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13062 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13063 tui_refill_source_window instead of tui_refresh_win, to update the
13064 current execution line. This fixes redisplay of the current line
13065 when stepping through the code with "next" or "step".
13067 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13069 * source-cache.c (source_cache::get_source_lines): Call
13070 find_source_lines to initialize s->nlines. This fixes vertical
13071 scrolling of TUI source window when the DOWN arrow is pressed.
13073 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13075 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13076 linux-thread-db.c (_initialize_thread_db): Likewise.
13078 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13080 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13081 wclrtoeol in tui_show_source_line". This reverts changes made in
13082 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13084 2019-03-15 Tom Tromey <tom@tromey.com>
13086 * symtab.h (struct minimal_symbol): Derive from
13087 general_symbol_info.
13088 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13089 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13090 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13091 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13092 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13093 (MSYMBOL_SEARCH_NAME): Update.
13094 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13095 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13096 * minsyms.c (minimal_symbol_reader::record_full): Update.
13098 2019-03-15 Tom Tromey <tom@tromey.com>
13100 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13102 2019-03-15 Tom Tromey <tom@tromey.com>
13104 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13105 unique_xmalloc_ptr.
13106 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13108 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13109 (build_minimal_symbol_hash_tables)
13110 (minimal_symbol_reader::install): Update.
13112 2019-03-15 Tom Tromey <tom@tromey.com>
13114 * symtab.c (create_demangled_names_hash): Update.
13115 (symbol_set_names): Update.
13116 * objfiles.h (struct objfile_per_bfd_storage)
13117 <demangled_names_hash>: Now an htab_up.
13118 * objfiles.c (objfile_per_bfd_storage): Simplify.
13120 2019-03-15 Tom Tromey <tom@tromey.com>
13122 * objfiles.h (struct objfile_per_bfd_storage): Declare
13124 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13126 (get_objfile_bfd_data): Use new. Don't initialize
13128 (free_objfile_per_bfd_storage): Remove.
13129 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13131 2019-03-15 Tom Tromey <tom@tromey.com>
13133 * symfile.c (reread_symbols): Update.
13134 * objfiles.c (objfile::objfile): Update.
13135 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13136 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13138 (minimal_symbol_reader::install): Update.
13139 (terminate_minimal_symbol_table): Remove.
13140 * jit.c (jit_object_close_impl): Update.
13142 2019-03-15 Tom Tromey <tom@tromey.com>
13144 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13147 2019-03-15 Tom Tromey <tom@tromey.com>
13149 * objfiles.h (struct objfile_per_bfd_storage)
13150 <demangled_hash_languages>: Now a bitset.
13151 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13152 (lookup_minimal_symbol): Update.
13154 2019-03-15 Tom Tromey <tom@tromey.com>
13156 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13157 Don't return the symbol.
13158 * coffread.c (record_minimal_symbol): Use record_full.
13160 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13162 The MS-Windows port of ncurses fails to switch to a color pair if
13163 one or both of the colors are the implicit default colors. This
13164 change records the default colors when TUI is initialized, and
13165 then specifies them explicitly when a color pair uses the default
13166 colors. This allows color styling in TUI mode on MS-Windows.
13168 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13170 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13171 colors in ncurses_norm_attr.
13172 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13173 "none", replace it with the default color recorded in
13176 2019-03-14 Tom Tromey <tromey@adacore.com>
13178 * source-cache.h (class source_cache) <get_source_lines>: Return
13180 * source-cache.c (source_cache::extract_lines): Handle case where
13181 first_pos==npos. Return std::string.
13182 (source_cache::get_source_lines): Update.
13184 2019-03-14 Tom Tromey <tromey@adacore.com>
13186 * NEWS: Add item for "style sources" commands.
13187 * source-cache.c (source_cache::get_source_lines): Check
13189 * cli/cli-style.c (source_styling): New global.
13190 (_initialize_cli_style): Add "style sources" commands.
13191 (show_style_sources): New function.
13192 * cli/cli-style.h (source_styling): Declare.
13194 2019-03-14 Pedro Alves <palves@redhat.com>
13195 Tom Tromey <tromey@adacore.com>
13197 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13198 * tui/tui-winsource.c (tui_refill_source_window): New function,
13200 (tui_horizontal_source_scroll): ... here. Move some logic.
13201 * cli/cli-style.c (set_style_enabled): Notify new observable.
13202 * tui/tui-hooks.c (tui_redisplay_source): New function.
13203 (tui_attach_detach_observers): Attach or detach
13204 tui_redisplay_source.
13205 * observable.h (source_styling_changed): New observable.
13206 * observable.c: Define source_styling_changed observable.
13208 2019-03-13 Tom Tromey <tromey@adacore.com>
13210 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13211 (i386_gnu_nat_target::store_registers): Update.
13212 * target-debug.h (target_debug_print_std_string): New macro.
13213 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13214 * windows-tdep.c (display_one_tib): Update.
13215 * tui/tui-stack.c (tui_make_status_line): Update.
13216 * top.c (print_inferior_quit_action): Update.
13217 * thread.c (thr_try_catch_cmd): Update.
13218 (add_thread_with_info): Update.
13219 (thread_target_id_str): Update.
13220 (thr_try_catch_cmd): Update.
13221 (thread_command): Update.
13222 (thread_find_command): Update.
13223 * record-btrace.c (record_btrace_target::info_record)
13224 (record_btrace_resume_thread, record_btrace_target::resume)
13225 (record_btrace_cancel_resume, record_btrace_step_thread)
13226 (record_btrace_target::wait, record_btrace_target::wait)
13227 (record_btrace_target::wait, record_btrace_target::stop): Update.
13228 * progspace.c (print_program_space): Update.
13229 * process-stratum-target.c
13230 (process_stratum_target::thread_address_space): Update.
13231 * linux-fork.c (linux_fork_mourn_inferior)
13232 (detach_checkpoint_command, info_checkpoints_command)
13233 (linux_fork_context): Update.
13234 (linux_fork_detach): Update.
13235 (class scoped_switch_fork_info): Update.
13236 (delete_checkpoint_command): Update.
13237 * infrun.c (follow_fork_inferior): Update.
13238 (follow_fork_inferior): Update.
13239 (proceed_after_vfork_done): Update.
13240 (handle_vfork_child_exec_or_exit): Update.
13241 (follow_exec): Update.
13242 (displaced_step_prepare_throw): Update.
13243 (displaced_step_restore): Update.
13244 (start_step_over): Update.
13245 (resume_1): Update.
13246 (clear_proceed_status_thread): Update.
13248 (print_target_wait_results): Update.
13249 (do_target_wait): Update.
13250 (context_switch): Update.
13251 (stop_all_threads): Update.
13252 (restart_threads): Update.
13253 (finish_step_over): Update.
13254 (handle_signal_stop): Update.
13255 (switch_back_to_stepped_thread): Update.
13256 (keep_going_pass_signal): Update.
13257 (print_exited_reason): Update.
13258 (normal_stop): Update.
13259 * inferior.c (inferior_pid_to_str): Change return type.
13260 (print_selected_inferior): Update.
13261 (add_inferior): Update.
13262 (detach_inferior): Update.
13263 * dummy-frame.c (fprint_dummy_frames): Update.
13264 * dcache.c (dcache_info_1): Update.
13265 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13266 (btrace_fetch, btrace_clear): Update.
13267 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13268 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13270 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13271 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13272 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13273 * gdbarch.c, gdbarch.h: Rebuild.
13274 * gdbarch.sh (core_pid_to_str): Change return type.
13275 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13277 (windows_nat_target::pid_to_str): Change return type.
13278 (windows_delete_thread): Update.
13279 (windows_nat_target::attach): Update.
13280 (windows_nat_target::files_info): Update.
13281 * target-delegates.c: Rebuild.
13282 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13284 (sol_thread_target::pid_to_str): Change return type.
13285 * remote.c (class remote_target) <pid_to_str>: Change return
13287 (remote_target::pid_to_str): Change return type.
13288 (extended_remote_target::attach, remote_target::remote_stop_ns)
13289 (remote_target::remote_notif_remove_queued_reply)
13290 (remote_target::push_stop_reply, remote_target::disable_btrace):
13292 (extended_remote_target::attach): Update.
13293 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13295 (gdbsim_target::pid_to_str): Change return type.
13296 * ravenscar-thread.c (struct ravenscar_thread_target)
13297 <pid_to_str>: Change return type.
13298 (ravenscar_thread_target::pid_to_str): Change return type.
13299 * procfs.c (class procfs_target) <pid_to_str>: Change return
13301 (procfs_target::pid_to_str): Change return type.
13302 (procfs_target::attach): Update.
13303 (procfs_target::detach): Update.
13304 (procfs_target::fetch_registers): Update.
13305 (procfs_target::store_registers): Update.
13306 (procfs_target::wait): Update.
13307 (procfs_target::files_info): Update.
13308 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13309 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13311 (nto_procfs_target::pid_to_str): Change return type.
13312 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13313 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13315 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13316 (exit_lwp): Update.
13317 (attach_proc_task_lwp_callback, get_detach_signal)
13318 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13319 (linux_nat_target::resume, wait_lwp, stop_callback)
13320 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13321 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13322 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13323 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13324 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13326 (inf_ptrace_target::attach): Update.
13327 (inf_ptrace_target::files_info): Update.
13328 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13330 (go32_nat_target::pid_to_str): Change return type.
13331 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13332 (gnu_nat_target::wait): Update.
13333 (gnu_nat_target::wait): Update.
13334 (gnu_nat_target::resume): Update.
13335 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13336 (fbsd_nat_target::wait): Update.
13337 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13339 (darwin_nat_target::attach): Update.
13340 * corelow.c (class core_target) <pid_to_str>: Change return type.
13341 (core_target::pid_to_str): Change return type.
13342 * target.c (normal_pid_to_str): Change return type.
13343 (default_pid_to_str): Likewise.
13344 (target_pid_to_str): Change return type.
13345 (target_translate_tls_address): Update.
13346 (target_announce_detach): Update.
13347 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13349 (bsd_uthread_target::pid_to_str): Change return type.
13350 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13352 (bsd_kvm_target::pid_to_str): Change return type.
13353 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13355 (aix_thread_target::pid_to_str): Change return type.
13356 * target.h (struct target_ops) <pid_to_str>: Change return type.
13357 (target_pid_to_str, normal_pid_to_str): Likewise.
13358 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13360 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13362 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13364 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13366 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13368 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13371 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13373 * NEWS: Mention that the new default MI version is 3. Mention
13374 changes to the output of commands and events that deal with
13375 multi-location breakpoints.
13376 * breakpoint.c: Include "mi/mi-out.h".
13377 (print_one_breakpoint): Change output syntax if using MI version
13379 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13381 (mi_multi_location_breakpoint_output_fixed): New.
13382 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13383 (mi_cmd_fix_multi_location_breakpoint_output): New.
13384 (mi_multi_location_breakpoint_output_fixed): New.
13385 * mi/mi-cmds.c (mi_cmds): Register command
13386 -fix-multi-location-breakpoint-output.
13387 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13390 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13392 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13393 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13394 instantiate mi_ui_out based on interpreter name.
13395 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13396 * mi/mi-main.c (mi_load_progress): Likewise.
13398 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13400 * NEWS: Combine separate "New targets" sections for 8.3.
13402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13404 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13405 (ppcfbsd_init_abi): Install gdbarch
13406 "fetch_tls_load_module_address" and "get_thread_local_address"
13409 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13411 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13412 (riscv_fbsd_init_abi): Install gdbarch
13413 "fetch_tls_load_module_address" and "get_thread_local_address"
13416 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13418 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13419 (i386fbsd_init_abi): Install gdbarch
13420 "fetch_tls_load_module_address" and "get_thread_local_address"
13423 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13425 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13426 (amd64fbsd_init_abi): Install gdbarch
13427 "fetch_tls_load_module_address" and "get_thread_local_address"
13430 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13432 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13433 (struct fbsd_pspace_data): New type.
13434 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13435 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13436 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13437 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13438 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13440 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13442 * gdbtypes.c (lookup_struct_elt): New function.
13443 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13444 * gdbtypes.h (struct struct_elt): New type.
13445 (lookup_struct_elt): New prototype.
13447 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13449 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13450 remove disabled code block.
13452 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13454 * gdbarch.sh (get_thread_local_address): New method.
13455 * gdbarch.h, gdbarch.c: Regenerate.
13456 * target.c (target_translate_tls_address): Use
13457 gdbarch_get_thread_local_address if present instead of
13458 target::get_thread_local_address.
13460 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13462 * target.h (target::get_thread_local_address): Update comment.
13464 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13466 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13467 objfile->separate_debug_objfile_backlink if not NULL.
13469 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13471 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13472 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13473 (amd64bsd_store_inferior_registers): Likewise.
13474 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13475 Enable segment base registers.
13476 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13477 PT_GETFSBASE and PT_GETGSBASE.
13478 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13480 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13481 segment base registers.
13482 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13484 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13486 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13487 Update calls to i386_target_description to add 'segments'
13489 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13490 add segment base registers.
13491 * arch/i386.c (i386_create_target_description): Add 'segments'
13492 parameter to enable segment base registers.
13493 * arch/i386.h (i386_create_target_description): Likewise.
13494 * features/i386/32bit-segments.xml: New file.
13495 * features/i386/32bit-segments.c: Generate.
13496 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13497 call to i386_target_description to add 'segments' parameter.
13498 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13499 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13500 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13501 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13502 if feature is present.
13503 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13504 Add 'segments' parameter to call to i386_target_description.
13505 (i386_target_description): Add 'segments' parameter to enable
13506 segment base registers.
13507 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13508 to call to i386_target_description.
13509 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13510 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13511 Define I386_NUM_REGS.
13512 (i386_target_description): Add 'segments' parameter to enable
13513 segment base registers.
13515 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13518 * source-cache.c: #undef open and close, to avoid unresolved
13519 externals during linking.
13521 2019-03-12 Tom Tromey <tromey@adacore.com>
13523 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13524 const. Add initializers.
13525 (_initialize_remote): Don't initialize ptid globals.
13527 2019-03-12 Pedro Alves <palves@redhat.com>
13529 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13531 2019-03-12 Pedro Alves <palves@redhat.com>
13533 * cp-name-parser.y (main): Remove unused 'len' variable.
13535 2019-03-12 Tom Tromey <tromey@adacore.com>
13537 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13538 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13540 2019-03-12 Tom Tromey <tromey@adacore.com>
13542 * linux-nat.c (iterate_over_lwps): Update.
13543 (stop_callback): Remove parameter.
13544 (stop_wait_callback, detach_callback, resume_set_callback)
13545 (select_singlestep_lwp_callback, set_ignore_sigint)
13546 (status_callback, resumed_callback, resume_clear_callback)
13547 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13549 (linux_nat_target::detach, linux_nat_target::resume)
13550 (linux_stop_and_wait_all_lwps, select_event_lwp)
13551 (linux_nat_filter_event, linux_nat_wait_1)
13552 (linux_nat_target::kill, linux_nat_target::stop)
13553 (linux_nat_target::stop): Update.
13554 (linux_nat_resume_callback): Change type.
13555 (resume_stopped_resumed_lwps, count_events_callback)
13556 (select_event_lwp_callback): Likewise.
13557 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13558 * arm-linux-nat.c (struct update_registers_data): Remove.
13559 (update_registers_callback): Change type.
13560 (arm_linux_insert_hw_breakpoint1): Update.
13561 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13563 (x86_linux_dr_set_addr): Update.
13564 (x86_linux_dr_set_control): Update.
13565 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13566 (iterate_over_lwps): Use gdb::function_view.
13567 * nat/aarch64-linux-hw-point.c (struct
13568 aarch64_dr_update_callback_param): Remove.
13569 (debug_reg_change_callback): Change type.
13570 (aarch64_notify_debug_reg_change): Update.
13571 * s390-linux-nat.c (s390_refresh_per_info): Update.
13573 2019-03-11 Tom Tromey <tromey@adacore.com>
13575 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13576 redundant assignment to "this_cu".
13578 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13580 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13582 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13584 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13586 (rank_one_type): ... this.
13588 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13590 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13592 (rank_one_type): ... this.
13594 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13596 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13598 (rank_one_type): ... this.
13600 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13602 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13604 (rank_one_type): ... this.
13606 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13608 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13610 (rank_one_type): ... this.
13612 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13614 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13616 (rank_one_type): ... this.
13618 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13620 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13622 (rank_one_type): ... this.
13624 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13626 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13628 (rank_one_type): ... this.
13630 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13632 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13634 (rank_one_type): ... this.
13636 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13638 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13640 (rank_one_type): ... this.
13642 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13644 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13646 (rank_one_type): ... this.
13648 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13650 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13652 (rank_one_type): ... this.
13654 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13656 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13657 inferior-events' shows the example events.
13659 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13661 Support styling on native MS-Windows console
13664 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13665 on MS-Windows if $TERM is not defined.
13667 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13669 * posix-hdep.c (gdb_console_fputs):
13670 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13672 * ui-file.h (gdb_console_fputs): Add prototype.
13674 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13675 back to fputs only if the former returns zero.
13677 2019-03-07 Tom Tromey <tom@tromey.com>
13679 * symmisc.c (print_symbol_bcache_statistics): Update.
13680 (print_objfile_statistics): Update.
13681 * symfile.c (allocate_symtab): Update.
13682 * stabsread.c: Don't include bcache.h.
13683 * psymtab.h (struct psymbol_bcache): Don't declare.
13684 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13685 (psymbol_bcache_init, psymbol_bcache_free)
13686 (psymbol_bcache_get_bcache): Don't declare.
13687 * psymtab.c (struct psymbol_bcache): Remove.
13688 (psymtab_storage::psymtab_storage): Update.
13689 (psymtab_storage::~psymtab_storage): Update.
13690 (psymbol_bcache_init, psymbol_bcache_free)
13691 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13692 (add_psymbol_to_bcache): Update.
13693 (allocate_psymtab): Update.
13694 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13695 macro_cache>: No longer pointers.
13696 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13697 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13698 * macrotab.c (macro_bcache): Update.
13699 * macroexp.c: Don't include bcache.h.
13700 * gdbtypes.c (check_types_worklist): Update.
13701 (types_deeply_equal): Remove TRY/CATCH. Update.
13702 * elfread.c (elf_symtab_read): Update.
13703 * dwarf2read.c: Don't include bcache.h.
13704 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13705 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13706 (print_bcache_statistics, bcache_memory_used): Don't declare.
13707 (struct bcache): Move from bcache.c. Add constructor, destructor,
13708 methods. Rename all data members.
13709 * bcache.c (struct bcache): Move to bcache.h.
13710 (bcache::expand_hash_table): Rename from expand_hash_table.
13712 (bcache::insert): Rename from bcache_full.
13713 (bcache::compare): Rename from bcache_compare.
13714 (bcache_xmalloc): Remove.
13715 (bcache::~bcache): Rename from bcache_xfree.
13716 (bcache::print_statistics): Rename from print_bcache_statistics.
13717 (bcache::memory_used): Rename from bcache_memory_used.
13719 2019-03-07 Pedro Alves <palves@redhat.com>
13721 * infrun.c (normal_stop): Also check for
13722 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13724 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13726 * f-lang.c (value_from_host_double): Moved to...
13727 * value.c (value_from_host_double): ...here.
13728 * value.h (value_from_host_double): Declare.
13729 * guile/scm-math.c (vlscm_convert_typed_number): Use
13730 value_from_host_double.
13731 (vlscm_convert_number): Likewise.
13732 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13733 * python/py-value.c (convert_value_from_python): Likewise.
13735 2019-03-06 Tom Tromey <tom@tromey.com>
13737 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13739 2019-03-06 Tom Tromey <tom@tromey.com>
13741 * utils.h (free_current_contents): Don't declare.
13742 * utils.c (free_current_contents): Remove.
13744 2019-03-06 Tom Tromey <tom@tromey.com>
13746 * top.c (quit_force): Update.
13747 * main.c (captured_command_loop): Update.
13748 * common/new-op.c (operator new): Update.
13749 * common/common-exceptions.c (struct catcher)
13750 <save_cleanup_chain>: Remove member.
13751 (exceptions_state_mc_init): Update.
13752 (exception_try_scope_entry): Return nullptr.
13753 (exception_try_scope_exit, exception_rethrow)
13754 (throw_exception_sjlj, throw_exception_cxx): Update.
13755 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13756 (all_cleanups, do_cleanups, discard_cleanups)
13757 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13758 (restore_cleanups, restore_final_cleanups): Don't declare.
13759 (do_final_cleanups): Remove parameter.
13760 * common/cleanups.c (cleanup_chain, make_cleanup)
13761 (make_cleanup_dtor, all_cleanups, do_cleanups)
13762 (discard_my_cleanups, discard_cleanups)
13763 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13764 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13765 (null_cleanup): Remove.
13766 (do_final_cleanups): Remove parameter.
13768 2019-03-06 Tom Tromey <tom@tromey.com>
13770 * remote.c (remote_target::remote_parse_stop_reply): Use
13771 unique_xmalloc_ptr.
13773 2019-03-06 Tom Tromey <tom@tromey.com>
13775 * stabsread.c (struct stabs_field_info): Rename from field_info.
13776 <list, fnlist>: Add initializers.
13777 <obstack>: New member.
13778 (read_member_functions, read_struct_fields, read_baseclasses):
13779 Allocate on obstack. Don't use cleanups.
13780 (read_one_struct_field, read_member_functions, read_struct_fields)
13781 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13782 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13783 (read_struct_type): Update.
13785 2019-03-06 Tom Tromey <tom@tromey.com>
13787 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13788 * common/filestuff.h (make_cleanup_close): Don't declare.
13789 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13792 2019-03-06 Tom Tromey <tom@tromey.com>
13794 * solib-aix.c: Use make_scope_exit.
13796 2019-03-06 Tom Tromey <tom@tromey.com>
13798 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13799 Use make_scope_exit.
13801 2019-03-06 Tom Tromey <tom@tromey.com>
13803 * solib-svr4.c (disable_probes_interface): Remove parameter.
13804 (svr4_handle_solib_event): Use make_scope_exit.
13806 2019-03-06 Tom Tromey <tom@tromey.com>
13808 * remote.c (struct stop_reply_deleter): Remove.
13809 (stop_reply_up): Update.
13810 (struct stop_reply): Derive from notif_event. Don't typedef.
13811 <regcache>: Now a std::vector.
13812 (stop_reply_xfree): Remove.
13813 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13814 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13815 (remote_target::discard_pending_stop_replies): Use delete.
13816 (remote_target::remote_parse_stop_reply): Update.
13817 (remote_target::process_stop_reply): Update.
13818 * remote-notif.h (struct notif_event): Add virtual destructor.
13819 Remove "dtr" member.
13820 (struct notif_client) <alloc_event>: Return a unique_ptr.
13821 (notif_event_xfree): Don't declare.
13822 (notif_event_up): New typedef.
13823 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13824 (notif_event_xfree, do_notif_event_xfree): Remove.
13825 (remote_notif_state_xfree): Update.
13827 2019-03-06 Tom Tromey <tom@tromey.com>
13829 * infrun.c (displaced_step_clear_cleanup): Now a
13830 forward_scope_exit type.
13831 (displaced_step_prepare_throw): Update.
13832 (displaced_step_fixup): Update.
13834 2019-03-06 Tom Tromey <tom@tromey.com>
13836 * inferior.h (class inferior): Update comment.
13837 * gdbthread.h (class thread_info): Update comment.
13839 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13840 Tom Tromey <tom@tromey.com>
13842 * stabsread.h (struct stab_section_list): Remove.
13843 (coffstab_build_psymtabs): Update.
13844 * dbxread.c (symbuf_sections): Now a std::vector.
13845 (sect_idx): New global.
13846 (fill_symbuf): Update.
13847 (coffstab_build_psymtabs): Change type of stabsects parameter.
13849 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13851 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13852 (coff_locate_sections): Update.
13853 (coff_symfile_read): Remove cleanups. Update.
13854 (init_stringtab): Add storage parameter.
13855 (free_stringtab, free_stringtab_cleanup): Remove.
13856 (init_lineno): Add storage parameter.
13857 (free_linetab, free_linetab_cleanup): Remove.
13859 2019-03-06 Pedro Alves <palves@redhat.com>
13861 * linux-fork.c (fork_info::clobber_regs): Delete.
13862 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13863 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13865 (scoped_switch_fork_info::scoped_switch_fork_info)
13866 (checkpoint_command, linux_fork_context): Adjust
13867 fork_save_infrun_state calls.
13869 2019-03-06 Pedro Alves <palves@redhat.com>
13871 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13872 (inf_has_multiple_threads): Return 'bool' and rewrite using
13873 inferior_info::threads().
13875 2019-03-06 Pedro Alves <palves@redhat.com>
13877 * linux-fork.c: Include <list>.
13878 (fork_list): Now a std::list instance.
13879 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13880 (forks_exist_p, find_last_fork): Adjust.
13881 (new_fork): Delete.
13883 (add_fork): Adjust.
13884 (free_fork): Delete, folded into fork_info::~fork_info().
13885 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13887 (init_fork_list): Delete.
13888 (linux_fork_killall, linux_fork_mourn_inferior)
13889 (linux_fork_detach, info_checkpoints_command): Adjust.
13890 (_initialize_linux_fork): No longer call init_fork_list.
13892 2019-03-06 Pedro Alves <palves@redhat.com>
13894 * linux-fork.c (new_fork): New, split out of ...
13895 (add_fork): ... this. Return void. Move "first fork" special
13896 case from here, to ...
13897 (checkpoint_command): ... here.
13898 * linux-linux.h (add_fork): Return void.
13900 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13902 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13904 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13905 Chris January <chris.january@arm.com>
13906 David Lecomber <david.lecomber@arm.com>
13908 * f-exp.y: New token, UNOP_INTRINSIC.
13909 (exp): New pattern using UNOP_INTRINSIC token.
13910 (f77_keywords): Add 'abs' keyword.
13911 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13912 (value_from_host_double): New function.
13913 (evaluate_subexp_f): Support UNOP_ABS.
13915 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13917 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13920 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13922 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13923 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13924 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13926 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13928 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13930 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13931 Chris January <chris.january@arm.com>
13933 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13934 * f-exp.y: Define 'KIND' token.
13935 (exp): New pattern for KIND expressions.
13936 (ptype): Handle types with a kind extension.
13937 (direct_abs_decl): Extend to spot kind extensions.
13938 (f77_keywords): Add 'kind' to the list.
13939 (push_kind_type): New function.
13940 (convert_to_kind_type): New function.
13941 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13942 * parse.c (operator_length_standard): Likewise.
13943 * parser-defs.h (enum type_pieces): Add tp_kind.
13944 * std-operator.def: Add UNOP_KIND.
13946 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13948 * f-exp.y (f_parse): Set yydebug.
13950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13952 * f-lang.c (evaluate_subexp_f): New function.
13953 (exp_descriptor_f): New global.
13954 (f_language_defn): Use exp_descriptor_f instead of
13955 exp_descriptor_standard.
13957 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13959 * f-exp.y (struct token): Add comments.
13960 (dot_ops): Remove uppercase versions and the end marker.
13961 (f77_keywords): Likewise.
13962 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13963 entries in the dot_ops array are case insensitive, and use
13964 strncasecmp to compare strings. Also some whitespace cleanup in
13965 this area. Similar for the f77_keywords array, except entries in
13966 this list might be case sensitive.
13968 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13970 * f-exp.y (struct f77_boolean_val): Add comments.
13971 (boolean_values): Remove uppercase versions, and end marker.
13972 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13973 and use strncasecmp to achieve case insensitivity. Additionally,
13974 perform whitespace cleanup around this code.
13976 2019-03-06 Tom Tromey <tromey@adacore.com>
13978 * remote-sim.c (gdbsim_target_open): Use result of
13981 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13982 Dirk Schubert <dirk.schubert@arm.com>
13983 Chris January <chris.january@arm.com>
13985 * eval.c (evaluate_subexp_standard): Call Fortran argument
13987 * f-lang.c (struct value): A value which can be passed into a
13988 Fortran function call.
13989 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13991 (struct type): Value ready for a Fortran function call.
13992 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13994 * f-lang.h (fortran_argument_convert): Declaration.
13995 (fortran_preserve_arg_pointer): Declaration.
13996 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13998 2019-03-05 Tom Tromey <tromey@adacore.com>
14000 * python/py-prettyprint.c (print_string_repr): Remove #if.
14001 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14003 2019-03-05 Tom Tromey <tromey@adacore.com>
14005 * target.c (the_dummy_target): Move later. Change type to
14007 (initialize_targets): Don't initialize the_dummy_target.
14009 2019-03-05 Tom Tromey <tromey@adacore.com>
14011 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14012 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14014 2019-03-05 Tom Tromey <tromey@adacore.com>
14016 * windows-nat.c (windows_nat_target::attach)
14017 (windows_nat_target::detach): Don't call gdb_flush.
14018 * valprint.c (generic_val_print, val_print, val_print_string):
14019 Don't call gdb_flush.
14020 * utils.c (defaulted_query): Don't call gdb_flush.
14021 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14022 * target.c (target_announce_detach): Don't call gdb_flush.
14023 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14024 * remote.c (extended_remote_target::attach): Don't call
14026 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14027 * printcmd.c (do_examine): Don't call gdb_flush.
14028 (info_display_command): Don't call gdb_flush.
14029 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14030 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14031 * memattr.c (info_mem_command): Don't call gdb_flush.
14032 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14033 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14034 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14035 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14036 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14037 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14038 (gnu_nat_target::detach): Don't call gdb_flush.
14039 * f-valprint.c (f_val_print): Don't call gdb_flush.
14040 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14041 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14042 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14044 * c-valprint.c (c_val_print): Don't call gdb_flush.
14045 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14047 2019-03-05 Tom Tromey <tromey@adacore.com>
14049 * varobj.c (update_dynamic_varobj_children): Update.
14050 (install_default_visualizer): Use reset, not release.
14051 * value.c (set_internalvar): Update.
14052 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14053 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14054 ATTRIBUTE_UNUSED_RESULT.
14056 2019-03-05 Tom Tromey <tromey@adacore.com>
14058 * remote.c (class scoped_remote_fd) <release>: Add
14059 ATTRIBUTE_UNUSED_RESULT.
14061 2019-03-05 Tom Tromey <tromey@adacore.com>
14063 * macroexp.c (struct macro_buffer) <release>: Add
14064 ATTRIBUTE_UNUSED_RESULT.
14066 2019-03-05 Tom Tromey <tromey@adacore.com>
14068 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14069 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14070 ATTRIBUTE_UNUSED_RESULT.
14072 2019-03-05 Tom Tromey <tromey@adacore.com>
14074 * common/scoped_fd.h (class scoped_fd) <release>: Add
14075 ATTRIBUTE_UNUSED_RESULT.
14077 2019-03-05 Tom Tromey <tromey@adacore.com>
14079 * parser-defs.h (struct parser_state) <release>: Add
14080 ATTRIBUTE_UNUSED_RESULT.
14082 2019-03-05 Tom Tromey <tromey@adacore.com>
14084 * utils.h (class gdb_argv) <release>: Add
14085 ATTRIBUTE_UNUSED_RESULT.
14086 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14088 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14090 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14091 for-loop range, to avoid compiler warnings.
14093 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14094 avoid compiler warnings about unused variables.
14096 * NEWS: Mention end of support for native debugging on MS-Windows
14100 * common/netstuff.c:
14101 * gdbserver/gdbreplay.c
14102 * gdbserver/remote-utils.c:
14104 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14105 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14106 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14107 'getaddrinfo' and 'freeaddrinfo' were not available before
14108 Windows XP, and mingw.org's MinGW headers by default define
14109 _WIN32_WINNT to 0x500.
14111 2019-03-01 Gary Benson <gbenson@redhat.com>
14113 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14115 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14116 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14119 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14120 set_sigint_trap, clear_sigint_trap.
14122 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14124 * target.c (target_detach): Clear the regcache and the
14127 2019-02-27 Pedro Alves <palves@redhat.com>
14129 * utils.c (set_screen_size): When we cap the height/width sizes,
14130 tweak the corresponding command variable to show "unlimited":
14132 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14133 Pedro Alves <palves@redhat.com>
14135 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14136 before calling rl_set_screen_size.
14138 2019-02-27 Tom Tromey <tromey@adacore.com>
14140 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14142 * python/py-value.c: Remove Python 2.4 workaround.
14143 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14145 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14146 Python 2.4 workaround.
14147 * python/python-internal.h: Remove Python 2.4 comment.
14148 (Py_ssize_t): Don't define.
14149 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14150 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14151 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14152 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14153 * python/python.c (do_start_initialization): Remove Python 2.4
14155 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14156 (print_children): Remove Python 2.4 workaround.
14157 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14159 (CHARBUFFERPROC_NAME): Remove.
14160 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14161 Python 2.4 workaround.
14163 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14165 * NEWS: Note minimum Python version.
14167 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14169 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14170 code from these functions. Remove corresponding ifdefs. Use
14171 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14172 Remove gotos and target of gotos.
14173 (infpy_search_memory): Likewise.
14175 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14177 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14178 (hppa_gdbarch_init): Don't register deleted functions with
14181 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14183 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14184 (h8300_unwind_sp): Delete.
14185 (h8300_dummy_id): Delete.
14186 (h8300_gdbarch_init): Don't register deleted functions with
14189 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14191 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14192 (ft32_unwind_pc): Delete.
14193 (ft32_unwind_sp): Delete.
14194 (ft32_gdbarch_init): Don't register deleted functions with
14197 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14199 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14200 (frv_unwind_pc): Delete.
14201 (frv_unwind_sp): Delete.
14202 (frv_gdbarch_init): Don't register deleted functions with
14205 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14207 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14208 (riscv_unwind_pc): Delete.
14209 (riscv_unwind_sp): Delete.
14210 (riscv_gdbarch_init): Don't register deleted functions with
14213 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14215 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14216 (csky_unwind_pc): Delete.
14217 (csky_unwind_sp): Delete.
14218 (csky_gdbarch_init): Don't register deleted functions with
14221 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14223 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14224 (cris_unwind_pc): Delete.
14225 (cris_unwind_sp): Delete.
14226 (cris_gdbarch_init): Don't register deleted functions with
14229 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14231 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14232 (bfin_unwind_pc): Delete.
14233 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14237 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14238 (arm_unwind_pc): Delete.
14239 (arm_unwind_sp): Delete.
14240 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14242 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14244 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14245 (arc_unwind_pc): Delete.
14246 (arc_unwind_sp): Delete.
14247 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14251 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14252 (alpha_unwind_pc): Delete.
14253 (alpha_gdbarch_init): Don't register deleted functions with
14256 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14258 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14259 (aarch64_unwind_pc): Delete.
14260 (aarch64_unwind_sp): Delete.
14261 (aarch64_gdbarch_init): Don't register deleted functions with
14264 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14266 * gdbtypes.c (type_align): Don't consider static members when
14267 computing structure alignment.
14269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14271 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14272 return 0 for other types.
14273 * arch-utils.c (default_type_align): Always return 0.
14274 * gdbarch.h: Regenerate.
14275 * gdbarch.sh (type_align): Extend comment.
14276 * gdbtypes.c (type_align): Add additional comments, always call
14277 gdbarch_type_align before applying the default rules.
14278 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14279 generic code will then apply a suitable default.
14280 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14281 types, return 0 for other types.
14283 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14285 * NEWS: Create a new section for the next release branch.
14286 Rename the section of the current branch, now that it has
14289 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14291 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14292 * version.in: Bump version to 8.3.50.DATE-git.
14294 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14296 * aix-thread.c (ptid_cmp): Remove unused variable.
14297 (get_signaled_thread): Likewise.
14298 (store_regs_user_thread): Likewise.
14299 (store_regs_kernel_thread): Likewise.
14300 (fetch_regs_kernel_thread): Remove shadowed variable.
14302 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14304 * features/riscv/32bit-cpu.xml: Add register numbers.
14305 * features/riscv/32bit-fpu.c: Regenerate.
14306 * features/riscv/32bit-fpu.xml: Add register numbers.
14307 * features/riscv/64bit-cpu.xml: Add register numbers.
14308 * features/riscv/64bit-fpu.c: Regenerate.
14309 * features/riscv/64bit-fpu.xml: Add register numbers.
14311 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14313 * NEWS: Mention two argument form of gdb.Value constructor.
14314 * python/py-value.c (convert_buffer_and_type_to_value): New
14316 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14317 Add support for handling an optional second argument. Call
14318 convert_buffer_and_type_to_value as appropriate.
14319 * python/python-internal.h (Py_buffer_deleter): New struct.
14320 (Py_buffer_up): New typedef.
14322 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14324 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14325 instead of releasing ownership.
14327 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14329 * dwarf2read.c (open_and_init_dwp_file): Call
14330 elf_numsections instead of bfd_count_sections to initialize
14331 dwp_file->num_sections.
14333 2019-02-25 Tom Tromey <tromey@adacore.com>
14335 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14337 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14339 * gcore.in: Add '--readnever' option when invoking GDB.
14341 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14343 * MAINTAINERS: Update my email address.
14345 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14347 * build-id.c (build_id_to_debug_bfd_1): New function.
14348 (build_id_to_debug_bfd): Look for separate debug file in
14351 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14353 * gdbarch.sh: Update the copyright year range that is placed into
14356 2019-02-22 Keith Seitz <keiths@redhat.com>
14359 * linespec.c (create_sals_line_offset): Search for the default
14360 symtab's filename instead of its fullname.
14362 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14364 * NEWS: Update style defaults.
14366 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14368 * main.c (captured_main_1): Disable styling in batch mode.
14370 2019-02-20 Tom Tromey <tom@tromey.com>
14372 * symtab.c (symtab_symbol_info): Fix typos.
14374 2019-02-20 Tom Tromey <tromey@adacore.com>
14376 * findcmd.c (_initialize_mem_search): Use upper case for
14377 metasyntactic variables.
14379 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14381 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14382 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14384 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14386 * top.h (source_file_name): Change to std::string.
14387 * top.c (source_file_name): Likewise.
14388 (command_line_input): Adjust.
14389 * cli/cli-script.c (script_from_file): Adjust.
14391 2019-02-19 Tom Tromey <tromey@adacore.com>
14393 * ravenscar-thread.c
14394 (ravenscar_thread_target::update_thread_list): Don't call
14395 ada_build_task_list.
14396 * ada-lang.h (ada_build_task_list): Don't declare.
14397 * ada-tasks.c (struct ada_tasks_inferior_data)
14398 <task_list_valid_p>: Now bool.
14399 (read_known_tasks, ada_task_list_changed)
14400 (ada_tasks_invalidate_inferior_data): Update.
14401 (read_known_tasks_array): Return bool.
14402 (read_known_tasks_list): Likewise.
14403 (read_known_tasks): Return void.
14404 (ada_build_task_list): Now static.
14406 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14408 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14409 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14411 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14413 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14414 variant for ada_tasks_pspace_data_handle and
14415 ada_tasks_inferior_data_handle.
14416 (ada_tasks_pspace_data_cleanup): New function.
14417 (ada_tasks_inferior_data_cleanup): New function.
14419 2019-02-17 Tom Tromey <tom@tromey.com>
14421 * macrotab.h (macro_source_fullname): Return a std::string.
14422 * macrotab.c (macro_include, check_for_redefinition)
14423 (macro_undef, macro_lookup_definition, foreach_macro)
14424 (foreach_macro_in_scope): Update.
14425 (macro_source_fullname): Return a std::string.
14426 * macrocmd.c (show_pp_source_pos): Update.
14428 2019-02-17 Tom Tromey <tom@tromey.com>
14430 * macrocmd.c (show_pp_source_pos): Style the file names.
14432 2019-02-17 Tom Tromey <tom@tromey.com>
14435 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14437 2019-02-17 Tom Tromey <tom@tromey.com>
14439 * ada-lang.c (user_select_syms): Use filtered printing.
14440 * utils.c (wrap_style): New global.
14441 (desired_style): Remove.
14442 (emit_style_escape): Add stream parameter.
14443 (set_output_style, reset_terminal_style, prompt_for_continue):
14445 (flush_wrap_buffer): Only flush gdb_stdout.
14446 (wrap_here): Set wrap_style.
14447 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14448 treat escape sequences as a character. Change when wrap buffer is
14450 (fputs_styled): Do not set the output style when the default is
14452 * ui-style.h (struct ui_file_style) <is_default>: New method.
14453 * source.c (print_source_lines_base): Emit escape sequences in one
14456 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14458 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14459 integers and enumeration types.
14461 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14463 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14464 instead of lookup_symbol_in_language
14465 (do_exact_match): New function.
14466 (ada_get_symbol_name_matcher): Return do_exact_match when
14467 doing a verbatim match.
14469 2019-02-15 Tom Tromey <tromey@adacore.com>
14471 * ravenscar-thread.c (ravenscar_thread_target::resume)
14472 (ravenscar_thread_target::wait): Special case wildcard requests.
14474 2019-02-15 Tom Tromey <tromey@adacore.com>
14476 * ravenscar-thread.c (base_ptid): Remove.
14477 (struct ravenscar_thread_target) <close>: New method.
14478 <m_base_ptid>: New member.
14479 <update_inferior_ptid, active_task, task_is_currently_active,
14480 runtime_initialized>: Declare methods.
14481 <ravenscar_thread_target>: Add constructor.
14482 (ravenscar_thread_target::task_is_currently_active)
14483 (ravenscar_thread_target::update_inferior_ptid)
14484 (ravenscar_runtime_initialized): Rename. Now methods.
14485 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14486 (ravenscar_thread_target::update_thread_list): Update.
14487 (ravenscar_thread_target::active_task): Now method.
14488 (ravenscar_thread_target::store_registers)
14489 (ravenscar_thread_target::prepare_to_store)
14490 (ravenscar_thread_target::prepare_to_store)
14491 (ravenscar_thread_target::mourn_inferior): Update.
14492 (ravenscar_inferior_created): Use "new" to create target.
14493 (ravenscar_thread_target::get_ada_task_ptid): Update.
14494 (_initialize_ravenscar): Don't initialize base_ptid.
14495 (ravenscar_ops): Remove global.
14497 2019-02-15 Tom Tromey <tromey@adacore.com>
14499 * target.h (push_target): Declare new overload.
14500 * target.c (push_target): New overload, taking an rvalue reference.
14501 * remote.c (remote_target::open_1): Use push_target overload.
14502 * corelow.c (core_target_open): Use push_target overload.
14504 2019-02-15 Tom Tromey <tromey@adacore.com>
14506 * ravenscar-thread.c (is_ravenscar_task)
14507 (ravenscar_task_is_currently_active): Return bool.
14508 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14509 (_initialize_ravenscar): Remove "(void)".
14510 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14513 2019-02-15 Tom Tromey <tromey@adacore.com>
14515 * ravenscar-thread.c (ravenscar_runtime_initializer)
14516 (has_ravenscar_runtime, get_running_thread_id)
14517 (ravenscar_thread_target::resume): Fix indentation.
14519 2019-02-15 Tom Tromey <tromey@adacore.com>
14521 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14522 from ravenscar_arch_ops.
14523 (sparc_ravenscar_ops::fetch_registers)
14524 (sparc_ravenscar_ops::store_registers): Now methods.
14525 (sparc_ravenscar_prepare_to_store): Remove.
14526 (sparc_ravenscar_ops): Redefine.
14527 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14528 methods and destructor. Remove members.
14529 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14530 (ravenscar_thread_target::store_registers)
14531 (ravenscar_thread_target::prepare_to_store): Update.
14532 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14534 (struct ppc_ravenscar_powerpc_ops): Derive from
14535 ravenscar_arch_ops.
14536 (ppc_ravenscar_powerpc_ops::fetch_registers)
14537 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14538 (ppc_ravenscar_powerpc_ops): Redefine.
14539 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14540 (ppc_ravenscar_e500_ops::fetch_registers)
14541 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14542 (ppc_ravenscar_e500_ops): Redefine.
14543 * aarch64-ravenscar-thread.c
14544 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14545 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14546 (aarch64_ravenscar_fetch_registers)
14547 (aarch64_ravenscar_store_registers): Now methods.
14548 (aarch64_ravenscar_ops): Redefine.
14550 2019-02-15 Tom Tromey <tromey@adacore.com>
14552 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14553 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14554 (ravenscar_thread_target::stopped_by_watchpoint)
14555 (ravenscar_thread_target::stopped_data_address)
14556 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14558 2019-02-15 Tom Tromey <tromey@adacore.com>
14560 * ravenscar-thread.c: Fix some typos.
14562 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14563 Tom Tromey <tromey@adacore.com>
14565 * ada-lang.c (ada_exception_sal): Change addr_string to a
14567 (create_ada_exception_catchpoint): Update.
14569 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14570 Tom Tromey <tromey@adacore.com>
14572 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14573 (bp_location_ops): Remove.
14574 (base_breakpoint_allocate_location): Update.
14575 (free_bp_location): Update.
14576 * ada-lang.c (class ada_catchpoint_location)
14577 <ada_catchpoint_location>: Remove ops parameter.
14578 (ada_catchpoint_location_dtor): Remove.
14579 (ada_catchpoint_location_ops): Remove.
14580 (allocate_location_exception): Update.
14581 * breakpoint.h (struct bp_location_ops): Remove.
14582 (class bp_location) <bp_location>: Remove bp_location_ops
14584 <~bp_location>: Add destructor.
14587 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14588 Pedro Alves <palves@redhat.com>
14590 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14593 2019-02-14 David Michael <fedora.dm0@gmail.com>
14594 Samuel Thibault <samuel.thibault@gnu.org>
14595 Thomas Schwinge <thomas@codesourcery.com>
14597 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14598 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14600 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14602 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14603 (check_empty): Use "const char *".
14605 * gnu-nat.c (gnu_nat_target::detach): Instead of
14606 'detach_inferior (pid)' call
14607 'detach_inferior (find_inferior_pid (pid))'.
14609 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14610 'nat/fork-inferior.o'.
14611 * gnu-nat.c: #include "nat/fork-inferior.h".
14613 * gnu-nat.c (gnu_nat_target::detach): Instead of
14614 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14615 * gnu-nat.h: #include "inf-child.h".
14616 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14617 'i386_gnu_nat_target::fetch_registers'.
14618 (gnu_store_registers): Rename/move to
14619 'i386_gnu_nat_target::store_registers'.
14621 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14622 * gnu-nat.h (mach_thread_info): New function.
14623 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14625 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14627 2019-02-14 Frederic Konrad <konrad@adacore.com>
14629 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14631 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14633 * windows-nat.c (windows_add_thread): Add new parameter
14634 "main_thread_p" with default value set to false. Update
14635 function documentation as well as all callers.
14636 (windows_delete_thread): Likewise.
14637 (fake_create_process): Update call to windows_add_thread.
14638 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14639 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14640 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14641 call to windows_delete_thread.
14643 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14645 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14647 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14649 * symfile.c (find_separate_debug_file): Use canonical path of
14650 sysroot with child_path instead of gdb_sysroot if it is valid.
14652 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14654 * symfile.c (find_separate_debug_file): Use child_path to
14655 determine if an object file is under a sysroot.
14657 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14659 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14660 unittests/child-path-selftests.c.
14661 * common/pathstuff.c (child_path): New function.
14662 * common/pathstuff.h (child_path): New prototype.
14663 * unittests/child-path-selftests.c: New file.
14665 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14667 * symfile.c (find_separate_debug_file): Look for separate debug
14668 files in debug directories under the sysroot.
14670 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14672 * symtab.h (struct minimal_symbol data_p): New const method.
14673 (struct minimal_symbol text_p): Likewise.
14674 * symtab.c (output_source_filename): Use file name style
14675 to print file name.
14676 (print_symbol_info): Likewise.
14677 (print_msymbol_info): Use address style to print addresses.
14678 Use function name style to print executable text symbols.
14679 (expand_symtab_containing_pc): Use data_p.
14680 (find_pc_sect_compunit_symtab): Likewise.
14682 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14684 * breakpoint.c (describe_other_breakpoints): Use address style
14685 to print addresses.
14686 (say_where): Likewise.
14688 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14690 * ada-typeprint.c (print_func_type): Print function name
14691 style to print function name.
14692 * c-typeprint.c (c_print_type_1): Likewise.
14694 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14696 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14699 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14701 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14704 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14706 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14707 TYPE_CODE_REF types.
14709 2019-02-08 Jim Wilson <jimw@sifive.com>
14711 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14712 (riscv_linux_fregset): New.
14713 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14715 2019-02-07 Tom Tromey <tom@tromey.com>
14717 * thread.c (thread_cancel_execution_command): Update.
14718 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14720 (struct thread_fsm_ops): Remove.
14721 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14722 (thread_fsm_should_stop, thread_fsm_return_value)
14723 (thread_fsm_set_finished, thread_fsm_finished_p)
14724 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14726 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14727 * infrun.c (clear_proceed_status_thread)
14728 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14729 (print_stop_event): Update.
14730 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14732 (step_command_fsm_ops): Remove.
14733 (new_step_command_fsm): Remove.
14735 (step_command_fsm::should_stop): Rename from
14736 step_command_fsm_should_stop.
14737 (step_command_fsm::clean_up): Rename from
14738 step_command_fsm_clean_up.
14739 (step_command_fsm::do_async_reply_reason): Rename from
14740 step_command_fsm_async_reply_reason.
14741 (struct until_next_fsm): Inherit from thread_fsm. Add
14743 (until_next_fsm_ops): Remove.
14744 (new_until_next_fsm): Remove.
14745 (until_next_fsm::should_stop): Rename from
14746 until_next_fsm_should_stop.
14747 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14748 (until_next_fsm::do_async_reply_reason): Rename from
14749 until_next_fsm_async_reply_reason.
14750 (struct finish_command_fsm): Inherit from thread_fsm. Add
14751 constructor. Change type of breakpoint.
14752 (finish_command_fsm_ops): Remove.
14753 (new_finish_command_fsm): Remove.
14754 (finish_command_fsm::should_stop): Rename from
14755 finish_command_fsm_should_stop.
14756 (finish_command_fsm::clean_up): Rename from
14757 finish_command_fsm_clean_up.
14758 (finish_command_fsm::return_value): Rename from
14759 finish_command_fsm_return_value.
14760 (finish_command_fsm::do_async_reply_reason): Rename from
14761 finish_command_fsm_async_reply_reason.
14762 (finish_command): Update.
14763 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14765 (call_thread_fsm_ops): Remove.
14766 (call_thread_fsm::call_thread_fsm): Rename from
14767 new_call_thread_fsm.
14768 (call_thread_fsm::should_stop): Rename from
14769 call_thread_fsm_should_stop.
14770 (call_thread_fsm::should_notify_stop): Rename from
14771 call_thread_fsm_should_notify_stop.
14772 (run_inferior_call, call_function_by_hand_dummy): Update.
14773 * cli/cli-interp.c (should_print_stop_to_console): Update.
14774 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14775 Add constructor. Change type of location_breakpoint,
14777 (until_break_fsm_ops): Remove.
14778 (new_until_break_fsm): Remove.
14779 (until_break_fsm::should_stop): Rename from
14780 until_break_fsm_should_stop.
14781 (until_break_fsm::clean_up): Rename from
14782 until_break_fsm_clean_up.
14783 (until_break_fsm::do_async_reply_reason): Rename from
14784 until_break_fsm_async_reply_reason.
14785 (until_break_command): Update.
14786 * thread-fsm.c: Remove.
14787 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14789 2019-02-07 Tom Tromey <tom@tromey.com>
14791 * yy-remap.h: Add include guard.
14792 * xtensa-tdep.h: Add include guard.
14793 * xcoffread.h: Rename include guard.
14794 * varobj-iter.h: Add include guard.
14795 * tui/tui.h: Rename include guard.
14796 * tui/tui-winsource.h: Rename include guard.
14797 * tui/tui-wingeneral.h: Rename include guard.
14798 * tui/tui-windata.h: Rename include guard.
14799 * tui/tui-win.h: Rename include guard.
14800 * tui/tui-stack.h: Rename include guard.
14801 * tui/tui-source.h: Rename include guard.
14802 * tui/tui-regs.h: Rename include guard.
14803 * tui/tui-out.h: Rename include guard.
14804 * tui/tui-layout.h: Rename include guard.
14805 * tui/tui-io.h: Rename include guard.
14806 * tui/tui-hooks.h: Rename include guard.
14807 * tui/tui-file.h: Rename include guard.
14808 * tui/tui-disasm.h: Rename include guard.
14809 * tui/tui-data.h: Rename include guard.
14810 * tui/tui-command.h: Rename include guard.
14811 * tic6x-tdep.h: Add include guard.
14812 * target/waitstatus.h: Rename include guard.
14813 * target/wait.h: Rename include guard.
14814 * target/target.h: Rename include guard.
14815 * target/resume.h: Rename include guard.
14816 * target-float.h: Rename include guard.
14817 * stabsread.h: Add include guard.
14818 * rs6000-tdep.h: Add include guard.
14819 * riscv-fbsd-tdep.h: Add include guard.
14820 * regformats/regdef.h: Rename include guard.
14821 * record.h: Rename include guard.
14822 * python/python.h: Rename include guard.
14823 * python/python-internal.h: Rename include guard.
14824 * python/py-stopevent.h: Rename include guard.
14825 * python/py-ref.h: Rename include guard.
14826 * python/py-record.h: Rename include guard.
14827 * python/py-record-full.h: Rename include guard.
14828 * python/py-record-btrace.h: Rename include guard.
14829 * python/py-instruction.h: Rename include guard.
14830 * python/py-events.h: Rename include guard.
14831 * python/py-event.h: Rename include guard.
14832 * procfs.h: Add include guard.
14833 * proc-utils.h: Add include guard.
14834 * p-lang.h: Add include guard.
14835 * or1k-tdep.h: Rename include guard.
14836 * observable.h: Rename include guard.
14837 * nto-tdep.h: Rename include guard.
14838 * nat/x86-linux.h: Rename include guard.
14839 * nat/x86-linux-dregs.h: Rename include guard.
14840 * nat/x86-gcc-cpuid.h: Add include guard.
14841 * nat/x86-dregs.h: Rename include guard.
14842 * nat/x86-cpuid.h: Rename include guard.
14843 * nat/ppc-linux.h: Rename include guard.
14844 * nat/mips-linux-watch.h: Rename include guard.
14845 * nat/linux-waitpid.h: Rename include guard.
14846 * nat/linux-ptrace.h: Rename include guard.
14847 * nat/linux-procfs.h: Rename include guard.
14848 * nat/linux-osdata.h: Rename include guard.
14849 * nat/linux-nat.h: Rename include guard.
14850 * nat/linux-namespaces.h: Rename include guard.
14851 * nat/linux-btrace.h: Rename include guard.
14852 * nat/glibc_thread_db.h: Rename include guard.
14853 * nat/gdb_thread_db.h: Rename include guard.
14854 * nat/gdb_ptrace.h: Rename include guard.
14855 * nat/fork-inferior.h: Rename include guard.
14856 * nat/amd64-linux-siginfo.h: Rename include guard.
14857 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14858 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14859 * nat/aarch64-linux.h: Rename include guard.
14860 * nat/aarch64-linux-hw-point.h: Rename include guard.
14861 * mn10300-tdep.h: Add include guard.
14862 * mips-linux-tdep.h: Add include guard.
14863 * mi/mi-parse.h: Rename include guard.
14864 * mi/mi-out.h: Rename include guard.
14865 * mi/mi-main.h: Rename include guard.
14866 * mi/mi-interp.h: Rename include guard.
14867 * mi/mi-getopt.h: Rename include guard.
14868 * mi/mi-console.h: Rename include guard.
14869 * mi/mi-common.h: Rename include guard.
14870 * mi/mi-cmds.h: Rename include guard.
14871 * mi/mi-cmd-break.h: Rename include guard.
14872 * m2-lang.h: Add include guard.
14873 * location.h: Rename include guard.
14874 * linux-record.h: Rename include guard.
14875 * linux-nat.h: Add include guard.
14876 * linux-fork.h: Add include guard.
14877 * i386-darwin-tdep.h: Rename include guard.
14878 * hppa-linux-offsets.h: Add include guard.
14879 * guile/guile.h: Rename include guard.
14880 * guile/guile-internal.h: Rename include guard.
14881 * gnu-nat.h: Rename include guard.
14882 * gdb-stabs.h: Rename include guard.
14883 * frv-tdep.h: Add include guard.
14884 * f-lang.h: Add include guard.
14885 * event-loop.h: Add include guard.
14886 * darwin-nat.h: Rename include guard.
14887 * cp-abi.h: Rename include guard.
14888 * config/sparc/nm-sol2.h: Rename include guard.
14889 * config/nm-nto.h: Rename include guard.
14890 * config/nm-linux.h: Add include guard.
14891 * config/i386/nm-i386gnu.h: Rename include guard.
14892 * config/djgpp/nl_types.h: Rename include guard.
14893 * config/djgpp/langinfo.h: Rename include guard.
14894 * compile/gcc-cp-plugin.h: Add include guard.
14895 * compile/gcc-c-plugin.h: Add include guard.
14896 * compile/compile.h: Rename include guard.
14897 * compile/compile-object-run.h: Rename include guard.
14898 * compile/compile-object-load.h: Rename include guard.
14899 * compile/compile-internal.h: Rename include guard.
14900 * compile/compile-cplus.h: Rename include guard.
14901 * compile/compile-c.h: Rename include guard.
14902 * common/xml-utils.h: Rename include guard.
14903 * common/x86-xstate.h: Rename include guard.
14904 * common/version.h: Rename include guard.
14905 * common/vec.h: Rename include guard.
14906 * common/tdesc.h: Rename include guard.
14907 * common/selftest.h: Rename include guard.
14908 * common/scoped_restore.h: Rename include guard.
14909 * common/scoped_mmap.h: Rename include guard.
14910 * common/scoped_fd.h: Rename include guard.
14911 * common/safe-iterator.h: Rename include guard.
14912 * common/run-time-clock.h: Rename include guard.
14913 * common/refcounted-object.h: Rename include guard.
14914 * common/queue.h: Rename include guard.
14915 * common/ptid.h: Rename include guard.
14916 * common/print-utils.h: Rename include guard.
14917 * common/preprocessor.h: Rename include guard.
14918 * common/pathstuff.h: Rename include guard.
14919 * common/observable.h: Rename include guard.
14920 * common/netstuff.h: Rename include guard.
14921 * common/job-control.h: Rename include guard.
14922 * common/host-defs.h: Rename include guard.
14923 * common/gdb_wait.h: Rename include guard.
14924 * common/gdb_vecs.h: Rename include guard.
14925 * common/gdb_unlinker.h: Rename include guard.
14926 * common/gdb_unique_ptr.h: Rename include guard.
14927 * common/gdb_tilde_expand.h: Rename include guard.
14928 * common/gdb_sys_time.h: Rename include guard.
14929 * common/gdb_string_view.h: Rename include guard.
14930 * common/gdb_splay_tree.h: Rename include guard.
14931 * common/gdb_setjmp.h: Rename include guard.
14932 * common/gdb_ref_ptr.h: Rename include guard.
14933 * common/gdb_optional.h: Rename include guard.
14934 * common/gdb_locale.h: Rename include guard.
14935 * common/gdb_assert.h: Rename include guard.
14936 * common/filtered-iterator.h: Rename include guard.
14937 * common/filestuff.h: Rename include guard.
14938 * common/fileio.h: Rename include guard.
14939 * common/environ.h: Rename include guard.
14940 * common/common-utils.h: Rename include guard.
14941 * common/common-types.h: Rename include guard.
14942 * common/common-regcache.h: Rename include guard.
14943 * common/common-inferior.h: Rename include guard.
14944 * common/common-gdbthread.h: Rename include guard.
14945 * common/common-exceptions.h: Rename include guard.
14946 * common/common-defs.h: Rename include guard.
14947 * common/common-debug.h: Rename include guard.
14948 * common/cleanups.h: Rename include guard.
14949 * common/buffer.h: Rename include guard.
14950 * common/btrace-common.h: Rename include guard.
14951 * common/break-common.h: Rename include guard.
14952 * cli/cli-utils.h: Rename include guard.
14953 * cli/cli-style.h: Rename include guard.
14954 * cli/cli-setshow.h: Rename include guard.
14955 * cli/cli-script.h: Rename include guard.
14956 * cli/cli-interp.h: Rename include guard.
14957 * cli/cli-decode.h: Rename include guard.
14958 * cli/cli-cmds.h: Rename include guard.
14959 * charset-list.h: Add include guard.
14960 * buildsym-legacy.h: Rename include guard.
14961 * bfin-tdep.h: Add include guard.
14962 * ax.h: Rename include guard.
14963 * arm-linux-tdep.h: Add include guard.
14964 * arm-fbsd-tdep.h: Add include guard.
14965 * arch/xtensa.h: Rename include guard.
14966 * arch/tic6x.h: Add include guard.
14967 * arch/i386.h: Add include guard.
14968 * arch/arm.h: Rename include guard.
14969 * arch/arm-linux.h: Rename include guard.
14970 * arch/arm-get-next-pcs.h: Rename include guard.
14971 * arch/amd64.h: Add include guard.
14972 * arch/aarch64-insn.h: Rename include guard.
14973 * arch-utils.h: Rename include guard.
14974 * annotate.h: Add include guard.
14975 * amd64-darwin-tdep.h: Rename include guard.
14976 * aarch64-linux-tdep.h: Add include guard.
14977 * aarch64-fbsd-tdep.h: Add include guard.
14978 * aarch32-linux-nat.h: Add include guard.
14980 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14982 * macrotab.c (macro_define_internal): New function that
14983 factorizes macro_define_object_internal and macro_define_function
14985 (macro_define_object_internal): Use macro_define_internal.
14986 (macro_define_function): Likewise.
14988 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14990 * macrocmd.c (extract_identifier): Return
14991 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14994 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14996 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14998 2019-02-05 Tom Tromey <tom@tromey.com>
15000 * target.c (target_stack::unpush): Move assertion earlier.
15002 2019-01-30 Tom Tromey <tom@tromey.com>
15005 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15006 (gdbpy_parse_and_eval): Likewise.
15007 * python/python-internal.h (gdbpy_allow_threads): New class.
15009 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15011 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15012 (aarch64_fbsd_fpregmap): Move earlier.
15013 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15014 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15015 instead of individual calls to trad_frame_set_reg_addr.
15016 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15018 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15019 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15020 instead of individual calls to trad_frame_set_reg_addr.
15022 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15024 * CONTRIBUTE: Replace contribution list with wiki link.
15026 2019-01-25 Tom Tromey <tom@tromey.com>
15028 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15030 2019-01-25 Tom Tromey <tom@tromey.com>
15032 * xtensa-linux-nat.c: Fix common/ includes.
15033 * xml-support.h: Fix common/ includes.
15034 * xml-support.c: Fix common/ includes.
15035 * x86-linux-nat.c: Fix common/ includes.
15036 * windows-nat.c: Fix common/ includes.
15037 * varobj.h: Fix common/ includes.
15038 * varobj.c: Fix common/ includes.
15039 * value.c: Fix common/ includes.
15040 * valops.c: Fix common/ includes.
15041 * utils.c: Fix common/ includes.
15042 * unittests/xml-utils-selftests.c: Fix common/ includes.
15043 * unittests/utils-selftests.c: Fix common/ includes.
15044 * unittests/unpack-selftests.c: Fix common/ includes.
15045 * unittests/tracepoint-selftests.c: Fix common/ includes.
15046 * unittests/style-selftests.c: Fix common/ includes.
15047 * unittests/string_view-selftests.c: Fix common/ includes.
15048 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15049 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15050 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15051 * unittests/rsp-low-selftests.c: Fix common/ includes.
15052 * unittests/parse-connection-spec-selftests.c: Fix common/
15054 * unittests/optional-selftests.c: Fix common/ includes.
15055 * unittests/offset-type-selftests.c: Fix common/ includes.
15056 * unittests/observable-selftests.c: Fix common/ includes.
15057 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15058 * unittests/memrange-selftests.c: Fix common/ includes.
15059 * unittests/memory-map-selftests.c: Fix common/ includes.
15060 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15061 * unittests/function-view-selftests.c: Fix common/ includes.
15062 * unittests/environ-selftests.c: Fix common/ includes.
15063 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15064 * unittests/common-utils-selftests.c: Fix common/ includes.
15065 * unittests/cli-utils-selftests.c: Fix common/ includes.
15066 * unittests/array-view-selftests.c: Fix common/ includes.
15067 * ui-file.c: Fix common/ includes.
15068 * tui/tui-io.c: Fix common/ includes.
15069 * tracepoint.h: Fix common/ includes.
15070 * tracepoint.c: Fix common/ includes.
15071 * tracefile-tfile.c: Fix common/ includes.
15072 * top.h: Fix common/ includes.
15073 * top.c: Fix common/ includes.
15074 * thread.c: Fix common/ includes.
15075 * target/waitstatus.h: Fix common/ includes.
15076 * target/waitstatus.c: Fix common/ includes.
15077 * target.h: Fix common/ includes.
15078 * target.c: Fix common/ includes.
15079 * target-memory.c: Fix common/ includes.
15080 * target-descriptions.c: Fix common/ includes.
15081 * symtab.h: Fix common/ includes.
15082 * symfile.c: Fix common/ includes.
15083 * stap-probe.c: Fix common/ includes.
15084 * spu-linux-nat.c: Fix common/ includes.
15085 * sparc-nat.c: Fix common/ includes.
15086 * source.c: Fix common/ includes.
15087 * solib.c: Fix common/ includes.
15088 * solib-target.c: Fix common/ includes.
15089 * ser-unix.c: Fix common/ includes.
15090 * ser-tcp.c: Fix common/ includes.
15091 * ser-pipe.c: Fix common/ includes.
15092 * ser-base.c: Fix common/ includes.
15093 * selftest-arch.c: Fix common/ includes.
15094 * s12z-tdep.c: Fix common/ includes.
15095 * rust-exp.y: Fix common/ includes.
15096 * rs6000-aix-tdep.c: Fix common/ includes.
15097 * riscv-tdep.c: Fix common/ includes.
15098 * remote.c: Fix common/ includes.
15099 * remote-notif.h: Fix common/ includes.
15100 * remote-fileio.h: Fix common/ includes.
15101 * remote-fileio.c: Fix common/ includes.
15102 * regcache.h: Fix common/ includes.
15103 * regcache.c: Fix common/ includes.
15104 * record-btrace.c: Fix common/ includes.
15105 * python/python.c: Fix common/ includes.
15106 * python/py-type.c: Fix common/ includes.
15107 * python/py-inferior.c: Fix common/ includes.
15108 * progspace.h: Fix common/ includes.
15109 * producer.c: Fix common/ includes.
15110 * procfs.c: Fix common/ includes.
15111 * proc-api.c: Fix common/ includes.
15112 * printcmd.c: Fix common/ includes.
15113 * ppc-linux-nat.c: Fix common/ includes.
15114 * parser-defs.h: Fix common/ includes.
15115 * osdata.c: Fix common/ includes.
15116 * obsd-nat.c: Fix common/ includes.
15117 * nat/x86-linux.c: Fix common/ includes.
15118 * nat/x86-linux-dregs.c: Fix common/ includes.
15119 * nat/x86-dregs.h: Fix common/ includes.
15120 * nat/x86-dregs.c: Fix common/ includes.
15121 * nat/ppc-linux.c: Fix common/ includes.
15122 * nat/mips-linux-watch.h: Fix common/ includes.
15123 * nat/mips-linux-watch.c: Fix common/ includes.
15124 * nat/linux-waitpid.c: Fix common/ includes.
15125 * nat/linux-ptrace.h: Fix common/ includes.
15126 * nat/linux-ptrace.c: Fix common/ includes.
15127 * nat/linux-procfs.c: Fix common/ includes.
15128 * nat/linux-personality.c: Fix common/ includes.
15129 * nat/linux-osdata.c: Fix common/ includes.
15130 * nat/linux-namespaces.c: Fix common/ includes.
15131 * nat/linux-btrace.h: Fix common/ includes.
15132 * nat/linux-btrace.c: Fix common/ includes.
15133 * nat/fork-inferior.c: Fix common/ includes.
15134 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15135 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15136 * nat/aarch64-linux.c: Fix common/ includes.
15137 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15138 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15139 * namespace.h: Fix common/ includes.
15140 * mips-linux-tdep.c: Fix common/ includes.
15141 * minsyms.c: Fix common/ includes.
15142 * mi/mi-parse.h: Fix common/ includes.
15143 * mi/mi-main.c: Fix common/ includes.
15144 * mi/mi-cmd-env.c: Fix common/ includes.
15145 * memrange.h: Fix common/ includes.
15146 * memattr.c: Fix common/ includes.
15147 * maint.h: Fix common/ includes.
15148 * maint.c: Fix common/ includes.
15149 * main.c: Fix common/ includes.
15150 * machoread.c: Fix common/ includes.
15151 * location.c: Fix common/ includes.
15152 * linux-thread-db.c: Fix common/ includes.
15153 * linux-nat.c: Fix common/ includes.
15154 * linux-fork.c: Fix common/ includes.
15155 * inline-frame.c: Fix common/ includes.
15156 * infrun.c: Fix common/ includes.
15157 * inflow.c: Fix common/ includes.
15158 * inferior.h: Fix common/ includes.
15159 * inferior.c: Fix common/ includes.
15160 * infcmd.c: Fix common/ includes.
15161 * inf-ptrace.c: Fix common/ includes.
15162 * inf-child.c: Fix common/ includes.
15163 * ia64-linux-nat.c: Fix common/ includes.
15164 * i387-tdep.c: Fix common/ includes.
15165 * i386-tdep.c: Fix common/ includes.
15166 * i386-linux-tdep.c: Fix common/ includes.
15167 * i386-linux-nat.c: Fix common/ includes.
15168 * i386-go32-tdep.c: Fix common/ includes.
15169 * i386-fbsd-tdep.c: Fix common/ includes.
15170 * i386-fbsd-nat.c: Fix common/ includes.
15171 * guile/scm-type.c: Fix common/ includes.
15172 * guile/guile.c: Fix common/ includes.
15173 * go32-nat.c: Fix common/ includes.
15174 * gnu-nat.c: Fix common/ includes.
15175 * gdbthread.h: Fix common/ includes.
15176 * gdbarch-selftests.c: Fix common/ includes.
15177 * gdb_usleep.c: Fix common/ includes.
15178 * gdb_select.h: Fix common/ includes.
15179 * gdb_bfd.c: Fix common/ includes.
15180 * gcore.c: Fix common/ includes.
15181 * fork-child.c: Fix common/ includes.
15182 * findvar.c: Fix common/ includes.
15183 * fbsd-nat.c: Fix common/ includes.
15184 * event-top.c: Fix common/ includes.
15185 * event-loop.c: Fix common/ includes.
15186 * dwarf2read.c: Fix common/ includes.
15187 * dwarf2loc.c: Fix common/ includes.
15188 * dwarf2-frame.c: Fix common/ includes.
15189 * dwarf-index-cache.c: Fix common/ includes.
15190 * dtrace-probe.c: Fix common/ includes.
15191 * disasm-selftests.c: Fix common/ includes.
15192 * defs.h: Fix common/ includes.
15193 * csky-tdep.c: Fix common/ includes.
15194 * cp-valprint.c: Fix common/ includes.
15195 * cp-support.h: Fix common/ includes.
15196 * cp-support.c: Fix common/ includes.
15197 * corelow.c: Fix common/ includes.
15198 * completer.h: Fix common/ includes.
15199 * completer.c: Fix common/ includes.
15200 * compile/compile.c: Fix common/ includes.
15201 * compile/compile-loc2c.c: Fix common/ includes.
15202 * compile/compile-cplus-types.c: Fix common/ includes.
15203 * compile/compile-cplus-symbols.c: Fix common/ includes.
15204 * command.h: Fix common/ includes.
15205 * cli/cli-dump.c: Fix common/ includes.
15206 * cli/cli-cmds.c: Fix common/ includes.
15207 * charset.c: Fix common/ includes.
15208 * build-id.c: Fix common/ includes.
15209 * btrace.h: Fix common/ includes.
15210 * btrace.c: Fix common/ includes.
15211 * breakpoint.h: Fix common/ includes.
15212 * breakpoint.c: Fix common/ includes.
15214 (enum agent_op): Fix common/ includes.
15215 * ax-general.c (struct aop_map): Fix common/ includes.
15216 * ax-gdb.c: Fix common/ includes.
15217 * auxv.c: Fix common/ includes.
15218 * auto-load.c: Fix common/ includes.
15219 * arm-tdep.c: Fix common/ includes.
15220 * arch/riscv.c: Fix common/ includes.
15221 * arch/ppc-linux-common.c: Fix common/ includes.
15222 * arch/i386.c: Fix common/ includes.
15223 * arch/arm.c: Fix common/ includes.
15224 * arch/arm-linux.c: Fix common/ includes.
15225 * arch/arm-get-next-pcs.c: Fix common/ includes.
15226 * arch/amd64.c: Fix common/ includes.
15227 * arch/aarch64.c: Fix common/ includes.
15228 * arch/aarch64-insn.c: Fix common/ includes.
15229 * arch-utils.c: Fix common/ includes.
15230 * amd64-windows-tdep.c: Fix common/ includes.
15231 * amd64-tdep.c: Fix common/ includes.
15232 * amd64-sol2-tdep.c: Fix common/ includes.
15233 * amd64-obsd-tdep.c: Fix common/ includes.
15234 * amd64-nbsd-tdep.c: Fix common/ includes.
15235 * amd64-linux-tdep.c: Fix common/ includes.
15236 * amd64-linux-nat.c: Fix common/ includes.
15237 * amd64-fbsd-tdep.c: Fix common/ includes.
15238 * amd64-fbsd-nat.c: Fix common/ includes.
15239 * amd64-dicos-tdep.c: Fix common/ includes.
15240 * amd64-darwin-tdep.c: Fix common/ includes.
15241 * agent.c: Fix common/ includes.
15242 * ada-lang.h: Fix common/ includes.
15243 * ada-lang.c: Fix common/ includes.
15244 * aarch64-tdep.c: Fix common/ includes.
15246 2019-01-25 Tom Tromey <tom@tromey.com>
15248 * common/create-version.sh: Use common/version.h.
15250 2019-01-24 Pedro Alves <palves@redhat.com>
15252 * infrun.c (signal_stop, signal_print, signal_program)
15253 (signal_catch, signal_pass): Now arrays instead of pointers.
15254 (update_signals_program_target, do_target_resume)
15255 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15256 * linux-nat.c (linux_nat_target::pass_signals)
15257 (linux_nat_target::create_inferior, linux_nat_target::attach):
15259 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15260 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15261 * procfs.c (procfs_target::pass_signals): Adjust.
15262 * record-full.c (record_full_target::resume): Adjust.
15263 * remote.c (remote_target::pass_signals)
15264 (remote_target::program_signals): Adjust.
15265 * target-debug.h (target_debug_print_signals): Now takes a
15266 gdb::array_view as parameter. Adjust.
15267 * target.h (target_ops) <pass_signals, program_signals>: Replace
15268 pointer and length parameters with gdb::array_view.
15269 (target_pass_signals, target_program_signals): Likewise.
15270 * target-delegates.c: Regenerate.
15272 2019-01-24 Pedro Alves <palves@redhat.com>
15274 * common/forward-scope-exit.h
15275 (forward_scope_exit::forward_scope_exit): Pass arguments to
15276 m_bind_function directly, instead of creating a std::bind and
15279 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15281 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15282 for static members.
15283 (pass_in_v_vfp_candidate): Likewise.
15285 2019-01-23 Tom Tromey <tom@tromey.com>
15286 Pedro Alves <palves@redhat.com>
15288 * regcache.c (class regcache_invalidator): Remove.
15289 (regcache::raw_write): Use make_scope_exit.
15291 2019-01-23 Tom Tromey <tom@tromey.com>
15293 * ui-out.h (class ui_out_emit_type): Update comment.
15295 2019-01-23 Tom Tromey <tom@tromey.com>
15297 * infrun.c (fetch_inferior_event): Update comment.
15299 2019-01-23 Tom Tromey <tom@tromey.com>
15300 Pedro Alves <palves@redhat.com>
15302 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15304 (fetch_inferior_event): Use SCOPE_EXIT.
15307 2019-01-23 Tom Tromey <tom@tromey.com>
15308 Pedro Alves <palves@redhat.com>
15310 * infrun.c (disable_thread_events): Delete.
15311 (stop_all_threads): Use SCOPE_EXIT.
15313 2019-01-23 Tom Tromey <tom@tromey.com>
15314 Pedro Alves <palves@redhat.com>
15316 * symfile.c: Include forward-scope-exit.h.
15317 (clear_symtab_users_cleanup): Replace forward declaration with
15318 a FORWARD_SCOPE_EXIT.
15319 (syms_from_objfile_1): Use the forward_scope_exit and
15320 gdb::optional instead of cleanup_function.
15321 (reread_symbols): Use the forward_scope_exit instead of
15323 (clear_symtab_users_cleanup): Remove function.
15325 2019-01-23 Tom Tromey <tom@tromey.com>
15326 Pedro Alves <palves@redhat.com>
15328 * linux-nat.c: Include scope-exit.h.
15329 (cleanup_target_stop): Remove.
15330 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15333 2019-01-23 Tom Tromey <tom@tromey.com>
15334 Pedro Alves <palves@redhat.com>
15336 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15337 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15339 2019-01-23 Tom Tromey <tom@tromey.com>
15340 Andrew Burgess <andrew.burgess@embecosm.com>
15341 Pedro Alves <palves@redhat.com>
15343 * infrun.c (fetch_inferior_event): Use scope_exit.
15344 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15345 * top.c (execute_command): Use scope_exit.
15346 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15347 * utils.c (do_bpstat_clear_actions_cleanup)
15348 (make_bpstat_clear_actions_cleanup): Remove.
15350 2019-01-23 Tom Tromey <tom@tromey.com>
15351 Pedro Alves <palves@redhat.com>
15353 * infrun.c: Include "common/scope-exit.h"
15354 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15355 (wait_for_inferior): Use SCOPE_EXIT.
15356 (fetch_inferior_event): Use scope_exit.
15358 2019-01-23 Tom Tromey <tom@tromey.com>
15359 Pedro Alves <palves@redhat.com>
15361 * breakpoint.c (create_breakpoint): Remove cleanup.
15363 2019-01-23 Tom Tromey <tom@tromey.com>
15364 Andrew Burgess <andrew.burgess@embecosm.com>
15365 Pedro Alves <palves@redhat.com>
15367 2019-01-23 Pedro Alves <palves@redhat.com>
15369 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15371 2019-01-23 Pedro Alves <palves@redhat.com>
15372 Andrew Burgess <andrew.burgess@embecosm.com>
15374 * gdbthread.h: Include "common/forward-scope-exit.h".
15375 (scoped_finish_thread_state): Redefine custom class in terms of
15376 forward_scope_exit.
15378 2019-01-23 Pedro Alves <palves@redhat.com>
15379 Andrew Burgess <andrew.burgess@embecosm.com>
15381 * common/forward-scope-exit.h: New file.
15383 2019-01-23 Pedro Alves <palves@redhat.com>
15384 Andrew Burgess <andrew.burgess@embecosm.com>
15385 Tom Tromey <tom@tromey.com>
15387 * common/scope-exit.h: New file.
15389 2019-01-23 Pedro Alves <palves@redhat.com>
15391 * common/preprocessor.h (ESC): Rename to ...
15392 (ESC_PARENS): ... this.
15393 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15394 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15396 2019-01-23 Tom Tromey <tom@tromey.com>
15398 * language.h (class scoped_switch_to_sym_language_if_auto):
15399 Initialize m_lang in both cases.
15401 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15403 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15406 2019-01-22 Tom Tromey <tom@tromey.com>
15408 * corelow.c: Do not include sys/file.h.
15410 2019-01-22 Tom Tromey <tom@tromey.com>
15412 * tui/tui-wingeneral.h: Include gdb_curses.h.
15414 2019-01-22 Tom Tromey <tom@tromey.com>
15416 * source-cache.h (class source_cache) <get_source_lines,
15417 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15419 2019-01-22 Tom Tromey <tom@tromey.com>
15421 * remote-fileio.h (struct remote_target): Declare.
15423 2019-01-22 Tom Tromey <tom@tromey.com>
15425 * python/py-arch.c: Do not include py-ref.h.
15426 * python/py-bpevent.c: Do not include py-ref.h.
15427 * python/py-cmd.c: Do not include py-ref.h.
15428 * python/py-continueevent.c: Do not include py-ref.h.
15429 * python/py-event.h: Do not include py-ref.h.
15430 * python/py-evtregistry.c: Do not include py-ref.h.
15431 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15432 * python/py-frame.c: Do not include py-ref.h.
15433 * python/py-framefilter.c: Do not include py-ref.h.
15434 * python/py-function.c: Do not include py-ref.h.
15435 * python/py-infevents.c: Do not include py-ref.h.
15436 * python/py-linetable.c: Do not include py-ref.h.
15437 * python/py-objfile.c: Do not include py-ref.h.
15438 * python/py-param.c: Do not include py-ref.h.
15439 * python/py-prettyprint.c: Do not include py-ref.h.
15440 * python/py-progspace.c: Do not include py-ref.h.
15441 * python/py-symbol.c: Do not include py-ref.h.
15442 * python/py-symtab.c: Do not include py-ref.h.
15443 * python/py-type.c: Do not include py-ref.h.
15444 * python/py-unwind.c: Do not include py-ref.h.
15445 * python/py-utils.c: Do not include py-ref.h.
15446 * python/py-value.c: Do not include py-ref.h.
15447 * python/py-varobj.c: Do not include py-ref.h.
15448 * python/py-xmethods.c: Do not include py-ref.h.
15449 * python/python.c: Do not include py-ref.h.
15450 * varobj.c: Do not include py-ref.h.
15452 2019-01-22 Tom Tromey <tom@tromey.com>
15454 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15455 keyword for bcache.
15457 2019-01-22 Tom Tromey <tom@tromey.com>
15459 * compile/compile-cplus-types.c: Remove a comment by #include.
15461 2019-01-22 Tom Tromey <tom@tromey.com>
15463 * compile/gcc-c-plugin.h: Include compile-internal.h.
15465 2019-01-22 Tom Tromey <tom@tromey.com>
15467 * stabsread.c (EXTERN): Do not define.
15468 (symnum, next_symbol_text_func, processing_gcc_compilation)
15469 (within_function, global_sym_chain, global_stabs)
15470 (previous_stab_code, this_object_header_files)
15471 (n_this_object_header_files)
15472 (n_allocated_this_object_header_files): Define.
15473 * stabsread.h (EXTERN): Never define. Use "extern".
15475 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15477 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15480 2019-01-21 Tom Tromey <tom@tromey.com>
15482 * ui-out.c: Fix includes.
15483 * tui/tui-source.c: Fix includes.
15484 * target.c: Fix includes.
15485 * remote.c: Fix includes.
15486 * regcache.c: Fix includes.
15487 * python/py-block.c: Fix includes.
15488 * printcmd.c: Fix includes.
15489 * or1k-tdep.c: Fix includes.
15490 * mi/mi-main.c: Fix includes.
15491 * m32r-tdep.c: Fix includes.
15492 * csky-tdep.c: Fix includes.
15493 * compile/compile-cplus-types.c: Fix includes.
15494 * cli/cli-interp.c: Fix includes.
15496 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15498 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15501 2019-01-16 Tom Tromey <tom@tromey.com>
15503 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15505 (struct objfile) <msymbols_range>: Move from top level.
15506 <msymbols>: New method.
15507 (class objfile_msymbols): Remove.
15508 * symtab.c (default_collect_symbol_completion_matches_break_on):
15510 * symmisc.c (dump_msymbols): Update.
15511 * stabsread.c (scan_file_globals): Update.
15512 * objc-lang.c (info_selectors_command, info_classes_command)
15513 (find_methods): Update.
15514 * minsyms.c (find_solib_trampoline_target): Update.
15515 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15516 * coffread.c (coff_symfile_read): Update.
15517 * ada-lang.c (ada_lookup_simple_minsym)
15518 (ada_collect_symbol_completion_matches): Update.
15520 2019-01-16 Tom Tromey <tom@tromey.com>
15522 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15523 type. Remove no-argument constructor.
15524 <iterator::operator++>: Simplify.
15526 <end>: Use minimal_symbol_count.
15528 2019-01-16 Tom Tromey <tom@tromey.com>
15530 * objfiles.h (struct objfile) <psymtabs>: New method.
15531 (class objfile_psymtabs): Remove.
15532 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15534 <range>: New method.
15535 (require_partial_symbols): Change return type.
15536 * psymtab.c (require_partial_symbols)
15537 (psym_expand_symtabs_matching): Update.
15538 * mdebugread.c (parse_partial_symbols): Update.
15539 * dbxread.c (dbx_end_psymtab): Update.
15541 2019-01-15 Tom Tromey <tom@tromey.com>
15543 * symtab.c (lookup_objfile_from_block)
15544 (lookup_symbol_in_objfile_symtabs)
15545 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15546 (find_line_symtab, info_sources_command)
15547 (default_collect_symbol_completion_matches_break_on)
15548 (make_source_files_completion_list): Update.
15549 * symmisc.c (print_objfile_statistics, dump_objfile)
15550 (maintenance_print_symbols, maintenance_info_symtabs)
15551 (maintenance_check_symtabs, maintenance_info_line_tables):
15553 * source.c (select_source_symtab)
15554 (forget_cached_source_info_for_objfile): Update.
15555 * objfiles.h (class objfile_compunits): Remove.
15556 (struct objfile) <compunits_range>: New typedef.
15557 (compunits): New method.
15558 * objfiles.c (objfile_relocate1): Update.
15559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15560 * maint.c (count_symtabs_and_blocks): Update.
15561 * linespec.c (iterate_over_all_matching_symtabs): Update.
15562 * cp-support.c (add_symbol_overload_list_qualified): Update.
15563 * coffread.c (coff_symtab_read): Update.
15564 * ada-lang.c (add_nonlocal_symbols)
15565 (ada_collect_symbol_completion_matches)
15566 (ada_add_global_exceptions): Update.
15568 2019-01-15 Tom Tromey <tom@tromey.com>
15570 * progspace.h (program_space) <objfiles_safe_range>: New
15572 <objfiles_safe>: New method.
15573 * objfiles.h (class all_objfiles_safe): Remove.
15574 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15575 * jit.c (jit_inferior_exit_hook): Update.
15577 2019-01-17 Tom Tromey <tom@tromey.com>
15579 * progspace.h (program_space) <objfiles_range>: New typedef.
15580 <objfiles>: New method.
15581 <objfiles_head>: Rename from objfiles.
15582 (object_files): Update.
15583 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15584 * guile/scm-pretty-print.c
15585 (ppscm_find_pretty_printer_from_objfiles): Update.
15586 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15587 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15589 * python/py-progspace.c (pspy_get_objfiles): Update.
15590 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15592 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15593 (objfpy_lookup_objfile_by_build_id): Update.
15594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15595 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15597 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15598 (expand_symtab_containing_pc, lookup_objfile_from_block)
15599 (lookup_static_symbol, basic_lookup_transparent_type)
15600 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15601 (find_line_symtab, info_sources_command)
15602 (default_collect_symbol_completion_matches_break_on)
15603 (make_source_files_completion_list, find_main_name): Update.
15604 * symmisc.c (print_symbol_bcache_statistics)
15605 (print_objfile_statistics, maintenance_print_symbols)
15606 (maintenance_print_msymbols, maintenance_print_objfiles)
15607 (maintenance_info_symtabs, maintenance_check_symtabs)
15608 (maintenance_expand_symtabs, maintenance_info_line_tables):
15610 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15611 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15612 (map_overlay_command, unmap_overlay_command)
15613 (simple_overlay_update, expand_symtabs_matching)
15614 (map_symbol_filenames): Update.
15615 * symfile-debug.c (set_debug_symfile): Update.
15616 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15618 * source.c (select_source_symtab, forget_cached_source_info):
15620 * solib.c (solib_read_symbols): Update.
15621 * solib-spu.c (append_ocl_sos): Update.
15622 * psymtab.c (maintenance_print_psymbols)
15623 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15624 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15625 * printcmd.c (info_symbol_command): Update.
15626 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15628 * objfiles.h (class all_objfiles): Remove.
15629 * objfiles.c (have_partial_symbols, have_full_symbols)
15630 (have_minimal_symbols, qsort_cmp, update_section_map)
15631 (shared_objfile_contains_address_p)
15632 (default_iterate_over_objfiles_in_search_order): Update.
15633 * objc-lang.c (info_selectors_command, info_classes_command)
15634 (find_methods): Update.
15635 * minsyms.c (find_solib_trampoline_target): Update.
15636 * maint.c (maintenance_info_sections)
15637 (maintenance_translate_address, count_symtabs_and_blocks):
15639 * main.c (captured_main_1): Update.
15640 * linux-thread-db.c (try_thread_db_load_from_pdir)
15641 (has_libpthread): Update.
15642 * linespec.c (iterate_over_all_matching_symtabs)
15643 (search_minsyms_for_name): Update.
15644 * jit.c (jit_find_objf_with_entry_addr): Update.
15645 * hppa-tdep.c (find_unwind_entry)
15646 (hppa_lookup_stub_minimal_symbol): Update.
15647 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15649 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15650 (elf_gnu_ifunc_resolve_by_got): Update.
15651 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15652 * dwarf-index-write.c (save_gdb_index_command): Update.
15653 * cp-support.c (add_symbol_overload_list_qualified): Update.
15654 * breakpoint.c (create_overlay_event_breakpoint)
15655 (create_longjmp_master_breakpoint)
15656 (create_std_terminate_master_breakpoint)
15657 (create_exception_master_breakpoint): Update.
15658 * blockframe.c (find_pc_partial_function): Update.
15659 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15660 (ada_collect_symbol_completion_matches)
15661 (ada_add_global_exceptions): Update.
15663 2019-01-17 Tom Tromey <tom@tromey.com>
15665 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15667 (solib_target_parse_libraries): Change return type.
15668 (library_list_start_segment, library_list_start_section)
15669 (library_list_end_library, library_list_start_library); Update.
15670 (solib_target_free_library_list): Remove.
15671 (solib_target_parse_libraries): Remove cleanup. Change return
15673 (solib_target_current_sos): Update.
15675 2019-01-17 Tom Tromey <tromey@bapiya>
15677 * valprint.c: Replace "the the" with "the".
15678 * symtab.c: Replace "the the" with "the".
15679 * solib.c: Replace "the the" with "the".
15680 * solib-dsbt.c: Replace "the the" with "the".
15681 * linespec.c: Replace "the the" with "the".
15682 * dwarf2loc.h: Replace "the the" with "the".
15683 * amd64-windows-tdep.c: Replace "the the" with "the".
15684 * aarch64-tdep.c: Replace "the the" with "the".
15686 2019-01-16 Keith Seitz <keiths@redhat.com>
15689 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15690 <builder>: Rename to ..
15691 <m_builder>: ... this and make private.
15692 (dwarf2_cu::get_builder): New method. Change all users of
15693 `builder' to use this method.
15694 (dwarf2_start_symtab): Move to ...
15695 (dwarf2_cu::start_symtab): ... here. Update all callers
15696 (setup_type_unit_groups): Move to ...
15697 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15699 (dwarf2_cu::reset_builder): New method.
15700 (process_full_compunit, process_full_type_unit): Use
15701 dwarf2_cu::reset_builder.
15702 (follow_die_offset): Record the ancestor CU if it is different
15703 from the followed DIE's CU.
15704 (follow_die_sig_1): Likewise.
15706 2019-01-15 Tom Tromey <tom@tromey.com>
15708 * remote.c (class remote_state) <buf>: Now a char_vector.
15709 <buf_size>: Remove.
15710 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15712 (remote_target::getpkt_or_notif_sane_1)
15713 (remote_target::getpkt_sane)
15714 (remote_target::getpkt_or_notif_sane): Likewise.
15715 (class remote_target) <putpkt>: New overload.
15716 (remote_target::read_frame): Change type of "buf_p". Remove
15717 sizeof_p parameter.
15718 (packet_ok): New overload.
15719 (packet_check_result): New overload.
15722 2019-01-14 Tom Tromey <tom@tromey.com>
15724 * remote-notif.c (handle_notification, remote_notif_ack)
15725 (remote_notif_parse): Make "buf" const.
15726 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15728 (remote_notif_parse, remote_notif_ack, handle_notification):
15730 * remote.c (remote_notif_stop_parse): Make "buf" const.
15731 (remote_target::remote_parse_stop_reply): Make "buf" const.
15732 (remote_notif_stop_ack): Make "buf" const.
15734 2019-01-14 Tom Tromey <tom@tromey.com>
15736 * remote.c (remote_console_output): Make parameter const.
15738 2019-01-14 Tom Tromey <tom@tromey.com>
15740 * target-debug.h (target_debug_print_signals): Constify.
15741 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15742 * procfs.c (procfs_target::pass_signals): Update.
15743 * linux-nat.c (linux_nat_target::pass_signals): Update.
15744 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15745 * target-delegates.c: Rebuild.
15746 * remote.c (remote_target::program_signals): Update.
15747 (remote_target::pass_signals): Update.
15748 * target.c (target_pass_signals): Constify argument.
15749 (target_program_signals): Likewise.
15750 * target.h (struct target_ops) <pass_signals, program_signals>:
15752 (target_pass_signals, target_program_signals): Constify argument.
15754 2019-01-14 Tom Tromey <tom@tromey.com>
15757 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15759 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15761 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15763 * rs6000-tdep.c: Include reggroups.h.
15764 (IS_V_ALIAS_PSEUDOREG): Define.
15765 (rs6000_register_name): Return names for the "vX" aliases.
15766 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15767 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15768 aliases. Call default_register_reggroup_p for all other
15770 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15772 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15773 Handle "vX" aliases.
15774 (v_alias_pseudo_register_collect): New function.
15775 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15776 (rs6000_gdbarch_init): Initialize "vX" aliases as
15777 pseudo-registers. Restore registration of
15778 rs6000_pseudo_register_reggroup_p with
15779 set_tdesc_pseudo_register_reggroup_p.
15781 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15783 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15784 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15785 set_gdbarch_num_pseudo_regs.
15787 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15789 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15790 Remove arg prefixname, add do_set and do_show.
15791 Add member functions set_list and show_list.
15792 * cli/cli-style.c (class cli_style_option): Update accordingly.
15793 (style_set_list): Move to file scope.
15794 (style_show_list): Likewise.
15795 (set_style): Call help_list.
15796 (show_style): Call cmd_show_list.
15797 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15798 Update to use the new macro.
15800 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15802 * ada-lang.c (_initialize_ada_language): Expand the help text
15803 for the "catch exception" command.
15805 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15807 * symtab.c (matching_obj_sections): Initialize obj,
15808 declare it closer to its usage.
15810 2019-01-10 Tom Tromey <tom@tromey.com>
15812 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15813 (basic_inf_threads_range): Remove.
15814 (inf_threads_range, inf_non_exited_threads_range)
15815 (safe_inf_threads_range): Use next_adapter.
15817 2019-01-10 Keith Seitz <keiths@redhat.com>
15821 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15822 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15824 2019-01-10 Keith Seitz <keiths@redhat.com>
15828 * dictionary.c (pending_to_vector): Remove.
15829 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15830 Remove _1 suffix, replacing functions of the same name. Update
15832 (dict_create_hashed, dict_create_hashed_expandable)
15833 (dict_create_linear, dict_create_linear_expandable, dict_free)
15834 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15835 Make functions static.
15837 2019-01-10 Keith Seitz <keiths@redhat.com>
15841 * dictionary.h (struct dictionary): Replace declaration with
15843 (dict_create_hashed, dict_create_hashed_expandable)
15844 (dict_create_linear, dict_create_linear_expandable)
15845 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15846 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15847 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15848 taking multidictionary argument.
15849 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15850 * block.h (struct block) <dict>: Change to multidictionary
15851 and rename `multidict'.
15852 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15853 symmisc.c: Update all dictionary references to multidictionary.
15855 2019-01-10 Keith Seitz <keiths@redhat.com>
15859 * dictionary.c: Include unordered_map.
15860 (pending_to_vector): New function.
15861 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15862 Rewrite the non-"_1" functions to take vector instead
15864 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15865 "new" _1 versions of the same name.
15866 (multidictionary): Define.
15867 (std::hash<enum language): New definition.
15868 (collate_pending_symbols_by_language, mdict_create_hashed)
15869 (mdict_create_hashed_expandable, mdict_create_linear)
15870 (mdict_create_linear_expandable, mdict_free)
15871 (find_language_dictionary, create_new_language_dictionary)
15872 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15873 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15874 (mdict_size, mdict_empty): New functions.
15875 * dictionary.h (mdict_iterator): Define.
15877 2019-01-10 Pedro Alves <palves@redhat.com>
15879 * breakpoint.c (read_uploaded_action)
15880 (create_tracepoint_from_upload): Adjust to use
15881 gdb::unique_xmalloc_ptr.
15882 * ctf.c (ctf_write_uploaded_tp):
15883 (SET_ARRAY_FIELD): Use emplace_back.
15884 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15885 * tracefile-tfile.c (tfile_write_uploaded_tp):
15886 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15887 gdb::unique_xmalloc_ptr.
15888 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15889 at_string, cond_string, cmd_strings>: Replace char pointers
15890 with gdb::unique_xmalloc_ptr.
15892 2019-01-10 Pedro Alves <palves@redhat.com>
15894 * solib-target.c (library_list_start_library): Don't xstrdup name.
15896 2019-01-10 Pedro Alves <palves@redhat.com>
15898 * mdebugread.c (parse_partial_symbols): Use
15899 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15901 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15903 * linux-fork.c (scoped_switch_fork_info)
15904 <~scoped_switch_fork_info>: Fix incorrect variable name.
15906 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15908 * linux-fork.c (scoped_switch_fork_info)
15909 <scoped_switch_fork_info>: Make explicit.
15910 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15912 2019-01-10 Tom Tromey <tom@tromey.com>
15914 * objfiles.h (objfile::reset_psymtabs): Update.
15915 * objfiles.c (objfile::objfile): Update.
15916 * psymtab.h (psymtab_storage::obstack): Update.
15917 (psymtab_storage::m_obstack): Use gdb::optional.
15918 (class psymtab_storage): Update comment. Remove objfile
15920 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15922 2019-01-10 Tom Tromey <tom@tromey.com>
15924 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15925 <free_psymtabs>: Now private.
15926 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15927 (allocate_psymtab): Use new method.
15929 2019-01-10 Tom Tromey <tom@tromey.com>
15931 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15932 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15933 * mdebugread.c (parse_partial_symbols): Use
15934 allocate_dependencies.
15935 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15936 allocate_dependencies.
15937 (process_psymtab_comp_unit_reader)
15938 (build_type_psymtab_dependencies): Likewise.
15939 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15941 2019-01-10 Tom Tromey <tom@tromey.com>
15943 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15944 PSYMBOL_SET_LANGUAGE.
15945 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15947 2019-01-10 Tom Tromey <tom@tromey.com>
15949 * psymtab.h (psymtab_storage::obstack): New method.
15950 <m_obstack>: Rename from obstack; now private.
15951 * psymtab.c (psymtab_storage): Update.
15952 * dwarf2read.c (create_addrmap_from_index)
15953 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15956 2019-01-10 Tom Tromey <tom@tromey.com>
15958 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15959 * objfiles.h (objfile::reset_psymtabs): New method.
15961 2019-01-10 Tom Tromey <tom@tromey.com>
15963 * symmisc.c (print_symbol_bcache_statistics): Update.
15964 (print_objfile_statistics): Update.
15965 * symfile.c (reread_symbols): Update.
15966 * psymtab.h (class psymtab_storage): New.
15967 * psymtab.c (psymtab_storage): New constructor.
15968 (~psymtab_storage): New destructor.
15969 (require_partial_symbols): Update.
15970 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15971 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15972 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15973 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15974 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15975 (start_psymtab_common, end_psymtab_common)
15976 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15977 (allocate_psymtab): Update.
15978 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15980 (dump_psymtab_addrmap, maintenance_print_psymbols)
15981 (maintenance_check_psymtabs): Update.
15982 (class objfile_psymtabs): Move to objfiles.h.
15983 * psympriv.h (discard_psymtab): Now inline.
15984 (psymtab_discarder::psymtab_discarder): Update.
15985 (psymtab_discarder::~psymtab_discarder): Update.
15986 (ALL_OBJFILE_PSYMTABS): Rewrite.
15987 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15988 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15990 <partial_symtabs>: New field.
15991 (class objfile_psymtabs): Move from psymtab.h. Update.
15992 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15994 (objfile::~objfile): Don't destroy psymbol_cache.
15995 * mdebugread.c (parse_partial_symbols): Update.
15996 * dwarf2read.c (create_addrmap_from_index)
15997 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15998 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15999 (add_partial_subprogram, dwarf2_ranges_read): Update.
16000 * dwarf-index-write.c (write_address_map)
16001 (write_one_signatured_type, recursively_write_psymbols)
16002 (class debug_names, class debug_names, write_psymtabs_to_index):
16005 2019-01-10 Tom Tromey <tom@tromey.com>
16007 * symtab.h (SYMBOL_SET_NAMES): Update.
16008 (symbol_set_names): Update.
16009 (MSYMBOL_SET_NAMES): Update.
16010 * symtab.c (symbol_set_names): Change argument to be an
16011 objfile_per_bfd_storage.
16012 * psymtab.c (add_psymbol_to_bcache): Update.
16013 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16015 2019-01-10 Tom Tromey <tom@tromey.com>
16017 * symtab.c (create_demangled_names_hash): Change argument to be an
16018 objfile_per_bfd_storage.
16019 (symbol_set_names): Update.
16021 2019-01-10 Tom Tromey <tom@tromey.com>
16023 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16025 * psymtab.c (init_psymbol_list): Do nothing if already called.
16026 * psympriv.h (init_psymbol_list): Add comment.
16027 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16029 * dbxread.c (dbx_symfile_read): Unconditionally call
16032 2019-01-10 Tom Tromey <tom@tromey.com>
16034 * xcoffread.c (scan_xcoff_symtab): Update.
16035 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16037 * mdebugread.c (parse_partial_symbols)
16038 (handle_psymbol_enumerators): Update.
16039 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16040 * dbxread.c (read_dbx_symtab): Update.
16041 * psympriv.h (psymbol_placement): New enum.
16042 (add_psymbol_to_list): Update.
16044 2019-01-10 Tom Tromey <tom@tromey.com>
16046 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16047 static_psymbols parameters.
16048 (scan_xcoff_symtab): Update.
16049 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16050 static_psymbols parameters.
16051 * psympriv.h (start_psymtab_common): Update.
16052 * mdebugread.c (parse_partial_symbols): Update.
16053 * dwarf2read.c (create_partial_symtab): Update.
16054 * dbxread.c (read_dbx_symtab): Update.
16055 (start_psymtab): Remove global_psymbols and static_psymbols
16058 2019-01-10 Tom Tromey <tom@tromey.com>
16060 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16061 * psymtab.c (allocate_psymtab): Add comment.
16062 * psympriv.h (allocate_psymtab): Add comment.
16063 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16065 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16067 2019-01-10 Tom Tromey <tom@tromey.com>
16069 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16071 * mipsread.c: Include mdebugread.h.
16072 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16074 * elfread.c: Include mdebugread.h.
16076 2019-01-09 Tom Tromey <tom@tromey.com>
16078 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16079 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16080 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16081 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16082 (psym_lookup_symbol, psym_find_last_source_symtab)
16083 (psym_forget_cached_source_info, psym_print_stats)
16084 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16085 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16086 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16087 (psym_find_compunit_symtab_by_address)
16088 (maintenance_print_psymbols, maintenance_info_psymtabs)
16089 (maintenance_check_psymtabs): Use ranged for.
16090 * psymtab.h (class objfile_psymtabs): New.
16091 (require_partial_symbols): Return objfile_psymtabs.
16092 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16094 2019-01-09 Tom Tromey <tom@tromey.com>
16096 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16097 (find_pc_mapped_section, list_overlays_command)
16098 (map_overlay_command, unmap_overlay_command)
16099 (simple_overlay_update): Use all_objfiles.
16100 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16101 * printcmd.c (info_symbol_command): Use all_objfiles.
16102 * objfiles.h (ALL_OBJSECTIONS): Remove.
16103 * maint.c (maintenance_translate_address): Use all_objfiles.
16104 * gcore.c (gcore_create_callback): Use all_objfiles.
16105 (objfile_find_memory_regions): Likewise.
16107 2019-01-09 Tom Tromey <tom@tromey.com>
16109 * symtab.c (find_line_symtab, info_sources_command)
16110 (make_source_files_completion_list): Use objfile_compunits.
16111 * source.c (select_source_symtab): Use objfile_compunits.
16112 * objfiles.h (struct objfile): Update comment.
16113 (ALL_OBJFILES): Remove.
16114 (ALL_FILETABS): Remove.
16115 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16118 2019-01-09 Tom Tromey <tom@tromey.com>
16120 * symmisc.c (print_objfile_statistics, dump_objfile)
16121 (maintenance_print_symbols): Use compunit_filetabs.
16122 * source.c (forget_cached_source_info_for_objfile): Use
16124 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16125 (ALL_FILETABS): Use compunit_filetabs.
16126 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16127 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16129 2019-01-09 Tom Tromey <tom@tromey.com>
16131 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16132 (compunit_filetabs): New.
16133 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16135 (info_sources_command, make_source_files_completion_list): Remove
16137 * symmisc.c (print_objfile_statistics, dump_objfile)
16138 (maintenance_print_symbols): Remove declaration.
16139 (maintenance_info_symtabs): Use compunit_filetabs.
16140 (maintenance_info_line_tables): Likewise.
16141 * source.c (select_source_symtab): Change local variable name.
16142 (forget_cached_source_info_for_objfile): Remove declaration.
16143 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16144 * objfiles.c (objfile_relocate1): Remove declaration.
16145 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16147 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16148 * coffread.c (coff_symtab_read): Remove declaration.
16149 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16152 2019-01-09 Tom Tromey <tom@tromey.com>
16154 * symtab.c (lookup_objfile_from_block)
16155 (find_pc_sect_compunit_symtab, search_symbols)
16156 (default_collect_symbol_completion_matches_break_on): Use
16158 * objfiles.h (ALL_COMPUNITS): Remove.
16159 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16160 * cp-support.c (add_symbol_overload_list_qualified): Use
16162 * ada-lang.c (ada_collect_symbol_completion_matches)
16163 (ada_add_global_exceptions): Use objfile_compunits.
16165 2019-01-09 Tom Tromey <tom@tromey.com>
16167 * source.c (select_source_symtab)
16168 (forget_cached_source_info_for_objfile): Remove declaration.
16169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16171 * maint.c (count_symtabs_and_blocks): Remove declaration.
16172 * cp-support.c (add_symbol_overload_list_qualified): Remove
16174 * coffread.c (coff_symtab_read): Remove declaration.
16175 * symtab.c (lookup_symbol_in_objfile_symtabs)
16176 (basic_lookup_transparent_type_1): Use objfile_compunits.
16177 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16178 (info_sources_command, search_symbols)
16179 (default_collect_symbol_completion_matches_break_on)
16180 (make_source_files_completion_list): Remove declaration.
16181 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16182 (ada_collect_symbol_completion_matches)
16183 (ada_add_global_exceptions): Remove declaration.
16184 * linespec.c (iterate_over_all_matching_symtabs): Use
16186 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16187 (class objfile_compunits): New.
16188 (ALL_COMPUNITS): Use objfile_compunits.
16189 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16190 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16192 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16194 2019-01-09 Tom Tromey <tom@tromey.com>
16196 * symtab.c (search_symbols)
16197 (default_collect_symbol_completion_matches_break_on): Use
16199 * ada-lang.c (ada_lookup_simple_minsym)
16200 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16201 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16202 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16204 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16205 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16206 * objc-lang.c (find_methods): Use objfile_msymbols.
16207 (info_selectors_command, info_classes_command): Likewise.
16208 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16209 * objfiles.h (class objfile_msymbols): New.
16210 (ALL_OBJFILE_MSYMBOLS): Remove.
16211 (ALL_MSYMBOLS): Remove.
16213 2019-01-09 Tom Tromey <tom@tromey.com>
16215 * common/next-iterator.h (next_adapter): Add Iterator template
16217 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16218 (class all_objfiles_safe): New.
16219 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16220 * objfiles.c (put_objfile_before): Update comment.
16221 (add_separate_debug_objfile): Likewise.
16222 (free_all_objfiles): Use all_objfiles_safe.
16223 (objfile_purge_solibs): Likewise.
16225 2019-01-09 Tom Tromey <tom@tromey.com>
16227 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16228 (expand_symtab_containing_pc, lookup_static_symbol)
16229 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16230 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16232 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16233 * breakpoint.c (create_overlay_event_breakpoint)
16234 (create_longjmp_master_breakpoint)
16235 (create_std_terminate_master_breakpoint)
16236 (create_exception_master_breakpoint): Use all_objfiles.
16237 * linux-thread-db.c (try_thread_db_load_from_pdir)
16238 (has_libpthread): Use all_objfiles.
16239 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16240 * linespec.c (iterate_over_all_matching_symtabs)
16241 (search_minsyms_for_name): Use all_objfiles.
16242 * maint.c (maintenance_info_sections): Use all_objfiles.
16243 * main.c (captured_main_1): Use all_objfiles.
16244 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16245 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16246 * guile/scm-pretty-print.c
16247 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16248 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16249 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16250 (maintenance_print_msymbols): Use all_objfiles.
16251 * source.c (select_source_symtab): Use all_objfiles.
16252 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16253 * symfile.c (remove_symbol_file_command)
16254 (expand_symtabs_matching, map_symbol_filenames): Use
16256 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16258 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16259 * objc-lang.c (find_methods): Use all_objfiles.
16260 * objfiles.c (have_partial_symbols, have_full_symbols)
16261 (have_minimal_symbols, qsort_cmp)
16262 (default_iterate_over_objfiles_in_search_order): Use
16264 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16265 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16266 (maintenance_check_psymtabs): Use all_objfiles.
16267 (ALL_PSYMTABS): Remove.
16268 * compile/compile-object-run.c (do_module_cleanup): Use
16270 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16271 * cp-support.c (add_symbol_overload_list_qualified): Use
16273 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16275 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16276 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16278 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16279 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16280 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16282 * solib.c (solib_read_symbols): Use all_objfiles
16284 2019-01-09 Tom Tromey <tom@tromey.com>
16286 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16287 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16289 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16290 * symmisc.c (print_symbol_bcache_statistics)
16291 (print_objfile_statistics, maintenance_print_objfiles)
16292 (maintenance_info_symtabs, maintenance_check_symtabs)
16293 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16295 * source.c (forget_cached_source_info): Use all_objfiles.
16296 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16297 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16298 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16299 * objfiles.c (update_section_map): Use all_objfiles.
16300 (shared_objfile_contains_address_p): Likewise.
16301 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16302 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16304 2019-01-09 Tom Tromey <tom@tromey.com>
16306 * common/next-iterator.h: New file.
16307 * objfiles.h (class all_objfiles): New.
16308 (struct objfile_iterator): New.
16310 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16312 * NEWS: Move the description of the changed "frame", "select-frame",
16313 and "info frame" commands to the Changed commands section.
16315 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16317 * gdbtypes.c (check_stub_method_group): Remove handling of old
16319 * linespec.c (find_methods): Likewise.
16320 * stabsread.c (read_member_functions): Likewise.
16321 * valops.c (search_struct_method): Likewise.
16322 (value_struct_elt_for_reference): Likewise.
16323 * NEWS: Mention this change.
16325 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16327 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16328 print_source_lines.
16329 * source.c (print_source_lines_base): Update line number check.
16330 (print_source_lines): New function.
16331 (source_lines_range::source_lines_range): New function.
16332 * source.h (class source_lines_range): New class.
16333 (print_source_lines): New declaration.
16335 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16337 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16339 2019-01-08 Tom Tromey <tom@tromey.com>
16340 Simon Marchi <simon.marchi@ericsson.com>
16343 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16344 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16345 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16346 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16347 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16348 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16350 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16352 * source.c (select_source_symtab): Move header comment to
16353 declaration in source.h.
16354 (forget_cached_source_info_for_objfile): Likewise.
16355 (forget_cached_source_info): Likewise.
16356 (identify_source_line): Likewise.
16357 * source.h (identify_source_line): Move declaration from symtab.h
16358 and add comment from source.c
16359 (print_source_lines): Likewise.
16360 (forget_cached_source_info_for_objfile): Likewise.
16361 (forget_cached_source_info): Likewise.
16362 (select_source_symtab): Likewise.
16363 (enum print_source_lines_flag): Move definition from symtab.h.
16364 * symtab.h (identify_source_line): Move declaration to source.h.
16365 (print_source_lines): Likewise.
16366 (forget_cached_source_info_for_objfile): Likewise.
16367 (forget_cached_source_info): Likewise.
16368 (select_source_symtab): Likewise.
16369 (enum print_source_lines_flag): Move definition to source.h.
16370 * tui/tui-hooks.c: Add 'source.h' include.
16372 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16374 * source.c (print_source_lines_base): Handle requests to print
16375 reverse line number sequences, and guard against empty lines
16378 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16380 * source.c (print_source_lines_base): Fix skip of '\r' if next
16383 2019-01-06 Tom Tromey <tom@tromey.com>
16385 * c-exp.y (struct c_parse_state) <macro_original_text,
16386 expansion_obstack>: New member.
16387 (macro_original_text, expansion_obstack): Remove globals.
16388 (scan_macro_expansion, scanning_macro_expansion)
16389 (finished_macro_expansion): Update.
16390 (scan_macro_cleanup): Remove.
16391 (yylex, c_parse): Update.
16393 2019-01-06 Tom Tromey <tom@tromey.com>
16395 * c-exp.y (struct c_parse_state) <strings>: New member.
16396 (operator_stoken): Update.
16398 2019-01-06 Tom Tromey <tom@tromey.com>
16400 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16401 (union type_stack_elt) <typelist_val>: Now a pointer to
16403 (type_stack_cleanup): Don't declare.
16404 (push_typelist): Update.
16405 * parse.c (pop_typelist): Return a std::vector.
16406 (push_typelist): Take a std::vector.
16407 (follow_types): Update. Do not free args.
16408 (type_stack_cleanup): Remove.
16409 * c-exp.y (struct c_parse_state): New.
16410 (cpstate): New global.
16411 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16412 (nonempty_typelist): Update.
16413 (func_mod): Create a new vector.
16414 (c_parse): Create a c_parse_state.
16415 (check_parameter_typelist): Do not delete params.
16416 (function_method): Update. Do not delete type_list.
16418 2019-01-06 Tom Tromey <tom@tromey.com>
16421 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16423 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16424 (print_return_value): Likewise.
16426 2019-01-05 Tom Tromey <tom@tromey.com>
16428 * contrib/cleanup_check.py: Remove.
16429 * contrib/gcc-with-excheck: Remove.
16430 * contrib/exsummary.py: Remove.
16431 * contrib/excheck.py: Remove.
16433 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16435 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16436 NULL. Initialize tpprev to NULL instead of assigning it
16437 to NULL on the next statement.
16438 * windows-nat.c (windows_delete_thread): Remove check for
16439 main_thread_id before printing thread exit notifications.
16440 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16441 Remove thread ID check against main_thread_id.
16442 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16443 windows_delete_thread.
16444 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16446 2019-01-04 Tom Tromey <tom@tromey.com>
16448 * compile/compile.c (_initialize_compile): Use upper case for
16449 metasyntactic variables.
16450 * symmisc.c (_initialize_symmisc): Use upper case for
16451 metasyntactic variables.
16452 * psymtab.c (_initialize_psymtab): Use upper case for
16453 metasyntactic variables.
16454 * demangle.c (demangle_command): Use upper case for metasyntactic
16456 (_initialize_demangler): Likewise.
16457 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16460 2019-01-03 Tom Tromey <tom@tromey.com>
16462 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16464 2019-01-03 Tom Tromey <tom@tromey.com>
16466 * python/py-symtab.c (salpy_str): Update.
16467 (struct salpy_sal_object) <symtab>: Now a PyObject.
16468 (salpy_dealloc): Update.
16469 (del_objfile_sal): Use gdbpy_ref.
16471 2019-01-03 Tom Tromey <tom@tromey.com>
16473 * python/py-type.c (convert_field): Use new_reference. Return
16475 (make_fielditem): Return gdbpy_ref.
16476 (typy_fields): Update.
16477 (typy_getitem): Update.
16478 (field_name): Return gdbpy_ref. Use new_reference.
16479 (typy_iterator_iternext): Update.
16481 2019-01-03 Tom Tromey <tom@tromey.com>
16483 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16485 2019-01-03 Tom Tromey <tom@tromey.com>
16487 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16488 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16489 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16490 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16491 (pspy_set_type_printers): Likewise.
16492 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16493 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16494 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16495 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16496 (objfpy_set_type_printers): Likewise.
16498 2019-01-03 Tom Tromey <tom@tromey.com>
16500 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16501 (gdbpy_print_stack): Use gdbpy_err_fetch.
16502 * python/python-internal.h (class gdbpy_err_fetch): New class.
16503 (class gdbpy_enter) <m_error_type, m_error_value,
16504 m_error_traceback>: Remove.
16505 <m_error>: New member.
16506 (gdbpy_exception_to_string): Don't declare.
16507 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16508 * python/py-value.c (convert_value_from_python): Use
16510 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16511 gdbpy_exception_to_string.
16512 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16513 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16516 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16518 * linux-nat.c (delete_lwp_cleanup): Delete.
16519 (struct lwp_deleter): New struct.
16520 (lwp_info_up): New typedef.
16521 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16524 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16526 * linux-fork.c (class scoped_switch_fork_info): New class.
16527 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16529 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16531 * valops.c (find_overload_match): Remove use of null_cleanup, and
16532 calls to do_cleanups.
16534 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16536 * compile/compile-cplus-types.c
16537 (compile_cplus_instance::decl_name): Handle changes to
16539 * cp-support.c (cp_func_name): Update header comment, update
16541 * cp-support.h (cp_func_name): Update return type in declaration.
16542 * valops.c (find_overload_match): Move temp_func local to top
16543 level of function and change its type. Use temp_func to hold and
16544 delete temporary string obtained from cp_func_name.
16546 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16548 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16549 gdb::char_vector, remove cleanup, and update uses of `msg`.
16551 2019-01-03 Jim Wilson <jimw@sifive.com>
16553 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16555 2019-01-02 Tom Tromey <tom@tromey.com>
16557 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16558 (tdesc_parse_xml): Remove cleanups.
16559 * target-descriptions.h (make_cleanup_free_target_description):
16561 (target_desc_deleter): New struct.
16562 (target_desc_up): New typedef.
16563 * target-descriptions.c (target_desc_deleter::operator()): Rename
16564 from free_target_description.
16565 (make_cleanup_free_target_description): Remove.
16567 2019-01-02 Tom Tromey <tom@tromey.com>
16569 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16570 constructor, destructor.
16571 (linespec_parser): Remove typedef.
16572 (~linespec_parser): Rename from linespec_parser_delete.
16573 (linespec_lex_to_end, linespec_complete_label)
16574 (linespec_complete): Update.
16575 (decode_line_full): Remove cleanups.
16576 (decode_line_1): Update.
16578 2019-01-02 Tom Tromey <tom@tromey.com>
16580 * python/python-internal.h (inferior_to_inferior_object): Change
16582 * python/py-exitedevent.c (create_exited_event_object): Update.
16583 * python/py-inferior.c (inferior_to_inferior_object): Return
16585 (python_new_inferior, python_inferior_deleted)
16586 (thread_to_thread_object, delete_thread_object)
16587 (build_inferior_list, gdbpy_selected_inferior): Update.
16588 * python/py-infthread.c (create_thread_object): Update. Also fail
16589 if inferior_to_inferior_object fails.
16591 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16593 * inferior.h (class inferior) <displaced_step_state>: New field.
16594 * infrun.h (struct displaced_step_state): Move here from
16595 infrun.c. Initialize fields, add constructor.
16596 <inf>: Remove field.
16597 <reset>: New method.
16598 * infrun.c (struct displaced_step_inferior_state): Move to
16600 (displaced_step_inferior_states): Remove.
16601 (get_displaced_stepping_state): Adust.
16602 (displaced_step_in_progress_any_inferior): Adjust.
16603 (displaced_step_in_progress_thread): Adjust.
16604 (displaced_step_in_progress): Adjust.
16605 (add_displaced_stepping_state): Remove.
16606 (get_displaced_step_closure_by_addr): Adjust.
16607 (remove_displaced_stepping_state): Remove.
16608 (infrun_inferior_exit): Call displaced_step_state.reset.
16609 (use_displaced_stepping): Don't check for NULL.
16610 (displaced_step_prepare_throw): Call
16611 get_displaced_stepping_state.
16612 (displaced_step_fixup): Don't check for NULL.
16613 (prepare_for_detach): Don't check for NULL.
16615 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16617 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16618 in case of call that did not complete.
16620 2019-01-02 Andrey Utkin <autkin@undo.io>
16622 * symfile.c (find_separate_debug_file): Fix search of debug files for
16625 2019-01-02 Tom Tromey <tom@tromey.com>
16627 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16629 * python/py-frame.c (frapy_older): Remove cast.
16630 (frapy_newer): Likewise.
16631 * python/py-breakpoint.c (local_setattro): Remove cast.
16632 * python/py-arch.c (archpy_name): Remove local variable.
16633 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16635 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16637 * unittests/basic_string_view/element_access/char/empty.cc:
16638 Fix year range in copyright header.
16640 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16642 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16644 <operator==>: Update with for removed field.
16646 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16647 <isa_features>: ...this.
16648 <abi_features>: New field.
16649 (riscv_isa_flen): Update comment.
16650 (riscv_abi_xlen): New declaration.
16651 (riscv_abi_flen): New declaration.
16652 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16654 (riscv_abi_xlen): New function.
16655 (riscv_isa_flen): Update to get answer from isa_features.
16656 (riscv_abi_flen): New function.
16657 (riscv_has_fp_abi): Update to get answer from abi_features.
16658 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16660 (riscv_call_info) <xlen, flen>: Update comment.
16661 (riscv_call_arg_struct): Remove invalid assertions
16662 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16664 (riscv_gdbarch_init): Gather isa features and abi features
16665 separately, ensure both match on the gdbarch when reusing an old
16666 gdbarch. Relax an error check to allow 32-bit abi float to run on
16667 a target with 64-bit float hardware.
16669 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16671 * source.c (search_command_helper): Stop reverse search
16672 when line 1 has been searched.
16674 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16676 * record-full.c (record_full_base_target::close): Rewrite
16677 record_full_core_buf_list free logic.
16679 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16681 * break-catch-syscall.c (print_one_catch_syscall): xfree
16684 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16686 * top.c (print_gdb_version): Update Copyright year in version
16689 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16691 Update copyright year range in all GDB files.
16693 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16695 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16697 For older changes see ChangeLog-2018.
16703 version-control: never