1 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
3 * jit.c: Include forward_list.
4 (struct gdb_symtab) <next>: Remove field.
5 (struct gdb_object) <symtabs>: Change type to
6 std::forward_list<gdb_symtab>.
7 (jit_object_open_impl): Allocate gdb_object with new.
8 (jit_symtab_open_impl): Adjust to std::forward_list.
9 (finalize_symtab): Don't delete symtab.
10 (jit_object_close_impl): Adjust to std::forward_list. Free
11 gdb_object with delete.
13 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
15 * jit.c (struct gdb_symtab): Add constructor, destructor,
17 <linetable>: Change type to unique_xmalloc_ptr.
18 <file_name>: Change type to std::string.
19 (jit_symtab_open_impl): Allocate gdb_symtab with new.
20 (jit_symtab_line_mapping_add_impl): Adjust.
21 (finalize_symtab): Adjust, call delete on stab.
23 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
25 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
27 2019-12-16 Tom Tromey <tromey@adacore.com>
29 * windows-nat.c (windows_nat_target::attach): Update.
30 * remote.c (extended_remote_target::attach): Update.
31 * procfs.c (procfs_target::attach): Update.
32 * nto-procfs.c (nto_procfs_target::attach): Update.
33 (nto_procfs_target::create_inferior): Update.
34 * inf-ptrace.c (inf_ptrace_target::attach): Update.
35 * gnu-nat.c (gnu_nat_target::attach): Update.
36 (gnu_nat_target::detach): Update.
37 * darwin-nat.c (darwin_nat_target::attach): Update.
38 * corefile.c (get_exec_file): Constify result. Remove extraneous
40 * bsd-kvm.c (bsd_kvm_target_open): Update.
41 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
43 2019-12-16 Christian Biesinger <cbiesinger@google.com>
45 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
46 (we no longer need to include time.h before pathmax.h)
48 2019-12-15 Christian Biesinger <cbiesinger@google.com>
50 * ada-exp.y (write_ambiguous_var): Update.
51 * coffread.c (process_coff_symbol): Update.
52 * ctfread.c (ctf_add_enum_member_cb): Update.
54 * dwarf2read.c (fixup_go_packaging): Update.
56 * language.c (language_alloc_type_symbol): Update.
57 * mdebugread.c (new_symbol): Update.
58 * minsyms.c (minimal_symbol_reader::record_full): Update.
59 * psymtab.c (add_psymbol_to_bcache): Update.
60 * stabsread.c (define_symbol): Update.
61 (read_enum_type): Update.
62 * symtab.c (symbol_set_language): Make this a member function...
63 (general_symbol_info::set_language): ... here.
64 * symtab.h (struct general_symbol_info) <set_language>: New function.
65 (SYMBOL_SET_LANGUAGE): Remove.
66 (symbol_set_language): Remove.
68 2019-12-15 Christian Biesinger <cbiesinger@google.com>
70 * ada-lang.c (ada_add_block_symbols): Update.
71 (ada_collect_symbol_completion_matches): Update.
72 * ax-gdb.c (gen_expr): Update.
73 * block.c (block_lookup_symbol): Update.
74 (block_lookup_symbol_primary): Update.
75 (block_find_symbol): Update.
76 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
77 * dbxread.c (process_one_symbol): Update.
78 * dictionary.c (insert_symbol_hashed): Update.
79 (collate_pending_symbols_by_language): Update.
80 (mdict_add_symbol): Update.
81 * dwarf-index-write.c (write_psymbols): Update.
82 * dwarf2read.c (fixup_go_packaging): Update.
83 * findvar.c (read_var_value): Update.
84 * ft32-tdep.c (ft32_skip_prologue): Update.
85 * go-lang.c (go_symbol_package_name): Update.
86 * language.h (scoped_switch_to_sym_language_if_auto::
87 scoped_switch_to_sym_language_if_auto): Update.
88 * linespec.c (find_method): Update.
89 (find_label_symbols_in_block): Update.
90 * mdebugread.c (parse_symbol): Update.
91 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
92 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
93 (minimal_symbol_reader::install): Update.
94 * moxie-tdep.c (moxie_skip_prologue): Update.
95 * parse.c (parse_exp_in_context): Update.
96 * psymtab.c (psymbol_name_matches): Update.
97 (match_partial_symbol): Update.
98 (lookup_partial_symbol): Update.
99 (psymbol_hash): Update.
100 (psymbol_compare): Update.
101 * python/py-framefilter.c (extract_sym): Update.
102 (py_print_single_arg): Update.
103 * stabsread.c (define_symbol): Update.
104 * stack.c (print_frame_arg): Update.
105 (find_frame_funname): Update.
106 (info_frame_command_core): Update.
107 * symfile.c (set_initial_language): Update.
108 * symtab.c (symbol_set_demangled_name): Update.
109 (symbol_get_demangled_name): Update.
110 (symbol_set_language): Update.
111 (symbol_find_demangled_name): Update.
112 (symbol_set_names): Update.
113 (general_symbol_info::natural_name): Update.
114 (general_symbol_info::demangled_name): Update.
115 (general_symbol_info::search_name): Update.
116 (symbol_matches_search_name): Update.
117 (eq_symbol_entry): Update.
118 (iterate_over_symbols): Update.
119 (completion_list_add_symbol): Update.
120 (completion_list_add_msymbol): Update.
121 (completion_list_add_fields): Update.
122 * symtab.h (struct general_symbol_info) <language>: New function.
123 <language>: Rename to...
124 <m_language>: ...this.
125 (SYMBOL_LANGUAGE): Remove.
126 (MSYMBOL_LANGUAGE): Remove.
127 (struct symbol) <ctor>: Update.
128 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
130 2019-12-15 Christian Biesinger <cbiesinger@google.com>
132 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
133 set the language of sym.
134 * language.c (language_alloc_type_symbol): Likewise.
136 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
138 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
140 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
141 * corelow.c: Include 'gdbsupport/pathstuff.h'.
142 (core_target_open): Use 'gdb_abspath'.
143 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
144 'current_directory == NULL' case.
145 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
146 explain what happens when 'current_directory' is NULL.
147 * go32-nat.c (go32_nat_target::wait): Check if
148 'current_directory' is NULL before call to 'chdir'.
149 * source.c (add_path): Use 'gdb_abspath'.
150 * top.c: Include 'gdbsupport/pathstuff.h'.
151 (init_history): Use 'gdb_abspath'.
152 (set_history_filename): Likewise.
153 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
154 (tfile_target_open): Use 'gdb_abspath'.
156 2019-12-13 Tom Tromey <tromey@adacore.com>
158 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
161 2019-12-13 Tom Tromey <tromey@adacore.com>
163 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
165 2019-12-13 Tom Tromey <tromey@adacore.com>
167 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
169 2019-12-13 Tom Tromey <tromey@adacore.com>
171 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
173 2019-12-13 Tom Tromey <tromey@adacore.com>
175 * gdbsupport/common-utils.c (string_printf, string_vprintf)
176 (string_vappendf): Add ARI comment.
178 2019-12-13 Tom Tromey <tromey@adacore.com>
180 * contrib/ari/gdb_ari.sh: Remove "fix" call for
181 floatformat_to_double.
182 * target-float.c (host_float_ops<T>::from_target): Add ARI
185 2019-12-13 Tom Tromey <tromey@adacore.com>
187 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
188 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
190 * event-top.c (handle_sigsegv): Add ARI marker to abort.
192 2019-12-13 Tom Tromey <tromey@adacore.com>
194 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
196 2019-12-13 Tom Tromey <tromey@adacore.com>
198 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
200 2019-12-13 Tom Tromey <tromey@adacore.com>
202 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
205 2019-12-13 Tom Tromey <tromey@adacore.com>
207 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
208 end>: No longer "const".
210 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
212 * jit.c: Fix indentation, replace spaces with tabs where
215 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
217 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
219 2019-12-12 Tom Tromey <tom@tromey.com>
221 * objfiles.h (struct objfile) <partial_symtabs>: Now a
224 2019-12-12 Tom Tromey <tom@tromey.com>
226 * progspace.h (objfile_list): New typedef.
227 (class unwrapping_objfile_iterator)
228 (struct unwrapping_objfile_range): Newl
229 (struct program_space) <objfiles_range>: Change type.
230 <objfiles>: Change return type.
231 <add_objfile>: Change type of "objfile" parameter.
232 <objfiles_list>: Now a list of shared_ptr.
233 * progspace.c (program_space::add_objfile): Change type of
235 (program_space::remove_objfile): Update.
236 * objfiles.h (struct objfile) <~objfile>: Make public.
237 * objfiles.c (objfile::make): Update.
238 (objfile::unlink): Don't call delete.
240 2019-12-12 Tom Tromey <tom@tromey.com>
242 * symfile.c (symbol_file_clear): Update.
243 * progspace.h (struct program_space) <free_all_objfiles>: Declare
245 * progspace.c (program_space::free_all_objfiles): New method.
246 * objfiles.h (free_all_objfiles): Don't declare.
247 * objfiles.c (free_all_objfiles): Move to program_space.
249 2019-12-12 Tom Tromey <tom@tromey.com>
251 * progspace.c (program_space::add_objfile)
252 (program_space::remove_objfile): Update.
253 (program_space::multi_objfile_p): Remove.
254 * objfiles.h (struct objfile) <next>: Remove.
255 * objfiles.c (objfile::objfile): Update.
256 (put_objfile_before): Update.
257 (unlink_objfile): Update.
258 * progspace.h (object_files): Remove.
259 (struct program_space) <objfiles_head>: Remove.
260 <objfiles_list>: New member.
261 <objfiles_range, objfiles_safe_range>: Change type.
262 (objfiles): Change return type.
263 (objfiles_safe): Update.
264 (multi_objfile_p): Rewrite and inline.
265 (object_files): Remove macro.
267 2019-12-12 Tom Tromey <tom@tromey.com>
269 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
271 (basic_safe_range): New class.
273 2019-12-12 Tom Tromey <tom@tromey.com>
275 * progspace.c (program_space::multi_objfile_p): New method.
276 * printcmd.c (info_symbol_command): Update.
277 * maint.c (maintenance_translate_address): Update.
278 * objfiles.h (MULTI_OBJFILE_P): Remove.
279 * progspace.h (struct program_space) <multi_objfile_p>: New
282 2019-12-12 Tom Tromey <tom@tromey.com>
284 * progspace.h (struct program_space) <remove_objfile>: Declare.
285 * progspace.c (program_space::remove_objfile): New method.
286 * objfiles.c (unlink_objfile): Remove.
287 (objfile::unlink): Call remove_objfile.
288 (objfile): Don't call unlink_objfile.
290 2019-12-12 Tom Tromey <tom@tromey.com>
292 * progspace.h (struct program_space) <add_objfile>: Declare
294 * progspace.c (program_space::add_objfile): New method.
295 * objfiles.c (~objfile): Don't unlink objfile.
296 (put_objfile_before): Remove.
297 (add_separate_debug_objfile): Don't call put_objfile_before.
298 (objfile::make): Call add_objfile. Set new_objfiles_available on
299 the per-program-space data.
301 2019-12-12 Tom Tromey <tom@tromey.com>
303 * symfile.c (syms_from_objfile_1): Use objfile_up.
304 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
306 (reread_symbols): Use objfile_up.
307 * solib.c (update_solib_list, reload_shared_libraries_1): Call
309 * objfiles.h (struct objfile) <~objfile>: Now private.
310 <unlink>: New method.
311 (struct objfile_deleter): New.
312 (objfile_up): New typedef.
313 * objfiles.c (objfile::unlink): New method.
314 (free_objfile_separate_debug, free_all_objfiles)
315 (objfile_purge_solibs): Use it.
316 * jit.c (jit_unregister_code): Remove.
317 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
319 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
321 * compile/compile-object-load.c (compile_object_load): Use
324 2019-12-12 Tom Tromey <tom@tromey.com>
326 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
328 * objfiles.h (struct objjfile) <make>: No longer inline.
329 (add_separate_debug_objfile): Don't declare.
330 * objfiles.c (add_separate_debug_objfile): Now static.
331 (objfile::make): Move from objfiles.h. Call
332 add_separate_debug_objfile. Add "parent" parameter.
334 2019-12-12 Tom Tromey <tom@tromey.com>
336 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
337 * objfiles.h (struct objfile): Make constructor private.
338 <make>: New static method.
339 * jit.c (jit_object_close_impl): Update.
341 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
343 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
346 2019-12-12 Tom Tromey <tromey@adacore.com>
348 * xml-support.c (xml_fetch_content_from_file): Don't call
350 * utils.h (class gdb_argv): Remove malloc_failure comment.
351 * utils.c (gdb_argv::reset): Don't call malloc_failure.
353 2019-12-12 Tom Tromey <tromey@adacore.com>
355 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
356 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
357 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
358 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
359 * riscv-ravenscar-thread.c: New file.
360 * riscv-ravenscar-thread.h: New file.
361 * riscv-tdep.c (riscv_gdbarch_init): Call
362 register_riscv_ravenscar_ops.
364 2019-12-12 Tom Tromey <tromey@adacore.com>
366 * gdbsupport/thread-pool.c (set_thread_name): Use
369 2019-12-12 Luis Machado <luis.machado@linaro.org>
371 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
372 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
375 2019-12-11 Tom Tromey <tom@tromey.com>
377 * tui/tui-win.c (tui_set_win_height_command): Call
378 tui_adjust_window_height.
379 (tui_adjust_win_heights, new_height_ok): Remove.
380 * tui/tui-layout.h (tui_adjust_window_height): Declare.
381 * tui/tui-layout.c (tui_adjust_window_height): New function.
383 2019-12-11 Tom Tromey <tom@tromey.com>
385 * tui/tui-win.c (tui_resize_all): Remove code, call
386 tui_apply_current_layout.
388 2019-12-11 Tom Tromey <tom@tromey.com>
390 * tui/tui-layout.h (tui_apply_current_layout): Declare.
391 * tui/tui-layout.c (standard_layouts, applied_layout): New
393 (tui_apply_current_layout): New function.
394 (show_layout): Set applied_layout. Call
395 tui_apply_current_layout.
396 (show_source_command, show_disasm_command)
397 (show_source_disasm_command, show_data)
398 (show_source_or_disasm_and_command): Remove.
399 (initialize_layouts): New function.
400 (_initialize_tui_layout): Call initialize_layouts.
402 2019-12-11 Tom Tromey <tom@tromey.com>
404 * tui/tui-layout.h (class tui_layout_base)
405 (class tui_layout_window, class tui_layout_split): New.
406 * tui/tui-layout.c (tui_get_window_by_name)
407 (tui_layout_window::clone, tui_layout_window::apply)
408 (tui_layout_window::get_sizes, tui_layout_window::add_split)
409 (tui_layout_split::add_window, tui_layout_split::clone)
410 (tui_layout_split::get_sizes)
411 (tui_layout_split::set_weights_from_heights)
412 (tui_layout_split::adjust_size, tui_layout_split::apply): New
414 (tui_layout_split::add_split, tui_layout_split::add_split)
415 (tui_layout_split::set_weights_from_heights)
416 (tui_layout_split::set_weights_from_heights): New functions.
418 2019-12-11 Tom Tromey <tom@tromey.com>
420 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
421 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
422 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
423 * tui/tui-data.h (struct tui_point): Remove.
424 (struct tui_gen_win_info) <origin>: Remove.
426 * tui/tui-command.c (tui_cmd_window::resize): Update.
428 2019-12-11 Tom Tromey <tom@tromey.com>
430 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
432 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
434 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
436 (struct tui_win_info) <min_height>: Implement.
438 2019-12-11 Tom Tromey <tom@tromey.com>
440 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
441 (struct tui_win_info) <can_box>: Update.
443 2019-12-11 Tom Tromey <tom@tromey.com>
445 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
447 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
449 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
451 (struct tui_win_info) <max_height>: Now override.
453 2019-12-11 Joel Brobecker <brobecker@adacore.com>
455 * NEWS: Create a new section for the next release branch.
456 Rename the section of the current branch, now that it has
459 2019-12-11 Joel Brobecker <brobecker@adacore.com>
461 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
462 * version.in: Bump version to 10.0.50.DATE-git.
464 2019-12-11 Tom Tromey <tromey@adacore.com>
467 * gdbsupport/thread-pool.c (set_thread_name): New function.
468 (thread_pool::set_thread_count): Don't call pthread_setname_np.
469 (thread_pool::thread_function): Call set_thread_name.
471 2019-12-11 Tom Tromey <tromey@adacore.com>
473 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
476 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
478 * NEWS: Document -raw-values option and the related setting commands.
479 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
480 only set it on when /r is given.
481 * valprint.c (value_print_option_defs): New element raw-values.
482 * Makefile.in: Add the new file.
484 2019-12-10 Christian Biesinger <cbiesinger@google.com>
486 * gdbsupport/safe-strerror.c: Supress the unused function warning
487 for select_strerror_r.
489 2019-12-10 Christian Biesinger <cbiesinger@google.com>
491 * config.in: Regenerate.
492 * configure: Regenerate.
493 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
494 safe_strerror instead of strerror.
495 * gdbsupport/common.m4: Don't check for strerror.
496 * gdbsupport/safe-strerror.c: Support both the glibc version
497 of strerror_r and the XSI version.
499 2019-12-10 Tom Tromey <tromey@adacore.com>
501 * ada-typeprint.c (print_choices): Use a single "?".
502 (print_variant_part): Print "?" if the discriminant name
505 2019-12-10 George Barrett <bob@bob131.so>
507 Fix scripted probe breakpoints.
508 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
510 (breakpoint_ops_for_event_location_type)
511 (breakpoint_ops_for_event_location): Add function definitions.
512 (break_command_1, trace_command): Use
513 breakpoint_ops_for_event_location.
514 * breakpoint.h (breakpoint_ops_for_event_location): Add function
516 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
517 breakpoint_ops_for_event_location.
518 * python/py-breakpoint.c (bppy_init): Use
519 breakpoint_ops_for_event_location.
521 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
524 when ranking an lvalue argument for an rvalue parameter.
526 2019-12-08 Wataru Ashihara <wataash@wataash.com>
528 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
529 template argument for scoped_restore_tmpl from bool to int.
531 2019-12-07 Keith Seitz <keiths@redhat.com>
533 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
534 (build_id_to_debug_bfd): Make static, rewriting to use
535 build_id_to_bfd_suffix.
536 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
537 adding `suffix' parameter. Append SUFFIX to file names
538 when searching for matching files.
539 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
540 (build_id_to_exec_bfd): Likewise.
541 * build-id.h (build_id_to_debug_bfd): Clarify that function
542 searches for BFD of debug info file.
543 (build_id_to_exec_bfd): Declare.
544 * corelow.c: Include build-id.h.
545 (locate_exec_from_corefile_build_id): New function.
546 (core_target_open): If no executable BFD is found,
547 search for a core file BFD using build-id.
549 2019-12-06 Christian Biesinger <cbiesinger@google.com>
551 * bcache.c: Put in namespace gdb.
552 * bcache.h: Likewise.
553 * gdbtypes.c (check_types_worklist): Update.
554 (types_deeply_equal): Update.
555 * macrotab.c (struct macro_table) <bcache>: Update.
556 (new_macro_table): Update.
557 * macrotab.h (struct bcache): Put this forward declaration
558 inside namespace gdb.
559 (new_macro_table): Update.
560 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
562 <macro_cache>: Update.
563 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
565 2019-12-06 Tom de Vries <tdevries@suse.de>
568 * block.c (best_symbol, better_symbol): New function.
569 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
572 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
575 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
576 for ranking see-through reference cases.
578 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
579 * stack.c (faas_command): Check a command is provided.
580 * thread.c (taas_command, tfaas_command): Likewise.
582 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
583 * inferior.c (prune_inferiors): Only call delete_inferior,
584 Do not modify the inferior list.
586 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
588 * c-exp.y: Update calls to lookup_typename,
589 lookup_signed_typename and lookup_unsigned_typename.
590 * c-lang.c (evaluate_subexp_c): Likewise.
591 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
593 * eval.c (binop_promote): Likewise.
594 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
595 (lookup_unsigned_typename): Likewise.
596 (lookup_signed_typename): Likewise.
597 * gdbtypes.h (lookup_unsigned_typename): Likewise.
598 (lookup_signed_typename): Likewise.
599 (lookup_typename): Likewise.
600 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
601 lookup_typename, lookup_signed_typename,
602 lookup_unsigned_typename.
603 * m2-exp.y: Likewise.
604 * printcmd.c (printf_wide_c_string): Likewise.
605 (ui_printf): Likewise.
606 * python/py-type.c (typy_lookup_typename): Likewise.
607 * python/py-xmethods.c (python_xmethod_worker::invoke):
609 * rust-exp.y: Likewise.
611 2019-12-04 Christian Biesinger <cbiesinger@google.com>
613 * configure.nat (obsd64): Add missing files x86-nat.o and
616 2019-12-04 Tom Tromey <tom@tromey.com>
618 * valprint.c (val_print_string): Use metadata_style.
619 * go-valprint.c (print_go_string): Use metadata style.
620 * p-valprint.c (pascal_object_print_static_field): Use metadata
622 * cp-valprint.c (cp_print_static_field): Use metadata style.
624 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
625 Chris January <chris.january@arm.com>
627 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
629 (typebase): New patterns for complex, single/double precision, and
630 single/double complex.
631 (f77_keywords): Change token for complex keyword, and add single,
632 double, and precision keywords.
634 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
636 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
639 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
641 * regcache.c (cooked_read_test): Initialize thread list of
644 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
646 * aarch64-linux-tdep.c: Remove includes.
648 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
650 * aarch64-tdep.c: Remove includes.
652 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
654 * filtered-iterator.h (filtered_iterator) <operator==,
655 operator!=>: Compare wrapped iterators, not wrapped pointers.
656 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
657 unittests/filtered_iterator-selftests.c.
658 * unittests/filtered_iterator-selftests.c: New file.
660 2019-12-04 Tom Tromey <tromey@adacore.com>
662 * gdbtypes.c (create_range_type): Inherit endianity
665 2019-12-04 Tom Tromey <tromey@adacore.com>
667 * ada-lang.c (decode_constrained_packed_array)
668 (ada_value_assign, value_assign_to_component): Update.
669 * dwarf2loc.c (rw_pieced_value, access_memory)
670 (dwarf2_compile_expr_to_ax): Update.
671 * dwarf2read.c (dwarf2_add_field): Update.
672 * eval.c (evaluate_subexp_standard): Update.
673 * gdbarch.c, gdbarch.h: Rebuild.
674 * gdbarch.sh (bits_big_endian): Remove.
675 * gdbtypes.h (union field_location): Update comment.
676 * target-descriptions.c (make_gdb_type): Update.
677 * valarith.c (value_bit_index): Update.
678 * value.c (struct value) <bitpos>: Update comment.
679 (unpack_bits_as_long, modify_field): Update.
680 * value.h (value_bitpos): Update comment.
682 2019-12-04 Tom Tromey <tromey@adacore.com>
684 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
687 2019-12-04 Tom Tromey <tromey@adacore.com>
689 * dwarf2read.c (dwarf2_init_float_type)
690 (dwarf2_init_complex_target_type): Add byte_order parameter.
691 (read_base_type): Compute byte order earlier.
692 * gdbtypes.c (init_float_type): Add byte_order parameter.
693 * gdbtypes.h (init_float_type): Add byte_order parameter.
695 2019-12-04 Tom Tromey <tromey@adacore.com>
697 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
699 2019-12-04 Tom Tromey <tromey@adacore.com>
701 * dwarf2read.c (process_structure_scope): Initialize
704 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
706 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
707 add it into the search spec.
708 (parse_max_results_option): New function.
709 (mi_info_functions_or_variables): Parse -max-results flag and pass
710 it to mi_symbol_info.
711 (mi_cmd_symbol_info_modules): Likewise.
712 (mi_cmd_symbol_info_types): Likewise.
713 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
714 return type to bool, change result container into a set, and don't
715 add new results if we have enough already.
716 (global_symbol_searcher::add_matching_msymbols): Change return
717 type to bool, and don't add new results if we have enough already.
718 (sort_search_symbols_remove_dups): Delete.
719 (global_symbol_searcher::search): Early exit from search loop when
720 we have enough results. Use a std::set to collect the results
721 from calling add_matching_symbols.
722 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
724 (global_symbol_searcher) <m_max_search_results>: New member
726 (global_symbol_searcher) <add_matching_symbols>: Update header
727 comment and change return type to bool.
728 (global_symbol_searcher) <add_matching_msymbols>: Update header
729 comment and change return type to bool.
731 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
733 * symtab.c (symbol_search::compare_search_syms): Update header
735 (global_symbol_searcher::is_suitable_msymbol): New function.
736 (global_symbol_searcher::expand_symtabs): New function.
737 (global_symbol_searcher::add_matching_symbols): New function.
738 (global_symbol_searcher::add_matching_msymbols): New function.
739 (global_symbol_searcher::search): Move most of the content
740 into the new functions above, and call them as needed.
741 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
743 (global_symbol_searcher) <add_matching_symbols>: New member
745 (global_symbol_searcher) <add_matching_msymbols>: New member
747 (global_symbol_searcher) <is_suitable_msymbol>: New member
750 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
752 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
753 -symbol-info-module-variables entries.
754 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
755 (mi_cmd_symbol_info_module_variables): Declare.
756 * mi/mi-symbol-cmds.c
757 (module_symbol_search_iterator): New typedef.
758 (output_module_symbols_in_single_module_and_file): New function.
759 (output_module_symbols_in_single_module): New function.
760 (mi_info_module_functions_or_variables): New function.
761 (mi_cmd_symbol_info_module_functions): New function.
762 (mi_cmd_symbol_info_module_variables): New function.
763 * NEWS: Mention new MI command.
765 2019-12-03 Christian Biesinger <cbiesinger@google.com>
767 * bcache.c (hash): Remove.
768 (hash_continue): Remove.
769 * bcache.h (hash): Remove.
770 (hash_continue): Remove.
771 (struct bcache) <ctor>: Update.
772 * psymtab.c (psymbol_hash): Update.
773 * stabsread.c (hashname): Update.
774 * utils.h (fast_hash): Add an argument for a start value,
777 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
778 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
779 (destroy_block_symbol_cache): New function.
780 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
781 (resize_symbol_cache): Likewise.
783 2019-12-02 Tom Tromey <tom@tromey.com>
785 * unittests/tui-selftests.c (run_tests): Make conditional.
786 (_initialize_tui_selftest): Make conditional.
788 2019-12-02 Christian Biesinger <cbiesinger@google.com>
790 * aix-thread.c (debug_aix_thread): Change type to bool.
792 2019-12-02 Luis Machado <luis.machado@linaro.org>
794 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
796 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
798 * dwarf2read.c (read_tag_string_type): Read the fields required to
799 make a dynamic string, and possibly create a dynamic range for the
801 (attr_to_dynamic_prop): Setup is_reference based on the type of
802 attribute being processed.
803 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
804 (resolve_dynamic_array): Rename to...
805 (resolve_dynamic_array_or_string): ...this, update header comment,
806 and accept TYPE_CODE_STRING.
807 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
809 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
811 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
812 of its implementation from...
813 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
816 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
818 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
819 create a range with stride where appropriate.
820 * f-valprint.c: Include 'gdbarch.h'.
821 (f77_print_array_1): Take the stride into account when walking the
822 array. Also convert the stride into addressable units.
823 * gdbtypes.c (create_range_type): Initialise the stride to
825 (create_range_type_with_stride): New function, initialise the
826 range as normal, and then setup the stride.
827 (has_static_range): Include the stride here. Also change the
829 (create_array_type_with_stride): Consider the range stride if the
830 array isn't given its own stride.
831 (resolve_dynamic_range): Resolve the stride if needed.
832 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
833 (struct range_bounds) <flag_is_byte_stride>: New member variable.
834 (TYPE_BIT_STRIDE): Define.
835 (TYPE_ARRAY_BIT_STRIDE): Define.
836 (create_range_type_with_stride): Declare.
837 * valarith.c (value_subscripted_rvalue): Take range stride into
838 account when walking the array.
840 2019-12-01 Tom Tromey <tom@tromey.com>
842 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
845 2019-12-01 Tom Tromey <tom@tromey.com>
847 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
849 * unittests/tui-selftests.c: New file.
850 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
852 2019-12-01 Tom Tromey <tom@tromey.com>
854 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
856 2019-12-01 Tom Tromey <tom@tromey.com>
858 * NEWS: Document new settings.
859 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
860 * tui/tui-win.c (_initialize_tui_win): Add border style
862 * tui/tui-io.h (tui_apply_style): Declare.
863 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
865 (apply_ansi_escape, tui_set_reverse_mode): Update.
866 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
867 Add "skip_intensity" parameter.
868 <changed>: New member.
869 <do_set_value>: Declare.
870 (tui_border_style, tui_active_border_style): Declare.
871 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
873 (cli_style_option): Initialize "changed".
874 (cli_style_option::do_set_value): New function.
875 (cli_style_option::add_setshow_commands): Add "skip_intensity"
877 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
878 (_initialize_cli_style): Update. Create TUI border style
881 2019-12-01 Tom Tromey <tom@tromey.com>
883 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
885 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
887 * tui/tui-win.h (compact_source): Declare.
888 * tui/tui-win.c (compact_source): New global.
889 (tui_set_compact_source, tui_show_compact_source): New functions.
890 (_initialize_tui_win): Add "compact-source" setting.
891 * tui/tui-source.c (tui_source_window::set_contents): Handle
892 compact_source setting.
893 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
894 * NEWS: Document new setting.
896 2019-11-30 Tom Tromey <tom@tromey.com>
898 * dwarf2read.c (dwarf2_add_field): Include field offset when
899 computing variant part length.
901 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
902 * NEWS: Mention define-prefix. Tell that command names can now
903 contain a . character.
905 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
907 * command.h (valid_cmd_char_p): Declare.
908 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
909 the check of valid command char.
910 (find_command_name_length, valid_user_defined_cmd_name_p): Use
912 * cli/cli-script.c (validate_comname): Likewise.
913 * completer.c (gdb_completer_command_word_break_characters):
914 Do not remove . from the word break char, update comments.
915 (complete_line_internal_1): Use valid_cmd_char_p.
916 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
917 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
919 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
921 * cli/cli-script.c (do_define_command): Ensure a redefined
922 prefix command is kept as a prefix command.
923 (define_prefix_command): New function.
924 (show_user_1): Report user defined prefixes.
925 (_initialize_cli_script): Create the new 'define-prefix' command.
926 Add completers for 'define' and 'document'.
927 * top.c (execute_command): If command is a user-defined prefix only
928 command, report the list of commands for this prefix command.
930 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932 * valops.c (find_oload_champ): Improve debug output.
934 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936 * valops.c (find_oload_champ): Print part of debug messages
937 before the badness vector is std::move'd.
939 2019-11-28 Tom Tromey <tom@tromey.com>
941 * value.c (creal_internal_fn): Fix comment.
943 2019-11-28 Tom Tromey <tom@tromey.com>
945 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
946 flag_bound_evaluated>: Now unsigned.
948 2019-11-28 Tom Tromey <tom@tromey.com>
950 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
953 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
955 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
957 * jit.c (jit_unregister_code): Add debug print to match
960 2019-11-27 Christian Biesinger <cbiesinger@google.com>
962 * NEWS: Mention the new multithreaded symbol loading.
964 2019-11-27 Christian Biesinger <cbiesinger@google.com>
966 * maint.c (n_worker_threads): Default to 0.
967 (worker_threads_disabled): New function.
968 * maint.h (worker_threads_disabled): New function.
969 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
970 here if worker_threads_disabled () is true.
971 (minimal_symbol_reader::install): Skip all threading if
972 worker_threads_disabled () is true.
974 2019-11-27 Christian Biesinger <cbiesinger@google.com>
976 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
977 hash code if possible.
978 (add_minsym_to_demangled_hash_table): Likewise.
979 (minimal_symbol_reader::install): Compute the hash codes for msymbol
980 on the background thread.
981 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
984 2019-11-27 Christian Biesinger <cbiesinger@google.com>
986 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
987 of the mangled name on the background thread.
988 * symtab.c (symbol_set_names): Allow passing in the hash of the
990 * symtab.h (symbol_set_names): Likewise.
992 2019-11-27 Kevin Buettner <kevinb@redhat.com>
994 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
995 physnames are computed for inherited DIEs.
997 2019-11-27 Tom Tromey <tromey@adacore.com>
999 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1001 * cp-support.c: Remove unnecessary backslashes.
1003 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1005 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1006 with sym->set_linkage_name.
1007 * coffread.c (coff_read_enum_type): Likewise.
1008 * mdebugread.c (parse_symbol): Likewise.
1009 * stabsread.c (patch_block_stabs): Likewise.
1010 (define_symbol): Likewise.
1011 (read_enum_type): Likewise.
1012 (common_block_end): Likewise.
1013 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1015 (SYMBOL_SET_LINKAGE_NAME): Remove.
1016 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1017 with sym->set_linkage_name.
1019 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1021 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1022 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1023 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1024 * NEWS: Mention new MI command.
1026 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1028 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1029 '-symbol-info-types', and '-symbol-info-variables'.
1030 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1031 (mi_cmd_symbol_info_types): Declare.
1032 (mi_cmd_symbol_info_variables): Declare.
1033 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1034 (output_debug_symbol): New function.
1035 (output_nondebug_symbol): New function.
1036 (mi_symbol_info): New function.
1037 (mi_info_functions_or_variables): New function.
1038 (mi_cmd_symbol_info_functions): New function.
1039 (mi_cmd_symbol_info_types): New function.
1040 (mi_cmd_symbol_info_variables): New function.
1041 * NEWS: Mention new commands.
1043 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * symtab.c (symbol_to_info_string): New function, most content
1046 moved from print_symbol_info, but updated to return a std::string.
1047 (print_symbol_info): Update to use symbol_to_info_string and print
1049 * symtab.h (symbol_to_info_string): Declare new function.
1051 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1053 * python/python.c (gdbpy_rbreak): Convert to using
1054 global_symbol_searcher.
1055 * symtab.c (file_matches): Convert return type to bool, change
1056 file list to std::vector, update header comment.
1057 (search_symbols): Rename to...
1058 (global_symbol_searcher::search): ...this and update now its
1059 a member function of global_symbol_searcher. Take account of the
1060 changes to file_matches.
1061 (symtab_symbol_info): Convert to using global_symbol_searcher.
1062 (rbreak_command): Likewise.
1063 (search_module_symbols): Likewise.
1064 * symtab.h (enum symbol_search): Update comment.
1065 (search_symbols): Remove declaration.
1066 (class global_symbol_searcher): New class.
1068 2019-11-26 Tom Tromey <tromey@adacore.com>
1070 * cp-support.c (_initialize_cp_support): Conditionally initialize
1071 gdb_demangle_attempt_core_dump.
1073 2019-11-26 Tom Tromey <tom@tromey.com>
1075 * python/py-function.c (fnpy_init): Update.
1076 * value.h (add_internal_function): Adjust declaration.
1077 * value.c (function_destroyer): Remove.
1078 (do_add_internal_function): Don't set destroyer or copy name.
1079 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1081 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1082 (cmdpy_init): Set name_allocated.
1083 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1085 (~cmd_list_element): Free "name" if needed.
1087 2019-11-26 Tom Tromey <tom@tromey.com>
1089 * value.h (add_internal_function): Add new overload. Move
1090 documentation from value.h.
1091 * value.c (do_add_internal_function): New function.
1092 (add_internal_function): Use it. Add new overload.
1093 (function_destroyer): Don't free doc.
1094 * python/py-function.c (fnpy_init): Update.
1096 2019-11-26 Tom Tromey <tom@tromey.com>
1098 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1099 (cmdpy_init): Set "doc_allocated".
1101 2019-11-26 Tom Tromey <tom@tromey.com>
1103 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1104 name of worker thread.
1105 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1107 * configure, config.in: Rebuild.
1109 2019-11-26 Tom Tromey <tom@tromey.com>
1111 * python/python.c (class gdbpy_gil): New.
1112 (struct gdbpy_event): Add constructor, destructor, operator().
1113 (gdbpy_post_event): Use run_on_main_thread.
1114 (gdbpy_initialize_events): Remove.
1115 (do_start_initialization): Update.
1117 2019-11-26 Tom Tromey <tom@tromey.com>
1120 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1121 commands. Call update_thread_pool_size.
1122 (update_thread_pool_size, maintenance_set_worker_threads): New
1124 (n_worker_threads): New global.
1126 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1127 Tom Tromey <tom@tromey.com>
1129 * minsyms.c (minimal_symbol_reader::install): Use
1131 * gdbsupport/parallel-for.h: New file.
1132 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1134 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1135 Tom Tromey <tom@tromey.com>
1137 * gdbsupport/thread-pool.h: New file.
1138 * gdbsupport/thread-pool.c: New file.
1139 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1140 (HFILES_NO_SRCDIR): Add thread-pool.h.
1142 2019-11-26 Tom Tromey <tom@tromey.com>
1144 * event-top.h (thread_local_segv_handler): Declare.
1145 * event-top.c (thread_local_segv_handler): New global.
1146 (install_handle_sigsegv, handle_sigsegv): New functions.
1147 (async_init_signals): Install SIGSEGV handler.
1148 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1150 (report_failed_demangle): New function.
1151 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1152 handler-setting code, instead use segv_handler. Run warning code
1155 2019-11-26 Tom Tromey <tom@tromey.com>
1157 * run-on-main-thread.c: New file.
1158 * run-on-main-thread.h: New file.
1159 * unittests/main-thread-selftests.c: New file.
1160 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1161 main-thread-selftests.c.
1162 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1163 (COMMON_SFILES): Add run-on-main-thread.c.
1165 2019-11-26 Tom Tromey <tom@tromey.com>
1167 * main.c (setup_alternate_signal_stack): Remove.
1168 (captured_main_1): Use gdb::alternate_signal_stack.
1169 * gdbsupport/alt-stack.h: New file.
1171 2019-11-26 Tom Tromey <tom@tromey.com>
1173 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1175 (save_original_signals_state, restore_original_signals_state): Use
1177 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1178 (_initialize_linux_nat): Use gdb_sigmask.
1179 * guile/guile.c (_initialize_guile): Use block_signals.
1180 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1181 * gdbsupport/gdb-sigmask.h: New file.
1182 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1183 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1184 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1186 * configure, config.in: Rebuild.
1187 * gdbsupport/block-signals.h: New file.
1189 2019-11-26 Tom Tromey <tom@tromey.com>
1191 * acinclude.m4: Include ax_pthread.m4.
1192 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1193 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1194 (CLIBS): Use PTHREAD_LIBS.
1195 (aclocal_m4_deps): Add ax_pthread.m4.
1196 * config.in, configure: Rebuild.
1197 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1199 2019-11-26 Tom Tromey <tom@tromey.com>
1201 * symtab.h (struct minimal_symbol) <name_set>: New member.
1202 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1203 Don't call symbol_set_names.
1204 (minimal_symbol_reader::install): Call symbol_set_names.
1206 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1208 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1209 restore_active_ext_lang, as GIL is needed for (indirectly)
1210 called PyOS_InterruptOccurred.
1212 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1214 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1217 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1219 * remote-sim.c (simulator_command): Make static, remove
1222 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1224 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1226 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1227 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1229 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1231 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1233 * unittests/basic_string_view/element_access/char/1.cc (test01):
1236 * unittests/basic_string_view/element_access/char/empty.cc (main):
1238 * unittests/basic_string_view/element_access/char/front_back.cc
1241 * unittests/basic_string_view/inserters/char/2.cc (test05):
1244 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1247 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1250 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1252 * unittests/basic_string_view/operations/compare/char/1.cc
1255 * unittests/basic_string_view/operations/compare/char/13650.cc
1257 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1260 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1263 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1266 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1269 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1272 * unittests/basic_string_view/operations/find/char/4.cc (main):
1274 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1277 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1280 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1283 * unittests/basic_string_view/operations/substr/char/1.cc
1286 * unittests/basic_string_view/operators/char/2.cc (main):
1288 * unittests/optional/assignment/1.cc (test): Likewise.
1289 * unittests/optional/assignment/2.cc (test): Likewise.
1290 * unittests/optional/assignment/3.cc (test): Likewise.
1291 * unittests/optional/assignment/4.cc (test): Likewise.
1292 * unittests/optional/assignment/5.cc (test): Likewise.
1293 * unittests/optional/assignment/6.cc (test): Likewise.
1294 * unittests/optional/assignment/7.cc (test): Likewise.
1295 * unittests/optional/cons/copy.cc (test): Likewise.
1296 * unittests/optional/cons/default.cc (test): Likewise.
1297 * unittests/optional/cons/move.cc (test): Likewise.
1298 * unittests/optional/cons/value.cc (test): Likewise.
1299 * unittests/optional/in_place.cc (test): Likewise.
1300 * unittests/optional/observers/1.cc (test): Likewise.
1301 * unittests/optional/observers/2.cc (test): Likewise.
1303 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1305 * tui-win.h (tui_set_var_cmd): Remove.
1306 * tui-win.c (tui_set_var_cmd): Make static.
1308 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1310 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1311 rbreak_command_wrapper): Remove.
1312 * symtab.c (rbreak_command_wrapper): Remove.
1314 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1316 * inferior.h (info_terminal_command): Remove declaration.
1317 * inflow.c (info_terminal_command): Make static.
1319 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1321 * inferior.c (exit_inferior_silent): Remove.
1323 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1325 * dictionary.c (dict_empty, mdict_empty): Remove.
1326 * dictionary.c (mdict_empty): Remove.
1328 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1330 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1331 (arc_insn_get_memory_offset): Likewise.
1332 (arc_insn_dump): Likewise.
1333 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1334 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1335 * dictionary.c (dict_iterator_next): Likewise.
1336 (dict_iter_match_first): Likewise.
1337 (dict_iter_match_next): Likewise.
1338 * f-lang.c (evaluate_subexp_f): Likewise.
1339 * hppa-tdep.c (hppa_read_pc): Likewise.
1340 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1341 * parse.c (write_exp_elt_msym): Likewise.
1342 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1343 * remote.c (remote_packet_size): Likewise.
1344 (remote_notif_stop_parse): Likewise.
1345 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1346 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1347 * source.c (prepare_path_for_appending): Likewise.
1348 * sparc64-linux-tdep.c
1349 (sparc64_linux_handle_segmentation_fault); Likewise.
1350 * stack.c (frame_selection_by_function_completer): Likewise.
1352 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1354 * completer.c (set_gdb_completion_word_break_characters):
1357 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1359 * dwarf-index-write.c: Include dwarf-index-write.h.
1360 * mi/mi-interp.c: Include mi/mi-interp.h.
1362 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1364 * aarch32-tdep.c: Include aarch32-tdep.h.
1365 * aarch32-tdep.h: Forward-declare struct target_desc.
1367 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1369 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1371 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1372 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1374 2019-11-25 Tom de Vries <tdevries@suse.de>
1376 * contrib/words.sh: Add -c option.
1378 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1380 * solib.c (solib_find_1): Change int to bool.
1381 (exec_file_find): Change int to bool.
1382 (solib_find): Change int to bool.
1383 (solib_read_symbols): Change int to bool.
1384 (solib_used): Change int to bool.
1385 (solib_add): Change int to bool.
1386 (info_sharedlibrary_command): Change int to bool.
1387 (solib_contains_address_p): Change int to bool.
1388 (solib_keep_data_in_core): Change int to bool.
1389 (in_solib_dynsym_resolve_code): Change int to bool.
1390 (reload_shared_libraries_1): Change int to bool.
1391 (gdb_sysroot_changed): Change int to bool.
1392 * solib.h (solib_read_symbols): Change int to bool.
1393 (solib_contains_address_p): Change int to bool.
1394 (solib_keep_data_in_core): Change int to bool.
1395 (in_solib_dynsym_resolve_code): Change int to bool.
1396 (libpthread_name_p): Change int to bool.
1398 2019-11-25 Luis Machado <luis.machado@linaro.org>
1400 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1401 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1402 (remote_packet_max_chars): New static global.
1403 (show_remote_packet_max_chars): New function.
1404 (remote_target::putpkt_binary): Adjust to use new
1405 remote_packet_max_chars option.
1406 (remote_target::getpkt_or_notif_sane_1): Likewise.
1407 (_initialize_remote): Register new remote-packet-max-chars option.
1409 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1411 * m68k-linux-nat.c: Include gdbarch.h.
1413 2019-11-24 Tom Tromey <tom@tromey.com>
1415 * symfile.c (read_symbols): Update.
1416 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1418 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1419 (psym_lookup_symbol, psym_find_last_source_symtab)
1420 (psym_forget_cached_source_info, psym_print_stats)
1421 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1422 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1423 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1424 (psym_find_compunit_symtab_by_address)
1425 (maintenance_print_psymbols, maintenance_info_psymtabs)
1426 (maintenance_check_psymtabs): Update.
1427 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1430 2019-11-22 Tom Tromey <tom@tromey.com>
1432 * observable.h: Update comments.
1434 2019-11-22 Tom Tromey <tromey@adacore.com>
1436 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1437 (print_ada_task_info): Don't try to fetch thread id if task is not
1440 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1442 * ada-exp.y: Update.
1443 * ada-lang.c (sort_choices): Update.
1444 (ada_print_symbol_signature): Update.
1445 (resolve_subexp): Update.
1446 (ada_parse_renaming): Update.
1447 (ada_read_renaming_var_value): Update.
1448 (lesseq_defined_than): Update.
1449 (remove_extra_symbols): Update.
1450 (remove_irrelevant_renamings): Update.
1451 (ada_add_block_symbols): Update.
1452 (ada_collect_symbol_completion_matches): Update.
1453 (ada_is_renaming_symbol): Update.
1454 (aggregate_assign_from_choices): Update.
1455 (ada_evaluate_subexp): Update.
1456 (ada_has_this_exception_support): Update.
1457 (ada_is_non_standard_exception_sym): Update.
1458 (ada_add_exceptions_from_frame): Update.
1459 (ada_add_global_exceptions): Update.
1460 (ada_print_subexp): Update.
1461 * ax-gdb.c (gen_var_ref): Update.
1462 (gen_maybe_namespace_elt): Update.
1463 (gen_expr_for_cast): Update.
1466 * blockframe.c (find_pc_partial_function): Update.
1467 * breakpoint.c (print_breakpoint_location): Update.
1468 (update_static_tracepoint): Update.
1469 * btrace.c (ftrace_print_function_name): Update.
1470 (ftrace_function_switched): Update.
1471 * buildsym.c (find_symbol_in_list): Update.
1473 * c-typeprint.c (c_print_typedef): Update.
1474 (c_type_print_template_args): Update.
1475 * cli/cli-cmds.c (edit_command): Update.
1476 (list_command): Update.
1477 (print_sal_location): Update.
1478 * coffread.c (patch_opaque_types): Update.
1479 (process_coff_symbol): Update.
1480 (coff_read_enum_type): Update.
1481 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1482 (convert_one_symbol): Update.
1483 (hash_symname): Update.
1484 (eq_symname): Update.
1485 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1486 * compile/compile-cplus-types.c (debug_print_scope): Update.
1487 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1488 * compile/compile-object-load.c (get_out_value_type): Update.
1489 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1490 (search_symbol_list): Update.
1491 (cp_lookup_symbol_imports_or_template): Update.
1492 * cp-support.c (overload_list_add_symbol): Update.
1493 * ctfread.c (psymtab_to_symtab): Update.
1494 * dbxread.c (cp_set_block_scope): Update.
1495 * dictionary.c (iter_match_first_hashed): Update.
1496 (iter_match_next_hashed): Update.
1497 (insert_symbol_hashed): Update.
1498 (iter_match_next_linear): Update.
1499 * dictionary.h: Update.
1500 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1501 (locexpr_describe_location_piece): Update.
1502 (locexpr_describe_location_1): Update.
1503 (locexpr_generate_c_location): Update.
1504 (loclist_describe_location): Update.
1505 (loclist_generate_c_location): Update.
1506 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1507 (read_func_scope): Update.
1508 (process_enumeration_scope): Update.
1509 (new_symbol): Update.
1510 (dwarf2_const_value): Update.
1511 (dwarf2_symbol_mark_computed): Update.
1512 * eval.c (evaluate_funcall): Update.
1513 (evaluate_subexp_standard): Update.
1514 * expprint.c (print_subexp_standard): Update.
1515 (dump_subexp_body_standard): Update.
1516 * f-valprint.c (info_common_command_for_block): Update.
1517 * findvar.c (get_hosting_frame): Update.
1518 (default_read_var_value): Update.
1519 * go-lang.c (go_symbol_package_name): Update.
1520 * guile/scm-block.c (bkscm_print_block_smob): Update.
1521 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1522 (gdbscm_symbol_name): Update.
1523 (gdbscm_symbol_linkage_name): Update.
1524 (gdbscm_symbol_print_name): Update.
1525 * infcall.c (get_function_name): Update.
1526 * infcmd.c (jump_command): Update.
1527 (finish_command): Update.
1528 * infrun.c (insert_exception_resume_breakpoint): Update.
1529 * linespec.c (canonicalize_linespec): Update.
1530 (create_sals_line_offset): Update.
1531 (convert_linespec_to_sals): Update.
1532 (complete_label): Update.
1533 (find_label_symbols_in_block): Update.
1534 * m2-typeprint.c (m2_print_typedef): Update.
1535 * mdebugread.c (mdebug_reg_to_regnum): Update.
1536 (parse_symbol): Update.
1537 (mylookup_symbol): Update.
1538 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1539 (list_args_or_locals): Update.
1540 * objc-lang.c (compare_selectors): Update.
1541 (info_selectors_command): Update.
1542 (compare_classes): Update.
1543 (info_classes_command): Update.
1544 (find_imps): Update.
1545 * p-typeprint.c (pascal_print_typedef): Update.
1546 * printcmd.c (build_address_symbolic): Update.
1547 (info_address_command): Update.
1548 (print_variable_and_value): Update.
1549 * python/py-framefilter.c (extract_sym): Update.
1550 (py_print_single_arg): Update.
1551 * python/py-symbol.c (sympy_str): Update.
1552 (sympy_get_name): Update.
1553 (sympy_get_linkage_name): Update.
1554 * python/python.c (gdbpy_rbreak): Update.
1555 * record-btrace.c (btrace_get_bfun_name): Update.
1556 (btrace_call_history): Update.
1557 * rust-lang.c (rust_print_typedef): Update.
1558 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1559 * stabsread.c (stab_reg_to_regnum): Update.
1560 (define_symbol): Update.
1561 (read_enum_type): Update.
1562 (common_block_end): Update.
1563 (cleanup_undefined_types_1): Update.
1564 (scan_file_globals): Update.
1565 * stack.c (print_frame_arg): Update.
1566 (print_frame_args): Update.
1567 (find_frame_funname): Update.
1568 (info_frame_command_core): Update.
1569 (iterate_over_block_locals): Update.
1570 (print_block_frame_labels): Update.
1571 (do_print_variable_and_value): Update.
1572 (iterate_over_block_arg_vars): Update.
1573 (return_command): Update.
1574 * symmisc.c (dump_symtab_1): Update.
1575 (print_symbol): Update.
1576 * symtab.c (eq_symbol_entry): Update.
1577 (symbol_cache_dump): Update.
1578 (lookup_language_this): Update.
1579 (find_pc_sect_line): Update.
1580 (skip_prologue_sal): Update.
1581 (symbol_search::compare_search_syms): Update.
1582 (treg_matches_sym_type_name): Update.
1583 (search_symbols): Update.
1584 (print_symbol_info): Update.
1585 (rbreak_command): Update.
1586 (completion_list_add_symbol): Update.
1587 (find_gnu_ifunc): Update.
1588 (get_symbol_address): Update.
1589 (search_module_symbols): Update.
1590 (info_module_subcommand): Update.
1591 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1592 (SYMBOL_LINKAGE_NAME): Remove.
1593 (SYMBOL_DEMANGLED_NAME): Remove.
1594 (SYMBOL_PRINT_NAME): Remove.
1595 (SYMBOL_SEARCH_NAME): Remove.
1596 * tracepoint.c (set_traceframe_context): Update.
1597 (validate_actionline): Update.
1598 (collection_list::collect_symbol): Update.
1599 (encode_actions_1): Update.
1600 (info_scope_command): Update.
1601 (print_one_static_tracepoint_marker): Update.
1602 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1603 * valops.c (address_of_variable): Update.
1604 (find_overload_match): Update.
1605 (find_oload_champ): Update.
1607 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1609 * ada-lang.c (ada_lookup_simple_minsym): Update.
1610 (ada_collect_symbol_completion_matches): Update.
1611 * ada-tasks.c (read_atcb): Update.
1612 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1613 (amd64_windows_skip_trampoline_code): Update.
1614 * arm-tdep.c (skip_prologue_function): Update.
1615 (arm_skip_stack_protector): Update.
1616 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1617 (arm_wince_skip_main_prologue): Update.
1618 * ax-gdb.c (gen_expr): Update.
1619 * block.c (call_site_for_pc): Update.
1620 * blockframe.c (find_pc_partial_function): Update.
1621 * breakpoint.c (set_breakpoint_location_function): Update.
1622 * btrace.c (ftrace_print_function_name): Update.
1623 (ftrace_function_switched): Update.
1624 * c-valprint.c (print_unpacked_pointer): Update.
1625 * coffread.c (coff_symfile_read): Update.
1626 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1627 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1628 * dwarf-index-write.c (write_psymbols): Update.
1629 * dwarf2loc.c (call_site_to_target_addr): Update.
1630 (func_verify_no_selftailcall): Update.
1631 (tailcall_dump): Update.
1632 (call_site_find_chain_1): Update.
1633 (dwarf_expr_reg_to_entry_parameter): Update.
1634 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1635 * eval.c (evaluate_funcall): Update.
1636 (evaluate_subexp_standard): Update.
1637 (evaluate_subexp_for_sizeof): Update.
1638 * expprint.c (print_subexp_standard): Update.
1639 (dump_subexp_body_standard): Update.
1640 * frame.c (get_prev_frame_always_1): Update.
1641 * frv-tdep.c (frv_skip_main_prologue): Update.
1642 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1643 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1644 (gnuv3_get_typename_from_type_info): Update.
1645 (gnuv3_skip_trampoline): Update.
1646 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1647 * i386-tdep.c (i386_skip_main_prologue): Update.
1648 (i386_pe_skip_trampoline_code): Update.
1649 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1650 * infcall.c (get_function_name): Update.
1651 * linespec.c (minsym_found): Update.
1652 * linux-fork.c (info_checkpoints_command): Update.
1653 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1654 (m32c_m16c_pointer_to_address): Update.
1655 * maint.c (maintenance_translate_address): Update.
1656 * minsyms.c (add_minsym_to_hash_table): Update.
1657 (add_minsym_to_demangled_hash_table): Update.
1658 (lookup_minimal_symbol_mangled): Update.
1659 (lookup_minimal_symbol_demangled): Update.
1660 (lookup_minimal_symbol_linkage): Update.
1661 (lookup_minimal_symbol_text): Update.
1662 (lookup_minimal_symbol_by_pc_name): Update.
1663 (minimal_symbol_is_less_than): Update.
1664 (compact_minimal_symbols): Update.
1665 (build_minimal_symbol_hash_tables): Update.
1666 (find_solib_trampoline_target): Update.
1667 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1668 (mips_skip_pic_trampoline_code): Update.
1669 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1670 * objc-lang.c (info_selectors_command): Update.
1671 (info_classes_command): Update.
1672 (find_methods): Update.
1673 (find_imps): Update.
1674 * p-valprint.c (pascal_val_print): Update.
1675 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1676 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1677 * printcmd.c (build_address_symbolic): Update.
1678 (info_symbol_command): Update.
1679 * psymtab.c (psymbol_name_matches): Update.
1680 (match_partial_symbol): Update.
1681 (lookup_partial_symbol): Update.
1682 (print_partial_symbols): Update.
1683 (sort_pst_symbols): Update.
1684 (maintenance_check_psymtabs): Update.
1685 * python/py-framefilter.c (py_print_frame): Update.
1686 * python/python.c (gdbpy_rbreak): Update.
1687 * record-btrace.c (btrace_get_bfun_name): Update.
1688 (btrace_call_history): Update.
1689 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1690 (rs6000_skip_trampoline_code): Update.
1691 * sol-thread.c (info_cb): Update.
1692 * stabsread.c (scan_file_globals): Update.
1693 * stack.c (find_frame_funname): Update.
1694 (info_frame_command_core): Update.
1695 * symmisc.c (dump_msymbols): Update.
1696 * symtab.c (symbol_natural_name): Rename to..,
1697 (general_symbol_info::natural_name): ...this.
1698 (symbol_demangled_name): Rename to...
1699 (general_symbol_info::demangled_name): ...this.
1700 (symbol_search_name): Rename to...
1701 (general_symbol_info::search_name): ...this.
1702 (symbol_matches_search_name): Update.
1703 (find_pc_sect_line): Update.
1704 (skip_prologue_sal): Update.
1705 (search_symbols): Update.
1706 (print_msymbol_info): Update.
1707 (rbreak_command): Update.
1708 (completion_list_add_msymbol): Update.
1709 (completion_list_objc_symbol): Update.
1710 (get_msymbol_address): Update.
1711 * symtab.h (struct general_symbol_info): Add member functions
1712 natural_name (), linkage_name (), print_name (), demangled_name (),
1714 (SYMBOL_NATURAL_NAME): Update.
1715 (symbol_natural_name): Move to a member function on general_symbol_info.
1716 (SYMBOL_DEMANGLED_NAME): Update.
1717 (symbol_demangled_name): Move to a member function on
1718 general_symbol_info.
1719 (SYMBOL_SEARCH_NAME): Update.
1720 (symbol_search_name): Move to a member function on general_symbol_info.
1721 (MSYMBOL_NATURAL_NAME): Remove.
1722 (MSYMBOL_LINKAGE_NAME): Remove.
1723 (MSYMBOL_PRINT_NAME): Remove.
1724 (MSYMBOL_DEMANGLED_NAME): Remove.
1725 (MSYMBOL_SEARCH_NAME): Remove.
1726 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1728 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1730 * symtab.c (create_demangled_names_hash): Use per_bfd->
1731 minimal_symbol_count for computing the initial size, if greater
1732 than our default size.
1734 2019-11-22 Tom de Vries <tdevries@suse.de>
1736 * contrib/words.sh: Improve words extraction.
1738 2019-11-22 Tom de Vries <tdevries@suse.de>
1740 * contrib/words.sh: Combine sed invocations.
1742 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1744 * Makefile.in: Update.
1745 * demangle.c: Rename to...
1746 * gdb-demangle.c: ..this.
1747 (is_cplus_marker): Change return type to bool.
1748 (_initialize_demangler): Rename to...
1749 (_initialize_gdb_demangle): ...this.
1750 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1751 * symtab.h (demangle): Remove declaration; instead include
1754 2019-11-21 Tom Tromey <tromey@adacore.com>
1756 * gdbsupport/format.c (format_pieces): Parse %I64d.
1757 * unittests/format_pieces-selftests.c (test_windows_formats): New
1759 (run_tests): Call it.
1761 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1763 Byte reverse display of variables with DW_END_big, DW_END_little
1764 (DW_AT_endianity) dwarf attributes if different than the native
1766 * ada-lang.c (ada_value_binop):
1767 Use type_byte_order instead of gdbarch_byte_order.
1768 * ada-valprint.c (printstr):
1769 (ada_val_print_string):
1770 * ada-lang.c (value_pointer):
1772 Use type_byte_order instead of gdbarch_byte_order.
1773 * c-lang.c (c_get_string):
1774 Use type_byte_order instead of gdbarch_byte_order.
1775 * c-valprint.c (c_val_print_array):
1776 Use type_byte_order instead of gdbarch_byte_order.
1777 * cp-valprint.c (cp_print_class_member):
1778 Use type_byte_order instead of gdbarch_byte_order.
1779 * dwarf2loc.c (rw_pieced_value):
1780 Use type_byte_order instead of gdbarch_byte_order.
1781 * dwarf2read.c (read_base_type): Handle DW_END_big,
1783 * f-lang.c (f_get_encoding):
1784 Use type_byte_order instead of gdbarch_byte_order.
1785 * findvar.c (default_read_var_value):
1786 Use type_byte_order instead of gdbarch_byte_order.
1787 * gdbtypes.c (check_types_equal):
1788 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1789 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1790 and TYPE_ENDIANITY_LITTLE if set.
1791 (type_byte_order): new function.
1792 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1793 (struct main_type) <flag_endianity_not_default>:
1795 (type_byte_order): New function.
1796 * infcmd.c (default_print_one_register_info):
1797 Use type_byte_order instead of gdbarch_byte_order.
1798 * p-lang.c (pascal_printstr):
1799 Use type_byte_order instead of gdbarch_byte_order.
1800 * p-valprint.c (pascal_val_print):
1801 Use type_byte_order instead of gdbarch_byte_order.
1802 * printcmd.c (print_scalar_formatted):
1803 Use type_byte_order instead of gdbarch_byte_order.
1804 * solib-darwin.c (darwin_current_sos):
1805 Use type_byte_order instead of gdbarch_byte_order.
1806 * solib-svr4.c (solib_svr4_r_ldsomap):
1807 Use type_byte_order instead of gdbarch_byte_order.
1808 * stap-probe.c (stap_modify_semaphore):
1809 Use type_byte_order instead of gdbarch_byte_order.
1810 * target-float.c (target_float_same_format_p):
1811 Use type_byte_order instead of gdbarch_byte_order.
1812 * valarith.c (scalar_binop):
1814 Use type_byte_order instead of gdbarch_byte_order.
1815 * valops.c (value_cast):
1816 Use type_byte_order instead of gdbarch_byte_order.
1817 * valprint.c (generic_emit_char):
1820 Use type_byte_order instead of gdbarch_byte_order.
1821 * value.c (unpack_long):
1822 (unpack_bits_as_long):
1823 (unpack_value_bitfield):
1826 (pack_unsigned_long):
1827 Use type_byte_order instead of gdbarch_byte_order.
1828 * findvar.c (unsigned_pointer_to_address):
1829 (signed_pointer_to_address):
1830 (unsigned_address_to_pointer):
1831 (address_to_signed_pointer):
1832 (default_read_var_value):
1833 (default_value_from_register):
1834 Use type_byte_order instead of gdbarch_byte_order.
1835 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1836 Use type_byte_order instead of gdbarch_byte_order.
1837 * riscv-tdep.c (riscv_print_one_register_info):
1838 Use type_byte_order instead of gdbarch_byte_order.
1840 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1842 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1843 (current_ui_gdb_stdin_ptr): Likewise.
1844 (current_ui_gdb_stderr_ptr): Likewise.
1845 (current_ui_gdb_stdlog_ptr): Likewise.
1846 (current_ui_current_uiout_ptr): Likewise.
1847 (gen_ret_current_ui_field_ptr): Remove.
1849 2019-11-21 Tom de Vries <tdevries@suse.de>
1852 * cli/cli-script.c (execute_control_command): Only switch to
1853 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1855 2019-11-19 Tom Tromey <tom@tromey.com>
1857 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1858 Now static. Change type of "name".
1859 (tui_set_win_height_command): Don't copy "arg".
1860 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1861 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1863 2019-11-19 Ali Tamur <tamur@google.com>
1865 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1866 "if (attr != nullptr)".
1867 (dwarf2_find_base_address): Likewise.
1868 (dwarf2_build_include_psymtabs): Likewise.
1869 (read_cutu_die_from_dwo): Likewise.
1870 (read_func_scope): Likewise.
1871 (read_call_site_scope): Likewise.
1872 (dwarf2_get_pc_bounds): Likewise.
1873 (dwarf2_record_block_ranges): Likewise.
1874 (dwarf2_add_field): Likewise.
1875 (dwarf2_add_member_fn): Likewise.
1876 (read_structure_type): Likewise.
1877 (read_enumeration_type): Likewise.
1878 (read_array_type): Likewise.
1879 (read_array_order): Likewise.
1880 (read_set_type): Likewise.
1881 (read_common_block): Likewise.
1882 (read_tag_reference_type): Likewise.
1883 (read_tag_string_type): Likewise.
1884 (read_subroutine_type): Likewise.
1885 (read_base_type): Likewise.
1886 (read_subrange_type): Likewise.
1887 (new_symbol): Likewise.
1888 (prepare_one_comp_unit): Likewise.
1890 2019-11-19 Tom Tromey <tromey@adacore.com>
1892 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1893 result in error when DebugActiveProcess fails.
1895 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1896 Pedro Alves <palves@redhat.com>
1898 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1899 * target.c (target_stack::push): Call 'unpush' if there's a
1900 target on top of the stack.
1902 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1904 * python/py-block.c (blpy_dealloc): Call tp_free.
1905 (blpy_block_syms_dealloc): Likewise.
1906 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1907 * python/py-inferior.c (infpy_dealloc): Likewise.
1908 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1909 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1910 * python/py-symbol.c (sympy_dealloc): Likewise.
1911 * python/py-symtab.c (stpy_dealloc): Likewise.
1912 * python/py-type.c (typy_iterator_dealloc): Likewise.
1914 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1916 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1917 constructor instead of using a class initializer.
1919 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1921 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1922 * configure: Regenerate.
1923 * configure.ac: Don't source common.host.
1924 * gdbsupport/common.host: Remove.
1925 * gdbsupport/mingw-strerror.c: Remove.
1926 * gdbsupport/posix-strerror.c: Rename to...
1927 * gdbsupport/safe-strerror.c: ...this.
1929 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1931 * maint.c (scoped_command_stats::print_time): Use localtime_r
1932 instead of localtime (provided through gnulib if necessary).
1933 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1936 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1938 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1939 avoid compile errors.
1941 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1943 * config.in: Regenerate.
1944 * configure: Regenerate.
1945 * gdbsupport/common.m4: No longer check for strerror_r.
1946 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1947 POSIX version of strerror_r, now that gnulib provides it if
1950 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1952 * README (`configure' options): Update.
1954 2019-11-14 Tom Tromey <tromey@adacore.com>
1956 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1957 expected type for the RHS if the LHS is a convenience variable.
1959 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1961 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1962 Provide explicit default and copy constructor.
1964 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1966 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1967 only call Py_INCREF (newbp) in the bppy_pending_object case.
1969 2019-11-13 Tom Tromey <tromey@adacore.com>
1972 * psympriv.h (partial_symbol): Remove static assert.
1973 * symtab.h (general_symbol_info, symbol): Remove static assert.
1975 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1977 * gdbsupport/format.c (format_pieces::format_pieces): Support
1978 printf 'z' size modifier.
1979 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1980 * printcmd.c (ui_printf): Handle size_t_arg.
1981 * ui-out.c (ui_out::vmessage): Likewise.
1982 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1984 (run_tests): Call test_format_int_sizes.
1986 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1988 * ada-exp.y (write_ambiguous_var): Update.
1989 * buildsym.c (add_symbol_to_list): Update.
1990 * dwarf2read.c (read_variable): Update.
1991 (new_symbol): Update.
1992 * jit.c (finalize_symtab): Update.
1993 * language.c (language_alloc_type_symbol): Update.
1994 * symtab.c (fixup_symbol_section): Update.
1995 (initialize_objfile_symbol_1): Move code to...
1996 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1997 (allocate_symbol): Update.
1998 (allocate_template_symbol): Update.
1999 (get_symbol_address): Update.
2000 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2001 of having as a field, and add a constructor.
2002 (SYMBOL_VALUE): Update.
2003 (SYMBOL_VALUE_ADDRESS): Update.
2004 (SET_SYMBOL_VALUE_ADDRESS): Update.
2005 (SYMBOL_VALUE_BYTES): Update.
2006 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2007 (SYMBOL_BLOCK_VALUE): Update.
2008 (SYMBOL_VALUE_CHAIN): Update.
2009 (SYMBOL_LANGUAGE): Update.
2010 (SYMBOL_SECTION): Update.
2011 (SYMBOL_OBJ_SECTION): Update.
2012 (SYMBOL_SET_LANGUAGE): Update.
2013 (SYMBOL_SET_LINKAGE_NAME): Update.
2014 (SYMBOL_SET_NAMES): Update.
2015 (SYMBOL_NATURAL_NAME): Update.
2016 (SYMBOL_LINKAGE_NAME): Update.
2017 (SYMBOL_DEMANGLED_NAME): Update.
2018 (SYMBOL_SEARCH_NAME): Update.
2019 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2020 (struct symbol): Update.
2021 (struct template_symbol): Update.
2022 (struct rust_vtable_symbol): Update.
2023 * xcoffread.c (SYMBOL_DUP): Update.
2025 2019-11-12 Tom Tromey <tom@tromey.com>
2027 * tui/tui-layout.c (show_layout): Set current_layout.
2028 (show_source_disasm_command, show_data)
2029 (show_source_or_disasm_and_command): Don't set current_layout.
2031 2019-11-12 Tom Tromey <tom@tromey.com>
2033 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2035 2019-11-12 Tom Tromey <tom@tromey.com>
2037 * tui/tui-win.c (resize_message): New global.
2038 (show_tui_resize_message): New function.
2039 (tui_async_resize_screen): Print message if requested.
2040 (_initialize_tui_win): Add tui-resize-message setting.
2041 * NEWS: Add entry for new commands.
2043 2019-11-11 Tom Tromey <tom@tromey.com>
2045 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2048 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2050 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2052 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2054 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2056 * python/python-internal.h (gdbpy_lookup_static_symbols):
2057 Declare new function.
2058 * python/python.c (python_GdbMethods): Add
2059 gdb.lookup_static_symbols method.
2060 * NEWS: Mention gdb.lookup_static_symbols.
2062 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2065 static block of current object file first. Also fix typo in
2068 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2070 * stack.c (set_last_displayed_sal): Delete.
2071 (last_displayed_sal_valid): Delete.
2072 (last_displayed_pspace): Delete.
2073 (last_displayed_addr): Delete.
2074 (last_displayed_symtab): Delete.
2075 (last_displayed_line): Delete.
2076 (class last_displayed_symtab_info_type): New.
2077 (last_displayed_symtab_info): New static global variable.
2078 (print_frame_info): Call methods on last_displayed_symtab_info.
2079 (clear_last_displayed_sal): Update header comment, and make use of
2080 last_displayed_symtab_info.
2081 (last_displayed_sal_is_valid): Likewise.
2082 (get_last_displayed_pspace): Likewise.
2083 (get_last_displayed_addr): Likewise.
2084 (get_last_displayed_symtab): Likewise.
2085 (get_last_displayed_line): Likewise.
2086 (get_last_displayed_sal): Likewise.
2087 * stack.h (clear_last_displayed_sal): Update header comment.
2088 (last_displayed_sal_is_valid): Likewise.
2089 (get_last_displayed_pspace): Likewise.
2090 (get_last_displayed_addr): Likewise.
2091 (get_last_displayed_symtab): Likewise.
2092 (get_last_displayed_line): Likewise.
2093 (get_last_displayed_sal): Likewise.
2095 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2097 * stack.c (frame_show_address): Convert return type to bool.
2098 * stack.h (frame_show_address): Likewise, and update header
2101 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2103 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2104 * unittests/vec-utils-selftests.c: New file.
2105 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2107 2019-11-10 Tom Tromey <tom@tromey.com>
2109 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2110 (tui_highlight_win): Likewise.
2111 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2112 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2113 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2114 Don't set can_highlight.
2116 2019-11-10 Tom Tromey <tom@tromey.com>
2118 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2119 Remove unused declaration.
2121 2019-11-08 Tom Tromey <tromey@adacore.com>
2123 * top.c (read_command_file): Update.
2124 (command_line_input): Make return type const.
2125 * python/py-gdb-readline.c: Update.
2126 * linespec.c (decode_line_2): Update.
2127 * defs.h (command_line_input): Make return type const.
2128 * cli/cli-script.c (read_next_line): Make return type const.
2129 * ada-lang.c (get_selections): Update.
2131 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2133 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2134 * mi/mi-main.c (output_cores): Likewise.
2135 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2136 (linux_xfer_osdata_modules): Likewise.
2137 * remote.c (register_remote_support_xml): Likewise.
2138 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2139 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2141 2019-11-06 Tom Tromey <tom@tromey.com>
2143 * tui/tui-interp.c: Don't include readline.h.
2144 * tui/tui-hooks.c: Don't include readline.h.
2145 * symmisc.c: Include tilde.h, not readline.h.
2146 * symfile.c: Include tilde.h, not readline.h.
2147 * source.c: Include tilde.h, not readline.h.
2148 * solib.c: Include tilde.h, not readline.h.
2149 * psymtab.c: Include tilde.h, not readline.h.
2150 * exec.c: Include tilde.h, not readline.h.
2151 * corelow.c: Include tilde.h, not readline.h.
2152 * cli/cli-dump.c: Include tilde.h, not readline.h.
2153 * cli/cli-cmds.c: Don't include readline.h.
2155 2019-11-05 Tom Tromey <tom@tromey.com>
2157 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2158 (tui_disassemble): Set addr_size.
2159 (tui_disasm_window::set_contents): Use addr_size.
2161 2019-11-05 Tom Tromey <tom@tromey.com>
2163 * rust-lang.c (rust_language_defn): Update.
2164 * python/py-value.c (valpy_string): Call c_get_string.
2165 * p-lang.c (pascal_language_defn): Update.
2166 * opencl-lang.c (opencl_language_defn): Update.
2167 * objc-lang.c (objc_language_defn): Update.
2168 * m2-lang.c (m2_language_defn): Update.
2169 * language.c (unknown_language_defn, auto_language_defn): Update.
2170 (default_get_string): Remove.
2171 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2172 * go-lang.c (go_language_defn): Update.
2173 * f-lang.c (f_language_defn): Update.
2174 * d-lang.c (d_language_defn): Update.
2175 * c-lang.c (c_language_defn, cplus_language_defn)
2176 (asm_language_defn, minimal_language_defn): Update.
2177 * ada-lang.c (ada_language_defn): Update.
2178 * language.h (struct language_defn) <la_get_string>: Remove.
2179 (LA_GET_STRING): Remove.
2180 (default_get_string): Don't declare.
2182 2019-11-05 Tom Tromey <tom@tromey.com>
2184 * tui/tui-source.h (struct tui_source_window): Inline
2185 constructor. Remove destructor.
2186 <style_changed, m_observable>: Move to superclass.
2187 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2188 (struct tui_source_window_base): Move private members to end.
2189 <style_changed, m_observable>: Move from tui_source_window.
2190 * tui/tui-winsource.c (tui_copy_source_line): Move from
2191 tui-source.c. Rename from copy_source_line. Add special handling
2192 for negative line number.
2193 (tui_source_window_base::style_changed): Move from
2195 (tui_source_window_base): Register observer.
2196 (~tui_source_window_base): New.
2197 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2199 (tui_source_window::set_contents): Use tui_copy_source_line.
2200 (tui_source_window::tui_source_window): Move to tui-source.h.
2201 (tui_source_window::~tui_source_window): Remove.
2202 (tui_source_window::style_changed): Move to superclass.
2203 * tui/tui-disasm.c (tui_disassemble): Create string file with
2204 styling, when possible. Add "addr_size" parameter.
2205 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2206 Don't compute maximum size.
2207 (len_without_escapes): New function
2209 2019-11-05 Tom Tromey <tom@tromey.com>
2211 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2213 * tui/tui-winsource.c (tui_show_source_line): Update.
2214 * tui/tui-source.c (tui_source_window::set_contents): Update.
2215 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2217 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2219 * symtab.h (gdb_static_assert): Put && operator at the beginning
2220 of the line instead of the end.
2222 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2224 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2225 and sizeof (symbol).
2226 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2228 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2230 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2231 * configure.host: Mark *-*-solaris2.10* obsolete.
2232 * configure.tgt: Mark Solaris < 11 obsolete.
2233 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2234 Update target triplet.
2236 2019-11-01 Tom Tromey <tromey@adacore.com>
2238 * utils.c (print_sys_errmsg): Simplify.
2240 2019-11-01 Tom Tromey <tromey@adacore.com>
2242 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2244 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2246 * configure: Regenerate.
2247 * configure.ac: Remove check for strerror_r.
2248 * gdbsupport/common.m4: Check for strerror_r.
2250 2019-11-01 Luis Machado <luis.machado@linaro.org>
2254 * arm-tdep.c (arm_per_objfile): Rename to ...
2255 (arm_per_bfd): ... this.
2256 (arm_objfile_data_key): Rename to ...
2257 (arm_bfd_data_key): ... this.
2258 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2260 (arm_record_special_symbol): Likewise.
2262 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2264 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2266 * c-typeprint.c (c_print_typedef): Likewise.
2267 * f-typeprint.c (f_print_typedef): Likewise.
2268 * m2-typeprint.c (m2_print_typedef): Likewise.
2269 * p-typeprint.c (pascal_print_typedef): Likewise.
2270 * rust-lang.c (rust_print_typedef): Likewise.
2271 * symtab.c (print_symbol_info): Print a newline after calling
2274 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2276 * symtab.c (info_module_cmdlist): New variable.
2277 (info_module_command): New function.
2278 (search_module_symbols): New function.
2279 (info_module_subcommand): New function.
2280 (struct info_modules_var_func_options): New struct.
2281 (info_modules_var_func_options_defs): New variable.
2282 (make_info_modules_var_func_options_def_group): New function.
2283 (info_module_functions_command): New function.
2284 (info_module_variables_command): New function.
2285 (info_module_var_func_command_completer): New function.
2286 (_initialize_symtab): Register new 'info module functions' and
2287 'info module variables' commands.
2288 * symtab.h (typedef symbol_search_in_module): New typedef.
2289 (search_module_symbols): Declare new function.
2290 * NEWS: Mention new commands.
2292 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2294 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2295 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2296 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2298 (scan_partial_symbols): Only create partial module symbols for non
2300 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2302 * symtab.c (search_domain_name): Likewise.
2303 (search_symbols): Likewise.
2304 (print_symbol_info): Likewise.
2305 (symtab_symbol_info): Likewise.
2306 (info_modules_command): New function.
2307 (_initialize_symtab): Register 'info modules' command.
2308 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2309 * NEWS: Mention new 'info modules' command.
2311 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2313 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2314 and $_gdb_maint_setting_str.
2316 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2318 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2319 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2320 (str_value_from_setting, gdb_setting_str_internal_fn)
2321 (gdb_maint_setting_str_internal_fn): New functions.
2322 (_initialize_cli_cmds): Define the new convenience functions.
2323 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2324 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2326 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2328 * agent.c (set_can_use_agent): When the setting is turned on,
2329 look up agent symbols if we don't have them yet.
2330 (agent_new_objfile): Don't look up agent symbols when the agent
2333 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2335 * config.in: Regenerate.
2337 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2339 * configure: Regenerate.
2340 * configure.ac: Check for strerror_r.
2341 * gdbsupport/common-utils.h (safe_strerror): Change return value
2342 to const char * and document that this function is now threadsafe.
2343 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2344 thread_local and call strerror_r, if available.
2345 * utils.c (perror_string): Update.
2346 (print_sys_errmsg): Update.
2348 2019-10-31 Luis Machado <luis.machado@linaro.org>
2350 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2352 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2353 objfile to fetch per-bfd data.
2354 (arm_find_exidx_entry): Likewise.
2356 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2358 * gdbsupport/agent.c (debug_agent): Change type to bool.
2359 (use_agent): Likewise.
2360 (all_agent_symbols_look_up): Likewise.
2361 (agent_loaded_p): Change return value to bool.
2362 (agent_look_up_symbols): Update.
2363 (agent_capability_check): Change return value to bool.
2364 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2365 (debug_agent): Change type to bool.
2366 (use_agent): Likewise.
2367 (agent_capability_check): Change return value to bool.
2369 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2371 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2372 (build_minimal_symbol_hash_tables): Code to clear the table moved
2373 to clear_minimal_symbol_hash_tables.
2374 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2377 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2379 * infcmd.c: Remove includes.
2380 * infrun.c: Remove includes.
2382 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2384 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2385 (grow_vect): Remove declaration.
2386 (ada_type_of_array): Remove declaration.
2387 (ada_update_initial_language): Remove declaration.
2388 (ada_fold_name): Remove declaration.
2389 (ada_fill_in_ada_prototype): Remove declaration.
2390 (user_select_syms): Remove declaration.
2391 (get_selections): Remove declaration.
2392 (ada_tag_type): Remove declaration.
2393 (ada_value_tag): Remove declaration.
2394 (ada_is_others_clause): Remove declaration.
2395 (ada_in_variant): Remove declaration.
2396 (ada_value_struct_elt): Remove declaration.
2397 (ada_attribute_name): Remove declaration.
2398 (ada_system_address_type): Remove declaration.
2399 * ada-lang.c (ada_watch_location_expression): Make static.
2400 (GROW_VECT): Move here from ada-lang.h.
2401 (grow_vect): Make static.
2402 (ada_update_initial_language): Make static.
2403 (ada_fold_name): Make static.
2404 (ada_type_of_array): Make static.
2405 (encoded_ordered_before): Move up.
2406 (sort_choices): Move up.
2407 (print_signatures): Move up.
2408 (ada_print_symbol_signature): Move up.
2409 (get_selections): Move up and make static.
2410 (user_select_syms): Move up and make static.
2411 (ada_value_struct_elt): Move up and make static.
2412 (ada_tag_type): Make static.
2413 (ada_value_tag): Make static.
2414 (ada_is_others_clause): Make static.
2415 (ada_in_variant): Make static.
2416 (ada_attribute_name): Make static.
2418 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2420 * ada-lang.c: Remove includes.
2421 * ada-typeprint.c: Remove includes.
2422 * ada-valprint.c: Remove includes.
2424 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2426 * addrmap.c: Add static assertions of type size, moved from
2427 _initialize_addrmap.
2428 (_initialize_addrmap): Remove.
2430 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2432 * coffread.c (record_minimal_symbol): Update.
2433 (process_coff_symbol): Update.
2434 * dbxread.c (read_dbx_symtab): Update.
2435 * dwarf2read.c (add_partial_symbol): Update.
2436 (fixup_go_packaging): Update.
2437 (load_partial_dies): Update.
2438 (new_symbol): Update.
2439 * elfread.c (record_minimal_symbol): Change signature to use
2440 gdb::string_view instead of name+len.
2441 (elf_symtab_read): Update.
2442 (elf_rel_plt_read): Update.
2443 * mdebugread.c (parse_partial_symbols): Update.
2444 (handle_psymbol_enumerators): Update.
2445 (new_symbol): Update.
2446 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2447 to use gdb::string_view instead of name+len.
2448 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2449 * psympriv.h (add_psymbol_to_list): Likewise.
2450 * psymtab.c (add_psymbol_to_bcache): Likewise.
2451 (add_psymbol_to_list): Likewise.
2452 * stabsread.c (define_symbol): Update.
2453 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2454 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2455 (symbol_set_names): Likewise.
2456 * xcoffread.c (scan_xcoff_symtab): Update.
2458 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2460 * symtab.h (symbol_set_names): Document that copy_name must be
2461 set to true for non-nullterminated strings.
2462 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2463 linkage_name if the entry was not found and we need to demangle.
2465 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2467 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2468 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2469 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2470 * gdbsupport/gdb_binary_search.h: New file.
2472 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2474 * NEWS: Mention new --with-system-gdbinit-dir option.
2475 * config.in: Regenerate.
2476 * configure: Regenerate.
2477 * configure.ac: Add new option --with-system-gdbinit-dir.
2478 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2479 for a ".gdb" suffix.
2480 * main.c (get_init_files): Change system_gdbinit argument to
2481 a vector and return the files in SYSTEM_GDBINIT_DIR in
2482 addition to SYSTEM_GDBINIT.
2483 (captured_main_1): Update.
2484 (print_gdb_help): Update.
2485 * top.c (print_gdb_configuration): Also print the value of
2488 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2490 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2491 that takes gdb::string_view arguments.
2493 2019-10-26 Tom de Vries <tdevries@suse.de>
2495 * aarch64-linux-tdep.c: Fix typos in comments.
2496 * aarch64-tdep.c: Same.
2498 * amd64-nat.c: Same.
2500 * arch/aarch64-insn.c: Same.
2502 * breakpoint.h: Same.
2505 * cli/cli-decode.c: Same.
2506 * cli/cli-script.c: Same.
2507 * cli/cli-utils.h: Same.
2508 * coff-pe-read.c: Same.
2510 * compile/compile-cplus-symbols.c: Same.
2511 * compile/compile-object-run.c: Same.
2512 * completer.c: Same.
2514 * cp-support.c: Same.
2516 * dwarf-index-write.c: Same.
2517 * dwarf2-frame.c: Same.
2518 * dwarf2-frame.h: Same.
2520 * frame-base.h: Same.
2525 * guile/scm-objfile.c: Same.
2526 * i386-tdep.c: Same.
2527 * i386-tdep.h: Same.
2530 * linux-nat.c: Same.
2531 * m68k-tdep.c: Same.
2534 * mi/mi-cmd-disas.c: Same.
2535 * mi/mi-getopt.h: Same.
2536 * mi/mi-main.c: Same.
2538 * nat/aarch64-sve-linux-sigcontext.h: Same.
2540 * ppc-linux-nat.c: Same.
2541 * ppc-linux-tdep.c: Same.
2543 * progspace.h: Same.
2544 * prologue-value.h: Same.
2545 * python/py-evtregistry.c: Same.
2546 * python/py-instruction.h: Same.
2547 * record-btrace.c: Same.
2548 * record-full.c: Same.
2550 * rs6000-tdep.c: Same.
2552 * sol-thread.c: Same.
2553 * sparc-sol2-tdep.c: Same.
2554 * sparc64-tdep.c: Same.
2555 * stabsread.c: Same.
2559 * tracepoint.c: Same.
2560 * tui/tui-data.h: Same.
2561 * tui/tui-io.c: Same.
2562 * tui/tui-win.c: Same.
2564 * unittests/rsp-low-selftests.c: Same.
2565 * user-regs.h: Same.
2576 * xtensa-tdep.c: Same.
2578 2019-10-25 Ali Tamur <tamur@google.com>
2580 * charset.c (find_charset_names): Reflect API change.
2582 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2584 * symtab.c (struct demangled_name_entry): Change demangled name
2585 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2586 part of the struct anymore.
2587 (symbol_set_names): No longer obstack allocate + copy the demangled
2588 name, just store the allocated name from bfd.
2590 2019-10-25 Tom Tromey <tromey@adacore.com>
2592 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2593 (bsearch_cie_cmp, add_cie): Remove.
2594 (find_cie): Reimplement.
2595 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2596 (dwarf2_build_frame_info): Update.
2598 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2601 * symfile.c (reread_symbols): Call forget_cached_source_info to
2602 clear the stale source cache.
2604 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2606 * configure: Regenerate.
2607 * configure.ac: Remove code that sets python_has_threads.
2609 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2611 * config.in: Regenerate.
2612 * configure: Regenerate.
2613 * configure.ac: Remove the code that uses sed to get the python
2614 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2616 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2618 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2621 2019-10-23 Tom Tromey <tom@tromey.com>
2623 * arc-tdep.c: Remove ".." from include.
2624 * frv-tdep.c: Remove ".." from include.
2625 * lm32-tdep.c: Remove ".." from include.
2626 * microblaze-tdep.c: Remove ".." from include.
2627 * or1k-tdep.h: Remove ".." from include.
2628 * s12z-tdep.c: Remove ".." from include.
2629 * Makefile.in (OPCODES_CFLAGS): Add comment.
2630 (TOP_CFLAGS): New variable.
2631 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2633 2019-10-23 Tom Tromey <tom@tromey.com>
2635 * Makefile.in (READLINE_DIR): Update.
2637 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2639 * infcall.c (call_function_by_hand_dummy): Fix the function
2640 comment. And extract out a code section into...
2641 (reserve_stack_space): ...this new function.
2643 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645 * infcall.c (value_arg_coerce): Remove an unused parameter.
2646 (call_function_by_hand_dummy): Update the call to
2649 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2651 * infcall.c (call_function_by_hand_dummy): Refactor.
2653 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2655 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2657 2019-10-23 Tom Tromey <tom@tromey.com>
2659 * configure: Rebuild.
2660 * configure.ac: Don't check for sigprocmask.
2661 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2663 2019-10-23 Tom Tromey <tom@tromey.com>
2665 * configure: Rebuild.
2666 * acinclude.m4: Use m4_include, not sinclude.
2668 2019-10-23 Tom de Vries <tdevries@suse.de>
2670 PR breakpoints/24687
2671 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2673 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2675 * symtab.c (struct demangled_name_entry) <language>: Change from
2676 bitfield to regular variable.
2678 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2680 * symtab.c (struct demangled_name_entry): Add a constructor.
2681 (free_demangled_name_entry): New function to call the destructor
2682 for demangled_name_entry.
2683 (create_demangled_names_hash): Pass free_demangled_name_entry to
2685 (symbol_set_names): Call placement new for demangled_name_entry.
2686 * utils.c: No longer include xxhash.h here, now that fast_hash
2687 is inlined in the header.
2688 * utils.h: Instead, include it here.
2690 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2692 * Makefile.in: Link with libxxhash.
2693 * config.in: Regenerate.
2694 * configure: Regenerate.
2695 * configure.ac: Search for libxxhash.
2696 * utils.c (fast_hash): Use xxhash if present.
2698 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2700 * utils.h (fast_hash): New function.
2701 * symtab.c (hash_demangled_name_entry): Call new function
2704 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2706 * symtab.c (struct demangled_name_entry): Change type of mangled
2707 to gdb::string_view. Also adds a constructor that takes the
2709 (hash_demangled_name_entry): Update.
2710 (eq_demangled_name_entry): Update.
2711 (free_demangled_name_entry): New function to call the destructor
2712 now that this is not a POD anymore.
2713 (create_demangled_names_hash): Pass free_demangled_name_entry to
2715 (symbol_set_names): Update.
2717 2019-10-21 Ali Tamur <tamu@google.com>
2719 * dwarf2read.c (dir_index): Change type.
2720 (file_name_index): Likewise.
2721 (line_header::include_dir_at): Change comment and implementation on
2722 whether it is DWARF 5.
2723 (line_header::is_valid_file_index): New function.
2724 (line_header::file_name_at): Change comment and implementation on
2725 whether it is DWARF 5.
2726 (line_header::file_names): Change to private field renamed as
2727 m_file_names and introduce a new accessor method.
2728 (line_header::file_names_size): New method.
2729 (line_header::include_dirs): Change to private field and rename as
2731 (dw2_get_file_names_reader): Define local var at a smaller scope and
2733 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2734 (process_structure_scope): Likewise.
2735 (line_header::add_include_dir): Change message and reflect renaming.
2736 (line_header::add_file_name): Likewise.
2737 (read_formatted_entries): Handle DW_FORM_data16.
2738 (dwarf_decode_line_header): Fix line header length calculation.
2739 (psymtab_include_file_name): Change comment and API.
2740 (lnp_state_machine::m_file): Update comment and reflect type change.
2741 (lnp_state_machine::record_line): Reflect type change.
2742 (dwarf_decode_lines): Reflect API change.
2743 (file_file_name): Likewise.
2744 (file_full_name): Likewise.
2746 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2748 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2750 2019-10-21 Tom Tromey <tom@tromey.com>
2752 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2754 2019-10-21 Tom Tromey <tom@tromey.com>
2756 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2757 NM_H. Use AC_CONFIG_LINKS.
2758 * configure: Rebuild.
2759 * Makefile.in (NM_H): New variable.
2760 (generated_files): Add NM_H. Remove gcore.
2761 (nm.h, stamp-nmh): New targets.
2763 2019-10-20 Tom Tromey <tom@tromey.com>
2765 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2766 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2768 (put_objfile_before): Now static.
2770 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2772 * gdbsupport/common-utils.h (startswith): Change return type to
2775 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2777 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2778 * breakpoint.c (bp_locations_compare): Rename to...
2779 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2780 (update_global_location_list): Use std::sort instead of qsort.
2781 * buildsym.c (compare_line_numbers): Rename to...
2782 (lte_is_less_than): ...this, and change to std::sort semantics.
2783 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2785 * disasm.c (compare_lines): Rename to...
2786 (line_is_less_than): ...this, and change to std::sort semantics.
2787 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2789 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2790 (fde_is_less_than): ...this, and change to std::sort semantics.
2791 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2792 * mdebugread.c (compare_blocks):
2793 (block_is_less_than): ...this, and change to std::sort semantics.
2794 (sort_blocks): Call std::sort instead of qsort.
2795 * objfiles.c (qsort_cmp): Rename to...
2796 (sort_cmp): ...this, and change to std::sort semantics.
2797 (update_section_map): Call std::sort instead of qsort.
2798 * remote.c (compare_pnums): Remove.
2799 (map_regcache_remote_table): Call std::sort instead of qsort.
2800 * utils.c (compare_positive_ints): Remove.
2801 * utils.h (compare_positive_ints): Remove.
2802 * xcoffread.c (compare_lte): Remove.
2803 (arrange_linetable): Call std::sort instead of qsort.
2805 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2807 * symfile.c (init_entry_point_info): Fix typo.
2808 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2810 2019-10-18 Tom de Vries <tdevries@suse.de>
2812 * aarch64-tdep.c: Fix typos in comments.
2814 * ada-tasks.c: Same.
2815 * alpha-tdep.c: Same.
2816 * alpha-tdep.h: Same.
2817 * amd64-nat.c: Same.
2818 * amd64-windows-tdep.c: Same.
2821 * arch-utils.c: Same.
2822 * arm-nbsd-tdep.c: Same.
2825 * blockframe.c: Same.
2828 * coff-pe-read.c: Same.
2830 * cris-tdep.c: Same.
2831 * darwin-nat.c: Same.
2835 * dtrace-probe.c: Same.
2836 * dwarf-index-write.c: Same.
2837 * dwarf2-frame-tailcall.c: Same.
2838 * dwarf2-frame.c: Same.
2839 * dwarf2read.c: Same.
2841 * exceptions.c: Same.
2842 * fbsd-tdep.c: Same.
2846 * gnu-v3-abi.c: Same.
2848 * h8300-tdep.c: Same.
2849 * hppa-tdep.c: Same.
2850 * i386-linux-tdep.c: Same.
2851 * i386-tdep.c: Same.
2852 * ia64-libunwind-tdep.c: Same.
2853 * ia64-tdep.c: Same.
2857 * linux-nat.c: Same.
2858 * linux-thread-db.c: Same.
2859 * machoread.c: Same.
2860 * mdebugread.c: Same.
2862 * mn10300-tdep.c: Same.
2863 * namespace.c: Same.
2865 * opencl-lang.c: Same.
2866 * or1k-tdep.c: Same.
2868 * ppc-linux-nat.c: Same.
2869 * ppc-linux-tdep.c: Same.
2870 * ppc-sysv-tdep.c: Same.
2873 * record-btrace.c: Same.
2874 * record-full.c: Same.
2875 * remote-fileio.c: Same.
2877 * rs6000-tdep.c: Same.
2878 * s12z-tdep.c: Same.
2879 * score-tdep.c: Same.
2883 * sol-thread.c: Same.
2884 * solib-svr4.c: Same.
2887 * sparc-nat.c: Same.
2888 * sparc-sol2-tdep.c: Same.
2889 * sparc-tdep.c: Same.
2890 * sparc64-tdep.c: Same.
2891 * stabsread.c: Same.
2895 * target-descriptions.c: Same.
2896 * target-float.c: Same.
2903 * windows-nat.c: Same.
2904 * xcoffread.c: Same.
2905 * xstormy16-tdep.c: Same.
2906 * xtensa-tdep.c: Same.
2908 2019-10-17 Tom Tromey <tromey@adacore.com>
2910 * configure: Rebuild.
2911 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2912 in AC_CONFIG_FILES invocation.
2913 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2914 new-style config.status invocation.
2916 2019-10-17 Tom de Vries <tdevries@suse.de>
2918 * arm-nbsd-nat.c: Fix typos in comments.
2920 * darwin-nat-info.c: Same.
2921 * dwarf2read.c: Same.
2923 * event-top.c: Same.
2926 * hppa-tdep.c: Same.
2927 * i386-tdep.c: Same.
2930 * mdebugread.c: Same.
2931 * moxie-tdep.c: Same.
2932 * nto-procfs.c: Same.
2934 * ppc-linux-tdep.c: Same.
2936 * riscv-tdep.c: Same.
2937 * s390-tdep.c: Same.
2939 * sparc-linux-tdep.c: Same.
2940 * sparc-nat.c: Same.
2942 * target-descriptions.c: Same.
2946 2019-10-16 Tom Tromey <tom@tromey.com>
2948 * objfiles.h (struct objfile) <original_name>: Now const.
2950 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2952 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2953 pass on to sigsetjmp's second argument.
2954 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2956 2019-10-16 Keith Seitz <keiths@redhat.com>
2959 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2960 sections whose size is greater than the file size.
2962 2019-10-16 Jim Wilson <jimw@sifive.com>
2964 * riscv-tdep.c (riscv_gcc_target_options): New.
2965 (riscv_gnu_triplet_regexp): New.
2966 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2967 set_gdbarch_gnu_triplet_regexp.
2969 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2971 * Makefile.in: Add xml-builtin.h.
2972 * features/feature_to_c.sh: Add an include for xml-builtin.h
2973 to ensure that the compiler checks that the types match.
2974 * xml-builtin.h: New file.
2975 * xml-support.c (fetch_xml_builtin): Add missing const.
2976 * xml-support.h: Remove declaration of xml_builtins.
2978 2019-10-16 Tom de Vries <tdevries@suse.de>
2981 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2982 (amd64_classify_aggregate): ... here.
2983 (amd64_classify_aggregate_field): Handled fiels of nested structs
2986 2019-10-16 Tom de Vries <tdevries@suse.de>
2989 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2990 that handles 'theclass'.
2992 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2994 * linespec.c (decode_digits_ordinary): Update comment.
2995 * make-target-delegates: No longer need to handle VEC case.
2996 * memrange.c (normalize_mem_ranges): Update comment.
2997 * namespace.c (add_using_directive): Update comment.
2998 * objc-lang.c (uniquify_strings): Update comment.
2999 * ppc-linux-nat.c (struct thread_points): Update comment.
3000 * probe.h (find_probes_in_objfile): Update comment.
3001 * target.h (enum flash_preserve_mode): Update comment.
3002 * varobj.c (varobj_restrict_range): Update comment.
3003 * varobj.h (varobj_list_children): Update comment.
3005 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3007 * Makefile.in: Remove references to vec.h and vec.c.
3008 * aarch64-tdep.c: No longer include vec.h.
3009 * ada-lang.c: Likewise.
3010 * ada-lang.h: Likewise.
3011 * arm-tdep.c: Likewise.
3013 * breakpoint.h: Likewise.
3014 * charset.c: Likewise.
3015 * cp-support.h: Likewise.
3016 * dtrace-probe.c: Likewise.
3017 * dwarf2read.c: Likewise.
3018 * extension.h: Likewise.
3019 * gdb_bfd.c: Likewise.
3020 * gdbsupport/gdb_vecs.h: Likewise.
3021 * gdbsupport/vec.c: Remove.
3022 * gdbsupport/vec.h: Remove.
3023 * gdbthread.h: Likewise.
3024 * guile/scm-type.c: Likewise.
3025 * inline-frame.c: Likewise.
3026 * machoread.c: Likewise.
3027 * memattr.c: Likewise.
3028 * memrange.h: Likewise.
3029 * namespace.h: Likewise.
3030 * nat/linux-btrace.h: Likewise.
3031 * osdata.c: Likewise.
3032 * parser-defs.h: Likewise.
3033 * progspace.h: Likewise.
3034 * python/py-type.c: Likewise.
3035 * record-btrace.c: Likewise.
3036 * rust-exp.y: Likewise.
3037 * solib-target.c: Likewise.
3038 * stap-probe.c: Likewise.
3039 * target-descriptions.c: Likewise.
3040 * target-memory.c: Likewise.
3041 * target.h: Likewise.
3042 * varobj.c: Likewise.
3043 * varobj.h: Likewise.
3044 * xml-support.h: Likewise.
3046 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3048 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3049 Update for new std::vector based implementation.
3050 (process_psymtab_comp_unit_reader): Likewise.
3051 (scan_partial_symbols): Likewise.
3052 (recursively_compute_inclusions): Likewise.
3053 (compute_compunit_symtab_includes): Likewise.
3054 (process_imported_unit_die): Likewise.
3055 (queue_and_load_dwo_tu): Likewise.
3056 (follow_die_sig_1): Likewise.
3057 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3058 (typedef dwarf2_per_cu_ptr): Remove.
3059 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3061 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3062 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3063 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3064 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3067 2019-10-15 Tom Tromey <tromey@adacore.com>
3069 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3072 2019-10-15 Tom Tromey <tromey@adacore.com>
3074 * windows-nat.c (windows_nat_target::fetch_registers)
3075 (windows_nat_target::store_registers): Rename "pid" to "tid".
3077 2019-10-15 Tom Tromey <tromey@adacore.com>
3079 * gdbarch.h, gdbarch.c: Rebuild.
3080 * gdbarch.sh (gcc_target_options): Change return type to
3082 * compile/compile.c (get_args): Update.
3083 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3084 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3086 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3088 * arch-utils.c (default_gcc_target_options): Return std::string.
3089 * arch-utils.h (default_gcc_target_options): Return std::string.
3090 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3092 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3094 * breakpoint.c (breakpoint_chain): Make static.
3095 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3096 of accessing breakpoint_chain.
3098 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3100 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3101 to a gdb::function_view and return value to bool.
3102 * breakpoint.h (iterate_over_breakpoints): Likewise.
3103 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3104 (pop_dummy_frame): Update.
3105 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3106 (gdbscm_breakpoints): Update.
3107 * python/py-breakpoint.c (build_bp_list): Update.
3108 (gdbpy_breakpoints): Update.
3109 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3111 (bpfinishpy_handle_stop): Update.
3112 (bpfinishpy_handle_exit): Update.
3113 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3114 (svr4_update_solib_event_breakpoints): Update.
3116 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3118 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3119 when unwrapping single-field structs.
3121 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3123 * dwarf2read.c: Remove includes.
3125 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3127 * ui-out.c (ui_out::call_do_message): Silence
3128 -Wformat-nonliteral warning.
3130 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3132 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3133 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3134 include: readline/tilde.h.
3136 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3138 * remote.c (remote_target::get_trace_status): Remove declaration of
3139 trace_regblock_size.
3141 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3143 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3144 (show_user): Remove declaration of cmdlist.
3145 * cli/cli-cmds.h (max_user_call_depth): Declare.
3146 * cli/cli-script.c (execute_user_command): Remove declaration
3147 of max_user_call_depth.
3149 2019-10-11 Jim Wilson <jimw@sifive.com>
3151 * gdbsupport/print-utils.h (pulongest): Fix comment.
3152 (plongest): Likewise.
3153 (phex): Add missing comment, mention leading zeros.
3154 (phex_nz): Add mention of no leading zeros to comment.
3156 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3157 plongest instead of unsigned long long cast.
3159 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3161 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3162 for external_editor_command and gdbtk_test.
3164 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3166 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3167 * varobj.c (varobjdebug): Move comment to...
3168 * varobj.h (varobjdebug): ...here, and declare.
3170 2019-10-09 Tom Tromey <tom@tromey.com>
3172 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3175 2019-10-09 Tom Tromey <tom@tromey.com>
3177 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3178 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3179 * tui/tui-command.c (tui_cmd_window::resize)
3180 (tui_refresh_cmd_win): Update.
3181 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3182 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3183 * tui/tui-data.c (~tui_gen_win_info): Remove.
3184 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3185 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3186 (tui_redisplay_readline, tui_mld_flush)
3187 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3188 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3189 (tui_data_window::erase_data_content)
3190 (tui_data_item_window::rerender)
3191 (tui_data_item_window::refresh_window): Update.
3192 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3193 (box_win, tui_gen_win_info::make_window)
3194 (tui_gen_win_info::make_visible): Update.
3195 (tui_delete_win): Remove.
3196 * tui/tui-winsource.c
3197 (tui_source_window_base::do_erase_source_content): Update.
3198 (tui_show_source_line, tui_source_window_base::update_tab_width)
3199 (tui_source_window_base::update_exec_info): Update.
3200 * tui/tui-data.h (struct curses_deleter): New.
3201 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3202 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3204 2019-10-09 Tom Tromey <tom@tromey.com>
3206 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3208 2019-10-09 Tom Tromey <tom@tromey.com>
3210 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3211 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3213 2019-10-09 Tom Tromey <tom@tromey.com>
3215 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3216 window height directly.
3217 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3219 * tui/tui-layout.c (tui_default_win_height): Remove.
3220 (tui_default_win_viewport_height): Remove.
3222 2019-10-09 Tom Tromey <tom@tromey.com>
3224 * tui/tui.h: Remove comments.
3226 2019-10-09 Tom de Vries <tdevries@suse.de>
3228 * python/lib/gdb/printer/bound_registers.py: Use
3229 '^builtin_type_bound128' as regexp argument for
3230 add_builtin_pretty_printer.
3232 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3234 * guile/guile.c (guile_extension_script_ops): Remove forward
3235 declaration and mark as static.
3236 (guile_script_ops): Likewise.
3237 (extension_language_guile): Move further down in the file so
3238 it can reference the definitions for guile_{extension_,}script_ops.
3240 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3242 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3243 except SORTL, DFLTCC, and KDSA.
3245 2019-10-08 Tom Tromey <tromey@adacore.com>
3247 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3248 (struct safe_symbol_file_add_args): Remove.
3250 2019-10-08 Tom Tromey <tromey@adacore.com>
3252 * windows-nat.c: Don't include buildsym-legacy.h.
3254 2019-10-08 Tom Tromey <tromey@adacore.com>
3256 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3258 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3260 * gdbtypes.c (overload_debug): Move comment to header.
3261 * gdbtypes.h (overload_debug): Declare.
3262 * valops.c: Remove declaration of overload_debug, instead
3265 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3267 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3269 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3271 * language.h (lang_frame_mismatch_warn): ... here. Also add
3273 * top.c (lang_frame_mismatch_warn): Remove declaration.
3274 (check_frame_language_change): Pass lang_frame_mismatch_warn
3277 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3279 * c-lang.h (vtbl_ptr_name): Declare.
3280 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3282 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3284 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3286 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3289 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3291 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3292 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3293 * ctfread.c: New file.
3294 * ctfread.h: New file.
3295 * elfread.c: Include ctfread.h.
3296 (struct elfinfo text_p): New member ctfsect.
3297 (elf_locate_sections): Mark CTF section.
3298 (elf_symfile_read): Call elfctf_build_psymtabs.
3299 * Makefile.in (LIBCTF): Add.
3302 (DIST): Add ctfread.c.
3304 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3306 * ctfread.c (struct nextfield): Renamed to ...
3307 (struct ctf_nextfield): ... this.
3308 (struct field_info): Renamed to ...
3309 (strut ctf_field_info): ... this.
3310 (attach_fields_to_type): Update for renamed structures.
3311 (ctf_add_member_cb): Likewise.
3312 (ctf_add_enum_member_cb): Likewise.
3313 (process_struct_members): Likewise.
3314 (process_enum_type): Likewise.
3316 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3318 * tracectf.h: Rename, was ctf.h.
3319 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3320 * tracefile.c: Likewise.
3321 * tracepoint.c: Remove unused include ctf.h.
3322 * mi/mi-main.c: Likewise.
3323 * Makefile.in Replace ctf.c with tracectf.c.
3325 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3327 * version.in: Change version number to "9.0.50.DATE-git".
3329 2019-10-03 Tom Tromey <tom@tromey.com>
3332 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3334 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3336 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3337 cp_search_name_hash.
3338 * NEWS: Add entry about nested function support.
3340 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3341 Andrew Burgess <andrew.burgess@embecosm.com>
3343 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3344 for nested static variables when searchin VAR_DOMAIN.
3345 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3346 global scope, update comment.
3347 (add_partial_subprogram): Call add_partial_subprogram recursively
3348 for nested subroutines when processinng Fortran.
3349 (load_partial_dies): Process the child entities of a subprogram
3350 when processing Fortran.
3351 (partial_die_parent_scope): Handle building scope
3352 for Fortran nested functions.
3353 (process_die): Record that nested functions have a scope.
3354 (new_symbol): Always record Fortran subprograms on the global
3356 (determine_prefix): How to build the prefix for Fortran
3359 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3361 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3362 have just sent the thread a SIGSTOP and are waiting for it to
3365 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3367 * btrace.c (btrace_add_pc): Remove whitespace before the template
3368 parameter in 'std::vector <...>'.
3369 (parse_xml_btrace_block): Likewise.
3370 (btrace_maint_decode_pt): Likewise.
3371 (btrace_maint_update_packets): Likewise.
3372 (btrace_maint_print_packets): Likewise.
3373 * btrace.h (struct btrace_maint_info): Likewise.
3374 * dwarf2read.c (struct type_unit_group): Likewise.
3375 (build_type_psymtabs_reader): Likewise.
3376 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3377 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3378 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3380 2019-10-03 Tom de Vries <tdevries@suse.de>
3382 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3383 the first line of the help text for set/show style metadata.
3385 2019-10-02 Tom Tromey <tromey@adacore.com>
3387 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3388 * gdbsupport/common-inferior.c: New file.
3389 * infcmd.c (startup_with_shell): Don't define.
3390 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3391 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3392 * inferior.h (startup_with_shell): Don't declare.
3394 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3396 * gdbsupport/gdb_assert.h: Include errors.h.
3397 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3399 2019-10-02 Tom Tromey <tromey@adacore.com>
3401 * NEWS: Add $_ada_exception entry.
3402 * ada-lang.c (struct ada_catchpoint): Add constructor.
3403 <m_kind>: New member.
3404 (allocate_location_exception, re_set_exception): Remove
3406 (should_stop_exception): Compute $_ada_exception.
3407 (check_status_exception, print_it_exception)
3408 (print_one_exception, print_mention_exception): Remove
3410 (allocate_location_catch_exception, re_set_catch_exception)
3411 (check_status_exception, print_it_catch_exception)
3412 (print_one_catch_exception, print_mention_catch_exception)
3413 (print_recreate_catch_exception)
3414 (allocate_location_catch_exception_unhandled)
3415 (re_set_catch_exception_unhandled)
3416 (check_status_exception, print_it_catch_exception_unhandled)
3417 (print_one_catch_exception_unhandled)
3418 (print_mention_catch_exception_unhandled)
3419 (print_recreate_catch_exception_unhandled)
3420 (allocate_location_catch_assert, re_set_catch_assert)
3421 (check_status_assert, print_it_catch_assert)
3422 (print_one_catch_assert, print_mention_catch_assert)
3423 (print_recreate_catch_assert)
3424 (allocate_location_catch_handlers, re_set_catch_handlers)
3425 (check_status_handlers, print_it_catch_handlers)
3426 (print_one_catch_handlers, print_mention_catch_handlers)
3427 (print_recreate_catch_handlers): Remove.
3428 (create_ada_exception_catchpoint): Update.
3429 (initialize_ada_catchpoint_ops): Update.
3431 2019-10-02 Tom Tromey <tromey@adacore.com>
3433 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3434 (create_excep_cond_exprs): Simplify exception string computation.
3435 (ada_exception_catchpoint_cond_string): Likewise.
3437 2019-10-02 Tom Tromey <tromey@adacore.com>
3439 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3440 * ada-lang.c (lesseq_defined_than): Handle
3442 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3444 (dwarf2_has_info): Likewise.
3445 (new_symbol): Set maybe_copied on symbol when
3447 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3449 <can_copy>: New member.
3450 * elfread.c (record_minimal_symbol): Set maybe_copied
3451 on symbol when appropriate.
3452 (elf_symfile_read): Update call to dwarf2_has_info.
3453 * minsyms.c (lookup_minimal_symbol_linkage): New
3455 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3456 * symtab.c (get_symbol_address, get_msymbol_address):
3458 * symtab.h (get_symbol_address, get_msymbol_address):
3460 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3462 (struct symbol, struct minimal_symbol) <maybe_copied>:
3465 2019-10-02 Tom Tromey <tromey@adacore.com>
3467 * source.c (struct current_source_location): New.
3468 (current_source_key): New global.
3469 (current_source_symtab, current_source_line)
3470 (current_source_pspace): Remove.
3471 (get_source_location): New function.
3472 (get_current_source_symtab_and_line)
3473 (set_default_source_symtab_and_line)
3474 (set_current_source_symtab_and_line)
3475 (clear_current_source_symtab_and_line, select_source_symtab)
3476 (info_source_command, print_source_lines_base)
3477 (info_line_command, search_command_helper, _initialize_source):
3480 2019-10-02 Tom Tromey <tromey@adacore.com>
3482 * source.c (select_source_symtab): Don't call
3483 decode_line_with_current_source.
3485 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3487 * symtab.c (lookup_global_symbol): Search global block.
3489 2019-10-02 Tom Tromey <tromey@adacore.com>
3491 * coffread.c (process_coff_symbol): Update.
3492 * dwarf2read.c (var_decode_location, new_symbol): Update.
3493 * mdebugread.c (parse_symbol): Update.
3494 * objfiles.c (relocate_one_symbol): Update.
3495 * stabsread.c (define_symbol, fix_common_block)
3496 (scan_file_globals): Update.
3497 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3498 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3499 * xcoffread.c (process_xcoff_symbol): Update.
3501 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3503 * MAINTAINERS: Update my email address.
3505 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3507 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3509 (build_type_psymtabs_reader): Update for std::vector.
3510 (build_type_psymtab_dependencies): Likewise.
3511 * dwarf2read.h: Remove use of DEF_VEC_P.
3512 (typedef sig_type_ptr): Delete.
3514 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3516 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3518 (btrace_maint_decode_pt): Likewise, and move allocation of the
3519 vector outside of the loop.
3520 (btrace_maint_update_packets): Update to handle change from VEC to
3522 (btrace_maint_print_packets): Likewise.
3523 (maint_info_btrace_cmd): Likewise.
3524 * btrace.h: Remove use of DEF_VEC_O.
3525 (typedef btrace_pt_packet_s): Delete.
3526 (struct btrace_maint_info) <packets>: Change fromm VEC to
3528 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3530 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3532 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3533 make accesses into the vector constant references.
3534 (btrace_add_pc): Update for std::vector.
3535 (btrace_stitch_bts): Likewise.
3536 (parse_xml_btrace_block): Likewise.
3537 (btrace_maint_update_packets): Likewise.
3538 (btrace_maint_print_packets): Likewise.
3539 (maint_info_btrace_cmd): Likewise.
3540 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3542 (btrace_data::empty): Likewise.
3543 (btrace_data_append): Likewise.
3544 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3545 (typedef btrace_block_s): Delete.
3546 (struct btrace_block): Add constructor.
3547 (struct btrace_data_bts) <blocks>: Change to std::vector.
3548 * nat/linux-btrace.c (perf_event_read_bts): Update for
3550 (linux_read_bts): Likewise.
3552 2019-10-01 Tom Tromey <tom@tromey.com>
3554 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3556 2019-10-01 Tom Tromey <tom@tromey.com>
3558 * stack.c (print_frame, info_frame_command_core): Use
3560 * linux-thread-db.c (try_thread_db_load_1)
3561 (try_thread_db_load_from_pdir_1): Use styled_string.
3562 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3563 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3564 (maybe_print_unsupported_script_warning)
3565 (maybe_print_script_not_found_warning): Use styled_string.
3566 * ada-lang.c (user_select_syms): Use styled_string.
3568 2019-10-01 Tom Tromey <tom@tromey.com>
3570 * p-lang.c (pascal_printstr): Use metadata style.
3571 * value.c (show_convenience): Use metadata style.
3572 * valprint.c (valprint_check_validity, val_print_optimized_out)
3573 (val_print_not_saved, val_print_unavailable)
3574 (val_print_invalid_address, generic_val_print, val_print)
3575 (value_check_printable, val_print_array_elements): Use metadata
3577 * ui-out.h (class ui_out) <field_fmt>: New overload.
3578 <do_field_fmt>: Add style parameter.
3579 * ui-out.c (ui_out::field_fmt): New overload.
3580 * typeprint.c (type_print_unknown_return_type)
3581 (val_print_not_allocated, val_print_not_associated): Use metadata
3583 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3585 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3586 * tracepoint.c (tvariables_info_1): Use metadata style.
3587 * stack.c (print_frame_arg, print_frame_info, print_frame)
3588 (info_frame_command_core): Use metadata style.
3589 * skip.c (info_skip_command): Use metadata style.
3590 * rust-lang.c (rust_print_enum): Use metadata style.
3591 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3593 * python/py-framefilter.c (py_print_single_arg): Use metadata
3595 * printcmd.c (do_one_display, print_variable_and_value): Use
3597 * p-valprint.c (pascal_val_print)
3598 (pascal_object_print_value_fields): Use metadata style.
3599 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3600 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3602 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3603 * m2-valprint.c (m2_print_long_set): Use metadata style.
3604 * m2-typeprint.c (m2_print_type): Use metadata style.
3605 * infcmd.c (print_return_value_1): Use metadata style.
3606 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3607 * f-valprint.c (info_common_command_for_block): Use metadata
3609 * f-typeprint.c (f_type_print_base): Use metadata style.
3610 * expprint.c (print_subexp_standard): Use metadata style.
3611 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3612 * cli/cli-style.h (class cli_style_option): Add constructor.
3613 (metadata_style): Declare.
3614 * cli/cli-style.c (metadata_style): New global.
3615 (_initialize_cli_style): Register metadata style.
3616 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3618 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3619 * c-typeprint.c (c_type_print_base_struct_union)
3620 (c_type_print_base_1): Use metadata style.
3621 * breakpoint.c (watchpoint_value_print)
3622 (print_one_breakpoint_location): Use metadata style.
3623 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3625 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3627 * ada-valprint.c (val_print_packed_array_elements, printstr)
3628 (print_field_values, ada_val_print_ref, ada_val_print): Use
3630 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3632 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3634 * ada-lang.c (user_select_syms): Use metadata style.
3636 2019-10-01 Tom Tromey <tom@tromey.com>
3638 * cli/cli-cmds.c (pwd_command): Style output.
3640 2019-10-01 Pedro Alves <palves@redhat.com>
3641 Tom Tromey <tom@tromey.com>
3643 * symtab.c (print_symbol_info): Use %ps.
3644 (print_msymbol_info): Use %ps.
3645 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3646 * printcmd.c (print_variable_and_value): Use %ps.
3647 * macrocmd.c (show_pp_source_pos): Use %ps.
3648 * infrun.c (print_exited_reason): Use ui_out::message.
3649 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3650 (describe_other_breakpoints): Use ui_out::message and new
3652 (say_where): Use new formats.
3653 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3656 2019-10-01 Pedro Alves <palves@redhat.com>
3657 Tom Tromey <tom@tromey.com>
3659 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3660 (test_gdb_formats): New function.
3661 (run_tests): Call it.
3662 (test_format_specifier): Update.
3663 * utils.h (fputs_filtered): Update comment.
3664 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3665 (fputs_styled_unfiltered): Declare.
3666 * utils.c (fputs_styled_unfiltered): New function.
3667 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3668 (vfprintf_filtered): Update.
3669 (vfprintf_unfiltered, vprintf_filtered): Update.
3670 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3671 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3672 disallow_ui_out_field>: New constants.
3673 (enum class field_kind): New.
3674 (struct base_field_s, struct signed_field_s): New.
3675 (signed_field): New function.
3676 (struct string_field_s): New.
3677 (string_field): New function.
3678 (struct styled_string_s): New.
3679 (styled_string): New function.
3680 (class ui_out) <message>: Add comment.
3681 <vmessage, call_do_message>: New methods.
3682 <do_message>: Add style parameter.
3683 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3685 (ui_out::message): Rewrite.
3686 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3688 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3689 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3690 gdb_extensions parameter.
3691 (class format_piece): Add parameter to constructor.
3692 (n_int_args): New field.
3693 * gdbsupport/format.c (format_pieces::format_pieces): Add
3694 gdb_extensions parameter. Handle '*'.
3695 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3696 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3697 vfprintf_styled_no_gdbfmt.
3698 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3699 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3701 * ui-style.h (struct ui_file_style) <ptr>: New method.
3703 2019-10-01 Tom Tromey <tom@tromey.com>
3705 * unittests/format_pieces-selftests.c: Update. Add final format.
3706 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3707 empty literal pieces.
3709 2019-10-01 Tom Tromey <tom@tromey.com>
3711 * ui-out.h (enum class ui_out_style_kind): Remove.
3712 (class ui_out) <field_string, field_stsream, do_field_string>:
3713 Change type of "style".
3714 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3715 (ui_out::field_string): Update.
3716 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3718 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3719 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3720 * stack.c (print_frame_arg, print_frame_info, print_frame):
3722 * source.c (print_source_lines_base): Update.
3723 * solib.c (info_sharedlibrary_command): Update.
3724 * skip.c (info_skip_command): Update.
3725 * record-btrace.c (btrace_call_history_src_line)
3726 (btrace_call_history): Update.
3727 * python/py-framefilter.c (py_print_frame): Update.
3728 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3730 * mi/mi-out.c (mi_ui_out::do_table_header)
3731 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3732 (mi_ui_out::do_field_string): Update.
3733 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3735 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3737 * cli-out.c (cli_ui_out::do_table_header)
3738 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3739 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3740 (cli_ui_out::do_field_fmt): Update.
3741 * breakpoint.c (print_breakpoint_location): Update.
3742 (update_static_tracepoint): Update.
3744 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3746 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3747 conversion of gdb_datadir.
3748 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3749 remove not needed c_str ().
3751 2019-09-30 Ali Tamur <tamur@google.com>
3753 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3754 (dwarf2_string_attr): Likewise.
3756 2019-09-30 Ali Tamur <tamur@google.com>
3758 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3759 (process_full_type_unit): Likewise.
3760 (dump_die_shallow): Likewise.
3761 (cu_debug_loc_section): Likewise.
3763 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3765 * minsyms.c (compare_minimal_symbols): Rename to...
3766 (minimal_symbol_is_less_than): ...this, and adjust to STL
3767 conventions (return bool, take arguments as references)
3768 (minimal_symbol_reader::install): Call std::sort instead
3771 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3773 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3775 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3776 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3778 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3780 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3781 * psympriv.h (add_psymbol_to_list): Move comment here and update
3784 2019-09-29 Tom de Vries <tdevries@suse.de>
3786 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3787 Use $tmpdir/$(basename "$output_file").dwz instead of
3788 "${output_file}.dwz".
3790 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3793 * hppa-linux-nat.c: Include gdbarch.h.
3795 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3797 * blockframe.c (find_pc_partial_function): Change return type to bool.
3798 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3799 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3800 (stub_gnu_ifunc_resolve_name): Likewise.
3801 * symtab.c (compare_filenames_for_search): Likewise.
3802 (compare_glob_filenames_for_search): Likewise.
3803 (matching_obj_sections): Likewise.
3804 (symbol_matches_domain): Likewise.
3805 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3806 (find_line_pc): Change return type to bool.
3807 (find_line_pc_range): Likewise.
3808 (producer_is_realview): Likewise.
3809 * symtab.h (symbol_matches_domain): Likewise.
3810 (find_pc_partial_function): Likewise.
3811 (find_pc_line_pc_range): Likewise.
3812 (in_gnu_ifunc_stub): Likewise.
3813 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3814 (find_line_pc): Likewise.
3815 (find_line_pc_range): Likewise.
3816 (matching_obj_sections): Likewise.
3817 (find_line_symtab): Change out parameter to bool.
3818 (producer_is_realview): Change return type to bool.
3819 (compare_filenames_for_search): Likewise.
3820 (compare_glob_filenames_for_search): Likewise.
3822 2019-09-26 Tom Tromey <tom@tromey.com>
3824 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3825 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3826 * gdb_usleep.h: Remove.
3827 * gdb_usleep.c: Remove.
3828 * utils.c: Don't include gdb_usleep.h.
3830 2019-09-26 Tom Tromey <tromey@adacore.com>
3832 * python/py-type.c (type_to_type_object): Call check_typedef
3835 2019-09-26 Tom Tromey <tom@tromey.com>
3837 * utils.h (initialize_utils): Don't declare.
3838 * top.c (gdb_init): Don't call initialize_utils.
3839 * utils.c (initialize_utils): Remove. Move contents...
3840 (_initialize_utils): ... here.
3842 2019-09-25 Tom Tromey <tom@tromey.com>
3844 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3845 * utils.h (make_hex_string): Don't declare.
3846 * utils.c (make_hex_string): Remove.
3848 2019-09-24 Tom de Vries <tdevries@suse.de>
3851 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3852 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3854 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3856 * NEWS: Mention new simulator port for PRU.
3858 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3860 * ada-exp.y (write_object_remaining): Update.
3861 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3862 and eliminate the static buffer.
3863 (ada_decode_symbol): Update.
3864 (ada_la_decode): Update.
3865 (ada_sniff_from_mangled_name): Update.
3866 (is_valid_name_for_wild_match): Update.
3867 (ada_lookup_name_info::matches): Update and simplify.
3868 (name_matches_regex): Update.
3869 (ada_add_global_exceptions): Update.
3870 * ada-lang.h (ada_decode): Update signature.
3871 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3872 * dwarf-index-write.c (debug_names::insert): Update.
3874 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3876 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3879 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3881 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3882 Change "nonzero" to "true" in documentation.
3884 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3886 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3887 (_initialize_darwin_solib): Don't set
3888 darwin_so_ops.lookup_lib_global_symbol.
3889 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3890 set_gdbarch_iterate_over_objfiles_in_search_order.
3891 (elf_lookup_lib_symbol): Rename to...
3892 (svr4_iterate_over_objfiles_in_search_order): this, and update
3893 to iterate semantics.
3894 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3895 * solib.c (solib_global_lookup): Remove.
3896 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3897 (solib_global_lookup): Remove.
3898 * symtab.c (lookup_global_or_static_symbol): Remove call to
3899 solib_global_lookup.
3901 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3903 * NEWS: Move entries about default MI version now being
3904 version 3, and about the GDB/MI fix for multi-location
3905 breakpoints to the "since GDB 8.3" section.
3907 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3911 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3913 * NEWS: Mention that Cell/B.E. debugging support was removed.
3914 * MAINTAINERS: Remove spu target.
3916 * config/djgpp/fnchange.lst: Remove entries for removed files.
3918 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3919 spu-multiarch.o, and spu-tdep.o.
3920 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3921 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3922 spu-multiarch.c, and spu-tdep.c.
3923 * spu-linux-nat.c: Remove file.
3924 * spu-multiarch.c: Remove file.
3925 * spu-tdep.c: Remove file.
3926 * spu-tdep.h: Remove file.
3927 * solib-spu.c: Remove file.
3928 * solib-spu.h: Remove file.
3930 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3931 * configure.nat (spu-linux): Remove.
3932 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3933 solib-multiarch.o from gdb_target_obs.
3936 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3938 (ppc_linux_no_features): Update.
3939 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3941 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3942 (tdesc_powerpc_cell64l): Likewise.
3943 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3944 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3946 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3947 Do not include "features/rs6000/powerpc-cell32l.c" or
3948 "features/rs6000/powerpc-cell64l.c".
3949 (ppc_linux_spu_section): Remove.
3950 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3951 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3952 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3953 (ppc_linux_spe_context_lookup): Remove.
3954 (ppc_linux_spe_context_inferior_created): Remove.
3955 (ppc_linux_spe_context_solib_loaded): Remove.
3956 (ppc_linux_spe_context_solib_unloaded): Remove.
3957 (ppc_linux_spe_context): Remove.
3958 (struct ppu2spu_cache): Remove.
3959 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3960 (struct ppu2spu_data): Remove.
3961 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3962 ppu2spu_unwind): Remove.
3963 (ppc_linux_init_abi): Remove Cell/B.E. support.
3964 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3966 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3967 (rs6000/powerpc-cell64l-expedite): Likewise
3968 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3969 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3970 rs6000/powerpc-cell64l.xml.
3971 * features/rs6000/powerpc-cell32l.xml: Remove.
3972 * features/rs6000/powerpc-cell64l.xml: Likewise.
3973 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3974 * features/rs6000/powerpc-cell64l.c: Likewise.
3975 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3976 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3977 * regformats/reg-spu.dat: Remove.
3979 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3980 * corelow.c (struct spuid_list): Remove.
3981 (add_to_spuid_list): Remove.
3982 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3983 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3984 (remote_protocol_features): Remove associated entries.
3985 (_initialize_remote): No longer initialize them.
3986 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3987 * linux-nat.c (SPUFS_MAGIC): Remove.
3988 (linux_proc_xfer_spu): Remove.
3989 (spu_enumerate_spu_ids): Remove.
3990 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3991 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3992 (linux_make_corefile_notes): No longer call it.
3994 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3995 (cooked_write_test): Likewise.
3997 2019-09-20 Tom Tromey <tom@tromey.com>
3999 * NEWS: Mention case-sensitivity of TUI commands.
4000 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4001 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4002 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4004 2019-09-20 Tom Tromey <tom@tromey.com>
4006 * tui/tui-source.c (tui_source_window::set_contents): Use
4007 make_unique_xstrdup.
4008 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4009 make_unique_xstrdup.
4011 2019-09-20 Tom Tromey <tom@tromey.com>
4013 * tui/tui-data.c: Remove separator comments.
4014 * tui/tui-layout.c: Remove separator comments.
4015 * tui/tui-win.c: Remove separator comments.
4016 * tui/tui-wingeneral.c: Remove separator comments.
4018 2019-09-20 Tom Tromey <tom@tromey.com>
4020 * tui/tui.h (strcat_to_buf): Don't declare.
4021 * tui/tui.c (strcat_to_buf): Remove.
4023 2019-09-20 Tom Tromey <tom@tromey.com>
4025 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4027 * tui/tui-source.c (tui_source_window::set_contents)
4028 (tui_source_window::location_matches_p)
4029 (tui_source_window::maybe_update): Update.
4031 2019-09-20 Tom Tromey <tom@tromey.com>
4033 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4035 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4037 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4038 (tui_data_window::line_from_reg_element_no)
4039 (tui_data_window::first_reg_element_no_inline)
4040 (tui_data_window::show_registers)
4041 (tui_data_window::show_register_group)
4042 (tui_data_window::display_registers_from)
4043 (tui_data_window::display_registers_from_line)
4044 (tui_data_window::first_data_item_displayed)
4045 (tui_data_window::delete_data_content_windows)
4046 (tui_data_window::erase_data_content)
4047 (tui_data_window::do_scroll_vertical)
4048 (tui_data_window::refresh_window)
4049 (tui_data_window::check_register_values): Update.
4051 2019-09-20 Tom Tromey <tom@tromey.com>
4053 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4054 (struct tui_locator_window) <full_name, proc_name>: Now
4056 * tui/tui-stack.c (tui_locator_window::make_status_line)
4057 (tui_locator_window::set_locator_fullname)
4058 (tui_locator_window::set_locator_info): Update.
4059 * tui/tui-source.c (tui_source_window::set_contents)
4060 (tui_source_window::showing_source_p): Update.
4062 2019-09-20 Tom Tromey <tom@tromey.com>
4064 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4065 Don't call tui_locator_win_info_ptr.
4067 2019-09-20 Tom Tromey <tom@tromey.com>
4069 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4071 2019-09-20 Tom Tromey <tom@tromey.com>
4073 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4075 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4076 * tui/tui-layout.c (show_source_disasm_command, show_data)
4077 (show_source_or_disasm_and_command): Use 1 as height for locator.
4079 2019-09-20 Tom Tromey <tom@tromey.com>
4081 * tui/tui.c (tui_enable): Update.
4082 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4084 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4086 * tui/tui-data.c (win_resized): Now bool.
4087 (tui_win_resized): Return bool.
4088 (tui_set_win_resized_to): Accept a bool.
4090 2019-09-20 Tom Tromey <tom@tromey.com>
4092 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4093 Change type of "refresh_values_only".
4094 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4095 type of "refresh_values_only".
4097 2019-09-20 Tom Tromey <tom@tromey.com>
4099 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4101 (tui_disassemble): Add "pos" parameter.
4102 (tui_disasm_window::set_contents): Simplify.
4104 2019-09-20 Tom Tromey <tom@tromey.com>
4106 * tui/tui-winsource.h (struct tui_source_window_base)
4107 <show_source_content>: Now private.
4108 * tui/tui-winsource.c
4109 (tui_source_window_base::show_source_content): Don't handle empty
4112 2019-09-20 Tom Tromey <tom@tromey.com>
4114 * tui/tui-layout.c (show_source_disasm_command)
4115 (show_source_or_disasm_and_command): Don't call
4116 show_source_content.
4118 2019-09-20 Tom Tromey <tom@tromey.com>
4120 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4122 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4123 from tui_make_status_line.
4124 (tui_locator_window::rerender): Update.
4126 2019-09-20 Tom Tromey <tom@tromey.com>
4128 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4129 (tui_locator_window::rerender): Update.
4131 2019-09-20 Tom Tromey <tom@tromey.com>
4133 * tui/tui-winsource.h (struct tui_source_window_base)
4134 <~tui_source_window_base>: Don't declare.
4136 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4137 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4139 * tui/tui-source.c (tui_source_window::set_contents): Update.
4140 (tui_source_window::location_matches_p)
4141 (tui_source_window::maybe_update): Update.
4143 2019-09-20 Tom Tromey <tom@tromey.com>
4145 * tui/tui-winsource.h (~tui_source_element): Remove.
4146 (tui_source_element): Update.
4147 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4148 * tui/tui-winsource.c (tui_show_source_line): Update.
4149 * tui/tui-source.c (tui_source_window::set_contents): Update.
4150 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4152 2019-09-20 Tom Tromey <tom@tromey.com>
4154 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4156 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4157 tui_clear_source_windows_detail.
4158 * tui/tui-winsource.h (struct tui_source_window_base)
4159 <clear_detail>: Don't declare.
4160 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4162 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4164 2019-09-20 Tom Tromey <tromey@adacore.com>
4167 * block.c (contained_in): Fix final return value.
4169 2019-09-20 Alan Modra <amodra@gmail.com>
4171 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4172 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4173 (read_indirect_string_from_dwz): Use bfd accessor.
4174 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4175 * machoread.c (macho_symfile_read_all_oso): Likewise.
4176 * solib.c (solib_bfd_open): Likewise.
4178 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4180 * eval.c: Move declaration of overload_resolution to...
4183 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4185 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4186 * arm-linux-tdep.c: Likewise.
4187 * arm-nbsd-nat.c: Likewise.
4188 * arm-tdep.h: Declare arm_apcs_32.
4189 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4191 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4193 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4194 * dwarf2read.h: Declare dwarf_always_disassemble.
4196 2019-09-19 Tom de Vries <tdevries@suse.de>
4199 * source-cache.c (source_cache::ensure): Catch exception thrown during
4200 construction of the highlighter.
4202 2019-09-18 Alan Modra <amodra@gmail.com>
4204 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4205 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4206 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4207 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4208 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4209 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4210 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4211 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4212 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4213 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4214 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4215 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4216 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4217 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4218 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4219 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4220 * mi/mi-interp.c: Update throughout for bfd section macro and
4222 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4223 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4225 2019-09-18 Tom Tromey <tom@tromey.com>
4228 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4230 (tui_enable): Do not call rl_initialize.
4232 2019-09-18 Christian Groessler <chris@groessler.org>
4234 * alpha-linux-nat.c: Include gdbarch.h.
4236 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4238 * ui-file.c: Include cli/cli-style.h.
4239 (term_cli_styling): Remove cli_styling declaration.
4241 2019-09-18 Alan Modra <amodra@gmail.com>
4243 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4244 to bfd_asymbol_section.
4246 2019-09-18 Alan Modra <amodra@gmail.com>
4248 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4249 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4250 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4252 2019-09-18 Alan Modra <amodra@gmail.com>
4254 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4255 * spu-linux-nat.c (spu_bfd_open): Likewise.
4257 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4259 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4260 to bool to match definition in dwarf2read.c.
4262 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4264 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4265 (print_signatures): Likewise.
4266 (trust_pad_over_xvs): Likewise.
4267 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4268 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4269 * arm-linux-nat.c (arm_apcs_32): Likewise.
4270 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4271 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4272 * arm-tdep.c (arm_debug): Likewise.
4273 (arm_apcs_32): Likewise.
4274 * auto-load.c (debug_auto_load): Likewise.
4275 (auto_load_gdb_scripts): Likewise.
4276 (global_auto_load): Likewise.
4277 (auto_load_local_gdbinit): Likewise.
4278 (auto_load_local_gdbinit_loaded): Likewise.
4279 * auto-load.h (global_auto_load): Likewise.
4280 (auto_load_local_gdbinit): Likewise.
4281 (auto_load_local_gdbinit_loaded): Likewise.
4282 * breakpoint.c (disconnected_dprintf): Likewise.
4283 (breakpoint_proceeded): Likewise.
4284 (automatic_hardware_breakpoints): Likewise.
4285 (always_inserted_mode): Likewise.
4286 (target_exact_watchpoints): Likewise.
4287 (_initialize_breakpoint): Update.
4288 * breakpoint.h (target_exact_watchpoints): Change to bool.
4289 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4290 * cli/cli-cmds.c (trace_commands): Likewise.
4291 * cli/cli-cmds.h (trace_commands): Likewise.
4292 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4294 * cli/cli-logging.c (logging_overwrite): Change to bool.
4295 (logging_redirect): Likewise.
4296 (debug_redirect): Likewise.
4297 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4298 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4300 <boolean_option_def>: Update.
4301 (struct flag_option_def): Change default type of Context to bool
4303 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4304 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4305 (get_setshow_command_value_string): Likewise.
4306 * cli/cli-style.c (cli_styling): Change to bool.
4307 (source_styling): Likewise.
4308 * cli/cli-style.h (source_styling): Likewise.
4309 (cli_styling): Likewise.
4310 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4312 * command.h (var_types): Update comment.
4313 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4314 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4316 (debug_compile_cplus_scopes): Likewise.
4317 * compile/compile-internal.h (compile_debug): Likewise.
4318 * compile/compile.c (compile_debug): Likewise.
4319 (struct compile_options) <raw>: Likewise.
4320 * cp-support.c (catch_demangler_crashes): Likewise.
4321 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4322 (usr_cmd_cris_dwarf2_cfi): Likewise.
4323 * csky-tdep.c (csky_debug): Likewise.
4324 * darwin-nat.c (enable_mach_exceptions): Likewise.
4325 * dcache.c (dcache_enabled_p): Likewise.
4326 * defs.h (info_verbose): Likewise.
4327 * demangle.c (demangle): Likewise.
4328 (asm_demangle): Likewise.
4329 * dwarf-index-cache.c (debug_index_cache): Likewise.
4330 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4331 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4332 * dwarf2read.c (check_physname): Likewise.
4333 (use_deprecated_index_sections): Likewise.
4334 (dwarf_always_disassemble): Likewise.
4335 * eval.c (overload_resolution): Likewise.
4336 * event-top.c (set_editing_cmd_var): Likewise.
4337 (exec_done_display_p): Likewise.
4338 * event-top.h (set_editing_cmd_var): Likewise.
4339 (exec_done_display_p): Likewise.
4340 * exec.c (write_files): Likewise.
4341 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4342 (debug_fbsd_nat): Likewise.
4343 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4345 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4346 <backtrace_past_entry> Likewise.
4347 * gdb-demangle.h (demangle): Likewise.
4348 (asm_demangle): Likewise.
4349 * gdb_bfd.c (bfd_sharing): Likewise.
4350 * gdbcore.h (write_files): Likewise.
4351 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4352 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4353 * gdbthread.h (print_thread_events): Likewise.
4354 * gdbtypes.c (opaque_type_resolution): Likewise.
4355 (strict_type_checking): Likewise.
4356 * gnu-nat.c (gnu_debug_flag): Likewise.
4357 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4358 * guile/scm-param.c (pascm_variable): Add boolval.
4359 (add_setshow_generic): Update.
4360 (pascm_param_value): Update.
4361 (pascm_set_param_value_x): Update.
4362 * hppa-tdep.c (hppa_debug): Change to bool..
4363 * infcall.c (may_call_functions_p): Likewise.
4364 (coerce_float_to_double_p): Likewise.
4365 (unwind_on_signal_p): Likewise.
4366 (unwind_on_terminating_exception_p): Likewise.
4367 * infcmd.c (startup_with_shell): Likewise.
4368 * inferior.c (print_inferior_events): Likewise.
4369 * inferior.h (startup_with_shell): Likewise.
4370 (print_inferior_events): Likewise.
4371 * infrun.c (step_stop_if_no_debug): Likewise.
4372 (detach_fork): Likewise.
4373 (debug_displaced): Likewise.
4374 (disable_randomization): Likewise.
4375 (non_stop): Likewise.
4376 (non_stop_1): Likewise.
4377 (observer_mode): Likewise.
4378 (observer_mode_1): Likewise.
4379 (set_observer_mode): Update.
4380 (sched_multi): Change to bool.
4381 * infrun.h (debug_displaced): Likewise.
4382 (sched_multi): Likewise.
4383 (step_stop_if_no_debug): Likewise.
4384 (non_stop): Likewise.
4385 (disable_randomization): Likewise.
4386 * linux-tdep.c (use_coredump_filter): Likewise.
4387 (dump_excluded_mappings): Likewise.
4388 * linux-thread-db.c (auto_load_thread_db): Likewise.
4389 (check_thread_db_on_load): Likewise.
4390 * main.c (captured_main_1): Update.
4391 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4392 xx2_opt, boolean_opt>: Change to bool.
4393 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4394 * maint.c (maintenance_profile_p): Likewise.
4395 (per_command_time): Likewise.
4396 (per_command_space): Likewise.
4397 (per_command_symtab): Likewise.
4398 * memattr.c (inaccessible_by_default): Likewise.
4399 * mi/mi-main.c (mi_async): Likewise.
4400 (mi_async_1): Likewise.
4401 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4402 * nat/fork-inferior.h (startup_with_shell): Likewise.
4403 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4404 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4405 * nios2-tdep.c (nios2_debug): Likewise.
4406 * or1k-tdep.c (or1k_debug): Likewise.
4407 * parse.c (parser_debug): Likewise.
4408 * parser-defs.h (parser_debug): Likewise.
4409 * printcmd.c (print_symbol_filename): Likewise.
4410 * proc-api.c (procfs_trace): Likewise.
4411 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4412 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4413 (set_parameter_value): Update.
4414 (add_setshow_generic): Update.
4415 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4417 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4419 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4420 * record-btrace.c (record_btrace_target::store_registers): Update.
4421 * record-full.c (record_full_memory_query): Change to bool.
4422 (record_full_stop_at_limit): Likewise.
4423 * record-full.h (record_full_memory_query): Likewise.
4424 * remote-notif.c (notif_debug): Likewise.
4425 * remote-notif.h (notif_debug): Likewise.
4426 * remote.c (use_range_stepping): Likewise.
4427 (interrupt_on_connect): Likewise.
4428 (remote_break): Likewise.
4429 * ser-tcp.c (tcp_auto_retry): Likewise.
4430 * ser-unix.c (serial_hwflow): Likewise.
4431 * skip.c (debug_skip): Likewise.
4432 * solib-aix.c (solib_aix_debug): Likewise.
4433 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4434 (spu_auto_flush_cache_p): Likewise.
4435 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4437 (struct info_print_options) <quiet>: Likewise.
4438 * symfile-debug.c (debug_symfile): Likewise.
4439 * symfile.c (auto_solib_add): Likewise.
4440 (separate_debug_file_debug): Likewise.
4441 * symfile.h (auto_solib_add): Likewise.
4442 (separate_debug_file_debug): Likewise.
4443 * symtab.c (basenames_may_differ): Likewise.
4444 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4445 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4446 (struct info_types_options) <quiet>: Likewise.
4447 * symtab.h (demangle): Likewise.
4448 (basenames_may_differ): Likewise.
4449 * target-dcache.c (stack_cache_enabled_1): Likewise.
4450 (code_cache_enabled_1): Likewise.
4451 * target.c (trust_readonly): Likewise.
4452 (may_write_registers): Likewise.
4453 (may_write_memory): Likewise.
4454 (may_insert_breakpoints): Likewise.
4455 (may_insert_tracepoints): Likewise.
4456 (may_insert_fast_tracepoints): Likewise.
4457 (may_stop): Likewise.
4458 (auto_connect_native_target): Likewise.
4459 (target_stop_and_wait): Update.
4460 (target_async_permitted): Change to bool.
4461 (target_async_permitted_1): Likewise.
4462 (may_write_registers_1): Likewise.
4463 (may_write_memory_1): Likewise.
4464 (may_insert_breakpoints_1): Likewise.
4465 (may_insert_tracepoints_1): Likewise.
4466 (may_insert_fast_tracepoints_1): Likewise.
4467 (may_stop_1): Likewise.
4468 * target.h (target_async_permitted): Likewise.
4469 (may_write_registers): Likewise.
4470 (may_write_memory): Likewise.
4471 (may_insert_breakpoints): Likewise.
4472 (may_insert_tracepoints): Likewise.
4473 (may_insert_fast_tracepoints): Likewise.
4474 (may_stop): Likewise.
4475 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4476 (make_thread_apply_all_options_def_group): Change argument from int*
4478 (thread_apply_all_command): Update.
4479 (print_thread_events): Change to bool.
4480 * top.c (confirm): Likewise.
4481 (command_editing_p): Likewise.
4482 (history_expansion_p): Likewise.
4483 (write_history_p): Likewise.
4484 (info_verbose): Likewise.
4485 * top.h (confirm): Likewise.
4486 (history_expansion_p): Likewise.
4487 * tracepoint.c (disconnected_tracing): Likewise.
4488 (circular_trace_buffer): Likewise.
4489 * typeprint.c (print_methods): Likewise.
4490 (print_typedefs): Likewise.
4491 * utils.c (debug_timestamp): Likewise.
4492 (sevenbit_strings): Likewise.
4493 (pagination_enabled): Likewise.
4494 * utils.h (sevenbit_strings): Likewise.
4495 (pagination_enabled): Likewise.
4496 * valops.c (overload_resolution): Likewise.
4497 * valprint.h (struct value_print_options) <prettyformat_arrays,
4498 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4499 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4500 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4502 * windows-nat.c (new_console): Likewise.
4503 (cygwin_exceptions): Likewise.
4504 (new_group): Likewise.
4505 (debug_exec): Likewise.
4506 (debug_events): Likewise.
4507 (debug_memory): Likewise.
4508 (debug_exceptions): Likewise.
4509 (useshell): Likewise.
4510 * windows-tdep.c (maint_display_all_tib): Likewise.
4511 * xml-support.c (debug_xml): Likewise.
4513 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4515 * source.c (prepare_path_for_appending): New function.
4516 (openp): Make use of new function.
4517 (find_and_open_source): Search for the compilation directory and
4518 source file as a relative path beneath the directory search path.
4520 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4522 * source-cache.c (source_cache::get_line_charpos): Catch
4523 exceptions and return false, this matches the behaviour documented
4526 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4528 * ada-tasks.c (info_task): Remove quoting of the task's name.
4530 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4532 * symfile.c (auto_solib_add): Replace comment with a reference
4535 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4537 * NEWS: Mention that gdb can now be compiled with Python 3
4540 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4542 * maint.c (maint_print_section_data::maint_print_section_data):
4543 Force use of 'float log10 (float)' by casting the argument to
4546 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4548 * maint.c: Add 'cmath' include.
4549 (struct maint_print_section_data): New structure.
4550 (print_section_index): New function.
4551 (print_bfd_section_info): Add header comment, small whitespace
4552 cleanup, and update to call new print_section_index function.
4553 (print_objfile_section_info): Likewise.
4554 (maint_obj_section_from_bfd_section): New function.
4555 (print_bfd_section_info_maybe_relocated): New function.
4556 (maintenance_info_sections): Add header comment, always use
4557 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4559 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4561 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4562 inner scope, add check that the objfile has psymtabs before
4563 checking psymtabs_addrmap.
4564 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4566 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4568 * NEWS: Announce that Ada task names are now shown at more places,
4569 and between quotes (except in info task output).
4570 * gdb/ada-tasks.c (task_to_str): New function.
4571 (display_current_task_id): Call task_to_str.
4572 (task_command_1): Likewise.
4573 (print_ada_task_info): In non-mi mode, Properly align headers and data
4574 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4576 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4578 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4579 prstatus.pr_lwp.pr_info instead of making it up.
4581 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4583 * auto-load.c (auto_load_expand_dir_vars): Update.
4584 * defs.h (gdb_datadir): Change to std::string.
4585 (python_libdir): Likewise.
4586 (relocate_gdb_directory): Change return type to std::string.
4587 * guile/guile.c (gdbscm_data_directory): Update.
4588 (initialize_scheme_side): Update.
4589 * jit.c (jit_reader_dir): Change to std::string.
4590 (jit_reader_load_command): Update.
4591 * main.c (gdb_datadir): Change to std::string.
4592 (python_libdir): Likewise.
4593 (set_gdb_data_directory): Update.
4594 (relocate_path): Change to return std::string.
4595 (relocate_gdb_directory): Change to return std::string.
4596 (relocate_gdbinit_path_maybe_in_datadir): Update.
4597 (captured_main_1): Update.
4598 * python/python.c (do_start_initialization): Update.
4599 * top.c (show_gdb_datadir): Update.
4600 * xml-syscall.c (xml_init_syscalls_info): Update.
4601 (init_syscalls_info): Update.
4603 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4605 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4606 out of get_init_files.
4607 (get_init_files): Update.
4609 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4611 * main.c (get_init_files): Change to use std::string.
4612 (captured_main_1): Update.
4613 (print_gdb_help): Update.
4615 2019-09-11 Ali Tamur <tamur@google.com>
4617 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4620 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4622 * dbxread.c (read_dbx_symtab): Update.
4623 * dwarf2read.c (load_partial_dies): Update.
4624 * mdebugread.c (parse_partial_symbols): Update.
4625 (handle_psymbol_enumerators): Update.
4626 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4627 * psymtab.c (add_psymbol_to_bcache): Likewise.
4628 (add_psymbol_to_list): Likewise.
4629 * symtab.c (symbol_set_names): Likewise.
4630 * symtab.h (symbol_set_names): Likewise.
4631 * xcoffread.c (scan_xcoff_symtab): Update.
4633 2019-09-11 Tom Tromey <tom@tromey.com>
4635 * symfile-mem.c (symbol_file_add_from_memory): Use
4637 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4638 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4640 2019-09-10 Tom Tromey <tromey@adacore.com>
4642 * dwarf-index-write.c (write_psymbols): Extend error message.
4643 (debug_names::insert): Add Ada code.
4644 (debug_names::write_psymbols): Remove Ada check.
4645 (debug_names) <m_string_obstack>: New member.
4646 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4647 (gdb_index_symbol_name_matcher::matches): Remove.
4648 (mapped_index_base::find_name_components_bounds): Add "lang"
4650 (mapped_index_base::build_name_components): Also split names
4651 according to Ada syntax.
4652 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4653 type of "match_callback".
4654 (check_match, check_find_bounds_finds)
4655 (dw2_expand_symtabs_matching): Update.
4656 (dw2_debug_names_iterator): Add new constructor.
4657 (dw2_debug_names_map_matching_symbols): New function.
4658 (dw2_debug_names_expand_symtabs_matching): Update.
4659 (dwarf2_debug_names_functions): Use
4660 dw2_debug_names_map_matching_symbols.
4662 2019-09-10 Tom Tromey <tromey@adacore.com>
4664 * dwarf2read.c (dw2_get_file_names_reader): Add the
4665 CU's file name to the results.
4667 2019-09-10 Tom Tromey <tromey@adacore.com>
4669 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4670 map_matching_symbols. Update.
4671 * dwarf2read.c (dw2_map_matching_symbols): Update.
4672 * psymtab.c (match_partial_symbol): Change type; update.
4673 (psym_map_matching_symbols): Likewise.
4674 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4676 * symfile.h (struct quick_symbol_functions)
4677 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4680 2019-09-10 Tom Tromey <tromey@adacore.com>
4682 * psymtab.c (map_block): Remove.
4683 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4684 * symtab.c (iterate_over_symbols_terminated): New function.
4685 * symtab.c (iterate_over_symbols_terminated): Declare.
4687 2019-09-10 Tom Tromey <tromey@adacore.com>
4689 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4690 * language.h (struct language_defn) <la_iterate_over_symbols>:
4692 * symtab.c (iterate_over_symbols): Return bool.
4693 * symtab.h (iterate_over_symbols): Return bool.
4695 2019-09-10 Tom Tromey <tromey@adacore.com>
4697 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4698 (add_nonlocal_symbols): Update.
4699 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4700 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4701 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4702 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4703 Change type of "callback". Remove "data".
4706 2019-09-09 Ali Tamur <tamur@google.com>
4708 * dwarf2read.c (comp_unit_head): Update comment.
4709 (dwarf2_dwo_name): New function declaration.
4710 (dwarf_unit_type_name): New function declaration.
4711 (read_comp_unit_head): Add support for new compilation units,
4712 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4713 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4714 (currently named as "signature") in their header. Also clarify error
4716 (lookup_dwo_id): New function. Returns the dwo id of the given
4718 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4719 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4721 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4722 (dwarf2_dwo_name): Get the dwo name if present.
4723 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4726 2019-09-09 Tom Tromey <tom@tromey.com>
4728 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4730 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4732 * python/python.c (do_start_initialization): Make progname_copy static,
4733 to avoid a leak report.
4735 2019-09-08 Tom Tromey <tom@tromey.com>
4737 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4739 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4741 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4742 Change type to gdb::optional<block_enum>.
4743 (dw2_symtab_iter_init): Change block_index parameter type
4744 to gdb::optional<block_enum>.
4745 (dw2_lookup_symbol): Change block_index parameter
4746 type to block_enum.c
4747 (dw2_debug_names_lookup_symbol): Likewise.
4748 * psymtab.c (psym_lookup_symbol): Likewise.
4749 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4750 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4753 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4755 * defs.h (relocate_gdb_directory): Change int to bool in
4756 signature and rename flag to relocatable.
4757 * main.c (relocate_path): Likewise.
4758 (relocate_gdb_directory): Likewise.
4760 2019-09-06 Alan Modra <amodra@gmail.com>
4762 * coffread.c (coff_symfile_read): Constify filename variable.
4763 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4764 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4765 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4766 * solib.c (reload_shared_libraries_1): Likewise.
4767 * symfile.c (reread_symbols): Likewise.
4768 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4769 * solib-darwin.c (darwin_bfd_open): Likewise.
4770 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4772 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4774 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4775 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4777 2019-09-03 Tom Tromey <tromey@adacore.com>
4779 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4781 (has_negatives): Unbias a range type bound.
4782 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4783 * gdbtypes.c (operator==): Handle new field.
4784 (create_range_type): Add "bias" parameter.
4785 (create_static_range_type, resolve_dynamic_range): Update.
4786 * gdbtypes.h (struct range_bounds) <bias>: New member.
4787 (create_range_type): Add bias parameter.
4788 * printcmd.c (print_scalar_formatted): Unbias range types.
4789 * value.c (unpack_long): Unbias range types.
4790 (pack_long): Bias range types.
4792 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4794 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4797 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4799 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4800 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4801 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4802 (compile_probe_arg): Likewise.
4803 * probe.h (get_argument_count): Likewise.
4804 * solib-svr4.c (solib_event_probe_action): Likewise.
4805 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4807 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4809 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4811 (svr4_create_solib_event_breakpoints): ...from here.
4813 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4815 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4816 suffix from warning message.
4818 2019-08-30 Tom Tromey <tom@tromey.com>
4820 * tui/tui-winsource.h (struct tui_source_window_base)
4821 <refresh_all>: Don't declare.
4822 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4824 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4825 tui_show_locator_content.
4826 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4828 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4829 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4832 2019-08-30 Tom Tromey <tom@tromey.com>
4834 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4836 2019-08-30 Tom Tromey <tom@tromey.com>
4838 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4839 Remove unnecessary forward declarations.
4841 2019-08-30 Tom Tromey <tom@tromey.com>
4843 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4845 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4846 tui_show_locator_content.
4848 2019-08-30 Tom Tromey <tom@tromey.com>
4850 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4851 (tui_locator_window::rerender): Rewrite using body of previous
4852 tui_show_locator_content.
4854 2019-08-30 Tom Tromey <tom@tromey.com>
4856 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4857 set_locator_fullname>: New methods.
4858 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4859 Rename from tui_set_locator_fullname.
4860 (tui_locator_window::set_locator_info): Rename from
4861 tui_set_locator_info. Return bool.
4862 (tui_update_locator_fullname, tui_show_frame_info): Update.
4864 2019-08-30 Tom Tromey <tom@tromey.com>
4866 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4868 2019-08-30 Tom Tromey <tom@tromey.com>
4870 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4873 2019-08-30 Tom Tromey <tom@tromey.com>
4875 * tui/tui-wingeneral.c (box_win): Assume win_info and
4876 win_info->handle cannot be NULL.
4878 2019-08-30 Tom Tromey <tom@tromey.com>
4880 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4881 refresh_window>: Declare.
4882 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4884 (tui_data_item_window::rerender): Rename from
4885 tui_display_register.
4886 (tui_data_item_window::refresh_window): New method.
4887 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4890 2019-08-30 Tom Tromey <tom@tromey.com>
4892 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4893 regs_column_count, current_group>: Move later. Now private.
4894 <get_current_group>: New method.
4895 * tui/tui-regs.c (tui_reg_command): Update.
4896 * tui/tui-layout.c (tui_set_layout): Update.
4898 2019-08-30 Tom Tromey <tom@tromey.com>
4900 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4901 (tui_data_window::rerender): Don't call
4902 check_and_display_highlight_if_needed.
4903 (tui_data_window::refresh_all): Remove call to
4906 2019-08-30 Tom Tromey <tom@tromey.com>
4908 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4909 (tui_data_window::display_registers_from)
4910 (tui_data_window::display_reg_element_at_line)
4911 (tui_data_window::display_registers_from_line): Remove checks of
4914 2019-08-30 Tom Tromey <tom@tromey.com>
4916 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4918 * tui/tui-regs.c (tui_data_window::show_registers): Call
4920 (tui_data_window::rerender): Rename from display_all_data.
4921 (tui_data_window::rerender): Remove old implementation.
4923 2019-08-30 Tom Tromey <tom@tromey.com>
4925 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4927 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4929 2019-08-29 Bernhard Wodok <barto@gmx.net>
4930 Sergio Durigan Junior <sergiodj@redhat.com>
4933 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4935 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4937 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4938 when searching for types.
4940 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * f-lang.c (f_language_defn): Use f_print_typedef.
4943 * f-lang.h (f_print_typedef): Declare.
4944 * f-typeprint.c (f_print_typedef): Define.
4946 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4948 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4950 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4952 * cli/cli-utils.c (info_print_options_defs): Delete.
4953 (make_info_print_options_def_group): Delete.
4954 (extract_info_print_options): Delete.
4955 (info_print_command_completer): Delete.
4956 (info_print_args_help): Add extra parameter, and optionally
4957 include text about -n flag.
4958 * cli/cli-utils.h (struct info_print_options): Delete.
4959 (extract_info_print_options): Delete declaration.
4960 (info_print_command_completer): Delete declaration.
4961 (info_print_args_help): Add extra parameter, extend header
4963 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4965 * stack.c (struct info_print_options): New type.
4966 (info_print_options_defs): New file scoped variable.
4967 (make_info_print_options_def_group): New static function.
4968 (info_print_command_completer): New static function.
4969 (info_locals_command): Update to use new local functions.
4970 (info_args_command): Likewise.
4971 (_initialize_stack): Add extra parameter to calls to
4972 info_print_args_help.
4973 * symtab.c (search_symbols): Add extra parameter, use this to
4974 possibly excluse non-debug symbols.
4975 (symtab_symbol_info): Add extra parameter, which is passed on to
4977 (struct info_print_options): New type.
4978 (info_print_options_defs): New file scoped variable.
4979 (make_info_print_options_def_group): New static function.
4980 (info_print_command_completer): New static function.
4981 (info_variables_command): Update to use local functions, and pass
4982 extra parameter through to symtab_symbol_info.
4983 (info_functions_command): Likewise.
4984 (info_types_command): Pass additional argument through to
4986 (rbreak_command): Pass extra argument to search_symbols.
4987 (_initialize_symtab): Add extra arguments for calls to
4988 info_print_args_help, and update help text for 'info variables',
4989 'whereis', and 'info functions' commands.
4990 * symtab.h (search_symbols): Add extra argument to declaration.
4991 * NEWS: Mention new flags.
4993 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4995 * symtab.c (lookup_static_symbol): Call the new function (and move
4996 it down to be next to lookup_global_symbol).
4997 (struct global_sym_lookup_data): Add block_enum member and rename to...
4998 (struct global_or_static_sym_lookup_data): ...this.
4999 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5000 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5001 (lookup_symbol_global_or_static_iterator_cb): ...this.
5002 (lookup_global_or_static_symbol): New function.
5003 (lookup_global_symbol): Call new function.
5005 2019-08-26 Tom de Vries <tdevries@suse.de>
5008 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5009 when pc_probe.prob == NULL.
5011 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5013 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5014 variable symbol_linkage to symbol_linkage_.
5016 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5018 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5019 represent whether the symbol is static, dynamic, or we don't
5022 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5024 * gdb/rx-tdep.c (rx_register_names): New.
5025 (rx_register_name): Delete.
5026 (rx_psw_type): Delete.
5027 (rx_fpsw_type): Delete.
5028 (rx_register_type): Delete.
5029 (rx_gdbarch_init): Convert target-descriptions.
5030 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5031 * gdb/features/Makefile: Add rx.xml.
5032 * gdb/features/rx.xml: New.
5033 * gdb/features/rx.c: Generated.
5034 * gdb/NEWS: Mention target description support.
5036 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5038 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5041 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5043 * configure.ac: Don't check for 'dlfcn.h' (moved to
5044 gdbsupport/common.m4).
5045 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5047 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5048 * compile/compile-c-support.c: Include
5049 'gdbsupport/gdb-dlfcn.h'.
5050 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5051 * gdb-dlfcn.c: Move to...
5052 * gdbsupport/gdb-dlfcn.c: ... here.
5053 * gdb-dlfcn.h: Move to...
5054 * gdbsupport/gdb-dlfcn.h: ... here.
5056 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5058 * nios2-tdep.c (struct reg_value): Improve comments. Make
5059 the offset field signed.
5061 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5063 * python/lib/gdb/__init__.py (_execute_file): New function.
5064 * python/python.c (python_run_simple_file): Call gdb._execute_file
5067 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5069 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5070 all uses as this was never set to anything but a zero value.
5072 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5074 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5076 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5078 * tui/tui-data.h (tui_gen_win_info): Add an =default
5079 move constructor, required by some GCC versions.
5081 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5083 * go32-nat.c (go32_sysinfo): Add hygon_p.
5085 2019-08-20 Tom Tromey <tom@tromey.com>
5087 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5088 line_from_reg_element_no, first_reg_element_no_inline,
5089 display_all_data, delete_data_content_windows,
5090 erase_data_content>: Now private.
5092 2019-08-20 Tom Tromey <tom@tromey.com>
5094 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5095 (tui_unhighlight_win, tui_highlight_win)
5096 (tui_win_info::make_window): Update.
5097 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5099 2019-08-20 Tom Tromey <tom@tromey.com>
5101 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5102 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5103 (MAX_PID_WIDTH): Move to tui-stack.c.
5104 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5105 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5106 (MAX_PID_WIDTH): Move from tui-data.h.
5108 2019-08-20 Tom Tromey <tom@tromey.com>
5110 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5111 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5113 (tui_gen_win_info::make_window): Rename from tui_make_window.
5114 (tui_win_info::make_window): New method.
5115 (tui_gen_win_info::make_visible): Update.
5116 * tui/tui-source.c (tui_source_window::set_contents): Update.
5117 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5118 (tui_data_window::display_registers_from): Update.
5119 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5120 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5124 (struct tui_win_info) <make_window>: Declare.
5125 <can_box>: Now virtual.
5126 <title>: New member.
5127 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5128 * tui/tui-command.c (tui_cmd_window::resize): Update.
5130 2019-08-20 Tom Tromey <tom@tromey.com>
5132 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5133 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5134 (tui_data_window::check_register_values): Update.
5136 2019-08-20 Tom Tromey <tom@tromey.com>
5138 * tui/tui-regs.h (struct tui_data_window): Use
5139 DISABLE_COPY_AND_ASSIGN.
5140 <regs_content>: Change type, removing unique_ptr.
5141 <tui_data_window>: Add move constructor.
5142 * tui/tui-regs.c (tui_data_window::show_registers)
5143 (tui_data_window::show_register_group)
5144 (tui_data_window::display_registers_from)
5145 (tui_data_window::display_registers_from)
5146 (tui_data_window::first_data_item_displayed)
5147 (tui_data_window::delete_data_content_windows)
5148 (tui_data_window::rerender, tui_data_window::refresh_window)
5149 (tui_data_window::check_register_values): Update.
5151 2019-08-20 Tom Tromey <tom@tromey.com>
5153 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5154 show_register_group>: Declare.
5155 (tui_show_register_group): Don't declare.
5156 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5158 (tui_data_window::show_register_group): Rename from
5159 tui_show_register_group.
5160 (tui_data_window::check_register_values, tui_reg_command):
5162 * tui/tui-layout.c (tui_set_layout): Update.
5164 2019-08-20 Tom Tromey <tom@tromey.com>
5166 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5168 (tui_check_register_values): Don't declare.
5169 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5170 from tui_check_register_values.
5171 * tui/tui-hooks.c (tui_register_changed): Update.
5173 2019-08-20 Tom Tromey <tom@tromey.com>
5175 * tui/tui-regs.c (tui_reg_layout): Move later.
5176 (tui_show_registers): Don't enable TUI mode or change layout.
5178 2019-08-20 Tom Tromey <tom@tromey.com>
5180 * tui/tui-regs.h (struct tui_data_item_window)
5181 <~tui_data_item_window>: Remove.
5182 <content>: Now a unique_xmalloc_ptr.
5183 * tui/tui-regs.c (tui_register_format): Return a
5185 (tui_get_register): Update.
5186 (~tui_data_item_window): Remove.
5187 (tui_data_window::display_registers_from, tui_display_register):
5189 * tui/tui-io.h (tui_expand_tabs): Update.
5190 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5191 Remove "col" parameter.
5193 2019-08-20 Tom Tromey <tom@tromey.com>
5195 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5197 * tui/tui-regs.c (~tui_data_item_window): Update.
5199 2019-08-20 Tom Tromey <tom@tromey.com>
5201 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5204 2019-08-20 Tom Tromey <tom@tromey.com>
5206 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5208 2019-08-20 Tom Tromey <tom@tromey.com>
5210 * tui/tui-source.h (struct tui_source_window): Update.
5211 * tui/tui-regs.c (tui_show_registers): Update.
5212 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5213 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5214 (NO_REGS_STRING): Remove defines.
5216 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5218 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5219 unnecessary thread walk if remote doesn't support the packet.
5221 2019-08-19 Tom Tromey <tromey@adacore.com>
5223 * python/py-value.c (value_has_field): Fix indentation.
5225 2019-08-19 Tom Tromey <tromey@adacore.com>
5227 * printcmd.c (do_one_display, info_display_command): Update.
5228 * block.h (contained_in): Return bool. Add allow_nested
5230 * block.c (contained_in): Return bool. Add allow_nested
5233 2019-08-19 Tom Tromey <tom@tromey.com>
5235 * configure: Rebuild.
5236 * configure.ac: Disallow the combination of -static-libstdc++ and
5238 * source-cache.c (get_language_name): Handle rust.
5239 (source_cache::get_source_lines): Ignore highlighting exceptions.
5241 2019-08-16 Tom Tromey <tom@tromey.com>
5243 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5244 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5245 (struct tui_source_window_base) <make_visible, refresh_window,
5246 resize>: Remove methods.
5247 <execution_info>: Remove field.
5248 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5249 (tui_show_source_line, tui_source_window_base)
5250 (~tui_source_window_base): Update.
5251 (tui_source_window_base::resize)
5252 (tui_source_window_base::make_visible)
5253 (tui_source_window_base::refresh_window): Remove.
5254 (tui_source_window_base::update_exec_info): Update.
5255 * tui/tui-source.c (tui_source_window::set_contents): Update.
5256 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5258 2019-08-16 Tom Tromey <tom@tromey.com>
5260 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5261 deprecated_query_hook.
5263 2019-08-16 Tom Tromey <tom@tromey.com>
5265 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5266 (tui_update_source_windows_with_line): Update.
5267 * tui/tui-source.h (struct tui_source_window)
5268 <show_symtab_source>: Declare.
5269 (tui_show_symtab_source): Don't declare.
5270 * tui/tui-source.c (tui_show_symtab_source): Rename from
5271 tui_show_symtab_source.
5273 2019-08-16 Tom Tromey <tom@tromey.com>
5275 * tui/tui-winsource.h (struct tui_source_window_base)
5276 <set_contents>: Declare.
5277 * tui/tui-winsource.c
5278 (tui_source_window_base::update_source_window_as_is): Update.
5279 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5281 (tui_set_source_content): Don't declare.
5282 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5283 tui_set_source_content.
5284 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5286 (tui_set_disassem_content): Don't declare.
5287 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5288 tui_set_disassem_content.
5290 2019-08-16 Tom Tromey <tom@tromey.com>
5292 * tui/tui-winsource.h (struct tui_source_window_base)
5293 <update_breakpoint_info>: Declare.
5294 (tui_update_breakpoint_info): Don't declare.
5295 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5296 (tui_update_all_breakpoint_info): Update.
5297 (tui_source_window_base::update_breakpoint_info): Rename from
5298 tui_update_breakpoint_info.
5299 (tui_source_window_base::update_exec_info): Update.
5301 2019-08-16 Tom Tromey <tom@tromey.com>
5303 * tui/tui-winsource.h (struct tui_source_window_base)
5304 <update_source_window>: Declare.
5305 (tui_update_source_window): Don't declare.
5306 * tui/tui-winsource.c
5307 (tui_source_window_base::update_source_window): Rename from
5308 tui_update_source_window.
5309 (tui_source_window_base::rerender): Update.
5310 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5311 * tui/tui-disasm.c (tui_show_disassem)
5312 (tui_show_disassem_and_update_source)
5313 (tui_disasm_window::maybe_update): Update.
5315 2019-08-16 Tom Tromey <tom@tromey.com>
5317 * tui/tui-winsource.h (struct tui_source_window_base)
5318 <update_source_window_as_is>: Declare.
5319 (tui_update_source_window_as_is): Don't declare.
5320 * tui/tui-winsource.c (tui_update_source_window): Update
5321 (tui_source_window_base::update_source_window_as_is): Rename from
5322 tui_update_source_window_as_is.
5323 (tui_source_window_base::refill): Update.
5324 * tui/tui-source.c (tui_show_symtab_source): Update.
5325 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5328 2019-08-16 Tom Tromey <tom@tromey.com>
5330 * tui/tui-winsource.h (tui_update_source_window)
5331 (tui_update_source_window_as_is): Remove "noerror" parameter.
5332 * tui/tui-winsource.c (tui_update_source_window)
5333 (tui_update_source_window_as_is): Remove "noerror" parameter.
5334 (tui_update_source_windows_with_addr)
5335 (tui_update_source_windows_with_line)
5336 (tui_source_window_base::rerender)
5337 (tui_source_window_base::refill): Update.
5338 * tui/tui-source.h (tui_set_source_content)
5339 (tui_show_symtab_source): Remove "noerror" parameter.
5340 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5342 (tui_show_symtab_source): Likewise.
5343 (tui_source_window::maybe_update): Update.
5344 * tui/tui-disasm.c (tui_show_disassem)
5345 (tui_show_disassem_and_update_source)
5346 (tui_disasm_window::do_scroll_vertical)
5347 (tui_disasm_window::maybe_update): Update.
5349 2019-08-16 Tom Tromey <tom@tromey.com>
5351 * tui/tui.c (tui_is_window_visible): Update.
5352 * tui/tui-wingeneral.c (tui_make_window)
5353 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5354 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5355 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5356 (tui_set_win_height_command, parse_scrolling_args): Update.
5357 * tui/tui-source.c (tui_source_window::style_changed): Update.
5358 * tui/tui-regs.c (tui_show_registers)
5359 (tui_data_window::first_data_item_displayed)
5360 (tui_data_window::delete_data_content_windows)
5361 (tui_check_register_values, tui_reg_command): Update.
5362 * tui/tui-disasm.c (tui_show_disassem): Update.
5363 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5365 <is_visible>: Remove field.
5366 * tui/tui-data.c (tui_next_win, tui_prev_win)
5367 (tui_delete_invisible_windows): Update.
5369 2019-08-16 Tom Tromey <tom@tromey.com>
5371 * tui/tui-winsource.h (struct tui_source_window_base)
5372 <m_has_locator>: Remove.
5373 * tui/tui-layout.c (show_source_disasm_command, show_data)
5374 (show_source_or_disasm_and_command): Update.
5376 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5378 * NEWS (Other MI changes): New subsection.
5379 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5380 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5381 * arch-utils.c (default_get_pc_address_flags): New function.
5382 * arch-utils.h (default_get_pc_address_flags): New declaration.
5383 * gdbarch.sh: Add get_pc_address_flags.
5384 * gdbarch.c: Regenerate.
5385 * gdbarch.h: Likewise.
5386 * stack.c (print_pc): New function.
5387 (print_frame_info) (print_frame): Call print_pc.
5389 2019-08-16 Tom de Vries <tdevries@suse.de>
5391 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5392 print_objfile_section_info.
5394 2019-08-15 Tom Tromey <tom@tromey.com>
5396 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5397 calling update_cmdwin_start_line.
5398 * tui/tui-winsource.h (struct tui_source_window_base)
5399 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5400 <rerender>: Declare.
5401 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5403 (tui_source_window_base::set_new_height): Remove.
5404 (tui_source_window_base::rerender): Rename from
5405 do_make_visible_with_new_height.
5406 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5408 (tui_win_info::make_invisible_and_set_new_height)
5409 (tui_win_info::make_visible_with_new_height): Remove.
5410 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5412 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5413 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5414 do_make_visible_with_new_height>: Don't declare.
5415 <rerender>: Declare.
5416 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5418 (tui_data_window::do_make_visible_with_new_height): Remove.
5419 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5420 call tui_show_locator_content.
5421 (tui_gen_win_info::resize): Call rerender.
5422 (show_source_or_disasm_and_command): Don't call
5423 tui_show_locator_content.
5424 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5426 (struct tui_win_info) <rerender>: Declare.
5427 <set_new_height, make_invisible_and_set_new_height,
5428 make_visible_with_new_height>: Don't declare.
5429 * tui/tui-data.c (tui_win_list::rerender): New method.
5430 * tui/tui-command.h (struct tui_cmd_window)
5431 <do_make_visible_with_new_height>: Don't declare.
5433 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5435 2019-08-15 Tom Tromey <tromey@adacore.com>
5437 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5438 * ada-lang.c (ada_enum_name): Likewise.
5440 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5442 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5444 (GdbOutputErrorFile): Likewise.
5445 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5447 (execute_unwinders): Rename to have a leading underscore.
5448 (auto_load_packages): Likewise.
5449 (global scope): Adjust call to auto_load_packages accordingly.
5450 (GdbSetPythonDirectory): Likewise.
5451 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5452 instead of execute_unwinders.
5454 2019-08-15 Tom Tromey <tom@tromey.com>
5456 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5457 (show_data): Don't change window visibility.
5458 (tui_gen_win_info::resize): Remove special case for command
5459 window. Use wresize, when available.
5460 (show_source_or_disasm_and_command): Don't change window
5462 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5463 <make_visible>: New method.
5464 * tui/tui-command.c (tui_cmd_window::resize): New method.
5466 2019-08-15 Tom Tromey <tom@tromey.com>
5468 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5469 (struct tui_source_windows): New.
5470 * tui/tui-winsource.c (tui_display_main): Update.
5471 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5472 (new_height_ok, parse_scrolling_args): Update.
5473 * tui/tui-layout.c (show_layout, show_data): Update.
5474 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5475 (tui_add_to_source_windows): Don't declare.
5476 * tui/tui-data.c (source_windows, tui_source_windows)
5477 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5479 2019-08-15 Tom Tromey <tom@tromey.com>
5481 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5483 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5484 * tui/tui-layout.c (show_source_disasm_command, show_data):
5486 (tui_gen_win_info::resize): Rename.
5487 (show_source_or_disasm_and_command): Update.
5488 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5491 2019-08-15 Tom Tromey <tom@tromey.com>
5493 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5494 * tui/tui-interp.c (tui_interp::init): Don't call
5495 tui_initialize_static_data.
5496 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5498 2019-08-15 Tom Tromey <tom@tromey.com>
5500 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5501 examine tui_win_list.
5503 2019-08-15 Tom Tromey <tom@tromey.com>
5505 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5506 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5507 tui_clear_source_content.
5508 (tui_clear_source_content): Remove.
5509 (tui_source_window_base::do_erase_source_content): Hoist call to
5511 * tui/tui-stack.c (tui_show_frame_info): Don't call
5512 tui_clear_source_content.
5514 2019-08-15 Tom Tromey <tom@tromey.com>
5516 * tui/tui-winsource.h (struct tui_source_window_base)
5517 <do_erase_source_content>: New method.
5518 <erase_source_content>: New method.
5519 (tui_erase_source_content): Don't declare.
5520 * tui/tui-winsource.c (tui_clear_source_content): Update.
5521 (tui_source_window_base::do_erase_source_content): Rename from
5522 tui_erase_source_content.
5523 (tui_source_window_base::show_source_content): Update.
5524 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5525 * tui/tui-source.h (struct tui_source_window)
5526 <erase_source_content>: New method.
5527 * tui/tui-disasm.h (struct tui_disasm_window)
5528 <erase_source_content>: New method.
5530 2019-08-15 Tom Tromey <tom@tromey.com>
5532 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5533 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5535 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5536 * tui/tui-source.c (tui_set_source_content): Update.
5537 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5539 2019-08-15 Tom Tromey <tom@tromey.com>
5541 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5542 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5544 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5546 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5548 (tui_source_window::maybe_update): Update.
5550 2019-08-15 Tom Tromey <tom@tromey.com>
5552 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5553 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5555 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5557 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5559 (tui_disasm_window::maybe_update): Update.
5561 2019-08-15 Tom Tromey <tom@tromey.com>
5563 * tui/tui-winsource.h (struct tui_source_window_base)
5564 <maybe_update>: Declare.
5565 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5567 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5569 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5570 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5572 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5574 2019-08-15 Tom Tromey <tom@tromey.com>
5576 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5578 2019-08-15 Tom Tromey <tom@tromey.com>
5580 * tui/tui-wingeneral.c: Include tui-stack.h.
5581 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5582 (struct tui_locator_window): Move from tui-data.h.
5583 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5584 (tui_initialize_static_data): Move from tui-data.c.
5585 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5586 (struct tui_locator_window): Move to tui-stack.c.
5587 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5588 (tui_initialize_static_data): Move to tui-stack.c.
5590 2019-08-15 Tom Tromey <tom@tromey.com>
5592 * tui/tui-layout.c (show_source_disasm_command)
5593 (show_source_or_disasm_and_command): Use make_visible method, not
5595 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5598 2019-08-15 Tom Tromey <tom@tromey.com>
5600 * tui/tui-wingeneral.h (tui_make_window): Update.
5601 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5603 (tui_gen_win_info::make_visible): Update.
5604 * tui/tui-regs.c (tui_data_window::display_registers_from):
5606 * tui/tui-layout.c (show_source_disasm_command)
5607 (show_source_or_disasm_and_command): Update.
5608 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5609 (enum tui_box): Remove.
5610 (struct tui_win_info) <can_box>: New method.
5611 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5614 2019-08-15 Tom de Vries <tdevries@suse.de>
5616 * linux-nat-trad.c: Include gdbarch.h.
5618 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5620 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5623 2019-08-14 Tom Tromey <tromey@adacore.com>
5625 * darwin-nat.c: Include gdbarch.h.
5626 * darwin-nat-info.c: Include gdbarch.h.
5628 2019-08-13 Tom Tromey <tom@tromey.com>
5630 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5632 * tui/tui-data.c (tui_initialize_static_data): Update.
5634 2019-08-13 Tom Tromey <tom@tromey.com>
5636 * tui/tui-winsource.h (struct tui_exec_info_window)
5637 <~tui_exec_info_window, maybe_allocate_content, get_content,
5639 (struct tui_source_window_base) <set_exec_info_content,
5640 show_exec_info_content>: Don't declare.
5641 * tui/tui-winsource.c
5642 (tui_exec_info_window::maybe_allocate_content): Remove.
5643 (tui_source_window_base::update_exec_info): Rename from
5644 set_exec_info_content.
5645 (tui_source_window_base::show_exec_info_content)
5646 (tui_source_window_base::update_exec_info): Remove.
5648 2019-08-13 Tom Tromey <tom@tromey.com>
5650 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5652 * tui/tui-winsource.c (tui_update_source_window_as_is)
5653 (tui_update_source_windows_with_addr, tui_erase_source_content):
5655 (tui_clear_exec_info_content): Remove.
5657 2019-08-13 Tom Tromey <tom@tromey.com>
5659 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5661 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5662 call tui_erase_exec_info_content.
5663 (tui_clear_exec_info_content): Rename from
5664 tui_erase_exec_info_content.
5665 (tui_clear_exec_info_content): Delete.
5667 2019-08-13 Tom Tromey <tom@tromey.com>
5669 * tui/tui-winsource.h (struct tui_source_window_base)
5670 <show_exec_info_content>: Declare.
5671 (tui_show_exec_info_content): Don't declare.
5672 * tui/tui-winsource.c
5673 (tui_source_window_base::show_exec_info_content): Rename from
5674 tui_show_exec_info_content.
5675 (tui_source_window_base::update_exec_info): Update.
5677 2019-08-13 Tom Tromey <tom@tromey.com>
5679 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5680 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5681 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5682 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5683 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5684 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5687 2019-08-13 Tom Tromey <tom@tromey.com>
5689 * tui/tui-winsource.h (struct tui_source_window_base)
5690 <update_exec_info>: Declare.
5691 (tui_update_exec_info): Don't declare.
5692 * tui/tui-winsource.c (tui_update_source_window_as_is)
5693 (tui_source_window_base::refresh_all)
5694 (tui_update_all_breakpoint_info): Update.
5695 (tui_source_window_base::update_exec_info): Rename from
5696 tui_update_exec_info.
5697 * tui/tui-stack.c (tui_show_frame_info): Update.
5699 2019-08-13 Tom Tromey <tom@tromey.com>
5701 * tui/tui-winsource.h (struct tui_source_window_base)
5702 <set_exec_info_content>: Declare.
5703 (tui_set_exec_info_content): Don't declare.
5704 * tui/tui-winsource.c
5705 (tui_source_window_base::set_exec_info_content): Rename from
5706 tui_set_exec_info_content.
5707 (tui_update_exec_info): Update.
5709 2019-08-13 Tom Tromey <tom@tromey.com>
5711 * tui/tui-winsource.h (struct tui_source_window_base)
5712 <show_source_content>: Declare.
5713 (tui_show_source_content): Don't declare.
5714 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5715 (tui_source_window_base::show_source_content): Rename from
5716 tui_show_source_content.
5717 (tui_source_window_base::refresh_all): Update.
5718 * tui/tui-layout.c (show_source_disasm_command)
5719 (show_source_or_disasm_and_command): Update.
5721 2019-08-13 Tom Tromey <tom@tromey.com>
5723 * tui/tui-winsource.c (tui_erase_source_content)
5724 (tui_show_source_content, tui_source_window_base::refresh_all):
5726 * tui/tui-wingeneral.h
5727 (tui_check_and_display_highlight_if_needed): Don't declare.
5728 * tui/tui-wingeneral.c
5729 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5730 check_and_display_highlight_if_needed.
5731 * tui/tui-win.c (tui_rehighlight_all)
5732 (tui_win_info::make_visible_with_new_height): Update.
5733 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5734 (tui_data_window::erase_data_content)
5735 (tui_data_window::display_all_data): Update.
5736 * tui/tui-data.h (struct tui_win_info)
5737 <check_and_display_highlight_if_needed>: Declare.
5739 2019-08-13 Tom Tromey <tom@tromey.com>
5741 * tui/tui-win.c (tui_resize_all): Call
5742 tui_delete_invisible_windows.
5743 * tui/tui-layout.c (show_layout): Call
5744 tui_delete_invisible_windows.
5745 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5746 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5748 2019-08-13 Tom Tromey <tom@tromey.com>
5750 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5751 tui_add_win_to_layout.
5753 2019-08-13 Tom Tromey <tom@tromey.com>
5755 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5756 * tui/tui-layout.c (tui_default_win_height): Now static.
5758 2019-08-13 Tom Tromey <tom@tromey.com>
5760 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5762 (show_source_disasm_command, show_source_or_disasm_and_command):
5763 Don't check current layout.
5765 2019-08-13 Tom Tromey <tom@tromey.com>
5767 * tui/tui-wingeneral.c (make_all_visible): Remove.
5768 (tui_make_all_invisible): Simplify.
5769 * tui/tui-layout.c (tui_make_all_invisible): Move from
5770 tui-wingeneral.c; simplify.
5771 (show_layout): Hoist call to tui_make_all_invisible.
5772 (show_data): Don't call tui_make_all_invisible.
5774 2019-08-13 Tom Tromey <tom@tromey.com>
5776 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5777 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5779 2019-08-13 Tom Tromey <tom@tromey.com>
5781 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5783 (show_source_disasm_command, show_data)
5784 (show_source_or_disasm_and_command): Don't use
5785 tui_set_current_layout_to.
5786 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5787 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5789 (tui_set_current_layout_to): Remove.
5791 2019-08-13 Tom Tromey <tom@tromey.com>
5793 * tui/tui-layout.c (tui_set_layout): Update.
5794 * tui/tui-data.h (struct tui_layout_def): Remove.
5795 (tui_layout_def): Don't declare.
5796 * tui/tui-data.c (layout_def): Remove.
5797 (tui_layout_def): Remove.
5799 2019-08-13 Tom Tromey <tom@tromey.com>
5801 * tui/tui-winsource.h (struct tui_source_window_base)
5802 <clear_detail>: No longer "override".
5803 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5804 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5805 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5806 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5808 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5810 2019-08-13 Tom Tromey <tromey@adacore.com>
5812 * tracepoint.c: Don't include readline.h or history.h.
5814 2019-08-12 Tom Tromey <tom@tromey.com>
5816 * configure: Rebuild.
5817 * configure.ac: Check for readline 7.
5818 * NEWS: Mention readline 7 requirement.
5821 2019-08-12 Tom Tromey <tom@tromey.com>
5823 * mingw-hdep.c (gdb_select): Remove readline hack.
5825 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5827 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5828 when the function fails.
5830 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5832 * s390-tdep.c (s390_type_align): New function.
5833 (s390_gdbarch_init): Set it as type_align gdbarch method.
5835 2019-08-09 Tom de Vries <tdevries@suse.de>
5838 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5839 pc_low with relocation offset.
5841 2019-08-07 Tom Tromey <tromey@adacore.com>
5843 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5844 (print_frame_args): Update.
5845 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5847 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5848 * frame.h (struct frame_arg): Add initializers.
5849 <error>: Now a unique_xmalloc_ptr.
5851 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5853 * NEWS: Expand the Pointer Authentication entry.
5854 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5855 (aarch64_frame_unmask_lr): ... to this.
5856 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5857 Call aarch64_frame_unmask_lr.
5858 * frame.c (struct frame_info): Add "masked" variable.
5859 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5860 (fprint_frame): Check for masked pc.
5861 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5863 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5864 * stack.c (print_frame): Check for masked pc.
5866 2019-08-06 Tom Tromey <tom@tromey.com>
5868 * stabsread.c (patch_block_stabs, read_one_struct_field)
5869 (read_enum_type): Use obstack_strndup.
5870 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5871 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5872 * dwarf2read.c (guess_full_die_structure_name)
5873 (anonymous_struct_prefix): Use obstack_strndup.
5874 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5875 * c-exp.y (yylex): Use obstack_strndup.
5876 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5877 (write_var_or_type): Use obstack_strndup.
5879 2019-08-06 Tom Tromey <tom@tromey.com>
5881 * symfile.c (reread_symbols): Use obstack_strdup.
5882 * stabsread.c (read_type): Use obstack_strdup.
5883 * gdb_obstack.h (obstack_strdup): New overload.
5884 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5885 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5886 (dwarf2_canonicalize_name): Use obstack_strdup.
5887 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5888 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5891 2019-08-06 Tom Tromey <tom@tromey.com>
5893 * gdb_obstack.h (obstack_strdup): Define.
5894 * gdb_obstack.c (obstack_strdup): Don't define.
5896 2019-08-06 Tom Tromey <tom@tromey.com>
5898 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5900 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5902 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5903 * stabsread.c (common_block_start): Use obstack_strdup.
5904 * objfiles.c (set_objfile_main_name, objfile): Use
5906 * namespace.c (add_using_directive): Use obstack_strdup.
5907 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5908 * jit.c (finalize_symtab): Use obstack_strdup.
5909 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5910 (guess_partial_die_structure_name, partial_die_info::fixup)
5911 (dwarf2_name): Use obstack_strdup.
5912 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5914 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5915 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5917 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5919 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5921 * unittests/help-doc-selftests.c: New file.
5922 * Makefile.in: Add the new file.
5924 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5926 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5927 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5928 the full first line, except when FOR_VALUE_PREFIX. In this case,
5929 the trailing '.' is not output, and the first character is uppercased.
5930 (print_help_for_command): Update call to print_doc_line.
5931 (print_doc_of_command): Likewise.
5932 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5933 * cli/cli-option.c (append_indented_doc): Do not append newline.
5934 (build_help_option): Append newline after first appended_indented_doc
5935 only if a second call is done.
5936 (build_help): Append 2 new lines before each option, except the first
5938 * compile/compile.c (_initialize_compile): Add new lines after
5939 %OPTIONS%, when not at the end of the help.
5940 Change help doc or code
5941 producing the help doc to respect the invariants.
5942 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5943 Also removed the new line after 'Options:', as all other commands
5944 do not put an empty line between 'Options:' and the first option.
5945 * printcmd.c (_initialize_printcmd): Likewise.
5946 * stack.c (_initialize_stack): Likewise.
5947 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5948 incorrectly telling COMMAND is optional.
5949 * ada-lang.c (_initialize_ada_language): Change help doc or code
5950 producing the help doc to respect the invariants.
5951 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5952 * breakpoint.c (_initialize_breakpoint): Likewise.
5953 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5954 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5955 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5956 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5957 _initialize_cli_style): Likewise.
5958 * corelow.c (core_target_info): Likewise.
5959 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5960 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5961 * filesystem.c (_initialize_filesystem): Likewise.
5962 * frame.c (_initialize_frame): Likewise.
5963 * gnu-nat.c (add_task_commands): Likewise.
5964 * infcall.c (_initialize_infcall): Likewise.
5965 * infcmd.c (_initialize_infcmd): Likewise.
5966 * interps.c (_initialize_interpreter): Likewise.
5967 * language.c (_initialize_language): Likewise.
5968 * linux-fork.c (_initialize_linux_fork): Likewise.
5969 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5970 * maint.c (_initialize_maint_cmds): Likewise.
5971 * memattr.c (_initialize_mem): Likewise.
5972 * printcmd.c (_initialize_printcmd): Likewise.
5973 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5975 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5976 * record-btrace.c (_initialize_record_btrace): Likewise.
5977 * record-full.c (_initialize_record_full): Likewise.
5978 * record.c (_initialize_record): Likewise.
5979 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5980 * regcache.c (_initialize_regcache): Likewise.
5981 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5982 _initialize_remote): Likewise.
5983 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5984 * serial.c (_initialize_serial): Likewise.
5985 * skip.c (_initialize_step_skip): Likewise.
5986 * source.c (_initialize_source): Likewise.
5987 * stack.c (_initialize_stack): Likewise.
5988 * symfile.c (_initialize_symfile): Likewise.
5989 * symtab.c (_initialize_symtab): Likewise.
5990 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5991 * top.c (init_main): Likewise.
5992 * tracefile-tfile.c (tfile_target_info): Likewise.
5993 * tracepoint.c (_initialize_tracepoint): Likewise.
5994 * tui/tui-win.c (_initialize_tui_win): Likewise.
5995 * utils.c (add_internal_problem_command): Likewise.
5996 * valprint.c (value_print_option_defs): Likewise.
5998 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6001 * configure.ac: Drop enable-libmcheck support.
6002 * configure, config.in: Rebuild.
6003 * libmcheck.m4: Remove.
6004 * acinclude.m4: Don't include it.
6005 * Makefile.in: Don't distribute it.
6006 * top.c (print_gdb_configuration): Don't mention it.
6008 2019-08-06 Tom Tromey <tom@tromey.com>
6010 * utils.c (set_output_style): Sometimes pass stream to
6012 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6013 * record-btrace.c (btrace_insn_history): Update.
6014 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6016 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6017 Update initializers.
6018 <m_uiout>: New field.
6020 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6021 Remove "uiout" parameter.
6022 (dump_insns): Update.
6023 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6024 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6026 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6028 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6029 (error_in_psymtab_expansion): Likewise.
6030 (lookup_symbol_via_quick_fns): Likewise.
6031 (basic_lookup_transparent_type_quick): Likewise.
6032 (basic_lookup_transparent_type_1): Likewise.
6034 2019-08-06 Tom Tromey <tromey@adacore.com>
6036 * source.c (last_source_error): Now bool.
6037 (print_source_lines_base): Make "noprint" bool. Only open
6038 source file when last_source_visited changes.
6040 2019-08-06 Tom Tromey <tromey@adacore.com>
6042 * annotate.c (annotate_source_line): Use g_source_cache.
6043 * source-cache.c (source_cache::get_plain_source_lines): Change
6044 parameters. Populate m_offset_cache.
6045 (source_cache::ensure): New method.
6046 (source_cache::get_line_charpos): New method.
6047 (extract_lines): Move lower. Change parameters.
6048 (source_cache::get_source_lines): Move lower.
6049 * source-cache.h (class source_cache): Update comment.
6050 <get_line_charpos>: New method.
6051 <get_source_lines>: Update comment.
6052 <clear>: Clear m_offset_cache.
6053 <get_plain_source_lines>: Change parameters.
6054 <ensure>: New method
6055 <m_offset_cache>: New member.
6056 * source.c (forget_cached_source_info_for_objfile): Update.
6057 (info_source_command): Use g_source_cache.
6058 (find_source_lines, open_source_file_with_line_charpos): Remove.
6059 (print_source_lines_base, search_command_helper): Use g_source_cache.
6060 * source.h (open_source_file_with_line_charpos): Don't declare.
6061 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6062 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6065 2019-08-06 Tom Tromey <tromey@adacore.com>
6067 * source-cache.c (source_cache::get_plain_source_lines):
6068 Remove "first_line" and "last_line" parameters.
6069 (source_cache::get_source_lines): Cache plain text.
6070 * source-cache.h (class source_cache)
6071 <get_plain_source_lines>: Update.
6073 2019-08-06 Tom Tromey <tromey@adacore.com>
6075 * source-cache.c (extract_lines): No longer a method.
6076 Changed type of parameter. Include final newline.
6077 (selftests::extract_lines_test): New function.
6078 (_initialize_source_cache): Likewise.
6079 * source-cache.h (class source_cache)
6080 <extract_lines>: Don't declare.
6082 2019-08-06 Tom Tromey <tromey@adacore.com>
6084 * breakpoint.c (init_breakpoint_sal): Update.
6085 (breakpoint): Update.
6086 * breakpoint.h (struct breakpoint) <filter>: Now a
6089 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6091 * NEWS: Mention dictionary access on blocks.
6092 * python/py-block.c (blpy_getitem): New function.
6093 (block_object_as_mapping): New struct.
6094 (block_object_type): Use new struct for tp_as_mapping field.
6096 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6098 * objfiles.h (objfile): Add a comment describing partial symbols.
6100 2019-08-05 Tom Tromey <tromey@adacore.com>
6102 * compile/compile.c (_initialize_compile): Use _(), not N_().
6103 * thread.c (_initialize_thread): Use _(), not N_().
6104 * stack.c (_initialize_stack): Use _(), not N_().
6105 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6107 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6109 * dwarf2read.c (struct dw2_symtab_iterator):
6110 <want_specific_block>: Remove.
6111 <block_index>: Change type to gdb::optional.
6112 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6113 change type of BLOCK_INDEX parameter to gdb::optional.
6114 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6115 (dw2_lookup_symbol): Don't pass argument for
6116 WANT_SPECIFIC_BLOCK.
6117 (dw2_expand_symtabs_for_function): Don't pass argument for
6118 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6119 (class dw2_debug_names_iterator)
6120 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6121 parameter, change BLOCK_INDEX type to gdb::optional.
6122 <m_want_specific_block>: Remove.
6123 <m_block_index>: Change type to gdb::optional.
6124 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6125 gdb::optional. Re-write in function of gdb::optional.
6126 (dw2_debug_names_lookup_symbol): Don't pass argument for
6127 WANT_SPECIFIC_BLOCK.
6128 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6129 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6132 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6134 * NEWS: Mention changes to "info sources" command.
6136 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6138 * symtab.c (filename_partial_match_opts): New struct type.
6139 (struct output_source_filename_data): New members
6140 regexp, c_regexp, partial_match.
6141 (output_source_filename): Use new members to decide to print file.
6142 (info_sources_option_defs): New variable.
6143 (make_info_sources_options_def_group, print_info_sources_header,
6144 info_sources_command_completer):
6146 (info_sources_command): Read new optional arguments.
6147 (_initialize_symtab): Update info sources help.
6149 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6151 * ada-lang.c (exception_support_info_v0): Renamed from...
6152 (default_exception_support_info): ... this. Create new
6154 (ada_has_this_exception_support): Look up catch_handlers_sym.
6155 (ada_exception_support_info_sniffer): Try v0 after default.
6157 2019-08-01 Tom Tromey <tromey@adacore.com>
6159 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6162 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6164 * s12z-tdep.c: Fix include path for s12z-opc.h.
6166 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6168 * NEWS: Require GNU make 3.82.
6170 2019-07-16 Tom Tromey <tom@tromey.com>
6172 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6175 2019-07-30 Tom Tromey <tromey@adacore.com>
6177 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6179 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6181 * printcmd.c (print_address_symbolic): Print negative offsets.
6182 (build_address_symbolic): Force signed arithmetic when computing
6185 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6187 PR/24474: Add a function to lookup static variables.
6188 * NEWS: Mention this new function.
6189 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6190 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6191 * python/python.c (python_GdbMethods): Add new function.
6193 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6195 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6196 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6197 (objfpy_lookup_static_symbol): New function.
6198 (objfile_object_methods): Add new functions.
6200 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6202 * NEWS: Mention 'set|show print frame-info'. Mention new
6203 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6204 backtrace argument. Mention that python frame filtering code
6205 is now consistent with what 'backtrace' command prints.
6207 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6209 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6211 (print_frame_info_auto, print_frame_info_source_line,
6212 print_frame_info_location, print_frame_info_source_and_location,
6213 print_frame_info_location_and_address, print_frame_info_short_location):
6215 (struct frame_print_options): New member print_frame_info.
6216 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6217 * stack.h (get_user_print_what_frame_info): New declaration.
6218 (frame_show_address): New declaration.
6219 * stack.c (print_frame_arguments_choices): New value 'presence'.
6220 (print_frame_info_auto, print_frame_info_source_line,
6221 print_frame_info_location, print_frame_info_source_and_location,
6222 print_frame_info_location_and_address, print_frame_info_short_location,
6223 print_frame_info_choices, print_frame_info_print_what): New definitions.
6224 (print_frame_args): Only print dots for args if print frame-arguments
6226 (frame_print_option_defs): New element for "frame-info".
6227 (get_user_print_what_frame_info): New function.
6228 (frame_show_address): Make non static. Move comment to stack.h.
6229 (print_frame_info_to_print_what): New function.
6230 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6231 to decide what to print.
6232 (backtrace_command_1): Handle the new print_frame_arguments_presence
6234 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6235 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6236 (py_print_frame): In non-mi mode, use LOCATION as default for
6237 print_what, similarly to frame information printed directly by
6238 backtrace command. Handle frame-info user option in non MI mode.
6240 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6242 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6243 Add case for debugging 32-bit target on 64-bit host. Revise
6246 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6248 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6249 instead of find_function_entry_range_from_pc.
6251 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6253 * stack.c (find_frame_funname): Remove code which preferred
6254 minsym over symtab sym in "certain pathological cases".
6256 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6257 parameter. Change type of "do_demangle" to bool.
6258 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6259 Pass suitable "prefer_sym_over_minsym" flag to
6260 build_address_symbolic(). Don't output "+" for negative offsets.
6261 * printcmd.c (print_address_symbolic): Update invocation of
6262 build_address_symbolic to include a "prefer_sym_over_minsym"
6264 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6265 Restrict cases in which use of minimal symbol is preferred to that
6266 of a found symbol. Update comments.
6268 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6269 for entry pc when entry pc is out of range for that FDE.
6271 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6274 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6277 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6279 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6280 this function's Python signature.
6283 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6285 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6286 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6287 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6288 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6289 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6292 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6294 * h8300-tdep.c (h8300_register_name_common): New.
6295 h8300_register_name): Use h8300_register_name_common.
6296 (h8300s_register_name): Likewise.
6297 (h8300sx_register_name): Likewise.
6298 (h8300h_register_nam): New.
6299 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6302 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6304 * arm-tdep.c (arm_skip_cmse_entry): New function.
6305 (arm_is_sgstubs_section): New function.
6306 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6308 2019-07-22 Tom Tromey <tom@tromey.com>
6310 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6313 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6315 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6318 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6320 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6321 so that GDB doesn't match any msymbols when searching in the
6323 (print_symbol_info): Print using typedef_print or type_print based
6324 on the type of the symbol. Add updated FIXME comment moved from...
6325 (_initialize_symtab): ... move and update FIXME comment to above.
6327 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6329 * NEWS: Mention adding -q option to "info types".
6330 * symtab.c (struct info_types_options): New struct.
6331 (info_types_options_defs): New variable.
6332 (make_info_types_options_def_group): New function.
6333 (info_types_command): Use gdb::option framework to parse options.
6334 (info_types_command_completer): New function.
6335 (_initialize_symtab): Extend the help text on "info types" and
6336 register command completer.
6338 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6340 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6341 (lookup_symbol_in_objfile): Change int to block_enum and add a
6342 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6344 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6346 * MAINTAINERS (Write After Approval): Add self.
6348 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6350 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6351 instruction to the dummy code region.
6353 2019-07-19 Tom Tromey <tromey@adacore.com>
6355 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6356 (ARGSUSED, PARAMS, __func__): Remove rules.
6358 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6360 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6361 * features/arm/arm-with-iwmmxt.c: Remove.
6362 * features/arm/arm-with-iwmmxt.xml: Remove.
6363 * features/arm/arm-with-m-fpa-layout.c: Remove.
6364 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6365 * features/arm/arm-with-m-vfp-d16.c: Remove.
6366 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6367 * features/arm/arm-with-m.c: Remove.
6368 * features/arm/arm-with-m.xml: Remove.
6369 * features/arm/arm-with-neon.c: Remove.
6370 * features/arm/arm-with-neon.xml: Remove.
6371 * features/arm/arm-with-vfpv2.c: Remove.
6372 * features/arm/arm-with-vfpv2.xml: Remove.
6373 * features/arm/arm-with-vfpv3.c: Remove.
6374 * features/arm/arm-with-vfpv3.xml: Remove.
6376 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6378 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6380 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6382 * arch/aarch32.c (aarch32_create_target_description): Create
6383 target descriptions using features.
6384 * arch/arm.c (arm_create_target_description)
6385 (arm_create_mprofile_target_description): Likewise.
6386 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6388 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6390 * Makefile.in: Add new files.
6391 * aarch32-tdep.c: New file.
6392 * aarch32-tdep.h: New file.
6393 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6394 Call aarch32_read_description.
6395 * arch/aarch32.c: New file.
6396 * arch/aarch32.h: New file.
6397 * arch/arm.c (arm_create_target_description)
6398 (arm_create_mprofile_target_description): New function.
6399 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6400 (arm_create_target_description)
6401 (arm_create_mprofile_target_description): New declaration.
6402 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6403 read_description functions.
6404 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6406 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6407 * arm-tdep.c (tdesc_arm_list): New variable.
6408 (arm_register_g_packet_guesses): Call create description functions.
6409 (arm_read_description) (arm_read_mprofile_description): New
6411 * arm-tdep.h (arm_read_description)
6412 (arm_read_mprofile_description): Add declaration.
6413 * configure.tgt: Add new files.
6415 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6417 * top.c (new_ui_command): Open specified terminal just once.
6419 2019-07-18 Tom Tromey <tromey@adacore.com>
6421 * symtab.c (main_name): Constify return type.
6422 * symfile.c (set_initial_language): Update.
6423 * symtab.h (main_name): Constify return type.
6425 2019-07-17 Tom Tromey <tom@tromey.com>
6427 * tui/tui-winsource.c (tui_update_source_window)
6428 (tui_update_source_window_as_is)
6429 (tui_update_source_windows_with_line): Remove return.
6430 * tui/tui-disasm.c (tui_show_disassem)
6431 (tui_show_disassem_and_update_source): Remove return.
6432 * tui/tui.c (tui_reset): Remove return.
6433 * tui/tui-wingeneral.c
6434 (tui_check_and_display_highlight_if_needed): Remove return.
6436 2019-07-17 Tom Tromey <tom@tromey.com>
6438 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6440 2019-07-17 Tom Tromey <tom@tromey.com>
6442 * tui/tui-winsource.h (struct tui_exec_info_window)
6443 (struct tui_source_window_base): Move from tui-data.h.
6444 * tui/tui-winsource.c: Move many method definitions from
6445 elsewhere. Remove "structuring" comments.
6446 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6447 (tui_source_window_base::refresh_window): Move to
6449 * tui/tui-win.c (tui_source_window_base::refresh_all)
6450 (tui_source_window_base::update_tab_width)
6451 (tui_source_window_base::set_new_height)
6452 (tui_source_window_base::do_make_visible_with_new_height): Move to
6454 * tui/tui-source.h: Update.
6455 * tui/tui-source.c (tui_source_window_base::reset): Move to
6457 * tui/tui-disasm.h: Update.
6458 * tui/tui-data.h (struct tui_exec_info_window): Move to
6460 (struct tui_source_window_base): Likewise.
6461 * tui/tui-data.c (tui_source_window_base::clear_detail)
6462 (tui_source_window_base, ~tui_source_window_base): Move to
6465 2019-07-17 Tom Tromey <tom@tromey.com>
6467 * tui/tui-win.c (tui_resize_all)
6468 (tui_source_window_base::update_tab_width)
6469 (tui_adjust_win_heights): Update.
6470 (tui_win_info::make_invisible_and_set_new_height): Rename from
6471 make_invisible_and_set_new_height.
6472 * tui/tui-data.h (struct tui_win_info)
6473 <make_invisible_and_set_new_height>: New method.
6475 2019-07-17 Tom Tromey <tom@tromey.com>
6477 * tui/tui.c: Update.
6478 * tui/tui-source.h (struct tui_source_window): Move from
6480 * tui/tui-layout.c: Update.
6481 * tui/tui-disasm.c: Update.
6482 * tui/tui-data.h (struct tui_source_window): Move to
6485 2019-07-17 Tom Tromey <tom@tromey.com>
6487 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6489 * tui/tui-data.h (struct tui_disasm_window): Move to
6492 2019-07-17 Tom Tromey <tom@tromey.com>
6494 * tui/tui-regs.h (struct tui_data_item_window): Move from
6496 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6497 * tui/tui-data.h (struct tui_data_item_window): Move to
6499 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6501 2019-07-17 Tom Tromey <tom@tromey.com>
6503 * tui/tui.c: Update.
6504 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6505 (tui_cmd_window::max_height): Move to tui-command.c.
6506 * tui/tui-layout.c: Update.
6507 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6508 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6510 * tui/tui-command.h (struct tui_cmd_window): Move from
6512 * tui/tui-command.c: Remove "structuring" comments.
6513 (tui_cmd_window::clear_detail)
6514 (tui_cmd_window::do_make_visible_with_new_height)
6515 (tui_cmd_window::max_height): Move from elsewhere.
6517 2019-07-17 Tom Tromey <tom@tromey.com>
6519 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6521 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6522 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6524 2019-07-17 Tom Tromey <tom@tromey.com>
6526 * tui/tui.c: Update.
6527 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6529 * tui/tui-windata.h: Remove file.
6530 * tui/tui-windata.c: Remove file.
6531 * tui/tui-win.c (tui_data_window::set_new_height)
6532 (tui_data_window::do_make_visible_with_new_height): Move to
6534 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6535 * tui/tui-regs.c: Remove "structuring" comments.
6536 (tui_data_window::first_data_item_displayed)
6537 (tui_data_window::delete_data_content_windows)
6538 (tui_data_window::erase_data_content)
6539 (tui_data_window::display_all_data)
6540 (tui_data_window::refresh_all)
6541 (tui_data_window::do_scroll_vertical)
6542 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6543 (tui_data_window::do_make_visible_with_new_height)
6544 (tui_data_window::refresh_window): Move from elsewhere.
6545 (_initialize_tui_regs): Move to end of file.
6546 * tui/tui-layout.c: Update.
6547 * tui/tui-hooks.c: Update.
6548 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6549 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6551 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6553 2019-07-17 Tom Tromey <tom@tromey.com>
6555 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6558 2019-07-17 Tom Tromey <tom@tromey.com>
6560 * tui/tui-win.c (tui_source_window_base::set_new_height)
6561 (tui_source_window_base::do_make_visible_with_new_height): Use
6562 m_has_locator field directly.
6563 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6565 (struct tui_source_window_base) <has_locator>: Likewise.
6567 2019-07-17 Tom Tromey <tom@tromey.com>
6569 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6571 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6573 * tui/tui-win.c (tui_source_window_base::set_new_height)
6574 (tui_source_window_base::set_new_height)
6575 (make_invisible_and_set_new_height)
6576 (tui_source_window_base::do_make_visible_with_new_height)
6577 (tui_source_window_base::do_make_visible_with_new_height):
6579 * tui/tui-layout.c (show_source_disasm_command, show_data)
6580 (show_source_or_disasm_and_command): Update.
6581 * tui/tui-layout.c (show_layout): Update.
6583 2019-07-17 Tom Tromey <tom@tromey.com>
6585 * tui/tui-layout.c (make_data_window): Remove.
6586 (show_data): Unify creation and re-initialization cases.
6588 2019-07-17 Tom Tromey <tom@tromey.com>
6590 * tui/tui-layout.c (make_source_window, make_disasm_window):
6592 (show_data): Unify creation and re-initialization cases.
6594 2019-07-17 Tom Tromey <tom@tromey.com>
6596 * tui/tui-layout.c (make_command_window): Remove.
6597 (show_source_disasm_command, show_source_or_disasm_and_command):
6598 Unify creation and re-initialization cases.
6600 2019-07-17 Tom Tromey <tom@tromey.com>
6602 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6603 creation and re-initialization cases.
6605 2019-07-17 Tom Tromey <tom@tromey.com>
6607 * tui/tui-regs.c (tui_get_register): Return void.
6609 2019-07-17 Tom Tromey <tom@tromey.com>
6611 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6614 2019-07-17 Tom Tromey <tom@tromey.com>
6616 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6619 2019-07-17 Tom Tromey <tom@tromey.com>
6621 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6622 * tui/tui-regs.c (tui_reg_layout): New function.
6623 (tui_show_registers, tui_reg_command): Use it.
6624 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6625 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6627 (tui_layout_command): Remove.
6629 2019-07-17 Tom Tromey <tom@tromey.com>
6631 * tui/tui-layout.h (tui/tui-layout): Return void.
6632 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6634 2019-07-17 Tom Tromey <tom@tromey.com>
6636 * tui/tui-layout.c (show_source_disasm_command, show_data):
6638 (reset_locator): Remove.
6639 (show_source_or_disasm_and_command): Update.
6641 2019-07-17 Tom Tromey <tom@tromey.com>
6643 * tui/tui-source.c (tui_source_window_base::reset): Remove
6645 * tui/tui-layout.c (make_command_window, make_source_window)
6646 (make_disasm_window, make_data_window)
6647 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6648 (reset_locator, show_source_or_disasm_and_command): Update.
6649 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6651 (struct tui_source_window_base) <reset>: Likewise.
6653 2019-07-17 Tom Tromey <tom@tromey.com>
6655 * tui/tui-layout.c (show_source_disasm_command): Use
6657 (reset_locator): New function.
6658 (init_and_make_win): Remove.
6659 (show_source_or_disasm_and_command): Use reset_locator.
6661 2019-07-17 Tom Tromey <tom@tromey.com>
6663 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6665 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6667 * tui/tui-source.c (tui_source_window_base::reset): New method.
6668 * tui/tui-layout.c (make_command_window): Don't call
6670 (make_source_window, make_disasm_window): Don't call
6671 make_source_or_disasm_window.
6672 (make_data_window): Don't call init_and_make_win. Change calling
6674 (show_source_disasm_command, show_data): Simplify.
6675 (make_source_or_disasm_window): Remove.
6676 (show_source_or_disasm_and_command): Simplify.
6677 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6678 (struct tui_source_window_base) <reset>: Likewise.
6679 <execution_info>: Remove initializer.
6680 * tui/tui-data.c (tui_source_window_base): Initialize
6683 2019-07-17 Tom Tromey <tom@tromey.com>
6685 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6688 2019-07-17 Tom Tromey <tom@tromey.com>
6690 * tui/tui.c (tui_rl_other_window): Update.
6691 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6692 superclass method first. Always iterate over regs_content.
6693 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6695 * tui/tui-win.c (tui_set_focus_command): Update.
6697 2019-07-17 Tom Tromey <tom@tromey.com>
6699 * tui/tui-win.c (tui_set_focus_command): Rename from
6700 tui_set_focus. Call tui_enable.
6701 (tui_set_focus_command): Remove.
6703 2019-07-17 Tom Tromey <tom@tromey.com>
6705 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6707 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6709 (tui_data_window::refresh_window): Call refresh_window on data
6710 items. Always call superclass refresh_window.
6711 (tui_win_info::refresh): Remove.
6712 (tui_source_window_base::refresh_window): Update.
6713 (tui_refresh_all): Update.
6714 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6716 (show_source_or_disasm_and_command): Likewise.
6717 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6718 (struct tui_source_window_base) <refresh>: Likewise.
6720 2019-07-17 Tom Tromey <tom@tromey.com>
6722 * tui/tui-winsource.c (tui_clear_source_content)
6723 (tui_show_source_content): Update.
6724 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6725 whether content is empty.
6726 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6729 2019-07-17 Tom Tromey <tom@tromey.com>
6731 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6733 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6734 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6736 2019-07-17 Tom Tromey <tom@tromey.com>
6738 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6739 (struct tui_data_item_window): Update.
6741 2019-07-17 Tom Tromey <tom@tromey.com>
6743 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6744 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6747 2019-07-17 Tom Tromey <tom@tromey.com>
6749 * tui/tui-winsource.h (tui_erase_source_content)
6750 (tui_clear_source_content): Remove "display_prompt" parameter.
6751 * tui/tui-winsource.c (tui_update_source_window_as_is)
6752 (tui_update_source_windows_with_addr): Update.
6753 (tui_clear_source_content): Remove "display_prompt" parameter.
6754 (tui_erase_source_content): Likewise. Simplify.
6755 (tui_show_source_content): Update.
6756 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6757 * tui/tui-stack.c (tui_show_frame_info): Update.
6758 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6761 2019-07-17 Tom Tromey <tom@tromey.com>
6763 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6764 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6766 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6769 2019-07-17 Tom Tromey <tom@tromey.com>
6771 * tui/tui-winsource.c (tui_clear_source_content)
6772 (tui_show_source_content, tui_show_exec_info_content)
6773 (tui_clear_exec_info_content): Update.
6774 * tui/tui-stack.c (tui_show_locator_content): Update.
6775 (tui_show_frame_info): Update.
6776 * tui/tui-source.h (tui_source_window): Don't declare.
6777 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6778 from tui_source_is_displayed.
6779 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6781 (struct tui_source_window_base) <content_in_use>: New field. Now
6783 (struct tui_source_window) <showing_source_p>: New method.
6784 (TUI_SRC_WIN): Change cast.
6785 * tui/tui-data.c (tui_initialize_static_data): Update.
6787 2019-07-17 Tom Tromey <tom@tromey.com>
6789 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6791 * tui/tui-source.c (tui_source_window::location_matches_p): New
6793 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6795 * tui/tui-data.h (struct tui_source_window_base)
6796 <location_matches_p>: New method.
6797 (struct tui_source_window, struct tui_disasm_window)
6798 <location_matches_p>: Likewise.
6800 2019-07-17 Tom Tromey <tom@tromey.com>
6802 * tui/tui-win.c (tui_set_win_height_command): Rename from
6804 (tui_set_win_height_command): Remove.
6806 2019-07-17 Tom Tromey <tom@tromey.com>
6808 * tui/tui-source.c (tui_source_window): New constructor. Add
6810 (~tui_source_window): New destructor.
6811 (tui_source_window::style_changed): New method.
6812 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6813 (tui_attach_detach_observers): Update.
6814 * tui/tui-data.h (struct tui_source_window): Make constructor not
6815 inline. Add destructor.
6816 (struct tui_source_window) <style_changed>: New method.
6817 <m_observable>: New member.
6819 2019-07-17 Tom Tromey <tom@tromey.com>
6821 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6822 * tui/tui-win.c (tui_resize_all): Fix typo.
6824 2019-07-17 Tom Tromey <tom@tromey.com>
6826 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6827 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6828 (tui_refresh_all): Remove "list" parameter. Use foreach.
6829 * tui/tui-win.c (window_name_completer): Use foreach.
6830 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6831 (update_tab_width): Likewise.
6832 * tui/tui-layout.c (show_layout): Update.
6833 * tui/tui-data.h (class tui_window_iterator): New.
6834 (struct all_tui_windows): New.
6835 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6837 2019-07-17 Tom Tromey <tom@tromey.com>
6839 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6840 parameter. Don't reference globals.
6841 (tui_reg_command): Update.
6843 2019-07-17 Tom Tromey <tom@tromey.com>
6845 * tui/tui-regs.c (tui_show_registers): Simplify.
6847 2019-07-17 Tom Tromey <tom@tromey.com>
6849 * tui/tui-regs.c (tui_show_registers): Update.
6850 (tui_show_register_group): Add win_info parameter.
6852 2019-07-17 Tom Tromey <tom@tromey.com>
6854 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6855 Rename from tui_display_reg_element_at_line.
6856 (tui_data_window::display_registers_from_line): Update.
6857 * tui/tui-data.h (struct tui_data_window)
6858 <display_reg_element_at_line>: New method.
6860 2019-07-17 Tom Tromey <tom@tromey.com>
6862 * tui/tui-regs.h (tui_display_registers_from)
6863 (tui_display_registers_from_line): Don't declare.
6864 * tui/tui-windata.c (tui_data_window::display_all_data)
6865 (tui_data_window::refresh_all)
6866 (tui_data_window::do_scroll_vertical): Update.
6867 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6868 from tui_display_registers_from.
6869 (tui_display_reg_element_at_line): Update.
6870 (tui_data_window::display_registers_from_line): Rename from
6871 tui_display_registers_from_line.
6872 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6873 display_registers_from_line>: New methods.
6875 2019-07-17 Tom Tromey <tom@tromey.com>
6877 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6878 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6879 from tui_erase_data_content.
6880 (tui_data_window::display_all_data)
6881 (tui_data_window::refresh_all)
6882 (tui_data_window::do_scroll_vertical): Update.
6883 * tui/tui-regs.c (tui_show_registers): Update.
6884 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6887 2019-07-17 Tom Tromey <tom@tromey.com>
6889 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6892 (tui_data_window::delete_data_content_windows): Rename from
6893 tui_delete_data_content_windows.
6894 (tui_data_window::display_all_data)
6895 (tui_data_window::do_scroll_vertical): Update.
6896 * tui/tui-data.h (struct tui_data_window)
6897 <delete_data_content_windows>: New method.
6899 2019-07-17 Tom Tromey <tom@tromey.com>
6901 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6902 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6904 2019-07-17 Tom Tromey <tom@tromey.com>
6906 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6907 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6908 from tui_display_all_data.
6910 (tui_data_window::do_make_visible_with_new_height): Update.
6911 * tui/tui-regs.c (tui_show_registers): Update.
6912 * tui/tui-layout.c (tui_set_layout): Update.
6913 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6916 2019-07-17 Tom Tromey <tom@tromey.com>
6918 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6919 * tui/tui-windata.c (tui_display_data_from): Remove.
6920 (tui_data_window::refresh_all): Update.
6922 2019-07-17 Tom Tromey <tom@tromey.com>
6924 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6925 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6926 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6927 tui_display_registers_from_line.
6928 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6929 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6930 "force_display" parameter.
6932 2019-07-17 Tom Tromey <tom@tromey.com>
6934 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6936 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6937 Rename from tui_first_reg_element_no_inline.
6938 (tui_display_reg_element_at_line)
6939 (tui_display_registers_from_line): Update.
6940 * tui/tui-data.h (struct tui_data_window)
6941 <first_reg_element_no_inline>: New method.
6943 2019-07-17 Tom Tromey <tom@tromey.com>
6945 * tui/tui-windata.c (tui_display_data_from)
6946 (tui_data_window::do_scroll_vertical): Update.
6947 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6948 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6949 Rename from tui_line_from_reg_element_no.
6950 (tui_display_registers_from_line): Update.
6951 * tui/tui-data.h (struct tui_data_window)
6952 <line_from_reg_element_no>: New method.
6954 2019-07-17 Tom Tromey <tom@tromey.com>
6956 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6957 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6958 tui_last_regs_line_no.
6959 (tui_display_reg_element_at_line)
6960 (tui_display_registers_from_line): Update.
6961 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6964 2019-07-17 Tom Tromey <tom@tromey.com>
6967 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6968 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6969 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6970 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6971 (tui_update_breakpoint_info): Likewise.
6972 * tui/tui-hooks.c (tui_event_create_breakpoint)
6973 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6976 2019-07-17 Tom Tromey <tom@tromey.com>
6978 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6980 2019-07-17 Tom Tromey <tom@tromey.com>
6982 * tui/tui-winsource.c (tui_update_source_window_as_is)
6983 (tui_update_source_windows_with_addr): Update.
6984 * tui/tui-source.h (tui_set_source_content)
6985 (tui_show_symtab_source): Add "win_info" parameter.
6986 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6988 (tui_show_symtab_source): Likewise.
6990 2019-07-17 Tom Tromey <tom@tromey.com>
6992 * tui/tui-wingeneral.c
6993 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6995 2019-07-17 Tom Tromey <tom@tromey.com>
6997 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6998 (struct tui_cmd_window) <can_scroll>: New method.
6999 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7002 2019-07-17 Tom Tromey <tromey@adacore.com>
7004 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7005 do_field_signed>: Rename. Change type of "value".
7006 * ui-out.c (ui_out::field_signed): Rename from field_int.
7007 Change type of "value".
7008 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7010 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7011 do_field_int. Change type of "value".
7012 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7013 do_field_int. Change type of "value".
7014 * tracepoint.c (trace_status_mi, tfind_1)
7015 (print_one_static_tracepoint_marker): Update.
7016 * thread.c (print_thread_info_1, print_selected_thread_frame):
7018 * stack.c (print_frame, print_frame_info): Update.
7019 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7021 * source.c (print_source_lines_base): Update.
7022 * skip.c (info_skip_command): Update.
7023 * record-btrace.c (btrace_ui_out_decode_error)
7024 (btrace_call_history_src_line): Update.
7025 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7027 * progspace.c (print_program_space): Update.
7028 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7029 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7030 do_field_int. Change type of "value".
7031 * mi/mi-out.c (mi_ui_out::do_table_begin)
7032 (mi_ui_out::do_table_header): Update.
7033 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7035 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7036 (mi_cmd_data_list_changed_registers, output_register)
7037 (mi_cmd_data_read_memory, mi_load_progress)
7038 (mi_cmd_trace_frame_collected): Update.
7039 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7041 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7042 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7043 (mi_cmd_var_list_children, varobj_update_one): Update.
7044 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7045 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7046 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7047 * inferior.c (print_inferior): Update.
7048 * gdb_bfd.c (print_one_bfd): Update.
7049 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7051 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7052 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7053 do_field_int. Change type of "value".
7054 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7055 do_field_int. Change type of "value".
7056 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7057 (print_one_breakpoint_location, print_it_catch_fork)
7058 (print_one_catch_fork, print_it_catch_vfork)
7059 (print_one_catch_vfork, print_it_catch_solib)
7060 (print_it_catch_exec, print_it_ranged_breakpoint)
7061 (print_mention_watchpoint, print_mention_masked_watchpoint)
7062 (bkpt_print_it, update_static_tracepoint): Update.
7063 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7064 * break-catch-syscall.c (print_it_catch_syscall): Update.
7065 * ada-tasks.c (print_ada_task_info): Update.
7066 * ada-lang.c (print_it_exception, print_mention_exception):
7069 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7071 PR breakpoints/24541
7072 * gdbarch.c: Regenerate.
7073 * gdbarch.h: Regenerate.
7074 * gdbarch.sh: Adjust return type and parameter types for
7075 'stap_adjust_register'.
7076 (i386_stap_adjust_register): Adjust signature and return new
7078 * stap-probe.c (stap_parse_register_operand): Adjust use of
7079 'gdbarch_stap_adjust_register'.
7081 2019-07-17 Tom Tromey <tromey@adacore.com>
7083 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7085 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7087 (struct s390_process_info): Add initializers.
7088 (s390_add_process): Use new.
7089 (s390_linux_nat_target::low_forget_process): Use delete.
7090 (s390_linux_nat_target::low_new_fork)
7091 (s390_linux_nat_target::stopped_by_watchpoint)
7092 (s390_linux_nat_target::low_prepare_to_resume)
7093 (s390_linux_nat_target::insert_watchpoint)
7094 (s390_linux_nat_target::insert_hw_breakpoint)
7095 (s390_linux_nat_target::remove_watchpoint)
7096 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7098 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7100 * aarch64-fbsd-nat.c: Include regcache.h.
7101 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7103 (aarch64_fbsd_nat_target::fetch_registers)
7104 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7106 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7108 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7110 * fbsd-nat.c: Include gdbarch.h.
7112 2019-07-15 Tom Tromey <tromey@adacore.com>
7114 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7116 2019-07-15 Tom Tromey <tromey@adacore.com>
7118 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7119 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7120 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7121 * cli-out.c (cli_ui_out::do_field_int): New method.
7122 * ui-out.c (ui_out::field_unsigned): New method.
7123 * symfile.c (generic_load): Use field_unsigned.
7124 (print_transfer_performance): Likewise.
7125 * record-btrace.c (ui_out_field_uint): Remove.
7126 (btrace_call_history_insn_range, btrace_call_history): Use
7128 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7130 * ui-out.h (class ui_out) <field_unsigned>: New method.
7131 <do_field_unsigned>: Likewise.
7133 2019-07-15 Tom Tromey <tromey@adacore.com>
7135 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7136 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7137 * target.c (flash_erase_command): Use field_string.
7138 * infrun.c (print_signal_received_reason): Use field_string.
7139 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7140 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7142 * ada-tasks.c (print_ada_task_info): Use field_string.
7144 2019-07-15 Tom Tromey <tromey@adacore.com>
7146 * target.c (flash_erase_command): Use field_core_addr.
7147 * symfile.c (generic_load): Use field_core_addr.
7148 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7149 Use field_core_addr.
7150 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7153 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7155 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7156 value if its desired type is smaller than a CORE_ADDR and signed.
7158 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7160 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7161 of changes to field names, and use new is_reference field to
7162 decide if a property is a reference or not.
7163 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7165 (struct dwarf2_property_baton): Update header comment, rename
7166 'referenced_type' to 'property_type' and update comments.
7167 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7168 default property type, store in property baton, update to take
7169 accound of renamed field.
7170 (read_func_scope): Update call to attr_to_dynamic_prop.
7171 (read_array_type): Likewise.
7172 (dwarf2_per_cu_addr_sized_int_type): New function.
7173 (read_subrange_index_type): Move type finding code to
7174 dwarf2_per_cu_addr_sized_int_type.
7175 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7176 (dwarf2_per_cu_addr_type): New function.
7177 (set_die_type): Update calls to attr_to_dynamic_prop.
7179 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7181 * dwarf2read.c (read_subrange_index_type): New function.
7182 (read_subrange_type): Move code into new function and call it.
7183 * gdbtypes.c (create_range_type): Add some asserts.
7185 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7187 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7188 update return statements.
7189 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7190 declaration, and update comment to match.
7191 * gdbtypes.c (resolve_dynamic_array): Update call to
7192 dwarf2_evaluate_property to match new return type.
7194 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7196 * valarith.c (value_subscripted_rvalue): Change lowerbound
7197 parameter type from int to LONGEST.
7198 * value.h (value_subscripted_rvalue): Likewise in declaration.
7200 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7202 * cli/cli-utils.c (info_print_command_completer): New function.
7203 * cli/cli-utils.h: Add 'completer.h' include, and forward
7204 declaration for 'struct cmd_list_element'.
7205 (info_print_command_completer): Declare.
7206 * stack.c (_initialize_stack): Add completer for 'info locals' and
7208 * symtab.c (_initialize_symtab): Add completer for 'info
7209 variables' and 'info functions'.
7210 * NEWS: Mention completion for additional info commands.
7212 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7214 * cli/cli-utils.c (extract_info_print_args): Delete.
7215 (extract_arg_maybe_quoted): Delete.
7216 (info_print_options_defs): New variable.
7217 (make_info_print_options_def_group): New function.
7218 (extract_info_print_options): Define new function.
7219 * cli/cli-utils.h (extract_info_print_args): Delete.
7220 (struct info_print_options): New structure.
7221 (extract_info_print_options): Declare new function.
7222 * stack.c (info_locals_command): Update to use new
7223 extract_info_print_options, also add a header comment.
7224 (info_args_command): Likewise.
7225 * symtab.c (info_variables_command): Likewise.
7226 (info_functions_command): Likewise.
7228 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7230 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7231 to extract string arguments.
7232 * common/common-utils.c (extract_string_maybe_quoted): New function.
7233 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7235 2019-07-11 Tom Tromey <tromey@adacore.com>
7237 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7238 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7239 * top.h (gdbinit): Don't declare.
7240 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7242 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7243 * top.c (gdb_init): Don't call init_cli_cmds.
7245 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7247 2019-07-11 Tom Tromey <tromey@adacore.com>
7249 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7250 after it has been moved.
7252 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7254 * valops.c (value_must_coerce_to_target): Change return type to
7256 * value.h (value_must_coerce_to_target): Likewise.
7258 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7260 * breakpoint.c (is_hardware_watchpoint): Remove
7261 forward-declaration.
7262 (is_masked_watchpoint): Change return type to bool.
7263 (is_tracepoint): Likewise.
7264 (is_breakpoint): Likewise.
7265 (is_hardware_watchpoint): Likewise.
7266 (is_watchpoint): Likewise.
7267 (is_no_memory_software_watchpoint): Likewise.
7268 (is_catchpoint): Likewise.
7269 (breakpoint_1): Make FILTER parameter's return type bool.
7270 is_masked_watchpoint): Change return type to bool.
7271 (save_breakpoints): Make FILTER parameter's return type bool.
7272 * breakpoint.h (is_breakpoint): Change return type to bool.
7273 (is_watchpoint): Likewise.
7274 (is_catchpoint): Likewise.
7275 (is_tracepoint): Likewise.
7277 2019-07-10 Tom Tromey <tom@tromey.com>
7279 * defs.h: Don't include gdbarch.h.
7280 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7281 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7282 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7283 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7284 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7285 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7286 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7287 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7288 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7289 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7290 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7291 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7292 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7293 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7294 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7295 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7296 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7297 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7298 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7299 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7300 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7301 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7302 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7303 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7304 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7305 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7306 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7308 2019-07-10 Tom Tromey <tromey@adacore.com>
7310 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7311 * breakpoint.c (init_ada_exception_breakpoint): Register as
7313 (print_one_breakpoint_location, print_one_breakpoint): Use
7314 is_ada_exception_catchpoint.
7315 * ada-lang.c (class ada_catchpoint_location): Pass
7316 bp_loc_software_breakpoint to bp_location constructor.
7317 (is_ada_exception_catchpoint): New function.
7319 2019-07-10 Tom Tromey <tromey@adacore.com>
7321 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7323 (struct arm_exidx_entry): New method operator<.
7324 (struct arm_exidx_data) <section_maps>: Change type.
7325 (arm_exidx_data_free): Remove.
7326 (arm_exidx_data_key): Change type. Move lower.
7327 (arm_exidx_new_objfile): Update.
7328 (arm_compare_exidx_entries): Remove.
7329 (arm_find_exidx_entry, _initialize_arm_tdep)
7331 2019-07-10 Tom Tromey <tromey@adacore.com>
7333 * solib-spu.c (ocl_program_data_key): Change type.
7334 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7337 2019-07-10 Tom Tromey <tromey@adacore.com>
7339 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7340 (struct solib_aix_inferior_data) <library_list>: Change type.
7341 (solib_aix_inferior_data_handle): Change type.
7342 (get_solib_aix_inferior_data): Update.
7343 (solib_aix_free_library_list): Remove.
7344 (library_list_start_library): Update.
7345 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7347 (solib_aix_get_library_list)
7348 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7349 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7351 2019-07-10 Tom Tromey <tromey@adacore.com>
7353 * solib-dsbt.c (struct dsbt_info): Add initializers.
7354 (solib_dsbt_pspace_data): Change type.
7355 (dsbt_pspace_data_cleanup): Remove.
7356 (get_dsbt_info, _initialize_dsbt_solib): Update.
7358 2019-07-10 Tom Tromey <tromey@adacore.com>
7360 * spu-tdep.c (spu_overlay_data): Change type.
7361 (spu_get_overlay_table, spu_overlay_new_objfile)
7362 (_initialize_spu_tdep): Update.
7364 2019-07-10 Tom Tromey <tromey@adacore.com>
7366 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7368 (dbx_objfile_data_key): Change type and declare later.
7369 (DBX_SYMFILE_INFO): Rewrite.
7370 * dbxread.c (dbx_objfile_data_key): Change type.
7371 (dbx_symfile_init): Update.
7372 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7373 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7374 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7376 2019-07-10 Tom Tromey <tromey@adacore.com>
7378 * jit.c (jit_program_space_key): Change type. Move lower.
7379 (get_jit_program_space_data): Update.
7380 (jit_program_space_data_cleanup): Remove.
7381 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7383 (struct jit_program_space_data): Add initializers.
7385 2019-07-10 Tom Tromey <tromey@adacore.com>
7387 * solib-darwin.c (struct darwin_info): Add initializers.
7388 (solib_darwin_pspace_data): Change type.
7389 (darwin_pspace_data_cleanup): Remove.
7390 (get_darwin_info, _initialize_darwin_solib): Update.
7392 2019-07-10 Tom Tromey <tromey@adacore.com>
7394 * remote-sim.c (struct sim_inferior_data): Add initializers,
7395 constructor, and destructor.
7396 (sim_inferior_data_key): Change type. Move lower.
7397 (check_for_duplicate_sim_descriptor): Update.
7398 (get_sim_inferior_data): Use new. Update.
7399 (~sim_inferior_data_cleanup): Rename from
7400 sim_inferior_data_cleanup. Simplify.
7401 (gdbsim_close_inferior, simulator_command)
7402 (sim_command_completer, _initialize_remote_sim): Update.
7403 (next_pid, INITIAL_PID): Move earlier.
7405 2019-07-10 Tom Tromey <tromey@adacore.com>
7407 * python/python-internal.h (create_thread_object): Return
7409 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7410 * python/py-inferior.c (struct threadlist_entry): Add
7412 <thread_obj>: Now a gdbpy_ref.
7413 (thread_to_thread_object): Update.
7414 (add_thread_object): Use new.
7415 (delete_thread_object): Use delete.
7416 (infpy_threads): Update.
7417 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7420 2019-07-10 Tom Tromey <tromey@adacore.com>
7422 * valops.c (value_cast): Specialize error message for Ada.
7424 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7426 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7428 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7430 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7431 bpstat_should_step): Return bool, adjust comments.
7432 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7433 bpstat_should_step): Likewise.
7435 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7437 * features/Makefile: Use feature target descriptions for Arm.
7438 * features/arm/arm-core.c: Generate new file.
7439 * features/arm/arm-fpa.c: Likewise.
7440 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7441 * features/arm/arm-m-profile.c: Likewise.
7442 * features/arm/arm-vfpv2.c: Likewise.
7443 * features/arm/arm-vfpv3.c: Likewise.
7444 * features/arm/xscale-iwmmxt.c: Likewise.
7445 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7447 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7449 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7452 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7454 * features/aarch64-pauth.c: Regenerate.
7456 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7458 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7460 (bpstat_what): Use false instead of 0.
7462 2019-07-09 Pedro Alves <palves@redhat.com>
7464 * break-catch-throw.c (is_exception_catchpoint): New.
7465 * breakpoint.c (print_one_breakpoint_location): New parameter
7466 'raw_loc'. Handle it. Use
7467 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7468 looking at the breakpoint's type.
7469 (print_one_breakpoint): If handling "maint info breakpoints", also
7470 print locations of exception catchpoints.
7471 * breakpoint.h (is_exception_catchpoint): Declare.
7473 2019-07-09 Pedro Alves <palves@redhat.com>
7475 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7477 (allocate_location_exception_catchpoint): New.
7478 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7479 (initialize_throw_catchpoint_ops): Install
7480 allocate_location_exception_catchpoint as allocate_location
7482 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7483 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7485 (breakpoint_address_is_meaningful): Delete.
7486 (bl_address_is_meaningful): New.
7487 (breakpoint_locations_match): Adjust comment.
7488 (bp_location_from_bp_type): New, factored out of...
7489 (bp_location::bp_location(breakpoint *)): ... this.
7490 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7492 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7493 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7494 breakpoint_address_is_meaningful.
7495 (bp_locations_compare): Adjust comment.
7496 (update_global_location_list): Use bl_address_is_meaningful
7497 instead of breakpoint_address_is_meaningful.
7498 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7500 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7501 * python/py-breakpoint.c (bppy_get_location): No longer check
7502 whether location is null.
7504 2019-07-09 Pedro Alves <palves@redhat.com>
7507 * breakpoint.c (print_one_breakpoint_location): Remove
7508 single-location assert.
7510 2019-07-09 Tom Tromey <tom@tromey.com>
7512 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7513 * configure: Rebuild.
7514 * configure.ac: Change common to gdbsupport.
7515 * gdbsupport: Rename from common.
7516 * acinclude.m4: Change common to gdbsupport.
7517 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7518 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7520 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7521 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7522 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7523 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7524 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7525 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7526 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7527 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7528 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7529 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7530 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7531 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7532 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7533 coff-pe-read.c, command.h, compile/compile-c-support.c,
7534 compile/compile-c.h, compile/compile-cplus-symbols.c,
7535 compile/compile-cplus-types.c, compile/compile-cplus.h,
7536 compile/compile-loc2c.c, compile/compile.c, completer.c,
7537 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7538 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7539 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7540 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7541 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7542 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7543 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7544 features/aarch64-core.c, features/aarch64-fpu.c,
7545 features/aarch64-pauth.c, features/aarch64-sve.c,
7546 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7547 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7548 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7549 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7550 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7551 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7552 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7553 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7554 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7555 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7556 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7557 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7558 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7559 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7560 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7561 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7562 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7563 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7564 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7565 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7566 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7567 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7568 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7569 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7570 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7571 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7572 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7573 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7574 minsyms.c, mips-linux-tdep.c, namespace.h,
7575 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7576 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7577 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7578 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7579 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7580 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7581 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7582 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7583 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7584 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7585 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7586 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7587 procfs.c, producer.c, progspace.h, psymtab.h,
7588 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7589 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7590 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7591 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7592 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7593 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7594 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7595 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7596 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7597 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7598 target-memory.c, target.c, target.h, target/waitstatus.c,
7599 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7600 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7601 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7602 unittests/array-view-selftests.c,
7603 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7604 unittests/common-utils-selftests.c,
7605 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7606 unittests/format_pieces-selftests.c,
7607 unittests/function-view-selftests.c,
7608 unittests/lookup_name_info-selftests.c,
7609 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7610 unittests/mkdir-recursive-selftests.c,
7611 unittests/observable-selftests.c,
7612 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7613 unittests/parse-connection-spec-selftests.c,
7614 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7615 unittests/scoped_fd-selftests.c,
7616 unittests/scoped_mmap-selftests.c,
7617 unittests/scoped_restore-selftests.c,
7618 unittests/string_view-selftests.c, unittests/style-selftests.c,
7619 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7620 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7621 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7622 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7623 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7624 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7626 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7630 (decode_digits_ordinary): Set explicit_line field in sal.
7631 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7632 symtab_and_line that was set on an explicit line number in
7633 assembler code. Do always update the recorded symtab and line if
7634 we do skip the prologue.
7636 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7638 * breakpoint.c (set_breakpoint_location_function): Remove
7639 explicit_loc parameter.
7640 (momentary_breakpoint_from_master): Update call to
7641 set_breakpoint_location_function.
7642 (add_location_to_breakpoint): Likewise.
7644 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7646 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7647 required features based on default bfd type when no specific bfd
7650 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7652 * NEWS: Mention that GDB printf and eval commands can now print
7653 C-style and Ada-style convenience var strings without
7654 calling the inferior.
7655 * printcmd.c (printf_c_string): Locally print GDB internal var
7656 instead of transiting via the inferior.
7657 (printf_wide_c_string): Likewise.
7659 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7661 PR breakpoints/25011
7662 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7664 2019-07-04 Tom Tromey <tom@tromey.com>
7667 * tui/tui-winsource.c (tui_clear_source_content): Update.
7668 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7669 (tui_update_breakpoint_info): Update.
7670 (tui_set_exec_info_content): Update.
7671 * tui/tui-source.c (tui_set_source_content_nil): Update.
7672 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7674 * tui/tui-data.h (enum tui_bp_flag): New.
7675 (tui_bp_flags): New enum flags type.
7676 (struct tui_source_element) <break_mode>: Change type. Rename
7678 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7679 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7681 * tui/tui-winsource.h: Fix comment.
7683 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7685 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7686 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7687 (store_fpregs_to_thread)
7688 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7689 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7690 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7691 (IWMMXT_REGS_SIZE): Add define.
7692 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7693 (fetch_vfp_regs, store_vfp_regs)
7694 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7695 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7697 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7699 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7701 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7702 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7703 (ARM_INT_REGISTER_SIZE): ...to this.
7704 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7705 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7706 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7707 (arm_linux_collect_gregset, supply_nwfpe_register)
7708 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7710 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7711 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7712 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7713 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7714 (arm_return_in_memory, arm_store_return_value)
7715 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7716 (arm_record_ld_st_multiple): Likewise.
7717 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7718 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7720 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7722 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7723 AARCH64_DISPLACED_MODIFIED_INSNS.
7724 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7725 (aarch64_displaced_step_copy_insn): Likewise.
7726 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7727 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7728 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7729 ARM_DISPLACED_MODIFIED_INSNS.
7730 * arm-tdep.c (arm_gdbarch_init): Likewise.
7731 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7732 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7733 (struct arm_displaced_step_closure): Use
7734 ARM_DISPLACED_MODIFIED_INSNS.
7736 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7738 * features/Makefile: Remove unused xml files.
7739 * features/aarch64.xml: Remove.
7740 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7741 * features/i386/amd64-avx-avx512.xml: Remove.
7742 * features/i386/amd64-avx-linux.xml: Remove.
7743 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7744 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7745 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7746 * features/i386/amd64-avx-mpx.xml: Remove.
7747 * features/i386/amd64-avx.xml: Remove.
7748 * features/i386/amd64-linux.xml: Remove.
7749 * features/i386/amd64-mpx-linux.xml: Remove.
7750 * features/i386/amd64-mpx.xml: Remove.
7751 * features/i386/amd64.xml: Remove.
7752 * features/i386/i386-avx-avx512-linux.xml: Remove.
7753 * features/i386/i386-avx-avx512.xml: Remove.
7754 * features/i386/i386-avx-linux.xml: Remove.
7755 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7756 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7757 * features/i386/i386-avx-mpx-linux.xml: Remove.
7758 * features/i386/i386-avx-mpx.xml: Remove.
7759 * features/i386/i386-avx.xml: Remove.
7760 * features/i386/i386-linux.xml: Remove.
7761 * features/i386/i386-mmx-linux.xml: Remove.
7762 * features/i386/i386-mmx.xml: Remove.
7763 * features/i386/i386-mpx-linux.xml: Remove.
7764 * features/i386/i386-mpx.xml: Remove.
7765 * features/i386/i386.xml: Remove.
7766 * features/i386/x32-avx-avx512-linux.xml: Remove.
7767 * features/i386/x32-avx-linux.xml: Remove.
7768 * features/i386/x32-linux.xml: Remove.
7770 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7772 * regformats/aarch64.dat: Remove.
7773 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7774 * regformats/i386/amd64-avx-linux.dat: Remove.
7775 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7776 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7777 * regformats/i386/amd64-linux.dat: Remove.
7778 * regformats/i386/amd64-mpx-linux.dat: Remove.
7779 * regformats/i386/amd64.dat: Remove.
7780 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7781 * regformats/i386/i386-avx-linux.dat: Remove.
7782 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7783 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7784 * regformats/i386/i386-linux.dat: Remove.
7785 * regformats/i386/i386-mmx-linux.dat: Remove.
7786 * regformats/i386/i386-mpx-linux.dat: Remove.
7787 * regformats/i386/i386.dat: Remove.
7788 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7789 * regformats/i386/x32-avx-linux.dat: Remove.
7790 * regformats/i386/x32-linux.dat: Remove.
7792 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7794 * aarch64-tdep.c: Remove xml self tests.
7795 * amd64-linux-tdep.c: Likewise.
7796 * amd64-tdep.c: Likewise.
7797 * i386-linux-tdep.c: Likewise.
7798 * i386-tdep.c: Likewise.
7800 2019-07-03 Pedro Alves <palves@redhat.com>
7803 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7804 (pipe_cmd_option_defs): New.
7805 (make_pipe_cmd_options_def_group): New.
7806 (pipe_command): Use gdb::option::process_options.
7807 (pipe_command_completer): New function.
7808 (_initialize_cli_cmds): Install completer for "pipe" command.
7810 2019-07-03 Pedro Alves <palves@redhat.com>
7812 * cli/cli-option.c (union option_value) <string>: New field.
7813 (struct option_def_and_value): Add ctor, move ctor, dtor and
7814 use DISABLE_COPY_AND_ASSIGN.
7815 (option_def_and_value::clear_value): New.
7816 (parse_option, save_option_value_in_ctx, get_val_type_str)
7817 (add_setshow_cmds_for_options): Handle var_string.
7818 * cli-option.h (union option_def::var_address) <string>: New
7820 (struct string_option_def): New.
7821 * maint-test-options.c (struct test_options_opts): Add default
7822 ctor and use DISABLE_COPY_AND_ASSIGN.
7823 <string_opt>: New field.
7824 (test_options_opts::~test_options_opts): New.
7825 (test_options_opts::dump): Also dump "-string".
7826 (test_options_option_defs): Install "string.
7828 2019-07-03 Pedro Alves <palves@redhat.com>
7830 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7831 option_value with a null enumeration.
7832 (complete_options): Save the option values in the context.
7833 (save_option_value_in_ctx): New, factored out from ...
7834 (process_options): ... here.
7835 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7837 * maint-test-options.c (test_options_opts::dump): New, factored
7839 (maintenance_test_options_command_mode): ... here.
7840 (maintenance_test_options_command_completion_result): Delete.
7841 (maintenance_test_options_command_completion_text): Update
7843 (maintenance_show_test_options_completion_result): Change
7844 prototype. Just print
7845 maintenance_test_options_command_completion_text.
7846 (save_completion_result): New.
7847 (maintenance_test_options_completer_mode): Pass options context to
7848 complete_options, and then save a dump.
7849 (_initialize_maint_test_options): Use add_cmd to install "maint
7850 show test-options-completion-result".
7852 2019-07-03 Pedro Alves <palves@redhat.com>
7854 * NEWS (New commands): Mention "with" and "maint with".
7855 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7856 (with_command, with_command_completer): New.
7857 (pipe_command): Adjust to new repeat_previous
7859 (_initialize_cli_cmds): Install the "with" command and its "w"
7861 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7863 * cli/cli-setshow.c (parse_cli_var_uinteger)
7864 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7865 argument strings for all var_types.
7866 (get_setshow_command_value_string): New, factored out from ...
7867 (do_show_command): ... this.
7868 * cli/cli-setshow.h: Include <string>.
7869 (get_setshow_command_value_string): Declare.
7870 * command.h (repeat_previous): Now returns const char *. Adjust
7872 * maint.c: Include "cli/cli-cmds.h".
7873 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7874 (_initialize_maint_cmds): Register the "maintenance with" command.
7875 * top.c (repeat_previous): Move bits from pipe_command here:
7876 Return the saved command line, if any; error out if there's no
7877 command to relaunch.
7879 2019-07-03 Pedro Alves <palves@redhat.com>
7881 * NEWS (New commands): Mention "maint set/show test-settings"
7882 instead of "maint test-settings".
7883 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7884 (maintenance_test_settings_set_list): Rename to ...
7885 (maintenance_set_test_settings_list): ... this.
7886 (maintenance_test_settings_show_list): Rename to ...
7887 (maintenance_show_test_settings_list): ... this.
7888 (maintenance_test_settings_cmd): Delete.
7889 (maintenance_test_settings_set_cmd): ...
7890 (maintenance_set_test_settings_cmd): ... this.
7891 (maintenance_test_settings_show_cmd): ...
7892 (maintenance_show_test_settings_cmd): ... this.
7893 (maintenance_test_settings_show_value_cmd):
7894 (maintenance_show_test_settings_value_cmd): ... this.
7895 (_initialize_maint_test_settings): No longer install the "maint
7896 test-settings" prefix command. Rename "maint test-settings set"
7897 to "maint set test-settings", and "maint test-settings show" to
7898 "maint show test-settings". Adjust all subcommands.
7900 2019-07-03 Pedro Alves <palves@redhat.com>
7902 * maint-test-settings.c: Fix file's intro comment. Replace all
7903 references to "test-options" with references to "test-settings",
7906 2019-07-03 Pedro Alves <palves@redhat.com>
7908 * maint-test-settings.c (maintenance_test_settings_xxx)
7909 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7911 (maintenance_test_settings_enums): Use them.
7912 (maintenance_test_settings_enum): Default to
7913 maintenance_test_settings_xxx.
7914 (_initialize_maint_test_settings): Initialize
7915 MAINTENANCE_TEST_SETTINGS_FILENAME.
7917 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7919 * breakpoint.h (remove_breakpoints_inf): Change return type to
7920 void, move function documentation here.
7921 * breakpoint.c (remove_breakpoints_inf): Change return type to
7922 void, move function documentation to header.
7924 2019-07-02 Pedro Alves <palves@redhat.com>
7926 * NEWS (Completion improvements): Mention "info threads".
7927 * thread.c (struct info_threads_opts, info_threads_option_defs)
7928 (make_info_threads_options_def_group): New.
7929 (info_threads_command): Use gdb::option::process_options.
7930 (info_threads_command_completer): New.
7931 (_initialize_thread): Use gdb::option::build_help to build the
7932 help text for "info threads".
7934 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7936 * defs.h (generic_load): Move from here...
7937 * symfile.h (generic_load): ... to here. Rename name parameter
7939 * symfile.c (generic_load): Add comment.
7941 2019-07-01 Tom Tromey <tromey@adacore.com>
7944 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7945 declaration of without_params. Fix formatting.
7947 2019-07-01 Tom Tromey <tromey@adacore.com>
7949 * ada-exp.y (find_primitive_type): Update.
7950 * ada-lang.h (ada_lookup_symbol): Update.
7951 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7953 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7955 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7957 PR breakpoints/24541
7958 * gdbarch.c: Regenerate.
7959 * gdbarch.h: Regenerate.
7960 * gdbarch.sh: Add 'stap_adjust_register'.
7961 * i386-tdep.c: Include '<unordered_set>'.
7962 (i386_stap_adjust_register): New function.
7963 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7964 * stap-probe.c (stap_parse_register_operand): Call
7965 'gdbarch_stap_adjust_register'.
7967 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7970 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7971 * python/python.c (do_start_initialization): Use 'xmalloc'
7972 instead of 'PyMem_Malloc'.
7974 2019-06-28 Tom Tromey <tromey@adacore.com>
7976 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7979 2019-06-27 Tom Tromey <tromey@adacore.com>
7981 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7983 (arm_find_mapping_symbol, arm_record_special_symbol)
7984 (_initialize_arm_tdep): Update.
7985 (arm_objfile_data_free): Remove.
7987 2019-06-27 Tom Tromey <tromey@adacore.com>
7989 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7990 to cp_print_static_field.
7992 2019-06-26 Tom Tromey <tromey@adacore.com>
7994 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7995 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7998 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8000 * features/aarch64-core.c (create_feature_aarch64_core):
8002 * features/aarch64-core.xml: Add cpsr flags.
8004 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8006 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8007 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8009 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8011 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8013 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8015 (arm_record_special_symbol): Don't insert new symbol in sorted
8016 position, push it at the end.
8018 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8020 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8021 (arm_mapping_symbol_s): Remove.
8022 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8023 (arm_mapping_symbol_vec): New typedef.
8024 (struct arm_per_objfile): Add constructor.
8025 <section_maps>: Change type to
8026 std::unique_ptr<arm_mapping_symbol_vec[]>.
8027 (arm_compare_mapping_symbols): Remove.
8028 (arm_find_mapping_symbol): Adjust to section_maps type change.
8029 (arm_objfile_data_free): Call delete on arm_per_objfile.
8030 (arm_record_special_symbol): Adjust to section_maps type change.
8031 Allocate arm_per_objfile with new.
8033 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8035 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8036 with the command prefix.
8038 2019-06-25 Tom Tromey <tom@tromey.com>
8040 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8041 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8043 2019-06-25 Tom Tromey <tom@tromey.com>
8045 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8047 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8050 2019-06-25 Tom Tromey <tom@tromey.com>
8052 * tui/tui-winsource.c
8053 (tui_source_window_base::set_is_exec_point_at): Add check against
8056 2019-06-25 Tom Tromey <tom@tromey.com>
8058 * tui/tui-source.c (tui_set_source_content): Don't check before
8060 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8062 2019-06-25 Tom Tromey <tom@tromey.com>
8064 * tui/tui-winsource.h (tui_update_source_window_as_is)
8065 (tui_alloc_source_buffer, tui_line_is_displayed)
8066 (tui_addr_is_displayed): Change type of win_info.
8067 * tui/tui-winsource.c (tui_update_source_window_as_is)
8068 (tui_clear_source_content, tui_show_source_line)
8069 (tui_show_source_content, tui_source_window_base::refill)
8070 (tui_source_window_base::set_is_exec_point_at)
8071 (tui_source_window_base::set_is_exec_point_at)
8072 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8073 (tui_alloc_source_buffer, tui_line_is_displayed)
8074 (tui_addr_is_displayed): Change type of win_info. Update.
8075 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8076 (tui_source_window_base::do_make_visible_with_new_height):
8078 * tui/tui-source.c (tui_set_source_content)
8079 (tui_set_source_content_nil)
8080 (tui_source_window::do_scroll_vertical): Update.
8081 * tui/tui-layout.c (show_layout): Update.
8082 * tui/tui-disasm.c (tui_set_disassem_content)
8083 (tui_disasm_window::do_scroll_vertical): Update.
8084 * tui/tui-data.h (tui_win_content): Remove.
8085 (struct tui_gen_win_info) <content, content_size>: Remove.
8086 (struct tui_source_element): Add initializers and destructor.
8087 (union tui_which_element, struct tui_win_element): Remove.
8088 (struct tui_source_window_base) <content>: New field.
8089 (struct tui_data_window): Remove destructor.
8090 (tui_alloc_content, tui_free_win_content)
8091 (tui_free_all_source_wins_content): Don't declare.
8092 * tui/tui-data.c (tui_initialize_static_data): Update.
8093 (init_content_element, tui_alloc_content): Remove.
8094 (~tui_gen_win_info): Update.
8095 (~tui_data_window, tui_free_all_source_wins_content)
8096 (tui_free_win_content, free_content, free_content_elements):
8099 2019-06-25 Tom Tromey <tom@tromey.com>
8101 * tui/tui-winsource.h (tui_clear_source_content)
8102 (tui_erase_source_content, tui_show_source_content): Change type
8104 * tui/tui-winsource.c (tui_clear_source_content)
8105 (tui_erase_source_content, tui_show_source_content): Change type
8107 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8108 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8110 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8112 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8114 2019-06-25 Tom Tromey <tom@tromey.com>
8116 * tui/tui-winsource.c (tui_clear_source_content)
8117 (tui_source_window_base::set_is_exec_point_at): Update.
8118 * tui/tui-source.c (tui_set_source_content_nil): Update.
8119 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8121 * tui/tui-data.c (init_content_element): Update.
8123 2019-06-25 Tom Tromey <tom@tromey.com>
8125 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8126 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8127 * tui/tui-layout.c (init_and_make_win): Update.
8128 * tui/tui.h (enum tui_win_type): Update.
8129 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8130 tui_win_is_auxillary.
8131 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8132 tui_win_is_auxillary.
8134 2019-06-25 Tom Tromey <tom@tromey.com>
8136 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8137 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8138 (tui_delete_data_content_windows, tui_display_all_data)
8139 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8141 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8142 * tui/tui-regs.c (tui_last_regs_line_no)
8143 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8144 (tui_show_registers): Update.
8145 (tui_show_register_group): Return void. Update.
8146 (tui_display_registers_from, tui_display_reg_element_at_line)
8147 (tui_display_registers_from_line, tui_check_register_values):
8149 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8151 (struct tui_data_window) <regs_content>: Now a std::vector.
8152 <regs_content_count>: Remove.
8153 (tui_add_content_elements, tui_free_data_content): Don't declare.
8154 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8155 (init_content_element): Remove DATA_WIN case. Add assert.
8156 (tui_add_content_elements): Remove.
8157 (tui_data_window): Update.
8158 (tui_free_data_content): Remove.
8159 (free_content_elements): Remove DATA_WIN case.
8161 2019-06-25 Tom Tromey <tom@tromey.com>
8163 * tui/tui-data.c (tui_data_item_window): Update.
8164 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8165 * tui/tui-windata.c (tui_display_all_data)
8166 (tui_display_data_from_line): Update.
8167 (tui_check_data_values): Remove.
8168 * tui/tui-regs.c (tui_show_register_group)
8169 (tui_display_reg_element_at_line): Update.
8170 * tui/tui-hooks.c (tui_register_changed)
8171 (tui_refresh_frame_and_register_information): Call
8172 tui_check_register_values.
8173 * tui/tui-data.h (struct tui_data_window) <data_content,
8174 data_content_count, data_type>: Remove.
8175 (enum tui_data_type): Remove.
8177 * tui/tui-data.c (tui_data_window::clear_detail)
8178 (~tui_data_window): Update.
8180 2019-06-25 Tom Tromey <tom@tromey.com>
8182 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8184 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8185 Rename from tui_first_data_item_displayed. Update.
8186 (tui_data_window::refresh_all)
8187 (tui_data_window::do_scroll_vertical): Update.
8188 * tui/tui-data.h (struct tui_data_window)
8189 <first_data_item_displayed>: Declare new method.
8191 2019-06-25 Tom Tromey <tom@tromey.com>
8193 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8194 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8196 (tui_initialize_static_data): ...here.
8198 2019-06-25 Tom Tromey <tom@tromey.com>
8200 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8201 (tui_display_registers_from, tui_check_register_values): Update.
8202 (tui_display_register): Remove win_info parameter; update.
8203 (tui_get_register): Change type of parameters.
8204 * tui/tui-data.h (struct tui_data_element): Remove.
8205 (union tui_which_element) <data>: Remove.
8206 <data_window>: Change type.
8207 (struct tui_data_item_window): New.
8208 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8210 (~tui_data_item_window): New destructor.
8211 (free_content_elements): Remove DATA_ITEM_WIN case.
8213 2019-06-25 Tom Tromey <tom@tromey.com>
8215 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8218 2019-06-25 Tom Tromey <tom@tromey.com>
8220 * tui/tui-data.h (struct tui_command_element): Remove.
8221 (union tui_which_element) <command>: Remove.
8222 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8224 (free_content_elements): Remove CMD_WIN case.
8226 2019-06-25 Tom Tromey <tom@tromey.com>
8228 * tui/tui-layout.c (tui_set_layout): Update.
8229 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8230 * tui/tui-data.c (layout_def): Update.
8232 2019-06-25 Tom Tromey <tom@tromey.com>
8234 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8235 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8236 (tui_source_window_base::set_new_height): Update.
8237 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8239 (tui_set_locator_fullname, tui_set_locator_info)
8240 (tui_show_frame_info): Update.
8241 * tui/tui-source.c (tui_set_source_content)
8242 (tui_source_is_displayed): Update.
8243 * tui/tui-layout.c (show_source_disasm_command, show_data)
8244 (show_source_or_disasm_and_command): Update.
8245 * tui/tui-disasm.c (tui_set_disassem_content)
8246 (tui_get_begin_asm_address): Update.
8247 * tui/tui-data.h (struct tui_locator_element): Remove.
8248 (union tui_which_element) <locator>: Remove.
8249 (struct tui_locator_window): New.
8250 (tui_locator_win_info_ptr): Change return type.
8251 * tui/tui-data.c (_locator): Change type.
8252 (tui_locator_win_info_ptr): Change return type.
8253 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8254 (tui_alloc_content): Add assert.
8256 2019-06-25 Tom Tromey <tom@tromey.com>
8258 * tui/tui-winsource.c
8259 (tui_exec_info_window::maybe_allocate_content): New method.
8260 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8261 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8262 (make_source_or_disasm_window): Add cast.
8263 * tui/tui-data.h (union tui_which_element) <simple_string>:
8265 (struct tui_source_info): New.
8266 (struct tui_source_window_base) <execution_info>: Change type.
8267 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8268 case, and add assert.
8269 (tui_alloc_content): Add assert.
8271 2019-06-25 Tom Tromey <tom@tromey.com>
8273 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8274 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8275 * tui/tui-data.c (tui_alloc_win_info): Remove.
8277 2019-06-25 Tom Tromey <tom@tromey.com>
8279 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8280 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8283 2019-06-25 Tom Tromey <tom@tromey.com>
8285 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8286 make_visible_with_new_height method.
8287 (tui_win_info::make_visible_with_new_height): New method.
8288 (tui_source_window_base::do_make_visible_with_new_height)
8289 (tui_data_window::do_make_visible_with_new_height)
8290 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8291 (make_visible_with_new_height): Remove.
8292 (tui_resize_all, tui_adjust_win_heights): Use
8293 make_visible_with_new_height method.
8294 * tui/tui-data.h (struct tui_win_info)
8295 <do_make_visible_with_new_height, make_visible_with_new_height>:
8297 (struct tui_source_window_base, struct tui_data_window)
8298 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8301 2019-06-25 Tom Tromey <tom@tromey.com>
8303 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8305 (update_tab_width): Call update_tab_width method.
8306 * tui/tui-data.h (struct tui_win_info)
8307 (struct tui_source_window_base) <update_tab_width>: New methods.
8309 2019-06-25 Tom Tromey <tom@tromey.com>
8311 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8313 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8315 (tui_gen_win_info::make_visible): Update.
8316 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8318 * tui/tui-data.h (enum tui_box): New enum.
8319 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8321 2019-06-25 Tom Tromey <tom@tromey.com>
8323 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8324 init_and_make_win for EXEC_INFO_WIN.
8325 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8327 (struct tui_win_info) <~tui_win_info>: Inline.
8328 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8330 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8331 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8333 (tui_initialize_static_data): Update.
8334 (~tui_gen_win_info): Handle more cleanup here.
8335 (~tui_source_window_base): Delete "execution_info".
8336 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8338 2019-06-25 Tom Tromey <tom@tromey.com>
8340 * tui/tui-layout.c (make_command_window): Don't set
8342 (show_source_disasm_command): Call the reset method.
8343 (show_data): Don't set can_highlight. Call the reset method.
8344 (tui_gen_win_info::reset): Rename from init_gen_win_info
8345 (init_and_make_win): Simplify. Return tui_gen_win_info.
8346 (show_source_or_disasm_and_command): Call the reset method.
8347 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8348 (struct tui_cmd_window): Set can_highlight.
8350 2019-06-25 Tom Tromey <tom@tromey.com>
8352 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8354 (tui_make_visible, tui_make_invisible): Rewrite.
8355 (tui_win_info::make_visible): Remove.
8356 (tui_source_window_base::make_visible): Update.
8357 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8358 method. Moved from...
8359 (struct tui_win_info) <make_visible>: ...here.
8361 2019-06-25 Tom Tromey <tom@tromey.com>
8363 * tui/tui-winsource.c
8364 (tui_source_window_base::do_scroll_horizontal): Remove direction
8366 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8367 direction parameter.
8368 * tui/tui-win.c (tui_win_info::forward_scroll)
8369 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8370 (tui_win_info::right_scroll): Update.
8371 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8372 direction parameter.
8373 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8374 direction parameter.
8375 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8376 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8377 Remove direction parameter.
8378 (struct tui_source_window_base, struct tui_source_window)
8379 (struct tui_disasm_window, struct tui_data_window)
8380 (struct tui_cmd_window): Update.
8382 2019-06-25 Tom Tromey <tom@tromey.com>
8384 * tui/tui-winsource.h (tui_set_exec_info_content)
8385 (tui_show_exec_info_content, tui_erase_exec_info_content)
8386 (tui_clear_exec_info_content, tui_update_exec_info): Change
8387 argument to tui_source_window_base.
8388 * tui/tui-winsource.c (tui_set_exec_info_content)
8389 (tui_show_exec_info_content, tui_erase_exec_info_content)
8390 (tui_clear_exec_info_content, tui_update_exec_info): Change
8391 argument to tui_source_window_base.
8393 2019-06-25 Tom Tromey <tom@tromey.com>
8395 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8396 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8398 2019-06-25 Tom Tromey <tom@tromey.com>
8400 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8403 2019-06-25 Tom Tromey <tom@tromey.com>
8405 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8407 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8409 * tui/tui-source.c (tui_set_source_content): Update.
8410 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8412 2019-06-25 Tom Tromey <tom@tromey.com>
8414 * tui/tui-win.c (window_name_completer, tui_set_focus)
8415 (tui_all_windows_info): Use name method.
8416 * tui/tui-data.h (struct tui_gen_win_info)
8417 (struct tui_source_window, struct tui_disasm_window)
8418 (struct tui_data_window, struct tui_cmd_window) <name>: New
8420 (tui_win_name): Don't declare.
8421 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8422 (tui_win_name): Remove.
8424 2019-06-25 Tom Tromey <tom@tromey.com>
8426 * tui/tui-winsource.h (tui_update_source_window)
8427 (tui_update_source_window_as_is): Change parameter type.
8428 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8429 to be a tui_source_window_base.
8430 (tui_update_source_window_as_is): Likewise.
8431 * tui/tui-win.c (make_visible_with_new_height): Update.
8433 2019-06-25 Tom Tromey <tom@tromey.com>
8435 * tui/tui-winsource.c (tui_erase_source_content)
8436 (tui_show_source_content, tui_show_exec_info_content)
8437 (tui_erase_exec_info_content): Use refresh_window method.
8438 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8439 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8440 from tui_refresh_win.
8441 (tui_data_window::refresh_window): New method.
8442 (tui_win_info::refresh, tui_source_window_base::refresh)
8443 (tui_refresh_all): Use refresh_window method.
8444 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8446 * tui/tui-regs.c (tui_display_register): Call refresh_window
8448 * tui/tui-layout.c (show_source_disasm_command)
8449 (show_source_or_disasm_and_command): Call refresh_window method.
8450 * tui/tui-data.h (struct tui_gen_win_info)
8451 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8454 2019-06-25 Tom Tromey <tom@tromey.com>
8456 * tui/tui.c (tui_rl_other_window, tui_enable)
8457 (tui_is_window_visible, tui_get_command_dimension): Update.
8458 * tui/tui-winsource.c (tui_update_source_window_as_is)
8459 (tui_clear_source_content, tui_erase_source_content)
8460 (tui_show_source_line, tui_source_window_base::refill)
8461 (tui_source_window_base::do_scroll_horizontal)
8462 (tui_source_window_base::set_is_exec_point_at)
8463 (tui_update_breakpoint_info, tui_set_exec_info_content)
8464 (tui_alloc_source_buffer, tui_line_is_displayed)
8465 (tui_addr_is_displayed): Update.
8466 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8467 (tui_check_and_display_highlight_if_needed)
8468 (tui_win_info::make_visible, tui_win_info::refresh)
8469 (tui_refresh_all): Update.
8470 * tui/tui-windata.c (tui_first_data_item_displayed)
8471 (tui_delete_data_content_windows, tui_erase_data_content)
8472 (tui_display_all_data, tui_data_window::refresh_all)
8473 (tui_check_data_values): Update.
8474 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8475 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8476 (tui_win_info::backward_scroll, tui_refresh_all_win)
8477 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8478 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8479 (tui_source_window_base::set_new_height)
8480 (tui_data_window::set_new_height)
8481 (make_invisible_and_set_new_height)
8482 (make_visible_with_new_height, new_height_ok)
8483 (parse_scrolling_args): Update.
8484 * tui/tui-stack.c (tui_show_frame_info): Update.
8485 * tui/tui-source.c (tui_set_source_content)
8486 (tui_set_source_content_nil, tui_source_is_displayed)
8487 (tui_source_window::do_scroll_vertical): Update.
8488 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8489 (tui_display_registers_from, tui_display_reg_element_at_line)
8490 (tui_check_register_values, tui_reg_command): Update.
8491 * tui/tui-layout.c (tui_default_win_height)
8492 (show_source_disasm_command, show_data, init_and_make_win)
8493 (show_source_or_disasm_and_command): Update.
8494 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8495 (tui_redisplay_readline, tui_mld_flush)
8496 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8498 * tui/tui-disasm.c (tui_set_disassem_content)
8499 (tui_disasm_window::do_scroll_vertical): Update.
8500 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8502 (struct tui_win_info): Derive from tui_gen_win_info.
8503 <~tui_win_info>: Mark as override.
8504 <generic>: Remove member.
8505 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8506 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8507 (~tui_data_window, ~tui_win_info)
8508 (tui_free_all_source_wins_content): Update.
8509 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8511 2019-06-25 Tom Tromey <tom@tromey.com>
8513 * tui/tui-layout.c (init_and_make_win): Use new.
8514 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8515 destructor, initializers.
8516 (tui_alloc_generic_win_info): Don't declare.
8517 * tui/tui-data.c (_locator): Add argument to constructor.
8518 (source_win, disasm_win): New globals.
8519 (exec_info): Remove.
8520 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8522 (tui_alloc_generic_win_info): Remove.
8523 (init_content_element): Use new.
8524 (tui_win_info::tui_win_info): Update.
8525 (free_content_elements) <case DATA_WIN>: Use delete.
8527 2019-06-25 Tom Tromey <tom@tromey.com>
8529 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8530 * tui/tui-windata.c (tui_first_data_item_displayed)
8531 (tui_delete_data_content_windows): Update.
8532 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8533 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8534 (tui_display_registers_from, tui_check_register_values): Update.
8535 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8537 * tui/tui-data.c (init_content_element): Update. Allocate the new
8539 (tui_free_data_content): Update.
8540 (free_content_elements) <case DATA_WIN>: Free the window.
8542 2019-06-25 Tom Tromey <tom@tromey.com>
8544 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8546 * tui/tui-layout.c (make_command_window)
8547 (show_source_disasm_command, show_data, init_and_make_win)
8548 (show_source_or_disasm_and_command): Update.
8549 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8551 <can_highight, is_highlighted>: Now bool.
8552 (tui_set_win_highlight): Don't declare.
8553 * tui/tui-data.c (tui_set_win_highlight): Remove.
8555 2019-06-25 Tom Tromey <tom@tromey.com>
8557 * tui/tui-wingeneral.c (make_visible): Remove check of window
8560 2019-06-25 Tom Tromey <tom@tromey.com>
8562 * tui/tui-win.c (tui_win_info::max_height)
8563 (tui_cmd_window::max_height): New methods.
8564 (new_height_ok): Call max_height.
8565 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8566 <max_height>: New method.
8568 2019-06-25 Tom Tromey <tom@tromey.com>
8570 * tui/tui-win.c (tui_source_window_base::set_new_height)
8571 (tui_data_window::set_new_height): New methods.
8572 (make_invisible_and_set_new_height): Call set_new_height method.
8573 * tui/tui-data.h (struct tui_win_info)
8574 (struct tui_source_window_base, struct tui_data_window)
8575 <set_new_height>: New method.
8577 2019-06-25 Tom Tromey <tom@tromey.com>
8579 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8580 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8581 tui_refresh_data_win.
8582 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8584 (tui_refresh_all_win): Call the refresh_all method.
8585 (tui_set_focus): Likewise.
8586 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8587 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8590 2019-06-25 Tom Tromey <tom@tromey.com>
8592 * tui/tui-winsource.h (tui_refill_source_window)
8593 (tui_set_is_exec_point_at): Don't declare.
8594 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8595 (tui_source_window_base::refill): Rename from
8596 tui_refill_source_window.
8597 (tui_source_window_base::do_scroll_horizontal): Update.
8598 (tui_source_window_base::set_is_exec_point_at): Rename from
8599 tui_set_is_exec_point_at.
8600 (tui_update_all_breakpoint_info): Update.
8601 * tui/tui-stack.c (tui_show_frame_info): Update.
8602 * tui/tui-layout.c (show_data): Add cast.
8603 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8604 * tui/tui-data.h (struct tui_source_window_base) <refill,
8605 set_is_exec_point_at>: New methods.
8606 (tui_source_windows, tui_add_to_source_windows): Update types.
8607 (tui_add_to_source_windows): Remove redundant declaration.
8608 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8609 (tui_source_windows): Change return type.
8610 (tui_clear_source_windows_detail): Update.
8611 (tui_add_to_source_windows): Change type of parameter.
8612 (tui_free_all_source_wins_content): Update.
8614 2019-06-25 Tom Tromey <tom@tromey.com>
8616 * tui/tui-wingeneral.c (tui_win_info::refresh)
8617 (tui_source_window_base::refresh): New methods.
8618 (tui_refresh_all): Call the refresh method.
8619 * tui/tui-data.h (struct tui_win_info)
8620 (struct tui_source_window_base) <refresh>: New method.
8622 2019-06-25 Tom Tromey <tom@tromey.com>
8624 * tui/tui.h (tui_is_window_visible): Return bool.
8625 * tui/tui.c (tui_is_window_visible): Return bool.
8626 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8627 (tui_make_visible, tui_make_invisible)
8628 (tui_win_info::make_visible)
8629 (tui_source_window_base::make_visible, make_all_visible)
8630 (tui_make_all_visible, tui_make_all_invisible): Update.
8631 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8632 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8634 (struct tui_win_info, struct tui_source_window_base)
8635 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8636 * tui/tui-data.c (tui_init_generic_part): Update.
8638 2019-06-25 Tom Tromey <tom@tromey.com>
8640 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8641 (tui_source_window_base::make_visible): New methods.
8642 (make_all_visible): Make method call.
8643 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8644 (struct tui_source_window_base, struct tui_cmd_window): Override
8646 (tui_win_is_source_type): Don't declare.
8647 * tui/tui-data.c (tui_win_is_source_type): Remove.
8649 2019-06-25 Tom Tromey <tom@tromey.com>
8651 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8654 2019-06-25 Tom Tromey <tom@tromey.com>
8656 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8657 Inline constructor. Add initializers for members.
8658 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8659 constructors; now inline in class.
8661 2019-06-25 Tom Tromey <tom@tromey.com>
8663 * tui/tui-regs.c (tui_show_registers): Update.
8664 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8666 * tui/tui-data.c (tui_data_window::clear_detail)
8667 (tui_data_window): Update.
8669 2019-06-25 Tom Tromey <tom@tromey.com>
8671 * tui/tui-windata.c (tui_display_all_data)
8672 (tui_display_data_from_line, tui_display_data_from)
8673 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8675 * tui/tui-regs.c (tui_last_regs_line_no)
8676 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8677 (tui_show_registers, tui_show_register_group)
8678 (tui_display_registers_from, tui_display_reg_element_at_line)
8679 (tui_display_registers_from_line, tui_check_register_values)
8680 (tui_reg_next, tui_reg_prev): Update.
8681 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8682 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8684 (struct tui_win_info) <detail>: Remove. Add new fields from
8686 (TUI_DATA_WIN): Add cast.
8687 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8688 (~tui_data_window): Simplify.
8690 2019-06-25 Tom Tromey <tom@tromey.com>
8692 * tui/tui-layout.c (show_source_disasm_command)
8693 (show_source_or_disasm_and_command): Update.
8694 * tui/tui-io.c (update_cmdwin_start_line)
8695 (tui_redisplay_readline): Update.
8696 * tui/tui-data.h (struct tui_command_info): Remove.
8697 (struct tui_win_info) <detail>: Remove command_info member.
8698 (struct tui_data_window) <start_line>: New member, from
8700 (TUI_CMD_WIN): Add casts.
8702 2019-06-25 Tom Tromey <tom@tromey.com>
8704 * tui/tui-winsource.c (tui_update_source_window)
8705 (tui_refill_source_window)
8706 (tui_source_window_base::do_scroll_horizontal)
8707 (tui_update_breakpoint_info, tui_set_exec_info_content)
8708 (tui_show_exec_info_content, tui_erase_exec_info_content)
8709 (tui_clear_exec_info_content): Update.
8710 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8712 * tui/tui-win.c (make_invisible_and_set_new_height)
8713 (make_visible_with_new_height): Update.
8714 * tui/tui-source.c (tui_set_source_content)
8715 (tui_show_symtab_source): Update.
8716 * tui/tui-layout.c (extract_display_start_addr)
8717 (show_source_disasm_command, show_data)
8718 (make_source_or_disasm_window)
8719 (show_source_or_disasm_and_command): Update.
8720 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8721 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8723 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8724 to tui_source_window_base.
8725 (struct tui_win_info) <detail>: Remove source_info member.
8726 (struct tui_source_window_base) <has_locator>: Inline.
8727 Move contents from tui_source_info; rename has_locator member to
8729 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8730 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8732 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8734 (tui_free_all_source_wins_content): Cast to
8735 tui_source_window_base.
8737 2019-06-25 Tom Tromey <tom@tromey.com>
8739 * tui/tui-win.c (make_invisible_and_set_new_height)
8740 (make_visible_with_new_height): Call has_locator method.
8741 * tui/tui-layout.c (show_source_disasm_command, show_data)
8742 (show_source_or_disasm_and_command): Update for bool change.
8743 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8744 (tui_win_info) <has_locator>: New method.
8745 (struct tui_source_window_base) <has_locator>: New method.
8746 (tui_win_has_locator): Don't declare.
8747 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8748 from tui_win_has_locator.
8749 (tui_source_window_base): Use false, not FALSE.
8751 2019-06-25 Tom Tromey <tom@tromey.com>
8753 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8754 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8755 clear_detail method directly.
8756 (tui_clear_win_detail): Remove.
8758 2019-06-25 Tom Tromey <tom@tromey.com>
8760 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8761 "this", not TUI_DISASM_WIN.
8763 2019-06-25 Tom Tromey <tom@tromey.com>
8765 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8767 * tui/tui-winsource.c
8768 (tui_source_window_base::do_scroll_horizontal): Rename from
8769 tui_horizontal_source_scroll.
8770 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8771 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8772 from tui_vertical_data_scroll.
8773 * tui/tui-win.h (tui_scroll): Don't declare.
8774 * tui/tui-win.c (tui_win_info::forward_scroll)
8775 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8776 (tui_win_info::right_scroll): Rename and update.
8777 (tui_scroll_forward_command, tui_scroll_backward_command)
8778 (tui_scroll_left_command, tui_scroll_right_command): Update.
8779 (tui_scroll): Remove.
8780 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8781 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8782 from tui_vertical_source_scroll.
8783 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8784 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8785 from tui_vertical_disassem_scroll.
8786 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8787 do_scroll_horizontal>: New methods.
8788 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8790 (struct tui_source_window_base): Add do_scroll_horizontal.
8791 (struct tui_source_window, struct tui_disasm_window): Add
8793 (struct tui_data_window, struct tui_cmd_window): Add
8794 do_scroll_horizontal and do_scroll_vertical.
8795 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8797 2019-06-25 Tom Tromey <tom@tromey.com>
8799 * tui/tui-data.h (struct tui_source_window_base): New struct.
8800 (struct tui_source_window): Derive from tui_source_window_base.
8801 (struct tui_disasm_window): New struct.
8802 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8803 from tui_source_window::clear_detail.
8804 (tui_source_window_base): Rename from tui_source_window.
8805 (~tui_source_window_base): Rename from ~tui_source_window.
8806 (tui_alloc_win_info): Create a tui_disasm_window.
8808 2019-06-25 Tom Tromey <tom@tromey.com>
8810 * tui/tui-data.h (struct tui_source_window)
8811 (struct tui_data_window): Declare destructors.
8812 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8814 (tui_win_info): Simplify.
8816 2019-06-25 Tom Tromey <tom@tromey.com>
8818 * tui/tui-winsource.c (tui_display_main)
8819 (tui_update_source_windows_with_addr)
8820 (tui_update_all_breakpoint_info): Update.
8821 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8822 (new_height_ok, parse_scrolling_args): Update.
8823 * tui/tui-stack.c (tui_show_frame_info): Update.
8824 * tui/tui-data.h (struct tui_list): Remove.
8825 (tui_source_windows): Return a reference to a std::vector.
8826 * tui/tui-data.c (source_windows): Now a std::vector.
8827 (tui_source_windows): Change return type.
8828 (tui_clear_source_windows): Rewrite.
8829 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8830 (tui_free_all_source_wins_content): Rewrite.
8832 2019-06-25 Tom Tromey <tom@tromey.com>
8834 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8835 (struct tui_data_window, struct tui_cmd_window): Declare
8836 clear_detail method.
8837 * tui/tui-data.c (tui_source_window::clear_detail)
8838 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8840 (tui_clear_win_detail): Simplify.
8842 2019-06-25 Tom Tromey <tom@tromey.com>
8844 * tui/tui-layout.c (make_source_window, make_disasm_window)
8845 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8846 Return the new window.
8847 (show_source_disasm_command, show_data)
8848 (show_source_or_disasm_and_command): Update.
8850 2019-06-25 Tom Tromey <tom@tromey.com>
8852 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8853 parameter. Return the new window.
8854 (show_source_disasm_command): Update and remove NULL check.
8855 (show_source_or_disasm_and_command): Update.
8857 2019-06-25 Tom Tromey <tom@tromey.com>
8859 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8861 2019-06-25 Tom Tromey <tom@tromey.com>
8863 * tui/tui-data.h (struct tui_win_info): Make constructor
8864 protected. Make destructor virtual. Add initializers.
8865 (tui_source_window, tui_data_window, tui_cmd_window): New
8867 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8868 constructor. Add "type" parameter.
8869 (tui_source_window, tui_data_window, tui_cmd_window): New
8871 (tui_alloc_win_info): Instantiate the appropriate subclass.
8873 2019-06-25 Tom Tromey <tom@tromey.com>
8875 * tui/tui-win.c (tui_resize_all): Use delete.
8876 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8878 (tui_free_window): Don't declare.
8879 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8882 2019-06-25 Tom Tromey <tom@tromey.com>
8884 * tui/tui-data.h (struct tui_win_info): Add constructor.
8885 * tui/tui-data.c (tui_alloc_win_info): Use new.
8886 (tui_free_window): Use delete.
8888 2019-06-22 Tom Tromey <tom@tromey.com>
8890 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8892 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8894 2019-06-22 Tom Tromey <tom@tromey.com>
8896 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8898 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8900 2019-06-22 Tom de Vries <tdevries@suse.de>
8902 * dwarf2read.c (create_addrmap_from_aranges)
8903 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8906 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8908 * dwarf2read.h (dwarf2_section_info_def): Remove.
8909 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8910 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8911 std::vector<dwarf2_section_info>.
8912 (struct dwo_file) <~dwo_file>: Remove.
8913 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8915 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8916 (dwarf2_read_debug_names): Likewise.
8917 (create_debug_types_hash_table): Change parameter type to
8918 array_view, adjust code accordingly.
8919 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8920 (partial_die_info::fixup): Likewise.
8921 (determine_prefix): Likewise.
8922 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8924 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8926 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8928 <~dwo_file>: Remove call to gdb_bfd_unref.
8929 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8930 gdb_bfd_ref_ptr::get.
8932 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8934 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8936 * dwarf2read.c (struct dwo_file): Initialize fields.
8938 (free_dwo_file): Remove, move content to ~dwo_file.
8939 (struct dwo_file_deleter): Remove.
8940 (dwo_file_up>: Remove custom deleter.
8941 (free_dwo_files): Remove.
8942 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8944 (process_skeletonless_type_units): Call unique_ptr::get.
8945 (allocate_dwo_file_hash_table): Add deleter to created hash
8946 table. Change return type to htab_up.
8947 (lookup_dwo_file_slot): Don't memset dwo_file, call
8949 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8950 (create_dwo_unit_in_dwp_v2): Likewise.
8951 (open_and_init_dwo_file): Likewise.
8952 (free_dwo_file_from_slot): Remove.
8954 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8956 * dwarf2read.h (struct dwarf2_section_info) <readin,
8957 is_virtual>: Change type to bool.
8958 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8961 2019-06-19 Tom Tromey <tom@tromey.com>
8963 * tui/tui-data.h (tui_init_content_element): Don't declare.
8965 2019-06-19 Tom Tromey <tom@tromey.com>
8967 * tui/tui-data.h (tui_init_win_info): Don't declare.
8969 2019-06-19 Tom de Vries <tdevries@suse.de>
8971 * dwarf2read.h (abstract_to_concrete): Change type to
8972 std::unordered_map<sect_offset, std::vector<sect_offset>,
8973 gdb::hash_enum<sect_offset>>.
8975 2019-06-19 Tom Tromey <tromey@adacore.com>
8977 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8978 EVAL_AVOID_SIDE_EFFECTS specially.
8980 2019-06-19 Tom Tromey <tromey@adacore.com>
8982 * source-cache.c (highlighter): New global.
8983 (source_cache::get_source_lines): Create a highlighter on demand.
8985 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8987 * defs.h (deprecated_interactive_hook): Delete declaration.
8988 * interps.c (clear_interpreter_hooks): Remove use of
8989 deprecated_interactive_hook.
8990 * top.c (deprecated_interactive_hook): Delete definition.
8991 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8993 2019-06-18 Tom de Vries <tdevries@suse.de>
8996 * dwarf2read.h (abstract_to_concrete): Change type from
8997 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8998 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8999 * dwarf2read.c (read_variable): Update.
9000 (dwarf2_fetch_die_loc_sect_off): Update.
9002 2019-06-17 Tom de Vries <tdevries@suse.de>
9005 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9006 accessing parent[parent_len - 1].
9008 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9011 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9012 call dtrace_process_dof with NULL dof.
9014 2019-06-16 Tom de Vries <tdevries@suse.de>
9017 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9019 2019-06-16 Tom Tromey <tom@tromey.com>
9021 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9022 (make_all_visible): Use address of member.
9024 2019-06-16 Tom Tromey <tom@tromey.com>
9026 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9027 (tui_free_window, free_content, free_content_elements): Remove
9029 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9031 * tui/tui-regs.c (tui_show_register_group)
9032 (tui_display_registers_from, tui_display_reg_element_at_line):
9033 Remove unnecessary cast.
9035 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9037 * linux-nat.c (normal_mask): Delete.
9038 (_initialize_linux_nat): Don't initialise normal_mask.
9040 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9043 * dwarf-index-write.h (write_psymtabs_to_index): Add
9044 dwz_basename parameter.
9045 * dwarf-index-write.c (write_gdbindex): Move file writing to
9046 write_gdbindex_1. Change return type void.
9047 (assert_file_size): Move up, remove filename parameter.
9048 (write_gdbindex_1): New function.
9049 (write_debug_names): Change return type to void, call
9051 (struct index_wip_file): New struct.
9052 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9053 file logic to index_wip_file. Write index for dwz file if
9055 (save_gdb_index_command): Pass basename of dwz file, if present.
9056 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9057 build-id of dwz file, if present.
9058 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9059 (dwarf2_get_dwz_file): Likewise.
9060 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9061 (dwarf2_get_dwz_file): Likewise.
9063 2019-06-16 Tom Tromey <tom@tromey.com>
9065 * coffread.c (process_coff_symbol): Use xstrdup.
9066 * value.c (create_internalvar): Use xstrdup.
9068 2019-06-16 Tom Tromey <tom@tromey.com>
9070 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9071 * breakpoint.c (stopin_command, stopat_command)
9072 (until_break_command, decode_location_default): Remove unnecessary
9074 * utils.c (subset_compare): Remove unnecessary cast.
9075 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9077 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9079 * infcmd.c (path_command): Remove unnecessary cast.
9080 * coffread.c (decode_type): Remove unnecessary cast.
9081 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9082 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9083 * tui/tui-stack.c (tui_show_locator_content)
9084 (tui_show_frame_info): Remove unnecessary cast.
9085 * tui/tui-win.c (tui_scroll_forward_command)
9086 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9087 (parse_scrolling_args): Remove unnecessary cast.
9088 * tui/tui-data.c (init_win_info, tui_del_window)
9089 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9090 (free_content_elements): Remove unnecessary cast.
9091 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9093 * tui/tui-source.c (tui_set_source_content)
9094 (tui_vertical_source_scroll): Remove unnecessary cast.
9095 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9097 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9098 * tui/tui-regs.c (tui_display_registers_from)
9099 (tui_display_register): Remove unnecessary cast.
9100 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9101 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9102 (make_visible): Remove unnecessary cast.
9103 * tui/tui-winsource.c (tui_erase_source_content)
9104 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9106 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9107 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9108 * stabsread.c (read_type, read_array_type, read_range_type):
9109 Remove unnecessary cast.
9110 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9111 (parse_symbol, parse_type, upgrade_type, parse_external)
9112 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9114 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9116 2019-06-16 Tom Tromey <tom@tromey.com>
9118 * tui/tui-data.c (tui_alloc_generic_win_info)
9119 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9122 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9123 Andrew Burgess <andrew.burgess@embecosm.com>
9125 * f-typeprint.c (f_print_type): Don't return early for not
9126 associated or not allocated types.
9127 (f_type_print_varspec_suffix): Add print_rank parameter and print
9128 ranks of array types in case they dangling.
9129 (f_type_print_base): Add print_rank parameter.
9131 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9133 * NEWS: Mention new MI commands.
9134 * break-catch-throw.c (enum exception_event_kind): Move to
9136 (print_mention_exception_catchpoint): Output text as a single
9138 (catch_exception_command_1): Rename to...
9139 (catch_exception_event): ...this, make non-static, update header
9140 command, and change some parameter types.
9141 (catch_catch_command): Update for changes to
9142 catch_exception_command_1.
9143 (catch_throw_command): Likewise.
9144 (catch_rethrow_command): Likewise.
9145 * breakpoint.c (enum exception_event_kind): Delete.
9146 * breakpoint.h (enum exception_event_kind): Moved here from
9147 break-catch-throw.c.
9148 (catch_exception_event): Declare.
9149 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9150 (mi_cmd_catch_throw): New function.
9151 (mi_cmd_catch_rethrow): New function.
9152 (mi_cmd_catch_catch): New function.
9153 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9154 'catch-catch' entries.
9155 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9156 (mi_cmd_catch_rethrow): Declare.
9157 (mi_cmd_catch_catch): Declare.
9159 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9161 * annotate.c (annotate_source_line): Change return type to void,
9162 update implementation to match.
9163 * annotate.h (annotate_source_line): Change return type to void,
9164 update header comment.
9165 * stack.c (print_frame_info): Don't change what frame information
9166 is printed based on whether annotations are on or not.
9168 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9170 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9171 (annotate_source): Make static.
9172 (annotate_source_line): Moved from source.c and renamed from
9173 identify_source_line. Update the return type.
9174 * annotate.h (annotate_source): Delete declaration.
9175 (annotate_source_line): Declaration moved from source.h, and
9176 renamed from identify_source_line. Return type updated.
9177 * source.c (identify_source_line): Moved to annotate.c and renamed
9178 to annotate_source_line.
9179 (info_line_command): Remove check of annotation_level.
9180 * source.h (identify_source_line): Move declaration to annotate.h
9181 and rename to annotate_source_line.
9182 * stack.c: Add 'annotate.h' include.
9183 (print_frame_info): Remove check of annotation_level before
9184 calling annotate_source_line.
9186 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9188 * source-cache.c (source_cache::get_plain_source_lines): Use
9189 open_source_file_with_line_charpos instead of just
9190 open_source_file, remove call to find_source_lines.
9191 (source_cache::get_source_lines): Likewise.
9192 * source.c (find_source_lines): Make static.
9193 (get_filename_and_charpos): Renamed into...
9194 (open_source_file_with_line_charpos): ..this along with changes to
9195 return a scoped_fd, and some other minor clean ups.
9196 (identify_source_line): Use open_source_file_with_line_charpos.
9197 (search_command_helper): Use open_source_file_with_line_charpos
9198 instead of just open_source_file, remove call to
9200 * source.h (open_source_file_with_line_charpos): Declare new
9202 (find_source_lines): Delete declaration.
9204 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9206 * source.c (get_filename_and_charpos): Remove fullname
9208 (identify_source_line): Update call to get_filename_and_charpos.
9210 2019-06-14 Tom Tromey <tromey@adacore.com>
9213 * ui-style.h (skip_ansi_escape): Update comment.
9214 * ui-file.h (class no_terminal_escape_file): New class.
9215 * ui-file.c (no_terminal_escape_file::write)
9216 (no_terminal_escape_file::puts): New methods.
9217 * cli/cli-logging.c (handle_redirections): Use
9218 no_terminal_escape_file.
9220 2019-06-14 Tom Tromey <tromey@adacore.com>
9222 * NEWS: Move convenience variable news above Python news.
9224 2019-06-14 Tom Tromey <tom@tromey.com>
9226 * gnulib: Move directory to top-level.
9227 * configure.ac: Don't configure gnulib.
9228 * configure: Rebuild.
9229 * common/common-defs.h: Use new path to gnulib.
9230 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9232 (INCGNU): Look in new gnulib location.
9233 (HFILES_NO_SRCDIR): Remove gnulib files.
9234 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9235 (generated_files): Remove GNULIB_H.
9236 ($(LIBGNU), all-lib): Remove targets.
9237 (distclean): Don't mention GNULIB_BUILDDIR.
9238 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9240 2019-06-14 Tom Tromey <tromey@adacore.com>
9242 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9243 Warn if symbol file does not provide any symbols.
9245 2019-06-14 Tom Tromey <tromey@adacore.com>
9247 * source.c (find_and_open_source): Respect basenames_may_differ.
9249 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9251 * annotate.c (annotate_breakpoints_invalid): Make use of
9252 scoped_restore_terminal_state.
9253 (annotate_frames_invalid): Likewise.
9255 2019-06-14 Tom Tromey <tromey@adacore.com>
9257 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9258 allow assignment to an internalvar.
9260 2019-06-14 Tom Tromey <tromey@adacore.com>
9262 * ada-lex.l: Allow "_" in attribute names.
9264 2019-06-14 Tom Tromey <tromey@adacore.com>
9267 * regcache.c (registers_changed): Don't call alloca.
9268 * top.c (execute_command): Don't call alloca.
9270 2019-06-13 Pedro Alves <palves@redhat.com>
9272 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9273 'expression'. When parsing an expression, error out if there's
9274 junk after "unlimited".
9275 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9276 (do_set_command): Adjust calls to is_unlimited_literal.
9278 2019-06-13 Pedro Alves <palves@redhat.com>
9280 * compile/compile.c (make_compile_options_def_group): Add braces
9281 around array_view initializer.
9282 * thread.c (make_thread_apply_all_options_def_group)
9283 (make_thread_apply_all_options_def_group): Likewise.
9285 2019-06-13 Pedro Alves <palves@redhat.com>
9287 * NEWS (New commands): Mention "maint test-options
9288 require-delimiter", "maint test-options unknown-is-error", "maint
9289 test-options unknown-is-operand" and "maint show
9290 test-options-completion-result".
9291 (New command options, command completion): New section.
9292 (Completion improvements): New section.
9293 Mention that you can abbreviate "unlimited".
9295 2019-06-13 Pedro Alves <palves@redhat.com>
9297 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9298 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9299 * unittests/cli-utils-selftests.c (test_parse_flags)
9300 (test_parse_flags_qcs): Delete.
9301 (test_cli_utils): Don't call deleted functions.
9303 2019-06-13 Pedro Alves <palves@redhat.com>
9305 * thread.c: Include "cli/cli-option.h".
9306 (tp_array_compar_ascending): Global.
9307 (tp_array_compar): Delete function.
9308 (tp_array_compar_ascending, tp_array_compar_descending): New
9310 (ascending_option_def, qcs_flag_option_def)
9311 (thr_qcs_flags_option_defs)
9312 (make_thread_apply_all_options_def_group)
9313 (make_thread_apply_options_def_group): New.
9314 (thread_apply_all_command): Use gdb::option::process_options.
9315 (thread_apply_command_completer)
9316 (thread_apply_all_command_completer): New.
9317 (thread_apply_command): Use gdb::option::process_options.
9318 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9319 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9320 to generate help text of "thread apply". Adjust "taas"'s help.
9321 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9322 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9324 2019-06-13 Pedro Alves <palves@redhat.com>
9326 * thread.c (thread_apply_command): Check for invalid TID with
9327 isdigit instead of !isalpha.
9329 2019-06-13 Pedro Alves <palves@redhat.com>
9331 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9332 (validate_flags_qcs): New.
9333 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9334 (validate_flags_qcs): Declare.
9335 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9336 (make_frame_apply_options_def_group): New.
9337 (frame_apply_command_count): Process options with
9338 gdb::option::process_options.
9339 (frame_apply_completer): New.
9340 (frame_apply_level_completer, frame_apply_all_completer)
9341 (frame_apply_completer): New.
9342 (_initialize_stack): Update help of "frame apply", "frame apply
9343 level", "frame apply all" and "faas" to mention supported options
9344 and install command completers.
9345 * stack.h (frame_apply_all_completer): Declare.
9346 * thread.c: Include "stack.h".
9347 (tfaas_command): Add "--".
9348 (_initialize_thread): Update help "tfaas" to mention supported
9349 options and install command completer.
9351 2019-06-13 Pedro Alves <palves@redhat.com>
9353 * completer.c (complete_nested_command_line): New.
9354 (gdb_completion_word_break_characters_throw): Add assertion.
9355 * completer.h (complete_nested_command_line): Declare.
9357 2019-06-13 Pedro Alves <palves@redhat.com>
9359 * stack.c (parse_backtrace_qualifiers): New.
9360 (backtrace_command): Use it.
9361 (backtrace_command_completer): Complete on qualifiers.
9363 2019-06-13 Pedro Alves <palves@redhat.com>
9365 * frame.c: Include "cli/cli-option.h.
9366 (user_set_backtrace_options): New.
9367 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9369 (get_prev_frame): Adjust.
9370 (boolean_option_def, uinteger_option_def)
9371 (set_backtrace_option_defs): New.
9372 (_initialize_frame): Adjust and use
9373 gdb::option::add_setshow_cmds_for_options to install "set
9374 backtrace past-main" and "set backtrace past-entry".
9375 * frame.h: Include "cli/cli-option.h".
9376 (struct frame_print_options): Forward declare.
9377 (print_frame_arguments_all, print_frame_arguments_scalars)
9378 (print_frame_arguments_none): Declare.
9379 (print_entry_values): Delete declaration.
9380 (struct frame_print_options, user_frame_print_options): New.
9381 (struct set_backtrace_options): New.
9382 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9383 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9384 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9385 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9386 (list_args_or_locals): Add frame_print_options parameter.
9387 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9388 * python/py-framefilter.c (enumerate_args): Pass down
9389 USER_FRAME_PRINT_OPTIONS.
9390 * stack.c: Include "cli/cli-option.h".
9391 (print_frame_arguments_all, print_frame_arguments_scalars)
9392 (print_frame_arguments_none): Declare.
9393 (print_raw_frame_arguments, print_entry_values): Delete.
9394 (user_frame_print_options): New.
9395 (boolean_option_def, enum_option_def, frame_print_option_defs):
9397 (struct backtrace_cmd_options): New.
9398 (bt_flag_option_def): New.
9399 (backtrace_command_option_defs): New.
9400 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9401 (print_frame_arg, read_frame_arg, print_frame_args)
9402 (print_frame_info, print_frame): Add frame_print_options parameter
9404 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9405 (backtrace_command_1): Add frame_print_options and
9406 backtrace_cmd_options parameters and use them.
9407 (make_backtrace_options_def_group): New.
9408 (backtrace_command): Process command options with
9409 gdb::option::process_options.
9410 (backtrace_command_completer): New.
9411 (_initialize_stack): Extend "backtrace"'s help to mention
9412 supported options. Install completer for "backtrace".
9413 Install some settings commands with add_setshow_cmds_for_options.
9415 2019-06-13 Pedro Alves <palves@redhat.com>
9417 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9418 and that "set/show print raw frame-arguments" are now deprecated.
9420 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9422 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9423 * stack.c (_initialize_stack): Install "set/show print
9424 raw-frame-arguments", and deprecate "set/show print raw
9426 * valprint.c (_initialize_valprint): Deprecate "set/show print
9429 2019-06-13 Pedro Alves <palves@redhat.com>
9431 * compile/compile.c (struct compile_options): New.
9432 (compile_flag_option_def, compile_command_option_defs)
9433 (make_compile_options_def_group): New.
9434 (compile_file_command): Handle options with
9435 gdb::option::process_options.
9436 (compile_file_command_completer): New function.
9437 (compile_code_command): Handle options with
9438 gdb::option::process_options.
9439 (compile_code_command_completer): New function.
9440 (_initialize_compiler): Install completers for "compile code" and
9441 "compile file". Mention available options in "compile code" and
9442 "compile code"'s help.
9443 * completer.c (advance_to_completion_word): New, factored out from
9445 (advance_to_expression_complete_word_point): ... this.
9446 (advance_to_filename_complete_word_point): New.
9447 * completer.h (advance_to_filename_complete_word_point): New
9450 2019-06-13 Pedro Alves <palves@redhat.com>
9452 * compile/compile.c: Include "cli/cli-option.h".
9453 (compile_print_value): Scope data pointer is now a
9454 value_print_options pointer; adjust.
9455 (compile_print_command): Process options. Scope data pointer is
9456 now a value_print_options pointer; adjust.
9457 (_initialize_compile): Update "compile print"'s help to include
9458 supported options. Install a completer for "compile print".
9459 * cp-valprint.c (show_vtblprint, show_objectprint)
9460 (show_static_field_print): Delete.
9461 (_initialize_cp_valprint): Don't install "set print
9462 static-members", "set print vtbl", "set print object" here.
9463 * printcmd.c: Include "cli/cli-option.h" and
9464 "common/gdb_optional.h".
9465 (print_command_parse_format): Rework to fill in a
9466 value_print_options instead of a format_data.
9467 (print_value): Change parameter type from format_data pointer to
9468 value_print_options reference. Adjust.
9469 (print_command_1): Process options. Adjust to pass down a
9470 value_print_options.
9471 (print_command_completer): New.
9472 (_initialize_printcmd): Install print_command_completer as
9473 handle_brkchars completer for the "print" command. Update
9474 "print"'s help to include supported options.
9475 * valprint.c: Include "cli/cli-option.h".
9476 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9477 here from cp-valprint.c.
9478 (boolean_option_def, uinteger_option_def)
9479 (value_print_option_defs, make_value_print_options_def_group):
9480 New. Use gdb::option::add_setshow_cmds_for_options to install
9481 "set print elements", "set print null-stop", "set print repeats",
9482 "set print pretty", "set print union", "set print array", "set
9483 print address", "set print symbol", "set print array-indexes".
9484 * valprint.h: Include <string> and "cli/cli-option.h".
9485 (make_value_print_options_def_group): Declare.
9486 (print_value): Change parameter type from format_data pointer to
9487 value_print_options reference.
9488 (print_command_completer): Declare.
9490 2019-06-13 Pedro Alves <palves@redhat.com>
9492 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9493 (COMMON_SFILES): Add maint-test-settings.c.
9494 * cli/cli-decode.c (boolean_enums): New global, factored out from
9496 (add_setshow_boolean_cmd): ... here.
9497 * cli/cli-decode.h (boolean_enums): Declare.
9498 * cli/cli-option.c: New file.
9499 * cli/cli-option.h: New file.
9500 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9501 factored out from ...
9502 (parse_cli_boolean_value(const char *)): ... this.
9503 (is_unlimited_literal): Change parameter type to pointer to
9504 pointer. Adjust and advance ARG pointer.
9505 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9506 (parse_cli_var_enum): New, factored out from ...
9507 (do_set_command): ... this. Adjust.
9508 * cli/cli-setshow.h (parse_cli_boolean_value)
9509 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9510 (parse_cli_var_enum): Declare.
9511 * cli/cli-utils.c: Include "cli/cli-option.h".
9512 (get_ulongest): New.
9513 * cli/cli-utils.h (get_ulongest): Declare.
9514 (check_for_argument): New overloads.
9515 * maint-test-options.c: New file.
9517 2019-06-13 Pedro Alves <palves@redhat.com>
9519 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9520 parse a range if "-" is at the end of the string.
9522 2019-06-13 Pedro Alves <palves@redhat.com>
9524 * cli/cli-setshow.c (parse_auto_binary_operation)
9525 (parse_cli_boolean_value): Don't allow "o".
9527 2019-06-13 Pedro Alves <palves@redhat.com>
9529 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9530 * NEWS: Mention maint test-settings KIND.
9531 * maint-test-settings.c: New file.
9533 2019-06-13 Pedro Alves <palves@redhat.com>
9535 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9537 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9540 2019-06-13 Pedro Alves <palves@redhat.com>
9542 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9545 2019-06-13 Pedro Alves <palves@redhat.com>
9547 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9549 2019-06-13 Pedro Alves <palves@redhat.com>
9551 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9552 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9554 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9555 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9557 (check_for_argument): Skip spaces after argument.
9559 2019-06-13 Pedro Alves <palves@redhat.com>
9561 * thread.c (thread_apply_command): Adjust TID parsing.
9562 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9563 detected before end of string.
9564 (tid_is_in_list): Error out if LIST is invalid.
9566 2019-06-13 Pedro Alves <palves@redhat.com>
9568 * completer.c (complete_line_internal_1): Rewind completion word
9570 (completion_tracker::advance_custom_word_point_by): Change
9571 parameter type to int.
9572 * completer.h (completion_tracker::advance_custom_word_point_by):
9575 2019-06-13 Pedro Alves <palves@redhat.com>
9577 * completer.c (advance_to_completion_word): Handle delimiters.
9579 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9581 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9583 2019-06-11 Tom Tromey <tom@tromey.com>
9585 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9586 (xmalloc_failed): Move to alloc.c.
9587 * alloc.c: New file.
9588 * Makefile.in (COMMON_SFILES): Add alloc.c.
9590 2019-06-11 Tom Tromey <tom@tromey.com>
9592 * nat/linux-waitpid.c: Don't include server.h.
9593 (linux_debug): Remove.
9594 (my_waitpid): Update.
9596 2019-06-11 Tom Tromey <tromey@adacore.com>
9598 * infcall.c (_initialize_infcall): Remove trailing newline from
9600 * user-regs.c (_initialize_user_regs): Remove trailing newline
9602 * typeprint.c (_initialize_typeprint): Remove trailing newline
9604 * reverse.c (_initialize_reverse): Remove trailing newlines from
9606 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9608 * language.c (add_set_language_command): Remove trailing newline
9610 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9612 * disasm.c (_initialize_disasm): Remove trailing newline from
9614 * top.c (init_main): Remove trailing newline from help.
9615 * interps.c (_initialize_interpreter): Remove trailing newline
9617 * btrace.c (_initialize_btrace): Remove trailing newlines from
9619 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9621 * python/python.c (_initialize_python): Remove trailing newline
9623 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9625 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9626 from help. Reformat some text.
9627 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9629 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9632 2019-06-11 Tom Tromey <tromey@adacore.com>
9634 * darwin-nat.c (darwin_decode_exception_message)
9635 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9637 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9639 * valops.c (value_slice): Check for not allocated or not
9642 2019-06-10 Tom de Vries <tdevries@suse.de>
9645 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9646 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9649 2019-06-10 Tom de Vries <tdevries@suse.de>
9652 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9653 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9655 2019-06-10 Tom de Vries <tdevries@suse.de>
9658 * symtab.c (struct demangled_name_entry): Add language field.
9659 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9660 static minimal symbol". Set and use language field.
9662 2019-06-10 Tom Tromey <tromey@adacore.com>
9664 * ada-lang.c (_initialize_ada_language): Update help text.
9666 2019-06-10 Tom Tromey <tromey@adacore.com>
9668 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9670 * guile/guile.c (handle_boot_error): Don't end warning with a
9672 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9673 warning with a newline.
9674 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9676 (s12z_frame_cache): Likewise.
9677 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9679 * solib-svr4.c (disable_probes_interface): Don't end warning with
9681 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9683 * python/python.c (do_finish_initialization): Don't end warning
9686 2019-06-10 Tom Tromey <tom@tromey.com>
9688 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9689 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9692 2019-06-10 Tom Tromey <tromey@adacore.com>
9694 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9696 (elf_new_init): Don't call stabsread_new_init.
9697 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9698 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9699 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9701 2019-06-10 Tom de Vries <tdevries@suse.de>
9705 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9707 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9709 * source.c (find_and_open_source): Also rewrite relative file
9712 2019-04-26 Amos Bird <amosbird@gmail.com>
9714 * annotate.c (annotate_thread_exited): Add "thread-exited"
9717 2019-06-06 Tom Tromey <tromey@adacore.com>
9719 * maint.h (class scoped_command_stats): Use
9720 DISABLE_COPY_AND_ASSIGN.
9721 <print_time>: New method.
9722 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9724 (scoped_command_stats::print_time): New method.
9726 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9728 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9729 instructions of lengths 6 or 8 bytes.
9731 2019-06-04 Pedro Alves <palves@redhat.com>
9733 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9735 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9736 * breakpoint.c (condition_completer): Likewise.
9737 * cli/cli-dump.c (scan_expression): Likewise.
9738 * common/filestuff.c (mkdir_recursive): Likewise.
9739 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9740 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9741 (gdb_abspath): Likewise.
9742 * compile/compile-cplus-types.c
9743 (compile_cplus_instance::decl_name): Likewise.
9744 * completer.c (complete_explicit_location):
9745 (signal_completer, reg_or_group_completer_1): Likewise.
9746 * cp-support.c (cp_remove_params_if_any): Likewise.
9747 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9748 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9749 * infcmd.c (strip_bg_char): Likewise.
9750 * linespec.c (copy_token_string): Likewise.
9751 * mi/mi-main.c (output_cores): Likewise.
9752 * psymtab.c (psymtab_search_name):
9753 * symfile.c (test_set_ext_lang_command): Likewise.
9754 * target.c (target_fileio_read_stralloc): Likewise.
9755 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9756 * value.c (complete_internalvar): Likewise.
9758 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9760 Add objfile property to gdb.Type.
9761 * NEWS: Mention Python API addition.
9762 * python/py-type.c (typy_get_objfile): New method.
9764 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9766 * NEWS: Mention the new set|show style [title|highlight].
9767 Mention changes to "show style", "help" and "apropos".
9769 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9771 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9772 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9773 instead of print_help_for_command.
9774 (print_doc_of_command): New function.
9775 (help_list): Add 'apropos -v word' suggestion.
9776 (print_help_for_command): Style the command name using title style.
9777 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9778 (_initialize_cli_cmds): Describe -v in apropos_command help.
9780 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9782 * cli/cli-style.h (cli_style_option): Add name in constructor,
9783 add m_name class member, add constructor with intensity,
9784 add name class function.
9785 (cli_style_option::add_setshow_commands): Remove name argument.
9786 (highlight_style, title_style): New styles.
9787 * cli/cli-style.c (do_show): New function that shows a style
9788 characteristic styling the style name with itself.
9789 (set_style_name): New function.
9790 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9791 Update all callers according to the changes in cli/cli-style.h.
9792 * utils.h (fputs_highlighted): New function.
9793 * utils.c (fputs_highlighted): Likewise.
9795 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9797 * NEWS: Mention new pipe command and new convenience variables.
9799 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9801 * cli/cli-cmds.c (pipe_command): New function.
9802 (_initialize_cli_cmds): Call add_com for pipe_command.
9803 Define | as an alias for pipe.
9804 (exit_status_set_internal_vars): New function.
9805 (shell_escape): Call exit_status_set_internal_vars.
9806 cli/cli-decode.c (find_command_name_length): Recognize | as
9807 a single character command.
9809 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9811 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9812 top.c (execute_command_to_ui_file): New function, mostly a copy
9813 of execute_command_to_string.
9814 (execute_command_to_string): Implement by calling
9815 execute_command_to_ui_file.
9817 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9819 * top.h (saved_command_line): Remove declaration.
9820 * top.c (previous_saved_command_line, previous_repeat_arguments):
9822 (saved_command_line): Make static, define together with other
9824 (dont_repeat): Clear repeat_arguments.
9825 (repeat_previous, get_saved_command_line, save_command_line):
9827 (gdb_init): Initialize saved_command_line
9828 and previous_saved_command_line.
9829 * main.c (captured_main_1): Remove saved_command_line initialization.
9830 * event-top.c (handle_line_of_input): Update to use
9831 the new 'repeat' related functions instead of direct access to
9833 * command.h (repeat_previous, get_saved_command_line,
9834 save_command_line): New declarations.
9835 (dont_repeat): Add comment.
9837 2019-05-30 Tom Tromey <tromey@adacore.com>
9839 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9841 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9843 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9846 * completer.c (complete): Initialize variable word.
9848 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9850 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9851 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9852 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9853 'body' is NULL to the outter 'if', protecting the '!is_define'
9856 2019-05-29 Tom Tromey <tromey@adacore.com>
9858 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9859 (dwarf_unknown): New function.
9860 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9861 (dwarf_type_encoding_name): Use dwarf_unknown.
9863 2019-05-29 Tom Tromey <tromey@adacore.com>
9866 * cp-valprint.c (cp_print_value_fields): Call
9867 cp_print_static_field inside "try".
9869 2019-05-29 Tom Tromey <tromey@adacore.com>
9871 * inflow.c (struct terminal_info): Add default operator=.
9872 * configure: Rebuild.
9873 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9874 -Wdeprecated-copy-dtor, -Wredundant-move.
9876 2019-05-29 Tom Tromey <tromey@adacore.com>
9879 * infcmd.c (print_return_value_1): Handle finish_print
9881 (show_print_finish): New function.
9882 (_initialize_infcmd): Add "set/show print finish" commands.
9883 * valprint.c (user_print_options): Initialize new member.
9884 * valprint.h (struct value_print_options) <finish_print>: New
9887 2019-05-28 Tom Tromey <tromey@adacore.com>
9889 * ada-lang.c (ada_remove_Xbn_suffix)
9890 (find_old_style_renaming_symbol)
9891 (parse_old_style_renaming): Remove.
9892 (ada_find_renaming_symbol): Don't call
9893 find_old_style_renaming_symbol.
9894 (ada_is_renaming_symbol): Rename from
9895 ada_find_renaming_symbol. Remove "block" parameter. Return
9897 (ada_read_var_value): Update and simplify.
9898 * ada-exp.y (write_var_or_type): Remove old code.
9900 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9903 * event-top.c: Remove include comment.
9904 * inflow.c (class scoped_ignore_sigttou): Move from here...
9905 * inflow.h (class scoped_ignore_sigttou): ...to here.
9906 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9907 * top.c: Remove include comment.
9909 2019-05-27 Tom Tromey <tom@tromey.com>
9913 2019-05-22 Tom Tromey <tromey@adacore.com>
9915 * target.c (target_follow_exec): Constify parameter.
9916 * target-delegates.c: Rebuild.
9917 * remote.c (remote_target::follow_exec): Constify parameter.
9918 * infrun.c (follow_exec): Constify parameter.
9919 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9920 (target_follow_exec): Likewise.
9922 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9924 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9925 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9927 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9929 * NEWS: Add debugredirect and testsuite sections.
9931 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9933 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9934 target descriptions using exclusively floating point register name
9937 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9940 * f-lang.c (build_fortran_types): Handle the case where
9941 gdbarch_floatformat_for_type returns a nullptr.
9943 2019-05-21 Tom de Vries <tdevries@suse.de>
9946 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9948 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9951 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9953 * i386-tdep.c (i386_floatformat_for_type): Use
9954 floatformats_ia64_quad for the 16-byte floating point component
9955 within a fortran 32-byte complex number.
9957 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9959 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9960 delete default constructor.
9961 (find_partial_die): Update to return const struct.
9962 (partial_die_parent_scope): Move variable declaration into scope
9963 of its use and change its type to auto.
9964 (guess_partial_die_structure_name): Likewise.
9965 (partial_die_info::fixup): Likewise.
9967 2019-05-17 Tom Tromey <tromey@adacore.com>
9969 * source.c (find_and_open_source): Remove cast.
9971 2019-05-17 Tom Tromey <tromey@adacore.com>
9973 * annotate.c (annotate_source): Make "filename" const.
9974 * annotate.h (annotate_source): Use const.
9976 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9978 * disasm.c (set_disassembler_options): Send errors to stderr.
9980 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9982 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9983 (cli_interp_base::set_logging): Check debug_redirect.
9984 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9985 * cli/cli-logging.c (debug_redirect): Add static variable.
9986 (pop_output_files): Add default param.
9987 (handle_redirections): Print debug setting.
9988 (show_logging_command): Likewise.
9989 (_initialize_cli_logging): Add debugredirect command.
9990 * interps.c (current_interp_set_logging): Add debug_redirect
9992 * interps.h (set_logging): Add debug_redirect parameter.
9993 (current_interp_set_logging): Likewise.
9994 * mi/mi-common.h: Likewise.
9995 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9997 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9998 Tom Tromey <tromey@adacore.com>
10000 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10002 * cli/cli-interp.h (make_logging_output): Remove declaration.
10003 * cli/cli-logging.c (make_logging_output): Remove function.
10004 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10006 * ui-file.c (tee_file::tee_file): Remove bools.
10007 (tee_file::~tee_file): Remove deletes.
10008 * ui-file.h (tee_file): Remove bools.
10010 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10012 * mi/mi-cmds.h (mi_cmd_complete): New function.
10013 * mi/mi-main.c (mi_cmd_complete): Likewise.
10014 * mi/mi-cmds.c: Define new MI command -complete.
10015 * NEWS: Mention new -complete command.
10017 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10019 * completer.h (complete): New function.
10020 * completer.c (complete): Likewise.
10021 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10022 function defined in completer.h.
10024 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10026 * MAINTAINERS (Write After Approval): Add myself.
10028 2019-05-17 Tom de Vries <tdevries@suse.de>
10031 * dwarf2read.c (struct cu_partial_die_info): New struct.
10032 (find_partial_die): Return cu_partial_die_info.
10033 (partial_die_parent_scope, guess_partial_die_structure_name)
10034 (partial_die_info::fixup): Handle new return type of find_partial_die.
10036 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10038 PR breakpoints/24541
10039 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10040 "std::string", simplifying the algorithm.
10042 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10044 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10045 (stap_static_probe_ops::get_probes): Likewise.
10047 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10049 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10050 '-')" and "else if".
10051 (stap_parse_single_operand): Join checks for
10052 "gdbarch_stap_parse_special_token_p" and
10053 "gdbarch_stap_parse_special_token" in the same "if" statement.
10054 Invert check when verifying for operation on register
10057 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10059 * stap-probe.c (stap_get_opcode): Update comment.
10060 (stap_get_expected_argument_type): Likewise.
10061 (handle_stap_probe): Likewise.
10063 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10065 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10066 return type to 'bool'. Adjust comment. Use 'bool' when
10068 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10069 * stap-probe.c (stap_parse_argument_1): Likewise.
10070 (stap_is_operator): Likewise.
10071 (stap_is_generic_prefix): Likewise.
10072 (stap_is_register_prefix): Likewise.
10073 (stap_is_register_indirection_prefix): Likewise.
10074 (stap_is_integer_prefix): Likewise.
10075 (stap_generic_check_suffix): Likewise.
10076 (stap_check_integer_suffix): Likewise.
10077 (stap_check_register_suffix): Likewise.
10078 (stap_check_register_indirection_suffix): Likewise.
10079 (stap_parse_register_operand): Likewise.
10080 (stap_parse_single_operand): Likewise.
10081 (stap_parse_argument_1): Likewise.
10082 (stap_probe::get_argument_count): Likewise.
10083 (stap_is_operator): Likewise.
10085 2019-05-16 Tom Tromey <tromey@adacore.com>
10087 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10088 keyword to foreach.
10090 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10092 * linux-thread-db.c (try_thread_db_load_1): Change return type
10094 (try_thread_db_load): Likewise.
10095 (try_thread_db_load_from_pdir_1): Likewise.
10096 (try_thread_db_load_from_pdir): Likewise.
10097 (try_thread_db_load_from_sdir): Likewise.
10098 (try_thread_db_load_from_dir): Likewise.
10099 (thread_db_load_search): Likewise.
10100 (has_libpthread): Likewise.
10101 (thread_db_load): Likewise.
10103 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10105 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10106 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10107 NULL, and complain/return if that's the case.
10109 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10111 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10112 (advance, posn, abstract_read_memory): New functions.
10113 [struct mem_read_abstraction]: New struct.
10114 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10116 2019-05-14 Tom Tromey <tromey@adacore.com>
10118 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10119 value is not lval_memory.
10121 2019-05-14 Tom Tromey <tromey@adacore.com>
10123 * solib.c (info_sharedlibrary_command): Style the file name.
10125 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10127 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10128 (aarch64_vnv_type): Likewise.
10129 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10130 * common/tdesc.c: Likewise.
10131 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10132 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10133 * features/aarch64-fpu.xml: Add ieee half view.
10134 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10135 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10136 * gdbtypes.h (struct builtin_type): Likewise.
10137 (struct objfile_type): Likewise.
10139 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10141 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10143 * location.h (string_to_event_location): Likewise.
10145 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10149 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10151 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10152 New variable declaration.
10153 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10155 (print_one_breakpoint): Use ui_out::test_flags and new global
10156 variable to compute use_fixed_output.
10157 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10159 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10160 (mi_multi_location_breakpoint_output_fixed): Remove.
10161 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10163 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10164 fix_multi_location_breakpoint_output flag if version >= 3.
10165 * ui-out.h (enum ui_out_flag)
10166 <fix_multi_location_breakpoint_output>: New enumerator.
10168 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10170 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10172 2019-05-10 Tom Tromey <tromey@adacore.com>
10174 * ada-lang.c (catch_ada_completer): New function.
10175 (_initialize_ada_language): Use it.
10177 2019-05-10 Tom Tromey <tromey@adacore.com>
10179 * thread.c (print_thread_info): Make "requested_threads" const.
10180 * gdbthread.h (print_thread_info): Make "requested_threads"
10182 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10183 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10185 2019-05-08 Tom Tromey <tom@tromey.com>
10187 * gdbtypes.c (objfile_type_data): Change type.
10188 (objfile_type, _initialize_gdbtypes): Update.
10190 2019-05-08 Tom Tromey <tom@tromey.com>
10192 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10193 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10194 (_initialize_dwarf2_frame): Update.
10196 2019-05-08 Tom Tromey <tom@tromey.com>
10198 * objc-lang.c (objc_objfile_data): Change type.
10199 (find_methods): Update.
10200 (_initialize_objc_lang): Remove.
10202 2019-05-08 Tom Tromey <tom@tromey.com>
10204 * stabsread.c (rs6000_builtin_type_data): Change type.
10205 (rs6000_builtin_type, _initialize_stabsread): Update.
10207 2019-05-08 Tom Tromey <tom@tromey.com>
10209 * mips-tdep.c (mips_pdr_data): Remove.
10210 (_initialize_mips_tdep): Update.
10212 2019-05-08 Tom Tromey <tom@tromey.com>
10214 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10215 (hppa_init_objfile_priv_data, read_unwind_info)
10216 (find_unwind_entry, _initialize_hppa_tdep): Update.
10218 2019-05-08 Tom Tromey <tom@tromey.com>
10220 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10221 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10223 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10225 2019-05-08 Tom Tromey <tom@tromey.com>
10227 * mdebugread.c (basic_type_data): Change type.
10228 (basic_type, _initialize_mdebugread): Update.
10230 2019-05-08 Tom Tromey <tom@tromey.com>
10232 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10234 2019-05-08 Tom Tromey <tom@tromey.com>
10236 * nto-tdep.c (nto_inferior_data_reg): Change type.
10237 (nto_inferior_data): Update.
10238 (nto_inferior_data_cleanup, nto_new_inferior_data)
10239 (_initialize_nto_tdep): Remove.
10240 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10242 2019-05-08 Tom Tromey <tom@tromey.com>
10244 * ada-lang.c (struct ada_inferior_data): Add initializers.
10245 (ada_inferior_data): Change type.
10246 (ada_inferior_data_cleanup): Remove.
10247 (get_ada_inferior_data, ada_inferior_exit)
10248 (struct ada_pspace_data): Add initializers, destructor.
10249 (ada_pspace_data_handle): Change type.
10250 (get_ada_pspace_data): Update.
10251 (ada_pspace_data_cleanup): Remove.
10253 2019-05-08 Tom Tromey <tom@tromey.com>
10255 * coffread.c (struct coff_symfile_info): Add initializers.
10256 (coff_objfile_data_key): Move lower. Change type.
10257 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10259 (coff_free_info): Remove.
10261 2019-05-08 Tom Tromey <tom@tromey.com>
10263 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10264 (fbsd_pspace_data_handle): Move lower. Change type.
10265 (get_fbsd_pspace_data): Update.
10266 (fbsd_pspace_data_cleanup): Remove.
10267 (_initialize_fbsd_tdep): Update.
10269 2019-05-08 Tom Tromey <tom@tromey.com>
10271 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10272 (get_ada_tasks_pspace_data): Update.
10273 (ada_tasks_pspace_data_cleanup): Remove.
10274 (_initialize_tasks): Update.
10275 (ada_tasks_inferior_data_handle): Change type.
10276 (get_ada_tasks_inferior_data): Update.
10277 (ada_tasks_inferior_data_cleanup): Remove.
10278 (struct ada_tasks_pspace_data): Add initializers.
10280 2019-05-08 Tom Tromey <tom@tromey.com>
10282 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10283 * symfile-debug.c (debug_sym_get_probes): Change type.
10284 * stap-probe.c (handle_stap_probe):
10285 (stap_static_probe_ops::get_probes): Change type.
10286 * probe.h (class static_probe_ops) <get_probes>: Change type.
10287 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10288 (parse_probes_in_pspace): Update.
10289 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10291 (any_static_probe_ops::get_probes): Change type.
10292 * elfread.c (elfread_data): New typedef.
10293 (probe_key): Change type.
10294 (elf_get_probes): Likewise. Update.
10295 (probe_key_free): Remove.
10296 (_initialize_elfread): Update.
10297 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10299 (dtrace_process_dof_probe, dtrace_process_dof)
10300 (dtrace_static_probe_ops::get_probe): Change type.
10302 2019-05-08 Tom Tromey <tom@tromey.com>
10304 * xcoffread.c (struct xcoff_symfile_info): Rename from
10305 coff_symfile_info. Add initializers.
10306 (xcoff_objfile_data_key): Move lower. Change type.
10307 (XCOFF_DATA): Rewrite.
10308 (xcoff_free_info): Remove.
10309 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10310 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10311 (xcoff_initial_scan): Update.
10313 2019-05-08 Tom Tromey <tom@tromey.com>
10315 * solib-svr4.c (struct svr4_info): Add initializers and
10317 <probes_table>: Now an htab_up.
10318 (solib_svr4_pspace_data): Change type.
10319 (free_probes_table): Simplify.
10320 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10321 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10322 (probes_table_remove_objfile_probes, register_solib_event_probe)
10323 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10324 (_initialize_svr4_solib): Update.
10326 2019-05-08 Tom Tromey <tom@tromey.com>
10328 * remote.c (remote_pspace_data): Change type.
10329 (remote_pspace_data_cleanup): Remove.
10330 (get_remote_exec_file, set_pspace_remote_exec_file)
10331 (_initialize_remote): Update.
10333 2019-05-08 Tom Tromey <tom@tromey.com>
10335 * breakpoint.c (breakpoint_objfile_key): Change type.
10336 (get_breakpoint_objfile_data): Update.
10337 (free_breakpoint_objfile_data): Remove.
10338 (_initialize_breakpoint): Update.
10340 2019-05-08 Tom Tromey <tom@tromey.com>
10342 * linux-tdep.c (struct linux_info): Add initializers.
10343 (linux_inferior_data): Move. Change type.
10344 (invalidate_linux_cache_inf): Update.
10345 (linux_inferior_data_cleanup): Remove.
10346 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10348 2019-05-08 Tom Tromey <tom@tromey.com>
10350 * auxv.c (auxv_inferior_data): Move. Change type.
10351 (auxv_inferior_data_cleanup): Remove.
10352 (invalidate_auxv_cache_inf): Rewrite.
10353 (get_auxv_inferior_data, _initialize_auxv): Update.
10355 2019-05-08 Tom Tromey <tom@tromey.com>
10357 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10358 (symfile_debug_objfile_data_key): Change type.
10359 (symfile_debug_installed, debug_qf_has_symbols)
10360 (debug_qf_find_last_source_symtab)
10361 (debug_qf_forget_cached_source_info)
10362 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10363 (debug_qf_print_stats, debug_qf_dump)
10364 (debug_qf_expand_symtabs_for_function)
10365 (debug_qf_expand_all_symtabs)
10366 (debug_qf_expand_symtabs_with_fullname)
10367 (debug_qf_map_matching_symbols)
10368 (debug_qf_expand_symtabs_matching)
10369 (debug_qf_find_pc_sect_compunit_symtab)
10370 (debug_qf_map_symbol_filenames)
10371 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10372 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10373 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10374 (debug_sym_read_linetable, debug_sym_relocate): Update.
10375 (symfile_debug_free_objfile): Remove.
10376 (install_symfile_debug_logging, _initialize_symfile_debug):
10379 2019-05-08 Tom Tromey <tom@tromey.com>
10381 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10382 allocate_on_obstack.
10383 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10384 (get_dwarf2_per_objfile): Update.
10385 (set_dwarf2_per_objfile): Remove.
10386 (dwarf2_has_info, dwarf2_get_section_info): Update.
10387 (dwarf2_free_objfile): Remove.
10388 (_initialize_dwarf2_read): Update.
10390 2019-05-08 Tom Tromey <tom@tromey.com>
10392 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10394 <unsupported_script_warning_printed,
10395 script_not_found_warning_printed>: Now bool.
10396 (auto_load_pspace_data): Change type.
10397 (~auto_load_pspace_info): Rename from
10398 auto_load_pspace_data_cleanup.
10399 (get_auto_load_pspace_data, init_loaded_scripts_info)
10400 (clear_section_scripts, maybe_print_unsupported_script_warning)
10401 (maybe_print_script_not_found_warning, _initialize_auto_load):
10404 2019-05-08 Tom Tromey <tom@tromey.com>
10406 * objfiles.c (objfile_pspace_info): Add destructor and
10408 (objfiles_pspace_data): Change type.
10409 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10410 (get_objfile_pspace_data): Update.
10411 (objfiles_bfd_data): Change type.
10412 (get_objfile_bfd_data): Update.
10413 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10415 2019-05-08 Tom Tromey <tom@tromey.com>
10417 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10419 (get_catch_syscall_inferior_data): Update.
10420 (catch_syscall_inferior_data_cleanup): Remove.
10421 (_initialize_break_catch_syscall): Update.
10423 2019-05-08 Tom Tromey <tom@tromey.com>
10425 * inflow.c (struct terminal_info): Add destructor and
10427 (inflow_inferior_data): Change type.
10428 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10429 (get_inflow_inferior_data, inflow_inferior_exit)
10430 (swap_terminal_info, _initialize_inflow): Update.
10432 2019-05-08 Tom Tromey <tom@tromey.com>
10434 * target-dcache.c (target_dcache_cleanup): Remove.
10435 (target_dcache_aspace_key): Change type.
10436 (target_dcache_init_p, target_dcache_invalidate)
10437 (target_dcache_get, target_dcache_get_or_init)
10438 (_initialize_target_dcache): Update.
10439 * dcache.h (struct dcache_deleter): New.
10441 2019-05-08 Tom Tromey <tom@tromey.com>
10443 * symtab.c (struct symbol_cache): Add destructor and
10445 (symbol_cache_key): Move. Change type.
10446 (make_symbol_cache, free_symbol_cache): Remove.
10447 (get_symbol_cache): Update.
10448 (symbol_cache_cleanup): Remove.
10449 (ALL_PSPACES, symbol_cache_flush)
10450 (maintenance_print_symbol_cache)
10451 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10454 2019-05-08 Tom Tromey <tom@tromey.com>
10456 * symtab.c (struct main_info): Add destructor and initializers.
10457 (main_progspace_key): Move. Change type.
10458 (get_main_info): Update.
10459 (main_info_cleanup): Remove.
10460 (_initialize_symtab): Update.
10462 2019-05-08 Tom Tromey <tom@tromey.com>
10464 * registry.h (DECLARE_REGISTRY): Define the _key class.
10466 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10468 * NEWS: Merge two 'New commands' sections.
10470 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10472 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10473 parameter and use Ada language definition instead.
10474 (ada_val_print_ptr): Remove unused language parameter.
10475 (ada_val_print_num): Remove language parameter and use Ada language
10476 definition instead.
10477 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10479 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10480 parameter and use Ada language definition instead.
10481 (ada_val_print_1): Update all ada_val_print_xxx calls.
10482 Remove language parameter.
10483 (ada_val_print): Update ada_val_print_1 call.
10485 2019-05-08 Tom Tromey <tromey@adacore.com>
10487 * remote.c (remote_hw_watchpoint_limit)
10488 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10491 2019-05-08 Tom Tromey <tromey@adacore.com>
10493 * maint.c (_initialize_maint_cmds): Move initialization code to
10495 (watchdog, show_watchdog): Move to remote.c.
10496 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10498 (_initialize_remote): Move initialization code from maint.c.
10499 * defs.h (watchdog): Don't declare.
10501 2019-05-08 Tom Tromey <tromey@adacore.com>
10503 * tui/tui-interp.c: Include main.h.
10504 * interps.c: Include main.h.
10505 * main.h (interpreter_p): Declare.
10506 * defs.h (interpreter_p): Don't declare.
10508 2019-05-08 Tom Tromey <tromey@adacore.com>
10510 * dwarf2loc.c: Include dwarf2read.h.
10511 * defs.h (read_unsigned_leb128): Don't declare.
10512 * dwarf2read.h (read_unsigned_leb128): Declare.
10514 2019-05-08 Tom Tromey <tromey@adacore.com>
10516 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10519 2019-05-08 Tom Tromey <tromey@adacore.com>
10521 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10522 when no wrap column is set.
10524 2019-05-08 Tom Tromey <tromey@adacore.com>
10526 * c-lang.c (c_get_string): Handle non-C-style arrays.
10528 2019-05-08 Tom Tromey <tromey@adacore.com>
10530 * typeprint.c (print_offset_data::update): Print the bit offset,
10531 not the number of bits remaining.
10533 2019-05-08 Tom Tromey <tromey@adacore.com>
10535 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10536 padding at end of comment.
10538 2019-05-08 Tom Tromey <tromey@adacore.com>
10540 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10541 Compare main types.
10543 2019-05-06 Tom Tromey <tom@tromey.com>
10545 * common/scoped_mmap.c: Include common-defs.h.
10546 * common/scoped_mmap.h: Don't include config.h.
10548 2019-05-04 Tom Tromey <tom@tromey.com>
10550 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10551 (struct aarch64_call_info): Add initializers.
10552 <si>: Now a std::vector.
10553 (pass_on_stack, aarch64_push_dummy_call): Update.
10555 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10556 Tom Tromey <tom@tromey.com>
10558 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10559 (ppc_threads): Now a std::vector. Now static.
10560 (hwdebug_find_thread_points_by_tid)
10561 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10564 2019-05-04 Tom Tromey <tom@tromey.com>
10566 * arc-tdep.c (arc_tdesc_init): Return bool.
10568 2019-05-04 Tom Tromey <tom@tromey.com>
10570 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10571 Use gdb_assert_not_reached.
10573 2019-05-04 Tom Tromey <tom@tromey.com>
10575 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10578 2019-05-04 Tom Tromey <tom@tromey.com>
10580 * arc-tdep.c (arc_tdesc_init): Use bool.
10582 2019-05-04 Tom Tromey <tom@tromey.com>
10584 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10586 2019-05-04 Tom Tromey <tom@tromey.com>
10588 * cli/cli-cmds.c (valid_command_p): Return bool.
10590 2019-05-04 Tom Tromey <tom@tromey.com>
10592 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10593 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10595 2019-05-04 Raul Tambre <raul@tambre.ee>
10597 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10598 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10599 operator for comparison.
10601 2019-05-04 Tom Tromey <tom@tromey.com>
10603 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10604 (lookup_partial_symbol, print_partial_symbols)
10605 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10606 (psymbol_compare): Update.
10607 (add_psymbol_to_bcache): Clear the entire psymbol.
10608 (maintenance_check_psymtabs): Update.
10609 * psympriv.h (struct partial_symbol): Don't derive from
10610 general_symbol_info.
10611 <obj_section, unrelocated_address, address,
10612 set_unrelocated_address>: Update.
10613 <ginfo>: New member.
10614 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10615 (debug_names::write_psymbols): Update.
10617 2019-05-04 Tom de Vries <tdevries@suse.de>
10619 * contrib/cc-with-tweaks.sh: Support -n arg.
10621 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10623 * corelow.c (core_target::detach): Ensure frame cache and
10624 register caches are cleared.
10625 inferior.c (exit_inferior_1): Likewise.
10627 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10628 Tom Tromey <tom@tromey.com>
10630 * dictionary.c (collate_pending_symbols_by_language): Remove
10631 "struct" from foreach.
10632 * symtab.c (lookup_global_symbol_from_objfile)
10633 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10635 * ser-tcp.c (net_open): Remove "struct" from foreach.
10636 * objfiles.c (objfile_relocate, objfile_rebase)
10637 (objfile_has_symbols): Remove "struct" from foreach.
10638 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10640 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10642 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10643 "struct" from foreach.
10644 * ada-lang.c (create_excep_cond_exprs)
10645 (ada_exception_catchpoint_cond_string): Remove "struct" from
10648 2019-05-03 Tom Tromey <tromey@adacore.com>
10650 * ada-exp.y (convert_char_literal): Check suffix of each
10653 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10656 * ada-exp.y (yywrap): Don't define.
10657 * ada-lex.l (%option): Add noyywrap
10660 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10662 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10663 _WIN32_WINNT to the XP level, unless already defined to a higher
10666 * unittests/parse-connection-spec-selftests.c:
10668 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10671 * symfile.c (find_separate_debug_file): Remove colon from the
10672 drive spec of DOS/Windows file names of the target, so that the
10673 file name produced from DEBUGDIR and the target's directory will
10674 be valid on DOS/Windows systems.
10676 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10678 * rust-lang.c (val_print_struct): Handle printing structures
10679 containing strings.
10681 2019-05-02 Tom Tromey <tromey@adacore.com>
10683 * valarith.c (_initialize_valarith): Remove.
10685 2019-05-01 Tom Tromey <tromey@adacore.com>
10687 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10690 2019-05-01 Tom Tromey <tromey@adacore.com>
10692 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10693 for big-endian copies.
10695 2019-04-30 Ali Tamur <tamur@google.com>
10696 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10697 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10698 (read_3_bytes): New function.
10700 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10702 * windows-nat.c (main_thread_id): Delete.
10703 (handle_output_debug_string): Replace main_thread_id by
10704 current_event.dwThreadId.
10705 (fake_create_process): Likewise.
10706 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10707 Do not set main_thread_id.
10708 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10709 current_event.dwThreadId.
10710 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10712 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10714 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10715 Use current_event.dwThreadId instead of main_thread_id.
10717 2019-04-30 Tom Tromey <tromey@adacore.com>
10719 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10720 (create_excep_cond_exprs): Iterate over program spaces.
10721 (ada_exception_catchpoint_cond_string): Examine all minimal
10722 symbols for exception types.
10724 2019-04-30 Tom Tromey <tromey@adacore.com>
10727 * dwarf2read.c (process_structure_scope): Handle case where type
10728 has template parameters but no symbol was created.
10730 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10731 Chris January <chris.january@arm.com>
10733 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10735 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10737 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10739 * f-typeprint.c (f_print_type): Update rules for printing
10741 (f_type_print_varspec_suffix): Likewise.
10743 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10744 Chris January <chris.january@arm.com>
10746 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10747 function arguments.
10749 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10751 * f-lang.c (build_fortran_types): Change name of void type to
10753 * f-typeprint.c (f_type_print_base): Print the name of the void
10754 type, rather than a fixed string.
10755 * f-valprint.c (f_decorations): Use lower case void string.
10757 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10758 Chris January <chris.january@arm.com>
10760 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10763 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10764 Chris January <chris.january@arm.com>
10765 David Lecomber <david.lecomber@arm.com>
10767 * f-exp.y (BINOP_INTRINSIC): New token.
10768 (exp): New parser rule handling BINOP_INTRINSIC.
10769 (f77_keywords): Add new builtin procedures.
10770 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10771 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10772 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10773 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10774 (print_unop_subexp_f): New function.
10775 (print_binop_subexp_f): New function.
10776 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10777 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10778 (dump_subexp_body_f): Likewise.
10779 (operator_check_f): Likewise.
10780 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10781 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10783 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10785 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10787 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10788 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10789 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10790 (operator_length_f): New fuction.
10791 (print_subexp_f): New function.
10792 (op_name_f): New function.
10793 (dump_subexp_body_f): New function.
10794 (operator_check_f): New function.
10795 (exp_descriptor_f): Replace standard expression handling functions
10796 with new functions.
10797 * gdb/fortran-operator.def: New file.
10798 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10799 * gdb/std-operator.def: Remove UNOP_KIND.
10801 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10803 * std-operator.def: Remove unbalanced, stray double quote
10806 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10807 Chris January <chris.january@arm.com>
10808 Daniel Everett <daniel.everett@arm.com>
10809 Nick Forrington <nick.forrington@arm.com>
10810 Richard Bunt <richard.bunt@arm.com>
10812 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10813 of depth when printing anonymous structs or unions.
10814 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10815 Don't print either the top-level value, or the children if the
10816 max-depth is exceeded.
10817 (ppscm_print_children): When printing the key of a map, allow one
10818 extra level of depth.
10819 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10820 print either the top-level value, or the children if the max-depth
10822 (print_children): When printing the key of a map, allow one extra
10824 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10825 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10826 (user_print_options): Initialise max_depth field.
10827 (val_print_scalar_or_string_type_p): New function.
10828 (val_print): Check to see if the max depth has been reached.
10829 (val_print_check_max_depth): Define new function.
10830 (show_print_max_depth): New function.
10831 (_initialize_valprint): Add 'print max-depth' option.
10832 * valprint.h (struct value_print_options) <max_depth>: New field.
10833 (val_print_check_max_depth): Declare new function.
10834 * NEWS: Document new feature.
10836 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10838 * ada-lang.c (ada_language_defn): Initialise new field.
10839 * c-lang.c (c_is_string_type_p): New function.
10840 (c_language_defn): Initialise new field.
10841 (cplus_language_defn): Initialise new field.
10842 (asm_language_defn): Initialise new field.
10843 (minimal_language_defn): Initialise new field.
10844 * c-lang.h (c_is_string_type_p): Declare new function.
10845 * d-lang.c (d_language_defn): Initialise new field.
10846 * f-lang.c (f_is_string_type_p): New function.
10847 (f_language_defn): Initialise new field.
10848 * go-lang.c (go_is_string_type_p): New function.
10849 (go_language_defn): Initialise new field.
10850 * language.c (default_is_string_type_p): New function.
10851 (unknown_language_defn): Initialise new field.
10852 (auto_language_defn): Initialise new field.
10853 * language.h (struct language_defn) <la_is_string_type_p>: New
10855 (default_is_string_type_p): Declare new function.
10856 * m2-lang.c (m2_language_defn): Initialise new field.
10857 * objc-lang.c (objc_language_defn): Initialise new field.
10858 * opencl-lang.c (opencl_language_defn): Initialise new field.
10859 * p-lang.c (pascal_is_string_type_p): New function.
10860 (pascal_language_defn): Initialise new field.
10861 * rust-lang.c (rust_is_string_type_p): New function.
10862 (rust_language_defn): Initialise new field.
10864 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10866 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10868 * ada-lang.c (ada_language_defn): Initialise new field.
10869 * c-lang.c (c_language_defn): Likewise.
10870 (cplus_language_defn): Likewise.
10871 (asm_language_defn): Likewise.
10872 (minimal_language_defn): Likewise.
10873 * d-lang.c (d_language_defn): Likewise.
10874 * f-lang.c (f_language_defn): Likewise.
10875 * go-lang.c (go_language_defn): Likewise.
10876 * language.c (unknown_language_defn): Likewise.
10877 (auto_language_defn): Likewise.
10878 * m2-lang.c (m2_language_defn): Likewise.
10879 * objc-lang.c (objc_language_defn): Likewise.
10880 * opencl-lang.c (opencl_language_defn): Likewise.
10881 * p-lang.c (pascal_language_defn): Likewise.
10882 * rust-lang.c (rust_language_defn): Likewise.
10884 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10886 * ada-lang.c (ada_is_character_type): Change return type to bool.
10887 (ada_is_string_type): Likewise.
10888 * ada-lang.h (ada_is_character_type): Update declaration
10889 (ada_is_string_type): Likewise.
10891 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10893 Support style in 'frame|thread apply'
10895 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10896 * record.c (record_start, record_stop): Update callers of
10897 execute_command_to_string with false.
10898 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10899 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10901 (class string_file): New constructor with term_out parameter.
10902 Override methods term_out and can_emit_style_escape. New member
10904 (class stdio_file): Override can_emit_style_escape.
10905 (class tee_file): Override term_out and can_emit_style_escape.
10906 * utils.h (can_emit_style_escape): Remove.
10907 * utils.c (can_emit_style_escape): Likewise.
10908 Update all callers of can_emit_style_escape (SOMESTREAM) to
10909 SOMESTREAM->can_emit_style_escape.
10910 * source-cache.c (source_cache::get_source_lines): Likewise.
10911 * stack.c (frame_apply_command_count): Call execute_command_to_string
10912 passing the term_out characteristic of the current gdb_stdout.
10913 * thread.c (thr_try_catch_cmd): Likewise.
10914 * top.c (execute_command_to_string): pass term_out parameter
10915 to construct the string_file for the command output.
10916 * ui-file.c (term_cli_styling): New function (most code moved
10917 from utils.c can_emit_style_escape).
10918 (string_file::string_file, string_file::can_emit_style_escape,
10919 stdio_file::can_emit_style_escape, tee_file::term_out,
10920 tee_file::can_emit_style_escape): New functions.
10922 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10924 * NEWS: Mention the new set|show may-call-functions.
10925 * infcall.c (may_call_functions_p): New variable.
10926 (show_may_call_functions_p): New function.
10927 (call_function_by_hand_dummy): Throws an error if not
10928 may-call-functions.
10929 (_initialize_infcall): Call add_setshow_boolean_cmd for
10930 may-call-functions.
10932 2019-04-25 Keith Seitz <keiths@redhat.com>
10935 * cp-support.c (inspect_type): Don't attempt substitutions
10936 of symbol with the same name.
10938 2019-04-25 Tom Tromey <tromey@adacore.com>
10941 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10944 2019-04-25 Tom Tromey <tromey@adacore.com>
10946 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10948 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10949 (gdb_xml_parser::parse): Use std::move.
10950 * python/python-internal.h (gdbpy_convert_exception): Take a const
10952 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10954 * python/py-utils.c (gdbpy_convert_exception): Take a const
10956 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10958 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10960 * mi/mi-main.c (mi_print_exception): Take a const reference.
10961 * main.c (handle_command_errors): Take a const reference.
10962 * linespec.c (parse_linespec): Use std::move.
10963 * infcall.c (run_inferior_call): Use std::move.
10964 (call_function_by_hand_dummy): Use std::move.
10965 * exec.c (try_open_exec_file): Use std::move.
10966 * exceptions.h (exception_print, exception_fprintf)
10967 (exception_print_same): Update.
10968 * exceptions.c (print_exception, exception_print)
10969 (exception_fprintf, exception_print_same): Change parameters to
10971 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10972 * common/new-op.c: Use std::move.
10973 * common/common-exceptions.h (struct gdb_exception): Add move
10975 (struct gdb_exception_error, struct gdb_exception_quit, struct
10976 gdb_quit_bad_alloc): Change constructor to move constructor.
10977 (throw_exception): Change parameter to rvalue reference.
10978 * common/common-exceptions.c (throw_exception): Take rvalue
10980 * cli/cli-interp.c (safe_execute_command): Use std::move.
10981 * breakpoint.c (insert_bp_location, location_to_sals): Use
10984 2019-04-25 Tom Tromey <tromey@adacore.com>
10986 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10987 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10988 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10989 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10990 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10991 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10992 guile/scm-value.c: Use unpack.
10993 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10994 gdbscm_gdb_exception.
10995 (gdbscm_throw_gdb_exception): Likewise.
10996 (struct gdbscm_gdb_exception): New.
10997 (unpack): New function.
10998 (gdbscm_wrap): Use unpack.
11000 2019-04-25 Tom Tromey <tromey@adacore.com>
11002 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11003 (gdb_rl_callback_handler): Use std::move.
11004 * common/common-exceptions.h (struct gdb_exception): Add move
11005 assignment operator.
11006 (throw_exception_sjlj): Change "exception" to const reference.
11007 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11008 (throw_exception_sjlj): Change "exception" to const reference.
11010 2019-04-25 Tom Tromey <tromey@adacore.com>
11012 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11013 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11014 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11016 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11018 * mi/mi-interp.c (mi_interp::exec): Update.
11019 * linespec.c (parse_linespec): Update.
11020 * infcall.c (run_inferior_call): Update.
11021 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11022 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11023 (gdbscm_lookup_global_symbol): Update.
11024 * guile/scm-param.c (gdbscm_parameter_value): Update.
11025 * guile/scm-frame.c (gdbscm_frame_read_register)
11026 (gdbscm_frame_read_var): Update.
11027 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11028 * exec.c (try_open_exec_file): Update.
11029 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11030 (gdb_rl_callback_handler): Update.
11031 * common/common-exceptions.h (exception_none): Don't declare.
11032 * common/common-exceptions.c (exception_none): Don't define.
11033 (struct catcher) <exception>: Update.
11034 * cli/cli-interp.c (safe_execute_command): Update.
11035 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11037 2019-04-25 Ali Tamur <tamur@google.com>
11039 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11040 (read_attribute_value): Likewise.
11041 (dwarf2_read_addr_index): Update comment.
11042 (read_str_index): Add DW_FORM_strx.
11043 (dwarf2_string_attr): Likewise.
11044 (dwarf2_const_value_attr): Likewise.
11045 (dump_die_shallow): Likewise.
11046 (dwarf2_fetch_constant_bytes): Likewise.
11047 (skip_form_bytes): Likewise.
11048 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11050 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11054 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11055 OFFSET. Verify if current mapping contains an ELF header.
11056 (linux_find_memory_regions_full): Adjust call to
11059 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11060 Kang Li <kanglictf@gmail.com>
11064 * dwarf2-frame.c (read_initial_length): Be consistent about using
11065 unsigned representation of length.
11066 (decode_frame_entry_1): Likewise. Check for wraparound of
11067 end pointer as well as buffer overflow.
11069 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11071 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11074 2019-04-24 Tom Tromey <tromey@adacore.com>
11076 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11080 * s12z-tdep.c (s12z_unwind_pc): Delete.
11081 (s12z_unwind_sp): Delete.
11082 (s12z_gdbarch_init): Don't register deleted functions with
11085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11087 * rl78-tdep.c (rl78_unwind_sp): Delete.
11088 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11090 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11092 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11093 (xstormy16_unwind_pc): Delete.
11094 (xstormy16_dummy_id): Delete.
11095 (xstormy16_gdbarch_init): Don't register deleted functions with
11098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11100 * vax-tdep.c (vax_unwind_pc): Delete.
11101 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11105 * v850-tdep.c (v850_unwind_sp): Delete.
11106 (v850_unwind_pc): Delete.
11107 (v850_dummy_id): Delete.
11108 (v850_gdbarch_init): Don't register deleted functions with
11111 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11113 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11114 (tilegx_unwind_pc): Delete.
11115 (tilegx_unwind_dummy_id): Delete.
11116 (tilegx_gdbarch_init): Don't register deleted functions with
11119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11121 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11122 (tic6x_dummy_id): Delete.
11123 (tic6x_gdbarch_init): Don't register deleted functions with
11126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11128 * sparc-tdep.c (sparc_unwind_pc): Delete.
11129 (sparc32_gdbarch_init): Don't register deleted function with
11132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11134 * sh-tdep.c (sh_unwind_sp): Delete.
11135 (sh_unwind_pc): Delete.
11136 (sh_dummy_id): Delete.
11137 (sh_gdbarch_init): Don't register deleted functions with
11140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11142 * score-tdep.c (score_unwind_sp): Delete.
11143 (score_unwind_pc): Delete.
11144 (score_dummy_id): Delete.
11145 (score_gdbarch_init): Don't register deleted functions with
11148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11150 * rx-tdep.c (rx_unwind_pc): Delete.
11151 (rx_unwind_sp): Delete.
11152 (rx_dummy_id): Delete.
11153 (rx_gdbarch_init): Don't register deleted functions with
11154 gdbarch. Update comment.
11156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11158 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11159 (rs6000_dummy_id): Delete.
11160 (rs6000_gdbarch_init): Don't register deleted functions with
11163 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11165 * or1k-tdep.c (or1k_dummy_id): Delete.
11166 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11168 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11170 * nios2-tdep.c (nios2_dummy_id): Delete.
11171 (nios2_unwind_sp): Delete.
11172 (nios2_gdbarch_init): Don't register deleted functions with
11175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11177 * nds32-tdep.c (nds32_dummy_id): Delete.
11178 (nds32_unwind_pc): Delete.
11179 (nds32_unwind_sp): Delete.
11180 (nds32_gdbarch_init): Don't register deleted functions with
11183 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11185 * msp430-tdep.c (msp430_unwind_pc): Delete.
11186 (msp430_unwind_sp): Delete.
11187 (msp430_dummy_id): Delete.
11188 (msp430_gdbarch_init): Don't register deleted functions with
11191 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11193 * moxie-tdep.c (moxie_unwind_sp): Delete.
11194 (moxie_unwind_pc): Delete.
11195 (moxie_dummy_id): Delete.
11196 (moxie_gdbarch_init): Don't register deleted functions with
11199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11201 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11202 (mn10300_unwind_pc): Delete.
11203 (mn10300_unwind_sp): Delete.
11204 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11206 (mn10300_frame_unwind_init): Don't register deleted functions with
11209 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11211 * mep-tdep.c (mep_unwind_pc): Delete.
11212 (mep_unwind_sp): Delete.
11213 (mep_dummy_id): Delete.
11214 (mep_gdbarch_init): Don't register deleted functions with
11217 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11219 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11220 (m68hc11_unwind_sp): Delete.
11221 (m68hc11_gdbarch_init): Don't register deleted functions with
11224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11226 * m32r-tdep.c (m32r_unwind_sp): Delete.
11227 (m32r_unwind_pc): Delete.
11228 (m32r_dummy_id): Delete.
11229 (m32r_gdbarch_init): Don't register deleted functions with
11232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11234 * m32c-tdep.c (m32c_unwind_pc): Delete.
11235 (m32c_unwind_sp): Delete.
11236 (m32c_dummy_id): Delete.
11237 (m32c_gdbarch_init): Don't register deleted functions with
11240 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11242 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11243 (lm32_unwind_pc): Delete.
11244 (lm32_dummy_id): Delete.
11245 (lm32_gdbarch_init): Don't register deleted functions with
11248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11250 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11251 (iq2000_unwind_pc): Delete.
11252 (iq2000_dummy_id): Delete.
11253 (iq2000_gdbarch_init): Don't register deleted functions with
11256 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11258 * nds32-tdep.c (nds32_type_align): Delete.
11259 (nds32_push_dummy_call): Use type_align instead.
11261 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11263 * arm-tdep.c (arm_type_align): Only handle vector override case.
11264 (arm_push_dummy_call): Use type_align.
11265 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11267 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11269 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11271 (pass_on_stack): Use type_align.
11272 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11275 2019-04-23 Tom Tromey <tromey@adacore.com>
11277 * dwarf2read.c (line_header::file_name_at): Remove unused
11280 2019-04-23 Tom de Vries <tdevries@suse.de>
11283 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11287 2019-03-27 Ali Tamur <tamur@google.com>
11289 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11290 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11291 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11292 (dwarf_expr_context::get_addr_index): Likewise
11293 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11294 (symbol_needs_eval_context::get_addr_index): Likewise
11295 (disassemble_dwarf_expression): Add DW_OP_addrx
11296 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11297 (read_cutu_die_from_dwo): Update comment
11298 (skip_one_die): Add DW_FORM_addrx
11299 (read_attribute_value): Likewise
11300 (var_decode_location): Add DW_OP_addrx
11301 (dwarf2_const_value_attr): Add DW_FORM_addrx
11302 (dump_die_shallow): Likewise
11303 (dwarf2_fetch_constant_bytes): Likewise
11304 (decode_locdesc): Add DW_OP_addrx
11305 (skip_form_bytes): Add DW_FORM_addrx
11307 2019-04-22 Ali Tamur <tamur@google.com>
11309 * MAINTAINERS (Write After Approval): Add self.
11311 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11313 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11314 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11315 (open_symbol_file_object): Likewise.
11316 (svr4_default_sos): Add info parameter.
11317 (svr4_read_so_list): Likewise.
11318 (svr4_current_sos_direct): Adjust functions calls to pass down
11320 (svr4_current_sos_1): Add info parameter.
11321 (svr4_current_sos): Call get_svr4_info, pass info down to
11322 svr4_current_sos_1.
11323 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11325 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11327 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11329 (probes_table_remove_objfile_probes): Likewise.
11330 (register_solib_event_probe): Add info parameter.
11331 (solist_update_incremental): Pass info parameter down to
11333 (disable_probes_interface): Add info parameter.
11334 (svr4_handle_solib_event): Pass current_program_space to
11335 get_svr4_info. Adjust disable_probes_interface cleanup.
11336 (svr4_create_probe_breakpoints): Add info parameter, pass it
11337 down to register_solib_event_probe.
11338 (svr4_create_solib_event_breakpoints): Add info parameter,
11339 pass it down to svr4_create_probe_breakpoints.
11340 (enable_break): Pass info down to
11341 svr4_create_solib_event_breakpoints.
11342 (svr4_solib_create_inferior_hook): Pass current_program_space to
11344 (svr4_clear_solib): Likewise.
11346 2019-04-22 Pedro Alves <palves@redhat.com>
11348 * solib-svr4.c (svr4_free_objfile_observer): New.
11349 (probe_and_action::objfile): New field.
11350 (probes_table_htab_remove_objfile_probes)
11351 (probes_table_remove_objfile_probes): New functions.
11352 (register_solib_event_probe): Add 'objfile' parameter. Store it
11353 in the new probe_and_action. Don't store the probe in 'lookup'.
11354 (svr4_create_probe_breakpoints): Pass objfile to
11355 register_solib_event_probe.
11356 (_initialize_svr4_solib): Register a free_objfile observer.
11358 2019-04-19 Tom Tromey <tom@tromey.com>
11360 * common/queue.h: Remove.
11362 2019-04-19 Tom Tromey <tom@tromey.com>
11364 * event-loop.c: Don't include "common/queue.h".
11366 2019-04-19 Tom Tromey <tom@tromey.com>
11368 * remote.c (remote_target): Use delete.
11369 * remote-notif.h: Include <list>, not "common/queue.h".
11370 (notif_client_p): Remove typedef.
11371 (remote_notif_state): Add constructor, destructor, initializer.
11372 <notif_queue>: Now a std::list.
11373 (remote_notif_state_xfree): Don't declare.
11374 * remote-notif.c (remote_notif_process, handle_notification)
11375 (remote_notif_state_allocate): Update.
11376 (~remote_notif_state): Rename from remote_notif_state_xfree.
11378 2019-04-19 Tom Tromey <tom@tromey.com>
11380 * symfile.c (reread_symbols): Update.
11381 * objfiles.c (objfile_register_static_link)
11382 (objfile_lookup_static_link): Update
11383 (~objfile) Don't delete static_links.
11384 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11386 2019-04-19 Tom Tromey <tom@tromey.com>
11388 * type-stack.h (struct type_stack) <insert>: Constify string.
11389 * type-stack.c (type_stack::insert): Constify string.
11390 * gdbtypes.h (lookup_template_type): Update.
11391 (address_space_name_to_int): Update.
11392 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11394 (lookup_template_type): Make name const.
11395 * c-exp.y: Update rules.
11396 (lex_one_token, classify_name, classify_inner_name)
11397 (c_print_token): Update.
11398 * p-exp.y: Update rules.
11400 * f-exp.y: Update rules.
11402 * d-exp.y: Update rules.
11403 (lex_one_token, classify_name, classify_inner_name): Update.
11404 * parse.c (write_dollar_variable, copy_name): Return std::string.
11405 * parser-defs.h (copy_name): Change return type.
11406 * m2-exp.y: Update rules.
11408 * go-exp.y (lex_one_token): Update.
11410 (classify_unsafe_function, classify_packaged_name)
11411 (classify_name, yylex): Update.
11413 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11415 * configure.ac: add --enable-source-highlight switch.
11416 * configure: Regenerate.
11417 * top.c (print_gdb_version): plumb --enable-source-highlight
11418 status to "show configuration".
11420 2019-04-19 Tom Tromey <tromey@adacore.com>
11422 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11424 (empty_record, ada_template_to_fixed_record_type_1)
11425 (template_to_static_fixed_type)
11426 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11427 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11428 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11431 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11434 * source.c (print_source_lines_base): Advance "iter" when a
11435 control character is seen.
11437 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11439 * inferior.h (struct infcall_suspend_state_deleter):
11440 Catch exception in destructor to avoid crash.
11442 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11444 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11445 close to the add_com "shell".
11447 2019-04-18 Tom Tromey <tromey@adacore.com>
11449 * process-stratum-target.h (class process_stratum_target)
11450 <stratum>: Add "final".
11452 2019-04-17 Tom Tromey <tromey@adacore.com>
11454 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11455 against nullptr before use.
11457 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11459 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11461 2019-04-17 Jim Wilson <jimw@sifive.com>
11462 Andrew Burgess <andrew.burgess@embecosm.com>
11464 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11465 code read might fail, assume 4-byte breakpoint in that case.
11467 2019-04-15 Leszek Swirski <leszeks@google.com>
11469 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11470 rather than a hand-rolled POD check when checking for forced MEMORY
11473 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11475 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11476 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11478 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11479 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11480 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11483 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11485 * aarch64-linux-nat.c
11486 (aarch64_linux_nat_target::thread_architecture): Add override.
11487 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11490 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11492 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11494 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11496 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11497 target types of size 96-bits, add some additional comments, and
11498 check that the builtin type we found was the correct size.
11500 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11502 * utils.c (prompt_for_continue): Don't restore the styling at the
11503 end, as applied_style has the wrong value. This fixes styling in
11504 long lists of file names that are interrupted by the "Continue?"
11507 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11509 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11510 * c-lang.c (c_language_defn): Likewise.
11511 (cplus_language_defn): Likewise.
11512 (asm_language_defn): Likewise.
11513 (minimal_language_defn): Likewise.
11514 * d-lang.c (d_language_defn): Likewise.
11515 * f-lang.c (f_language_defn): Likewise.
11516 * go-lang.c (go_language_defn): Likewise.
11517 * language.c (unknown_language_defn): Likewise.
11518 (auto_language_defn): Likewise.
11519 * language.h (struct language_defn): Remove la_magic field.
11520 (LANG_MAGIC): Delete.
11521 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11522 * objc-lang.c (objc_language_defn): Likewise.
11523 * opencl-lang.c (opencl_language_defn): Likewise.
11524 * p-lang.c (pascal_language_defn): Likewise.
11525 * rust-lang.c (rust_language_defn): Likewise.
11527 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11529 * riscv-tdep.c (riscv_type_align): New function.
11530 (riscv_type_alignment): Delete.
11531 (riscv_arg_location): Use 'type_align'.
11532 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11534 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11536 * gdbtypes.c (type_align): A struct with no non-static fields also
11537 has alignment of 1.
11539 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11541 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11543 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11545 (riscv_struct_info::analyse): New implementation using new
11546 analyse_inner member function.
11547 (riscv_struct_info::field_offset): New member function.
11548 (riscv_struct_info::m_offsets): New member variable.
11549 (riscv_struct_info::analyse_inner): New private member function,
11550 takes the old implementation of riscv_struct_info::analyse but
11551 extended to track field offsets.
11552 (riscv_call_arg_struct): Update the struct folding special cases
11553 to handle cases where empty C++ structs, which are non-zero
11555 (riscv_arg_location): Initialise the length of each location, a
11556 non-zero length now indicates the location is in use.
11557 (riscv_push_dummy_call): Allow for the first location having a
11558 non-zero offset when setting up arguments.
11559 (riscv_return_value): Likewise, but for return values.
11561 2019-04-11 Tom Tromey <tromey@adacore.com>
11563 * utils.c (internal_vproblem): Make "msg" const.
11565 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11567 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11568 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11569 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11570 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11572 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11574 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11576 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11577 of amd64_collect_native_gregset.
11578 (amd64_linux_nat_target::store_registers): Likewise.
11580 2019-04-10 Tom Tromey <tom@tromey.com>
11582 * symtab.c (lookup_global_symbol_from_objfile)
11583 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11584 * objfiles.h (class separate_debug_iterator): New.
11585 (class separate_debug_range): New.
11586 (struct objfile) <separate_debug_objfiles>: New method.
11587 (objfile_separate_debug_iterate): Don't declare.
11588 * objfiles.c (separate_debug_iterator::operator++): Rename from
11589 objfile_separate_debug_iterate.
11590 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11592 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11595 2019-04-10 Tom Tromey <tom@tromey.com>
11597 * symfile.c (reread_symbols): Remove old comment.
11598 * objfiles.c (free_all_objfiles): Fix a typo.
11600 2019-04-10 Tom Tromey <tom@tromey.com>
11602 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11603 * minsyms.c (lookup_minimal_symbol): Use foreach.
11604 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11605 (lookup_minimal_symbol_solib_trampoline): Likewise.
11606 * symfile.c (reread_symbols): Use foreach.
11608 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11609 Tom Tromey <tromey@adacore.com>
11612 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11613 (rust_lex_int_test): Change "value" to be LONGEST.
11614 (rust_lex_tests): Add test for long integer literal.
11616 2019-04-09 Tom Tromey <tromey@adacore.com>
11618 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11620 (extended_remote_target::attach): Update.
11621 (remote_target::remote_notice_new_inferior): Update.
11622 (remote_target::add_current_inferior_and_thread): Update.
11623 * inferior.c (exit_inferior_1): Use "false".
11624 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11626 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11628 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11629 the "start" command.
11631 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11633 * python/py-inferior.c (infpy_thread_from_thread_handle):
11634 Adjust comments to reflect renaming of thread_from_thread_handle
11635 to thread_from_handle. Adjust keywords. Fix type error message.
11636 (inferior_object_methods): Add thread_from_handle. Retain
11637 thread_from_thread_handle, but mark it as deprecated.
11639 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11641 * gdbthread.h (find_thread_by_handle): Revise declaration.
11642 * thread.c (find_thread_by_handle): Likewise. Adjust
11643 implementation too.
11644 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11645 support for buffer objects as handles.
11647 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11649 * python/py-infthread.c (thpy_thread_handle): New function.
11650 (thread_object_methods): Register thpy_thread_handle.
11652 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11654 * gdbthread.h (thread_to_thread_handle): Declare.
11655 * thread.c (gdbtypes.h): Include.
11656 (thread_to_thread_handle): New function.
11658 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11659 (target_thread_info_to_thread_handle): Declare.
11660 * target.c (target_thread_info_to_thread_handle): New function.
11661 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11662 * target-delegates.c: Regenerate.
11664 * linux-thread-db.c (class thread_db_target): Add method
11665 thread_info_to_thread_handle.
11666 (thread_db_target::thread_info_to_thread_handle): Define.
11667 * remote.c (class remote_target): Add new method
11668 thread_info_to_thread_handle.
11669 (remote_target::thread_info_to_thread_handle): Define.
11671 2019-04-08 Pedro Alves <palves@redhat.com>
11673 * common/common-exceptions.c (throw_exception): Don't create
11674 named object to throw; throw directly.
11675 (throw_it): Likewise. Don't initialize gdb_exception::message
11676 here, with new; pass FMT and AP to the ctor instead.
11677 * common/common-exceptions.h: Include <string>.
11678 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11679 const char *, va_list)): New ctor. Use std::make_shared.
11680 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11682 (gdb_exception_error::gdb_exception_error(enum errors, const char
11684 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11686 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11688 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11689 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11692 2019-04-08 Tom Tromey <tom@tromey.com>
11694 * valops.c (value_rtti_indirect_type): Replace throw_exception
11696 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11698 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11700 * target.c (target_translate_tls_address): Replace throw_exception
11702 * stack.c (frame_apply_command_count): Replace throw_exception
11704 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11706 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11708 * rs6000-tdep.c (rs6000_frame_cache)
11709 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11710 * remote.c: Replace throw_exception with throw.
11711 * record-full.c (record_full_message, record_full_wait_1)
11712 (record_full_restore): Replace throw_exception with throw.
11714 (get_thread_current_frame_id, record_btrace_start_replaying)
11715 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11716 (cmd_record_btrace_start): Replace throw_exception with throw.
11717 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11719 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11720 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11722 (find_linespec_symbols): Replace throw_exception with throw.
11723 * infrun.c (displaced_step_prepare, resume): Replace
11724 throw_exception with throw.
11725 * infcmd.c (post_create_inferior): Replace throw_exception with
11727 * inf-loop.c (inferior_event_handler): Replace throw_exception
11729 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11730 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11731 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11732 (get_prev_frame_always, get_frame_pc_if_available)
11733 (get_frame_address_in_block_if_available, get_frame_language):
11734 Replace throw_exception with throw.
11735 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11736 throw_exception with throw.
11737 * eval.c (fetch_subexp_value, evaluate_var_value)
11738 (evaluate_funcall, evaluate_subexp_standard): Replace
11739 throw_exception with throw.
11740 * dwarf2loc.c (call_site_find_chain)
11741 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11742 Replace throw_exception with throw.
11743 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11745 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11747 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11748 * completer.c (complete_line_internal): Replace throw_exception
11750 * compile/compile-object-run.c (compile_object_run): Replace
11751 throw_exception with throw.
11752 * cli/cli-script.c (process_next_line): Replace throw_exception
11754 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11755 (btrace_enable, btrace_maint_update_pt_packets): Replace
11756 throw_exception with throw.
11757 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11758 throw_exception with throw.
11759 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11760 throw_exception with throw.
11761 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11762 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11763 * aarch64-tdep.c (aarch64_make_prologue_cache)
11764 (aarch64_make_stub_cache): Replace throw_exception with throw.
11766 2019-04-08 Tom Tromey <tom@tromey.com>
11768 * common/common-exceptions.c (throw_exception): Rename from
11769 throw_exception_cxx. Remove old copy. Make argument const.
11770 (throw_it): Create and throw exception objects directly.
11771 * common/common-exceptions.h (throw_exception): Make argument
11773 (struct gdb_exception_error): Add constructor.
11774 (struct gdb_exception_quit): Add constructor.
11776 2019-04-08 Tom Tromey <tom@tromey.com>
11778 * common/common-exceptions.h (exception_rethrow): Don't declare.
11779 (TRY_SJLJ): Update comment.
11780 (TRY, CATCH, END_CATCH): Remove.
11781 * common/common-exceptions.c (exception_rethrow): Remove.
11783 2019-04-08 Tom Tromey <tom@tromey.com>
11785 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11787 (gdb_exception_error): Rename from
11788 gdb_exception_RETURN_MASK_ERROR.
11789 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11790 (gdb_quit_bad_alloc): Update.
11791 * aarch64-tdep.c: Update.
11792 * ada-lang.c: Update.
11793 * ada-typeprint.c: Update.
11794 * ada-valprint.c: Update.
11795 * amd64-tdep.c: Update.
11796 * arch-utils.c: Update.
11797 * break-catch-throw.c: Update.
11798 * breakpoint.c: Update.
11799 * btrace.c: Update.
11800 * c-varobj.c: Update.
11801 * cli/cli-cmds.c: Update.
11802 * cli/cli-interp.c: Update.
11803 * cli/cli-script.c: Update.
11804 * common/common-exceptions.c: Update.
11805 * common/new-op.c: Update.
11806 * common/selftest.c: Update.
11807 * compile/compile-c-symbols.c: Update.
11808 * compile/compile-cplus-symbols.c: Update.
11809 * compile/compile-object-load.c: Update.
11810 * compile/compile-object-run.c: Update.
11811 * completer.c: Update.
11812 * corelow.c: Update.
11813 * cp-abi.c: Update.
11814 * cp-support.c: Update.
11815 * cp-valprint.c: Update.
11816 * darwin-nat.c: Update.
11817 * disasm-selftests.c: Update.
11818 * dtrace-probe.c: Update.
11819 * dwarf-index-cache.c: Update.
11820 * dwarf-index-write.c: Update.
11821 * dwarf2-frame-tailcall.c: Update.
11822 * dwarf2-frame.c: Update.
11823 * dwarf2loc.c: Update.
11824 * dwarf2read.c: Update.
11826 * event-loop.c: Update.
11827 * event-top.c: Update.
11829 * f-valprint.c: Update.
11830 * fbsd-tdep.c: Update.
11831 * frame-unwind.c: Update.
11833 * gdbtypes.c: Update.
11834 * gnu-v3-abi.c: Update.
11835 * guile/guile-internal.h: Update.
11836 * guile/scm-block.c: Update.
11837 * guile/scm-breakpoint.c: Update.
11838 * guile/scm-cmd.c: Update.
11839 * guile/scm-disasm.c: Update.
11840 * guile/scm-frame.c: Update.
11841 * guile/scm-lazy-string.c: Update.
11842 * guile/scm-math.c: Update.
11843 * guile/scm-param.c: Update.
11844 * guile/scm-ports.c: Update.
11845 * guile/scm-pretty-print.c: Update.
11846 * guile/scm-symbol.c: Update.
11847 * guile/scm-symtab.c: Update.
11848 * guile/scm-type.c: Update.
11849 * guile/scm-value.c: Update.
11850 * i386-linux-tdep.c: Update.
11851 * i386-tdep.c: Update.
11852 * inf-loop.c: Update.
11853 * infcall.c: Update.
11854 * infcmd.c: Update.
11855 * infrun.c: Update.
11857 * language.c: Update.
11858 * linespec.c: Update.
11859 * linux-fork.c: Update.
11860 * linux-nat.c: Update.
11861 * linux-tdep.c: Update.
11862 * linux-thread-db.c: Update.
11864 * mi/mi-cmd-break.c: Update.
11865 * mi/mi-cmd-stack.c: Update.
11866 * mi/mi-interp.c: Update.
11867 * mi/mi-main.c: Update.
11868 * objc-lang.c: Update.
11869 * p-valprint.c: Update.
11871 * ppc-linux-tdep.c: Update.
11872 * printcmd.c: Update.
11873 * python/py-arch.c: Update.
11874 * python/py-breakpoint.c: Update.
11875 * python/py-cmd.c: Update.
11876 * python/py-finishbreakpoint.c: Update.
11877 * python/py-frame.c: Update.
11878 * python/py-framefilter.c: Update.
11879 * python/py-gdb-readline.c: Update.
11880 * python/py-inferior.c: Update.
11881 * python/py-infthread.c: Update.
11882 * python/py-lazy-string.c: Update.
11883 * python/py-linetable.c: Update.
11884 * python/py-objfile.c: Update.
11885 * python/py-param.c: Update.
11886 * python/py-prettyprint.c: Update.
11887 * python/py-progspace.c: Update.
11888 * python/py-record-btrace.c: Update.
11889 * python/py-record.c: Update.
11890 * python/py-symbol.c: Update.
11891 * python/py-type.c: Update.
11892 * python/py-unwind.c: Update.
11893 * python/py-utils.c: Update.
11894 * python/py-value.c: Update.
11895 * python/python.c: Update.
11896 * record-btrace.c: Update.
11897 * record-full.c: Update.
11898 * remote-fileio.c: Update.
11899 * remote.c: Update.
11900 * riscv-tdep.c: Update.
11901 * rs6000-aix-tdep.c: Update.
11902 * rs6000-tdep.c: Update.
11903 * rust-exp.y: Update.
11904 * rust-lang.c: Update.
11905 * s390-tdep.c: Update.
11906 * selftest-arch.c: Update.
11907 * solib-dsbt.c: Update.
11908 * solib-frv.c: Update.
11909 * solib-spu.c: Update.
11910 * solib-svr4.c: Update.
11912 * sparc64-linux-tdep.c: Update.
11914 * symfile-mem.c: Update.
11915 * symmisc.c: Update.
11916 * target.c: Update.
11917 * thread.c: Update.
11919 * tracefile-tfile.c: Update.
11920 * tui/tui.c: Update.
11921 * typeprint.c: Update.
11922 * unittests/cli-utils-selftests.c: Update.
11923 * unittests/parse-connection-spec-selftests.c: Update.
11924 * valops.c: Update.
11925 * valprint.c: Update.
11927 * varobj.c: Update.
11928 * windows-nat.c: Update.
11929 * x86-linux-nat.c: Update.
11930 * xml-support.c: Update.
11932 2019-04-08 Tom Tromey <tom@tromey.com>
11934 * xml-support.c: Use C++ exception handling.
11935 * x86-linux-nat.c: Use C++ exception handling.
11936 * windows-nat.c: Use C++ exception handling.
11937 * varobj.c: Use C++ exception handling.
11938 * value.c: Use C++ exception handling.
11939 * valprint.c: Use C++ exception handling.
11940 * valops.c: Use C++ exception handling.
11941 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11943 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11944 * typeprint.c: Use C++ exception handling.
11945 * tui/tui.c: Use C++ exception handling.
11946 * tracefile-tfile.c: Use C++ exception handling.
11947 * top.c: Use C++ exception handling.
11948 * thread.c: Use C++ exception handling.
11949 * target.c: Use C++ exception handling.
11950 * symmisc.c: Use C++ exception handling.
11951 * symfile-mem.c: Use C++ exception handling.
11952 * stack.c: Use C++ exception handling.
11953 * sparc64-linux-tdep.c: Use C++ exception handling.
11954 * solib.c: Use C++ exception handling.
11955 * solib-svr4.c: Use C++ exception handling.
11956 * solib-spu.c: Use C++ exception handling.
11957 * solib-frv.c: Use C++ exception handling.
11958 * solib-dsbt.c: Use C++ exception handling.
11959 * selftest-arch.c: Use C++ exception handling.
11960 * s390-tdep.c: Use C++ exception handling.
11961 * rust-lang.c: Use C++ exception handling.
11962 * rust-exp.y: Use C++ exception handling.
11963 * rs6000-tdep.c: Use C++ exception handling.
11964 * rs6000-aix-tdep.c: Use C++ exception handling.
11965 * riscv-tdep.c: Use C++ exception handling.
11966 * remote.c: Use C++ exception handling.
11967 * remote-fileio.c: Use C++ exception handling.
11968 * record-full.c: Use C++ exception handling.
11969 * record-btrace.c: Use C++ exception handling.
11970 * python/python.c: Use C++ exception handling.
11971 * python/py-value.c: Use C++ exception handling.
11972 * python/py-utils.c: Use C++ exception handling.
11973 * python/py-unwind.c: Use C++ exception handling.
11974 * python/py-type.c: Use C++ exception handling.
11975 * python/py-symbol.c: Use C++ exception handling.
11976 * python/py-record.c: Use C++ exception handling.
11977 * python/py-record-btrace.c: Use C++ exception handling.
11978 * python/py-progspace.c: Use C++ exception handling.
11979 * python/py-prettyprint.c: Use C++ exception handling.
11980 * python/py-param.c: Use C++ exception handling.
11981 * python/py-objfile.c: Use C++ exception handling.
11982 * python/py-linetable.c: Use C++ exception handling.
11983 * python/py-lazy-string.c: Use C++ exception handling.
11984 * python/py-infthread.c: Use C++ exception handling.
11985 * python/py-inferior.c: Use C++ exception handling.
11986 * python/py-gdb-readline.c: Use C++ exception handling.
11987 * python/py-framefilter.c: Use C++ exception handling.
11988 * python/py-frame.c: Use C++ exception handling.
11989 * python/py-finishbreakpoint.c: Use C++ exception handling.
11990 * python/py-cmd.c: Use C++ exception handling.
11991 * python/py-breakpoint.c: Use C++ exception handling.
11992 * python/py-arch.c: Use C++ exception handling.
11993 * printcmd.c: Use C++ exception handling.
11994 * ppc-linux-tdep.c: Use C++ exception handling.
11995 * parse.c: Use C++ exception handling.
11996 * p-valprint.c: Use C++ exception handling.
11997 * objc-lang.c: Use C++ exception handling.
11998 * mi/mi-main.c: Use C++ exception handling.
11999 * mi/mi-interp.c: Use C++ exception handling.
12000 * mi/mi-cmd-stack.c: Use C++ exception handling.
12001 * mi/mi-cmd-break.c: Use C++ exception handling.
12002 * main.c: Use C++ exception handling.
12003 * linux-thread-db.c: Use C++ exception handling.
12004 * linux-tdep.c: Use C++ exception handling.
12005 * linux-nat.c: Use C++ exception handling.
12006 * linux-fork.c: Use C++ exception handling.
12007 * linespec.c: Use C++ exception handling.
12008 * language.c: Use C++ exception handling.
12009 * jit.c: Use C++ exception handling.
12010 * infrun.c: Use C++ exception handling.
12011 * infcmd.c: Use C++ exception handling.
12012 * infcall.c: Use C++ exception handling.
12013 * inf-loop.c: Use C++ exception handling.
12014 * i386-tdep.c: Use C++ exception handling.
12015 * i386-linux-tdep.c: Use C++ exception handling.
12016 * guile/scm-value.c: Use C++ exception handling.
12017 * guile/scm-type.c: Use C++ exception handling.
12018 * guile/scm-symtab.c: Use C++ exception handling.
12019 * guile/scm-symbol.c: Use C++ exception handling.
12020 * guile/scm-pretty-print.c: Use C++ exception handling.
12021 * guile/scm-ports.c: Use C++ exception handling.
12022 * guile/scm-param.c: Use C++ exception handling.
12023 * guile/scm-math.c: Use C++ exception handling.
12024 * guile/scm-lazy-string.c: Use C++ exception handling.
12025 * guile/scm-frame.c: Use C++ exception handling.
12026 * guile/scm-disasm.c: Use C++ exception handling.
12027 * guile/scm-cmd.c: Use C++ exception handling.
12028 * guile/scm-breakpoint.c: Use C++ exception handling.
12029 * guile/scm-block.c: Use C++ exception handling.
12030 * guile/guile-internal.h: Use C++ exception handling.
12031 * gnu-v3-abi.c: Use C++ exception handling.
12032 * gdbtypes.c: Use C++ exception handling.
12033 * frame.c: Use C++ exception handling.
12034 * frame-unwind.c: Use C++ exception handling.
12035 * fbsd-tdep.c: Use C++ exception handling.
12036 * f-valprint.c: Use C++ exception handling.
12037 * exec.c: Use C++ exception handling.
12038 * event-top.c: Use C++ exception handling.
12039 * event-loop.c: Use C++ exception handling.
12040 * eval.c: Use C++ exception handling.
12041 * dwarf2read.c: Use C++ exception handling.
12042 * dwarf2loc.c: Use C++ exception handling.
12043 * dwarf2-frame.c: Use C++ exception handling.
12044 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12045 * dwarf-index-write.c: Use C++ exception handling.
12046 * dwarf-index-cache.c: Use C++ exception handling.
12047 * dtrace-probe.c: Use C++ exception handling.
12048 * disasm-selftests.c: Use C++ exception handling.
12049 * darwin-nat.c: Use C++ exception handling.
12050 * cp-valprint.c: Use C++ exception handling.
12051 * cp-support.c: Use C++ exception handling.
12052 * cp-abi.c: Use C++ exception handling.
12053 * corelow.c: Use C++ exception handling.
12054 * completer.c: Use C++ exception handling.
12055 * compile/compile-object-run.c: Use C++ exception handling.
12056 * compile/compile-object-load.c: Use C++ exception handling.
12057 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12058 * compile/compile-c-symbols.c: Use C++ exception handling.
12059 * common/selftest.c: Use C++ exception handling.
12060 * common/new-op.c: Use C++ exception handling.
12061 * cli/cli-script.c: Use C++ exception handling.
12062 * cli/cli-interp.c: Use C++ exception handling.
12063 * cli/cli-cmds.c: Use C++ exception handling.
12064 * c-varobj.c: Use C++ exception handling.
12065 * btrace.c: Use C++ exception handling.
12066 * breakpoint.c: Use C++ exception handling.
12067 * break-catch-throw.c: Use C++ exception handling.
12068 * arch-utils.c: Use C++ exception handling.
12069 * amd64-tdep.c: Use C++ exception handling.
12070 * ada-valprint.c: Use C++ exception handling.
12071 * ada-typeprint.c: Use C++ exception handling.
12072 * ada-lang.c: Use C++ exception handling.
12073 * aarch64-tdep.c: Use C++ exception handling.
12075 2019-04-08 Tom Tromey <tom@tromey.com>
12077 * xml-support.c (gdb_xml_parser::parse): Update.
12078 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12079 * value.c (show_convenience): Update.
12080 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12081 (test_parse_flags_qcs): Update.
12082 * thread.c (thr_try_catch_cmd): Update.
12083 * target.c (target_translate_tls_address): Update.
12084 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12085 (info_frame_command_core, frame_apply_command_count): Update.
12086 * rust-exp.y (rust_lex_exception_test): Update.
12087 * riscv-tdep.c (riscv_print_one_register_info): Update.
12088 * remote.c (remote_target::enable_btrace): Update.
12089 * record-btrace.c (record_btrace_enable_warn): Update.
12090 * python/py-utils.c (gdbpy_convert_exception): Update.
12091 * printcmd.c (do_one_display, print_variable_and_value): Update.
12092 * mi/mi-main.c (mi_print_exception): Update.
12093 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12094 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12095 * linux-nat.c (linux_nat_target::attach): Update.
12096 * linux-fork.c (class scoped_switch_fork_info): Update.
12097 * infrun.c (displaced_step_prepare): Update.
12098 * infcall.c (call_function_by_hand_dummy): Update.
12099 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12100 * gnu-v3-abi.c (print_one_vtable): Update.
12101 * frame.c (get_prev_frame_always): Update.
12102 * f-valprint.c (info_common_command_for_block): Update.
12103 * exec.c (try_open_exec_file): Update.
12104 * exceptions.c (print_exception, exception_print)
12105 (exception_fprintf, exception_print_same): Update.
12106 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12107 * dwarf-index-cache.c (index_cache::store)
12108 (index_cache::lookup_gdb_index): Update.
12109 * darwin-nat.c (maybe_cache_shell): Update.
12110 * cp-valprint.c (cp_print_value_fields): Update.
12111 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12112 (gcc_cplus_symbol_address): Update.
12113 * compile/compile-c-symbols.c (gcc_convert_symbol)
12114 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12115 * common/selftest.c: Update.
12116 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12118 (exception_try_scope_entry, exception_try_scope_exit): Don't
12120 (struct exception_try_scope): Remove.
12121 (TRY): Don't use exception_try_scope.
12122 (struct gdb_exception): Add constructor, operator=.
12123 <what>: New method.
12124 (struct gdb_exception_RETURN_MASK_ALL)
12125 (struct gdb_exception_RETURN_MASK_ERROR)
12126 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12127 (struct gdb_quit_bad_alloc): Update.
12128 * common/common-exceptions.c (exception_none): Change
12130 (struct catcher) <state, exception>: Initialize inline.
12131 <prev>: Remove member.
12132 (current_catcher): Remove.
12133 (catchers): New global.
12134 (exceptions_state_mc_init): Simplify.
12135 (catcher_pop): Remove.
12136 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12137 (try_scope_depth, exception_try_scope_entry)
12138 (exception_try_scope_exit): Remove.
12139 (throw_exception_sjlj): Update.
12140 (exception_messages, exception_messages_size): Remove.
12141 (throw_it): Simplify.
12142 (gdb_exception_sliced_copy): Remove.
12143 (throw_exception_cxx): Update.
12144 * cli/cli-script.c (script_from_file): Update.
12145 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12147 * ada-valprint.c (ada_val_print): Update.
12148 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12149 (create_excep_cond_exprs): Update.
12151 2019-04-08 Tom Tromey <tom@tromey.com>
12153 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12154 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12155 (TRY, CATCH, END_CATCH): Remove some definitions.
12156 * common/common-exceptions.c: Don't use GDB_XCPT.
12157 (catcher_list_size): Remove.
12158 (throw_exception, throw_it): Simplify.
12160 2019-04-05 Tom Tromey <tom@tromey.com>
12162 Revert the header-sorting patch.
12163 * ft32-tdep.c: Revert.
12164 * frv-tdep.c: Revert.
12165 * frv-linux-tdep.c: Revert.
12167 * frame-unwind.c: Revert.
12168 * frame-base.c: Revert.
12169 * fork-child.c: Revert.
12170 * findvar.c: Revert.
12171 * findcmd.c: Revert.
12172 * filesystem.c: Revert.
12173 * filename-seen-cache.h: Revert.
12174 * filename-seen-cache.c: Revert.
12175 * fbsd-tdep.c: Revert.
12176 * fbsd-nat.h: Revert.
12177 * fbsd-nat.c: Revert.
12178 * f-valprint.c: Revert.
12179 * f-typeprint.c: Revert.
12180 * f-lang.c: Revert.
12181 * extension.h: Revert.
12182 * extension.c: Revert.
12183 * extension-priv.h: Revert.
12184 * expprint.c: Revert.
12187 * exceptions.c: Revert.
12188 * event-top.c: Revert.
12189 * event-loop.c: Revert.
12191 * elfread.c: Revert.
12192 * dwarf2read.h: Revert.
12193 * dwarf2read.c: Revert.
12194 * dwarf2loc.c: Revert.
12195 * dwarf2expr.h: Revert.
12196 * dwarf2expr.c: Revert.
12197 * dwarf2-frame.c: Revert.
12198 * dwarf2-frame-tailcall.c: Revert.
12199 * dwarf-index-write.h: Revert.
12200 * dwarf-index-write.c: Revert.
12201 * dwarf-index-common.c: Revert.
12202 * dwarf-index-cache.h: Revert.
12203 * dwarf-index-cache.c: Revert.
12204 * dummy-frame.c: Revert.
12205 * dtrace-probe.c: Revert.
12206 * disasm.h: Revert.
12207 * disasm.c: Revert.
12208 * disasm-selftests.c: Revert.
12209 * dictionary.c: Revert.
12210 * dicos-tdep.c: Revert.
12211 * demangle.c: Revert.
12212 * dcache.h: Revert.
12213 * dcache.c: Revert.
12214 * darwin-nat.h: Revert.
12215 * darwin-nat.c: Revert.
12216 * darwin-nat-info.c: Revert.
12217 * d-valprint.c: Revert.
12218 * d-namespace.c: Revert.
12219 * d-lang.c: Revert.
12221 * csky-tdep.c: Revert.
12222 * csky-linux-tdep.c: Revert.
12223 * cris-tdep.c: Revert.
12224 * cris-linux-tdep.c: Revert.
12225 * cp-valprint.c: Revert.
12226 * cp-support.c: Revert.
12227 * cp-namespace.c: Revert.
12228 * cp-abi.c: Revert.
12229 * corelow.c: Revert.
12230 * corefile.c: Revert.
12231 * continuations.c: Revert.
12232 * completer.h: Revert.
12233 * completer.c: Revert.
12234 * complaints.c: Revert.
12235 * coffread.c: Revert.
12236 * coff-pe-read.c: Revert.
12237 * cli-out.h: Revert.
12238 * cli-out.c: Revert.
12239 * charset.c: Revert.
12240 * c-varobj.c: Revert.
12241 * c-valprint.c: Revert.
12242 * c-typeprint.c: Revert.
12243 * c-lang.c: Revert.
12244 * buildsym.c: Revert.
12245 * buildsym-legacy.c: Revert.
12246 * build-id.h: Revert.
12247 * build-id.c: Revert.
12248 * btrace.c: Revert.
12249 * bsd-uthread.c: Revert.
12250 * breakpoint.h: Revert.
12251 * breakpoint.c: Revert.
12252 * break-catch-throw.c: Revert.
12253 * break-catch-syscall.c: Revert.
12254 * break-catch-sig.c: Revert.
12255 * blockframe.c: Revert.
12257 * bfin-tdep.c: Revert.
12258 * bfin-linux-tdep.c: Revert.
12259 * bfd-target.c: Revert.
12260 * bcache.c: Revert.
12261 * ax-general.c: Revert.
12262 * ax-gdb.h: Revert.
12263 * ax-gdb.c: Revert.
12264 * avr-tdep.c: Revert.
12266 * auto-load.c: Revert.
12267 * arm-wince-tdep.c: Revert.
12268 * arm-tdep.c: Revert.
12269 * arm-symbian-tdep.c: Revert.
12270 * arm-pikeos-tdep.c: Revert.
12271 * arm-obsd-tdep.c: Revert.
12272 * arm-nbsd-tdep.c: Revert.
12273 * arm-nbsd-nat.c: Revert.
12274 * arm-linux-tdep.c: Revert.
12275 * arm-linux-nat.c: Revert.
12276 * arm-fbsd-tdep.c: Revert.
12277 * arm-fbsd-nat.c: Revert.
12278 * arm-bsd-tdep.c: Revert.
12279 * arch-utils.c: Revert.
12280 * arc-tdep.c: Revert.
12281 * arc-newlib-tdep.c: Revert.
12282 * annotate.h: Revert.
12283 * annotate.c: Revert.
12284 * amd64-windows-tdep.c: Revert.
12285 * amd64-windows-nat.c: Revert.
12286 * amd64-tdep.c: Revert.
12287 * amd64-sol2-tdep.c: Revert.
12288 * amd64-obsd-tdep.c: Revert.
12289 * amd64-obsd-nat.c: Revert.
12290 * amd64-nbsd-tdep.c: Revert.
12291 * amd64-nbsd-nat.c: Revert.
12292 * amd64-nat.c: Revert.
12293 * amd64-linux-tdep.c: Revert.
12294 * amd64-linux-nat.c: Revert.
12295 * amd64-fbsd-tdep.c: Revert.
12296 * amd64-fbsd-nat.c: Revert.
12297 * amd64-dicos-tdep.c: Revert.
12298 * amd64-darwin-tdep.c: Revert.
12299 * amd64-bsd-nat.c: Revert.
12300 * alpha-tdep.c: Revert.
12301 * alpha-obsd-tdep.c: Revert.
12302 * alpha-nbsd-tdep.c: Revert.
12303 * alpha-mdebug-tdep.c: Revert.
12304 * alpha-linux-tdep.c: Revert.
12305 * alpha-linux-nat.c: Revert.
12306 * alpha-bsd-tdep.c: Revert.
12307 * alpha-bsd-nat.c: Revert.
12308 * aix-thread.c: Revert.
12310 * addrmap.c: Revert.
12311 * ada-varobj.c: Revert.
12312 * ada-valprint.c: Revert.
12313 * ada-typeprint.c: Revert.
12314 * ada-tasks.c: Revert.
12315 * ada-lang.c: Revert.
12316 * aarch64-tdep.c: Revert.
12317 * aarch64-ravenscar-thread.c: Revert.
12318 * aarch64-newlib-tdep.c: Revert.
12319 * aarch64-linux-tdep.c: Revert.
12320 * aarch64-linux-nat.c: Revert.
12321 * aarch64-fbsd-tdep.c: Revert.
12322 * aarch64-fbsd-nat.c: Revert.
12323 * aarch32-linux-nat.c: Revert.
12325 2019-04-05 Tom Tromey <tom@tromey.com>
12327 * ft32-tdep.c: Sort headers.
12328 * frv-tdep.c: Sort headers.
12329 * frv-linux-tdep.c: Sort headers.
12330 * frame.c: Sort headers.
12331 * frame-unwind.c: Sort headers.
12332 * frame-base.c: Sort headers.
12333 * fork-child.c: Sort headers.
12334 * findvar.c: Sort headers.
12335 * findcmd.c: Sort headers.
12336 * filesystem.c: Sort headers.
12337 * filename-seen-cache.h: Sort headers.
12338 * filename-seen-cache.c: Sort headers.
12339 * fbsd-tdep.c: Sort headers.
12340 * fbsd-nat.h: Sort headers.
12341 * fbsd-nat.c: Sort headers.
12342 * f-valprint.c: Sort headers.
12343 * f-typeprint.c: Sort headers.
12344 * f-lang.c: Sort headers.
12345 * extension.h: Sort headers.
12346 * extension.c: Sort headers.
12347 * extension-priv.h: Sort headers.
12348 * expprint.c: Sort headers.
12349 * exec.h: Sort headers.
12350 * exec.c: Sort headers.
12351 * exceptions.c: Sort headers.
12352 * event-top.c: Sort headers.
12353 * event-loop.c: Sort headers.
12354 * eval.c: Sort headers.
12355 * elfread.c: Sort headers.
12356 * dwarf2read.h: Sort headers.
12357 * dwarf2read.c: Sort headers.
12358 * dwarf2loc.c: Sort headers.
12359 * dwarf2expr.h: Sort headers.
12360 * dwarf2expr.c: Sort headers.
12361 * dwarf2-frame.c: Sort headers.
12362 * dwarf2-frame-tailcall.c: Sort headers.
12363 * dwarf-index-write.h: Sort headers.
12364 * dwarf-index-write.c: Sort headers.
12365 * dwarf-index-common.c: Sort headers.
12366 * dwarf-index-cache.h: Sort headers.
12367 * dwarf-index-cache.c: Sort headers.
12368 * dummy-frame.c: Sort headers.
12369 * dtrace-probe.c: Sort headers.
12370 * disasm.h: Sort headers.
12371 * disasm.c: Sort headers.
12372 * disasm-selftests.c: Sort headers.
12373 * dictionary.c: Sort headers.
12374 * dicos-tdep.c: Sort headers.
12375 * demangle.c: Sort headers.
12376 * dcache.h: Sort headers.
12377 * dcache.c: Sort headers.
12378 * darwin-nat.h: Sort headers.
12379 * darwin-nat.c: Sort headers.
12380 * darwin-nat-info.c: Sort headers.
12381 * d-valprint.c: Sort headers.
12382 * d-namespace.c: Sort headers.
12383 * d-lang.c: Sort headers.
12384 * ctf.c: Sort headers.
12385 * csky-tdep.c: Sort headers.
12386 * csky-linux-tdep.c: Sort headers.
12387 * cris-tdep.c: Sort headers.
12388 * cris-linux-tdep.c: Sort headers.
12389 * cp-valprint.c: Sort headers.
12390 * cp-support.c: Sort headers.
12391 * cp-namespace.c: Sort headers.
12392 * cp-abi.c: Sort headers.
12393 * corelow.c: Sort headers.
12394 * corefile.c: Sort headers.
12395 * continuations.c: Sort headers.
12396 * completer.h: Sort headers.
12397 * completer.c: Sort headers.
12398 * complaints.c: Sort headers.
12399 * coffread.c: Sort headers.
12400 * coff-pe-read.c: Sort headers.
12401 * cli-out.h: Sort headers.
12402 * cli-out.c: Sort headers.
12403 * charset.c: Sort headers.
12404 * c-varobj.c: Sort headers.
12405 * c-valprint.c: Sort headers.
12406 * c-typeprint.c: Sort headers.
12407 * c-lang.c: Sort headers.
12408 * buildsym.c: Sort headers.
12409 * buildsym-legacy.c: Sort headers.
12410 * build-id.h: Sort headers.
12411 * build-id.c: Sort headers.
12412 * btrace.c: Sort headers.
12413 * bsd-uthread.c: Sort headers.
12414 * breakpoint.h: Sort headers.
12415 * breakpoint.c: Sort headers.
12416 * break-catch-throw.c: Sort headers.
12417 * break-catch-syscall.c: Sort headers.
12418 * break-catch-sig.c: Sort headers.
12419 * blockframe.c: Sort headers.
12420 * block.c: Sort headers.
12421 * bfin-tdep.c: Sort headers.
12422 * bfin-linux-tdep.c: Sort headers.
12423 * bfd-target.c: Sort headers.
12424 * bcache.c: Sort headers.
12425 * ax-general.c: Sort headers.
12426 * ax-gdb.h: Sort headers.
12427 * ax-gdb.c: Sort headers.
12428 * avr-tdep.c: Sort headers.
12429 * auxv.c: Sort headers.
12430 * auto-load.c: Sort headers.
12431 * arm-wince-tdep.c: Sort headers.
12432 * arm-tdep.c: Sort headers.
12433 * arm-symbian-tdep.c: Sort headers.
12434 * arm-pikeos-tdep.c: Sort headers.
12435 * arm-obsd-tdep.c: Sort headers.
12436 * arm-nbsd-tdep.c: Sort headers.
12437 * arm-nbsd-nat.c: Sort headers.
12438 * arm-linux-tdep.c: Sort headers.
12439 * arm-linux-nat.c: Sort headers.
12440 * arm-fbsd-tdep.c: Sort headers.
12441 * arm-fbsd-nat.c: Sort headers.
12442 * arm-bsd-tdep.c: Sort headers.
12443 * arch-utils.c: Sort headers.
12444 * arc-tdep.c: Sort headers.
12445 * arc-newlib-tdep.c: Sort headers.
12446 * annotate.h: Sort headers.
12447 * annotate.c: Sort headers.
12448 * amd64-windows-tdep.c: Sort headers.
12449 * amd64-windows-nat.c: Sort headers.
12450 * amd64-tdep.c: Sort headers.
12451 * amd64-sol2-tdep.c: Sort headers.
12452 * amd64-obsd-tdep.c: Sort headers.
12453 * amd64-obsd-nat.c: Sort headers.
12454 * amd64-nbsd-tdep.c: Sort headers.
12455 * amd64-nbsd-nat.c: Sort headers.
12456 * amd64-nat.c: Sort headers.
12457 * amd64-linux-tdep.c: Sort headers.
12458 * amd64-linux-nat.c: Sort headers.
12459 * amd64-fbsd-tdep.c: Sort headers.
12460 * amd64-fbsd-nat.c: Sort headers.
12461 * amd64-dicos-tdep.c: Sort headers.
12462 * amd64-darwin-tdep.c: Sort headers.
12463 * amd64-bsd-nat.c: Sort headers.
12464 * alpha-tdep.c: Sort headers.
12465 * alpha-obsd-tdep.c: Sort headers.
12466 * alpha-nbsd-tdep.c: Sort headers.
12467 * alpha-mdebug-tdep.c: Sort headers.
12468 * alpha-linux-tdep.c: Sort headers.
12469 * alpha-linux-nat.c: Sort headers.
12470 * alpha-bsd-tdep.c: Sort headers.
12471 * alpha-bsd-nat.c: Sort headers.
12472 * aix-thread.c: Sort headers.
12473 * agent.c: Sort headers.
12474 * addrmap.c: Sort headers.
12475 * ada-varobj.c: Sort headers.
12476 * ada-valprint.c: Sort headers.
12477 * ada-typeprint.c: Sort headers.
12478 * ada-tasks.c: Sort headers.
12479 * ada-lang.c: Sort headers.
12480 * aarch64-tdep.c: Sort headers.
12481 * aarch64-ravenscar-thread.c: Sort headers.
12482 * aarch64-newlib-tdep.c: Sort headers.
12483 * aarch64-linux-tdep.c: Sort headers.
12484 * aarch64-linux-nat.c: Sort headers.
12485 * aarch64-fbsd-tdep.c: Sort headers.
12486 * aarch64-fbsd-nat.c: Sort headers.
12487 * aarch32-linux-nat.c: Sort headers.
12489 2019-04-04 Tom Tromey <tom@tromey.com>
12491 * varobj.c (varobj_create): Update.
12492 * rust-exp.y (struct rust_parser) <update_innermost_block,
12493 lookup_symbol>: New methods.
12494 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12496 (rust_parser::rust_lookup_type)
12497 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12498 * printcmd.c (display_command, do_one_display): Update.
12499 * parser-defs.h (struct parser_state) <parser_state>: Add
12500 "tracker" parameter.
12501 (block_tracker): New member.
12502 (class innermost_block_tracker) <innermost_block_tracker>: Add
12504 <reset>: Remove method.
12505 (innermost_block): Don't declare.
12506 (null_post_parser): Update.
12507 * parse.c (innermost_block): Remove global.
12508 (write_dollar_variable): Update.
12509 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12510 Remove "tracker_types" parameter.
12511 (parse_expression): Add "tracker" parameter.
12512 (parse_expression_for_completion): Update.
12513 (null_post_parser): Add "tracker" parameter.
12514 * p-exp.y: Update rules.
12515 * m2-exp.y: Update rules.
12516 * language.h (struct language_defn) <la_post_parser>: Add
12517 "tracker" parameter.
12518 * go-exp.y: Update rules.
12519 * f-exp.y: Update rules.
12520 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12522 * d-exp.y: Update rules.
12523 * c-exp.y: Update rules.
12524 * breakpoint.c (set_breakpoint_condition): Create an
12525 innermost_block_tracker.
12526 (watch_command_1): Likewise.
12527 * ada-lang.c (resolve): Add "tracker" parameter.
12528 (resolve_subexp): Likewise.
12529 * ada-exp.y (write_var_from_sym): Update.
12531 2019-04-04 Tom Tromey <tom@tromey.com>
12533 * type-stack.h: New file.
12534 * type-stack.c: New file.
12535 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12537 (insert_into_type_stack, insert_type, push_type, push_type_int)
12538 (insert_type_address_space, pop_type, pop_type_int)
12539 (pop_typelist, pop_type_stack, append_type_stack)
12540 (push_type_stack, get_type_stack, push_typelist)
12541 (follow_type_instance_flags, follow_types): Don't declare.
12542 * parse.c (type_stack): Remove global.
12543 (parse_exp_in_context): Update.
12544 (insert_into_type_stack, insert_type, push_type, push_type_int)
12545 (insert_type_address_space, pop_type, pop_type_int)
12546 (pop_typelist, pop_type_stack, append_type_stack)
12547 (push_type_stack, get_type_stack, push_typelist)
12548 (follow_type_instance_flags, follow_types): Remove (moved to
12550 * f-exp.y (type_stack): New global.
12552 (push_kind_type, f_parse): Update.
12553 * d-exp.y (type_stack): New global.
12556 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12558 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12559 (HFILES_NO_SRCDIR): Add type-stack.h.
12561 2019-04-04 Tom Tromey <tom@tromey.com>
12563 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12564 (rust_parser::convert_ast_to_expression, rust_parse)
12565 (rust_lex_test_completion, rust_lex_tests): Update.
12566 * parser-defs.h (struct expr_completion_state): New.
12567 (struct parser_state) <parser_state>: Add completion parameter.
12568 <mark_struct_expression, mark_completion_tag>: New methods.
12569 <parse_completion, m_completion_state>: New members.
12570 (prefixify_expression, null_post_parser): Update.
12571 (mark_struct_expression, mark_completion_tag): Don't declare.
12572 * parse.c (parse_completion, expout_last_struct)
12573 (expout_tag_completion_type, expout_completion_name): Remove
12575 (parser_state::mark_struct_expression)
12576 (parser_state::mark_completion_tag): Now methods.
12577 (prefixify_expression): Add last_struct parameter.
12578 (prefixify_subexp): Likewise.
12579 (parse_exp_1): Update.
12580 (parse_exp_in_context): Add cstate parameter. Update.
12581 (parse_expression_for_completion): Create an
12582 expr_completion_state.
12583 (null_post_parser): Add "completion" parameter.
12584 * p-exp.y: Update rules.
12586 * language.h (struct language_defn) <la_post_parser>: Add
12587 "completing" parameter.
12588 * go-exp.y: Update rules.
12589 (lex_one_token): Update.
12590 * expression.h (parse_completion): Don't declare.
12591 * d-exp.y: Update rules.
12592 (lex_one_token): Update rules.
12593 * c-exp.y: Update rules.
12594 (lex_one_token): Update.
12595 * ada-lang.c (resolve): Add "parse_completion" parameter.
12596 (resolve_subexp): Likewise.
12597 (ada_resolve_function): Likewise.
12599 2019-04-04 Tom Tromey <tom@tromey.com>
12601 * parser-defs.h (struct parser_state) <start_arglist,
12602 end_arglist>: New methods.
12603 <arglist_len, m_funcall_chain>: New members.
12604 (arglist_len, start_arglist, end_arglist): Don't declare.
12605 * parse.c (arglist_len, funcall_chain): Remove global.
12606 (start_arglist, end_arglist): Remove functions.
12607 (parse_exp_in_context): Update.
12608 * p-exp.y: Update rules.
12609 * m2-exp.y: Update rules.
12610 * go-exp.y: Update rules.
12611 * f-exp.y: Update rules.
12612 * d-exp.y: Update rules.
12613 * c-exp.y: Update rules.
12615 2019-04-04 Tom Tromey <tom@tromey.com>
12617 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12618 lex_operator, push_back>: New methods.
12620 (rust_parser::lex_hex, lex_escape): Rename and update.
12621 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12622 (rust_parser::lex_operator): Rename and update.
12623 (rust_parser::lex_number, rustyylex, rustyyerror)
12624 (rust_lex_test_init, rust_lex_test_sequence)
12625 (rust_lex_test_push_back, rust_lex_tests): Update.
12626 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12628 <lexptr, prev_lexptr>: New members.
12629 (lexptr, prev_lexptr): Don't declare.
12630 * parse.c (lexptr, prev_lexptr): Remove globals.
12631 (parse_exp_in_context): Update.
12632 * p-exp.y (yylex, yyerror): Update.
12633 * m2-exp.y (parse_number, yylex, yyerror): Update.
12634 * go-exp.y (lex_one_token, yyerror): Update.
12635 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12636 * d-exp.y (lex_one_token, yyerror): Update.
12637 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12638 (lex_one_token, yyerror): Update.
12639 * ada-lex.l (YY_INPUT): Update.
12640 (rewind_to_char): Update.
12641 * ada-exp.y (yyerror): Update.
12643 2019-04-04 Tom Tromey <tom@tromey.com>
12645 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12646 * parser-defs.h (struct parser_state) <parser_state>: Add new
12648 <comma_terminates>: New member.
12649 (comma_terminates): Don't declare global.
12650 * parse.c (comma_terminates): Remove global.
12651 (parse_exp_in_context): Update.
12652 * p-exp.y (yylex): Update.
12653 * m2-exp.y (yylex): Update.
12654 * go-exp.y (lex_one_token): Update.
12655 * f-exp.y (yylex): Update.
12656 * d-exp.y (lex_one_token): Update.
12657 * c-exp.y (lex_one_token): Update.
12658 * ada-lex.l: Update.
12660 2019-04-04 Tom Tromey <tom@tromey.com>
12662 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12663 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12664 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12665 * parser-defs.h (paren_depth): Don't declare.
12666 * parse.c (paren_depth): Remove global.
12667 (parse_exp_in_context): Update.
12668 * p-exp.y (paren_depth): New global.
12669 (pascal_parse): Initialize it.
12670 * m2-exp.y (paren_depth): New global.
12671 (m2_parse): Initialize it.
12672 * go-exp.y (paren_depth): New global.
12673 (go_parse): Initialize it.
12674 * f-exp.y (paren_depth): New global.
12675 (f_parse): Initialize it.
12676 * d-exp.y (paren_depth): New global.
12677 (d_parse): Initialize it.
12678 * c-exp.y (paren_depth): New global.
12679 (c_parse): Initialize it.
12680 * ada-lex.l (paren_depth): New global.
12681 (lexer_init): Initialize it.
12683 2019-04-04 Tom Tromey <tom@tromey.com>
12685 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12686 (rust_parser::convert_ast_to_type)
12687 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12688 * parser-defs.h (struct parser_state) <parser_state>: Add
12689 parameters. Initialize new members.
12690 <expression_context_block, expression_context_pc>: New members.
12691 * parse.c (expression_context_block, expression_context_pc):
12693 (parse_exp_in_context): Update.
12694 * p-exp.y: Update all rules.
12696 * m2-exp.y: Update all rules.
12698 * go-exp.y (yylex): Update.
12699 * f-exp.y (yylex): Update.
12700 * d-exp.y: Update all rules.
12702 * c-exp.y: Update all rules.
12703 (lex_one_token, classify_name, yylex, c_parse): Update.
12704 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12706 2019-04-04 Tom Tromey <tom@tromey.com>
12708 * gdbarch.h, gdbarch.c: Rebuild.
12709 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12711 (struct stap_parse_info): Replace "parser_state" with
12713 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12714 (parser_state): New class.
12715 * parse.c (expr_builder): Rename.
12716 (expr_builder::release): Rename.
12717 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12718 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12719 (write_exp_elt_longcst, write_exp_elt_floatcst)
12720 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12721 (write_exp_string_vector, write_exp_bitstring)
12722 (write_exp_msymbol, mark_struct_expression)
12723 (write_dollar_variable)
12724 (insert_type_address_space, increase_expout_size): Replace
12725 "parser_state" with "expr_builder".
12726 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12727 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12728 "parser_state" with "expr_builder".
12730 2019-04-04 Tom Tromey <tom@tromey.com>
12732 * rust-exp.y: Replace "parse_language" with method call.
12734 (yylex): Replace "parse_language" with method call.
12736 (yylex): Replace "parse_language" with method call.
12737 * go-exp.y (classify_name): Replace "parse_language" with method
12739 * f-exp.y (yylex): Replace "parse_language" with method call.
12740 * d-exp.y (lex_one_token): Replace "parse_language" with method
12743 (lex_one_token, classify_name, yylex): Replace "parse_language"
12745 * ada-exp.y (find_primitive_type, type_char)
12746 (type_system_address): Replace "parse_language" with method call.
12748 2019-04-04 Tom Tromey <tom@tromey.com>
12750 * rust-exp.y: Replace "parse_gdbarch" with method call.
12751 * parse.c (write_dollar_variable, insert_type_address_space):
12752 Replace "parse_gdbarch" with method call.
12753 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12755 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12757 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12758 "parse_gdbarch" with method call.
12759 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12761 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12762 "parse_gdbarch" with method call.
12763 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12764 "parse_gdbarch" with method call.
12765 * c-exp.y (parse_type, parse_number, classify_name): Replace
12766 "parse_gdbarch" with method call.
12767 * ada-lex.l: Replace "parse_gdbarch" with method call.
12768 * ada-exp.y (parse_type, find_primitive_type, type_char)
12769 (type_system_address): Replace "parse_gdbarch" with method call.
12771 2019-04-04 Tom Tromey <tom@tromey.com>
12773 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12774 * stap-probe.c (stap_parse_argument): Update.
12775 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12776 initial_size parameter.
12777 * rust-exp.y (rust_lex_tests): Update.
12778 * parse.c (parser_state): Update.
12779 (parse_exp_in_context): Update.
12780 * parser-defs.h (struct parser_state) <parser_state>: Remove
12781 "initial_size" parameter.
12783 2019-04-04 Tom Tromey <tom@tromey.com>
12785 * parser-defs.h (increase_expout_size): Don't declare.
12786 * parse.c (increase_expout_size): Now static.
12788 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12790 * gnu-nat.c (gnu_nat_target::wait): Fix
12791 target_waitstatus_to_string call.
12793 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12795 * eval.c (evaluate_subexp_standard): Handle internal functions
12796 during Fortran function call handling.
12798 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12800 * NEWS: Mention new internal functions.
12801 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12802 (read_base_type): Use dwarf2_init_complex_target_type.
12803 * value.c (creal_internal_fn): New function.
12804 (cimag_internal_fn): New function.
12805 (_initialize_values): Register new internal functions.
12807 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12809 * infrun.c (stop_all_threads): If debug_infrun, always
12810 trace the wait status after wait_one, using
12811 target_waitstatus_to_string and target_pid_to_str.
12812 (handle_inferior_event): Replace various trace of
12813 wait status kind by a single trace.
12814 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12815 wait status kind image by target_waitstatus_to_string.
12816 * target/waitstatus.c (target_waitstatus_to_string): Fix
12819 2019-04-01 Tom Tromey <tromey@adacore.com>
12822 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12824 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12825 Pedro Alves <palves@redhat.com>
12827 * top.c (quit_force): Call 'finalize_values'.
12828 * value.c (finalize_values): New function.
12829 * value.h (finalize_values): Declare.
12831 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12833 * NEWS: Announce $_gdb_major and $_gdb_minor.
12835 * top.c (init_gdb_version_vars): New function.
12836 (gdb_init): Call init_gdb_version_vars.
12838 2019-03-29 Tom Tromey <tromey@adacore.com>
12840 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12841 help text. Remove dead code.
12843 2019-03-29 Keith Seitz <keiths@redhat.com>
12845 From Siddhesh Poyarekar:
12846 * f-lang.h (f77_get_upperbound): Return LONGEST.
12847 (f77_get_lowerbound): Likewise.
12848 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12849 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12851 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12852 plongest to format print it.
12853 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12854 (f77_get_upperbound): Likewise.
12855 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12856 LOWER_BOUND to LONGEST.
12857 (f77_create_arrayprint_offset_tbl): Likewise.
12859 2019-03-29 Keith Seitz <keiths@redhat.com>
12861 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12862 %s/pulongest for TYPE_LENGTH instead of %d in format
12864 * ada-typerint.c (ada_print_type): Likewise.
12865 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12866 * compile/compile-c-support.c (generate_register_struct): Likewise.
12867 * gdbtypes.c (recursive_dump_type): Likewise.
12868 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12869 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12870 instead of %d in format strings.
12871 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12872 to std::min to ULONGEST.
12873 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12874 instead of %d in format strings.
12875 * tracepoint.c (info_scope_command): Likewise.
12876 * typeprint.c (print_offset_data::update)
12877 (print_offset_data::finish): Likewise.
12878 * xtensa-tdep.c (xtensa_store_return_value)
12879 (xtensa_push_dummy_call): Likewise.
12881 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12883 * windows-nat.c (display_selector): Fixed format specifications
12886 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12888 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12890 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12892 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12893 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12894 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12895 (nios2_linux_init_abi): Install it.
12897 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12899 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12901 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12903 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12905 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12906 Tom Tromey <tromey@adacore.com>
12908 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12910 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12912 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12913 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12914 method to compute the bounds of range types. Also print "[evaluated]"
12915 if the bounds' values come from a dynamic evaluation.
12917 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12919 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12920 whitespace when pretty printing is on.
12922 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12924 * ppc-linux-nat.c: Add include.
12926 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12928 * NEWS: Mention AArch64 Pointer Authentication.
12930 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12932 * arm-linux-nat.c: Add include.
12934 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12936 * source-cache.c (source_cache::get_source_lines): Re-read
12937 fullname after calling open_source_file.
12939 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12941 * NEWS: Mention TLS support for FreeBSD.
12943 2019-03-25 Tom Tromey <tromey@adacore.com>
12945 * minsyms.c (BUNCH_SIZE): Update comment.
12946 (~minimal_symbol_reader): Remove old comment.
12947 (compact_minimal_symbols): Update comment.
12948 (minimal_symbol_reader::install): Remove old comment. Update
12951 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12953 * s390-linux-nat.c: Add include.
12955 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12957 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12958 Call linux_get_hwcap.
12959 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12961 (aarch64_linux_get_hwcap): Remove function.
12962 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12964 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12966 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12967 * linux-tdep.c (linux_get_hwcap): Add function.
12968 (linux_get_hwcap2): Likewise.
12969 * linux-tdep.h (linux_get_hwcap): Add declaration.
12970 (linux_get_hwcap2): Likewise.
12971 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12972 (ppc_linux_get_hwcap2): Likewise.
12973 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12975 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12976 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12977 (ppc_linux_nat_target::read_description): Likewise.
12978 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12979 * s390-linux-nat.c: Likewise.
12980 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12982 2019-03-24 Tom Tromey <tom@tromey.com>
12984 * ada-lang.c (standard_lookup): Simplify initialization.
12985 (ada_lookup_symbol_nonlocal): Simplify return.
12986 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12987 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12988 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12989 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12991 * solib.c (solib_global_lookup): Simplify.
12992 * symtab.c (null_block_symbol): Remove.
12993 (symbol_cache_lookup): Simplify returns.
12994 (lookup_language_this): Simplify returns.
12995 (lookup_symbol_aux): Simplify return.
12996 (lookup_local_symbol): Simplify returns.
12997 (lookup_global_symbol_from_objfile): Simplify return.
12998 (lookup_symbol_in_objfile_symtabs)
12999 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13000 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13001 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13002 * cp-namespace.c (cp_lookup_bare_symbol)
13003 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13004 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13005 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13006 (cp_lookup_symbol_via_imports): Simplify initialization.
13007 (find_symbol_in_baseclass): Likewise.
13008 * symtab.h (null_block_symbol): Remove.
13009 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13010 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13011 (d_lookup_symbol_module): Likewise.
13012 (find_symbol_in_baseclass): Simplify initialization.
13014 2019-03-24 Tom Tromey <tom@tromey.com>
13016 * expression.h: Don't include symtab.h.
13017 (struct block): Forward declare.
13019 2019-03-24 Tom Tromey <tom@tromey.com>
13021 * c-exp.y (typebase): Remove casts.
13022 * gdbtypes.c (lookup_unsigned_typename, )
13023 (lookup_signed_typename): Remove cast.
13024 * eval.c (parse_to_comma_and_eval): Remove cast.
13025 * parse.c (write_dollar_variable): Remove cast.
13026 * block.h (struct block) <superblock>: Now const.
13027 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13028 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13029 (map_block): Make "block" const.
13030 * symfile.h (struct quick_symbol_functions)
13031 <map_matching_symbols>: Constify block argument to "callback".
13032 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13034 (find_pc_sect_compunit_symtab): Make "b" const.
13035 (find_symbol_at_address): Likewise.
13036 (search_symbols): Likewise.
13037 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13038 (dw2_debug_names_lookup_symbol): Likewise.
13039 (dw2_map_matching_symbols): Update.
13040 * p-valprint.c (pascal_val_print): Remove "block".
13041 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13042 (aux_add_nonlocal_symbols): Make "block" const.
13043 (resolve_subexp): Remove cast.
13044 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13046 (iterate_over_file_blocks): Likewise.
13047 * f-exp.y (%union) <bval>: Remove.
13048 * coffread.c (patch_opaque_types): Make "b" const.
13049 * spu-tdep.c (spu_catch_start): Make "block" const.
13050 * c-valprint.c (print_unpacked_pointer): Remove "block".
13051 * symmisc.c (dump_symtab_1): Make "b" const.
13052 (block_depth): Make "block" const.
13053 * d-exp.y (%union) <bval>: Remove.
13054 * cp-support.h (cp_lookup_rtti_type): Update.
13055 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13056 * psymtab.c (psym_lookup_symbol): Make "block" const.
13057 (maintenance_check_psymtabs): Make "b" const.
13058 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13059 (enumerate_locals, enumerate_args): Update.
13060 * python/py-symtab.c (stpy_global_block): Make "block" const.
13061 (stpy_static_block): Likewise.
13062 * inline-frame.c (block_starting_point_at): Make "new_block"
13064 * block.c (find_block_in_blockvector): Make return type const.
13065 (blockvector_for_pc_sect): Make "b" const.
13066 (find_block_in_blockvector): Make "b" const.
13068 2019-03-23 Tom Tromey <tom@tromey.com>
13070 * varobj.c (varobj_create): Update.
13071 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13072 * printcmd.c (display_command, do_one_display): Don't reset
13074 * parser-defs.h (enum innermost_block_tracker_type): Move to
13076 (innermost_block): Update comment.
13077 * parse.c (parse_exp_1): Add tracker_types parameter.
13078 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13079 tracker_types parameter. Reset innermost_block.
13080 (parse_exp_in_context): Remove.
13081 (parse_expression_for_completion): Update.
13082 * objfiles.c (~objfile): Don't reset expression_context_block or
13084 * expression.h (enum innermost_block_tracker_type): Move from
13086 (parse_exp_1): Add tracker_types parameter.
13087 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13088 reset innermost_block.
13090 2019-03-23 Tom Tromey <tom@tromey.com>
13092 * objfiles.h: Include bcache.h.
13094 2019-03-23 Tom Tromey <tom@tromey.com>
13096 * linespec.c (get_current_search_block): Use
13097 scoped_restore_current_language.
13098 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13100 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13101 Jiong Wang <jiong.wang@arm.com>
13103 * aarch64-linux-tdep.c
13104 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13106 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13108 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13109 Jiong Wang <jiong.wang@arm.com>
13111 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13113 (aarch64_analyze_prologue_test): Add PACIASP test.
13114 (aarch64_prologue_prev_register): Unmask PC value.
13116 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13117 Jiong Wang <jiong.wang@arm.com>
13119 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13120 (aarch64_dwarf2_prev_register): Unmask PC value.
13121 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13122 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13123 DW_CFA_AARCH64_negate_ra_state.
13124 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13126 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13127 Jiong Wang <jiong.wang@arm.com>
13129 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13131 (aarch64_pseudo_register_name): Likewise.
13132 (aarch64_pseudo_register_type): Likewise.
13133 (aarch64_pseudo_register_reggroup_p): Likewise.
13134 (aarch64_gdbarch_init): Add pauth registers.
13135 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13136 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13137 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13138 (struct gdbarch_tdep): Add regnum for ra_state.
13140 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13141 Jiong Wang <jiong.wang@arm.com>
13143 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13145 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13146 Jiong Wang <jiong.wang@arm.com>
13148 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13150 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13151 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13152 (aarch64_gdbarch_init): Add puth registers.
13153 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13154 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13155 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13157 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13158 Jiong Wang <jiong.wang@arm.com>
13160 * aarch64-linux-nat.c
13161 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13162 * aarch64-linux-tdep.c
13163 (aarch64_linux_core_read_description): Likewise.
13164 (aarch64_linux_get_hwcap): New function.
13165 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13166 (aarch64_linux_get_hwcap): New declaration.
13168 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13169 Jiong Wang <jiong.wang@arm.com>
13171 * aarch64-linux-nat.c
13172 (aarch64_linux_nat_target::read_description): Add pauth param.
13173 * aarch64-linux-tdep.c
13174 (aarch64_linux_core_read_description): Likewise.
13175 * aarch64-tdep.c (struct target_desc): Add in pauth.
13176 (aarch64_read_description): Add pauth param.
13177 (aarch64_gdbarch_init): Likewise.
13178 * aarch64-tdep.h (aarch64_read_description): Likewise.
13179 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13180 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13181 * features/Makefile: Add new files.
13182 * features/aarch64-pauth.c: New file.
13183 * features/aarch64-pauth.xml: New file.
13185 2019-03-20 Tom Tromey <tromey@adacore.com>
13187 * infrun.c (handle_inferior_event): Rename from
13188 handle_inferior_event_1. Create a scoped_value_mark.
13189 (handle_inferior_event): Remove.
13191 2019-03-19 Tom Tromey <tromey@adacore.com>
13193 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13194 * infrun.h (print_stop_event): Add "displays" parameter.
13195 * infrun.c (print_stop_event): Add "displays" parameter.
13197 2019-03-19 Pedro Alves <palves@redhat.com>
13199 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13200 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13201 to -1. Fix TABs vs spaces.
13202 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13203 * tui/tui-out.h (tui_ui_out) Add intro comments.
13204 <m_line, m_start_of_line>: In-class initialize, and add describing
13207 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13209 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13211 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13213 2019-03-18 Pedro Alves <palves@redhat.com>
13214 Eli Zaretskii <eliz@gnu.org>
13216 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13217 m_line and m_start_of_line.
13219 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13221 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13222 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13223 it returns a newline. This fixes a regression in TU mode, whereby
13224 the next line is output on the same screen line as the user input.
13226 2019-03-18 Tom Tromey <tromey@adacore.com>
13228 * minsyms.c (minimal_symbol_reader::install): Remove call to
13231 2019-03-18 Pedro Alves <palves@redhat.com>
13233 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13235 (apply_style): New, factored out from ...
13236 (apply_ansi_escape): ... this. Handle reverse video mode.
13237 (tui_set_reverse_mode): New function.
13238 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13239 * tui/tui-winsource.c (tui_show_source_line): Use
13240 tui_set_reverse_mode instead of setting A_STANDOUT.
13241 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13242 New setter methods.
13244 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13246 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13249 2019-03-18 Tom Tromey <tromey@adacore.com>
13251 * ada-lang.c (empty_array): Add "high" parameter.
13252 (ada_evaluate_subexp): Update.
13254 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13256 * unittests/string_view-selftests.c: Define
13257 _initialize_string_view_selftests unconditionally.
13259 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13262 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13264 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13267 * windows-nat.c (display_selector): Fix format specifiers.
13269 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13271 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13272 tui_refill_source_window instead of tui_refresh_win, to update the
13273 current execution line. This fixes redisplay of the current line
13274 when stepping through the code with "next" or "step".
13276 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13278 * source-cache.c (source_cache::get_source_lines): Call
13279 find_source_lines to initialize s->nlines. This fixes vertical
13280 scrolling of TUI source window when the DOWN arrow is pressed.
13282 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13284 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13285 linux-thread-db.c (_initialize_thread_db): Likewise.
13287 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13289 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13290 wclrtoeol in tui_show_source_line". This reverts changes made in
13291 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13293 2019-03-15 Tom Tromey <tom@tromey.com>
13295 * symtab.h (struct minimal_symbol): Derive from
13296 general_symbol_info.
13297 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13298 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13299 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13300 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13301 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13302 (MSYMBOL_SEARCH_NAME): Update.
13303 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13304 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13305 * minsyms.c (minimal_symbol_reader::record_full): Update.
13307 2019-03-15 Tom Tromey <tom@tromey.com>
13309 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13311 2019-03-15 Tom Tromey <tom@tromey.com>
13313 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13314 unique_xmalloc_ptr.
13315 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13317 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13318 (build_minimal_symbol_hash_tables)
13319 (minimal_symbol_reader::install): Update.
13321 2019-03-15 Tom Tromey <tom@tromey.com>
13323 * symtab.c (create_demangled_names_hash): Update.
13324 (symbol_set_names): Update.
13325 * objfiles.h (struct objfile_per_bfd_storage)
13326 <demangled_names_hash>: Now an htab_up.
13327 * objfiles.c (objfile_per_bfd_storage): Simplify.
13329 2019-03-15 Tom Tromey <tom@tromey.com>
13331 * objfiles.h (struct objfile_per_bfd_storage): Declare
13333 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13335 (get_objfile_bfd_data): Use new. Don't initialize
13337 (free_objfile_per_bfd_storage): Remove.
13338 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13340 2019-03-15 Tom Tromey <tom@tromey.com>
13342 * symfile.c (reread_symbols): Update.
13343 * objfiles.c (objfile::objfile): Update.
13344 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13345 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13347 (minimal_symbol_reader::install): Update.
13348 (terminate_minimal_symbol_table): Remove.
13349 * jit.c (jit_object_close_impl): Update.
13351 2019-03-15 Tom Tromey <tom@tromey.com>
13353 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13356 2019-03-15 Tom Tromey <tom@tromey.com>
13358 * objfiles.h (struct objfile_per_bfd_storage)
13359 <demangled_hash_languages>: Now a bitset.
13360 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13361 (lookup_minimal_symbol): Update.
13363 2019-03-15 Tom Tromey <tom@tromey.com>
13365 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13366 Don't return the symbol.
13367 * coffread.c (record_minimal_symbol): Use record_full.
13369 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13371 The MS-Windows port of ncurses fails to switch to a color pair if
13372 one or both of the colors are the implicit default colors. This
13373 change records the default colors when TUI is initialized, and
13374 then specifies them explicitly when a color pair uses the default
13375 colors. This allows color styling in TUI mode on MS-Windows.
13377 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13379 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13380 colors in ncurses_norm_attr.
13381 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13382 "none", replace it with the default color recorded in
13385 2019-03-14 Tom Tromey <tromey@adacore.com>
13387 * source-cache.h (class source_cache) <get_source_lines>: Return
13389 * source-cache.c (source_cache::extract_lines): Handle case where
13390 first_pos==npos. Return std::string.
13391 (source_cache::get_source_lines): Update.
13393 2019-03-14 Tom Tromey <tromey@adacore.com>
13395 * NEWS: Add item for "style sources" commands.
13396 * source-cache.c (source_cache::get_source_lines): Check
13398 * cli/cli-style.c (source_styling): New global.
13399 (_initialize_cli_style): Add "style sources" commands.
13400 (show_style_sources): New function.
13401 * cli/cli-style.h (source_styling): Declare.
13403 2019-03-14 Pedro Alves <palves@redhat.com>
13404 Tom Tromey <tromey@adacore.com>
13406 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13407 * tui/tui-winsource.c (tui_refill_source_window): New function,
13409 (tui_horizontal_source_scroll): ... here. Move some logic.
13410 * cli/cli-style.c (set_style_enabled): Notify new observable.
13411 * tui/tui-hooks.c (tui_redisplay_source): New function.
13412 (tui_attach_detach_observers): Attach or detach
13413 tui_redisplay_source.
13414 * observable.h (source_styling_changed): New observable.
13415 * observable.c: Define source_styling_changed observable.
13417 2019-03-13 Tom Tromey <tromey@adacore.com>
13419 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13420 (i386_gnu_nat_target::store_registers): Update.
13421 * target-debug.h (target_debug_print_std_string): New macro.
13422 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13423 * windows-tdep.c (display_one_tib): Update.
13424 * tui/tui-stack.c (tui_make_status_line): Update.
13425 * top.c (print_inferior_quit_action): Update.
13426 * thread.c (thr_try_catch_cmd): Update.
13427 (add_thread_with_info): Update.
13428 (thread_target_id_str): Update.
13429 (thr_try_catch_cmd): Update.
13430 (thread_command): Update.
13431 (thread_find_command): Update.
13432 * record-btrace.c (record_btrace_target::info_record)
13433 (record_btrace_resume_thread, record_btrace_target::resume)
13434 (record_btrace_cancel_resume, record_btrace_step_thread)
13435 (record_btrace_target::wait, record_btrace_target::wait)
13436 (record_btrace_target::wait, record_btrace_target::stop): Update.
13437 * progspace.c (print_program_space): Update.
13438 * process-stratum-target.c
13439 (process_stratum_target::thread_address_space): Update.
13440 * linux-fork.c (linux_fork_mourn_inferior)
13441 (detach_checkpoint_command, info_checkpoints_command)
13442 (linux_fork_context): Update.
13443 (linux_fork_detach): Update.
13444 (class scoped_switch_fork_info): Update.
13445 (delete_checkpoint_command): Update.
13446 * infrun.c (follow_fork_inferior): Update.
13447 (follow_fork_inferior): Update.
13448 (proceed_after_vfork_done): Update.
13449 (handle_vfork_child_exec_or_exit): Update.
13450 (follow_exec): Update.
13451 (displaced_step_prepare_throw): Update.
13452 (displaced_step_restore): Update.
13453 (start_step_over): Update.
13454 (resume_1): Update.
13455 (clear_proceed_status_thread): Update.
13457 (print_target_wait_results): Update.
13458 (do_target_wait): Update.
13459 (context_switch): Update.
13460 (stop_all_threads): Update.
13461 (restart_threads): Update.
13462 (finish_step_over): Update.
13463 (handle_signal_stop): Update.
13464 (switch_back_to_stepped_thread): Update.
13465 (keep_going_pass_signal): Update.
13466 (print_exited_reason): Update.
13467 (normal_stop): Update.
13468 * inferior.c (inferior_pid_to_str): Change return type.
13469 (print_selected_inferior): Update.
13470 (add_inferior): Update.
13471 (detach_inferior): Update.
13472 * dummy-frame.c (fprint_dummy_frames): Update.
13473 * dcache.c (dcache_info_1): Update.
13474 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13475 (btrace_fetch, btrace_clear): Update.
13476 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13477 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13479 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13480 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13481 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13482 * gdbarch.c, gdbarch.h: Rebuild.
13483 * gdbarch.sh (core_pid_to_str): Change return type.
13484 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13486 (windows_nat_target::pid_to_str): Change return type.
13487 (windows_delete_thread): Update.
13488 (windows_nat_target::attach): Update.
13489 (windows_nat_target::files_info): Update.
13490 * target-delegates.c: Rebuild.
13491 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13493 (sol_thread_target::pid_to_str): Change return type.
13494 * remote.c (class remote_target) <pid_to_str>: Change return
13496 (remote_target::pid_to_str): Change return type.
13497 (extended_remote_target::attach, remote_target::remote_stop_ns)
13498 (remote_target::remote_notif_remove_queued_reply)
13499 (remote_target::push_stop_reply, remote_target::disable_btrace):
13501 (extended_remote_target::attach): Update.
13502 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13504 (gdbsim_target::pid_to_str): Change return type.
13505 * ravenscar-thread.c (struct ravenscar_thread_target)
13506 <pid_to_str>: Change return type.
13507 (ravenscar_thread_target::pid_to_str): Change return type.
13508 * procfs.c (class procfs_target) <pid_to_str>: Change return
13510 (procfs_target::pid_to_str): Change return type.
13511 (procfs_target::attach): Update.
13512 (procfs_target::detach): Update.
13513 (procfs_target::fetch_registers): Update.
13514 (procfs_target::store_registers): Update.
13515 (procfs_target::wait): Update.
13516 (procfs_target::files_info): Update.
13517 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13518 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13520 (nto_procfs_target::pid_to_str): Change return type.
13521 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13522 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13524 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13525 (exit_lwp): Update.
13526 (attach_proc_task_lwp_callback, get_detach_signal)
13527 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13528 (linux_nat_target::resume, wait_lwp, stop_callback)
13529 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13530 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13531 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13532 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13533 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13535 (inf_ptrace_target::attach): Update.
13536 (inf_ptrace_target::files_info): Update.
13537 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13539 (go32_nat_target::pid_to_str): Change return type.
13540 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13541 (gnu_nat_target::wait): Update.
13542 (gnu_nat_target::wait): Update.
13543 (gnu_nat_target::resume): Update.
13544 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13545 (fbsd_nat_target::wait): Update.
13546 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13548 (darwin_nat_target::attach): Update.
13549 * corelow.c (class core_target) <pid_to_str>: Change return type.
13550 (core_target::pid_to_str): Change return type.
13551 * target.c (normal_pid_to_str): Change return type.
13552 (default_pid_to_str): Likewise.
13553 (target_pid_to_str): Change return type.
13554 (target_translate_tls_address): Update.
13555 (target_announce_detach): Update.
13556 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13558 (bsd_uthread_target::pid_to_str): Change return type.
13559 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13561 (bsd_kvm_target::pid_to_str): Change return type.
13562 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13564 (aix_thread_target::pid_to_str): Change return type.
13565 * target.h (struct target_ops) <pid_to_str>: Change return type.
13566 (target_pid_to_str, normal_pid_to_str): Likewise.
13567 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13569 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13571 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13573 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13575 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13577 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13580 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13582 * NEWS: Mention that the new default MI version is 3. Mention
13583 changes to the output of commands and events that deal with
13584 multi-location breakpoints.
13585 * breakpoint.c: Include "mi/mi-out.h".
13586 (print_one_breakpoint): Change output syntax if using MI version
13588 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13590 (mi_multi_location_breakpoint_output_fixed): New.
13591 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13592 (mi_cmd_fix_multi_location_breakpoint_output): New.
13593 (mi_multi_location_breakpoint_output_fixed): New.
13594 * mi/mi-cmds.c (mi_cmds): Register command
13595 -fix-multi-location-breakpoint-output.
13596 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13599 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13601 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13602 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13603 instantiate mi_ui_out based on interpreter name.
13604 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13605 * mi/mi-main.c (mi_load_progress): Likewise.
13607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13609 * NEWS: Combine separate "New targets" sections for 8.3.
13611 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13613 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13614 (ppcfbsd_init_abi): Install gdbarch
13615 "fetch_tls_load_module_address" and "get_thread_local_address"
13618 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13620 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13621 (riscv_fbsd_init_abi): Install gdbarch
13622 "fetch_tls_load_module_address" and "get_thread_local_address"
13625 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13627 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13628 (i386fbsd_init_abi): Install gdbarch
13629 "fetch_tls_load_module_address" and "get_thread_local_address"
13632 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13634 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13635 (amd64fbsd_init_abi): Install gdbarch
13636 "fetch_tls_load_module_address" and "get_thread_local_address"
13639 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13641 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13642 (struct fbsd_pspace_data): New type.
13643 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13644 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13645 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13646 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13647 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13649 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13651 * gdbtypes.c (lookup_struct_elt): New function.
13652 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13653 * gdbtypes.h (struct struct_elt): New type.
13654 (lookup_struct_elt): New prototype.
13656 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13658 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13659 remove disabled code block.
13661 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13663 * gdbarch.sh (get_thread_local_address): New method.
13664 * gdbarch.h, gdbarch.c: Regenerate.
13665 * target.c (target_translate_tls_address): Use
13666 gdbarch_get_thread_local_address if present instead of
13667 target::get_thread_local_address.
13669 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13671 * target.h (target::get_thread_local_address): Update comment.
13673 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13675 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13676 objfile->separate_debug_objfile_backlink if not NULL.
13678 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13680 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13681 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13682 (amd64bsd_store_inferior_registers): Likewise.
13683 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13684 Enable segment base registers.
13685 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13686 PT_GETFSBASE and PT_GETGSBASE.
13687 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13689 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13690 segment base registers.
13691 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13693 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13695 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13696 Update calls to i386_target_description to add 'segments'
13698 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13699 add segment base registers.
13700 * arch/i386.c (i386_create_target_description): Add 'segments'
13701 parameter to enable segment base registers.
13702 * arch/i386.h (i386_create_target_description): Likewise.
13703 * features/i386/32bit-segments.xml: New file.
13704 * features/i386/32bit-segments.c: Generate.
13705 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13706 call to i386_target_description to add 'segments' parameter.
13707 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13708 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13709 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13710 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13711 if feature is present.
13712 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13713 Add 'segments' parameter to call to i386_target_description.
13714 (i386_target_description): Add 'segments' parameter to enable
13715 segment base registers.
13716 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13717 to call to i386_target_description.
13718 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13719 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13720 Define I386_NUM_REGS.
13721 (i386_target_description): Add 'segments' parameter to enable
13722 segment base registers.
13724 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13727 * source-cache.c: #undef open and close, to avoid unresolved
13728 externals during linking.
13730 2019-03-12 Tom Tromey <tromey@adacore.com>
13732 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13733 const. Add initializers.
13734 (_initialize_remote): Don't initialize ptid globals.
13736 2019-03-12 Pedro Alves <palves@redhat.com>
13738 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13740 2019-03-12 Pedro Alves <palves@redhat.com>
13742 * cp-name-parser.y (main): Remove unused 'len' variable.
13744 2019-03-12 Tom Tromey <tromey@adacore.com>
13746 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13747 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13749 2019-03-12 Tom Tromey <tromey@adacore.com>
13751 * linux-nat.c (iterate_over_lwps): Update.
13752 (stop_callback): Remove parameter.
13753 (stop_wait_callback, detach_callback, resume_set_callback)
13754 (select_singlestep_lwp_callback, set_ignore_sigint)
13755 (status_callback, resumed_callback, resume_clear_callback)
13756 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13758 (linux_nat_target::detach, linux_nat_target::resume)
13759 (linux_stop_and_wait_all_lwps, select_event_lwp)
13760 (linux_nat_filter_event, linux_nat_wait_1)
13761 (linux_nat_target::kill, linux_nat_target::stop)
13762 (linux_nat_target::stop): Update.
13763 (linux_nat_resume_callback): Change type.
13764 (resume_stopped_resumed_lwps, count_events_callback)
13765 (select_event_lwp_callback): Likewise.
13766 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13767 * arm-linux-nat.c (struct update_registers_data): Remove.
13768 (update_registers_callback): Change type.
13769 (arm_linux_insert_hw_breakpoint1): Update.
13770 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13772 (x86_linux_dr_set_addr): Update.
13773 (x86_linux_dr_set_control): Update.
13774 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13775 (iterate_over_lwps): Use gdb::function_view.
13776 * nat/aarch64-linux-hw-point.c (struct
13777 aarch64_dr_update_callback_param): Remove.
13778 (debug_reg_change_callback): Change type.
13779 (aarch64_notify_debug_reg_change): Update.
13780 * s390-linux-nat.c (s390_refresh_per_info): Update.
13782 2019-03-11 Tom Tromey <tromey@adacore.com>
13784 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13785 redundant assignment to "this_cu".
13787 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13789 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13793 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13795 (rank_one_type): ... this.
13797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13799 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13801 (rank_one_type): ... this.
13803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13805 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13807 (rank_one_type): ... this.
13809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13811 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13813 (rank_one_type): ... this.
13815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13817 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13819 (rank_one_type): ... this.
13821 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13823 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13825 (rank_one_type): ... this.
13827 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13829 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13831 (rank_one_type): ... this.
13833 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13835 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13837 (rank_one_type): ... this.
13839 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13841 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13843 (rank_one_type): ... this.
13845 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13847 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13849 (rank_one_type): ... this.
13851 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13853 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13855 (rank_one_type): ... this.
13857 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13859 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13861 (rank_one_type): ... this.
13863 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13865 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13866 inferior-events' shows the example events.
13868 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13870 Support styling on native MS-Windows console
13873 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13874 on MS-Windows if $TERM is not defined.
13876 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13878 * posix-hdep.c (gdb_console_fputs):
13879 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13881 * ui-file.h (gdb_console_fputs): Add prototype.
13883 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13884 back to fputs only if the former returns zero.
13886 2019-03-07 Tom Tromey <tom@tromey.com>
13888 * symmisc.c (print_symbol_bcache_statistics): Update.
13889 (print_objfile_statistics): Update.
13890 * symfile.c (allocate_symtab): Update.
13891 * stabsread.c: Don't include bcache.h.
13892 * psymtab.h (struct psymbol_bcache): Don't declare.
13893 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13894 (psymbol_bcache_init, psymbol_bcache_free)
13895 (psymbol_bcache_get_bcache): Don't declare.
13896 * psymtab.c (struct psymbol_bcache): Remove.
13897 (psymtab_storage::psymtab_storage): Update.
13898 (psymtab_storage::~psymtab_storage): Update.
13899 (psymbol_bcache_init, psymbol_bcache_free)
13900 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13901 (add_psymbol_to_bcache): Update.
13902 (allocate_psymtab): Update.
13903 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13904 macro_cache>: No longer pointers.
13905 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13906 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13907 * macrotab.c (macro_bcache): Update.
13908 * macroexp.c: Don't include bcache.h.
13909 * gdbtypes.c (check_types_worklist): Update.
13910 (types_deeply_equal): Remove TRY/CATCH. Update.
13911 * elfread.c (elf_symtab_read): Update.
13912 * dwarf2read.c: Don't include bcache.h.
13913 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13914 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13915 (print_bcache_statistics, bcache_memory_used): Don't declare.
13916 (struct bcache): Move from bcache.c. Add constructor, destructor,
13917 methods. Rename all data members.
13918 * bcache.c (struct bcache): Move to bcache.h.
13919 (bcache::expand_hash_table): Rename from expand_hash_table.
13921 (bcache::insert): Rename from bcache_full.
13922 (bcache::compare): Rename from bcache_compare.
13923 (bcache_xmalloc): Remove.
13924 (bcache::~bcache): Rename from bcache_xfree.
13925 (bcache::print_statistics): Rename from print_bcache_statistics.
13926 (bcache::memory_used): Rename from bcache_memory_used.
13928 2019-03-07 Pedro Alves <palves@redhat.com>
13930 * infrun.c (normal_stop): Also check for
13931 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13933 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13935 * f-lang.c (value_from_host_double): Moved to...
13936 * value.c (value_from_host_double): ...here.
13937 * value.h (value_from_host_double): Declare.
13938 * guile/scm-math.c (vlscm_convert_typed_number): Use
13939 value_from_host_double.
13940 (vlscm_convert_number): Likewise.
13941 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13942 * python/py-value.c (convert_value_from_python): Likewise.
13944 2019-03-06 Tom Tromey <tom@tromey.com>
13946 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13948 2019-03-06 Tom Tromey <tom@tromey.com>
13950 * utils.h (free_current_contents): Don't declare.
13951 * utils.c (free_current_contents): Remove.
13953 2019-03-06 Tom Tromey <tom@tromey.com>
13955 * top.c (quit_force): Update.
13956 * main.c (captured_command_loop): Update.
13957 * common/new-op.c (operator new): Update.
13958 * common/common-exceptions.c (struct catcher)
13959 <save_cleanup_chain>: Remove member.
13960 (exceptions_state_mc_init): Update.
13961 (exception_try_scope_entry): Return nullptr.
13962 (exception_try_scope_exit, exception_rethrow)
13963 (throw_exception_sjlj, throw_exception_cxx): Update.
13964 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13965 (all_cleanups, do_cleanups, discard_cleanups)
13966 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13967 (restore_cleanups, restore_final_cleanups): Don't declare.
13968 (do_final_cleanups): Remove parameter.
13969 * common/cleanups.c (cleanup_chain, make_cleanup)
13970 (make_cleanup_dtor, all_cleanups, do_cleanups)
13971 (discard_my_cleanups, discard_cleanups)
13972 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13973 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13974 (null_cleanup): Remove.
13975 (do_final_cleanups): Remove parameter.
13977 2019-03-06 Tom Tromey <tom@tromey.com>
13979 * remote.c (remote_target::remote_parse_stop_reply): Use
13980 unique_xmalloc_ptr.
13982 2019-03-06 Tom Tromey <tom@tromey.com>
13984 * stabsread.c (struct stabs_field_info): Rename from field_info.
13985 <list, fnlist>: Add initializers.
13986 <obstack>: New member.
13987 (read_member_functions, read_struct_fields, read_baseclasses):
13988 Allocate on obstack. Don't use cleanups.
13989 (read_one_struct_field, read_member_functions, read_struct_fields)
13990 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13991 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13992 (read_struct_type): Update.
13994 2019-03-06 Tom Tromey <tom@tromey.com>
13996 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13997 * common/filestuff.h (make_cleanup_close): Don't declare.
13998 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14001 2019-03-06 Tom Tromey <tom@tromey.com>
14003 * solib-aix.c: Use make_scope_exit.
14005 2019-03-06 Tom Tromey <tom@tromey.com>
14007 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14008 Use make_scope_exit.
14010 2019-03-06 Tom Tromey <tom@tromey.com>
14012 * solib-svr4.c (disable_probes_interface): Remove parameter.
14013 (svr4_handle_solib_event): Use make_scope_exit.
14015 2019-03-06 Tom Tromey <tom@tromey.com>
14017 * remote.c (struct stop_reply_deleter): Remove.
14018 (stop_reply_up): Update.
14019 (struct stop_reply): Derive from notif_event. Don't typedef.
14020 <regcache>: Now a std::vector.
14021 (stop_reply_xfree): Remove.
14022 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14023 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14024 (remote_target::discard_pending_stop_replies): Use delete.
14025 (remote_target::remote_parse_stop_reply): Update.
14026 (remote_target::process_stop_reply): Update.
14027 * remote-notif.h (struct notif_event): Add virtual destructor.
14028 Remove "dtr" member.
14029 (struct notif_client) <alloc_event>: Return a unique_ptr.
14030 (notif_event_xfree): Don't declare.
14031 (notif_event_up): New typedef.
14032 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14033 (notif_event_xfree, do_notif_event_xfree): Remove.
14034 (remote_notif_state_xfree): Update.
14036 2019-03-06 Tom Tromey <tom@tromey.com>
14038 * infrun.c (displaced_step_clear_cleanup): Now a
14039 forward_scope_exit type.
14040 (displaced_step_prepare_throw): Update.
14041 (displaced_step_fixup): Update.
14043 2019-03-06 Tom Tromey <tom@tromey.com>
14045 * inferior.h (class inferior): Update comment.
14046 * gdbthread.h (class thread_info): Update comment.
14048 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14049 Tom Tromey <tom@tromey.com>
14051 * stabsread.h (struct stab_section_list): Remove.
14052 (coffstab_build_psymtabs): Update.
14053 * dbxread.c (symbuf_sections): Now a std::vector.
14054 (sect_idx): New global.
14055 (fill_symbuf): Update.
14056 (coffstab_build_psymtabs): Change type of stabsects parameter.
14058 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14060 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14061 (coff_locate_sections): Update.
14062 (coff_symfile_read): Remove cleanups. Update.
14063 (init_stringtab): Add storage parameter.
14064 (free_stringtab, free_stringtab_cleanup): Remove.
14065 (init_lineno): Add storage parameter.
14066 (free_linetab, free_linetab_cleanup): Remove.
14068 2019-03-06 Pedro Alves <palves@redhat.com>
14070 * linux-fork.c (fork_info::clobber_regs): Delete.
14071 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14072 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14074 (scoped_switch_fork_info::scoped_switch_fork_info)
14075 (checkpoint_command, linux_fork_context): Adjust
14076 fork_save_infrun_state calls.
14078 2019-03-06 Pedro Alves <palves@redhat.com>
14080 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14081 (inf_has_multiple_threads): Return 'bool' and rewrite using
14082 inferior_info::threads().
14084 2019-03-06 Pedro Alves <palves@redhat.com>
14086 * linux-fork.c: Include <list>.
14087 (fork_list): Now a std::list instance.
14088 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14089 (forks_exist_p, find_last_fork): Adjust.
14090 (new_fork): Delete.
14092 (add_fork): Adjust.
14093 (free_fork): Delete, folded into fork_info::~fork_info().
14094 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14096 (init_fork_list): Delete.
14097 (linux_fork_killall, linux_fork_mourn_inferior)
14098 (linux_fork_detach, info_checkpoints_command): Adjust.
14099 (_initialize_linux_fork): No longer call init_fork_list.
14101 2019-03-06 Pedro Alves <palves@redhat.com>
14103 * linux-fork.c (new_fork): New, split out of ...
14104 (add_fork): ... this. Return void. Move "first fork" special
14105 case from here, to ...
14106 (checkpoint_command): ... here.
14107 * linux-linux.h (add_fork): Return void.
14109 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14111 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14113 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14114 Chris January <chris.january@arm.com>
14115 David Lecomber <david.lecomber@arm.com>
14117 * f-exp.y: New token, UNOP_INTRINSIC.
14118 (exp): New pattern using UNOP_INTRINSIC token.
14119 (f77_keywords): Add 'abs' keyword.
14120 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14121 (value_from_host_double): New function.
14122 (evaluate_subexp_f): Support UNOP_ABS.
14124 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14126 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14129 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14131 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14132 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14133 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14135 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14137 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14139 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14140 Chris January <chris.january@arm.com>
14142 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14143 * f-exp.y: Define 'KIND' token.
14144 (exp): New pattern for KIND expressions.
14145 (ptype): Handle types with a kind extension.
14146 (direct_abs_decl): Extend to spot kind extensions.
14147 (f77_keywords): Add 'kind' to the list.
14148 (push_kind_type): New function.
14149 (convert_to_kind_type): New function.
14150 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14151 * parse.c (operator_length_standard): Likewise.
14152 * parser-defs.h (enum type_pieces): Add tp_kind.
14153 * std-operator.def: Add UNOP_KIND.
14155 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14157 * f-exp.y (f_parse): Set yydebug.
14159 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14161 * f-lang.c (evaluate_subexp_f): New function.
14162 (exp_descriptor_f): New global.
14163 (f_language_defn): Use exp_descriptor_f instead of
14164 exp_descriptor_standard.
14166 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14168 * f-exp.y (struct token): Add comments.
14169 (dot_ops): Remove uppercase versions and the end marker.
14170 (f77_keywords): Likewise.
14171 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14172 entries in the dot_ops array are case insensitive, and use
14173 strncasecmp to compare strings. Also some whitespace cleanup in
14174 this area. Similar for the f77_keywords array, except entries in
14175 this list might be case sensitive.
14177 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14179 * f-exp.y (struct f77_boolean_val): Add comments.
14180 (boolean_values): Remove uppercase versions, and end marker.
14181 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14182 and use strncasecmp to achieve case insensitivity. Additionally,
14183 perform whitespace cleanup around this code.
14185 2019-03-06 Tom Tromey <tromey@adacore.com>
14187 * remote-sim.c (gdbsim_target_open): Use result of
14190 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14191 Dirk Schubert <dirk.schubert@arm.com>
14192 Chris January <chris.january@arm.com>
14194 * eval.c (evaluate_subexp_standard): Call Fortran argument
14196 * f-lang.c (struct value): A value which can be passed into a
14197 Fortran function call.
14198 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14200 (struct type): Value ready for a Fortran function call.
14201 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14203 * f-lang.h (fortran_argument_convert): Declaration.
14204 (fortran_preserve_arg_pointer): Declaration.
14205 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14207 2019-03-05 Tom Tromey <tromey@adacore.com>
14209 * python/py-prettyprint.c (print_string_repr): Remove #if.
14210 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14212 2019-03-05 Tom Tromey <tromey@adacore.com>
14214 * target.c (the_dummy_target): Move later. Change type to
14216 (initialize_targets): Don't initialize the_dummy_target.
14218 2019-03-05 Tom Tromey <tromey@adacore.com>
14220 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14221 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14223 2019-03-05 Tom Tromey <tromey@adacore.com>
14225 * windows-nat.c (windows_nat_target::attach)
14226 (windows_nat_target::detach): Don't call gdb_flush.
14227 * valprint.c (generic_val_print, val_print, val_print_string):
14228 Don't call gdb_flush.
14229 * utils.c (defaulted_query): Don't call gdb_flush.
14230 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14231 * target.c (target_announce_detach): Don't call gdb_flush.
14232 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14233 * remote.c (extended_remote_target::attach): Don't call
14235 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14236 * printcmd.c (do_examine): Don't call gdb_flush.
14237 (info_display_command): Don't call gdb_flush.
14238 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14239 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14240 * memattr.c (info_mem_command): Don't call gdb_flush.
14241 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14242 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14243 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14244 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14245 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14246 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14247 (gnu_nat_target::detach): Don't call gdb_flush.
14248 * f-valprint.c (f_val_print): Don't call gdb_flush.
14249 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14250 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14251 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14253 * c-valprint.c (c_val_print): Don't call gdb_flush.
14254 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14256 2019-03-05 Tom Tromey <tromey@adacore.com>
14258 * varobj.c (update_dynamic_varobj_children): Update.
14259 (install_default_visualizer): Use reset, not release.
14260 * value.c (set_internalvar): Update.
14261 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14262 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14263 ATTRIBUTE_UNUSED_RESULT.
14265 2019-03-05 Tom Tromey <tromey@adacore.com>
14267 * remote.c (class scoped_remote_fd) <release>: Add
14268 ATTRIBUTE_UNUSED_RESULT.
14270 2019-03-05 Tom Tromey <tromey@adacore.com>
14272 * macroexp.c (struct macro_buffer) <release>: Add
14273 ATTRIBUTE_UNUSED_RESULT.
14275 2019-03-05 Tom Tromey <tromey@adacore.com>
14277 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14278 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14279 ATTRIBUTE_UNUSED_RESULT.
14281 2019-03-05 Tom Tromey <tromey@adacore.com>
14283 * common/scoped_fd.h (class scoped_fd) <release>: Add
14284 ATTRIBUTE_UNUSED_RESULT.
14286 2019-03-05 Tom Tromey <tromey@adacore.com>
14288 * parser-defs.h (struct parser_state) <release>: Add
14289 ATTRIBUTE_UNUSED_RESULT.
14291 2019-03-05 Tom Tromey <tromey@adacore.com>
14293 * utils.h (class gdb_argv) <release>: Add
14294 ATTRIBUTE_UNUSED_RESULT.
14295 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14297 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14299 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14300 for-loop range, to avoid compiler warnings.
14302 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14303 avoid compiler warnings about unused variables.
14305 * NEWS: Mention end of support for native debugging on MS-Windows
14309 * common/netstuff.c:
14310 * gdbserver/gdbreplay.c
14311 * gdbserver/remote-utils.c:
14313 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14314 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14315 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14316 'getaddrinfo' and 'freeaddrinfo' were not available before
14317 Windows XP, and mingw.org's MinGW headers by default define
14318 _WIN32_WINNT to 0x500.
14320 2019-03-01 Gary Benson <gbenson@redhat.com>
14322 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14324 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14325 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14328 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14329 set_sigint_trap, clear_sigint_trap.
14331 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14333 * target.c (target_detach): Clear the regcache and the
14336 2019-02-27 Pedro Alves <palves@redhat.com>
14338 * utils.c (set_screen_size): When we cap the height/width sizes,
14339 tweak the corresponding command variable to show "unlimited":
14341 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14342 Pedro Alves <palves@redhat.com>
14344 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14345 before calling rl_set_screen_size.
14347 2019-02-27 Tom Tromey <tromey@adacore.com>
14349 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14351 * python/py-value.c: Remove Python 2.4 workaround.
14352 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14354 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14355 Python 2.4 workaround.
14356 * python/python-internal.h: Remove Python 2.4 comment.
14357 (Py_ssize_t): Don't define.
14358 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14359 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14360 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14361 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14362 * python/python.c (do_start_initialization): Remove Python 2.4
14364 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14365 (print_children): Remove Python 2.4 workaround.
14366 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14368 (CHARBUFFERPROC_NAME): Remove.
14369 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14370 Python 2.4 workaround.
14372 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14374 * NEWS: Note minimum Python version.
14376 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14378 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14379 code from these functions. Remove corresponding ifdefs. Use
14380 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14381 Remove gotos and target of gotos.
14382 (infpy_search_memory): Likewise.
14384 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14386 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14387 (hppa_gdbarch_init): Don't register deleted functions with
14390 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14392 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14393 (h8300_unwind_sp): Delete.
14394 (h8300_dummy_id): Delete.
14395 (h8300_gdbarch_init): Don't register deleted functions with
14398 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14400 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14401 (ft32_unwind_pc): Delete.
14402 (ft32_unwind_sp): Delete.
14403 (ft32_gdbarch_init): Don't register deleted functions with
14406 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14408 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14409 (frv_unwind_pc): Delete.
14410 (frv_unwind_sp): Delete.
14411 (frv_gdbarch_init): Don't register deleted functions with
14414 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14416 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14417 (riscv_unwind_pc): Delete.
14418 (riscv_unwind_sp): Delete.
14419 (riscv_gdbarch_init): Don't register deleted functions with
14422 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14424 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14425 (csky_unwind_pc): Delete.
14426 (csky_unwind_sp): Delete.
14427 (csky_gdbarch_init): Don't register deleted functions with
14430 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14432 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14433 (cris_unwind_pc): Delete.
14434 (cris_unwind_sp): Delete.
14435 (cris_gdbarch_init): Don't register deleted functions with
14438 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14440 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14441 (bfin_unwind_pc): Delete.
14442 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14444 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14446 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14447 (arm_unwind_pc): Delete.
14448 (arm_unwind_sp): Delete.
14449 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14451 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14453 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14454 (arc_unwind_pc): Delete.
14455 (arc_unwind_sp): Delete.
14456 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14458 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14460 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14461 (alpha_unwind_pc): Delete.
14462 (alpha_gdbarch_init): Don't register deleted functions with
14465 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14467 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14468 (aarch64_unwind_pc): Delete.
14469 (aarch64_unwind_sp): Delete.
14470 (aarch64_gdbarch_init): Don't register deleted functions with
14473 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14475 * gdbtypes.c (type_align): Don't consider static members when
14476 computing structure alignment.
14478 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14480 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14481 return 0 for other types.
14482 * arch-utils.c (default_type_align): Always return 0.
14483 * gdbarch.h: Regenerate.
14484 * gdbarch.sh (type_align): Extend comment.
14485 * gdbtypes.c (type_align): Add additional comments, always call
14486 gdbarch_type_align before applying the default rules.
14487 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14488 generic code will then apply a suitable default.
14489 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14490 types, return 0 for other types.
14492 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14494 * NEWS: Create a new section for the next release branch.
14495 Rename the section of the current branch, now that it has
14498 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14500 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14501 * version.in: Bump version to 8.3.50.DATE-git.
14503 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14505 * aix-thread.c (ptid_cmp): Remove unused variable.
14506 (get_signaled_thread): Likewise.
14507 (store_regs_user_thread): Likewise.
14508 (store_regs_kernel_thread): Likewise.
14509 (fetch_regs_kernel_thread): Remove shadowed variable.
14511 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14513 * features/riscv/32bit-cpu.xml: Add register numbers.
14514 * features/riscv/32bit-fpu.c: Regenerate.
14515 * features/riscv/32bit-fpu.xml: Add register numbers.
14516 * features/riscv/64bit-cpu.xml: Add register numbers.
14517 * features/riscv/64bit-fpu.c: Regenerate.
14518 * features/riscv/64bit-fpu.xml: Add register numbers.
14520 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14522 * NEWS: Mention two argument form of gdb.Value constructor.
14523 * python/py-value.c (convert_buffer_and_type_to_value): New
14525 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14526 Add support for handling an optional second argument. Call
14527 convert_buffer_and_type_to_value as appropriate.
14528 * python/python-internal.h (Py_buffer_deleter): New struct.
14529 (Py_buffer_up): New typedef.
14531 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14533 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14534 instead of releasing ownership.
14536 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14538 * dwarf2read.c (open_and_init_dwp_file): Call
14539 elf_numsections instead of bfd_count_sections to initialize
14540 dwp_file->num_sections.
14542 2019-02-25 Tom Tromey <tromey@adacore.com>
14544 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14546 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14548 * gcore.in: Add '--readnever' option when invoking GDB.
14550 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14552 * MAINTAINERS: Update my email address.
14554 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14556 * build-id.c (build_id_to_debug_bfd_1): New function.
14557 (build_id_to_debug_bfd): Look for separate debug file in
14560 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14562 * gdbarch.sh: Update the copyright year range that is placed into
14565 2019-02-22 Keith Seitz <keiths@redhat.com>
14568 * linespec.c (create_sals_line_offset): Search for the default
14569 symtab's filename instead of its fullname.
14571 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14573 * NEWS: Update style defaults.
14575 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14577 * main.c (captured_main_1): Disable styling in batch mode.
14579 2019-02-20 Tom Tromey <tom@tromey.com>
14581 * symtab.c (symtab_symbol_info): Fix typos.
14583 2019-02-20 Tom Tromey <tromey@adacore.com>
14585 * findcmd.c (_initialize_mem_search): Use upper case for
14586 metasyntactic variables.
14588 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14590 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14591 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14593 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14595 * top.h (source_file_name): Change to std::string.
14596 * top.c (source_file_name): Likewise.
14597 (command_line_input): Adjust.
14598 * cli/cli-script.c (script_from_file): Adjust.
14600 2019-02-19 Tom Tromey <tromey@adacore.com>
14602 * ravenscar-thread.c
14603 (ravenscar_thread_target::update_thread_list): Don't call
14604 ada_build_task_list.
14605 * ada-lang.h (ada_build_task_list): Don't declare.
14606 * ada-tasks.c (struct ada_tasks_inferior_data)
14607 <task_list_valid_p>: Now bool.
14608 (read_known_tasks, ada_task_list_changed)
14609 (ada_tasks_invalidate_inferior_data): Update.
14610 (read_known_tasks_array): Return bool.
14611 (read_known_tasks_list): Likewise.
14612 (read_known_tasks): Return void.
14613 (ada_build_task_list): Now static.
14615 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14617 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14618 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14620 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14622 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14623 variant for ada_tasks_pspace_data_handle and
14624 ada_tasks_inferior_data_handle.
14625 (ada_tasks_pspace_data_cleanup): New function.
14626 (ada_tasks_inferior_data_cleanup): New function.
14628 2019-02-17 Tom Tromey <tom@tromey.com>
14630 * macrotab.h (macro_source_fullname): Return a std::string.
14631 * macrotab.c (macro_include, check_for_redefinition)
14632 (macro_undef, macro_lookup_definition, foreach_macro)
14633 (foreach_macro_in_scope): Update.
14634 (macro_source_fullname): Return a std::string.
14635 * macrocmd.c (show_pp_source_pos): Update.
14637 2019-02-17 Tom Tromey <tom@tromey.com>
14639 * macrocmd.c (show_pp_source_pos): Style the file names.
14641 2019-02-17 Tom Tromey <tom@tromey.com>
14644 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14646 2019-02-17 Tom Tromey <tom@tromey.com>
14648 * ada-lang.c (user_select_syms): Use filtered printing.
14649 * utils.c (wrap_style): New global.
14650 (desired_style): Remove.
14651 (emit_style_escape): Add stream parameter.
14652 (set_output_style, reset_terminal_style, prompt_for_continue):
14654 (flush_wrap_buffer): Only flush gdb_stdout.
14655 (wrap_here): Set wrap_style.
14656 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14657 treat escape sequences as a character. Change when wrap buffer is
14659 (fputs_styled): Do not set the output style when the default is
14661 * ui-style.h (struct ui_file_style) <is_default>: New method.
14662 * source.c (print_source_lines_base): Emit escape sequences in one
14665 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14667 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14668 integers and enumeration types.
14670 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14672 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14673 instead of lookup_symbol_in_language
14674 (do_exact_match): New function.
14675 (ada_get_symbol_name_matcher): Return do_exact_match when
14676 doing a verbatim match.
14678 2019-02-15 Tom Tromey <tromey@adacore.com>
14680 * ravenscar-thread.c (ravenscar_thread_target::resume)
14681 (ravenscar_thread_target::wait): Special case wildcard requests.
14683 2019-02-15 Tom Tromey <tromey@adacore.com>
14685 * ravenscar-thread.c (base_ptid): Remove.
14686 (struct ravenscar_thread_target) <close>: New method.
14687 <m_base_ptid>: New member.
14688 <update_inferior_ptid, active_task, task_is_currently_active,
14689 runtime_initialized>: Declare methods.
14690 <ravenscar_thread_target>: Add constructor.
14691 (ravenscar_thread_target::task_is_currently_active)
14692 (ravenscar_thread_target::update_inferior_ptid)
14693 (ravenscar_runtime_initialized): Rename. Now methods.
14694 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14695 (ravenscar_thread_target::update_thread_list): Update.
14696 (ravenscar_thread_target::active_task): Now method.
14697 (ravenscar_thread_target::store_registers)
14698 (ravenscar_thread_target::prepare_to_store)
14699 (ravenscar_thread_target::prepare_to_store)
14700 (ravenscar_thread_target::mourn_inferior): Update.
14701 (ravenscar_inferior_created): Use "new" to create target.
14702 (ravenscar_thread_target::get_ada_task_ptid): Update.
14703 (_initialize_ravenscar): Don't initialize base_ptid.
14704 (ravenscar_ops): Remove global.
14706 2019-02-15 Tom Tromey <tromey@adacore.com>
14708 * target.h (push_target): Declare new overload.
14709 * target.c (push_target): New overload, taking an rvalue reference.
14710 * remote.c (remote_target::open_1): Use push_target overload.
14711 * corelow.c (core_target_open): Use push_target overload.
14713 2019-02-15 Tom Tromey <tromey@adacore.com>
14715 * ravenscar-thread.c (is_ravenscar_task)
14716 (ravenscar_task_is_currently_active): Return bool.
14717 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14718 (_initialize_ravenscar): Remove "(void)".
14719 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14722 2019-02-15 Tom Tromey <tromey@adacore.com>
14724 * ravenscar-thread.c (ravenscar_runtime_initializer)
14725 (has_ravenscar_runtime, get_running_thread_id)
14726 (ravenscar_thread_target::resume): Fix indentation.
14728 2019-02-15 Tom Tromey <tromey@adacore.com>
14730 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14731 from ravenscar_arch_ops.
14732 (sparc_ravenscar_ops::fetch_registers)
14733 (sparc_ravenscar_ops::store_registers): Now methods.
14734 (sparc_ravenscar_prepare_to_store): Remove.
14735 (sparc_ravenscar_ops): Redefine.
14736 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14737 methods and destructor. Remove members.
14738 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14739 (ravenscar_thread_target::store_registers)
14740 (ravenscar_thread_target::prepare_to_store): Update.
14741 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14743 (struct ppc_ravenscar_powerpc_ops): Derive from
14744 ravenscar_arch_ops.
14745 (ppc_ravenscar_powerpc_ops::fetch_registers)
14746 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14747 (ppc_ravenscar_powerpc_ops): Redefine.
14748 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14749 (ppc_ravenscar_e500_ops::fetch_registers)
14750 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14751 (ppc_ravenscar_e500_ops): Redefine.
14752 * aarch64-ravenscar-thread.c
14753 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14754 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14755 (aarch64_ravenscar_fetch_registers)
14756 (aarch64_ravenscar_store_registers): Now methods.
14757 (aarch64_ravenscar_ops): Redefine.
14759 2019-02-15 Tom Tromey <tromey@adacore.com>
14761 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14762 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14763 (ravenscar_thread_target::stopped_by_watchpoint)
14764 (ravenscar_thread_target::stopped_data_address)
14765 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14767 2019-02-15 Tom Tromey <tromey@adacore.com>
14769 * ravenscar-thread.c: Fix some typos.
14771 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14772 Tom Tromey <tromey@adacore.com>
14774 * ada-lang.c (ada_exception_sal): Change addr_string to a
14776 (create_ada_exception_catchpoint): Update.
14778 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14779 Tom Tromey <tromey@adacore.com>
14781 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14782 (bp_location_ops): Remove.
14783 (base_breakpoint_allocate_location): Update.
14784 (free_bp_location): Update.
14785 * ada-lang.c (class ada_catchpoint_location)
14786 <ada_catchpoint_location>: Remove ops parameter.
14787 (ada_catchpoint_location_dtor): Remove.
14788 (ada_catchpoint_location_ops): Remove.
14789 (allocate_location_exception): Update.
14790 * breakpoint.h (struct bp_location_ops): Remove.
14791 (class bp_location) <bp_location>: Remove bp_location_ops
14793 <~bp_location>: Add destructor.
14796 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14797 Pedro Alves <palves@redhat.com>
14799 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14802 2019-02-14 David Michael <fedora.dm0@gmail.com>
14803 Samuel Thibault <samuel.thibault@gnu.org>
14804 Thomas Schwinge <thomas@codesourcery.com>
14806 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14807 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14809 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14811 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14812 (check_empty): Use "const char *".
14814 * gnu-nat.c (gnu_nat_target::detach): Instead of
14815 'detach_inferior (pid)' call
14816 'detach_inferior (find_inferior_pid (pid))'.
14818 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14819 'nat/fork-inferior.o'.
14820 * gnu-nat.c: #include "nat/fork-inferior.h".
14822 * gnu-nat.c (gnu_nat_target::detach): Instead of
14823 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14824 * gnu-nat.h: #include "inf-child.h".
14825 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14826 'i386_gnu_nat_target::fetch_registers'.
14827 (gnu_store_registers): Rename/move to
14828 'i386_gnu_nat_target::store_registers'.
14830 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14831 * gnu-nat.h (mach_thread_info): New function.
14832 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14834 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14836 2019-02-14 Frederic Konrad <konrad@adacore.com>
14838 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14840 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14842 * windows-nat.c (windows_add_thread): Add new parameter
14843 "main_thread_p" with default value set to false. Update
14844 function documentation as well as all callers.
14845 (windows_delete_thread): Likewise.
14846 (fake_create_process): Update call to windows_add_thread.
14847 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14848 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14849 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14850 call to windows_delete_thread.
14852 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14854 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14856 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14858 * symfile.c (find_separate_debug_file): Use canonical path of
14859 sysroot with child_path instead of gdb_sysroot if it is valid.
14861 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14863 * symfile.c (find_separate_debug_file): Use child_path to
14864 determine if an object file is under a sysroot.
14866 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14868 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14869 unittests/child-path-selftests.c.
14870 * common/pathstuff.c (child_path): New function.
14871 * common/pathstuff.h (child_path): New prototype.
14872 * unittests/child-path-selftests.c: New file.
14874 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14876 * symfile.c (find_separate_debug_file): Look for separate debug
14877 files in debug directories under the sysroot.
14879 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14881 * symtab.h (struct minimal_symbol data_p): New const method.
14882 (struct minimal_symbol text_p): Likewise.
14883 * symtab.c (output_source_filename): Use file name style
14884 to print file name.
14885 (print_symbol_info): Likewise.
14886 (print_msymbol_info): Use address style to print addresses.
14887 Use function name style to print executable text symbols.
14888 (expand_symtab_containing_pc): Use data_p.
14889 (find_pc_sect_compunit_symtab): Likewise.
14891 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14893 * breakpoint.c (describe_other_breakpoints): Use address style
14894 to print addresses.
14895 (say_where): Likewise.
14897 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14899 * ada-typeprint.c (print_func_type): Print function name
14900 style to print function name.
14901 * c-typeprint.c (c_print_type_1): Likewise.
14903 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14905 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14908 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14910 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14913 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14915 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14916 TYPE_CODE_REF types.
14918 2019-02-08 Jim Wilson <jimw@sifive.com>
14920 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14921 (riscv_linux_fregset): New.
14922 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14924 2019-02-07 Tom Tromey <tom@tromey.com>
14926 * thread.c (thread_cancel_execution_command): Update.
14927 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14929 (struct thread_fsm_ops): Remove.
14930 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14931 (thread_fsm_should_stop, thread_fsm_return_value)
14932 (thread_fsm_set_finished, thread_fsm_finished_p)
14933 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14935 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14936 * infrun.c (clear_proceed_status_thread)
14937 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14938 (print_stop_event): Update.
14939 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14941 (step_command_fsm_ops): Remove.
14942 (new_step_command_fsm): Remove.
14944 (step_command_fsm::should_stop): Rename from
14945 step_command_fsm_should_stop.
14946 (step_command_fsm::clean_up): Rename from
14947 step_command_fsm_clean_up.
14948 (step_command_fsm::do_async_reply_reason): Rename from
14949 step_command_fsm_async_reply_reason.
14950 (struct until_next_fsm): Inherit from thread_fsm. Add
14952 (until_next_fsm_ops): Remove.
14953 (new_until_next_fsm): Remove.
14954 (until_next_fsm::should_stop): Rename from
14955 until_next_fsm_should_stop.
14956 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14957 (until_next_fsm::do_async_reply_reason): Rename from
14958 until_next_fsm_async_reply_reason.
14959 (struct finish_command_fsm): Inherit from thread_fsm. Add
14960 constructor. Change type of breakpoint.
14961 (finish_command_fsm_ops): Remove.
14962 (new_finish_command_fsm): Remove.
14963 (finish_command_fsm::should_stop): Rename from
14964 finish_command_fsm_should_stop.
14965 (finish_command_fsm::clean_up): Rename from
14966 finish_command_fsm_clean_up.
14967 (finish_command_fsm::return_value): Rename from
14968 finish_command_fsm_return_value.
14969 (finish_command_fsm::do_async_reply_reason): Rename from
14970 finish_command_fsm_async_reply_reason.
14971 (finish_command): Update.
14972 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14974 (call_thread_fsm_ops): Remove.
14975 (call_thread_fsm::call_thread_fsm): Rename from
14976 new_call_thread_fsm.
14977 (call_thread_fsm::should_stop): Rename from
14978 call_thread_fsm_should_stop.
14979 (call_thread_fsm::should_notify_stop): Rename from
14980 call_thread_fsm_should_notify_stop.
14981 (run_inferior_call, call_function_by_hand_dummy): Update.
14982 * cli/cli-interp.c (should_print_stop_to_console): Update.
14983 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14984 Add constructor. Change type of location_breakpoint,
14986 (until_break_fsm_ops): Remove.
14987 (new_until_break_fsm): Remove.
14988 (until_break_fsm::should_stop): Rename from
14989 until_break_fsm_should_stop.
14990 (until_break_fsm::clean_up): Rename from
14991 until_break_fsm_clean_up.
14992 (until_break_fsm::do_async_reply_reason): Rename from
14993 until_break_fsm_async_reply_reason.
14994 (until_break_command): Update.
14995 * thread-fsm.c: Remove.
14996 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14998 2019-02-07 Tom Tromey <tom@tromey.com>
15000 * yy-remap.h: Add include guard.
15001 * xtensa-tdep.h: Add include guard.
15002 * xcoffread.h: Rename include guard.
15003 * varobj-iter.h: Add include guard.
15004 * tui/tui.h: Rename include guard.
15005 * tui/tui-winsource.h: Rename include guard.
15006 * tui/tui-wingeneral.h: Rename include guard.
15007 * tui/tui-windata.h: Rename include guard.
15008 * tui/tui-win.h: Rename include guard.
15009 * tui/tui-stack.h: Rename include guard.
15010 * tui/tui-source.h: Rename include guard.
15011 * tui/tui-regs.h: Rename include guard.
15012 * tui/tui-out.h: Rename include guard.
15013 * tui/tui-layout.h: Rename include guard.
15014 * tui/tui-io.h: Rename include guard.
15015 * tui/tui-hooks.h: Rename include guard.
15016 * tui/tui-file.h: Rename include guard.
15017 * tui/tui-disasm.h: Rename include guard.
15018 * tui/tui-data.h: Rename include guard.
15019 * tui/tui-command.h: Rename include guard.
15020 * tic6x-tdep.h: Add include guard.
15021 * target/waitstatus.h: Rename include guard.
15022 * target/wait.h: Rename include guard.
15023 * target/target.h: Rename include guard.
15024 * target/resume.h: Rename include guard.
15025 * target-float.h: Rename include guard.
15026 * stabsread.h: Add include guard.
15027 * rs6000-tdep.h: Add include guard.
15028 * riscv-fbsd-tdep.h: Add include guard.
15029 * regformats/regdef.h: Rename include guard.
15030 * record.h: Rename include guard.
15031 * python/python.h: Rename include guard.
15032 * python/python-internal.h: Rename include guard.
15033 * python/py-stopevent.h: Rename include guard.
15034 * python/py-ref.h: Rename include guard.
15035 * python/py-record.h: Rename include guard.
15036 * python/py-record-full.h: Rename include guard.
15037 * python/py-record-btrace.h: Rename include guard.
15038 * python/py-instruction.h: Rename include guard.
15039 * python/py-events.h: Rename include guard.
15040 * python/py-event.h: Rename include guard.
15041 * procfs.h: Add include guard.
15042 * proc-utils.h: Add include guard.
15043 * p-lang.h: Add include guard.
15044 * or1k-tdep.h: Rename include guard.
15045 * observable.h: Rename include guard.
15046 * nto-tdep.h: Rename include guard.
15047 * nat/x86-linux.h: Rename include guard.
15048 * nat/x86-linux-dregs.h: Rename include guard.
15049 * nat/x86-gcc-cpuid.h: Add include guard.
15050 * nat/x86-dregs.h: Rename include guard.
15051 * nat/x86-cpuid.h: Rename include guard.
15052 * nat/ppc-linux.h: Rename include guard.
15053 * nat/mips-linux-watch.h: Rename include guard.
15054 * nat/linux-waitpid.h: Rename include guard.
15055 * nat/linux-ptrace.h: Rename include guard.
15056 * nat/linux-procfs.h: Rename include guard.
15057 * nat/linux-osdata.h: Rename include guard.
15058 * nat/linux-nat.h: Rename include guard.
15059 * nat/linux-namespaces.h: Rename include guard.
15060 * nat/linux-btrace.h: Rename include guard.
15061 * nat/glibc_thread_db.h: Rename include guard.
15062 * nat/gdb_thread_db.h: Rename include guard.
15063 * nat/gdb_ptrace.h: Rename include guard.
15064 * nat/fork-inferior.h: Rename include guard.
15065 * nat/amd64-linux-siginfo.h: Rename include guard.
15066 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15067 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15068 * nat/aarch64-linux.h: Rename include guard.
15069 * nat/aarch64-linux-hw-point.h: Rename include guard.
15070 * mn10300-tdep.h: Add include guard.
15071 * mips-linux-tdep.h: Add include guard.
15072 * mi/mi-parse.h: Rename include guard.
15073 * mi/mi-out.h: Rename include guard.
15074 * mi/mi-main.h: Rename include guard.
15075 * mi/mi-interp.h: Rename include guard.
15076 * mi/mi-getopt.h: Rename include guard.
15077 * mi/mi-console.h: Rename include guard.
15078 * mi/mi-common.h: Rename include guard.
15079 * mi/mi-cmds.h: Rename include guard.
15080 * mi/mi-cmd-break.h: Rename include guard.
15081 * m2-lang.h: Add include guard.
15082 * location.h: Rename include guard.
15083 * linux-record.h: Rename include guard.
15084 * linux-nat.h: Add include guard.
15085 * linux-fork.h: Add include guard.
15086 * i386-darwin-tdep.h: Rename include guard.
15087 * hppa-linux-offsets.h: Add include guard.
15088 * guile/guile.h: Rename include guard.
15089 * guile/guile-internal.h: Rename include guard.
15090 * gnu-nat.h: Rename include guard.
15091 * gdb-stabs.h: Rename include guard.
15092 * frv-tdep.h: Add include guard.
15093 * f-lang.h: Add include guard.
15094 * event-loop.h: Add include guard.
15095 * darwin-nat.h: Rename include guard.
15096 * cp-abi.h: Rename include guard.
15097 * config/sparc/nm-sol2.h: Rename include guard.
15098 * config/nm-nto.h: Rename include guard.
15099 * config/nm-linux.h: Add include guard.
15100 * config/i386/nm-i386gnu.h: Rename include guard.
15101 * config/djgpp/nl_types.h: Rename include guard.
15102 * config/djgpp/langinfo.h: Rename include guard.
15103 * compile/gcc-cp-plugin.h: Add include guard.
15104 * compile/gcc-c-plugin.h: Add include guard.
15105 * compile/compile.h: Rename include guard.
15106 * compile/compile-object-run.h: Rename include guard.
15107 * compile/compile-object-load.h: Rename include guard.
15108 * compile/compile-internal.h: Rename include guard.
15109 * compile/compile-cplus.h: Rename include guard.
15110 * compile/compile-c.h: Rename include guard.
15111 * common/xml-utils.h: Rename include guard.
15112 * common/x86-xstate.h: Rename include guard.
15113 * common/version.h: Rename include guard.
15114 * common/vec.h: Rename include guard.
15115 * common/tdesc.h: Rename include guard.
15116 * common/selftest.h: Rename include guard.
15117 * common/scoped_restore.h: Rename include guard.
15118 * common/scoped_mmap.h: Rename include guard.
15119 * common/scoped_fd.h: Rename include guard.
15120 * common/safe-iterator.h: Rename include guard.
15121 * common/run-time-clock.h: Rename include guard.
15122 * common/refcounted-object.h: Rename include guard.
15123 * common/queue.h: Rename include guard.
15124 * common/ptid.h: Rename include guard.
15125 * common/print-utils.h: Rename include guard.
15126 * common/preprocessor.h: Rename include guard.
15127 * common/pathstuff.h: Rename include guard.
15128 * common/observable.h: Rename include guard.
15129 * common/netstuff.h: Rename include guard.
15130 * common/job-control.h: Rename include guard.
15131 * common/host-defs.h: Rename include guard.
15132 * common/gdb_wait.h: Rename include guard.
15133 * common/gdb_vecs.h: Rename include guard.
15134 * common/gdb_unlinker.h: Rename include guard.
15135 * common/gdb_unique_ptr.h: Rename include guard.
15136 * common/gdb_tilde_expand.h: Rename include guard.
15137 * common/gdb_sys_time.h: Rename include guard.
15138 * common/gdb_string_view.h: Rename include guard.
15139 * common/gdb_splay_tree.h: Rename include guard.
15140 * common/gdb_setjmp.h: Rename include guard.
15141 * common/gdb_ref_ptr.h: Rename include guard.
15142 * common/gdb_optional.h: Rename include guard.
15143 * common/gdb_locale.h: Rename include guard.
15144 * common/gdb_assert.h: Rename include guard.
15145 * common/filtered-iterator.h: Rename include guard.
15146 * common/filestuff.h: Rename include guard.
15147 * common/fileio.h: Rename include guard.
15148 * common/environ.h: Rename include guard.
15149 * common/common-utils.h: Rename include guard.
15150 * common/common-types.h: Rename include guard.
15151 * common/common-regcache.h: Rename include guard.
15152 * common/common-inferior.h: Rename include guard.
15153 * common/common-gdbthread.h: Rename include guard.
15154 * common/common-exceptions.h: Rename include guard.
15155 * common/common-defs.h: Rename include guard.
15156 * common/common-debug.h: Rename include guard.
15157 * common/cleanups.h: Rename include guard.
15158 * common/buffer.h: Rename include guard.
15159 * common/btrace-common.h: Rename include guard.
15160 * common/break-common.h: Rename include guard.
15161 * cli/cli-utils.h: Rename include guard.
15162 * cli/cli-style.h: Rename include guard.
15163 * cli/cli-setshow.h: Rename include guard.
15164 * cli/cli-script.h: Rename include guard.
15165 * cli/cli-interp.h: Rename include guard.
15166 * cli/cli-decode.h: Rename include guard.
15167 * cli/cli-cmds.h: Rename include guard.
15168 * charset-list.h: Add include guard.
15169 * buildsym-legacy.h: Rename include guard.
15170 * bfin-tdep.h: Add include guard.
15171 * ax.h: Rename include guard.
15172 * arm-linux-tdep.h: Add include guard.
15173 * arm-fbsd-tdep.h: Add include guard.
15174 * arch/xtensa.h: Rename include guard.
15175 * arch/tic6x.h: Add include guard.
15176 * arch/i386.h: Add include guard.
15177 * arch/arm.h: Rename include guard.
15178 * arch/arm-linux.h: Rename include guard.
15179 * arch/arm-get-next-pcs.h: Rename include guard.
15180 * arch/amd64.h: Add include guard.
15181 * arch/aarch64-insn.h: Rename include guard.
15182 * arch-utils.h: Rename include guard.
15183 * annotate.h: Add include guard.
15184 * amd64-darwin-tdep.h: Rename include guard.
15185 * aarch64-linux-tdep.h: Add include guard.
15186 * aarch64-fbsd-tdep.h: Add include guard.
15187 * aarch32-linux-nat.h: Add include guard.
15189 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15191 * macrotab.c (macro_define_internal): New function that
15192 factorizes macro_define_object_internal and macro_define_function
15194 (macro_define_object_internal): Use macro_define_internal.
15195 (macro_define_function): Likewise.
15197 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15199 * macrocmd.c (extract_identifier): Return
15200 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15203 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15205 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15207 2019-02-05 Tom Tromey <tom@tromey.com>
15209 * target.c (target_stack::unpush): Move assertion earlier.
15211 2019-01-30 Tom Tromey <tom@tromey.com>
15214 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15215 (gdbpy_parse_and_eval): Likewise.
15216 * python/python-internal.h (gdbpy_allow_threads): New class.
15218 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15220 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15221 (aarch64_fbsd_fpregmap): Move earlier.
15222 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15223 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15224 instead of individual calls to trad_frame_set_reg_addr.
15225 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15227 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15228 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15229 instead of individual calls to trad_frame_set_reg_addr.
15231 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15233 * CONTRIBUTE: Replace contribution list with wiki link.
15235 2019-01-25 Tom Tromey <tom@tromey.com>
15237 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15239 2019-01-25 Tom Tromey <tom@tromey.com>
15241 * xtensa-linux-nat.c: Fix common/ includes.
15242 * xml-support.h: Fix common/ includes.
15243 * xml-support.c: Fix common/ includes.
15244 * x86-linux-nat.c: Fix common/ includes.
15245 * windows-nat.c: Fix common/ includes.
15246 * varobj.h: Fix common/ includes.
15247 * varobj.c: Fix common/ includes.
15248 * value.c: Fix common/ includes.
15249 * valops.c: Fix common/ includes.
15250 * utils.c: Fix common/ includes.
15251 * unittests/xml-utils-selftests.c: Fix common/ includes.
15252 * unittests/utils-selftests.c: Fix common/ includes.
15253 * unittests/unpack-selftests.c: Fix common/ includes.
15254 * unittests/tracepoint-selftests.c: Fix common/ includes.
15255 * unittests/style-selftests.c: Fix common/ includes.
15256 * unittests/string_view-selftests.c: Fix common/ includes.
15257 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15258 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15259 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15260 * unittests/rsp-low-selftests.c: Fix common/ includes.
15261 * unittests/parse-connection-spec-selftests.c: Fix common/
15263 * unittests/optional-selftests.c: Fix common/ includes.
15264 * unittests/offset-type-selftests.c: Fix common/ includes.
15265 * unittests/observable-selftests.c: Fix common/ includes.
15266 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15267 * unittests/memrange-selftests.c: Fix common/ includes.
15268 * unittests/memory-map-selftests.c: Fix common/ includes.
15269 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15270 * unittests/function-view-selftests.c: Fix common/ includes.
15271 * unittests/environ-selftests.c: Fix common/ includes.
15272 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15273 * unittests/common-utils-selftests.c: Fix common/ includes.
15274 * unittests/cli-utils-selftests.c: Fix common/ includes.
15275 * unittests/array-view-selftests.c: Fix common/ includes.
15276 * ui-file.c: Fix common/ includes.
15277 * tui/tui-io.c: Fix common/ includes.
15278 * tracepoint.h: Fix common/ includes.
15279 * tracepoint.c: Fix common/ includes.
15280 * tracefile-tfile.c: Fix common/ includes.
15281 * top.h: Fix common/ includes.
15282 * top.c: Fix common/ includes.
15283 * thread.c: Fix common/ includes.
15284 * target/waitstatus.h: Fix common/ includes.
15285 * target/waitstatus.c: Fix common/ includes.
15286 * target.h: Fix common/ includes.
15287 * target.c: Fix common/ includes.
15288 * target-memory.c: Fix common/ includes.
15289 * target-descriptions.c: Fix common/ includes.
15290 * symtab.h: Fix common/ includes.
15291 * symfile.c: Fix common/ includes.
15292 * stap-probe.c: Fix common/ includes.
15293 * spu-linux-nat.c: Fix common/ includes.
15294 * sparc-nat.c: Fix common/ includes.
15295 * source.c: Fix common/ includes.
15296 * solib.c: Fix common/ includes.
15297 * solib-target.c: Fix common/ includes.
15298 * ser-unix.c: Fix common/ includes.
15299 * ser-tcp.c: Fix common/ includes.
15300 * ser-pipe.c: Fix common/ includes.
15301 * ser-base.c: Fix common/ includes.
15302 * selftest-arch.c: Fix common/ includes.
15303 * s12z-tdep.c: Fix common/ includes.
15304 * rust-exp.y: Fix common/ includes.
15305 * rs6000-aix-tdep.c: Fix common/ includes.
15306 * riscv-tdep.c: Fix common/ includes.
15307 * remote.c: Fix common/ includes.
15308 * remote-notif.h: Fix common/ includes.
15309 * remote-fileio.h: Fix common/ includes.
15310 * remote-fileio.c: Fix common/ includes.
15311 * regcache.h: Fix common/ includes.
15312 * regcache.c: Fix common/ includes.
15313 * record-btrace.c: Fix common/ includes.
15314 * python/python.c: Fix common/ includes.
15315 * python/py-type.c: Fix common/ includes.
15316 * python/py-inferior.c: Fix common/ includes.
15317 * progspace.h: Fix common/ includes.
15318 * producer.c: Fix common/ includes.
15319 * procfs.c: Fix common/ includes.
15320 * proc-api.c: Fix common/ includes.
15321 * printcmd.c: Fix common/ includes.
15322 * ppc-linux-nat.c: Fix common/ includes.
15323 * parser-defs.h: Fix common/ includes.
15324 * osdata.c: Fix common/ includes.
15325 * obsd-nat.c: Fix common/ includes.
15326 * nat/x86-linux.c: Fix common/ includes.
15327 * nat/x86-linux-dregs.c: Fix common/ includes.
15328 * nat/x86-dregs.h: Fix common/ includes.
15329 * nat/x86-dregs.c: Fix common/ includes.
15330 * nat/ppc-linux.c: Fix common/ includes.
15331 * nat/mips-linux-watch.h: Fix common/ includes.
15332 * nat/mips-linux-watch.c: Fix common/ includes.
15333 * nat/linux-waitpid.c: Fix common/ includes.
15334 * nat/linux-ptrace.h: Fix common/ includes.
15335 * nat/linux-ptrace.c: Fix common/ includes.
15336 * nat/linux-procfs.c: Fix common/ includes.
15337 * nat/linux-personality.c: Fix common/ includes.
15338 * nat/linux-osdata.c: Fix common/ includes.
15339 * nat/linux-namespaces.c: Fix common/ includes.
15340 * nat/linux-btrace.h: Fix common/ includes.
15341 * nat/linux-btrace.c: Fix common/ includes.
15342 * nat/fork-inferior.c: Fix common/ includes.
15343 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15344 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15345 * nat/aarch64-linux.c: Fix common/ includes.
15346 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15347 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15348 * namespace.h: Fix common/ includes.
15349 * mips-linux-tdep.c: Fix common/ includes.
15350 * minsyms.c: Fix common/ includes.
15351 * mi/mi-parse.h: Fix common/ includes.
15352 * mi/mi-main.c: Fix common/ includes.
15353 * mi/mi-cmd-env.c: Fix common/ includes.
15354 * memrange.h: Fix common/ includes.
15355 * memattr.c: Fix common/ includes.
15356 * maint.h: Fix common/ includes.
15357 * maint.c: Fix common/ includes.
15358 * main.c: Fix common/ includes.
15359 * machoread.c: Fix common/ includes.
15360 * location.c: Fix common/ includes.
15361 * linux-thread-db.c: Fix common/ includes.
15362 * linux-nat.c: Fix common/ includes.
15363 * linux-fork.c: Fix common/ includes.
15364 * inline-frame.c: Fix common/ includes.
15365 * infrun.c: Fix common/ includes.
15366 * inflow.c: Fix common/ includes.
15367 * inferior.h: Fix common/ includes.
15368 * inferior.c: Fix common/ includes.
15369 * infcmd.c: Fix common/ includes.
15370 * inf-ptrace.c: Fix common/ includes.
15371 * inf-child.c: Fix common/ includes.
15372 * ia64-linux-nat.c: Fix common/ includes.
15373 * i387-tdep.c: Fix common/ includes.
15374 * i386-tdep.c: Fix common/ includes.
15375 * i386-linux-tdep.c: Fix common/ includes.
15376 * i386-linux-nat.c: Fix common/ includes.
15377 * i386-go32-tdep.c: Fix common/ includes.
15378 * i386-fbsd-tdep.c: Fix common/ includes.
15379 * i386-fbsd-nat.c: Fix common/ includes.
15380 * guile/scm-type.c: Fix common/ includes.
15381 * guile/guile.c: Fix common/ includes.
15382 * go32-nat.c: Fix common/ includes.
15383 * gnu-nat.c: Fix common/ includes.
15384 * gdbthread.h: Fix common/ includes.
15385 * gdbarch-selftests.c: Fix common/ includes.
15386 * gdb_usleep.c: Fix common/ includes.
15387 * gdb_select.h: Fix common/ includes.
15388 * gdb_bfd.c: Fix common/ includes.
15389 * gcore.c: Fix common/ includes.
15390 * fork-child.c: Fix common/ includes.
15391 * findvar.c: Fix common/ includes.
15392 * fbsd-nat.c: Fix common/ includes.
15393 * event-top.c: Fix common/ includes.
15394 * event-loop.c: Fix common/ includes.
15395 * dwarf2read.c: Fix common/ includes.
15396 * dwarf2loc.c: Fix common/ includes.
15397 * dwarf2-frame.c: Fix common/ includes.
15398 * dwarf-index-cache.c: Fix common/ includes.
15399 * dtrace-probe.c: Fix common/ includes.
15400 * disasm-selftests.c: Fix common/ includes.
15401 * defs.h: Fix common/ includes.
15402 * csky-tdep.c: Fix common/ includes.
15403 * cp-valprint.c: Fix common/ includes.
15404 * cp-support.h: Fix common/ includes.
15405 * cp-support.c: Fix common/ includes.
15406 * corelow.c: Fix common/ includes.
15407 * completer.h: Fix common/ includes.
15408 * completer.c: Fix common/ includes.
15409 * compile/compile.c: Fix common/ includes.
15410 * compile/compile-loc2c.c: Fix common/ includes.
15411 * compile/compile-cplus-types.c: Fix common/ includes.
15412 * compile/compile-cplus-symbols.c: Fix common/ includes.
15413 * command.h: Fix common/ includes.
15414 * cli/cli-dump.c: Fix common/ includes.
15415 * cli/cli-cmds.c: Fix common/ includes.
15416 * charset.c: Fix common/ includes.
15417 * build-id.c: Fix common/ includes.
15418 * btrace.h: Fix common/ includes.
15419 * btrace.c: Fix common/ includes.
15420 * breakpoint.h: Fix common/ includes.
15421 * breakpoint.c: Fix common/ includes.
15423 (enum agent_op): Fix common/ includes.
15424 * ax-general.c (struct aop_map): Fix common/ includes.
15425 * ax-gdb.c: Fix common/ includes.
15426 * auxv.c: Fix common/ includes.
15427 * auto-load.c: Fix common/ includes.
15428 * arm-tdep.c: Fix common/ includes.
15429 * arch/riscv.c: Fix common/ includes.
15430 * arch/ppc-linux-common.c: Fix common/ includes.
15431 * arch/i386.c: Fix common/ includes.
15432 * arch/arm.c: Fix common/ includes.
15433 * arch/arm-linux.c: Fix common/ includes.
15434 * arch/arm-get-next-pcs.c: Fix common/ includes.
15435 * arch/amd64.c: Fix common/ includes.
15436 * arch/aarch64.c: Fix common/ includes.
15437 * arch/aarch64-insn.c: Fix common/ includes.
15438 * arch-utils.c: Fix common/ includes.
15439 * amd64-windows-tdep.c: Fix common/ includes.
15440 * amd64-tdep.c: Fix common/ includes.
15441 * amd64-sol2-tdep.c: Fix common/ includes.
15442 * amd64-obsd-tdep.c: Fix common/ includes.
15443 * amd64-nbsd-tdep.c: Fix common/ includes.
15444 * amd64-linux-tdep.c: Fix common/ includes.
15445 * amd64-linux-nat.c: Fix common/ includes.
15446 * amd64-fbsd-tdep.c: Fix common/ includes.
15447 * amd64-fbsd-nat.c: Fix common/ includes.
15448 * amd64-dicos-tdep.c: Fix common/ includes.
15449 * amd64-darwin-tdep.c: Fix common/ includes.
15450 * agent.c: Fix common/ includes.
15451 * ada-lang.h: Fix common/ includes.
15452 * ada-lang.c: Fix common/ includes.
15453 * aarch64-tdep.c: Fix common/ includes.
15455 2019-01-25 Tom Tromey <tom@tromey.com>
15457 * common/create-version.sh: Use common/version.h.
15459 2019-01-24 Pedro Alves <palves@redhat.com>
15461 * infrun.c (signal_stop, signal_print, signal_program)
15462 (signal_catch, signal_pass): Now arrays instead of pointers.
15463 (update_signals_program_target, do_target_resume)
15464 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15465 * linux-nat.c (linux_nat_target::pass_signals)
15466 (linux_nat_target::create_inferior, linux_nat_target::attach):
15468 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15469 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15470 * procfs.c (procfs_target::pass_signals): Adjust.
15471 * record-full.c (record_full_target::resume): Adjust.
15472 * remote.c (remote_target::pass_signals)
15473 (remote_target::program_signals): Adjust.
15474 * target-debug.h (target_debug_print_signals): Now takes a
15475 gdb::array_view as parameter. Adjust.
15476 * target.h (target_ops) <pass_signals, program_signals>: Replace
15477 pointer and length parameters with gdb::array_view.
15478 (target_pass_signals, target_program_signals): Likewise.
15479 * target-delegates.c: Regenerate.
15481 2019-01-24 Pedro Alves <palves@redhat.com>
15483 * common/forward-scope-exit.h
15484 (forward_scope_exit::forward_scope_exit): Pass arguments to
15485 m_bind_function directly, instead of creating a std::bind and
15488 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15490 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15491 for static members.
15492 (pass_in_v_vfp_candidate): Likewise.
15494 2019-01-23 Tom Tromey <tom@tromey.com>
15495 Pedro Alves <palves@redhat.com>
15497 * regcache.c (class regcache_invalidator): Remove.
15498 (regcache::raw_write): Use make_scope_exit.
15500 2019-01-23 Tom Tromey <tom@tromey.com>
15502 * ui-out.h (class ui_out_emit_type): Update comment.
15504 2019-01-23 Tom Tromey <tom@tromey.com>
15506 * infrun.c (fetch_inferior_event): Update comment.
15508 2019-01-23 Tom Tromey <tom@tromey.com>
15509 Pedro Alves <palves@redhat.com>
15511 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15513 (fetch_inferior_event): Use SCOPE_EXIT.
15516 2019-01-23 Tom Tromey <tom@tromey.com>
15517 Pedro Alves <palves@redhat.com>
15519 * infrun.c (disable_thread_events): Delete.
15520 (stop_all_threads): Use SCOPE_EXIT.
15522 2019-01-23 Tom Tromey <tom@tromey.com>
15523 Pedro Alves <palves@redhat.com>
15525 * symfile.c: Include forward-scope-exit.h.
15526 (clear_symtab_users_cleanup): Replace forward declaration with
15527 a FORWARD_SCOPE_EXIT.
15528 (syms_from_objfile_1): Use the forward_scope_exit and
15529 gdb::optional instead of cleanup_function.
15530 (reread_symbols): Use the forward_scope_exit instead of
15532 (clear_symtab_users_cleanup): Remove function.
15534 2019-01-23 Tom Tromey <tom@tromey.com>
15535 Pedro Alves <palves@redhat.com>
15537 * linux-nat.c: Include scope-exit.h.
15538 (cleanup_target_stop): Remove.
15539 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15542 2019-01-23 Tom Tromey <tom@tromey.com>
15543 Pedro Alves <palves@redhat.com>
15545 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15546 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15548 2019-01-23 Tom Tromey <tom@tromey.com>
15549 Andrew Burgess <andrew.burgess@embecosm.com>
15550 Pedro Alves <palves@redhat.com>
15552 * infrun.c (fetch_inferior_event): Use scope_exit.
15553 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15554 * top.c (execute_command): Use scope_exit.
15555 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15556 * utils.c (do_bpstat_clear_actions_cleanup)
15557 (make_bpstat_clear_actions_cleanup): Remove.
15559 2019-01-23 Tom Tromey <tom@tromey.com>
15560 Pedro Alves <palves@redhat.com>
15562 * infrun.c: Include "common/scope-exit.h"
15563 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15564 (wait_for_inferior): Use SCOPE_EXIT.
15565 (fetch_inferior_event): Use scope_exit.
15567 2019-01-23 Tom Tromey <tom@tromey.com>
15568 Pedro Alves <palves@redhat.com>
15570 * breakpoint.c (create_breakpoint): Remove cleanup.
15572 2019-01-23 Tom Tromey <tom@tromey.com>
15573 Andrew Burgess <andrew.burgess@embecosm.com>
15574 Pedro Alves <palves@redhat.com>
15576 2019-01-23 Pedro Alves <palves@redhat.com>
15578 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15580 2019-01-23 Pedro Alves <palves@redhat.com>
15581 Andrew Burgess <andrew.burgess@embecosm.com>
15583 * gdbthread.h: Include "common/forward-scope-exit.h".
15584 (scoped_finish_thread_state): Redefine custom class in terms of
15585 forward_scope_exit.
15587 2019-01-23 Pedro Alves <palves@redhat.com>
15588 Andrew Burgess <andrew.burgess@embecosm.com>
15590 * common/forward-scope-exit.h: New file.
15592 2019-01-23 Pedro Alves <palves@redhat.com>
15593 Andrew Burgess <andrew.burgess@embecosm.com>
15594 Tom Tromey <tom@tromey.com>
15596 * common/scope-exit.h: New file.
15598 2019-01-23 Pedro Alves <palves@redhat.com>
15600 * common/preprocessor.h (ESC): Rename to ...
15601 (ESC_PARENS): ... this.
15602 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15603 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15605 2019-01-23 Tom Tromey <tom@tromey.com>
15607 * language.h (class scoped_switch_to_sym_language_if_auto):
15608 Initialize m_lang in both cases.
15610 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15612 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15615 2019-01-22 Tom Tromey <tom@tromey.com>
15617 * corelow.c: Do not include sys/file.h.
15619 2019-01-22 Tom Tromey <tom@tromey.com>
15621 * tui/tui-wingeneral.h: Include gdb_curses.h.
15623 2019-01-22 Tom Tromey <tom@tromey.com>
15625 * source-cache.h (class source_cache) <get_source_lines,
15626 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15628 2019-01-22 Tom Tromey <tom@tromey.com>
15630 * remote-fileio.h (struct remote_target): Declare.
15632 2019-01-22 Tom Tromey <tom@tromey.com>
15634 * python/py-arch.c: Do not include py-ref.h.
15635 * python/py-bpevent.c: Do not include py-ref.h.
15636 * python/py-cmd.c: Do not include py-ref.h.
15637 * python/py-continueevent.c: Do not include py-ref.h.
15638 * python/py-event.h: Do not include py-ref.h.
15639 * python/py-evtregistry.c: Do not include py-ref.h.
15640 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15641 * python/py-frame.c: Do not include py-ref.h.
15642 * python/py-framefilter.c: Do not include py-ref.h.
15643 * python/py-function.c: Do not include py-ref.h.
15644 * python/py-infevents.c: Do not include py-ref.h.
15645 * python/py-linetable.c: Do not include py-ref.h.
15646 * python/py-objfile.c: Do not include py-ref.h.
15647 * python/py-param.c: Do not include py-ref.h.
15648 * python/py-prettyprint.c: Do not include py-ref.h.
15649 * python/py-progspace.c: Do not include py-ref.h.
15650 * python/py-symbol.c: Do not include py-ref.h.
15651 * python/py-symtab.c: Do not include py-ref.h.
15652 * python/py-type.c: Do not include py-ref.h.
15653 * python/py-unwind.c: Do not include py-ref.h.
15654 * python/py-utils.c: Do not include py-ref.h.
15655 * python/py-value.c: Do not include py-ref.h.
15656 * python/py-varobj.c: Do not include py-ref.h.
15657 * python/py-xmethods.c: Do not include py-ref.h.
15658 * python/python.c: Do not include py-ref.h.
15659 * varobj.c: Do not include py-ref.h.
15661 2019-01-22 Tom Tromey <tom@tromey.com>
15663 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15664 keyword for bcache.
15666 2019-01-22 Tom Tromey <tom@tromey.com>
15668 * compile/compile-cplus-types.c: Remove a comment by #include.
15670 2019-01-22 Tom Tromey <tom@tromey.com>
15672 * compile/gcc-c-plugin.h: Include compile-internal.h.
15674 2019-01-22 Tom Tromey <tom@tromey.com>
15676 * stabsread.c (EXTERN): Do not define.
15677 (symnum, next_symbol_text_func, processing_gcc_compilation)
15678 (within_function, global_sym_chain, global_stabs)
15679 (previous_stab_code, this_object_header_files)
15680 (n_this_object_header_files)
15681 (n_allocated_this_object_header_files): Define.
15682 * stabsread.h (EXTERN): Never define. Use "extern".
15684 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15686 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15689 2019-01-21 Tom Tromey <tom@tromey.com>
15691 * ui-out.c: Fix includes.
15692 * tui/tui-source.c: Fix includes.
15693 * target.c: Fix includes.
15694 * remote.c: Fix includes.
15695 * regcache.c: Fix includes.
15696 * python/py-block.c: Fix includes.
15697 * printcmd.c: Fix includes.
15698 * or1k-tdep.c: Fix includes.
15699 * mi/mi-main.c: Fix includes.
15700 * m32r-tdep.c: Fix includes.
15701 * csky-tdep.c: Fix includes.
15702 * compile/compile-cplus-types.c: Fix includes.
15703 * cli/cli-interp.c: Fix includes.
15705 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15707 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15710 2019-01-16 Tom Tromey <tom@tromey.com>
15712 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15714 (struct objfile) <msymbols_range>: Move from top level.
15715 <msymbols>: New method.
15716 (class objfile_msymbols): Remove.
15717 * symtab.c (default_collect_symbol_completion_matches_break_on):
15719 * symmisc.c (dump_msymbols): Update.
15720 * stabsread.c (scan_file_globals): Update.
15721 * objc-lang.c (info_selectors_command, info_classes_command)
15722 (find_methods): Update.
15723 * minsyms.c (find_solib_trampoline_target): Update.
15724 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15725 * coffread.c (coff_symfile_read): Update.
15726 * ada-lang.c (ada_lookup_simple_minsym)
15727 (ada_collect_symbol_completion_matches): Update.
15729 2019-01-16 Tom Tromey <tom@tromey.com>
15731 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15732 type. Remove no-argument constructor.
15733 <iterator::operator++>: Simplify.
15735 <end>: Use minimal_symbol_count.
15737 2019-01-16 Tom Tromey <tom@tromey.com>
15739 * objfiles.h (struct objfile) <psymtabs>: New method.
15740 (class objfile_psymtabs): Remove.
15741 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15743 <range>: New method.
15744 (require_partial_symbols): Change return type.
15745 * psymtab.c (require_partial_symbols)
15746 (psym_expand_symtabs_matching): Update.
15747 * mdebugread.c (parse_partial_symbols): Update.
15748 * dbxread.c (dbx_end_psymtab): Update.
15750 2019-01-15 Tom Tromey <tom@tromey.com>
15752 * symtab.c (lookup_objfile_from_block)
15753 (lookup_symbol_in_objfile_symtabs)
15754 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15755 (find_line_symtab, info_sources_command)
15756 (default_collect_symbol_completion_matches_break_on)
15757 (make_source_files_completion_list): Update.
15758 * symmisc.c (print_objfile_statistics, dump_objfile)
15759 (maintenance_print_symbols, maintenance_info_symtabs)
15760 (maintenance_check_symtabs, maintenance_info_line_tables):
15762 * source.c (select_source_symtab)
15763 (forget_cached_source_info_for_objfile): Update.
15764 * objfiles.h (class objfile_compunits): Remove.
15765 (struct objfile) <compunits_range>: New typedef.
15766 (compunits): New method.
15767 * objfiles.c (objfile_relocate1): Update.
15768 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15769 * maint.c (count_symtabs_and_blocks): Update.
15770 * linespec.c (iterate_over_all_matching_symtabs): Update.
15771 * cp-support.c (add_symbol_overload_list_qualified): Update.
15772 * coffread.c (coff_symtab_read): Update.
15773 * ada-lang.c (add_nonlocal_symbols)
15774 (ada_collect_symbol_completion_matches)
15775 (ada_add_global_exceptions): Update.
15777 2019-01-15 Tom Tromey <tom@tromey.com>
15779 * progspace.h (program_space) <objfiles_safe_range>: New
15781 <objfiles_safe>: New method.
15782 * objfiles.h (class all_objfiles_safe): Remove.
15783 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15784 * jit.c (jit_inferior_exit_hook): Update.
15786 2019-01-17 Tom Tromey <tom@tromey.com>
15788 * progspace.h (program_space) <objfiles_range>: New typedef.
15789 <objfiles>: New method.
15790 <objfiles_head>: Rename from objfiles.
15791 (object_files): Update.
15792 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15793 * guile/scm-pretty-print.c
15794 (ppscm_find_pretty_printer_from_objfiles): Update.
15795 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15796 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15798 * python/py-progspace.c (pspy_get_objfiles): Update.
15799 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15801 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15802 (objfpy_lookup_objfile_by_build_id): Update.
15803 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15804 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15806 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15807 (expand_symtab_containing_pc, lookup_objfile_from_block)
15808 (lookup_static_symbol, basic_lookup_transparent_type)
15809 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15810 (find_line_symtab, info_sources_command)
15811 (default_collect_symbol_completion_matches_break_on)
15812 (make_source_files_completion_list, find_main_name): Update.
15813 * symmisc.c (print_symbol_bcache_statistics)
15814 (print_objfile_statistics, maintenance_print_symbols)
15815 (maintenance_print_msymbols, maintenance_print_objfiles)
15816 (maintenance_info_symtabs, maintenance_check_symtabs)
15817 (maintenance_expand_symtabs, maintenance_info_line_tables):
15819 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15820 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15821 (map_overlay_command, unmap_overlay_command)
15822 (simple_overlay_update, expand_symtabs_matching)
15823 (map_symbol_filenames): Update.
15824 * symfile-debug.c (set_debug_symfile): Update.
15825 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15827 * source.c (select_source_symtab, forget_cached_source_info):
15829 * solib.c (solib_read_symbols): Update.
15830 * solib-spu.c (append_ocl_sos): Update.
15831 * psymtab.c (maintenance_print_psymbols)
15832 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15833 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15834 * printcmd.c (info_symbol_command): Update.
15835 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15837 * objfiles.h (class all_objfiles): Remove.
15838 * objfiles.c (have_partial_symbols, have_full_symbols)
15839 (have_minimal_symbols, qsort_cmp, update_section_map)
15840 (shared_objfile_contains_address_p)
15841 (default_iterate_over_objfiles_in_search_order): Update.
15842 * objc-lang.c (info_selectors_command, info_classes_command)
15843 (find_methods): Update.
15844 * minsyms.c (find_solib_trampoline_target): Update.
15845 * maint.c (maintenance_info_sections)
15846 (maintenance_translate_address, count_symtabs_and_blocks):
15848 * main.c (captured_main_1): Update.
15849 * linux-thread-db.c (try_thread_db_load_from_pdir)
15850 (has_libpthread): Update.
15851 * linespec.c (iterate_over_all_matching_symtabs)
15852 (search_minsyms_for_name): Update.
15853 * jit.c (jit_find_objf_with_entry_addr): Update.
15854 * hppa-tdep.c (find_unwind_entry)
15855 (hppa_lookup_stub_minimal_symbol): Update.
15856 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15858 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15859 (elf_gnu_ifunc_resolve_by_got): Update.
15860 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15861 * dwarf-index-write.c (save_gdb_index_command): Update.
15862 * cp-support.c (add_symbol_overload_list_qualified): Update.
15863 * breakpoint.c (create_overlay_event_breakpoint)
15864 (create_longjmp_master_breakpoint)
15865 (create_std_terminate_master_breakpoint)
15866 (create_exception_master_breakpoint): Update.
15867 * blockframe.c (find_pc_partial_function): Update.
15868 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15869 (ada_collect_symbol_completion_matches)
15870 (ada_add_global_exceptions): Update.
15872 2019-01-17 Tom Tromey <tom@tromey.com>
15874 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15876 (solib_target_parse_libraries): Change return type.
15877 (library_list_start_segment, library_list_start_section)
15878 (library_list_end_library, library_list_start_library); Update.
15879 (solib_target_free_library_list): Remove.
15880 (solib_target_parse_libraries): Remove cleanup. Change return
15882 (solib_target_current_sos): Update.
15884 2019-01-17 Tom Tromey <tromey@bapiya>
15886 * valprint.c: Replace "the the" with "the".
15887 * symtab.c: Replace "the the" with "the".
15888 * solib.c: Replace "the the" with "the".
15889 * solib-dsbt.c: Replace "the the" with "the".
15890 * linespec.c: Replace "the the" with "the".
15891 * dwarf2loc.h: Replace "the the" with "the".
15892 * amd64-windows-tdep.c: Replace "the the" with "the".
15893 * aarch64-tdep.c: Replace "the the" with "the".
15895 2019-01-16 Keith Seitz <keiths@redhat.com>
15898 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15899 <builder>: Rename to ..
15900 <m_builder>: ... this and make private.
15901 (dwarf2_cu::get_builder): New method. Change all users of
15902 `builder' to use this method.
15903 (dwarf2_start_symtab): Move to ...
15904 (dwarf2_cu::start_symtab): ... here. Update all callers
15905 (setup_type_unit_groups): Move to ...
15906 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15908 (dwarf2_cu::reset_builder): New method.
15909 (process_full_compunit, process_full_type_unit): Use
15910 dwarf2_cu::reset_builder.
15911 (follow_die_offset): Record the ancestor CU if it is different
15912 from the followed DIE's CU.
15913 (follow_die_sig_1): Likewise.
15915 2019-01-15 Tom Tromey <tom@tromey.com>
15917 * remote.c (class remote_state) <buf>: Now a char_vector.
15918 <buf_size>: Remove.
15919 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15921 (remote_target::getpkt_or_notif_sane_1)
15922 (remote_target::getpkt_sane)
15923 (remote_target::getpkt_or_notif_sane): Likewise.
15924 (class remote_target) <putpkt>: New overload.
15925 (remote_target::read_frame): Change type of "buf_p". Remove
15926 sizeof_p parameter.
15927 (packet_ok): New overload.
15928 (packet_check_result): New overload.
15931 2019-01-14 Tom Tromey <tom@tromey.com>
15933 * remote-notif.c (handle_notification, remote_notif_ack)
15934 (remote_notif_parse): Make "buf" const.
15935 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15937 (remote_notif_parse, remote_notif_ack, handle_notification):
15939 * remote.c (remote_notif_stop_parse): Make "buf" const.
15940 (remote_target::remote_parse_stop_reply): Make "buf" const.
15941 (remote_notif_stop_ack): Make "buf" const.
15943 2019-01-14 Tom Tromey <tom@tromey.com>
15945 * remote.c (remote_console_output): Make parameter const.
15947 2019-01-14 Tom Tromey <tom@tromey.com>
15949 * target-debug.h (target_debug_print_signals): Constify.
15950 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15951 * procfs.c (procfs_target::pass_signals): Update.
15952 * linux-nat.c (linux_nat_target::pass_signals): Update.
15953 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15954 * target-delegates.c: Rebuild.
15955 * remote.c (remote_target::program_signals): Update.
15956 (remote_target::pass_signals): Update.
15957 * target.c (target_pass_signals): Constify argument.
15958 (target_program_signals): Likewise.
15959 * target.h (struct target_ops) <pass_signals, program_signals>:
15961 (target_pass_signals, target_program_signals): Constify argument.
15963 2019-01-14 Tom Tromey <tom@tromey.com>
15966 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15968 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15970 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15972 * rs6000-tdep.c: Include reggroups.h.
15973 (IS_V_ALIAS_PSEUDOREG): Define.
15974 (rs6000_register_name): Return names for the "vX" aliases.
15975 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15976 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15977 aliases. Call default_register_reggroup_p for all other
15979 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15981 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15982 Handle "vX" aliases.
15983 (v_alias_pseudo_register_collect): New function.
15984 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15985 (rs6000_gdbarch_init): Initialize "vX" aliases as
15986 pseudo-registers. Restore registration of
15987 rs6000_pseudo_register_reggroup_p with
15988 set_tdesc_pseudo_register_reggroup_p.
15990 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15992 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15993 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15994 set_gdbarch_num_pseudo_regs.
15996 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15998 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15999 Remove arg prefixname, add do_set and do_show.
16000 Add member functions set_list and show_list.
16001 * cli/cli-style.c (class cli_style_option): Update accordingly.
16002 (style_set_list): Move to file scope.
16003 (style_show_list): Likewise.
16004 (set_style): Call help_list.
16005 (show_style): Call cmd_show_list.
16006 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16007 Update to use the new macro.
16009 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16011 * ada-lang.c (_initialize_ada_language): Expand the help text
16012 for the "catch exception" command.
16014 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16016 * symtab.c (matching_obj_sections): Initialize obj,
16017 declare it closer to its usage.
16019 2019-01-10 Tom Tromey <tom@tromey.com>
16021 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16022 (basic_inf_threads_range): Remove.
16023 (inf_threads_range, inf_non_exited_threads_range)
16024 (safe_inf_threads_range): Use next_adapter.
16026 2019-01-10 Keith Seitz <keiths@redhat.com>
16030 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16031 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16033 2019-01-10 Keith Seitz <keiths@redhat.com>
16037 * dictionary.c (pending_to_vector): Remove.
16038 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16039 Remove _1 suffix, replacing functions of the same name. Update
16041 (dict_create_hashed, dict_create_hashed_expandable)
16042 (dict_create_linear, dict_create_linear_expandable, dict_free)
16043 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16044 Make functions static.
16046 2019-01-10 Keith Seitz <keiths@redhat.com>
16050 * dictionary.h (struct dictionary): Replace declaration with
16052 (dict_create_hashed, dict_create_hashed_expandable)
16053 (dict_create_linear, dict_create_linear_expandable)
16054 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16055 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16056 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16057 taking multidictionary argument.
16058 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16059 * block.h (struct block) <dict>: Change to multidictionary
16060 and rename `multidict'.
16061 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16062 symmisc.c: Update all dictionary references to multidictionary.
16064 2019-01-10 Keith Seitz <keiths@redhat.com>
16068 * dictionary.c: Include unordered_map.
16069 (pending_to_vector): New function.
16070 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16071 Rewrite the non-"_1" functions to take vector instead
16073 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16074 "new" _1 versions of the same name.
16075 (multidictionary): Define.
16076 (std::hash<enum language): New definition.
16077 (collate_pending_symbols_by_language, mdict_create_hashed)
16078 (mdict_create_hashed_expandable, mdict_create_linear)
16079 (mdict_create_linear_expandable, mdict_free)
16080 (find_language_dictionary, create_new_language_dictionary)
16081 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16082 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16083 (mdict_size, mdict_empty): New functions.
16084 * dictionary.h (mdict_iterator): Define.
16086 2019-01-10 Pedro Alves <palves@redhat.com>
16088 * breakpoint.c (read_uploaded_action)
16089 (create_tracepoint_from_upload): Adjust to use
16090 gdb::unique_xmalloc_ptr.
16091 * ctf.c (ctf_write_uploaded_tp):
16092 (SET_ARRAY_FIELD): Use emplace_back.
16093 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16094 * tracefile-tfile.c (tfile_write_uploaded_tp):
16095 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16096 gdb::unique_xmalloc_ptr.
16097 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16098 at_string, cond_string, cmd_strings>: Replace char pointers
16099 with gdb::unique_xmalloc_ptr.
16101 2019-01-10 Pedro Alves <palves@redhat.com>
16103 * solib-target.c (library_list_start_library): Don't xstrdup name.
16105 2019-01-10 Pedro Alves <palves@redhat.com>
16107 * mdebugread.c (parse_partial_symbols): Use
16108 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16110 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16112 * linux-fork.c (scoped_switch_fork_info)
16113 <~scoped_switch_fork_info>: Fix incorrect variable name.
16115 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16117 * linux-fork.c (scoped_switch_fork_info)
16118 <scoped_switch_fork_info>: Make explicit.
16119 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16121 2019-01-10 Tom Tromey <tom@tromey.com>
16123 * objfiles.h (objfile::reset_psymtabs): Update.
16124 * objfiles.c (objfile::objfile): Update.
16125 * psymtab.h (psymtab_storage::obstack): Update.
16126 (psymtab_storage::m_obstack): Use gdb::optional.
16127 (class psymtab_storage): Update comment. Remove objfile
16129 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16131 2019-01-10 Tom Tromey <tom@tromey.com>
16133 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16134 <free_psymtabs>: Now private.
16135 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16136 (allocate_psymtab): Use new method.
16138 2019-01-10 Tom Tromey <tom@tromey.com>
16140 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16141 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16142 * mdebugread.c (parse_partial_symbols): Use
16143 allocate_dependencies.
16144 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16145 allocate_dependencies.
16146 (process_psymtab_comp_unit_reader)
16147 (build_type_psymtab_dependencies): Likewise.
16148 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16150 2019-01-10 Tom Tromey <tom@tromey.com>
16152 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16153 PSYMBOL_SET_LANGUAGE.
16154 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16156 2019-01-10 Tom Tromey <tom@tromey.com>
16158 * psymtab.h (psymtab_storage::obstack): New method.
16159 <m_obstack>: Rename from obstack; now private.
16160 * psymtab.c (psymtab_storage): Update.
16161 * dwarf2read.c (create_addrmap_from_index)
16162 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16165 2019-01-10 Tom Tromey <tom@tromey.com>
16167 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16168 * objfiles.h (objfile::reset_psymtabs): New method.
16170 2019-01-10 Tom Tromey <tom@tromey.com>
16172 * symmisc.c (print_symbol_bcache_statistics): Update.
16173 (print_objfile_statistics): Update.
16174 * symfile.c (reread_symbols): Update.
16175 * psymtab.h (class psymtab_storage): New.
16176 * psymtab.c (psymtab_storage): New constructor.
16177 (~psymtab_storage): New destructor.
16178 (require_partial_symbols): Update.
16179 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16180 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16181 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16182 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16183 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16184 (start_psymtab_common, end_psymtab_common)
16185 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16186 (allocate_psymtab): Update.
16187 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16189 (dump_psymtab_addrmap, maintenance_print_psymbols)
16190 (maintenance_check_psymtabs): Update.
16191 (class objfile_psymtabs): Move to objfiles.h.
16192 * psympriv.h (discard_psymtab): Now inline.
16193 (psymtab_discarder::psymtab_discarder): Update.
16194 (psymtab_discarder::~psymtab_discarder): Update.
16195 (ALL_OBJFILE_PSYMTABS): Rewrite.
16196 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16197 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16199 <partial_symtabs>: New field.
16200 (class objfile_psymtabs): Move from psymtab.h. Update.
16201 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16203 (objfile::~objfile): Don't destroy psymbol_cache.
16204 * mdebugread.c (parse_partial_symbols): Update.
16205 * dwarf2read.c (create_addrmap_from_index)
16206 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16207 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16208 (add_partial_subprogram, dwarf2_ranges_read): Update.
16209 * dwarf-index-write.c (write_address_map)
16210 (write_one_signatured_type, recursively_write_psymbols)
16211 (class debug_names, class debug_names, write_psymtabs_to_index):
16214 2019-01-10 Tom Tromey <tom@tromey.com>
16216 * symtab.h (SYMBOL_SET_NAMES): Update.
16217 (symbol_set_names): Update.
16218 (MSYMBOL_SET_NAMES): Update.
16219 * symtab.c (symbol_set_names): Change argument to be an
16220 objfile_per_bfd_storage.
16221 * psymtab.c (add_psymbol_to_bcache): Update.
16222 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16224 2019-01-10 Tom Tromey <tom@tromey.com>
16226 * symtab.c (create_demangled_names_hash): Change argument to be an
16227 objfile_per_bfd_storage.
16228 (symbol_set_names): Update.
16230 2019-01-10 Tom Tromey <tom@tromey.com>
16232 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16234 * psymtab.c (init_psymbol_list): Do nothing if already called.
16235 * psympriv.h (init_psymbol_list): Add comment.
16236 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16238 * dbxread.c (dbx_symfile_read): Unconditionally call
16241 2019-01-10 Tom Tromey <tom@tromey.com>
16243 * xcoffread.c (scan_xcoff_symtab): Update.
16244 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16246 * mdebugread.c (parse_partial_symbols)
16247 (handle_psymbol_enumerators): Update.
16248 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16249 * dbxread.c (read_dbx_symtab): Update.
16250 * psympriv.h (psymbol_placement): New enum.
16251 (add_psymbol_to_list): Update.
16253 2019-01-10 Tom Tromey <tom@tromey.com>
16255 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16256 static_psymbols parameters.
16257 (scan_xcoff_symtab): Update.
16258 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16259 static_psymbols parameters.
16260 * psympriv.h (start_psymtab_common): Update.
16261 * mdebugread.c (parse_partial_symbols): Update.
16262 * dwarf2read.c (create_partial_symtab): Update.
16263 * dbxread.c (read_dbx_symtab): Update.
16264 (start_psymtab): Remove global_psymbols and static_psymbols
16267 2019-01-10 Tom Tromey <tom@tromey.com>
16269 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16270 * psymtab.c (allocate_psymtab): Add comment.
16271 * psympriv.h (allocate_psymtab): Add comment.
16272 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16274 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16276 2019-01-10 Tom Tromey <tom@tromey.com>
16278 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16280 * mipsread.c: Include mdebugread.h.
16281 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16283 * elfread.c: Include mdebugread.h.
16285 2019-01-09 Tom Tromey <tom@tromey.com>
16287 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16288 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16289 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16290 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16291 (psym_lookup_symbol, psym_find_last_source_symtab)
16292 (psym_forget_cached_source_info, psym_print_stats)
16293 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16294 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16295 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16296 (psym_find_compunit_symtab_by_address)
16297 (maintenance_print_psymbols, maintenance_info_psymtabs)
16298 (maintenance_check_psymtabs): Use ranged for.
16299 * psymtab.h (class objfile_psymtabs): New.
16300 (require_partial_symbols): Return objfile_psymtabs.
16301 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16303 2019-01-09 Tom Tromey <tom@tromey.com>
16305 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16306 (find_pc_mapped_section, list_overlays_command)
16307 (map_overlay_command, unmap_overlay_command)
16308 (simple_overlay_update): Use all_objfiles.
16309 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16310 * printcmd.c (info_symbol_command): Use all_objfiles.
16311 * objfiles.h (ALL_OBJSECTIONS): Remove.
16312 * maint.c (maintenance_translate_address): Use all_objfiles.
16313 * gcore.c (gcore_create_callback): Use all_objfiles.
16314 (objfile_find_memory_regions): Likewise.
16316 2019-01-09 Tom Tromey <tom@tromey.com>
16318 * symtab.c (find_line_symtab, info_sources_command)
16319 (make_source_files_completion_list): Use objfile_compunits.
16320 * source.c (select_source_symtab): Use objfile_compunits.
16321 * objfiles.h (struct objfile): Update comment.
16322 (ALL_OBJFILES): Remove.
16323 (ALL_FILETABS): Remove.
16324 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16327 2019-01-09 Tom Tromey <tom@tromey.com>
16329 * symmisc.c (print_objfile_statistics, dump_objfile)
16330 (maintenance_print_symbols): Use compunit_filetabs.
16331 * source.c (forget_cached_source_info_for_objfile): Use
16333 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16334 (ALL_FILETABS): Use compunit_filetabs.
16335 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16336 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16338 2019-01-09 Tom Tromey <tom@tromey.com>
16340 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16341 (compunit_filetabs): New.
16342 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16344 (info_sources_command, make_source_files_completion_list): Remove
16346 * symmisc.c (print_objfile_statistics, dump_objfile)
16347 (maintenance_print_symbols): Remove declaration.
16348 (maintenance_info_symtabs): Use compunit_filetabs.
16349 (maintenance_info_line_tables): Likewise.
16350 * source.c (select_source_symtab): Change local variable name.
16351 (forget_cached_source_info_for_objfile): Remove declaration.
16352 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16353 * objfiles.c (objfile_relocate1): Remove declaration.
16354 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16356 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16357 * coffread.c (coff_symtab_read): Remove declaration.
16358 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16361 2019-01-09 Tom Tromey <tom@tromey.com>
16363 * symtab.c (lookup_objfile_from_block)
16364 (find_pc_sect_compunit_symtab, search_symbols)
16365 (default_collect_symbol_completion_matches_break_on): Use
16367 * objfiles.h (ALL_COMPUNITS): Remove.
16368 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16369 * cp-support.c (add_symbol_overload_list_qualified): Use
16371 * ada-lang.c (ada_collect_symbol_completion_matches)
16372 (ada_add_global_exceptions): Use objfile_compunits.
16374 2019-01-09 Tom Tromey <tom@tromey.com>
16376 * source.c (select_source_symtab)
16377 (forget_cached_source_info_for_objfile): Remove declaration.
16378 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16380 * maint.c (count_symtabs_and_blocks): Remove declaration.
16381 * cp-support.c (add_symbol_overload_list_qualified): Remove
16383 * coffread.c (coff_symtab_read): Remove declaration.
16384 * symtab.c (lookup_symbol_in_objfile_symtabs)
16385 (basic_lookup_transparent_type_1): Use objfile_compunits.
16386 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16387 (info_sources_command, search_symbols)
16388 (default_collect_symbol_completion_matches_break_on)
16389 (make_source_files_completion_list): Remove declaration.
16390 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16391 (ada_collect_symbol_completion_matches)
16392 (ada_add_global_exceptions): Remove declaration.
16393 * linespec.c (iterate_over_all_matching_symtabs): Use
16395 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16396 (class objfile_compunits): New.
16397 (ALL_COMPUNITS): Use objfile_compunits.
16398 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16399 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16401 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16403 2019-01-09 Tom Tromey <tom@tromey.com>
16405 * symtab.c (search_symbols)
16406 (default_collect_symbol_completion_matches_break_on): Use
16408 * ada-lang.c (ada_lookup_simple_minsym)
16409 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16410 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16411 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16413 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16414 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16415 * objc-lang.c (find_methods): Use objfile_msymbols.
16416 (info_selectors_command, info_classes_command): Likewise.
16417 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16418 * objfiles.h (class objfile_msymbols): New.
16419 (ALL_OBJFILE_MSYMBOLS): Remove.
16420 (ALL_MSYMBOLS): Remove.
16422 2019-01-09 Tom Tromey <tom@tromey.com>
16424 * common/next-iterator.h (next_adapter): Add Iterator template
16426 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16427 (class all_objfiles_safe): New.
16428 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16429 * objfiles.c (put_objfile_before): Update comment.
16430 (add_separate_debug_objfile): Likewise.
16431 (free_all_objfiles): Use all_objfiles_safe.
16432 (objfile_purge_solibs): Likewise.
16434 2019-01-09 Tom Tromey <tom@tromey.com>
16436 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16437 (expand_symtab_containing_pc, lookup_static_symbol)
16438 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16439 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16441 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16442 * breakpoint.c (create_overlay_event_breakpoint)
16443 (create_longjmp_master_breakpoint)
16444 (create_std_terminate_master_breakpoint)
16445 (create_exception_master_breakpoint): Use all_objfiles.
16446 * linux-thread-db.c (try_thread_db_load_from_pdir)
16447 (has_libpthread): Use all_objfiles.
16448 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16449 * linespec.c (iterate_over_all_matching_symtabs)
16450 (search_minsyms_for_name): Use all_objfiles.
16451 * maint.c (maintenance_info_sections): Use all_objfiles.
16452 * main.c (captured_main_1): Use all_objfiles.
16453 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16454 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16455 * guile/scm-pretty-print.c
16456 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16457 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16458 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16459 (maintenance_print_msymbols): Use all_objfiles.
16460 * source.c (select_source_symtab): Use all_objfiles.
16461 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16462 * symfile.c (remove_symbol_file_command)
16463 (expand_symtabs_matching, map_symbol_filenames): Use
16465 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16467 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16468 * objc-lang.c (find_methods): Use all_objfiles.
16469 * objfiles.c (have_partial_symbols, have_full_symbols)
16470 (have_minimal_symbols, qsort_cmp)
16471 (default_iterate_over_objfiles_in_search_order): Use
16473 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16474 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16475 (maintenance_check_psymtabs): Use all_objfiles.
16476 (ALL_PSYMTABS): Remove.
16477 * compile/compile-object-run.c (do_module_cleanup): Use
16479 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16480 * cp-support.c (add_symbol_overload_list_qualified): Use
16482 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16484 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16485 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16487 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16488 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16489 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16491 * solib.c (solib_read_symbols): Use all_objfiles
16493 2019-01-09 Tom Tromey <tom@tromey.com>
16495 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16496 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16498 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16499 * symmisc.c (print_symbol_bcache_statistics)
16500 (print_objfile_statistics, maintenance_print_objfiles)
16501 (maintenance_info_symtabs, maintenance_check_symtabs)
16502 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16504 * source.c (forget_cached_source_info): Use all_objfiles.
16505 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16506 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16507 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16508 * objfiles.c (update_section_map): Use all_objfiles.
16509 (shared_objfile_contains_address_p): Likewise.
16510 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16511 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16513 2019-01-09 Tom Tromey <tom@tromey.com>
16515 * common/next-iterator.h: New file.
16516 * objfiles.h (class all_objfiles): New.
16517 (struct objfile_iterator): New.
16519 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16521 * NEWS: Move the description of the changed "frame", "select-frame",
16522 and "info frame" commands to the Changed commands section.
16524 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16526 * gdbtypes.c (check_stub_method_group): Remove handling of old
16528 * linespec.c (find_methods): Likewise.
16529 * stabsread.c (read_member_functions): Likewise.
16530 * valops.c (search_struct_method): Likewise.
16531 (value_struct_elt_for_reference): Likewise.
16532 * NEWS: Mention this change.
16534 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16536 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16537 print_source_lines.
16538 * source.c (print_source_lines_base): Update line number check.
16539 (print_source_lines): New function.
16540 (source_lines_range::source_lines_range): New function.
16541 * source.h (class source_lines_range): New class.
16542 (print_source_lines): New declaration.
16544 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16546 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16548 2019-01-08 Tom Tromey <tom@tromey.com>
16549 Simon Marchi <simon.marchi@ericsson.com>
16552 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16553 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16554 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16555 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16556 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16557 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16559 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16561 * source.c (select_source_symtab): Move header comment to
16562 declaration in source.h.
16563 (forget_cached_source_info_for_objfile): Likewise.
16564 (forget_cached_source_info): Likewise.
16565 (identify_source_line): Likewise.
16566 * source.h (identify_source_line): Move declaration from symtab.h
16567 and add comment from source.c
16568 (print_source_lines): Likewise.
16569 (forget_cached_source_info_for_objfile): Likewise.
16570 (forget_cached_source_info): Likewise.
16571 (select_source_symtab): Likewise.
16572 (enum print_source_lines_flag): Move definition from symtab.h.
16573 * symtab.h (identify_source_line): Move declaration to source.h.
16574 (print_source_lines): Likewise.
16575 (forget_cached_source_info_for_objfile): Likewise.
16576 (forget_cached_source_info): Likewise.
16577 (select_source_symtab): Likewise.
16578 (enum print_source_lines_flag): Move definition to source.h.
16579 * tui/tui-hooks.c: Add 'source.h' include.
16581 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16583 * source.c (print_source_lines_base): Handle requests to print
16584 reverse line number sequences, and guard against empty lines
16587 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16589 * source.c (print_source_lines_base): Fix skip of '\r' if next
16592 2019-01-06 Tom Tromey <tom@tromey.com>
16594 * c-exp.y (struct c_parse_state) <macro_original_text,
16595 expansion_obstack>: New member.
16596 (macro_original_text, expansion_obstack): Remove globals.
16597 (scan_macro_expansion, scanning_macro_expansion)
16598 (finished_macro_expansion): Update.
16599 (scan_macro_cleanup): Remove.
16600 (yylex, c_parse): Update.
16602 2019-01-06 Tom Tromey <tom@tromey.com>
16604 * c-exp.y (struct c_parse_state) <strings>: New member.
16605 (operator_stoken): Update.
16607 2019-01-06 Tom Tromey <tom@tromey.com>
16609 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16610 (union type_stack_elt) <typelist_val>: Now a pointer to
16612 (type_stack_cleanup): Don't declare.
16613 (push_typelist): Update.
16614 * parse.c (pop_typelist): Return a std::vector.
16615 (push_typelist): Take a std::vector.
16616 (follow_types): Update. Do not free args.
16617 (type_stack_cleanup): Remove.
16618 * c-exp.y (struct c_parse_state): New.
16619 (cpstate): New global.
16620 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16621 (nonempty_typelist): Update.
16622 (func_mod): Create a new vector.
16623 (c_parse): Create a c_parse_state.
16624 (check_parameter_typelist): Do not delete params.
16625 (function_method): Update. Do not delete type_list.
16627 2019-01-06 Tom Tromey <tom@tromey.com>
16630 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16632 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16633 (print_return_value): Likewise.
16635 2019-01-05 Tom Tromey <tom@tromey.com>
16637 * contrib/cleanup_check.py: Remove.
16638 * contrib/gcc-with-excheck: Remove.
16639 * contrib/exsummary.py: Remove.
16640 * contrib/excheck.py: Remove.
16642 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16644 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16645 NULL. Initialize tpprev to NULL instead of assigning it
16646 to NULL on the next statement.
16647 * windows-nat.c (windows_delete_thread): Remove check for
16648 main_thread_id before printing thread exit notifications.
16649 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16650 Remove thread ID check against main_thread_id.
16651 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16652 windows_delete_thread.
16653 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16655 2019-01-04 Tom Tromey <tom@tromey.com>
16657 * compile/compile.c (_initialize_compile): Use upper case for
16658 metasyntactic variables.
16659 * symmisc.c (_initialize_symmisc): Use upper case for
16660 metasyntactic variables.
16661 * psymtab.c (_initialize_psymtab): Use upper case for
16662 metasyntactic variables.
16663 * demangle.c (demangle_command): Use upper case for metasyntactic
16665 (_initialize_demangler): Likewise.
16666 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16669 2019-01-03 Tom Tromey <tom@tromey.com>
16671 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16673 2019-01-03 Tom Tromey <tom@tromey.com>
16675 * python/py-symtab.c (salpy_str): Update.
16676 (struct salpy_sal_object) <symtab>: Now a PyObject.
16677 (salpy_dealloc): Update.
16678 (del_objfile_sal): Use gdbpy_ref.
16680 2019-01-03 Tom Tromey <tom@tromey.com>
16682 * python/py-type.c (convert_field): Use new_reference. Return
16684 (make_fielditem): Return gdbpy_ref.
16685 (typy_fields): Update.
16686 (typy_getitem): Update.
16687 (field_name): Return gdbpy_ref. Use new_reference.
16688 (typy_iterator_iternext): Update.
16690 2019-01-03 Tom Tromey <tom@tromey.com>
16692 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16694 2019-01-03 Tom Tromey <tom@tromey.com>
16696 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16697 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16698 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16699 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16700 (pspy_set_type_printers): Likewise.
16701 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16702 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16703 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16704 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16705 (objfpy_set_type_printers): Likewise.
16707 2019-01-03 Tom Tromey <tom@tromey.com>
16709 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16710 (gdbpy_print_stack): Use gdbpy_err_fetch.
16711 * python/python-internal.h (class gdbpy_err_fetch): New class.
16712 (class gdbpy_enter) <m_error_type, m_error_value,
16713 m_error_traceback>: Remove.
16714 <m_error>: New member.
16715 (gdbpy_exception_to_string): Don't declare.
16716 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16717 * python/py-value.c (convert_value_from_python): Use
16719 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16720 gdbpy_exception_to_string.
16721 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16722 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16725 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16727 * linux-nat.c (delete_lwp_cleanup): Delete.
16728 (struct lwp_deleter): New struct.
16729 (lwp_info_up): New typedef.
16730 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16733 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16735 * linux-fork.c (class scoped_switch_fork_info): New class.
16736 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16738 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16740 * valops.c (find_overload_match): Remove use of null_cleanup, and
16741 calls to do_cleanups.
16743 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16745 * compile/compile-cplus-types.c
16746 (compile_cplus_instance::decl_name): Handle changes to
16748 * cp-support.c (cp_func_name): Update header comment, update
16750 * cp-support.h (cp_func_name): Update return type in declaration.
16751 * valops.c (find_overload_match): Move temp_func local to top
16752 level of function and change its type. Use temp_func to hold and
16753 delete temporary string obtained from cp_func_name.
16755 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16757 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16758 gdb::char_vector, remove cleanup, and update uses of `msg`.
16760 2019-01-03 Jim Wilson <jimw@sifive.com>
16762 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16764 2019-01-02 Tom Tromey <tom@tromey.com>
16766 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16767 (tdesc_parse_xml): Remove cleanups.
16768 * target-descriptions.h (make_cleanup_free_target_description):
16770 (target_desc_deleter): New struct.
16771 (target_desc_up): New typedef.
16772 * target-descriptions.c (target_desc_deleter::operator()): Rename
16773 from free_target_description.
16774 (make_cleanup_free_target_description): Remove.
16776 2019-01-02 Tom Tromey <tom@tromey.com>
16778 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16779 constructor, destructor.
16780 (linespec_parser): Remove typedef.
16781 (~linespec_parser): Rename from linespec_parser_delete.
16782 (linespec_lex_to_end, linespec_complete_label)
16783 (linespec_complete): Update.
16784 (decode_line_full): Remove cleanups.
16785 (decode_line_1): Update.
16787 2019-01-02 Tom Tromey <tom@tromey.com>
16789 * python/python-internal.h (inferior_to_inferior_object): Change
16791 * python/py-exitedevent.c (create_exited_event_object): Update.
16792 * python/py-inferior.c (inferior_to_inferior_object): Return
16794 (python_new_inferior, python_inferior_deleted)
16795 (thread_to_thread_object, delete_thread_object)
16796 (build_inferior_list, gdbpy_selected_inferior): Update.
16797 * python/py-infthread.c (create_thread_object): Update. Also fail
16798 if inferior_to_inferior_object fails.
16800 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16802 * inferior.h (class inferior) <displaced_step_state>: New field.
16803 * infrun.h (struct displaced_step_state): Move here from
16804 infrun.c. Initialize fields, add constructor.
16805 <inf>: Remove field.
16806 <reset>: New method.
16807 * infrun.c (struct displaced_step_inferior_state): Move to
16809 (displaced_step_inferior_states): Remove.
16810 (get_displaced_stepping_state): Adust.
16811 (displaced_step_in_progress_any_inferior): Adjust.
16812 (displaced_step_in_progress_thread): Adjust.
16813 (displaced_step_in_progress): Adjust.
16814 (add_displaced_stepping_state): Remove.
16815 (get_displaced_step_closure_by_addr): Adjust.
16816 (remove_displaced_stepping_state): Remove.
16817 (infrun_inferior_exit): Call displaced_step_state.reset.
16818 (use_displaced_stepping): Don't check for NULL.
16819 (displaced_step_prepare_throw): Call
16820 get_displaced_stepping_state.
16821 (displaced_step_fixup): Don't check for NULL.
16822 (prepare_for_detach): Don't check for NULL.
16824 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16826 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16827 in case of call that did not complete.
16829 2019-01-02 Andrey Utkin <autkin@undo.io>
16831 * symfile.c (find_separate_debug_file): Fix search of debug files for
16834 2019-01-02 Tom Tromey <tom@tromey.com>
16836 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16838 * python/py-frame.c (frapy_older): Remove cast.
16839 (frapy_newer): Likewise.
16840 * python/py-breakpoint.c (local_setattro): Remove cast.
16841 * python/py-arch.c (archpy_name): Remove local variable.
16842 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16844 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16846 * unittests/basic_string_view/element_access/char/empty.cc:
16847 Fix year range in copyright header.
16849 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16851 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16853 <operator==>: Update with for removed field.
16855 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16856 <isa_features>: ...this.
16857 <abi_features>: New field.
16858 (riscv_isa_flen): Update comment.
16859 (riscv_abi_xlen): New declaration.
16860 (riscv_abi_flen): New declaration.
16861 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16863 (riscv_abi_xlen): New function.
16864 (riscv_isa_flen): Update to get answer from isa_features.
16865 (riscv_abi_flen): New function.
16866 (riscv_has_fp_abi): Update to get answer from abi_features.
16867 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16869 (riscv_call_info) <xlen, flen>: Update comment.
16870 (riscv_call_arg_struct): Remove invalid assertions
16871 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16873 (riscv_gdbarch_init): Gather isa features and abi features
16874 separately, ensure both match on the gdbarch when reusing an old
16875 gdbarch. Relax an error check to allow 32-bit abi float to run on
16876 a target with 64-bit float hardware.
16878 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16880 * source.c (search_command_helper): Stop reverse search
16881 when line 1 has been searched.
16883 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16885 * record-full.c (record_full_base_target::close): Rewrite
16886 record_full_core_buf_list free logic.
16888 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16890 * break-catch-syscall.c (print_one_catch_syscall): xfree
16893 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16895 * top.c (print_gdb_version): Update Copyright year in version
16898 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16900 Update copyright year range in all GDB files.
16902 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16904 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16906 For older changes see ChangeLog-2018.
16912 version-control: never