1 2019-12-20 Tom Tromey <tom@tromey.com>
3 * tui/tui.h (tui_show_source): Remove parameters.
4 * tui/tui.c (tui_show_source): Remove parameters.
5 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
7 2019-12-20 Tom Tromey <tom@tromey.com>
9 * tui/tui.c (tui_show_source): Update.
10 * tui/tui-winsource.c (tui_display_main): Update.
11 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
13 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
15 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
17 2019-12-20 Tom Tromey <tom@tromey.com>
20 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
21 (tui_redisplay_readline): Use rl_display_prompt.
22 (tui_prep_terminal): Update.
24 2019-12-19 Christian Biesinger <cbiesinger@google.com>
26 * configure: Regenerate.
27 * configure.ac: Quote variable arguments of test.
28 * gdbsupport/common.m4: Likewise.
30 2019-12-19 Christian Biesinger <cbiesinger@google.com>
32 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
35 2019-12-19 Christian Biesinger <cbiesinger@google.com>
37 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
38 log10 to double to fix Solaris 11 with gcc 5.5.
40 2019-12-19 Christian Biesinger <cbiesinger@google.com>
42 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
45 2019-12-19 Tom Tromey <tromey@adacore.com>
47 * ui-out.h (enum class field_kind): Fix comment.
49 2019-12-11 Tom Tromey <tromey@adacore.com>
51 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
53 2019-12-18 Tom Tromey <tromey@adacore.com>
56 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
57 type on macOS. Add comment.
59 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
61 * c-lang.c (c_get_string, asm_language_defn): Remove space
64 2019-12-18 Tom Tromey <tromey@adacore.com>
67 * ui-out.c (ui_out::vmessage): Update.
68 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
70 (string_field): Update.
71 (signed_field): Update.
73 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
75 * top.c (print_gdb_configuration): Adjust indentation.
77 2019-12-17 Christian Biesinger <cbiesinger@google.com>
79 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
81 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
83 * tui/tui-layout.h (class tui_layout_base): Add virtual
86 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
88 * infcmd.c (prepare_one_step): Step over skipped inline functions.
89 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
90 (process_event_stop_test): Keep stepping over skipped inline functions.
92 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
94 * jit.c (struct gdb_block) <next>: Remove field.
95 (struct gdb_symtab) <~gdb_symtab>: Remove.
96 <blocks>: Change type to std::forward_list<gdb_block>.
97 (compare_block): Remove.
98 (jit_block_open_impl): Adjust to std::forward_list. Place the new
99 block at the beginning, don't mind about sorting.
100 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
103 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
105 * jit.c (struct gdb_block): Add constructor, initialize
106 real_block and next fields.
107 <name>: Change type to gdb::unique_xmalloc_ptr.
108 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
109 (jit_block_open_impl): Allocate gdb_block with new.
110 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
112 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
114 * jit.c: Include forward_list.
115 (struct gdb_symtab) <next>: Remove field.
116 (struct gdb_object) <symtabs>: Change type to
117 std::forward_list<gdb_symtab>.
118 (jit_object_open_impl): Allocate gdb_object with new.
119 (jit_symtab_open_impl): Adjust to std::forward_list.
120 (finalize_symtab): Don't delete symtab.
121 (jit_object_close_impl): Adjust to std::forward_list. Free
122 gdb_object with delete.
124 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
126 * jit.c (struct gdb_symtab): Add constructor, destructor,
128 <linetable>: Change type to unique_xmalloc_ptr.
129 <file_name>: Change type to std::string.
130 (jit_symtab_open_impl): Allocate gdb_symtab with new.
131 (jit_symtab_line_mapping_add_impl): Adjust.
132 (finalize_symtab): Adjust, call delete on stab.
134 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
136 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
138 2019-12-16 Tom Tromey <tromey@adacore.com>
140 * windows-nat.c (windows_nat_target::attach): Update.
141 * remote.c (extended_remote_target::attach): Update.
142 * procfs.c (procfs_target::attach): Update.
143 * nto-procfs.c (nto_procfs_target::attach): Update.
144 (nto_procfs_target::create_inferior): Update.
145 * inf-ptrace.c (inf_ptrace_target::attach): Update.
146 * gnu-nat.c (gnu_nat_target::attach): Update.
147 (gnu_nat_target::detach): Update.
148 * darwin-nat.c (darwin_nat_target::attach): Update.
149 * corefile.c (get_exec_file): Constify result. Remove extraneous
151 * bsd-kvm.c (bsd_kvm_target_open): Update.
152 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
154 2019-12-16 Christian Biesinger <cbiesinger@google.com>
156 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
157 (we no longer need to include time.h before pathmax.h)
159 2019-12-15 Christian Biesinger <cbiesinger@google.com>
161 * ada-exp.y (write_ambiguous_var): Update.
162 * coffread.c (process_coff_symbol): Update.
163 * ctfread.c (ctf_add_enum_member_cb): Update.
164 (new_symbol): Update.
165 * dwarf2read.c (fixup_go_packaging): Update.
166 (new_symbol): Update.
167 * language.c (language_alloc_type_symbol): Update.
168 * mdebugread.c (new_symbol): Update.
169 * minsyms.c (minimal_symbol_reader::record_full): Update.
170 * psymtab.c (add_psymbol_to_bcache): Update.
171 * stabsread.c (define_symbol): Update.
172 (read_enum_type): Update.
173 * symtab.c (symbol_set_language): Make this a member function...
174 (general_symbol_info::set_language): ... here.
175 * symtab.h (struct general_symbol_info) <set_language>: New function.
176 (SYMBOL_SET_LANGUAGE): Remove.
177 (symbol_set_language): Remove.
179 2019-12-15 Christian Biesinger <cbiesinger@google.com>
181 * ada-lang.c (ada_add_block_symbols): Update.
182 (ada_collect_symbol_completion_matches): Update.
183 * ax-gdb.c (gen_expr): Update.
184 * block.c (block_lookup_symbol): Update.
185 (block_lookup_symbol_primary): Update.
186 (block_find_symbol): Update.
187 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
188 * dbxread.c (process_one_symbol): Update.
189 * dictionary.c (insert_symbol_hashed): Update.
190 (collate_pending_symbols_by_language): Update.
191 (mdict_add_symbol): Update.
192 * dwarf-index-write.c (write_psymbols): Update.
193 * dwarf2read.c (fixup_go_packaging): Update.
194 * findvar.c (read_var_value): Update.
195 * ft32-tdep.c (ft32_skip_prologue): Update.
196 * go-lang.c (go_symbol_package_name): Update.
197 * language.h (scoped_switch_to_sym_language_if_auto::
198 scoped_switch_to_sym_language_if_auto): Update.
199 * linespec.c (find_method): Update.
200 (find_label_symbols_in_block): Update.
201 * mdebugread.c (parse_symbol): Update.
202 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
203 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
204 (minimal_symbol_reader::install): Update.
205 * moxie-tdep.c (moxie_skip_prologue): Update.
206 * parse.c (parse_exp_in_context): Update.
207 * psymtab.c (psymbol_name_matches): Update.
208 (match_partial_symbol): Update.
209 (lookup_partial_symbol): Update.
210 (psymbol_hash): Update.
211 (psymbol_compare): Update.
212 * python/py-framefilter.c (extract_sym): Update.
213 (py_print_single_arg): Update.
214 * stabsread.c (define_symbol): Update.
215 * stack.c (print_frame_arg): Update.
216 (find_frame_funname): Update.
217 (info_frame_command_core): Update.
218 * symfile.c (set_initial_language): Update.
219 * symtab.c (symbol_set_demangled_name): Update.
220 (symbol_get_demangled_name): Update.
221 (symbol_set_language): Update.
222 (symbol_find_demangled_name): Update.
223 (symbol_set_names): Update.
224 (general_symbol_info::natural_name): Update.
225 (general_symbol_info::demangled_name): Update.
226 (general_symbol_info::search_name): Update.
227 (symbol_matches_search_name): Update.
228 (eq_symbol_entry): Update.
229 (iterate_over_symbols): Update.
230 (completion_list_add_symbol): Update.
231 (completion_list_add_msymbol): Update.
232 (completion_list_add_fields): Update.
233 * symtab.h (struct general_symbol_info) <language>: New function.
234 <language>: Rename to...
235 <m_language>: ...this.
236 (SYMBOL_LANGUAGE): Remove.
237 (MSYMBOL_LANGUAGE): Remove.
238 (struct symbol) <ctor>: Update.
239 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
241 2019-12-15 Christian Biesinger <cbiesinger@google.com>
243 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
244 set the language of sym.
245 * language.c (language_alloc_type_symbol): Likewise.
247 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
249 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
251 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
252 * corelow.c: Include 'gdbsupport/pathstuff.h'.
253 (core_target_open): Use 'gdb_abspath'.
254 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
255 'current_directory == NULL' case.
256 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
257 explain what happens when 'current_directory' is NULL.
258 * go32-nat.c (go32_nat_target::wait): Check if
259 'current_directory' is NULL before call to 'chdir'.
260 * source.c (add_path): Use 'gdb_abspath'.
261 * top.c: Include 'gdbsupport/pathstuff.h'.
262 (init_history): Use 'gdb_abspath'.
263 (set_history_filename): Likewise.
264 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
265 (tfile_target_open): Use 'gdb_abspath'.
267 2019-12-13 Tom Tromey <tromey@adacore.com>
269 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
272 2019-12-13 Tom Tromey <tromey@adacore.com>
274 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
276 2019-12-13 Tom Tromey <tromey@adacore.com>
278 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
280 2019-12-13 Tom Tromey <tromey@adacore.com>
282 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
284 2019-12-13 Tom Tromey <tromey@adacore.com>
286 * gdbsupport/common-utils.c (string_printf, string_vprintf)
287 (string_vappendf): Add ARI comment.
289 2019-12-13 Tom Tromey <tromey@adacore.com>
291 * contrib/ari/gdb_ari.sh: Remove "fix" call for
292 floatformat_to_double.
293 * target-float.c (host_float_ops<T>::from_target): Add ARI
296 2019-12-13 Tom Tromey <tromey@adacore.com>
298 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
299 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
301 * event-top.c (handle_sigsegv): Add ARI marker to abort.
303 2019-12-13 Tom Tromey <tromey@adacore.com>
305 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
307 2019-12-13 Tom Tromey <tromey@adacore.com>
309 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
311 2019-12-13 Tom Tromey <tromey@adacore.com>
313 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
316 2019-12-13 Tom Tromey <tromey@adacore.com>
318 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
319 end>: No longer "const".
321 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
323 * jit.c: Fix indentation, replace spaces with tabs where
326 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
328 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
330 2019-12-12 Tom Tromey <tom@tromey.com>
332 * objfiles.h (struct objfile) <partial_symtabs>: Now a
335 2019-12-12 Tom Tromey <tom@tromey.com>
337 * progspace.h (objfile_list): New typedef.
338 (class unwrapping_objfile_iterator)
339 (struct unwrapping_objfile_range): Newl
340 (struct program_space) <objfiles_range>: Change type.
341 <objfiles>: Change return type.
342 <add_objfile>: Change type of "objfile" parameter.
343 <objfiles_list>: Now a list of shared_ptr.
344 * progspace.c (program_space::add_objfile): Change type of
346 (program_space::remove_objfile): Update.
347 * objfiles.h (struct objfile) <~objfile>: Make public.
348 * objfiles.c (objfile::make): Update.
349 (objfile::unlink): Don't call delete.
351 2019-12-12 Tom Tromey <tom@tromey.com>
353 * symfile.c (symbol_file_clear): Update.
354 * progspace.h (struct program_space) <free_all_objfiles>: Declare
356 * progspace.c (program_space::free_all_objfiles): New method.
357 * objfiles.h (free_all_objfiles): Don't declare.
358 * objfiles.c (free_all_objfiles): Move to program_space.
360 2019-12-12 Tom Tromey <tom@tromey.com>
362 * progspace.c (program_space::add_objfile)
363 (program_space::remove_objfile): Update.
364 (program_space::multi_objfile_p): Remove.
365 * objfiles.h (struct objfile) <next>: Remove.
366 * objfiles.c (objfile::objfile): Update.
367 (put_objfile_before): Update.
368 (unlink_objfile): Update.
369 * progspace.h (object_files): Remove.
370 (struct program_space) <objfiles_head>: Remove.
371 <objfiles_list>: New member.
372 <objfiles_range, objfiles_safe_range>: Change type.
373 (objfiles): Change return type.
374 (objfiles_safe): Update.
375 (multi_objfile_p): Rewrite and inline.
376 (object_files): Remove macro.
378 2019-12-12 Tom Tromey <tom@tromey.com>
380 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
382 (basic_safe_range): New class.
384 2019-12-12 Tom Tromey <tom@tromey.com>
386 * progspace.c (program_space::multi_objfile_p): New method.
387 * printcmd.c (info_symbol_command): Update.
388 * maint.c (maintenance_translate_address): Update.
389 * objfiles.h (MULTI_OBJFILE_P): Remove.
390 * progspace.h (struct program_space) <multi_objfile_p>: New
393 2019-12-12 Tom Tromey <tom@tromey.com>
395 * progspace.h (struct program_space) <remove_objfile>: Declare.
396 * progspace.c (program_space::remove_objfile): New method.
397 * objfiles.c (unlink_objfile): Remove.
398 (objfile::unlink): Call remove_objfile.
399 (objfile): Don't call unlink_objfile.
401 2019-12-12 Tom Tromey <tom@tromey.com>
403 * progspace.h (struct program_space) <add_objfile>: Declare
405 * progspace.c (program_space::add_objfile): New method.
406 * objfiles.c (~objfile): Don't unlink objfile.
407 (put_objfile_before): Remove.
408 (add_separate_debug_objfile): Don't call put_objfile_before.
409 (objfile::make): Call add_objfile. Set new_objfiles_available on
410 the per-program-space data.
412 2019-12-12 Tom Tromey <tom@tromey.com>
414 * symfile.c (syms_from_objfile_1): Use objfile_up.
415 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
417 (reread_symbols): Use objfile_up.
418 * solib.c (update_solib_list, reload_shared_libraries_1): Call
420 * objfiles.h (struct objfile) <~objfile>: Now private.
421 <unlink>: New method.
422 (struct objfile_deleter): New.
423 (objfile_up): New typedef.
424 * objfiles.c (objfile::unlink): New method.
425 (free_objfile_separate_debug, free_all_objfiles)
426 (objfile_purge_solibs): Use it.
427 * jit.c (jit_unregister_code): Remove.
428 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
430 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
432 * compile/compile-object-load.c (compile_object_load): Use
435 2019-12-12 Tom Tromey <tom@tromey.com>
437 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
439 * objfiles.h (struct objjfile) <make>: No longer inline.
440 (add_separate_debug_objfile): Don't declare.
441 * objfiles.c (add_separate_debug_objfile): Now static.
442 (objfile::make): Move from objfiles.h. Call
443 add_separate_debug_objfile. Add "parent" parameter.
445 2019-12-12 Tom Tromey <tom@tromey.com>
447 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
448 * objfiles.h (struct objfile): Make constructor private.
449 <make>: New static method.
450 * jit.c (jit_object_close_impl): Update.
452 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
454 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
457 2019-12-12 Tom Tromey <tromey@adacore.com>
459 * xml-support.c (xml_fetch_content_from_file): Don't call
461 * utils.h (class gdb_argv): Remove malloc_failure comment.
462 * utils.c (gdb_argv::reset): Don't call malloc_failure.
464 2019-12-12 Tom Tromey <tromey@adacore.com>
466 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
467 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
468 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
469 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
470 * riscv-ravenscar-thread.c: New file.
471 * riscv-ravenscar-thread.h: New file.
472 * riscv-tdep.c (riscv_gdbarch_init): Call
473 register_riscv_ravenscar_ops.
475 2019-12-12 Tom Tromey <tromey@adacore.com>
477 * gdbsupport/thread-pool.c (set_thread_name): Use
480 2019-12-12 Luis Machado <luis.machado@linaro.org>
482 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
483 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
486 2019-12-11 Tom Tromey <tom@tromey.com>
488 * tui/tui-win.c (tui_set_win_height_command): Call
489 tui_adjust_window_height.
490 (tui_adjust_win_heights, new_height_ok): Remove.
491 * tui/tui-layout.h (tui_adjust_window_height): Declare.
492 * tui/tui-layout.c (tui_adjust_window_height): New function.
494 2019-12-11 Tom Tromey <tom@tromey.com>
496 * tui/tui-win.c (tui_resize_all): Remove code, call
497 tui_apply_current_layout.
499 2019-12-11 Tom Tromey <tom@tromey.com>
501 * tui/tui-layout.h (tui_apply_current_layout): Declare.
502 * tui/tui-layout.c (standard_layouts, applied_layout): New
504 (tui_apply_current_layout): New function.
505 (show_layout): Set applied_layout. Call
506 tui_apply_current_layout.
507 (show_source_command, show_disasm_command)
508 (show_source_disasm_command, show_data)
509 (show_source_or_disasm_and_command): Remove.
510 (initialize_layouts): New function.
511 (_initialize_tui_layout): Call initialize_layouts.
513 2019-12-11 Tom Tromey <tom@tromey.com>
515 * tui/tui-layout.h (class tui_layout_base)
516 (class tui_layout_window, class tui_layout_split): New.
517 * tui/tui-layout.c (tui_get_window_by_name)
518 (tui_layout_window::clone, tui_layout_window::apply)
519 (tui_layout_window::get_sizes, tui_layout_window::add_split)
520 (tui_layout_split::add_window, tui_layout_split::clone)
521 (tui_layout_split::get_sizes)
522 (tui_layout_split::set_weights_from_heights)
523 (tui_layout_split::adjust_size, tui_layout_split::apply): New
525 (tui_layout_split::add_split, tui_layout_split::add_split)
526 (tui_layout_split::set_weights_from_heights)
527 (tui_layout_split::set_weights_from_heights): New functions.
529 2019-12-11 Tom Tromey <tom@tromey.com>
531 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
532 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
533 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
534 * tui/tui-data.h (struct tui_point): Remove.
535 (struct tui_gen_win_info) <origin>: Remove.
537 * tui/tui-command.c (tui_cmd_window::resize): Update.
539 2019-12-11 Tom Tromey <tom@tromey.com>
541 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
543 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
545 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
547 (struct tui_win_info) <min_height>: Implement.
549 2019-12-11 Tom Tromey <tom@tromey.com>
551 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
552 (struct tui_win_info) <can_box>: Update.
554 2019-12-11 Tom Tromey <tom@tromey.com>
556 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
558 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
560 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
562 (struct tui_win_info) <max_height>: Now override.
564 2019-12-11 Joel Brobecker <brobecker@adacore.com>
566 * NEWS: Create a new section for the next release branch.
567 Rename the section of the current branch, now that it has
570 2019-12-11 Joel Brobecker <brobecker@adacore.com>
572 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
573 * version.in: Bump version to 10.0.50.DATE-git.
575 2019-12-11 Tom Tromey <tromey@adacore.com>
578 * gdbsupport/thread-pool.c (set_thread_name): New function.
579 (thread_pool::set_thread_count): Don't call pthread_setname_np.
580 (thread_pool::thread_function): Call set_thread_name.
582 2019-12-11 Tom Tromey <tromey@adacore.com>
584 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
587 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
589 * NEWS: Document -raw-values option and the related setting commands.
590 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
591 only set it on when /r is given.
592 * valprint.c (value_print_option_defs): New element raw-values.
593 * Makefile.in: Add the new file.
595 2019-12-10 Christian Biesinger <cbiesinger@google.com>
597 * gdbsupport/safe-strerror.c: Supress the unused function warning
598 for select_strerror_r.
600 2019-12-10 Christian Biesinger <cbiesinger@google.com>
602 * config.in: Regenerate.
603 * configure: Regenerate.
604 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
605 safe_strerror instead of strerror.
606 * gdbsupport/common.m4: Don't check for strerror.
607 * gdbsupport/safe-strerror.c: Support both the glibc version
608 of strerror_r and the XSI version.
610 2019-12-10 Tom Tromey <tromey@adacore.com>
612 * ada-typeprint.c (print_choices): Use a single "?".
613 (print_variant_part): Print "?" if the discriminant name
616 2019-12-10 George Barrett <bob@bob131.so>
618 Fix scripted probe breakpoints.
619 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
621 (breakpoint_ops_for_event_location_type)
622 (breakpoint_ops_for_event_location): Add function definitions.
623 (break_command_1, trace_command): Use
624 breakpoint_ops_for_event_location.
625 * breakpoint.h (breakpoint_ops_for_event_location): Add function
627 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
628 breakpoint_ops_for_event_location.
629 * python/py-breakpoint.c (bppy_init): Use
630 breakpoint_ops_for_event_location.
632 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
634 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
635 when ranking an lvalue argument for an rvalue parameter.
637 2019-12-08 Wataru Ashihara <wataash@wataash.com>
639 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
640 template argument for scoped_restore_tmpl from bool to int.
642 2019-12-07 Keith Seitz <keiths@redhat.com>
644 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
645 (build_id_to_debug_bfd): Make static, rewriting to use
646 build_id_to_bfd_suffix.
647 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
648 adding `suffix' parameter. Append SUFFIX to file names
649 when searching for matching files.
650 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
651 (build_id_to_exec_bfd): Likewise.
652 * build-id.h (build_id_to_debug_bfd): Clarify that function
653 searches for BFD of debug info file.
654 (build_id_to_exec_bfd): Declare.
655 * corelow.c: Include build-id.h.
656 (locate_exec_from_corefile_build_id): New function.
657 (core_target_open): If no executable BFD is found,
658 search for a core file BFD using build-id.
660 2019-12-06 Christian Biesinger <cbiesinger@google.com>
662 * bcache.c: Put in namespace gdb.
663 * bcache.h: Likewise.
664 * gdbtypes.c (check_types_worklist): Update.
665 (types_deeply_equal): Update.
666 * macrotab.c (struct macro_table) <bcache>: Update.
667 (new_macro_table): Update.
668 * macrotab.h (struct bcache): Put this forward declaration
669 inside namespace gdb.
670 (new_macro_table): Update.
671 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
673 <macro_cache>: Update.
674 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
676 2019-12-06 Tom de Vries <tdevries@suse.de>
679 * block.c (best_symbol, better_symbol): New function.
680 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
683 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
685 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
686 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
687 for ranking see-through reference cases.
689 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
690 * stack.c (faas_command): Check a command is provided.
691 * thread.c (taas_command, tfaas_command): Likewise.
693 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
694 * inferior.c (prune_inferiors): Only call delete_inferior,
695 Do not modify the inferior list.
697 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
699 * c-exp.y: Update calls to lookup_typename,
700 lookup_signed_typename and lookup_unsigned_typename.
701 * c-lang.c (evaluate_subexp_c): Likewise.
702 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
704 * eval.c (binop_promote): Likewise.
705 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
706 (lookup_unsigned_typename): Likewise.
707 (lookup_signed_typename): Likewise.
708 * gdbtypes.h (lookup_unsigned_typename): Likewise.
709 (lookup_signed_typename): Likewise.
710 (lookup_typename): Likewise.
711 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
712 lookup_typename, lookup_signed_typename,
713 lookup_unsigned_typename.
714 * m2-exp.y: Likewise.
715 * printcmd.c (printf_wide_c_string): Likewise.
716 (ui_printf): Likewise.
717 * python/py-type.c (typy_lookup_typename): Likewise.
718 * python/py-xmethods.c (python_xmethod_worker::invoke):
720 * rust-exp.y: Likewise.
722 2019-12-04 Christian Biesinger <cbiesinger@google.com>
724 * configure.nat (obsd64): Add missing files x86-nat.o and
727 2019-12-04 Tom Tromey <tom@tromey.com>
729 * valprint.c (val_print_string): Use metadata_style.
730 * go-valprint.c (print_go_string): Use metadata style.
731 * p-valprint.c (pascal_object_print_static_field): Use metadata
733 * cp-valprint.c (cp_print_static_field): Use metadata style.
735 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
736 Chris January <chris.january@arm.com>
738 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
740 (typebase): New patterns for complex, single/double precision, and
741 single/double complex.
742 (f77_keywords): Change token for complex keyword, and add single,
743 double, and precision keywords.
745 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
747 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
750 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
752 * regcache.c (cooked_read_test): Initialize thread list of
755 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
757 * aarch64-linux-tdep.c: Remove includes.
759 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
761 * aarch64-tdep.c: Remove includes.
763 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
765 * filtered-iterator.h (filtered_iterator) <operator==,
766 operator!=>: Compare wrapped iterators, not wrapped pointers.
767 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
768 unittests/filtered_iterator-selftests.c.
769 * unittests/filtered_iterator-selftests.c: New file.
771 2019-12-04 Tom Tromey <tromey@adacore.com>
773 * gdbtypes.c (create_range_type): Inherit endianity
776 2019-12-04 Tom Tromey <tromey@adacore.com>
778 * ada-lang.c (decode_constrained_packed_array)
779 (ada_value_assign, value_assign_to_component): Update.
780 * dwarf2loc.c (rw_pieced_value, access_memory)
781 (dwarf2_compile_expr_to_ax): Update.
782 * dwarf2read.c (dwarf2_add_field): Update.
783 * eval.c (evaluate_subexp_standard): Update.
784 * gdbarch.c, gdbarch.h: Rebuild.
785 * gdbarch.sh (bits_big_endian): Remove.
786 * gdbtypes.h (union field_location): Update comment.
787 * target-descriptions.c (make_gdb_type): Update.
788 * valarith.c (value_bit_index): Update.
789 * value.c (struct value) <bitpos>: Update comment.
790 (unpack_bits_as_long, modify_field): Update.
791 * value.h (value_bitpos): Update comment.
793 2019-12-04 Tom Tromey <tromey@adacore.com>
795 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
798 2019-12-04 Tom Tromey <tromey@adacore.com>
800 * dwarf2read.c (dwarf2_init_float_type)
801 (dwarf2_init_complex_target_type): Add byte_order parameter.
802 (read_base_type): Compute byte order earlier.
803 * gdbtypes.c (init_float_type): Add byte_order parameter.
804 * gdbtypes.h (init_float_type): Add byte_order parameter.
806 2019-12-04 Tom Tromey <tromey@adacore.com>
808 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
810 2019-12-04 Tom Tromey <tromey@adacore.com>
812 * dwarf2read.c (process_structure_scope): Initialize
815 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
817 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
818 add it into the search spec.
819 (parse_max_results_option): New function.
820 (mi_info_functions_or_variables): Parse -max-results flag and pass
821 it to mi_symbol_info.
822 (mi_cmd_symbol_info_modules): Likewise.
823 (mi_cmd_symbol_info_types): Likewise.
824 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
825 return type to bool, change result container into a set, and don't
826 add new results if we have enough already.
827 (global_symbol_searcher::add_matching_msymbols): Change return
828 type to bool, and don't add new results if we have enough already.
829 (sort_search_symbols_remove_dups): Delete.
830 (global_symbol_searcher::search): Early exit from search loop when
831 we have enough results. Use a std::set to collect the results
832 from calling add_matching_symbols.
833 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
835 (global_symbol_searcher) <m_max_search_results>: New member
837 (global_symbol_searcher) <add_matching_symbols>: Update header
838 comment and change return type to bool.
839 (global_symbol_searcher) <add_matching_msymbols>: Update header
840 comment and change return type to bool.
842 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
844 * symtab.c (symbol_search::compare_search_syms): Update header
846 (global_symbol_searcher::is_suitable_msymbol): New function.
847 (global_symbol_searcher::expand_symtabs): New function.
848 (global_symbol_searcher::add_matching_symbols): New function.
849 (global_symbol_searcher::add_matching_msymbols): New function.
850 (global_symbol_searcher::search): Move most of the content
851 into the new functions above, and call them as needed.
852 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
854 (global_symbol_searcher) <add_matching_symbols>: New member
856 (global_symbol_searcher) <add_matching_msymbols>: New member
858 (global_symbol_searcher) <is_suitable_msymbol>: New member
861 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
863 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
864 -symbol-info-module-variables entries.
865 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
866 (mi_cmd_symbol_info_module_variables): Declare.
867 * mi/mi-symbol-cmds.c
868 (module_symbol_search_iterator): New typedef.
869 (output_module_symbols_in_single_module_and_file): New function.
870 (output_module_symbols_in_single_module): New function.
871 (mi_info_module_functions_or_variables): New function.
872 (mi_cmd_symbol_info_module_functions): New function.
873 (mi_cmd_symbol_info_module_variables): New function.
874 * NEWS: Mention new MI command.
876 2019-12-03 Christian Biesinger <cbiesinger@google.com>
878 * bcache.c (hash): Remove.
879 (hash_continue): Remove.
880 * bcache.h (hash): Remove.
881 (hash_continue): Remove.
882 (struct bcache) <ctor>: Update.
883 * psymtab.c (psymbol_hash): Update.
884 * stabsread.c (hashname): Update.
885 * utils.h (fast_hash): Add an argument for a start value,
888 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
889 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
890 (destroy_block_symbol_cache): New function.
891 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
892 (resize_symbol_cache): Likewise.
894 2019-12-02 Tom Tromey <tom@tromey.com>
896 * unittests/tui-selftests.c (run_tests): Make conditional.
897 (_initialize_tui_selftest): Make conditional.
899 2019-12-02 Christian Biesinger <cbiesinger@google.com>
901 * aix-thread.c (debug_aix_thread): Change type to bool.
903 2019-12-02 Luis Machado <luis.machado@linaro.org>
905 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
907 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
909 * dwarf2read.c (read_tag_string_type): Read the fields required to
910 make a dynamic string, and possibly create a dynamic range for the
912 (attr_to_dynamic_prop): Setup is_reference based on the type of
913 attribute being processed.
914 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
915 (resolve_dynamic_array): Rename to...
916 (resolve_dynamic_array_or_string): ...this, update header comment,
917 and accept TYPE_CODE_STRING.
918 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
920 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
922 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
923 of its implementation from...
924 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
927 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
929 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
930 create a range with stride where appropriate.
931 * f-valprint.c: Include 'gdbarch.h'.
932 (f77_print_array_1): Take the stride into account when walking the
933 array. Also convert the stride into addressable units.
934 * gdbtypes.c (create_range_type): Initialise the stride to
936 (create_range_type_with_stride): New function, initialise the
937 range as normal, and then setup the stride.
938 (has_static_range): Include the stride here. Also change the
940 (create_array_type_with_stride): Consider the range stride if the
941 array isn't given its own stride.
942 (resolve_dynamic_range): Resolve the stride if needed.
943 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
944 (struct range_bounds) <flag_is_byte_stride>: New member variable.
945 (TYPE_BIT_STRIDE): Define.
946 (TYPE_ARRAY_BIT_STRIDE): Define.
947 (create_range_type_with_stride): Declare.
948 * valarith.c (value_subscripted_rvalue): Take range stride into
949 account when walking the array.
951 2019-12-01 Tom Tromey <tom@tromey.com>
953 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
956 2019-12-01 Tom Tromey <tom@tromey.com>
958 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
960 * unittests/tui-selftests.c: New file.
961 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
963 2019-12-01 Tom Tromey <tom@tromey.com>
965 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
967 2019-12-01 Tom Tromey <tom@tromey.com>
969 * NEWS: Document new settings.
970 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
971 * tui/tui-win.c (_initialize_tui_win): Add border style
973 * tui/tui-io.h (tui_apply_style): Declare.
974 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
976 (apply_ansi_escape, tui_set_reverse_mode): Update.
977 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
978 Add "skip_intensity" parameter.
979 <changed>: New member.
980 <do_set_value>: Declare.
981 (tui_border_style, tui_active_border_style): Declare.
982 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
984 (cli_style_option): Initialize "changed".
985 (cli_style_option::do_set_value): New function.
986 (cli_style_option::add_setshow_commands): Add "skip_intensity"
988 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
989 (_initialize_cli_style): Update. Create TUI border style
992 2019-12-01 Tom Tromey <tom@tromey.com>
994 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
996 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
998 * tui/tui-win.h (compact_source): Declare.
999 * tui/tui-win.c (compact_source): New global.
1000 (tui_set_compact_source, tui_show_compact_source): New functions.
1001 (_initialize_tui_win): Add "compact-source" setting.
1002 * tui/tui-source.c (tui_source_window::set_contents): Handle
1003 compact_source setting.
1004 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1005 * NEWS: Document new setting.
1007 2019-11-30 Tom Tromey <tom@tromey.com>
1009 * dwarf2read.c (dwarf2_add_field): Include field offset when
1010 computing variant part length.
1012 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1013 * NEWS: Mention define-prefix. Tell that command names can now
1014 contain a . character.
1016 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1018 * command.h (valid_cmd_char_p): Declare.
1019 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1020 the check of valid command char.
1021 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1023 * cli/cli-script.c (validate_comname): Likewise.
1024 * completer.c (gdb_completer_command_word_break_characters):
1025 Do not remove . from the word break char, update comments.
1026 (complete_line_internal_1): Use valid_cmd_char_p.
1027 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1028 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1030 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1032 * cli/cli-script.c (do_define_command): Ensure a redefined
1033 prefix command is kept as a prefix command.
1034 (define_prefix_command): New function.
1035 (show_user_1): Report user defined prefixes.
1036 (_initialize_cli_script): Create the new 'define-prefix' command.
1037 Add completers for 'define' and 'document'.
1038 * top.c (execute_command): If command is a user-defined prefix only
1039 command, report the list of commands for this prefix command.
1041 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043 * valops.c (find_oload_champ): Improve debug output.
1045 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1047 * valops.c (find_oload_champ): Print part of debug messages
1048 before the badness vector is std::move'd.
1050 2019-11-28 Tom Tromey <tom@tromey.com>
1052 * value.c (creal_internal_fn): Fix comment.
1054 2019-11-28 Tom Tromey <tom@tromey.com>
1056 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1057 flag_bound_evaluated>: Now unsigned.
1059 2019-11-28 Tom Tromey <tom@tromey.com>
1061 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1064 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1066 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1068 * jit.c (jit_unregister_code): Add debug print to match
1069 `jit_register_code`.
1071 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1073 * NEWS: Mention the new multithreaded symbol loading.
1075 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1077 * maint.c (n_worker_threads): Default to 0.
1078 (worker_threads_disabled): New function.
1079 * maint.h (worker_threads_disabled): New function.
1080 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1081 here if worker_threads_disabled () is true.
1082 (minimal_symbol_reader::install): Skip all threading if
1083 worker_threads_disabled () is true.
1085 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1087 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1088 hash code if possible.
1089 (add_minsym_to_demangled_hash_table): Likewise.
1090 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1091 on the background thread.
1092 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1095 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1097 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1098 of the mangled name on the background thread.
1099 * symtab.c (symbol_set_names): Allow passing in the hash of the
1101 * symtab.h (symbol_set_names): Likewise.
1103 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1105 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1106 physnames are computed for inherited DIEs.
1108 2019-11-27 Tom Tromey <tromey@adacore.com>
1110 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1112 * cp-support.c: Remove unnecessary backslashes.
1114 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1116 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1117 with sym->set_linkage_name.
1118 * coffread.c (coff_read_enum_type): Likewise.
1119 * mdebugread.c (parse_symbol): Likewise.
1120 * stabsread.c (patch_block_stabs): Likewise.
1121 (define_symbol): Likewise.
1122 (read_enum_type): Likewise.
1123 (common_block_end): Likewise.
1124 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1126 (SYMBOL_SET_LINKAGE_NAME): Remove.
1127 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1128 with sym->set_linkage_name.
1130 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1133 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1134 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1135 * NEWS: Mention new MI command.
1137 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1139 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1140 '-symbol-info-types', and '-symbol-info-variables'.
1141 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1142 (mi_cmd_symbol_info_types): Declare.
1143 (mi_cmd_symbol_info_variables): Declare.
1144 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1145 (output_debug_symbol): New function.
1146 (output_nondebug_symbol): New function.
1147 (mi_symbol_info): New function.
1148 (mi_info_functions_or_variables): New function.
1149 (mi_cmd_symbol_info_functions): New function.
1150 (mi_cmd_symbol_info_types): New function.
1151 (mi_cmd_symbol_info_variables): New function.
1152 * NEWS: Mention new commands.
1154 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1156 * symtab.c (symbol_to_info_string): New function, most content
1157 moved from print_symbol_info, but updated to return a std::string.
1158 (print_symbol_info): Update to use symbol_to_info_string and print
1160 * symtab.h (symbol_to_info_string): Declare new function.
1162 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * python/python.c (gdbpy_rbreak): Convert to using
1165 global_symbol_searcher.
1166 * symtab.c (file_matches): Convert return type to bool, change
1167 file list to std::vector, update header comment.
1168 (search_symbols): Rename to...
1169 (global_symbol_searcher::search): ...this and update now its
1170 a member function of global_symbol_searcher. Take account of the
1171 changes to file_matches.
1172 (symtab_symbol_info): Convert to using global_symbol_searcher.
1173 (rbreak_command): Likewise.
1174 (search_module_symbols): Likewise.
1175 * symtab.h (enum symbol_search): Update comment.
1176 (search_symbols): Remove declaration.
1177 (class global_symbol_searcher): New class.
1179 2019-11-26 Tom Tromey <tromey@adacore.com>
1181 * cp-support.c (_initialize_cp_support): Conditionally initialize
1182 gdb_demangle_attempt_core_dump.
1184 2019-11-26 Tom Tromey <tom@tromey.com>
1186 * python/py-function.c (fnpy_init): Update.
1187 * value.h (add_internal_function): Adjust declaration.
1188 * value.c (function_destroyer): Remove.
1189 (do_add_internal_function): Don't set destroyer or copy name.
1190 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1192 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1193 (cmdpy_init): Set name_allocated.
1194 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1196 (~cmd_list_element): Free "name" if needed.
1198 2019-11-26 Tom Tromey <tom@tromey.com>
1200 * value.h (add_internal_function): Add new overload. Move
1201 documentation from value.h.
1202 * value.c (do_add_internal_function): New function.
1203 (add_internal_function): Use it. Add new overload.
1204 (function_destroyer): Don't free doc.
1205 * python/py-function.c (fnpy_init): Update.
1207 2019-11-26 Tom Tromey <tom@tromey.com>
1209 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1210 (cmdpy_init): Set "doc_allocated".
1212 2019-11-26 Tom Tromey <tom@tromey.com>
1214 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1215 name of worker thread.
1216 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1218 * configure, config.in: Rebuild.
1220 2019-11-26 Tom Tromey <tom@tromey.com>
1222 * python/python.c (class gdbpy_gil): New.
1223 (struct gdbpy_event): Add constructor, destructor, operator().
1224 (gdbpy_post_event): Use run_on_main_thread.
1225 (gdbpy_initialize_events): Remove.
1226 (do_start_initialization): Update.
1228 2019-11-26 Tom Tromey <tom@tromey.com>
1231 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1232 commands. Call update_thread_pool_size.
1233 (update_thread_pool_size, maintenance_set_worker_threads): New
1235 (n_worker_threads): New global.
1237 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1238 Tom Tromey <tom@tromey.com>
1240 * minsyms.c (minimal_symbol_reader::install): Use
1242 * gdbsupport/parallel-for.h: New file.
1243 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1245 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1246 Tom Tromey <tom@tromey.com>
1248 * gdbsupport/thread-pool.h: New file.
1249 * gdbsupport/thread-pool.c: New file.
1250 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1251 (HFILES_NO_SRCDIR): Add thread-pool.h.
1253 2019-11-26 Tom Tromey <tom@tromey.com>
1255 * event-top.h (thread_local_segv_handler): Declare.
1256 * event-top.c (thread_local_segv_handler): New global.
1257 (install_handle_sigsegv, handle_sigsegv): New functions.
1258 (async_init_signals): Install SIGSEGV handler.
1259 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1261 (report_failed_demangle): New function.
1262 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1263 handler-setting code, instead use segv_handler. Run warning code
1266 2019-11-26 Tom Tromey <tom@tromey.com>
1268 * run-on-main-thread.c: New file.
1269 * run-on-main-thread.h: New file.
1270 * unittests/main-thread-selftests.c: New file.
1271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1272 main-thread-selftests.c.
1273 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1274 (COMMON_SFILES): Add run-on-main-thread.c.
1276 2019-11-26 Tom Tromey <tom@tromey.com>
1278 * main.c (setup_alternate_signal_stack): Remove.
1279 (captured_main_1): Use gdb::alternate_signal_stack.
1280 * gdbsupport/alt-stack.h: New file.
1282 2019-11-26 Tom Tromey <tom@tromey.com>
1284 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1286 (save_original_signals_state, restore_original_signals_state): Use
1288 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1289 (_initialize_linux_nat): Use gdb_sigmask.
1290 * guile/guile.c (_initialize_guile): Use block_signals.
1291 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1292 * gdbsupport/gdb-sigmask.h: New file.
1293 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1294 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1295 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1297 * configure, config.in: Rebuild.
1298 * gdbsupport/block-signals.h: New file.
1300 2019-11-26 Tom Tromey <tom@tromey.com>
1302 * acinclude.m4: Include ax_pthread.m4.
1303 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1304 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1305 (CLIBS): Use PTHREAD_LIBS.
1306 (aclocal_m4_deps): Add ax_pthread.m4.
1307 * config.in, configure: Rebuild.
1308 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1310 2019-11-26 Tom Tromey <tom@tromey.com>
1312 * symtab.h (struct minimal_symbol) <name_set>: New member.
1313 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1314 Don't call symbol_set_names.
1315 (minimal_symbol_reader::install): Call symbol_set_names.
1317 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1319 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1320 restore_active_ext_lang, as GIL is needed for (indirectly)
1321 called PyOS_InterruptOccurred.
1323 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1325 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1328 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1330 * remote-sim.c (simulator_command): Make static, remove
1333 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1335 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1337 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1338 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1340 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1342 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1344 * unittests/basic_string_view/element_access/char/1.cc (test01):
1347 * unittests/basic_string_view/element_access/char/empty.cc (main):
1349 * unittests/basic_string_view/element_access/char/front_back.cc
1352 * unittests/basic_string_view/inserters/char/2.cc (test05):
1355 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1358 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1361 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1363 * unittests/basic_string_view/operations/compare/char/1.cc
1366 * unittests/basic_string_view/operations/compare/char/13650.cc
1368 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1371 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1374 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1377 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1380 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1383 * unittests/basic_string_view/operations/find/char/4.cc (main):
1385 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1388 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1391 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1394 * unittests/basic_string_view/operations/substr/char/1.cc
1397 * unittests/basic_string_view/operators/char/2.cc (main):
1399 * unittests/optional/assignment/1.cc (test): Likewise.
1400 * unittests/optional/assignment/2.cc (test): Likewise.
1401 * unittests/optional/assignment/3.cc (test): Likewise.
1402 * unittests/optional/assignment/4.cc (test): Likewise.
1403 * unittests/optional/assignment/5.cc (test): Likewise.
1404 * unittests/optional/assignment/6.cc (test): Likewise.
1405 * unittests/optional/assignment/7.cc (test): Likewise.
1406 * unittests/optional/cons/copy.cc (test): Likewise.
1407 * unittests/optional/cons/default.cc (test): Likewise.
1408 * unittests/optional/cons/move.cc (test): Likewise.
1409 * unittests/optional/cons/value.cc (test): Likewise.
1410 * unittests/optional/in_place.cc (test): Likewise.
1411 * unittests/optional/observers/1.cc (test): Likewise.
1412 * unittests/optional/observers/2.cc (test): Likewise.
1414 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1416 * tui-win.h (tui_set_var_cmd): Remove.
1417 * tui-win.c (tui_set_var_cmd): Make static.
1419 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1421 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1422 rbreak_command_wrapper): Remove.
1423 * symtab.c (rbreak_command_wrapper): Remove.
1425 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1427 * inferior.h (info_terminal_command): Remove declaration.
1428 * inflow.c (info_terminal_command): Make static.
1430 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1432 * inferior.c (exit_inferior_silent): Remove.
1434 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1436 * dictionary.c (dict_empty, mdict_empty): Remove.
1437 * dictionary.c (mdict_empty): Remove.
1439 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1441 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1442 (arc_insn_get_memory_offset): Likewise.
1443 (arc_insn_dump): Likewise.
1444 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1445 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1446 * dictionary.c (dict_iterator_next): Likewise.
1447 (dict_iter_match_first): Likewise.
1448 (dict_iter_match_next): Likewise.
1449 * f-lang.c (evaluate_subexp_f): Likewise.
1450 * hppa-tdep.c (hppa_read_pc): Likewise.
1451 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1452 * parse.c (write_exp_elt_msym): Likewise.
1453 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1454 * remote.c (remote_packet_size): Likewise.
1455 (remote_notif_stop_parse): Likewise.
1456 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1457 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1458 * source.c (prepare_path_for_appending): Likewise.
1459 * sparc64-linux-tdep.c
1460 (sparc64_linux_handle_segmentation_fault); Likewise.
1461 * stack.c (frame_selection_by_function_completer): Likewise.
1463 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1465 * completer.c (set_gdb_completion_word_break_characters):
1468 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1470 * dwarf-index-write.c: Include dwarf-index-write.h.
1471 * mi/mi-interp.c: Include mi/mi-interp.h.
1473 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1475 * aarch32-tdep.c: Include aarch32-tdep.h.
1476 * aarch32-tdep.h: Forward-declare struct target_desc.
1478 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1480 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1482 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1483 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1485 2019-11-25 Tom de Vries <tdevries@suse.de>
1487 * contrib/words.sh: Add -c option.
1489 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1491 * solib.c (solib_find_1): Change int to bool.
1492 (exec_file_find): Change int to bool.
1493 (solib_find): Change int to bool.
1494 (solib_read_symbols): Change int to bool.
1495 (solib_used): Change int to bool.
1496 (solib_add): Change int to bool.
1497 (info_sharedlibrary_command): Change int to bool.
1498 (solib_contains_address_p): Change int to bool.
1499 (solib_keep_data_in_core): Change int to bool.
1500 (in_solib_dynsym_resolve_code): Change int to bool.
1501 (reload_shared_libraries_1): Change int to bool.
1502 (gdb_sysroot_changed): Change int to bool.
1503 * solib.h (solib_read_symbols): Change int to bool.
1504 (solib_contains_address_p): Change int to bool.
1505 (solib_keep_data_in_core): Change int to bool.
1506 (in_solib_dynsym_resolve_code): Change int to bool.
1507 (libpthread_name_p): Change int to bool.
1509 2019-11-25 Luis Machado <luis.machado@linaro.org>
1511 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1512 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1513 (remote_packet_max_chars): New static global.
1514 (show_remote_packet_max_chars): New function.
1515 (remote_target::putpkt_binary): Adjust to use new
1516 remote_packet_max_chars option.
1517 (remote_target::getpkt_or_notif_sane_1): Likewise.
1518 (_initialize_remote): Register new remote-packet-max-chars option.
1520 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1522 * m68k-linux-nat.c: Include gdbarch.h.
1524 2019-11-24 Tom Tromey <tom@tromey.com>
1526 * symfile.c (read_symbols): Update.
1527 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1529 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1530 (psym_lookup_symbol, psym_find_last_source_symtab)
1531 (psym_forget_cached_source_info, psym_print_stats)
1532 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1533 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1534 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1535 (psym_find_compunit_symtab_by_address)
1536 (maintenance_print_psymbols, maintenance_info_psymtabs)
1537 (maintenance_check_psymtabs): Update.
1538 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1541 2019-11-22 Tom Tromey <tom@tromey.com>
1543 * observable.h: Update comments.
1545 2019-11-22 Tom Tromey <tromey@adacore.com>
1547 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1548 (print_ada_task_info): Don't try to fetch thread id if task is not
1551 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1553 * ada-exp.y: Update.
1554 * ada-lang.c (sort_choices): Update.
1555 (ada_print_symbol_signature): Update.
1556 (resolve_subexp): Update.
1557 (ada_parse_renaming): Update.
1558 (ada_read_renaming_var_value): Update.
1559 (lesseq_defined_than): Update.
1560 (remove_extra_symbols): Update.
1561 (remove_irrelevant_renamings): Update.
1562 (ada_add_block_symbols): Update.
1563 (ada_collect_symbol_completion_matches): Update.
1564 (ada_is_renaming_symbol): Update.
1565 (aggregate_assign_from_choices): Update.
1566 (ada_evaluate_subexp): Update.
1567 (ada_has_this_exception_support): Update.
1568 (ada_is_non_standard_exception_sym): Update.
1569 (ada_add_exceptions_from_frame): Update.
1570 (ada_add_global_exceptions): Update.
1571 (ada_print_subexp): Update.
1572 * ax-gdb.c (gen_var_ref): Update.
1573 (gen_maybe_namespace_elt): Update.
1574 (gen_expr_for_cast): Update.
1577 * blockframe.c (find_pc_partial_function): Update.
1578 * breakpoint.c (print_breakpoint_location): Update.
1579 (update_static_tracepoint): Update.
1580 * btrace.c (ftrace_print_function_name): Update.
1581 (ftrace_function_switched): Update.
1582 * buildsym.c (find_symbol_in_list): Update.
1584 * c-typeprint.c (c_print_typedef): Update.
1585 (c_type_print_template_args): Update.
1586 * cli/cli-cmds.c (edit_command): Update.
1587 (list_command): Update.
1588 (print_sal_location): Update.
1589 * coffread.c (patch_opaque_types): Update.
1590 (process_coff_symbol): Update.
1591 (coff_read_enum_type): Update.
1592 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1593 (convert_one_symbol): Update.
1594 (hash_symname): Update.
1595 (eq_symname): Update.
1596 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1597 * compile/compile-cplus-types.c (debug_print_scope): Update.
1598 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1599 * compile/compile-object-load.c (get_out_value_type): Update.
1600 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1601 (search_symbol_list): Update.
1602 (cp_lookup_symbol_imports_or_template): Update.
1603 * cp-support.c (overload_list_add_symbol): Update.
1604 * ctfread.c (psymtab_to_symtab): Update.
1605 * dbxread.c (cp_set_block_scope): Update.
1606 * dictionary.c (iter_match_first_hashed): Update.
1607 (iter_match_next_hashed): Update.
1608 (insert_symbol_hashed): Update.
1609 (iter_match_next_linear): Update.
1610 * dictionary.h: Update.
1611 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1612 (locexpr_describe_location_piece): Update.
1613 (locexpr_describe_location_1): Update.
1614 (locexpr_generate_c_location): Update.
1615 (loclist_describe_location): Update.
1616 (loclist_generate_c_location): Update.
1617 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1618 (read_func_scope): Update.
1619 (process_enumeration_scope): Update.
1620 (new_symbol): Update.
1621 (dwarf2_const_value): Update.
1622 (dwarf2_symbol_mark_computed): Update.
1623 * eval.c (evaluate_funcall): Update.
1624 (evaluate_subexp_standard): Update.
1625 * expprint.c (print_subexp_standard): Update.
1626 (dump_subexp_body_standard): Update.
1627 * f-valprint.c (info_common_command_for_block): Update.
1628 * findvar.c (get_hosting_frame): Update.
1629 (default_read_var_value): Update.
1630 * go-lang.c (go_symbol_package_name): Update.
1631 * guile/scm-block.c (bkscm_print_block_smob): Update.
1632 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1633 (gdbscm_symbol_name): Update.
1634 (gdbscm_symbol_linkage_name): Update.
1635 (gdbscm_symbol_print_name): Update.
1636 * infcall.c (get_function_name): Update.
1637 * infcmd.c (jump_command): Update.
1638 (finish_command): Update.
1639 * infrun.c (insert_exception_resume_breakpoint): Update.
1640 * linespec.c (canonicalize_linespec): Update.
1641 (create_sals_line_offset): Update.
1642 (convert_linespec_to_sals): Update.
1643 (complete_label): Update.
1644 (find_label_symbols_in_block): Update.
1645 * m2-typeprint.c (m2_print_typedef): Update.
1646 * mdebugread.c (mdebug_reg_to_regnum): Update.
1647 (parse_symbol): Update.
1648 (mylookup_symbol): Update.
1649 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1650 (list_args_or_locals): Update.
1651 * objc-lang.c (compare_selectors): Update.
1652 (info_selectors_command): Update.
1653 (compare_classes): Update.
1654 (info_classes_command): Update.
1655 (find_imps): Update.
1656 * p-typeprint.c (pascal_print_typedef): Update.
1657 * printcmd.c (build_address_symbolic): Update.
1658 (info_address_command): Update.
1659 (print_variable_and_value): Update.
1660 * python/py-framefilter.c (extract_sym): Update.
1661 (py_print_single_arg): Update.
1662 * python/py-symbol.c (sympy_str): Update.
1663 (sympy_get_name): Update.
1664 (sympy_get_linkage_name): Update.
1665 * python/python.c (gdbpy_rbreak): Update.
1666 * record-btrace.c (btrace_get_bfun_name): Update.
1667 (btrace_call_history): Update.
1668 * rust-lang.c (rust_print_typedef): Update.
1669 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1670 * stabsread.c (stab_reg_to_regnum): Update.
1671 (define_symbol): Update.
1672 (read_enum_type): Update.
1673 (common_block_end): Update.
1674 (cleanup_undefined_types_1): Update.
1675 (scan_file_globals): Update.
1676 * stack.c (print_frame_arg): Update.
1677 (print_frame_args): Update.
1678 (find_frame_funname): Update.
1679 (info_frame_command_core): Update.
1680 (iterate_over_block_locals): Update.
1681 (print_block_frame_labels): Update.
1682 (do_print_variable_and_value): Update.
1683 (iterate_over_block_arg_vars): Update.
1684 (return_command): Update.
1685 * symmisc.c (dump_symtab_1): Update.
1686 (print_symbol): Update.
1687 * symtab.c (eq_symbol_entry): Update.
1688 (symbol_cache_dump): Update.
1689 (lookup_language_this): Update.
1690 (find_pc_sect_line): Update.
1691 (skip_prologue_sal): Update.
1692 (symbol_search::compare_search_syms): Update.
1693 (treg_matches_sym_type_name): Update.
1694 (search_symbols): Update.
1695 (print_symbol_info): Update.
1696 (rbreak_command): Update.
1697 (completion_list_add_symbol): Update.
1698 (find_gnu_ifunc): Update.
1699 (get_symbol_address): Update.
1700 (search_module_symbols): Update.
1701 (info_module_subcommand): Update.
1702 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1703 (SYMBOL_LINKAGE_NAME): Remove.
1704 (SYMBOL_DEMANGLED_NAME): Remove.
1705 (SYMBOL_PRINT_NAME): Remove.
1706 (SYMBOL_SEARCH_NAME): Remove.
1707 * tracepoint.c (set_traceframe_context): Update.
1708 (validate_actionline): Update.
1709 (collection_list::collect_symbol): Update.
1710 (encode_actions_1): Update.
1711 (info_scope_command): Update.
1712 (print_one_static_tracepoint_marker): Update.
1713 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1714 * valops.c (address_of_variable): Update.
1715 (find_overload_match): Update.
1716 (find_oload_champ): Update.
1718 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1720 * ada-lang.c (ada_lookup_simple_minsym): Update.
1721 (ada_collect_symbol_completion_matches): Update.
1722 * ada-tasks.c (read_atcb): Update.
1723 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1724 (amd64_windows_skip_trampoline_code): Update.
1725 * arm-tdep.c (skip_prologue_function): Update.
1726 (arm_skip_stack_protector): Update.
1727 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1728 (arm_wince_skip_main_prologue): Update.
1729 * ax-gdb.c (gen_expr): Update.
1730 * block.c (call_site_for_pc): Update.
1731 * blockframe.c (find_pc_partial_function): Update.
1732 * breakpoint.c (set_breakpoint_location_function): Update.
1733 * btrace.c (ftrace_print_function_name): Update.
1734 (ftrace_function_switched): Update.
1735 * c-valprint.c (print_unpacked_pointer): Update.
1736 * coffread.c (coff_symfile_read): Update.
1737 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1738 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1739 * dwarf-index-write.c (write_psymbols): Update.
1740 * dwarf2loc.c (call_site_to_target_addr): Update.
1741 (func_verify_no_selftailcall): Update.
1742 (tailcall_dump): Update.
1743 (call_site_find_chain_1): Update.
1744 (dwarf_expr_reg_to_entry_parameter): Update.
1745 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1746 * eval.c (evaluate_funcall): Update.
1747 (evaluate_subexp_standard): Update.
1748 (evaluate_subexp_for_sizeof): Update.
1749 * expprint.c (print_subexp_standard): Update.
1750 (dump_subexp_body_standard): Update.
1751 * frame.c (get_prev_frame_always_1): Update.
1752 * frv-tdep.c (frv_skip_main_prologue): Update.
1753 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1754 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1755 (gnuv3_get_typename_from_type_info): Update.
1756 (gnuv3_skip_trampoline): Update.
1757 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1758 * i386-tdep.c (i386_skip_main_prologue): Update.
1759 (i386_pe_skip_trampoline_code): Update.
1760 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1761 * infcall.c (get_function_name): Update.
1762 * linespec.c (minsym_found): Update.
1763 * linux-fork.c (info_checkpoints_command): Update.
1764 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1765 (m32c_m16c_pointer_to_address): Update.
1766 * maint.c (maintenance_translate_address): Update.
1767 * minsyms.c (add_minsym_to_hash_table): Update.
1768 (add_minsym_to_demangled_hash_table): Update.
1769 (lookup_minimal_symbol_mangled): Update.
1770 (lookup_minimal_symbol_demangled): Update.
1771 (lookup_minimal_symbol_linkage): Update.
1772 (lookup_minimal_symbol_text): Update.
1773 (lookup_minimal_symbol_by_pc_name): Update.
1774 (minimal_symbol_is_less_than): Update.
1775 (compact_minimal_symbols): Update.
1776 (build_minimal_symbol_hash_tables): Update.
1777 (find_solib_trampoline_target): Update.
1778 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1779 (mips_skip_pic_trampoline_code): Update.
1780 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1781 * objc-lang.c (info_selectors_command): Update.
1782 (info_classes_command): Update.
1783 (find_methods): Update.
1784 (find_imps): Update.
1785 * p-valprint.c (pascal_val_print): Update.
1786 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1787 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1788 * printcmd.c (build_address_symbolic): Update.
1789 (info_symbol_command): Update.
1790 * psymtab.c (psymbol_name_matches): Update.
1791 (match_partial_symbol): Update.
1792 (lookup_partial_symbol): Update.
1793 (print_partial_symbols): Update.
1794 (sort_pst_symbols): Update.
1795 (maintenance_check_psymtabs): Update.
1796 * python/py-framefilter.c (py_print_frame): Update.
1797 * python/python.c (gdbpy_rbreak): Update.
1798 * record-btrace.c (btrace_get_bfun_name): Update.
1799 (btrace_call_history): Update.
1800 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1801 (rs6000_skip_trampoline_code): Update.
1802 * sol-thread.c (info_cb): Update.
1803 * stabsread.c (scan_file_globals): Update.
1804 * stack.c (find_frame_funname): Update.
1805 (info_frame_command_core): Update.
1806 * symmisc.c (dump_msymbols): Update.
1807 * symtab.c (symbol_natural_name): Rename to..,
1808 (general_symbol_info::natural_name): ...this.
1809 (symbol_demangled_name): Rename to...
1810 (general_symbol_info::demangled_name): ...this.
1811 (symbol_search_name): Rename to...
1812 (general_symbol_info::search_name): ...this.
1813 (symbol_matches_search_name): Update.
1814 (find_pc_sect_line): Update.
1815 (skip_prologue_sal): Update.
1816 (search_symbols): Update.
1817 (print_msymbol_info): Update.
1818 (rbreak_command): Update.
1819 (completion_list_add_msymbol): Update.
1820 (completion_list_objc_symbol): Update.
1821 (get_msymbol_address): Update.
1822 * symtab.h (struct general_symbol_info): Add member functions
1823 natural_name (), linkage_name (), print_name (), demangled_name (),
1825 (SYMBOL_NATURAL_NAME): Update.
1826 (symbol_natural_name): Move to a member function on general_symbol_info.
1827 (SYMBOL_DEMANGLED_NAME): Update.
1828 (symbol_demangled_name): Move to a member function on
1829 general_symbol_info.
1830 (SYMBOL_SEARCH_NAME): Update.
1831 (symbol_search_name): Move to a member function on general_symbol_info.
1832 (MSYMBOL_NATURAL_NAME): Remove.
1833 (MSYMBOL_LINKAGE_NAME): Remove.
1834 (MSYMBOL_PRINT_NAME): Remove.
1835 (MSYMBOL_DEMANGLED_NAME): Remove.
1836 (MSYMBOL_SEARCH_NAME): Remove.
1837 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1839 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1841 * symtab.c (create_demangled_names_hash): Use per_bfd->
1842 minimal_symbol_count for computing the initial size, if greater
1843 than our default size.
1845 2019-11-22 Tom de Vries <tdevries@suse.de>
1847 * contrib/words.sh: Improve words extraction.
1849 2019-11-22 Tom de Vries <tdevries@suse.de>
1851 * contrib/words.sh: Combine sed invocations.
1853 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1855 * Makefile.in: Update.
1856 * demangle.c: Rename to...
1857 * gdb-demangle.c: ..this.
1858 (is_cplus_marker): Change return type to bool.
1859 (_initialize_demangler): Rename to...
1860 (_initialize_gdb_demangle): ...this.
1861 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1862 * symtab.h (demangle): Remove declaration; instead include
1865 2019-11-21 Tom Tromey <tromey@adacore.com>
1867 * gdbsupport/format.c (format_pieces): Parse %I64d.
1868 * unittests/format_pieces-selftests.c (test_windows_formats): New
1870 (run_tests): Call it.
1872 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1874 Byte reverse display of variables with DW_END_big, DW_END_little
1875 (DW_AT_endianity) dwarf attributes if different than the native
1877 * ada-lang.c (ada_value_binop):
1878 Use type_byte_order instead of gdbarch_byte_order.
1879 * ada-valprint.c (printstr):
1880 (ada_val_print_string):
1881 * ada-lang.c (value_pointer):
1883 Use type_byte_order instead of gdbarch_byte_order.
1884 * c-lang.c (c_get_string):
1885 Use type_byte_order instead of gdbarch_byte_order.
1886 * c-valprint.c (c_val_print_array):
1887 Use type_byte_order instead of gdbarch_byte_order.
1888 * cp-valprint.c (cp_print_class_member):
1889 Use type_byte_order instead of gdbarch_byte_order.
1890 * dwarf2loc.c (rw_pieced_value):
1891 Use type_byte_order instead of gdbarch_byte_order.
1892 * dwarf2read.c (read_base_type): Handle DW_END_big,
1894 * f-lang.c (f_get_encoding):
1895 Use type_byte_order instead of gdbarch_byte_order.
1896 * findvar.c (default_read_var_value):
1897 Use type_byte_order instead of gdbarch_byte_order.
1898 * gdbtypes.c (check_types_equal):
1899 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1900 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1901 and TYPE_ENDIANITY_LITTLE if set.
1902 (type_byte_order): new function.
1903 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1904 (struct main_type) <flag_endianity_not_default>:
1906 (type_byte_order): New function.
1907 * infcmd.c (default_print_one_register_info):
1908 Use type_byte_order instead of gdbarch_byte_order.
1909 * p-lang.c (pascal_printstr):
1910 Use type_byte_order instead of gdbarch_byte_order.
1911 * p-valprint.c (pascal_val_print):
1912 Use type_byte_order instead of gdbarch_byte_order.
1913 * printcmd.c (print_scalar_formatted):
1914 Use type_byte_order instead of gdbarch_byte_order.
1915 * solib-darwin.c (darwin_current_sos):
1916 Use type_byte_order instead of gdbarch_byte_order.
1917 * solib-svr4.c (solib_svr4_r_ldsomap):
1918 Use type_byte_order instead of gdbarch_byte_order.
1919 * stap-probe.c (stap_modify_semaphore):
1920 Use type_byte_order instead of gdbarch_byte_order.
1921 * target-float.c (target_float_same_format_p):
1922 Use type_byte_order instead of gdbarch_byte_order.
1923 * valarith.c (scalar_binop):
1925 Use type_byte_order instead of gdbarch_byte_order.
1926 * valops.c (value_cast):
1927 Use type_byte_order instead of gdbarch_byte_order.
1928 * valprint.c (generic_emit_char):
1931 Use type_byte_order instead of gdbarch_byte_order.
1932 * value.c (unpack_long):
1933 (unpack_bits_as_long):
1934 (unpack_value_bitfield):
1937 (pack_unsigned_long):
1938 Use type_byte_order instead of gdbarch_byte_order.
1939 * findvar.c (unsigned_pointer_to_address):
1940 (signed_pointer_to_address):
1941 (unsigned_address_to_pointer):
1942 (address_to_signed_pointer):
1943 (default_read_var_value):
1944 (default_value_from_register):
1945 Use type_byte_order instead of gdbarch_byte_order.
1946 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1947 Use type_byte_order instead of gdbarch_byte_order.
1948 * riscv-tdep.c (riscv_print_one_register_info):
1949 Use type_byte_order instead of gdbarch_byte_order.
1951 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1953 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1954 (current_ui_gdb_stdin_ptr): Likewise.
1955 (current_ui_gdb_stderr_ptr): Likewise.
1956 (current_ui_gdb_stdlog_ptr): Likewise.
1957 (current_ui_current_uiout_ptr): Likewise.
1958 (gen_ret_current_ui_field_ptr): Remove.
1960 2019-11-21 Tom de Vries <tdevries@suse.de>
1963 * cli/cli-script.c (execute_control_command): Only switch to
1964 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1966 2019-11-19 Tom Tromey <tom@tromey.com>
1968 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1969 Now static. Change type of "name".
1970 (tui_set_win_height_command): Don't copy "arg".
1971 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1972 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1974 2019-11-19 Ali Tamur <tamur@google.com>
1976 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1977 "if (attr != nullptr)".
1978 (dwarf2_find_base_address): Likewise.
1979 (dwarf2_build_include_psymtabs): Likewise.
1980 (read_cutu_die_from_dwo): Likewise.
1981 (read_func_scope): Likewise.
1982 (read_call_site_scope): Likewise.
1983 (dwarf2_get_pc_bounds): Likewise.
1984 (dwarf2_record_block_ranges): Likewise.
1985 (dwarf2_add_field): Likewise.
1986 (dwarf2_add_member_fn): Likewise.
1987 (read_structure_type): Likewise.
1988 (read_enumeration_type): Likewise.
1989 (read_array_type): Likewise.
1990 (read_array_order): Likewise.
1991 (read_set_type): Likewise.
1992 (read_common_block): Likewise.
1993 (read_tag_reference_type): Likewise.
1994 (read_tag_string_type): Likewise.
1995 (read_subroutine_type): Likewise.
1996 (read_base_type): Likewise.
1997 (read_subrange_type): Likewise.
1998 (new_symbol): Likewise.
1999 (prepare_one_comp_unit): Likewise.
2001 2019-11-19 Tom Tromey <tromey@adacore.com>
2003 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2004 result in error when DebugActiveProcess fails.
2006 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2007 Pedro Alves <palves@redhat.com>
2009 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2010 * target.c (target_stack::push): Call 'unpush' if there's a
2011 target on top of the stack.
2013 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2015 * python/py-block.c (blpy_dealloc): Call tp_free.
2016 (blpy_block_syms_dealloc): Likewise.
2017 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2018 * python/py-inferior.c (infpy_dealloc): Likewise.
2019 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2020 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2021 * python/py-symbol.c (sympy_dealloc): Likewise.
2022 * python/py-symtab.c (stpy_dealloc): Likewise.
2023 * python/py-type.c (typy_iterator_dealloc): Likewise.
2025 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2027 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2028 constructor instead of using a class initializer.
2030 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2032 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2033 * configure: Regenerate.
2034 * configure.ac: Don't source common.host.
2035 * gdbsupport/common.host: Remove.
2036 * gdbsupport/mingw-strerror.c: Remove.
2037 * gdbsupport/posix-strerror.c: Rename to...
2038 * gdbsupport/safe-strerror.c: ...this.
2040 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2042 * maint.c (scoped_command_stats::print_time): Use localtime_r
2043 instead of localtime (provided through gnulib if necessary).
2044 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2047 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2049 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2050 avoid compile errors.
2052 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2054 * config.in: Regenerate.
2055 * configure: Regenerate.
2056 * gdbsupport/common.m4: No longer check for strerror_r.
2057 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2058 POSIX version of strerror_r, now that gnulib provides it if
2061 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2063 * README (`configure' options): Update.
2065 2019-11-14 Tom Tromey <tromey@adacore.com>
2067 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2068 expected type for the RHS if the LHS is a convenience variable.
2070 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2072 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2073 Provide explicit default and copy constructor.
2075 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2077 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2078 only call Py_INCREF (newbp) in the bppy_pending_object case.
2080 2019-11-13 Tom Tromey <tromey@adacore.com>
2083 * psympriv.h (partial_symbol): Remove static assert.
2084 * symtab.h (general_symbol_info, symbol): Remove static assert.
2086 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2088 * gdbsupport/format.c (format_pieces::format_pieces): Support
2089 printf 'z' size modifier.
2090 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2091 * printcmd.c (ui_printf): Handle size_t_arg.
2092 * ui-out.c (ui_out::vmessage): Likewise.
2093 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2095 (run_tests): Call test_format_int_sizes.
2097 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2099 * ada-exp.y (write_ambiguous_var): Update.
2100 * buildsym.c (add_symbol_to_list): Update.
2101 * dwarf2read.c (read_variable): Update.
2102 (new_symbol): Update.
2103 * jit.c (finalize_symtab): Update.
2104 * language.c (language_alloc_type_symbol): Update.
2105 * symtab.c (fixup_symbol_section): Update.
2106 (initialize_objfile_symbol_1): Move code to...
2107 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2108 (allocate_symbol): Update.
2109 (allocate_template_symbol): Update.
2110 (get_symbol_address): Update.
2111 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2112 of having as a field, and add a constructor.
2113 (SYMBOL_VALUE): Update.
2114 (SYMBOL_VALUE_ADDRESS): Update.
2115 (SET_SYMBOL_VALUE_ADDRESS): Update.
2116 (SYMBOL_VALUE_BYTES): Update.
2117 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2118 (SYMBOL_BLOCK_VALUE): Update.
2119 (SYMBOL_VALUE_CHAIN): Update.
2120 (SYMBOL_LANGUAGE): Update.
2121 (SYMBOL_SECTION): Update.
2122 (SYMBOL_OBJ_SECTION): Update.
2123 (SYMBOL_SET_LANGUAGE): Update.
2124 (SYMBOL_SET_LINKAGE_NAME): Update.
2125 (SYMBOL_SET_NAMES): Update.
2126 (SYMBOL_NATURAL_NAME): Update.
2127 (SYMBOL_LINKAGE_NAME): Update.
2128 (SYMBOL_DEMANGLED_NAME): Update.
2129 (SYMBOL_SEARCH_NAME): Update.
2130 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2131 (struct symbol): Update.
2132 (struct template_symbol): Update.
2133 (struct rust_vtable_symbol): Update.
2134 * xcoffread.c (SYMBOL_DUP): Update.
2136 2019-11-12 Tom Tromey <tom@tromey.com>
2138 * tui/tui-layout.c (show_layout): Set current_layout.
2139 (show_source_disasm_command, show_data)
2140 (show_source_or_disasm_and_command): Don't set current_layout.
2142 2019-11-12 Tom Tromey <tom@tromey.com>
2144 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2146 2019-11-12 Tom Tromey <tom@tromey.com>
2148 * tui/tui-win.c (resize_message): New global.
2149 (show_tui_resize_message): New function.
2150 (tui_async_resize_screen): Print message if requested.
2151 (_initialize_tui_win): Add tui-resize-message setting.
2152 * NEWS: Add entry for new commands.
2154 2019-11-11 Tom Tromey <tom@tromey.com>
2156 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2159 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2161 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2163 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2165 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2167 * python/python-internal.h (gdbpy_lookup_static_symbols):
2168 Declare new function.
2169 * python/python.c (python_GdbMethods): Add
2170 gdb.lookup_static_symbols method.
2171 * NEWS: Mention gdb.lookup_static_symbols.
2173 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2175 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2176 static block of current object file first. Also fix typo in
2179 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2181 * stack.c (set_last_displayed_sal): Delete.
2182 (last_displayed_sal_valid): Delete.
2183 (last_displayed_pspace): Delete.
2184 (last_displayed_addr): Delete.
2185 (last_displayed_symtab): Delete.
2186 (last_displayed_line): Delete.
2187 (class last_displayed_symtab_info_type): New.
2188 (last_displayed_symtab_info): New static global variable.
2189 (print_frame_info): Call methods on last_displayed_symtab_info.
2190 (clear_last_displayed_sal): Update header comment, and make use of
2191 last_displayed_symtab_info.
2192 (last_displayed_sal_is_valid): Likewise.
2193 (get_last_displayed_pspace): Likewise.
2194 (get_last_displayed_addr): Likewise.
2195 (get_last_displayed_symtab): Likewise.
2196 (get_last_displayed_line): Likewise.
2197 (get_last_displayed_sal): Likewise.
2198 * stack.h (clear_last_displayed_sal): Update header comment.
2199 (last_displayed_sal_is_valid): Likewise.
2200 (get_last_displayed_pspace): Likewise.
2201 (get_last_displayed_addr): Likewise.
2202 (get_last_displayed_symtab): Likewise.
2203 (get_last_displayed_line): Likewise.
2204 (get_last_displayed_sal): Likewise.
2206 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2208 * stack.c (frame_show_address): Convert return type to bool.
2209 * stack.h (frame_show_address): Likewise, and update header
2212 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2215 * unittests/vec-utils-selftests.c: New file.
2216 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2218 2019-11-10 Tom Tromey <tom@tromey.com>
2220 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2221 (tui_highlight_win): Likewise.
2222 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2223 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2224 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2225 Don't set can_highlight.
2227 2019-11-10 Tom Tromey <tom@tromey.com>
2229 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2230 Remove unused declaration.
2232 2019-11-08 Tom Tromey <tromey@adacore.com>
2234 * top.c (read_command_file): Update.
2235 (command_line_input): Make return type const.
2236 * python/py-gdb-readline.c: Update.
2237 * linespec.c (decode_line_2): Update.
2238 * defs.h (command_line_input): Make return type const.
2239 * cli/cli-script.c (read_next_line): Make return type const.
2240 * ada-lang.c (get_selections): Update.
2242 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2244 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2245 * mi/mi-main.c (output_cores): Likewise.
2246 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2247 (linux_xfer_osdata_modules): Likewise.
2248 * remote.c (register_remote_support_xml): Likewise.
2249 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2250 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2252 2019-11-06 Tom Tromey <tom@tromey.com>
2254 * tui/tui-interp.c: Don't include readline.h.
2255 * tui/tui-hooks.c: Don't include readline.h.
2256 * symmisc.c: Include tilde.h, not readline.h.
2257 * symfile.c: Include tilde.h, not readline.h.
2258 * source.c: Include tilde.h, not readline.h.
2259 * solib.c: Include tilde.h, not readline.h.
2260 * psymtab.c: Include tilde.h, not readline.h.
2261 * exec.c: Include tilde.h, not readline.h.
2262 * corelow.c: Include tilde.h, not readline.h.
2263 * cli/cli-dump.c: Include tilde.h, not readline.h.
2264 * cli/cli-cmds.c: Don't include readline.h.
2266 2019-11-05 Tom Tromey <tom@tromey.com>
2268 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2269 (tui_disassemble): Set addr_size.
2270 (tui_disasm_window::set_contents): Use addr_size.
2272 2019-11-05 Tom Tromey <tom@tromey.com>
2274 * rust-lang.c (rust_language_defn): Update.
2275 * python/py-value.c (valpy_string): Call c_get_string.
2276 * p-lang.c (pascal_language_defn): Update.
2277 * opencl-lang.c (opencl_language_defn): Update.
2278 * objc-lang.c (objc_language_defn): Update.
2279 * m2-lang.c (m2_language_defn): Update.
2280 * language.c (unknown_language_defn, auto_language_defn): Update.
2281 (default_get_string): Remove.
2282 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2283 * go-lang.c (go_language_defn): Update.
2284 * f-lang.c (f_language_defn): Update.
2285 * d-lang.c (d_language_defn): Update.
2286 * c-lang.c (c_language_defn, cplus_language_defn)
2287 (asm_language_defn, minimal_language_defn): Update.
2288 * ada-lang.c (ada_language_defn): Update.
2289 * language.h (struct language_defn) <la_get_string>: Remove.
2290 (LA_GET_STRING): Remove.
2291 (default_get_string): Don't declare.
2293 2019-11-05 Tom Tromey <tom@tromey.com>
2295 * tui/tui-source.h (struct tui_source_window): Inline
2296 constructor. Remove destructor.
2297 <style_changed, m_observable>: Move to superclass.
2298 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2299 (struct tui_source_window_base): Move private members to end.
2300 <style_changed, m_observable>: Move from tui_source_window.
2301 * tui/tui-winsource.c (tui_copy_source_line): Move from
2302 tui-source.c. Rename from copy_source_line. Add special handling
2303 for negative line number.
2304 (tui_source_window_base::style_changed): Move from
2306 (tui_source_window_base): Register observer.
2307 (~tui_source_window_base): New.
2308 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2310 (tui_source_window::set_contents): Use tui_copy_source_line.
2311 (tui_source_window::tui_source_window): Move to tui-source.h.
2312 (tui_source_window::~tui_source_window): Remove.
2313 (tui_source_window::style_changed): Move to superclass.
2314 * tui/tui-disasm.c (tui_disassemble): Create string file with
2315 styling, when possible. Add "addr_size" parameter.
2316 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2317 Don't compute maximum size.
2318 (len_without_escapes): New function
2320 2019-11-05 Tom Tromey <tom@tromey.com>
2322 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2324 * tui/tui-winsource.c (tui_show_source_line): Update.
2325 * tui/tui-source.c (tui_source_window::set_contents): Update.
2326 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2328 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2330 * symtab.h (gdb_static_assert): Put && operator at the beginning
2331 of the line instead of the end.
2333 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2335 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2336 and sizeof (symbol).
2337 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2339 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2341 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2342 * configure.host: Mark *-*-solaris2.10* obsolete.
2343 * configure.tgt: Mark Solaris < 11 obsolete.
2344 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2345 Update target triplet.
2347 2019-11-01 Tom Tromey <tromey@adacore.com>
2349 * utils.c (print_sys_errmsg): Simplify.
2351 2019-11-01 Tom Tromey <tromey@adacore.com>
2353 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2355 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2357 * configure: Regenerate.
2358 * configure.ac: Remove check for strerror_r.
2359 * gdbsupport/common.m4: Check for strerror_r.
2361 2019-11-01 Luis Machado <luis.machado@linaro.org>
2365 * arm-tdep.c (arm_per_objfile): Rename to ...
2366 (arm_per_bfd): ... this.
2367 (arm_objfile_data_key): Rename to ...
2368 (arm_bfd_data_key): ... this.
2369 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2371 (arm_record_special_symbol): Likewise.
2373 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2375 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2377 * c-typeprint.c (c_print_typedef): Likewise.
2378 * f-typeprint.c (f_print_typedef): Likewise.
2379 * m2-typeprint.c (m2_print_typedef): Likewise.
2380 * p-typeprint.c (pascal_print_typedef): Likewise.
2381 * rust-lang.c (rust_print_typedef): Likewise.
2382 * symtab.c (print_symbol_info): Print a newline after calling
2385 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2387 * symtab.c (info_module_cmdlist): New variable.
2388 (info_module_command): New function.
2389 (search_module_symbols): New function.
2390 (info_module_subcommand): New function.
2391 (struct info_modules_var_func_options): New struct.
2392 (info_modules_var_func_options_defs): New variable.
2393 (make_info_modules_var_func_options_def_group): New function.
2394 (info_module_functions_command): New function.
2395 (info_module_variables_command): New function.
2396 (info_module_var_func_command_completer): New function.
2397 (_initialize_symtab): Register new 'info module functions' and
2398 'info module variables' commands.
2399 * symtab.h (typedef symbol_search_in_module): New typedef.
2400 (search_module_symbols): Declare new function.
2401 * NEWS: Mention new commands.
2403 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2405 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2406 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2407 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2409 (scan_partial_symbols): Only create partial module symbols for non
2411 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2413 * symtab.c (search_domain_name): Likewise.
2414 (search_symbols): Likewise.
2415 (print_symbol_info): Likewise.
2416 (symtab_symbol_info): Likewise.
2417 (info_modules_command): New function.
2418 (_initialize_symtab): Register 'info modules' command.
2419 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2420 * NEWS: Mention new 'info modules' command.
2422 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2424 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2425 and $_gdb_maint_setting_str.
2427 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2429 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2430 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2431 (str_value_from_setting, gdb_setting_str_internal_fn)
2432 (gdb_maint_setting_str_internal_fn): New functions.
2433 (_initialize_cli_cmds): Define the new convenience functions.
2434 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2435 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2437 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2439 * agent.c (set_can_use_agent): When the setting is turned on,
2440 look up agent symbols if we don't have them yet.
2441 (agent_new_objfile): Don't look up agent symbols when the agent
2444 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2446 * config.in: Regenerate.
2448 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2450 * configure: Regenerate.
2451 * configure.ac: Check for strerror_r.
2452 * gdbsupport/common-utils.h (safe_strerror): Change return value
2453 to const char * and document that this function is now threadsafe.
2454 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2455 thread_local and call strerror_r, if available.
2456 * utils.c (perror_string): Update.
2457 (print_sys_errmsg): Update.
2459 2019-10-31 Luis Machado <luis.machado@linaro.org>
2461 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2463 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2464 objfile to fetch per-bfd data.
2465 (arm_find_exidx_entry): Likewise.
2467 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2469 * gdbsupport/agent.c (debug_agent): Change type to bool.
2470 (use_agent): Likewise.
2471 (all_agent_symbols_look_up): Likewise.
2472 (agent_loaded_p): Change return value to bool.
2473 (agent_look_up_symbols): Update.
2474 (agent_capability_check): Change return value to bool.
2475 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2476 (debug_agent): Change type to bool.
2477 (use_agent): Likewise.
2478 (agent_capability_check): Change return value to bool.
2480 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2482 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2483 (build_minimal_symbol_hash_tables): Code to clear the table moved
2484 to clear_minimal_symbol_hash_tables.
2485 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2488 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2490 * infcmd.c: Remove includes.
2491 * infrun.c: Remove includes.
2493 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2495 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2496 (grow_vect): Remove declaration.
2497 (ada_type_of_array): Remove declaration.
2498 (ada_update_initial_language): Remove declaration.
2499 (ada_fold_name): Remove declaration.
2500 (ada_fill_in_ada_prototype): Remove declaration.
2501 (user_select_syms): Remove declaration.
2502 (get_selections): Remove declaration.
2503 (ada_tag_type): Remove declaration.
2504 (ada_value_tag): Remove declaration.
2505 (ada_is_others_clause): Remove declaration.
2506 (ada_in_variant): Remove declaration.
2507 (ada_value_struct_elt): Remove declaration.
2508 (ada_attribute_name): Remove declaration.
2509 (ada_system_address_type): Remove declaration.
2510 * ada-lang.c (ada_watch_location_expression): Make static.
2511 (GROW_VECT): Move here from ada-lang.h.
2512 (grow_vect): Make static.
2513 (ada_update_initial_language): Make static.
2514 (ada_fold_name): Make static.
2515 (ada_type_of_array): Make static.
2516 (encoded_ordered_before): Move up.
2517 (sort_choices): Move up.
2518 (print_signatures): Move up.
2519 (ada_print_symbol_signature): Move up.
2520 (get_selections): Move up and make static.
2521 (user_select_syms): Move up and make static.
2522 (ada_value_struct_elt): Move up and make static.
2523 (ada_tag_type): Make static.
2524 (ada_value_tag): Make static.
2525 (ada_is_others_clause): Make static.
2526 (ada_in_variant): Make static.
2527 (ada_attribute_name): Make static.
2529 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2531 * ada-lang.c: Remove includes.
2532 * ada-typeprint.c: Remove includes.
2533 * ada-valprint.c: Remove includes.
2535 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2537 * addrmap.c: Add static assertions of type size, moved from
2538 _initialize_addrmap.
2539 (_initialize_addrmap): Remove.
2541 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2543 * coffread.c (record_minimal_symbol): Update.
2544 (process_coff_symbol): Update.
2545 * dbxread.c (read_dbx_symtab): Update.
2546 * dwarf2read.c (add_partial_symbol): Update.
2547 (fixup_go_packaging): Update.
2548 (load_partial_dies): Update.
2549 (new_symbol): Update.
2550 * elfread.c (record_minimal_symbol): Change signature to use
2551 gdb::string_view instead of name+len.
2552 (elf_symtab_read): Update.
2553 (elf_rel_plt_read): Update.
2554 * mdebugread.c (parse_partial_symbols): Update.
2555 (handle_psymbol_enumerators): Update.
2556 (new_symbol): Update.
2557 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2558 to use gdb::string_view instead of name+len.
2559 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2560 * psympriv.h (add_psymbol_to_list): Likewise.
2561 * psymtab.c (add_psymbol_to_bcache): Likewise.
2562 (add_psymbol_to_list): Likewise.
2563 * stabsread.c (define_symbol): Update.
2564 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2565 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2566 (symbol_set_names): Likewise.
2567 * xcoffread.c (scan_xcoff_symtab): Update.
2569 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2571 * symtab.h (symbol_set_names): Document that copy_name must be
2572 set to true for non-nullterminated strings.
2573 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2574 linkage_name if the entry was not found and we need to demangle.
2576 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2578 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2579 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2580 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2581 * gdbsupport/gdb_binary_search.h: New file.
2583 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2585 * NEWS: Mention new --with-system-gdbinit-dir option.
2586 * config.in: Regenerate.
2587 * configure: Regenerate.
2588 * configure.ac: Add new option --with-system-gdbinit-dir.
2589 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2590 for a ".gdb" suffix.
2591 * main.c (get_init_files): Change system_gdbinit argument to
2592 a vector and return the files in SYSTEM_GDBINIT_DIR in
2593 addition to SYSTEM_GDBINIT.
2594 (captured_main_1): Update.
2595 (print_gdb_help): Update.
2596 * top.c (print_gdb_configuration): Also print the value of
2599 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2601 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2602 that takes gdb::string_view arguments.
2604 2019-10-26 Tom de Vries <tdevries@suse.de>
2606 * aarch64-linux-tdep.c: Fix typos in comments.
2607 * aarch64-tdep.c: Same.
2609 * amd64-nat.c: Same.
2611 * arch/aarch64-insn.c: Same.
2613 * breakpoint.h: Same.
2616 * cli/cli-decode.c: Same.
2617 * cli/cli-script.c: Same.
2618 * cli/cli-utils.h: Same.
2619 * coff-pe-read.c: Same.
2621 * compile/compile-cplus-symbols.c: Same.
2622 * compile/compile-object-run.c: Same.
2623 * completer.c: Same.
2625 * cp-support.c: Same.
2627 * dwarf-index-write.c: Same.
2628 * dwarf2-frame.c: Same.
2629 * dwarf2-frame.h: Same.
2631 * frame-base.h: Same.
2636 * guile/scm-objfile.c: Same.
2637 * i386-tdep.c: Same.
2638 * i386-tdep.h: Same.
2641 * linux-nat.c: Same.
2642 * m68k-tdep.c: Same.
2645 * mi/mi-cmd-disas.c: Same.
2646 * mi/mi-getopt.h: Same.
2647 * mi/mi-main.c: Same.
2649 * nat/aarch64-sve-linux-sigcontext.h: Same.
2651 * ppc-linux-nat.c: Same.
2652 * ppc-linux-tdep.c: Same.
2654 * progspace.h: Same.
2655 * prologue-value.h: Same.
2656 * python/py-evtregistry.c: Same.
2657 * python/py-instruction.h: Same.
2658 * record-btrace.c: Same.
2659 * record-full.c: Same.
2661 * rs6000-tdep.c: Same.
2663 * sol-thread.c: Same.
2664 * sparc-sol2-tdep.c: Same.
2665 * sparc64-tdep.c: Same.
2666 * stabsread.c: Same.
2670 * tracepoint.c: Same.
2671 * tui/tui-data.h: Same.
2672 * tui/tui-io.c: Same.
2673 * tui/tui-win.c: Same.
2675 * unittests/rsp-low-selftests.c: Same.
2676 * user-regs.h: Same.
2687 * xtensa-tdep.c: Same.
2689 2019-10-25 Ali Tamur <tamur@google.com>
2691 * charset.c (find_charset_names): Reflect API change.
2693 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2695 * symtab.c (struct demangled_name_entry): Change demangled name
2696 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2697 part of the struct anymore.
2698 (symbol_set_names): No longer obstack allocate + copy the demangled
2699 name, just store the allocated name from bfd.
2701 2019-10-25 Tom Tromey <tromey@adacore.com>
2703 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2704 (bsearch_cie_cmp, add_cie): Remove.
2705 (find_cie): Reimplement.
2706 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2707 (dwarf2_build_frame_info): Update.
2709 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2712 * symfile.c (reread_symbols): Call forget_cached_source_info to
2713 clear the stale source cache.
2715 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2717 * configure: Regenerate.
2718 * configure.ac: Remove code that sets python_has_threads.
2720 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2722 * config.in: Regenerate.
2723 * configure: Regenerate.
2724 * configure.ac: Remove the code that uses sed to get the python
2725 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2727 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2729 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2732 2019-10-23 Tom Tromey <tom@tromey.com>
2734 * arc-tdep.c: Remove ".." from include.
2735 * frv-tdep.c: Remove ".." from include.
2736 * lm32-tdep.c: Remove ".." from include.
2737 * microblaze-tdep.c: Remove ".." from include.
2738 * or1k-tdep.h: Remove ".." from include.
2739 * s12z-tdep.c: Remove ".." from include.
2740 * Makefile.in (OPCODES_CFLAGS): Add comment.
2741 (TOP_CFLAGS): New variable.
2742 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2744 2019-10-23 Tom Tromey <tom@tromey.com>
2746 * Makefile.in (READLINE_DIR): Update.
2748 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750 * infcall.c (call_function_by_hand_dummy): Fix the function
2751 comment. And extract out a code section into...
2752 (reserve_stack_space): ...this new function.
2754 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2756 * infcall.c (value_arg_coerce): Remove an unused parameter.
2757 (call_function_by_hand_dummy): Update the call to
2760 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2762 * infcall.c (call_function_by_hand_dummy): Refactor.
2764 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2768 2019-10-23 Tom Tromey <tom@tromey.com>
2770 * configure: Rebuild.
2771 * configure.ac: Don't check for sigprocmask.
2772 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2774 2019-10-23 Tom Tromey <tom@tromey.com>
2776 * configure: Rebuild.
2777 * acinclude.m4: Use m4_include, not sinclude.
2779 2019-10-23 Tom de Vries <tdevries@suse.de>
2781 PR breakpoints/24687
2782 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2784 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2786 * symtab.c (struct demangled_name_entry) <language>: Change from
2787 bitfield to regular variable.
2789 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2791 * symtab.c (struct demangled_name_entry): Add a constructor.
2792 (free_demangled_name_entry): New function to call the destructor
2793 for demangled_name_entry.
2794 (create_demangled_names_hash): Pass free_demangled_name_entry to
2796 (symbol_set_names): Call placement new for demangled_name_entry.
2797 * utils.c: No longer include xxhash.h here, now that fast_hash
2798 is inlined in the header.
2799 * utils.h: Instead, include it here.
2801 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2803 * Makefile.in: Link with libxxhash.
2804 * config.in: Regenerate.
2805 * configure: Regenerate.
2806 * configure.ac: Search for libxxhash.
2807 * utils.c (fast_hash): Use xxhash if present.
2809 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2811 * utils.h (fast_hash): New function.
2812 * symtab.c (hash_demangled_name_entry): Call new function
2815 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2817 * symtab.c (struct demangled_name_entry): Change type of mangled
2818 to gdb::string_view. Also adds a constructor that takes the
2820 (hash_demangled_name_entry): Update.
2821 (eq_demangled_name_entry): Update.
2822 (free_demangled_name_entry): New function to call the destructor
2823 now that this is not a POD anymore.
2824 (create_demangled_names_hash): Pass free_demangled_name_entry to
2826 (symbol_set_names): Update.
2828 2019-10-21 Ali Tamur <tamu@google.com>
2830 * dwarf2read.c (dir_index): Change type.
2831 (file_name_index): Likewise.
2832 (line_header::include_dir_at): Change comment and implementation on
2833 whether it is DWARF 5.
2834 (line_header::is_valid_file_index): New function.
2835 (line_header::file_name_at): Change comment and implementation on
2836 whether it is DWARF 5.
2837 (line_header::file_names): Change to private field renamed as
2838 m_file_names and introduce a new accessor method.
2839 (line_header::file_names_size): New method.
2840 (line_header::include_dirs): Change to private field and rename as
2842 (dw2_get_file_names_reader): Define local var at a smaller scope and
2844 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2845 (process_structure_scope): Likewise.
2846 (line_header::add_include_dir): Change message and reflect renaming.
2847 (line_header::add_file_name): Likewise.
2848 (read_formatted_entries): Handle DW_FORM_data16.
2849 (dwarf_decode_line_header): Fix line header length calculation.
2850 (psymtab_include_file_name): Change comment and API.
2851 (lnp_state_machine::m_file): Update comment and reflect type change.
2852 (lnp_state_machine::record_line): Reflect type change.
2853 (dwarf_decode_lines): Reflect API change.
2854 (file_file_name): Likewise.
2855 (file_full_name): Likewise.
2857 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2859 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2861 2019-10-21 Tom Tromey <tom@tromey.com>
2863 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2865 2019-10-21 Tom Tromey <tom@tromey.com>
2867 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2868 NM_H. Use AC_CONFIG_LINKS.
2869 * configure: Rebuild.
2870 * Makefile.in (NM_H): New variable.
2871 (generated_files): Add NM_H. Remove gcore.
2872 (nm.h, stamp-nmh): New targets.
2874 2019-10-20 Tom Tromey <tom@tromey.com>
2876 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2877 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2879 (put_objfile_before): Now static.
2881 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2883 * gdbsupport/common-utils.h (startswith): Change return type to
2886 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2888 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2889 * breakpoint.c (bp_locations_compare): Rename to...
2890 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2891 (update_global_location_list): Use std::sort instead of qsort.
2892 * buildsym.c (compare_line_numbers): Rename to...
2893 (lte_is_less_than): ...this, and change to std::sort semantics.
2894 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2896 * disasm.c (compare_lines): Rename to...
2897 (line_is_less_than): ...this, and change to std::sort semantics.
2898 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2900 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2901 (fde_is_less_than): ...this, and change to std::sort semantics.
2902 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2903 * mdebugread.c (compare_blocks):
2904 (block_is_less_than): ...this, and change to std::sort semantics.
2905 (sort_blocks): Call std::sort instead of qsort.
2906 * objfiles.c (qsort_cmp): Rename to...
2907 (sort_cmp): ...this, and change to std::sort semantics.
2908 (update_section_map): Call std::sort instead of qsort.
2909 * remote.c (compare_pnums): Remove.
2910 (map_regcache_remote_table): Call std::sort instead of qsort.
2911 * utils.c (compare_positive_ints): Remove.
2912 * utils.h (compare_positive_ints): Remove.
2913 * xcoffread.c (compare_lte): Remove.
2914 (arrange_linetable): Call std::sort instead of qsort.
2916 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2918 * symfile.c (init_entry_point_info): Fix typo.
2919 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2921 2019-10-18 Tom de Vries <tdevries@suse.de>
2923 * aarch64-tdep.c: Fix typos in comments.
2925 * ada-tasks.c: Same.
2926 * alpha-tdep.c: Same.
2927 * alpha-tdep.h: Same.
2928 * amd64-nat.c: Same.
2929 * amd64-windows-tdep.c: Same.
2932 * arch-utils.c: Same.
2933 * arm-nbsd-tdep.c: Same.
2936 * blockframe.c: Same.
2939 * coff-pe-read.c: Same.
2941 * cris-tdep.c: Same.
2942 * darwin-nat.c: Same.
2946 * dtrace-probe.c: Same.
2947 * dwarf-index-write.c: Same.
2948 * dwarf2-frame-tailcall.c: Same.
2949 * dwarf2-frame.c: Same.
2950 * dwarf2read.c: Same.
2952 * exceptions.c: Same.
2953 * fbsd-tdep.c: Same.
2957 * gnu-v3-abi.c: Same.
2959 * h8300-tdep.c: Same.
2960 * hppa-tdep.c: Same.
2961 * i386-linux-tdep.c: Same.
2962 * i386-tdep.c: Same.
2963 * ia64-libunwind-tdep.c: Same.
2964 * ia64-tdep.c: Same.
2968 * linux-nat.c: Same.
2969 * linux-thread-db.c: Same.
2970 * machoread.c: Same.
2971 * mdebugread.c: Same.
2973 * mn10300-tdep.c: Same.
2974 * namespace.c: Same.
2976 * opencl-lang.c: Same.
2977 * or1k-tdep.c: Same.
2979 * ppc-linux-nat.c: Same.
2980 * ppc-linux-tdep.c: Same.
2981 * ppc-sysv-tdep.c: Same.
2984 * record-btrace.c: Same.
2985 * record-full.c: Same.
2986 * remote-fileio.c: Same.
2988 * rs6000-tdep.c: Same.
2989 * s12z-tdep.c: Same.
2990 * score-tdep.c: Same.
2994 * sol-thread.c: Same.
2995 * solib-svr4.c: Same.
2998 * sparc-nat.c: Same.
2999 * sparc-sol2-tdep.c: Same.
3000 * sparc-tdep.c: Same.
3001 * sparc64-tdep.c: Same.
3002 * stabsread.c: Same.
3006 * target-descriptions.c: Same.
3007 * target-float.c: Same.
3014 * windows-nat.c: Same.
3015 * xcoffread.c: Same.
3016 * xstormy16-tdep.c: Same.
3017 * xtensa-tdep.c: Same.
3019 2019-10-17 Tom Tromey <tromey@adacore.com>
3021 * configure: Rebuild.
3022 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3023 in AC_CONFIG_FILES invocation.
3024 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3025 new-style config.status invocation.
3027 2019-10-17 Tom de Vries <tdevries@suse.de>
3029 * arm-nbsd-nat.c: Fix typos in comments.
3031 * darwin-nat-info.c: Same.
3032 * dwarf2read.c: Same.
3034 * event-top.c: Same.
3037 * hppa-tdep.c: Same.
3038 * i386-tdep.c: Same.
3041 * mdebugread.c: Same.
3042 * moxie-tdep.c: Same.
3043 * nto-procfs.c: Same.
3045 * ppc-linux-tdep.c: Same.
3047 * riscv-tdep.c: Same.
3048 * s390-tdep.c: Same.
3050 * sparc-linux-tdep.c: Same.
3051 * sparc-nat.c: Same.
3053 * target-descriptions.c: Same.
3057 2019-10-16 Tom Tromey <tom@tromey.com>
3059 * objfiles.h (struct objfile) <original_name>: Now const.
3061 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3063 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3064 pass on to sigsetjmp's second argument.
3065 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3067 2019-10-16 Keith Seitz <keiths@redhat.com>
3070 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3071 sections whose size is greater than the file size.
3073 2019-10-16 Jim Wilson <jimw@sifive.com>
3075 * riscv-tdep.c (riscv_gcc_target_options): New.
3076 (riscv_gnu_triplet_regexp): New.
3077 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3078 set_gdbarch_gnu_triplet_regexp.
3080 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3082 * Makefile.in: Add xml-builtin.h.
3083 * features/feature_to_c.sh: Add an include for xml-builtin.h
3084 to ensure that the compiler checks that the types match.
3085 * xml-builtin.h: New file.
3086 * xml-support.c (fetch_xml_builtin): Add missing const.
3087 * xml-support.h: Remove declaration of xml_builtins.
3089 2019-10-16 Tom de Vries <tdevries@suse.de>
3092 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3093 (amd64_classify_aggregate): ... here.
3094 (amd64_classify_aggregate_field): Handled fiels of nested structs
3097 2019-10-16 Tom de Vries <tdevries@suse.de>
3100 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3101 that handles 'theclass'.
3103 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3105 * linespec.c (decode_digits_ordinary): Update comment.
3106 * make-target-delegates: No longer need to handle VEC case.
3107 * memrange.c (normalize_mem_ranges): Update comment.
3108 * namespace.c (add_using_directive): Update comment.
3109 * objc-lang.c (uniquify_strings): Update comment.
3110 * ppc-linux-nat.c (struct thread_points): Update comment.
3111 * probe.h (find_probes_in_objfile): Update comment.
3112 * target.h (enum flash_preserve_mode): Update comment.
3113 * varobj.c (varobj_restrict_range): Update comment.
3114 * varobj.h (varobj_list_children): Update comment.
3116 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3118 * Makefile.in: Remove references to vec.h and vec.c.
3119 * aarch64-tdep.c: No longer include vec.h.
3120 * ada-lang.c: Likewise.
3121 * ada-lang.h: Likewise.
3122 * arm-tdep.c: Likewise.
3124 * breakpoint.h: Likewise.
3125 * charset.c: Likewise.
3126 * cp-support.h: Likewise.
3127 * dtrace-probe.c: Likewise.
3128 * dwarf2read.c: Likewise.
3129 * extension.h: Likewise.
3130 * gdb_bfd.c: Likewise.
3131 * gdbsupport/gdb_vecs.h: Likewise.
3132 * gdbsupport/vec.c: Remove.
3133 * gdbsupport/vec.h: Remove.
3134 * gdbthread.h: Likewise.
3135 * guile/scm-type.c: Likewise.
3136 * inline-frame.c: Likewise.
3137 * machoread.c: Likewise.
3138 * memattr.c: Likewise.
3139 * memrange.h: Likewise.
3140 * namespace.h: Likewise.
3141 * nat/linux-btrace.h: Likewise.
3142 * osdata.c: Likewise.
3143 * parser-defs.h: Likewise.
3144 * progspace.h: Likewise.
3145 * python/py-type.c: Likewise.
3146 * record-btrace.c: Likewise.
3147 * rust-exp.y: Likewise.
3148 * solib-target.c: Likewise.
3149 * stap-probe.c: Likewise.
3150 * target-descriptions.c: Likewise.
3151 * target-memory.c: Likewise.
3152 * target.h: Likewise.
3153 * varobj.c: Likewise.
3154 * varobj.h: Likewise.
3155 * xml-support.h: Likewise.
3157 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3159 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3160 Update for new std::vector based implementation.
3161 (process_psymtab_comp_unit_reader): Likewise.
3162 (scan_partial_symbols): Likewise.
3163 (recursively_compute_inclusions): Likewise.
3164 (compute_compunit_symtab_includes): Likewise.
3165 (process_imported_unit_die): Likewise.
3166 (queue_and_load_dwo_tu): Likewise.
3167 (follow_die_sig_1): Likewise.
3168 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3169 (typedef dwarf2_per_cu_ptr): Remove.
3170 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3172 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3173 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3174 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3175 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3178 2019-10-15 Tom Tromey <tromey@adacore.com>
3180 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3183 2019-10-15 Tom Tromey <tromey@adacore.com>
3185 * windows-nat.c (windows_nat_target::fetch_registers)
3186 (windows_nat_target::store_registers): Rename "pid" to "tid".
3188 2019-10-15 Tom Tromey <tromey@adacore.com>
3190 * gdbarch.h, gdbarch.c: Rebuild.
3191 * gdbarch.sh (gcc_target_options): Change return type to
3193 * compile/compile.c (get_args): Update.
3194 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3195 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3197 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3199 * arch-utils.c (default_gcc_target_options): Return std::string.
3200 * arch-utils.h (default_gcc_target_options): Return std::string.
3201 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3203 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3205 * breakpoint.c (breakpoint_chain): Make static.
3206 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3207 of accessing breakpoint_chain.
3209 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3211 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3212 to a gdb::function_view and return value to bool.
3213 * breakpoint.h (iterate_over_breakpoints): Likewise.
3214 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3215 (pop_dummy_frame): Update.
3216 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3217 (gdbscm_breakpoints): Update.
3218 * python/py-breakpoint.c (build_bp_list): Update.
3219 (gdbpy_breakpoints): Update.
3220 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3222 (bpfinishpy_handle_stop): Update.
3223 (bpfinishpy_handle_exit): Update.
3224 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3225 (svr4_update_solib_event_breakpoints): Update.
3227 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3229 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3230 when unwrapping single-field structs.
3232 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3234 * dwarf2read.c: Remove includes.
3236 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3238 * ui-out.c (ui_out::call_do_message): Silence
3239 -Wformat-nonliteral warning.
3241 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3243 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3244 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3245 include: readline/tilde.h.
3247 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3249 * remote.c (remote_target::get_trace_status): Remove declaration of
3250 trace_regblock_size.
3252 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3254 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3255 (show_user): Remove declaration of cmdlist.
3256 * cli/cli-cmds.h (max_user_call_depth): Declare.
3257 * cli/cli-script.c (execute_user_command): Remove declaration
3258 of max_user_call_depth.
3260 2019-10-11 Jim Wilson <jimw@sifive.com>
3262 * gdbsupport/print-utils.h (pulongest): Fix comment.
3263 (plongest): Likewise.
3264 (phex): Add missing comment, mention leading zeros.
3265 (phex_nz): Add mention of no leading zeros to comment.
3267 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3268 plongest instead of unsigned long long cast.
3270 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3272 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3273 for external_editor_command and gdbtk_test.
3275 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3277 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3278 * varobj.c (varobjdebug): Move comment to...
3279 * varobj.h (varobjdebug): ...here, and declare.
3281 2019-10-09 Tom Tromey <tom@tromey.com>
3283 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3286 2019-10-09 Tom Tromey <tom@tromey.com>
3288 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3289 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3290 * tui/tui-command.c (tui_cmd_window::resize)
3291 (tui_refresh_cmd_win): Update.
3292 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3293 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3294 * tui/tui-data.c (~tui_gen_win_info): Remove.
3295 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3296 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3297 (tui_redisplay_readline, tui_mld_flush)
3298 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3299 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3300 (tui_data_window::erase_data_content)
3301 (tui_data_item_window::rerender)
3302 (tui_data_item_window::refresh_window): Update.
3303 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3304 (box_win, tui_gen_win_info::make_window)
3305 (tui_gen_win_info::make_visible): Update.
3306 (tui_delete_win): Remove.
3307 * tui/tui-winsource.c
3308 (tui_source_window_base::do_erase_source_content): Update.
3309 (tui_show_source_line, tui_source_window_base::update_tab_width)
3310 (tui_source_window_base::update_exec_info): Update.
3311 * tui/tui-data.h (struct curses_deleter): New.
3312 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3313 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3315 2019-10-09 Tom Tromey <tom@tromey.com>
3317 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3319 2019-10-09 Tom Tromey <tom@tromey.com>
3321 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3322 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3324 2019-10-09 Tom Tromey <tom@tromey.com>
3326 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3327 window height directly.
3328 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3330 * tui/tui-layout.c (tui_default_win_height): Remove.
3331 (tui_default_win_viewport_height): Remove.
3333 2019-10-09 Tom Tromey <tom@tromey.com>
3335 * tui/tui.h: Remove comments.
3337 2019-10-09 Tom de Vries <tdevries@suse.de>
3339 * python/lib/gdb/printer/bound_registers.py: Use
3340 '^builtin_type_bound128' as regexp argument for
3341 add_builtin_pretty_printer.
3343 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3345 * guile/guile.c (guile_extension_script_ops): Remove forward
3346 declaration and mark as static.
3347 (guile_script_ops): Likewise.
3348 (extension_language_guile): Move further down in the file so
3349 it can reference the definitions for guile_{extension_,}script_ops.
3351 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3353 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3354 except SORTL, DFLTCC, and KDSA.
3356 2019-10-08 Tom Tromey <tromey@adacore.com>
3358 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3359 (struct safe_symbol_file_add_args): Remove.
3361 2019-10-08 Tom Tromey <tromey@adacore.com>
3363 * windows-nat.c: Don't include buildsym-legacy.h.
3365 2019-10-08 Tom Tromey <tromey@adacore.com>
3367 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3369 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3371 * gdbtypes.c (overload_debug): Move comment to header.
3372 * gdbtypes.h (overload_debug): Declare.
3373 * valops.c: Remove declaration of overload_debug, instead
3376 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3378 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3380 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3382 * language.h (lang_frame_mismatch_warn): ... here. Also add
3384 * top.c (lang_frame_mismatch_warn): Remove declaration.
3385 (check_frame_language_change): Pass lang_frame_mismatch_warn
3388 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3390 * c-lang.h (vtbl_ptr_name): Declare.
3391 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3393 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3395 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3397 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3400 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3402 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3403 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3404 * ctfread.c: New file.
3405 * ctfread.h: New file.
3406 * elfread.c: Include ctfread.h.
3407 (struct elfinfo text_p): New member ctfsect.
3408 (elf_locate_sections): Mark CTF section.
3409 (elf_symfile_read): Call elfctf_build_psymtabs.
3410 * Makefile.in (LIBCTF): Add.
3413 (DIST): Add ctfread.c.
3415 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3417 * ctfread.c (struct nextfield): Renamed to ...
3418 (struct ctf_nextfield): ... this.
3419 (struct field_info): Renamed to ...
3420 (strut ctf_field_info): ... this.
3421 (attach_fields_to_type): Update for renamed structures.
3422 (ctf_add_member_cb): Likewise.
3423 (ctf_add_enum_member_cb): Likewise.
3424 (process_struct_members): Likewise.
3425 (process_enum_type): Likewise.
3427 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3429 * tracectf.h: Rename, was ctf.h.
3430 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3431 * tracefile.c: Likewise.
3432 * tracepoint.c: Remove unused include ctf.h.
3433 * mi/mi-main.c: Likewise.
3434 * Makefile.in Replace ctf.c with tracectf.c.
3436 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3438 * version.in: Change version number to "9.0.50.DATE-git".
3440 2019-10-03 Tom Tromey <tom@tromey.com>
3443 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3445 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3447 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3448 cp_search_name_hash.
3449 * NEWS: Add entry about nested function support.
3451 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3452 Andrew Burgess <andrew.burgess@embecosm.com>
3454 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3455 for nested static variables when searchin VAR_DOMAIN.
3456 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3457 global scope, update comment.
3458 (add_partial_subprogram): Call add_partial_subprogram recursively
3459 for nested subroutines when processinng Fortran.
3460 (load_partial_dies): Process the child entities of a subprogram
3461 when processing Fortran.
3462 (partial_die_parent_scope): Handle building scope
3463 for Fortran nested functions.
3464 (process_die): Record that nested functions have a scope.
3465 (new_symbol): Always record Fortran subprograms on the global
3467 (determine_prefix): How to build the prefix for Fortran
3470 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3472 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3473 have just sent the thread a SIGSTOP and are waiting for it to
3476 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3478 * btrace.c (btrace_add_pc): Remove whitespace before the template
3479 parameter in 'std::vector <...>'.
3480 (parse_xml_btrace_block): Likewise.
3481 (btrace_maint_decode_pt): Likewise.
3482 (btrace_maint_update_packets): Likewise.
3483 (btrace_maint_print_packets): Likewise.
3484 * btrace.h (struct btrace_maint_info): Likewise.
3485 * dwarf2read.c (struct type_unit_group): Likewise.
3486 (build_type_psymtabs_reader): Likewise.
3487 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3488 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3489 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3491 2019-10-03 Tom de Vries <tdevries@suse.de>
3493 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3494 the first line of the help text for set/show style metadata.
3496 2019-10-02 Tom Tromey <tromey@adacore.com>
3498 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3499 * gdbsupport/common-inferior.c: New file.
3500 * infcmd.c (startup_with_shell): Don't define.
3501 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3502 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3503 * inferior.h (startup_with_shell): Don't declare.
3505 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3507 * gdbsupport/gdb_assert.h: Include errors.h.
3508 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3510 2019-10-02 Tom Tromey <tromey@adacore.com>
3512 * NEWS: Add $_ada_exception entry.
3513 * ada-lang.c (struct ada_catchpoint): Add constructor.
3514 <m_kind>: New member.
3515 (allocate_location_exception, re_set_exception): Remove
3517 (should_stop_exception): Compute $_ada_exception.
3518 (check_status_exception, print_it_exception)
3519 (print_one_exception, print_mention_exception): Remove
3521 (allocate_location_catch_exception, re_set_catch_exception)
3522 (check_status_exception, print_it_catch_exception)
3523 (print_one_catch_exception, print_mention_catch_exception)
3524 (print_recreate_catch_exception)
3525 (allocate_location_catch_exception_unhandled)
3526 (re_set_catch_exception_unhandled)
3527 (check_status_exception, print_it_catch_exception_unhandled)
3528 (print_one_catch_exception_unhandled)
3529 (print_mention_catch_exception_unhandled)
3530 (print_recreate_catch_exception_unhandled)
3531 (allocate_location_catch_assert, re_set_catch_assert)
3532 (check_status_assert, print_it_catch_assert)
3533 (print_one_catch_assert, print_mention_catch_assert)
3534 (print_recreate_catch_assert)
3535 (allocate_location_catch_handlers, re_set_catch_handlers)
3536 (check_status_handlers, print_it_catch_handlers)
3537 (print_one_catch_handlers, print_mention_catch_handlers)
3538 (print_recreate_catch_handlers): Remove.
3539 (create_ada_exception_catchpoint): Update.
3540 (initialize_ada_catchpoint_ops): Update.
3542 2019-10-02 Tom Tromey <tromey@adacore.com>
3544 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3545 (create_excep_cond_exprs): Simplify exception string computation.
3546 (ada_exception_catchpoint_cond_string): Likewise.
3548 2019-10-02 Tom Tromey <tromey@adacore.com>
3550 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3551 * ada-lang.c (lesseq_defined_than): Handle
3553 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3555 (dwarf2_has_info): Likewise.
3556 (new_symbol): Set maybe_copied on symbol when
3558 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3560 <can_copy>: New member.
3561 * elfread.c (record_minimal_symbol): Set maybe_copied
3562 on symbol when appropriate.
3563 (elf_symfile_read): Update call to dwarf2_has_info.
3564 * minsyms.c (lookup_minimal_symbol_linkage): New
3566 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3567 * symtab.c (get_symbol_address, get_msymbol_address):
3569 * symtab.h (get_symbol_address, get_msymbol_address):
3571 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3573 (struct symbol, struct minimal_symbol) <maybe_copied>:
3576 2019-10-02 Tom Tromey <tromey@adacore.com>
3578 * source.c (struct current_source_location): New.
3579 (current_source_key): New global.
3580 (current_source_symtab, current_source_line)
3581 (current_source_pspace): Remove.
3582 (get_source_location): New function.
3583 (get_current_source_symtab_and_line)
3584 (set_default_source_symtab_and_line)
3585 (set_current_source_symtab_and_line)
3586 (clear_current_source_symtab_and_line, select_source_symtab)
3587 (info_source_command, print_source_lines_base)
3588 (info_line_command, search_command_helper, _initialize_source):
3591 2019-10-02 Tom Tromey <tromey@adacore.com>
3593 * source.c (select_source_symtab): Don't call
3594 decode_line_with_current_source.
3596 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3598 * symtab.c (lookup_global_symbol): Search global block.
3600 2019-10-02 Tom Tromey <tromey@adacore.com>
3602 * coffread.c (process_coff_symbol): Update.
3603 * dwarf2read.c (var_decode_location, new_symbol): Update.
3604 * mdebugread.c (parse_symbol): Update.
3605 * objfiles.c (relocate_one_symbol): Update.
3606 * stabsread.c (define_symbol, fix_common_block)
3607 (scan_file_globals): Update.
3608 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3609 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3610 * xcoffread.c (process_xcoff_symbol): Update.
3612 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3614 * MAINTAINERS: Update my email address.
3616 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3618 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3620 (build_type_psymtabs_reader): Update for std::vector.
3621 (build_type_psymtab_dependencies): Likewise.
3622 * dwarf2read.h: Remove use of DEF_VEC_P.
3623 (typedef sig_type_ptr): Delete.
3625 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3627 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3629 (btrace_maint_decode_pt): Likewise, and move allocation of the
3630 vector outside of the loop.
3631 (btrace_maint_update_packets): Update to handle change from VEC to
3633 (btrace_maint_print_packets): Likewise.
3634 (maint_info_btrace_cmd): Likewise.
3635 * btrace.h: Remove use of DEF_VEC_O.
3636 (typedef btrace_pt_packet_s): Delete.
3637 (struct btrace_maint_info) <packets>: Change fromm VEC to
3639 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3641 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3643 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3644 make accesses into the vector constant references.
3645 (btrace_add_pc): Update for std::vector.
3646 (btrace_stitch_bts): Likewise.
3647 (parse_xml_btrace_block): Likewise.
3648 (btrace_maint_update_packets): Likewise.
3649 (btrace_maint_print_packets): Likewise.
3650 (maint_info_btrace_cmd): Likewise.
3651 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3653 (btrace_data::empty): Likewise.
3654 (btrace_data_append): Likewise.
3655 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3656 (typedef btrace_block_s): Delete.
3657 (struct btrace_block): Add constructor.
3658 (struct btrace_data_bts) <blocks>: Change to std::vector.
3659 * nat/linux-btrace.c (perf_event_read_bts): Update for
3661 (linux_read_bts): Likewise.
3663 2019-10-01 Tom Tromey <tom@tromey.com>
3665 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3667 2019-10-01 Tom Tromey <tom@tromey.com>
3669 * stack.c (print_frame, info_frame_command_core): Use
3671 * linux-thread-db.c (try_thread_db_load_1)
3672 (try_thread_db_load_from_pdir_1): Use styled_string.
3673 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3674 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3675 (maybe_print_unsupported_script_warning)
3676 (maybe_print_script_not_found_warning): Use styled_string.
3677 * ada-lang.c (user_select_syms): Use styled_string.
3679 2019-10-01 Tom Tromey <tom@tromey.com>
3681 * p-lang.c (pascal_printstr): Use metadata style.
3682 * value.c (show_convenience): Use metadata style.
3683 * valprint.c (valprint_check_validity, val_print_optimized_out)
3684 (val_print_not_saved, val_print_unavailable)
3685 (val_print_invalid_address, generic_val_print, val_print)
3686 (value_check_printable, val_print_array_elements): Use metadata
3688 * ui-out.h (class ui_out) <field_fmt>: New overload.
3689 <do_field_fmt>: Add style parameter.
3690 * ui-out.c (ui_out::field_fmt): New overload.
3691 * typeprint.c (type_print_unknown_return_type)
3692 (val_print_not_allocated, val_print_not_associated): Use metadata
3694 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3696 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3697 * tracepoint.c (tvariables_info_1): Use metadata style.
3698 * stack.c (print_frame_arg, print_frame_info, print_frame)
3699 (info_frame_command_core): Use metadata style.
3700 * skip.c (info_skip_command): Use metadata style.
3701 * rust-lang.c (rust_print_enum): Use metadata style.
3702 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3704 * python/py-framefilter.c (py_print_single_arg): Use metadata
3706 * printcmd.c (do_one_display, print_variable_and_value): Use
3708 * p-valprint.c (pascal_val_print)
3709 (pascal_object_print_value_fields): Use metadata style.
3710 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3711 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3713 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3714 * m2-valprint.c (m2_print_long_set): Use metadata style.
3715 * m2-typeprint.c (m2_print_type): Use metadata style.
3716 * infcmd.c (print_return_value_1): Use metadata style.
3717 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3718 * f-valprint.c (info_common_command_for_block): Use metadata
3720 * f-typeprint.c (f_type_print_base): Use metadata style.
3721 * expprint.c (print_subexp_standard): Use metadata style.
3722 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3723 * cli/cli-style.h (class cli_style_option): Add constructor.
3724 (metadata_style): Declare.
3725 * cli/cli-style.c (metadata_style): New global.
3726 (_initialize_cli_style): Register metadata style.
3727 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3729 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3730 * c-typeprint.c (c_type_print_base_struct_union)
3731 (c_type_print_base_1): Use metadata style.
3732 * breakpoint.c (watchpoint_value_print)
3733 (print_one_breakpoint_location): Use metadata style.
3734 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3736 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3738 * ada-valprint.c (val_print_packed_array_elements, printstr)
3739 (print_field_values, ada_val_print_ref, ada_val_print): Use
3741 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3743 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3745 * ada-lang.c (user_select_syms): Use metadata style.
3747 2019-10-01 Tom Tromey <tom@tromey.com>
3749 * cli/cli-cmds.c (pwd_command): Style output.
3751 2019-10-01 Pedro Alves <palves@redhat.com>
3752 Tom Tromey <tom@tromey.com>
3754 * symtab.c (print_symbol_info): Use %ps.
3755 (print_msymbol_info): Use %ps.
3756 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3757 * printcmd.c (print_variable_and_value): Use %ps.
3758 * macrocmd.c (show_pp_source_pos): Use %ps.
3759 * infrun.c (print_exited_reason): Use ui_out::message.
3760 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3761 (describe_other_breakpoints): Use ui_out::message and new
3763 (say_where): Use new formats.
3764 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3767 2019-10-01 Pedro Alves <palves@redhat.com>
3768 Tom Tromey <tom@tromey.com>
3770 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3771 (test_gdb_formats): New function.
3772 (run_tests): Call it.
3773 (test_format_specifier): Update.
3774 * utils.h (fputs_filtered): Update comment.
3775 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3776 (fputs_styled_unfiltered): Declare.
3777 * utils.c (fputs_styled_unfiltered): New function.
3778 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3779 (vfprintf_filtered): Update.
3780 (vfprintf_unfiltered, vprintf_filtered): Update.
3781 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3782 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3783 disallow_ui_out_field>: New constants.
3784 (enum class field_kind): New.
3785 (struct base_field_s, struct signed_field_s): New.
3786 (signed_field): New function.
3787 (struct string_field_s): New.
3788 (string_field): New function.
3789 (struct styled_string_s): New.
3790 (styled_string): New function.
3791 (class ui_out) <message>: Add comment.
3792 <vmessage, call_do_message>: New methods.
3793 <do_message>: Add style parameter.
3794 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3796 (ui_out::message): Rewrite.
3797 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3799 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3800 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3801 gdb_extensions parameter.
3802 (class format_piece): Add parameter to constructor.
3803 (n_int_args): New field.
3804 * gdbsupport/format.c (format_pieces::format_pieces): Add
3805 gdb_extensions parameter. Handle '*'.
3806 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3807 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3808 vfprintf_styled_no_gdbfmt.
3809 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3810 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3812 * ui-style.h (struct ui_file_style) <ptr>: New method.
3814 2019-10-01 Tom Tromey <tom@tromey.com>
3816 * unittests/format_pieces-selftests.c: Update. Add final format.
3817 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3818 empty literal pieces.
3820 2019-10-01 Tom Tromey <tom@tromey.com>
3822 * ui-out.h (enum class ui_out_style_kind): Remove.
3823 (class ui_out) <field_string, field_stsream, do_field_string>:
3824 Change type of "style".
3825 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3826 (ui_out::field_string): Update.
3827 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3829 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3830 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3831 * stack.c (print_frame_arg, print_frame_info, print_frame):
3833 * source.c (print_source_lines_base): Update.
3834 * solib.c (info_sharedlibrary_command): Update.
3835 * skip.c (info_skip_command): Update.
3836 * record-btrace.c (btrace_call_history_src_line)
3837 (btrace_call_history): Update.
3838 * python/py-framefilter.c (py_print_frame): Update.
3839 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3841 * mi/mi-out.c (mi_ui_out::do_table_header)
3842 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3843 (mi_ui_out::do_field_string): Update.
3844 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3846 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3848 * cli-out.c (cli_ui_out::do_table_header)
3849 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3850 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3851 (cli_ui_out::do_field_fmt): Update.
3852 * breakpoint.c (print_breakpoint_location): Update.
3853 (update_static_tracepoint): Update.
3855 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3857 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3858 conversion of gdb_datadir.
3859 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3860 remove not needed c_str ().
3862 2019-09-30 Ali Tamur <tamur@google.com>
3864 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3865 (dwarf2_string_attr): Likewise.
3867 2019-09-30 Ali Tamur <tamur@google.com>
3869 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3870 (process_full_type_unit): Likewise.
3871 (dump_die_shallow): Likewise.
3872 (cu_debug_loc_section): Likewise.
3874 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3876 * minsyms.c (compare_minimal_symbols): Rename to...
3877 (minimal_symbol_is_less_than): ...this, and adjust to STL
3878 conventions (return bool, take arguments as references)
3879 (minimal_symbol_reader::install): Call std::sort instead
3882 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3884 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3886 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3887 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3889 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3891 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3892 * psympriv.h (add_psymbol_to_list): Move comment here and update
3895 2019-09-29 Tom de Vries <tdevries@suse.de>
3897 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3898 Use $tmpdir/$(basename "$output_file").dwz instead of
3899 "${output_file}.dwz".
3901 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3904 * hppa-linux-nat.c: Include gdbarch.h.
3906 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3908 * blockframe.c (find_pc_partial_function): Change return type to bool.
3909 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3910 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3911 (stub_gnu_ifunc_resolve_name): Likewise.
3912 * symtab.c (compare_filenames_for_search): Likewise.
3913 (compare_glob_filenames_for_search): Likewise.
3914 (matching_obj_sections): Likewise.
3915 (symbol_matches_domain): Likewise.
3916 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3917 (find_line_pc): Change return type to bool.
3918 (find_line_pc_range): Likewise.
3919 (producer_is_realview): Likewise.
3920 * symtab.h (symbol_matches_domain): Likewise.
3921 (find_pc_partial_function): Likewise.
3922 (find_pc_line_pc_range): Likewise.
3923 (in_gnu_ifunc_stub): Likewise.
3924 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3925 (find_line_pc): Likewise.
3926 (find_line_pc_range): Likewise.
3927 (matching_obj_sections): Likewise.
3928 (find_line_symtab): Change out parameter to bool.
3929 (producer_is_realview): Change return type to bool.
3930 (compare_filenames_for_search): Likewise.
3931 (compare_glob_filenames_for_search): Likewise.
3933 2019-09-26 Tom Tromey <tom@tromey.com>
3935 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3936 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3937 * gdb_usleep.h: Remove.
3938 * gdb_usleep.c: Remove.
3939 * utils.c: Don't include gdb_usleep.h.
3941 2019-09-26 Tom Tromey <tromey@adacore.com>
3943 * python/py-type.c (type_to_type_object): Call check_typedef
3946 2019-09-26 Tom Tromey <tom@tromey.com>
3948 * utils.h (initialize_utils): Don't declare.
3949 * top.c (gdb_init): Don't call initialize_utils.
3950 * utils.c (initialize_utils): Remove. Move contents...
3951 (_initialize_utils): ... here.
3953 2019-09-25 Tom Tromey <tom@tromey.com>
3955 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3956 * utils.h (make_hex_string): Don't declare.
3957 * utils.c (make_hex_string): Remove.
3959 2019-09-24 Tom de Vries <tdevries@suse.de>
3962 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3963 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3965 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3967 * NEWS: Mention new simulator port for PRU.
3969 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3971 * ada-exp.y (write_object_remaining): Update.
3972 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3973 and eliminate the static buffer.
3974 (ada_decode_symbol): Update.
3975 (ada_la_decode): Update.
3976 (ada_sniff_from_mangled_name): Update.
3977 (is_valid_name_for_wild_match): Update.
3978 (ada_lookup_name_info::matches): Update and simplify.
3979 (name_matches_regex): Update.
3980 (ada_add_global_exceptions): Update.
3981 * ada-lang.h (ada_decode): Update signature.
3982 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3983 * dwarf-index-write.c (debug_names::insert): Update.
3985 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3987 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3990 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3992 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3993 Change "nonzero" to "true" in documentation.
3995 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3997 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3998 (_initialize_darwin_solib): Don't set
3999 darwin_so_ops.lookup_lib_global_symbol.
4000 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4001 set_gdbarch_iterate_over_objfiles_in_search_order.
4002 (elf_lookup_lib_symbol): Rename to...
4003 (svr4_iterate_over_objfiles_in_search_order): this, and update
4004 to iterate semantics.
4005 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4006 * solib.c (solib_global_lookup): Remove.
4007 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4008 (solib_global_lookup): Remove.
4009 * symtab.c (lookup_global_or_static_symbol): Remove call to
4010 solib_global_lookup.
4012 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4014 * NEWS: Move entries about default MI version now being
4015 version 3, and about the GDB/MI fix for multi-location
4016 breakpoints to the "since GDB 8.3" section.
4018 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4022 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4024 * NEWS: Mention that Cell/B.E. debugging support was removed.
4025 * MAINTAINERS: Remove spu target.
4027 * config/djgpp/fnchange.lst: Remove entries for removed files.
4029 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4030 spu-multiarch.o, and spu-tdep.o.
4031 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4032 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4033 spu-multiarch.c, and spu-tdep.c.
4034 * spu-linux-nat.c: Remove file.
4035 * spu-multiarch.c: Remove file.
4036 * spu-tdep.c: Remove file.
4037 * spu-tdep.h: Remove file.
4038 * solib-spu.c: Remove file.
4039 * solib-spu.h: Remove file.
4041 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4042 * configure.nat (spu-linux): Remove.
4043 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4044 solib-multiarch.o from gdb_target_obs.
4047 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4049 (ppc_linux_no_features): Update.
4050 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4052 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4053 (tdesc_powerpc_cell64l): Likewise.
4054 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4055 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4057 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4058 Do not include "features/rs6000/powerpc-cell32l.c" or
4059 "features/rs6000/powerpc-cell64l.c".
4060 (ppc_linux_spu_section): Remove.
4061 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4062 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4063 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4064 (ppc_linux_spe_context_lookup): Remove.
4065 (ppc_linux_spe_context_inferior_created): Remove.
4066 (ppc_linux_spe_context_solib_loaded): Remove.
4067 (ppc_linux_spe_context_solib_unloaded): Remove.
4068 (ppc_linux_spe_context): Remove.
4069 (struct ppu2spu_cache): Remove.
4070 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4071 (struct ppu2spu_data): Remove.
4072 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4073 ppu2spu_unwind): Remove.
4074 (ppc_linux_init_abi): Remove Cell/B.E. support.
4075 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4077 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4078 (rs6000/powerpc-cell64l-expedite): Likewise
4079 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4080 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4081 rs6000/powerpc-cell64l.xml.
4082 * features/rs6000/powerpc-cell32l.xml: Remove.
4083 * features/rs6000/powerpc-cell64l.xml: Likewise.
4084 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4085 * features/rs6000/powerpc-cell64l.c: Likewise.
4086 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4087 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4088 * regformats/reg-spu.dat: Remove.
4090 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4091 * corelow.c (struct spuid_list): Remove.
4092 (add_to_spuid_list): Remove.
4093 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4094 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4095 (remote_protocol_features): Remove associated entries.
4096 (_initialize_remote): No longer initialize them.
4097 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4098 * linux-nat.c (SPUFS_MAGIC): Remove.
4099 (linux_proc_xfer_spu): Remove.
4100 (spu_enumerate_spu_ids): Remove.
4101 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4102 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4103 (linux_make_corefile_notes): No longer call it.
4105 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4106 (cooked_write_test): Likewise.
4108 2019-09-20 Tom Tromey <tom@tromey.com>
4110 * NEWS: Mention case-sensitivity of TUI commands.
4111 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4112 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4113 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4115 2019-09-20 Tom Tromey <tom@tromey.com>
4117 * tui/tui-source.c (tui_source_window::set_contents): Use
4118 make_unique_xstrdup.
4119 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4120 make_unique_xstrdup.
4122 2019-09-20 Tom Tromey <tom@tromey.com>
4124 * tui/tui-data.c: Remove separator comments.
4125 * tui/tui-layout.c: Remove separator comments.
4126 * tui/tui-win.c: Remove separator comments.
4127 * tui/tui-wingeneral.c: Remove separator comments.
4129 2019-09-20 Tom Tromey <tom@tromey.com>
4131 * tui/tui.h (strcat_to_buf): Don't declare.
4132 * tui/tui.c (strcat_to_buf): Remove.
4134 2019-09-20 Tom Tromey <tom@tromey.com>
4136 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4138 * tui/tui-source.c (tui_source_window::set_contents)
4139 (tui_source_window::location_matches_p)
4140 (tui_source_window::maybe_update): Update.
4142 2019-09-20 Tom Tromey <tom@tromey.com>
4144 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4146 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4148 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4149 (tui_data_window::line_from_reg_element_no)
4150 (tui_data_window::first_reg_element_no_inline)
4151 (tui_data_window::show_registers)
4152 (tui_data_window::show_register_group)
4153 (tui_data_window::display_registers_from)
4154 (tui_data_window::display_registers_from_line)
4155 (tui_data_window::first_data_item_displayed)
4156 (tui_data_window::delete_data_content_windows)
4157 (tui_data_window::erase_data_content)
4158 (tui_data_window::do_scroll_vertical)
4159 (tui_data_window::refresh_window)
4160 (tui_data_window::check_register_values): Update.
4162 2019-09-20 Tom Tromey <tom@tromey.com>
4164 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4165 (struct tui_locator_window) <full_name, proc_name>: Now
4167 * tui/tui-stack.c (tui_locator_window::make_status_line)
4168 (tui_locator_window::set_locator_fullname)
4169 (tui_locator_window::set_locator_info): Update.
4170 * tui/tui-source.c (tui_source_window::set_contents)
4171 (tui_source_window::showing_source_p): Update.
4173 2019-09-20 Tom Tromey <tom@tromey.com>
4175 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4176 Don't call tui_locator_win_info_ptr.
4178 2019-09-20 Tom Tromey <tom@tromey.com>
4180 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4182 2019-09-20 Tom Tromey <tom@tromey.com>
4184 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4186 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4187 * tui/tui-layout.c (show_source_disasm_command, show_data)
4188 (show_source_or_disasm_and_command): Use 1 as height for locator.
4190 2019-09-20 Tom Tromey <tom@tromey.com>
4192 * tui/tui.c (tui_enable): Update.
4193 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4195 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4197 * tui/tui-data.c (win_resized): Now bool.
4198 (tui_win_resized): Return bool.
4199 (tui_set_win_resized_to): Accept a bool.
4201 2019-09-20 Tom Tromey <tom@tromey.com>
4203 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4204 Change type of "refresh_values_only".
4205 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4206 type of "refresh_values_only".
4208 2019-09-20 Tom Tromey <tom@tromey.com>
4210 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4212 (tui_disassemble): Add "pos" parameter.
4213 (tui_disasm_window::set_contents): Simplify.
4215 2019-09-20 Tom Tromey <tom@tromey.com>
4217 * tui/tui-winsource.h (struct tui_source_window_base)
4218 <show_source_content>: Now private.
4219 * tui/tui-winsource.c
4220 (tui_source_window_base::show_source_content): Don't handle empty
4223 2019-09-20 Tom Tromey <tom@tromey.com>
4225 * tui/tui-layout.c (show_source_disasm_command)
4226 (show_source_or_disasm_and_command): Don't call
4227 show_source_content.
4229 2019-09-20 Tom Tromey <tom@tromey.com>
4231 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4233 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4234 from tui_make_status_line.
4235 (tui_locator_window::rerender): Update.
4237 2019-09-20 Tom Tromey <tom@tromey.com>
4239 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4240 (tui_locator_window::rerender): Update.
4242 2019-09-20 Tom Tromey <tom@tromey.com>
4244 * tui/tui-winsource.h (struct tui_source_window_base)
4245 <~tui_source_window_base>: Don't declare.
4247 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4248 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4250 * tui/tui-source.c (tui_source_window::set_contents): Update.
4251 (tui_source_window::location_matches_p)
4252 (tui_source_window::maybe_update): Update.
4254 2019-09-20 Tom Tromey <tom@tromey.com>
4256 * tui/tui-winsource.h (~tui_source_element): Remove.
4257 (tui_source_element): Update.
4258 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4259 * tui/tui-winsource.c (tui_show_source_line): Update.
4260 * tui/tui-source.c (tui_source_window::set_contents): Update.
4261 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4263 2019-09-20 Tom Tromey <tom@tromey.com>
4265 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4267 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4268 tui_clear_source_windows_detail.
4269 * tui/tui-winsource.h (struct tui_source_window_base)
4270 <clear_detail>: Don't declare.
4271 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4273 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4275 2019-09-20 Tom Tromey <tromey@adacore.com>
4278 * block.c (contained_in): Fix final return value.
4280 2019-09-20 Alan Modra <amodra@gmail.com>
4282 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4283 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4284 (read_indirect_string_from_dwz): Use bfd accessor.
4285 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4286 * machoread.c (macho_symfile_read_all_oso): Likewise.
4287 * solib.c (solib_bfd_open): Likewise.
4289 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4291 * eval.c: Move declaration of overload_resolution to...
4294 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4296 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4297 * arm-linux-tdep.c: Likewise.
4298 * arm-nbsd-nat.c: Likewise.
4299 * arm-tdep.h: Declare arm_apcs_32.
4300 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4302 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4304 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4305 * dwarf2read.h: Declare dwarf_always_disassemble.
4307 2019-09-19 Tom de Vries <tdevries@suse.de>
4310 * source-cache.c (source_cache::ensure): Catch exception thrown during
4311 construction of the highlighter.
4313 2019-09-18 Alan Modra <amodra@gmail.com>
4315 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4316 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4317 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4318 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4319 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4320 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4321 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4322 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4323 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4324 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4325 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4326 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4327 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4328 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4329 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4330 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4331 * mi/mi-interp.c: Update throughout for bfd section macro and
4333 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4334 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4336 2019-09-18 Tom Tromey <tom@tromey.com>
4339 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4341 (tui_enable): Do not call rl_initialize.
4343 2019-09-18 Christian Groessler <chris@groessler.org>
4345 * alpha-linux-nat.c: Include gdbarch.h.
4347 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4349 * ui-file.c: Include cli/cli-style.h.
4350 (term_cli_styling): Remove cli_styling declaration.
4352 2019-09-18 Alan Modra <amodra@gmail.com>
4354 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4355 to bfd_asymbol_section.
4357 2019-09-18 Alan Modra <amodra@gmail.com>
4359 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4360 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4361 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4363 2019-09-18 Alan Modra <amodra@gmail.com>
4365 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4366 * spu-linux-nat.c (spu_bfd_open): Likewise.
4368 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4370 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4371 to bool to match definition in dwarf2read.c.
4373 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4375 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4376 (print_signatures): Likewise.
4377 (trust_pad_over_xvs): Likewise.
4378 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4379 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4380 * arm-linux-nat.c (arm_apcs_32): Likewise.
4381 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4382 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4383 * arm-tdep.c (arm_debug): Likewise.
4384 (arm_apcs_32): Likewise.
4385 * auto-load.c (debug_auto_load): Likewise.
4386 (auto_load_gdb_scripts): Likewise.
4387 (global_auto_load): Likewise.
4388 (auto_load_local_gdbinit): Likewise.
4389 (auto_load_local_gdbinit_loaded): Likewise.
4390 * auto-load.h (global_auto_load): Likewise.
4391 (auto_load_local_gdbinit): Likewise.
4392 (auto_load_local_gdbinit_loaded): Likewise.
4393 * breakpoint.c (disconnected_dprintf): Likewise.
4394 (breakpoint_proceeded): Likewise.
4395 (automatic_hardware_breakpoints): Likewise.
4396 (always_inserted_mode): Likewise.
4397 (target_exact_watchpoints): Likewise.
4398 (_initialize_breakpoint): Update.
4399 * breakpoint.h (target_exact_watchpoints): Change to bool.
4400 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4401 * cli/cli-cmds.c (trace_commands): Likewise.
4402 * cli/cli-cmds.h (trace_commands): Likewise.
4403 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4405 * cli/cli-logging.c (logging_overwrite): Change to bool.
4406 (logging_redirect): Likewise.
4407 (debug_redirect): Likewise.
4408 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4409 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4411 <boolean_option_def>: Update.
4412 (struct flag_option_def): Change default type of Context to bool
4414 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4415 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4416 (get_setshow_command_value_string): Likewise.
4417 * cli/cli-style.c (cli_styling): Change to bool.
4418 (source_styling): Likewise.
4419 * cli/cli-style.h (source_styling): Likewise.
4420 (cli_styling): Likewise.
4421 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4423 * command.h (var_types): Update comment.
4424 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4425 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4427 (debug_compile_cplus_scopes): Likewise.
4428 * compile/compile-internal.h (compile_debug): Likewise.
4429 * compile/compile.c (compile_debug): Likewise.
4430 (struct compile_options) <raw>: Likewise.
4431 * cp-support.c (catch_demangler_crashes): Likewise.
4432 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4433 (usr_cmd_cris_dwarf2_cfi): Likewise.
4434 * csky-tdep.c (csky_debug): Likewise.
4435 * darwin-nat.c (enable_mach_exceptions): Likewise.
4436 * dcache.c (dcache_enabled_p): Likewise.
4437 * defs.h (info_verbose): Likewise.
4438 * demangle.c (demangle): Likewise.
4439 (asm_demangle): Likewise.
4440 * dwarf-index-cache.c (debug_index_cache): Likewise.
4441 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4442 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4443 * dwarf2read.c (check_physname): Likewise.
4444 (use_deprecated_index_sections): Likewise.
4445 (dwarf_always_disassemble): Likewise.
4446 * eval.c (overload_resolution): Likewise.
4447 * event-top.c (set_editing_cmd_var): Likewise.
4448 (exec_done_display_p): Likewise.
4449 * event-top.h (set_editing_cmd_var): Likewise.
4450 (exec_done_display_p): Likewise.
4451 * exec.c (write_files): Likewise.
4452 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4453 (debug_fbsd_nat): Likewise.
4454 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4456 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4457 <backtrace_past_entry> Likewise.
4458 * gdb-demangle.h (demangle): Likewise.
4459 (asm_demangle): Likewise.
4460 * gdb_bfd.c (bfd_sharing): Likewise.
4461 * gdbcore.h (write_files): Likewise.
4462 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4463 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4464 * gdbthread.h (print_thread_events): Likewise.
4465 * gdbtypes.c (opaque_type_resolution): Likewise.
4466 (strict_type_checking): Likewise.
4467 * gnu-nat.c (gnu_debug_flag): Likewise.
4468 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4469 * guile/scm-param.c (pascm_variable): Add boolval.
4470 (add_setshow_generic): Update.
4471 (pascm_param_value): Update.
4472 (pascm_set_param_value_x): Update.
4473 * hppa-tdep.c (hppa_debug): Change to bool..
4474 * infcall.c (may_call_functions_p): Likewise.
4475 (coerce_float_to_double_p): Likewise.
4476 (unwind_on_signal_p): Likewise.
4477 (unwind_on_terminating_exception_p): Likewise.
4478 * infcmd.c (startup_with_shell): Likewise.
4479 * inferior.c (print_inferior_events): Likewise.
4480 * inferior.h (startup_with_shell): Likewise.
4481 (print_inferior_events): Likewise.
4482 * infrun.c (step_stop_if_no_debug): Likewise.
4483 (detach_fork): Likewise.
4484 (debug_displaced): Likewise.
4485 (disable_randomization): Likewise.
4486 (non_stop): Likewise.
4487 (non_stop_1): Likewise.
4488 (observer_mode): Likewise.
4489 (observer_mode_1): Likewise.
4490 (set_observer_mode): Update.
4491 (sched_multi): Change to bool.
4492 * infrun.h (debug_displaced): Likewise.
4493 (sched_multi): Likewise.
4494 (step_stop_if_no_debug): Likewise.
4495 (non_stop): Likewise.
4496 (disable_randomization): Likewise.
4497 * linux-tdep.c (use_coredump_filter): Likewise.
4498 (dump_excluded_mappings): Likewise.
4499 * linux-thread-db.c (auto_load_thread_db): Likewise.
4500 (check_thread_db_on_load): Likewise.
4501 * main.c (captured_main_1): Update.
4502 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4503 xx2_opt, boolean_opt>: Change to bool.
4504 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4505 * maint.c (maintenance_profile_p): Likewise.
4506 (per_command_time): Likewise.
4507 (per_command_space): Likewise.
4508 (per_command_symtab): Likewise.
4509 * memattr.c (inaccessible_by_default): Likewise.
4510 * mi/mi-main.c (mi_async): Likewise.
4511 (mi_async_1): Likewise.
4512 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4513 * nat/fork-inferior.h (startup_with_shell): Likewise.
4514 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4515 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4516 * nios2-tdep.c (nios2_debug): Likewise.
4517 * or1k-tdep.c (or1k_debug): Likewise.
4518 * parse.c (parser_debug): Likewise.
4519 * parser-defs.h (parser_debug): Likewise.
4520 * printcmd.c (print_symbol_filename): Likewise.
4521 * proc-api.c (procfs_trace): Likewise.
4522 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4523 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4524 (set_parameter_value): Update.
4525 (add_setshow_generic): Update.
4526 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4528 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4530 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4531 * record-btrace.c (record_btrace_target::store_registers): Update.
4532 * record-full.c (record_full_memory_query): Change to bool.
4533 (record_full_stop_at_limit): Likewise.
4534 * record-full.h (record_full_memory_query): Likewise.
4535 * remote-notif.c (notif_debug): Likewise.
4536 * remote-notif.h (notif_debug): Likewise.
4537 * remote.c (use_range_stepping): Likewise.
4538 (interrupt_on_connect): Likewise.
4539 (remote_break): Likewise.
4540 * ser-tcp.c (tcp_auto_retry): Likewise.
4541 * ser-unix.c (serial_hwflow): Likewise.
4542 * skip.c (debug_skip): Likewise.
4543 * solib-aix.c (solib_aix_debug): Likewise.
4544 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4545 (spu_auto_flush_cache_p): Likewise.
4546 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4548 (struct info_print_options) <quiet>: Likewise.
4549 * symfile-debug.c (debug_symfile): Likewise.
4550 * symfile.c (auto_solib_add): Likewise.
4551 (separate_debug_file_debug): Likewise.
4552 * symfile.h (auto_solib_add): Likewise.
4553 (separate_debug_file_debug): Likewise.
4554 * symtab.c (basenames_may_differ): Likewise.
4555 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4556 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4557 (struct info_types_options) <quiet>: Likewise.
4558 * symtab.h (demangle): Likewise.
4559 (basenames_may_differ): Likewise.
4560 * target-dcache.c (stack_cache_enabled_1): Likewise.
4561 (code_cache_enabled_1): Likewise.
4562 * target.c (trust_readonly): Likewise.
4563 (may_write_registers): Likewise.
4564 (may_write_memory): Likewise.
4565 (may_insert_breakpoints): Likewise.
4566 (may_insert_tracepoints): Likewise.
4567 (may_insert_fast_tracepoints): Likewise.
4568 (may_stop): Likewise.
4569 (auto_connect_native_target): Likewise.
4570 (target_stop_and_wait): Update.
4571 (target_async_permitted): Change to bool.
4572 (target_async_permitted_1): Likewise.
4573 (may_write_registers_1): Likewise.
4574 (may_write_memory_1): Likewise.
4575 (may_insert_breakpoints_1): Likewise.
4576 (may_insert_tracepoints_1): Likewise.
4577 (may_insert_fast_tracepoints_1): Likewise.
4578 (may_stop_1): Likewise.
4579 * target.h (target_async_permitted): Likewise.
4580 (may_write_registers): Likewise.
4581 (may_write_memory): Likewise.
4582 (may_insert_breakpoints): Likewise.
4583 (may_insert_tracepoints): Likewise.
4584 (may_insert_fast_tracepoints): Likewise.
4585 (may_stop): Likewise.
4586 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4587 (make_thread_apply_all_options_def_group): Change argument from int*
4589 (thread_apply_all_command): Update.
4590 (print_thread_events): Change to bool.
4591 * top.c (confirm): Likewise.
4592 (command_editing_p): Likewise.
4593 (history_expansion_p): Likewise.
4594 (write_history_p): Likewise.
4595 (info_verbose): Likewise.
4596 * top.h (confirm): Likewise.
4597 (history_expansion_p): Likewise.
4598 * tracepoint.c (disconnected_tracing): Likewise.
4599 (circular_trace_buffer): Likewise.
4600 * typeprint.c (print_methods): Likewise.
4601 (print_typedefs): Likewise.
4602 * utils.c (debug_timestamp): Likewise.
4603 (sevenbit_strings): Likewise.
4604 (pagination_enabled): Likewise.
4605 * utils.h (sevenbit_strings): Likewise.
4606 (pagination_enabled): Likewise.
4607 * valops.c (overload_resolution): Likewise.
4608 * valprint.h (struct value_print_options) <prettyformat_arrays,
4609 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4610 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4611 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4613 * windows-nat.c (new_console): Likewise.
4614 (cygwin_exceptions): Likewise.
4615 (new_group): Likewise.
4616 (debug_exec): Likewise.
4617 (debug_events): Likewise.
4618 (debug_memory): Likewise.
4619 (debug_exceptions): Likewise.
4620 (useshell): Likewise.
4621 * windows-tdep.c (maint_display_all_tib): Likewise.
4622 * xml-support.c (debug_xml): Likewise.
4624 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4626 * source.c (prepare_path_for_appending): New function.
4627 (openp): Make use of new function.
4628 (find_and_open_source): Search for the compilation directory and
4629 source file as a relative path beneath the directory search path.
4631 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4633 * source-cache.c (source_cache::get_line_charpos): Catch
4634 exceptions and return false, this matches the behaviour documented
4637 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4639 * ada-tasks.c (info_task): Remove quoting of the task's name.
4641 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4643 * symfile.c (auto_solib_add): Replace comment with a reference
4646 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4648 * NEWS: Mention that gdb can now be compiled with Python 3
4651 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4653 * maint.c (maint_print_section_data::maint_print_section_data):
4654 Force use of 'float log10 (float)' by casting the argument to
4657 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4659 * maint.c: Add 'cmath' include.
4660 (struct maint_print_section_data): New structure.
4661 (print_section_index): New function.
4662 (print_bfd_section_info): Add header comment, small whitespace
4663 cleanup, and update to call new print_section_index function.
4664 (print_objfile_section_info): Likewise.
4665 (maint_obj_section_from_bfd_section): New function.
4666 (print_bfd_section_info_maybe_relocated): New function.
4667 (maintenance_info_sections): Add header comment, always use
4668 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4670 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4672 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4673 inner scope, add check that the objfile has psymtabs before
4674 checking psymtabs_addrmap.
4675 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4677 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4679 * NEWS: Announce that Ada task names are now shown at more places,
4680 and between quotes (except in info task output).
4681 * gdb/ada-tasks.c (task_to_str): New function.
4682 (display_current_task_id): Call task_to_str.
4683 (task_command_1): Likewise.
4684 (print_ada_task_info): In non-mi mode, Properly align headers and data
4685 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4687 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4689 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4690 prstatus.pr_lwp.pr_info instead of making it up.
4692 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4694 * auto-load.c (auto_load_expand_dir_vars): Update.
4695 * defs.h (gdb_datadir): Change to std::string.
4696 (python_libdir): Likewise.
4697 (relocate_gdb_directory): Change return type to std::string.
4698 * guile/guile.c (gdbscm_data_directory): Update.
4699 (initialize_scheme_side): Update.
4700 * jit.c (jit_reader_dir): Change to std::string.
4701 (jit_reader_load_command): Update.
4702 * main.c (gdb_datadir): Change to std::string.
4703 (python_libdir): Likewise.
4704 (set_gdb_data_directory): Update.
4705 (relocate_path): Change to return std::string.
4706 (relocate_gdb_directory): Change to return std::string.
4707 (relocate_gdbinit_path_maybe_in_datadir): Update.
4708 (captured_main_1): Update.
4709 * python/python.c (do_start_initialization): Update.
4710 * top.c (show_gdb_datadir): Update.
4711 * xml-syscall.c (xml_init_syscalls_info): Update.
4712 (init_syscalls_info): Update.
4714 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4716 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4717 out of get_init_files.
4718 (get_init_files): Update.
4720 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4722 * main.c (get_init_files): Change to use std::string.
4723 (captured_main_1): Update.
4724 (print_gdb_help): Update.
4726 2019-09-11 Ali Tamur <tamur@google.com>
4728 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4731 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4733 * dbxread.c (read_dbx_symtab): Update.
4734 * dwarf2read.c (load_partial_dies): Update.
4735 * mdebugread.c (parse_partial_symbols): Update.
4736 (handle_psymbol_enumerators): Update.
4737 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4738 * psymtab.c (add_psymbol_to_bcache): Likewise.
4739 (add_psymbol_to_list): Likewise.
4740 * symtab.c (symbol_set_names): Likewise.
4741 * symtab.h (symbol_set_names): Likewise.
4742 * xcoffread.c (scan_xcoff_symtab): Update.
4744 2019-09-11 Tom Tromey <tom@tromey.com>
4746 * symfile-mem.c (symbol_file_add_from_memory): Use
4748 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4749 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4751 2019-09-10 Tom Tromey <tromey@adacore.com>
4753 * dwarf-index-write.c (write_psymbols): Extend error message.
4754 (debug_names::insert): Add Ada code.
4755 (debug_names::write_psymbols): Remove Ada check.
4756 (debug_names) <m_string_obstack>: New member.
4757 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4758 (gdb_index_symbol_name_matcher::matches): Remove.
4759 (mapped_index_base::find_name_components_bounds): Add "lang"
4761 (mapped_index_base::build_name_components): Also split names
4762 according to Ada syntax.
4763 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4764 type of "match_callback".
4765 (check_match, check_find_bounds_finds)
4766 (dw2_expand_symtabs_matching): Update.
4767 (dw2_debug_names_iterator): Add new constructor.
4768 (dw2_debug_names_map_matching_symbols): New function.
4769 (dw2_debug_names_expand_symtabs_matching): Update.
4770 (dwarf2_debug_names_functions): Use
4771 dw2_debug_names_map_matching_symbols.
4773 2019-09-10 Tom Tromey <tromey@adacore.com>
4775 * dwarf2read.c (dw2_get_file_names_reader): Add the
4776 CU's file name to the results.
4778 2019-09-10 Tom Tromey <tromey@adacore.com>
4780 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4781 map_matching_symbols. Update.
4782 * dwarf2read.c (dw2_map_matching_symbols): Update.
4783 * psymtab.c (match_partial_symbol): Change type; update.
4784 (psym_map_matching_symbols): Likewise.
4785 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4787 * symfile.h (struct quick_symbol_functions)
4788 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4791 2019-09-10 Tom Tromey <tromey@adacore.com>
4793 * psymtab.c (map_block): Remove.
4794 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4795 * symtab.c (iterate_over_symbols_terminated): New function.
4796 * symtab.c (iterate_over_symbols_terminated): Declare.
4798 2019-09-10 Tom Tromey <tromey@adacore.com>
4800 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4801 * language.h (struct language_defn) <la_iterate_over_symbols>:
4803 * symtab.c (iterate_over_symbols): Return bool.
4804 * symtab.h (iterate_over_symbols): Return bool.
4806 2019-09-10 Tom Tromey <tromey@adacore.com>
4808 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4809 (add_nonlocal_symbols): Update.
4810 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4811 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4812 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4813 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4814 Change type of "callback". Remove "data".
4817 2019-09-09 Ali Tamur <tamur@google.com>
4819 * dwarf2read.c (comp_unit_head): Update comment.
4820 (dwarf2_dwo_name): New function declaration.
4821 (dwarf_unit_type_name): New function declaration.
4822 (read_comp_unit_head): Add support for new compilation units,
4823 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4824 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4825 (currently named as "signature") in their header. Also clarify error
4827 (lookup_dwo_id): New function. Returns the dwo id of the given
4829 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4830 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4832 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4833 (dwarf2_dwo_name): Get the dwo name if present.
4834 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4837 2019-09-09 Tom Tromey <tom@tromey.com>
4839 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4841 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4843 * python/python.c (do_start_initialization): Make progname_copy static,
4844 to avoid a leak report.
4846 2019-09-08 Tom Tromey <tom@tromey.com>
4848 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4850 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4852 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4853 Change type to gdb::optional<block_enum>.
4854 (dw2_symtab_iter_init): Change block_index parameter type
4855 to gdb::optional<block_enum>.
4856 (dw2_lookup_symbol): Change block_index parameter
4857 type to block_enum.c
4858 (dw2_debug_names_lookup_symbol): Likewise.
4859 * psymtab.c (psym_lookup_symbol): Likewise.
4860 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4861 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4864 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4866 * defs.h (relocate_gdb_directory): Change int to bool in
4867 signature and rename flag to relocatable.
4868 * main.c (relocate_path): Likewise.
4869 (relocate_gdb_directory): Likewise.
4871 2019-09-06 Alan Modra <amodra@gmail.com>
4873 * coffread.c (coff_symfile_read): Constify filename variable.
4874 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4875 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4876 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4877 * solib.c (reload_shared_libraries_1): Likewise.
4878 * symfile.c (reread_symbols): Likewise.
4879 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4880 * solib-darwin.c (darwin_bfd_open): Likewise.
4881 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4883 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4885 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4886 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4888 2019-09-03 Tom Tromey <tromey@adacore.com>
4890 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4892 (has_negatives): Unbias a range type bound.
4893 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4894 * gdbtypes.c (operator==): Handle new field.
4895 (create_range_type): Add "bias" parameter.
4896 (create_static_range_type, resolve_dynamic_range): Update.
4897 * gdbtypes.h (struct range_bounds) <bias>: New member.
4898 (create_range_type): Add bias parameter.
4899 * printcmd.c (print_scalar_formatted): Unbias range types.
4900 * value.c (unpack_long): Unbias range types.
4901 (pack_long): Bias range types.
4903 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4905 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4908 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4910 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4911 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4912 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4913 (compile_probe_arg): Likewise.
4914 * probe.h (get_argument_count): Likewise.
4915 * solib-svr4.c (solib_event_probe_action): Likewise.
4916 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4918 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4920 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4922 (svr4_create_solib_event_breakpoints): ...from here.
4924 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4926 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4927 suffix from warning message.
4929 2019-08-30 Tom Tromey <tom@tromey.com>
4931 * tui/tui-winsource.h (struct tui_source_window_base)
4932 <refresh_all>: Don't declare.
4933 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4935 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4936 tui_show_locator_content.
4937 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4939 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4940 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4943 2019-08-30 Tom Tromey <tom@tromey.com>
4945 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4947 2019-08-30 Tom Tromey <tom@tromey.com>
4949 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4950 Remove unnecessary forward declarations.
4952 2019-08-30 Tom Tromey <tom@tromey.com>
4954 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4956 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4957 tui_show_locator_content.
4959 2019-08-30 Tom Tromey <tom@tromey.com>
4961 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4962 (tui_locator_window::rerender): Rewrite using body of previous
4963 tui_show_locator_content.
4965 2019-08-30 Tom Tromey <tom@tromey.com>
4967 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4968 set_locator_fullname>: New methods.
4969 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4970 Rename from tui_set_locator_fullname.
4971 (tui_locator_window::set_locator_info): Rename from
4972 tui_set_locator_info. Return bool.
4973 (tui_update_locator_fullname, tui_show_frame_info): Update.
4975 2019-08-30 Tom Tromey <tom@tromey.com>
4977 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4979 2019-08-30 Tom Tromey <tom@tromey.com>
4981 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4984 2019-08-30 Tom Tromey <tom@tromey.com>
4986 * tui/tui-wingeneral.c (box_win): Assume win_info and
4987 win_info->handle cannot be NULL.
4989 2019-08-30 Tom Tromey <tom@tromey.com>
4991 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4992 refresh_window>: Declare.
4993 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4995 (tui_data_item_window::rerender): Rename from
4996 tui_display_register.
4997 (tui_data_item_window::refresh_window): New method.
4998 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5001 2019-08-30 Tom Tromey <tom@tromey.com>
5003 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5004 regs_column_count, current_group>: Move later. Now private.
5005 <get_current_group>: New method.
5006 * tui/tui-regs.c (tui_reg_command): Update.
5007 * tui/tui-layout.c (tui_set_layout): Update.
5009 2019-08-30 Tom Tromey <tom@tromey.com>
5011 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5012 (tui_data_window::rerender): Don't call
5013 check_and_display_highlight_if_needed.
5014 (tui_data_window::refresh_all): Remove call to
5017 2019-08-30 Tom Tromey <tom@tromey.com>
5019 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5020 (tui_data_window::display_registers_from)
5021 (tui_data_window::display_reg_element_at_line)
5022 (tui_data_window::display_registers_from_line): Remove checks of
5025 2019-08-30 Tom Tromey <tom@tromey.com>
5027 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5029 * tui/tui-regs.c (tui_data_window::show_registers): Call
5031 (tui_data_window::rerender): Rename from display_all_data.
5032 (tui_data_window::rerender): Remove old implementation.
5034 2019-08-30 Tom Tromey <tom@tromey.com>
5036 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5038 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5040 2019-08-29 Bernhard Wodok <barto@gmx.net>
5041 Sergio Durigan Junior <sergiodj@redhat.com>
5044 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5046 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5048 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5049 when searching for types.
5051 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5053 * f-lang.c (f_language_defn): Use f_print_typedef.
5054 * f-lang.h (f_print_typedef): Declare.
5055 * f-typeprint.c (f_print_typedef): Define.
5057 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5059 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5061 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5063 * cli/cli-utils.c (info_print_options_defs): Delete.
5064 (make_info_print_options_def_group): Delete.
5065 (extract_info_print_options): Delete.
5066 (info_print_command_completer): Delete.
5067 (info_print_args_help): Add extra parameter, and optionally
5068 include text about -n flag.
5069 * cli/cli-utils.h (struct info_print_options): Delete.
5070 (extract_info_print_options): Delete declaration.
5071 (info_print_command_completer): Delete declaration.
5072 (info_print_args_help): Add extra parameter, extend header
5074 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5076 * stack.c (struct info_print_options): New type.
5077 (info_print_options_defs): New file scoped variable.
5078 (make_info_print_options_def_group): New static function.
5079 (info_print_command_completer): New static function.
5080 (info_locals_command): Update to use new local functions.
5081 (info_args_command): Likewise.
5082 (_initialize_stack): Add extra parameter to calls to
5083 info_print_args_help.
5084 * symtab.c (search_symbols): Add extra parameter, use this to
5085 possibly excluse non-debug symbols.
5086 (symtab_symbol_info): Add extra parameter, which is passed on to
5088 (struct info_print_options): New type.
5089 (info_print_options_defs): New file scoped variable.
5090 (make_info_print_options_def_group): New static function.
5091 (info_print_command_completer): New static function.
5092 (info_variables_command): Update to use local functions, and pass
5093 extra parameter through to symtab_symbol_info.
5094 (info_functions_command): Likewise.
5095 (info_types_command): Pass additional argument through to
5097 (rbreak_command): Pass extra argument to search_symbols.
5098 (_initialize_symtab): Add extra arguments for calls to
5099 info_print_args_help, and update help text for 'info variables',
5100 'whereis', and 'info functions' commands.
5101 * symtab.h (search_symbols): Add extra argument to declaration.
5102 * NEWS: Mention new flags.
5104 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5106 * symtab.c (lookup_static_symbol): Call the new function (and move
5107 it down to be next to lookup_global_symbol).
5108 (struct global_sym_lookup_data): Add block_enum member and rename to...
5109 (struct global_or_static_sym_lookup_data): ...this.
5110 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5111 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5112 (lookup_symbol_global_or_static_iterator_cb): ...this.
5113 (lookup_global_or_static_symbol): New function.
5114 (lookup_global_symbol): Call new function.
5116 2019-08-26 Tom de Vries <tdevries@suse.de>
5119 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5120 when pc_probe.prob == NULL.
5122 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5124 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5125 variable symbol_linkage to symbol_linkage_.
5127 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5129 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5130 represent whether the symbol is static, dynamic, or we don't
5133 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5135 * gdb/rx-tdep.c (rx_register_names): New.
5136 (rx_register_name): Delete.
5137 (rx_psw_type): Delete.
5138 (rx_fpsw_type): Delete.
5139 (rx_register_type): Delete.
5140 (rx_gdbarch_init): Convert target-descriptions.
5141 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5142 * gdb/features/Makefile: Add rx.xml.
5143 * gdb/features/rx.xml: New.
5144 * gdb/features/rx.c: Generated.
5145 * gdb/NEWS: Mention target description support.
5147 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5149 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5152 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5154 * configure.ac: Don't check for 'dlfcn.h' (moved to
5155 gdbsupport/common.m4).
5156 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5158 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5159 * compile/compile-c-support.c: Include
5160 'gdbsupport/gdb-dlfcn.h'.
5161 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5162 * gdb-dlfcn.c: Move to...
5163 * gdbsupport/gdb-dlfcn.c: ... here.
5164 * gdb-dlfcn.h: Move to...
5165 * gdbsupport/gdb-dlfcn.h: ... here.
5167 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5169 * nios2-tdep.c (struct reg_value): Improve comments. Make
5170 the offset field signed.
5172 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5174 * python/lib/gdb/__init__.py (_execute_file): New function.
5175 * python/python.c (python_run_simple_file): Call gdb._execute_file
5178 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5180 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5181 all uses as this was never set to anything but a zero value.
5183 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5185 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5187 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5189 * tui/tui-data.h (tui_gen_win_info): Add an =default
5190 move constructor, required by some GCC versions.
5192 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5194 * go32-nat.c (go32_sysinfo): Add hygon_p.
5196 2019-08-20 Tom Tromey <tom@tromey.com>
5198 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5199 line_from_reg_element_no, first_reg_element_no_inline,
5200 display_all_data, delete_data_content_windows,
5201 erase_data_content>: Now private.
5203 2019-08-20 Tom Tromey <tom@tromey.com>
5205 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5206 (tui_unhighlight_win, tui_highlight_win)
5207 (tui_win_info::make_window): Update.
5208 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5210 2019-08-20 Tom Tromey <tom@tromey.com>
5212 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5213 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5214 (MAX_PID_WIDTH): Move to tui-stack.c.
5215 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5216 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5217 (MAX_PID_WIDTH): Move from tui-data.h.
5219 2019-08-20 Tom Tromey <tom@tromey.com>
5221 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5222 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5224 (tui_gen_win_info::make_window): Rename from tui_make_window.
5225 (tui_win_info::make_window): New method.
5226 (tui_gen_win_info::make_visible): Update.
5227 * tui/tui-source.c (tui_source_window::set_contents): Update.
5228 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5229 (tui_data_window::display_registers_from): Update.
5230 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5231 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5235 (struct tui_win_info) <make_window>: Declare.
5236 <can_box>: Now virtual.
5237 <title>: New member.
5238 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5239 * tui/tui-command.c (tui_cmd_window::resize): Update.
5241 2019-08-20 Tom Tromey <tom@tromey.com>
5243 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5244 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5245 (tui_data_window::check_register_values): Update.
5247 2019-08-20 Tom Tromey <tom@tromey.com>
5249 * tui/tui-regs.h (struct tui_data_window): Use
5250 DISABLE_COPY_AND_ASSIGN.
5251 <regs_content>: Change type, removing unique_ptr.
5252 <tui_data_window>: Add move constructor.
5253 * tui/tui-regs.c (tui_data_window::show_registers)
5254 (tui_data_window::show_register_group)
5255 (tui_data_window::display_registers_from)
5256 (tui_data_window::display_registers_from)
5257 (tui_data_window::first_data_item_displayed)
5258 (tui_data_window::delete_data_content_windows)
5259 (tui_data_window::rerender, tui_data_window::refresh_window)
5260 (tui_data_window::check_register_values): Update.
5262 2019-08-20 Tom Tromey <tom@tromey.com>
5264 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5265 show_register_group>: Declare.
5266 (tui_show_register_group): Don't declare.
5267 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5269 (tui_data_window::show_register_group): Rename from
5270 tui_show_register_group.
5271 (tui_data_window::check_register_values, tui_reg_command):
5273 * tui/tui-layout.c (tui_set_layout): Update.
5275 2019-08-20 Tom Tromey <tom@tromey.com>
5277 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5279 (tui_check_register_values): Don't declare.
5280 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5281 from tui_check_register_values.
5282 * tui/tui-hooks.c (tui_register_changed): Update.
5284 2019-08-20 Tom Tromey <tom@tromey.com>
5286 * tui/tui-regs.c (tui_reg_layout): Move later.
5287 (tui_show_registers): Don't enable TUI mode or change layout.
5289 2019-08-20 Tom Tromey <tom@tromey.com>
5291 * tui/tui-regs.h (struct tui_data_item_window)
5292 <~tui_data_item_window>: Remove.
5293 <content>: Now a unique_xmalloc_ptr.
5294 * tui/tui-regs.c (tui_register_format): Return a
5296 (tui_get_register): Update.
5297 (~tui_data_item_window): Remove.
5298 (tui_data_window::display_registers_from, tui_display_register):
5300 * tui/tui-io.h (tui_expand_tabs): Update.
5301 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5302 Remove "col" parameter.
5304 2019-08-20 Tom Tromey <tom@tromey.com>
5306 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5308 * tui/tui-regs.c (~tui_data_item_window): Update.
5310 2019-08-20 Tom Tromey <tom@tromey.com>
5312 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5315 2019-08-20 Tom Tromey <tom@tromey.com>
5317 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5319 2019-08-20 Tom Tromey <tom@tromey.com>
5321 * tui/tui-source.h (struct tui_source_window): Update.
5322 * tui/tui-regs.c (tui_show_registers): Update.
5323 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5324 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5325 (NO_REGS_STRING): Remove defines.
5327 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5329 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5330 unnecessary thread walk if remote doesn't support the packet.
5332 2019-08-19 Tom Tromey <tromey@adacore.com>
5334 * python/py-value.c (value_has_field): Fix indentation.
5336 2019-08-19 Tom Tromey <tromey@adacore.com>
5338 * printcmd.c (do_one_display, info_display_command): Update.
5339 * block.h (contained_in): Return bool. Add allow_nested
5341 * block.c (contained_in): Return bool. Add allow_nested
5344 2019-08-19 Tom Tromey <tom@tromey.com>
5346 * configure: Rebuild.
5347 * configure.ac: Disallow the combination of -static-libstdc++ and
5349 * source-cache.c (get_language_name): Handle rust.
5350 (source_cache::get_source_lines): Ignore highlighting exceptions.
5352 2019-08-16 Tom Tromey <tom@tromey.com>
5354 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5355 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5356 (struct tui_source_window_base) <make_visible, refresh_window,
5357 resize>: Remove methods.
5358 <execution_info>: Remove field.
5359 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5360 (tui_show_source_line, tui_source_window_base)
5361 (~tui_source_window_base): Update.
5362 (tui_source_window_base::resize)
5363 (tui_source_window_base::make_visible)
5364 (tui_source_window_base::refresh_window): Remove.
5365 (tui_source_window_base::update_exec_info): Update.
5366 * tui/tui-source.c (tui_source_window::set_contents): Update.
5367 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5369 2019-08-16 Tom Tromey <tom@tromey.com>
5371 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5372 deprecated_query_hook.
5374 2019-08-16 Tom Tromey <tom@tromey.com>
5376 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5377 (tui_update_source_windows_with_line): Update.
5378 * tui/tui-source.h (struct tui_source_window)
5379 <show_symtab_source>: Declare.
5380 (tui_show_symtab_source): Don't declare.
5381 * tui/tui-source.c (tui_show_symtab_source): Rename from
5382 tui_show_symtab_source.
5384 2019-08-16 Tom Tromey <tom@tromey.com>
5386 * tui/tui-winsource.h (struct tui_source_window_base)
5387 <set_contents>: Declare.
5388 * tui/tui-winsource.c
5389 (tui_source_window_base::update_source_window_as_is): Update.
5390 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5392 (tui_set_source_content): Don't declare.
5393 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5394 tui_set_source_content.
5395 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5397 (tui_set_disassem_content): Don't declare.
5398 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5399 tui_set_disassem_content.
5401 2019-08-16 Tom Tromey <tom@tromey.com>
5403 * tui/tui-winsource.h (struct tui_source_window_base)
5404 <update_breakpoint_info>: Declare.
5405 (tui_update_breakpoint_info): Don't declare.
5406 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5407 (tui_update_all_breakpoint_info): Update.
5408 (tui_source_window_base::update_breakpoint_info): Rename from
5409 tui_update_breakpoint_info.
5410 (tui_source_window_base::update_exec_info): Update.
5412 2019-08-16 Tom Tromey <tom@tromey.com>
5414 * tui/tui-winsource.h (struct tui_source_window_base)
5415 <update_source_window>: Declare.
5416 (tui_update_source_window): Don't declare.
5417 * tui/tui-winsource.c
5418 (tui_source_window_base::update_source_window): Rename from
5419 tui_update_source_window.
5420 (tui_source_window_base::rerender): Update.
5421 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5422 * tui/tui-disasm.c (tui_show_disassem)
5423 (tui_show_disassem_and_update_source)
5424 (tui_disasm_window::maybe_update): Update.
5426 2019-08-16 Tom Tromey <tom@tromey.com>
5428 * tui/tui-winsource.h (struct tui_source_window_base)
5429 <update_source_window_as_is>: Declare.
5430 (tui_update_source_window_as_is): Don't declare.
5431 * tui/tui-winsource.c (tui_update_source_window): Update
5432 (tui_source_window_base::update_source_window_as_is): Rename from
5433 tui_update_source_window_as_is.
5434 (tui_source_window_base::refill): Update.
5435 * tui/tui-source.c (tui_show_symtab_source): Update.
5436 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5439 2019-08-16 Tom Tromey <tom@tromey.com>
5441 * tui/tui-winsource.h (tui_update_source_window)
5442 (tui_update_source_window_as_is): Remove "noerror" parameter.
5443 * tui/tui-winsource.c (tui_update_source_window)
5444 (tui_update_source_window_as_is): Remove "noerror" parameter.
5445 (tui_update_source_windows_with_addr)
5446 (tui_update_source_windows_with_line)
5447 (tui_source_window_base::rerender)
5448 (tui_source_window_base::refill): Update.
5449 * tui/tui-source.h (tui_set_source_content)
5450 (tui_show_symtab_source): Remove "noerror" parameter.
5451 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5453 (tui_show_symtab_source): Likewise.
5454 (tui_source_window::maybe_update): Update.
5455 * tui/tui-disasm.c (tui_show_disassem)
5456 (tui_show_disassem_and_update_source)
5457 (tui_disasm_window::do_scroll_vertical)
5458 (tui_disasm_window::maybe_update): Update.
5460 2019-08-16 Tom Tromey <tom@tromey.com>
5462 * tui/tui.c (tui_is_window_visible): Update.
5463 * tui/tui-wingeneral.c (tui_make_window)
5464 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5465 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5466 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5467 (tui_set_win_height_command, parse_scrolling_args): Update.
5468 * tui/tui-source.c (tui_source_window::style_changed): Update.
5469 * tui/tui-regs.c (tui_show_registers)
5470 (tui_data_window::first_data_item_displayed)
5471 (tui_data_window::delete_data_content_windows)
5472 (tui_check_register_values, tui_reg_command): Update.
5473 * tui/tui-disasm.c (tui_show_disassem): Update.
5474 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5476 <is_visible>: Remove field.
5477 * tui/tui-data.c (tui_next_win, tui_prev_win)
5478 (tui_delete_invisible_windows): Update.
5480 2019-08-16 Tom Tromey <tom@tromey.com>
5482 * tui/tui-winsource.h (struct tui_source_window_base)
5483 <m_has_locator>: Remove.
5484 * tui/tui-layout.c (show_source_disasm_command, show_data)
5485 (show_source_or_disasm_and_command): Update.
5487 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5489 * NEWS (Other MI changes): New subsection.
5490 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5491 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5492 * arch-utils.c (default_get_pc_address_flags): New function.
5493 * arch-utils.h (default_get_pc_address_flags): New declaration.
5494 * gdbarch.sh: Add get_pc_address_flags.
5495 * gdbarch.c: Regenerate.
5496 * gdbarch.h: Likewise.
5497 * stack.c (print_pc): New function.
5498 (print_frame_info) (print_frame): Call print_pc.
5500 2019-08-16 Tom de Vries <tdevries@suse.de>
5502 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5503 print_objfile_section_info.
5505 2019-08-15 Tom Tromey <tom@tromey.com>
5507 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5508 calling update_cmdwin_start_line.
5509 * tui/tui-winsource.h (struct tui_source_window_base)
5510 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5511 <rerender>: Declare.
5512 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5514 (tui_source_window_base::set_new_height): Remove.
5515 (tui_source_window_base::rerender): Rename from
5516 do_make_visible_with_new_height.
5517 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5519 (tui_win_info::make_invisible_and_set_new_height)
5520 (tui_win_info::make_visible_with_new_height): Remove.
5521 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5523 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5524 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5525 do_make_visible_with_new_height>: Don't declare.
5526 <rerender>: Declare.
5527 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5529 (tui_data_window::do_make_visible_with_new_height): Remove.
5530 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5531 call tui_show_locator_content.
5532 (tui_gen_win_info::resize): Call rerender.
5533 (show_source_or_disasm_and_command): Don't call
5534 tui_show_locator_content.
5535 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5537 (struct tui_win_info) <rerender>: Declare.
5538 <set_new_height, make_invisible_and_set_new_height,
5539 make_visible_with_new_height>: Don't declare.
5540 * tui/tui-data.c (tui_win_list::rerender): New method.
5541 * tui/tui-command.h (struct tui_cmd_window)
5542 <do_make_visible_with_new_height>: Don't declare.
5544 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5546 2019-08-15 Tom Tromey <tromey@adacore.com>
5548 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5549 * ada-lang.c (ada_enum_name): Likewise.
5551 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5553 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5555 (GdbOutputErrorFile): Likewise.
5556 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5558 (execute_unwinders): Rename to have a leading underscore.
5559 (auto_load_packages): Likewise.
5560 (global scope): Adjust call to auto_load_packages accordingly.
5561 (GdbSetPythonDirectory): Likewise.
5562 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5563 instead of execute_unwinders.
5565 2019-08-15 Tom Tromey <tom@tromey.com>
5567 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5568 (show_data): Don't change window visibility.
5569 (tui_gen_win_info::resize): Remove special case for command
5570 window. Use wresize, when available.
5571 (show_source_or_disasm_and_command): Don't change window
5573 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5574 <make_visible>: New method.
5575 * tui/tui-command.c (tui_cmd_window::resize): New method.
5577 2019-08-15 Tom Tromey <tom@tromey.com>
5579 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5580 (struct tui_source_windows): New.
5581 * tui/tui-winsource.c (tui_display_main): Update.
5582 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5583 (new_height_ok, parse_scrolling_args): Update.
5584 * tui/tui-layout.c (show_layout, show_data): Update.
5585 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5586 (tui_add_to_source_windows): Don't declare.
5587 * tui/tui-data.c (source_windows, tui_source_windows)
5588 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5590 2019-08-15 Tom Tromey <tom@tromey.com>
5592 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5594 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5595 * tui/tui-layout.c (show_source_disasm_command, show_data):
5597 (tui_gen_win_info::resize): Rename.
5598 (show_source_or_disasm_and_command): Update.
5599 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5602 2019-08-15 Tom Tromey <tom@tromey.com>
5604 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5605 * tui/tui-interp.c (tui_interp::init): Don't call
5606 tui_initialize_static_data.
5607 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5609 2019-08-15 Tom Tromey <tom@tromey.com>
5611 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5612 examine tui_win_list.
5614 2019-08-15 Tom Tromey <tom@tromey.com>
5616 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5617 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5618 tui_clear_source_content.
5619 (tui_clear_source_content): Remove.
5620 (tui_source_window_base::do_erase_source_content): Hoist call to
5622 * tui/tui-stack.c (tui_show_frame_info): Don't call
5623 tui_clear_source_content.
5625 2019-08-15 Tom Tromey <tom@tromey.com>
5627 * tui/tui-winsource.h (struct tui_source_window_base)
5628 <do_erase_source_content>: New method.
5629 <erase_source_content>: New method.
5630 (tui_erase_source_content): Don't declare.
5631 * tui/tui-winsource.c (tui_clear_source_content): Update.
5632 (tui_source_window_base::do_erase_source_content): Rename from
5633 tui_erase_source_content.
5634 (tui_source_window_base::show_source_content): Update.
5635 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5636 * tui/tui-source.h (struct tui_source_window)
5637 <erase_source_content>: New method.
5638 * tui/tui-disasm.h (struct tui_disasm_window)
5639 <erase_source_content>: New method.
5641 2019-08-15 Tom Tromey <tom@tromey.com>
5643 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5644 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5646 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5647 * tui/tui-source.c (tui_set_source_content): Update.
5648 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5650 2019-08-15 Tom Tromey <tom@tromey.com>
5652 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5653 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5655 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5657 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5659 (tui_source_window::maybe_update): Update.
5661 2019-08-15 Tom Tromey <tom@tromey.com>
5663 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5664 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5666 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5668 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5670 (tui_disasm_window::maybe_update): Update.
5672 2019-08-15 Tom Tromey <tom@tromey.com>
5674 * tui/tui-winsource.h (struct tui_source_window_base)
5675 <maybe_update>: Declare.
5676 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5678 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5680 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5681 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5683 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5685 2019-08-15 Tom Tromey <tom@tromey.com>
5687 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5689 2019-08-15 Tom Tromey <tom@tromey.com>
5691 * tui/tui-wingeneral.c: Include tui-stack.h.
5692 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5693 (struct tui_locator_window): Move from tui-data.h.
5694 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5695 (tui_initialize_static_data): Move from tui-data.c.
5696 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5697 (struct tui_locator_window): Move to tui-stack.c.
5698 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5699 (tui_initialize_static_data): Move to tui-stack.c.
5701 2019-08-15 Tom Tromey <tom@tromey.com>
5703 * tui/tui-layout.c (show_source_disasm_command)
5704 (show_source_or_disasm_and_command): Use make_visible method, not
5706 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5709 2019-08-15 Tom Tromey <tom@tromey.com>
5711 * tui/tui-wingeneral.h (tui_make_window): Update.
5712 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5714 (tui_gen_win_info::make_visible): Update.
5715 * tui/tui-regs.c (tui_data_window::display_registers_from):
5717 * tui/tui-layout.c (show_source_disasm_command)
5718 (show_source_or_disasm_and_command): Update.
5719 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5720 (enum tui_box): Remove.
5721 (struct tui_win_info) <can_box>: New method.
5722 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5725 2019-08-15 Tom de Vries <tdevries@suse.de>
5727 * linux-nat-trad.c: Include gdbarch.h.
5729 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5731 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5734 2019-08-14 Tom Tromey <tromey@adacore.com>
5736 * darwin-nat.c: Include gdbarch.h.
5737 * darwin-nat-info.c: Include gdbarch.h.
5739 2019-08-13 Tom Tromey <tom@tromey.com>
5741 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5743 * tui/tui-data.c (tui_initialize_static_data): Update.
5745 2019-08-13 Tom Tromey <tom@tromey.com>
5747 * tui/tui-winsource.h (struct tui_exec_info_window)
5748 <~tui_exec_info_window, maybe_allocate_content, get_content,
5750 (struct tui_source_window_base) <set_exec_info_content,
5751 show_exec_info_content>: Don't declare.
5752 * tui/tui-winsource.c
5753 (tui_exec_info_window::maybe_allocate_content): Remove.
5754 (tui_source_window_base::update_exec_info): Rename from
5755 set_exec_info_content.
5756 (tui_source_window_base::show_exec_info_content)
5757 (tui_source_window_base::update_exec_info): Remove.
5759 2019-08-13 Tom Tromey <tom@tromey.com>
5761 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5763 * tui/tui-winsource.c (tui_update_source_window_as_is)
5764 (tui_update_source_windows_with_addr, tui_erase_source_content):
5766 (tui_clear_exec_info_content): Remove.
5768 2019-08-13 Tom Tromey <tom@tromey.com>
5770 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5772 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5773 call tui_erase_exec_info_content.
5774 (tui_clear_exec_info_content): Rename from
5775 tui_erase_exec_info_content.
5776 (tui_clear_exec_info_content): Delete.
5778 2019-08-13 Tom Tromey <tom@tromey.com>
5780 * tui/tui-winsource.h (struct tui_source_window_base)
5781 <show_exec_info_content>: Declare.
5782 (tui_show_exec_info_content): Don't declare.
5783 * tui/tui-winsource.c
5784 (tui_source_window_base::show_exec_info_content): Rename from
5785 tui_show_exec_info_content.
5786 (tui_source_window_base::update_exec_info): Update.
5788 2019-08-13 Tom Tromey <tom@tromey.com>
5790 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5791 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5792 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5793 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5794 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5795 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5798 2019-08-13 Tom Tromey <tom@tromey.com>
5800 * tui/tui-winsource.h (struct tui_source_window_base)
5801 <update_exec_info>: Declare.
5802 (tui_update_exec_info): Don't declare.
5803 * tui/tui-winsource.c (tui_update_source_window_as_is)
5804 (tui_source_window_base::refresh_all)
5805 (tui_update_all_breakpoint_info): Update.
5806 (tui_source_window_base::update_exec_info): Rename from
5807 tui_update_exec_info.
5808 * tui/tui-stack.c (tui_show_frame_info): Update.
5810 2019-08-13 Tom Tromey <tom@tromey.com>
5812 * tui/tui-winsource.h (struct tui_source_window_base)
5813 <set_exec_info_content>: Declare.
5814 (tui_set_exec_info_content): Don't declare.
5815 * tui/tui-winsource.c
5816 (tui_source_window_base::set_exec_info_content): Rename from
5817 tui_set_exec_info_content.
5818 (tui_update_exec_info): Update.
5820 2019-08-13 Tom Tromey <tom@tromey.com>
5822 * tui/tui-winsource.h (struct tui_source_window_base)
5823 <show_source_content>: Declare.
5824 (tui_show_source_content): Don't declare.
5825 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5826 (tui_source_window_base::show_source_content): Rename from
5827 tui_show_source_content.
5828 (tui_source_window_base::refresh_all): Update.
5829 * tui/tui-layout.c (show_source_disasm_command)
5830 (show_source_or_disasm_and_command): Update.
5832 2019-08-13 Tom Tromey <tom@tromey.com>
5834 * tui/tui-winsource.c (tui_erase_source_content)
5835 (tui_show_source_content, tui_source_window_base::refresh_all):
5837 * tui/tui-wingeneral.h
5838 (tui_check_and_display_highlight_if_needed): Don't declare.
5839 * tui/tui-wingeneral.c
5840 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5841 check_and_display_highlight_if_needed.
5842 * tui/tui-win.c (tui_rehighlight_all)
5843 (tui_win_info::make_visible_with_new_height): Update.
5844 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5845 (tui_data_window::erase_data_content)
5846 (tui_data_window::display_all_data): Update.
5847 * tui/tui-data.h (struct tui_win_info)
5848 <check_and_display_highlight_if_needed>: Declare.
5850 2019-08-13 Tom Tromey <tom@tromey.com>
5852 * tui/tui-win.c (tui_resize_all): Call
5853 tui_delete_invisible_windows.
5854 * tui/tui-layout.c (show_layout): Call
5855 tui_delete_invisible_windows.
5856 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5857 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5859 2019-08-13 Tom Tromey <tom@tromey.com>
5861 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5862 tui_add_win_to_layout.
5864 2019-08-13 Tom Tromey <tom@tromey.com>
5866 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5867 * tui/tui-layout.c (tui_default_win_height): Now static.
5869 2019-08-13 Tom Tromey <tom@tromey.com>
5871 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5873 (show_source_disasm_command, show_source_or_disasm_and_command):
5874 Don't check current layout.
5876 2019-08-13 Tom Tromey <tom@tromey.com>
5878 * tui/tui-wingeneral.c (make_all_visible): Remove.
5879 (tui_make_all_invisible): Simplify.
5880 * tui/tui-layout.c (tui_make_all_invisible): Move from
5881 tui-wingeneral.c; simplify.
5882 (show_layout): Hoist call to tui_make_all_invisible.
5883 (show_data): Don't call tui_make_all_invisible.
5885 2019-08-13 Tom Tromey <tom@tromey.com>
5887 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5888 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5890 2019-08-13 Tom Tromey <tom@tromey.com>
5892 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5894 (show_source_disasm_command, show_data)
5895 (show_source_or_disasm_and_command): Don't use
5896 tui_set_current_layout_to.
5897 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5898 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5900 (tui_set_current_layout_to): Remove.
5902 2019-08-13 Tom Tromey <tom@tromey.com>
5904 * tui/tui-layout.c (tui_set_layout): Update.
5905 * tui/tui-data.h (struct tui_layout_def): Remove.
5906 (tui_layout_def): Don't declare.
5907 * tui/tui-data.c (layout_def): Remove.
5908 (tui_layout_def): Remove.
5910 2019-08-13 Tom Tromey <tom@tromey.com>
5912 * tui/tui-winsource.h (struct tui_source_window_base)
5913 <clear_detail>: No longer "override".
5914 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5915 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5916 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5917 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5919 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5921 2019-08-13 Tom Tromey <tromey@adacore.com>
5923 * tracepoint.c: Don't include readline.h or history.h.
5925 2019-08-12 Tom Tromey <tom@tromey.com>
5927 * configure: Rebuild.
5928 * configure.ac: Check for readline 7.
5929 * NEWS: Mention readline 7 requirement.
5932 2019-08-12 Tom Tromey <tom@tromey.com>
5934 * mingw-hdep.c (gdb_select): Remove readline hack.
5936 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5938 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5939 when the function fails.
5941 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5943 * s390-tdep.c (s390_type_align): New function.
5944 (s390_gdbarch_init): Set it as type_align gdbarch method.
5946 2019-08-09 Tom de Vries <tdevries@suse.de>
5949 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5950 pc_low with relocation offset.
5952 2019-08-07 Tom Tromey <tromey@adacore.com>
5954 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5955 (print_frame_args): Update.
5956 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5958 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5959 * frame.h (struct frame_arg): Add initializers.
5960 <error>: Now a unique_xmalloc_ptr.
5962 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5964 * NEWS: Expand the Pointer Authentication entry.
5965 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5966 (aarch64_frame_unmask_lr): ... to this.
5967 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5968 Call aarch64_frame_unmask_lr.
5969 * frame.c (struct frame_info): Add "masked" variable.
5970 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5971 (fprint_frame): Check for masked pc.
5972 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5974 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5975 * stack.c (print_frame): Check for masked pc.
5977 2019-08-06 Tom Tromey <tom@tromey.com>
5979 * stabsread.c (patch_block_stabs, read_one_struct_field)
5980 (read_enum_type): Use obstack_strndup.
5981 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5982 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5983 * dwarf2read.c (guess_full_die_structure_name)
5984 (anonymous_struct_prefix): Use obstack_strndup.
5985 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5986 * c-exp.y (yylex): Use obstack_strndup.
5987 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5988 (write_var_or_type): Use obstack_strndup.
5990 2019-08-06 Tom Tromey <tom@tromey.com>
5992 * symfile.c (reread_symbols): Use obstack_strdup.
5993 * stabsread.c (read_type): Use obstack_strdup.
5994 * gdb_obstack.h (obstack_strdup): New overload.
5995 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5996 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5997 (dwarf2_canonicalize_name): Use obstack_strdup.
5998 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5999 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6002 2019-08-06 Tom Tromey <tom@tromey.com>
6004 * gdb_obstack.h (obstack_strdup): Define.
6005 * gdb_obstack.c (obstack_strdup): Don't define.
6007 2019-08-06 Tom Tromey <tom@tromey.com>
6009 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6011 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6013 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6014 * stabsread.c (common_block_start): Use obstack_strdup.
6015 * objfiles.c (set_objfile_main_name, objfile): Use
6017 * namespace.c (add_using_directive): Use obstack_strdup.
6018 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6019 * jit.c (finalize_symtab): Use obstack_strdup.
6020 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6021 (guess_partial_die_structure_name, partial_die_info::fixup)
6022 (dwarf2_name): Use obstack_strdup.
6023 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6025 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6026 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6028 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6030 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6032 * unittests/help-doc-selftests.c: New file.
6033 * Makefile.in: Add the new file.
6035 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6037 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6038 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6039 the full first line, except when FOR_VALUE_PREFIX. In this case,
6040 the trailing '.' is not output, and the first character is uppercased.
6041 (print_help_for_command): Update call to print_doc_line.
6042 (print_doc_of_command): Likewise.
6043 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6044 * cli/cli-option.c (append_indented_doc): Do not append newline.
6045 (build_help_option): Append newline after first appended_indented_doc
6046 only if a second call is done.
6047 (build_help): Append 2 new lines before each option, except the first
6049 * compile/compile.c (_initialize_compile): Add new lines after
6050 %OPTIONS%, when not at the end of the help.
6051 Change help doc or code
6052 producing the help doc to respect the invariants.
6053 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6054 Also removed the new line after 'Options:', as all other commands
6055 do not put an empty line between 'Options:' and the first option.
6056 * printcmd.c (_initialize_printcmd): Likewise.
6057 * stack.c (_initialize_stack): Likewise.
6058 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6059 incorrectly telling COMMAND is optional.
6060 * ada-lang.c (_initialize_ada_language): Change help doc or code
6061 producing the help doc to respect the invariants.
6062 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6063 * breakpoint.c (_initialize_breakpoint): Likewise.
6064 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6065 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6066 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6067 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6068 _initialize_cli_style): Likewise.
6069 * corelow.c (core_target_info): Likewise.
6070 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6071 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6072 * filesystem.c (_initialize_filesystem): Likewise.
6073 * frame.c (_initialize_frame): Likewise.
6074 * gnu-nat.c (add_task_commands): Likewise.
6075 * infcall.c (_initialize_infcall): Likewise.
6076 * infcmd.c (_initialize_infcmd): Likewise.
6077 * interps.c (_initialize_interpreter): Likewise.
6078 * language.c (_initialize_language): Likewise.
6079 * linux-fork.c (_initialize_linux_fork): Likewise.
6080 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6081 * maint.c (_initialize_maint_cmds): Likewise.
6082 * memattr.c (_initialize_mem): Likewise.
6083 * printcmd.c (_initialize_printcmd): Likewise.
6084 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6086 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6087 * record-btrace.c (_initialize_record_btrace): Likewise.
6088 * record-full.c (_initialize_record_full): Likewise.
6089 * record.c (_initialize_record): Likewise.
6090 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6091 * regcache.c (_initialize_regcache): Likewise.
6092 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6093 _initialize_remote): Likewise.
6094 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6095 * serial.c (_initialize_serial): Likewise.
6096 * skip.c (_initialize_step_skip): Likewise.
6097 * source.c (_initialize_source): Likewise.
6098 * stack.c (_initialize_stack): Likewise.
6099 * symfile.c (_initialize_symfile): Likewise.
6100 * symtab.c (_initialize_symtab): Likewise.
6101 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6102 * top.c (init_main): Likewise.
6103 * tracefile-tfile.c (tfile_target_info): Likewise.
6104 * tracepoint.c (_initialize_tracepoint): Likewise.
6105 * tui/tui-win.c (_initialize_tui_win): Likewise.
6106 * utils.c (add_internal_problem_command): Likewise.
6107 * valprint.c (value_print_option_defs): Likewise.
6109 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6112 * configure.ac: Drop enable-libmcheck support.
6113 * configure, config.in: Rebuild.
6114 * libmcheck.m4: Remove.
6115 * acinclude.m4: Don't include it.
6116 * Makefile.in: Don't distribute it.
6117 * top.c (print_gdb_configuration): Don't mention it.
6119 2019-08-06 Tom Tromey <tom@tromey.com>
6121 * utils.c (set_output_style): Sometimes pass stream to
6123 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6124 * record-btrace.c (btrace_insn_history): Update.
6125 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6127 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6128 Update initializers.
6129 <m_uiout>: New field.
6131 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6132 Remove "uiout" parameter.
6133 (dump_insns): Update.
6134 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6135 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6137 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6139 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6140 (error_in_psymtab_expansion): Likewise.
6141 (lookup_symbol_via_quick_fns): Likewise.
6142 (basic_lookup_transparent_type_quick): Likewise.
6143 (basic_lookup_transparent_type_1): Likewise.
6145 2019-08-06 Tom Tromey <tromey@adacore.com>
6147 * source.c (last_source_error): Now bool.
6148 (print_source_lines_base): Make "noprint" bool. Only open
6149 source file when last_source_visited changes.
6151 2019-08-06 Tom Tromey <tromey@adacore.com>
6153 * annotate.c (annotate_source_line): Use g_source_cache.
6154 * source-cache.c (source_cache::get_plain_source_lines): Change
6155 parameters. Populate m_offset_cache.
6156 (source_cache::ensure): New method.
6157 (source_cache::get_line_charpos): New method.
6158 (extract_lines): Move lower. Change parameters.
6159 (source_cache::get_source_lines): Move lower.
6160 * source-cache.h (class source_cache): Update comment.
6161 <get_line_charpos>: New method.
6162 <get_source_lines>: Update comment.
6163 <clear>: Clear m_offset_cache.
6164 <get_plain_source_lines>: Change parameters.
6165 <ensure>: New method
6166 <m_offset_cache>: New member.
6167 * source.c (forget_cached_source_info_for_objfile): Update.
6168 (info_source_command): Use g_source_cache.
6169 (find_source_lines, open_source_file_with_line_charpos): Remove.
6170 (print_source_lines_base, search_command_helper): Use g_source_cache.
6171 * source.h (open_source_file_with_line_charpos): Don't declare.
6172 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6173 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6176 2019-08-06 Tom Tromey <tromey@adacore.com>
6178 * source-cache.c (source_cache::get_plain_source_lines):
6179 Remove "first_line" and "last_line" parameters.
6180 (source_cache::get_source_lines): Cache plain text.
6181 * source-cache.h (class source_cache)
6182 <get_plain_source_lines>: Update.
6184 2019-08-06 Tom Tromey <tromey@adacore.com>
6186 * source-cache.c (extract_lines): No longer a method.
6187 Changed type of parameter. Include final newline.
6188 (selftests::extract_lines_test): New function.
6189 (_initialize_source_cache): Likewise.
6190 * source-cache.h (class source_cache)
6191 <extract_lines>: Don't declare.
6193 2019-08-06 Tom Tromey <tromey@adacore.com>
6195 * breakpoint.c (init_breakpoint_sal): Update.
6196 (breakpoint): Update.
6197 * breakpoint.h (struct breakpoint) <filter>: Now a
6200 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6202 * NEWS: Mention dictionary access on blocks.
6203 * python/py-block.c (blpy_getitem): New function.
6204 (block_object_as_mapping): New struct.
6205 (block_object_type): Use new struct for tp_as_mapping field.
6207 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6209 * objfiles.h (objfile): Add a comment describing partial symbols.
6211 2019-08-05 Tom Tromey <tromey@adacore.com>
6213 * compile/compile.c (_initialize_compile): Use _(), not N_().
6214 * thread.c (_initialize_thread): Use _(), not N_().
6215 * stack.c (_initialize_stack): Use _(), not N_().
6216 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6218 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6220 * dwarf2read.c (struct dw2_symtab_iterator):
6221 <want_specific_block>: Remove.
6222 <block_index>: Change type to gdb::optional.
6223 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6224 change type of BLOCK_INDEX parameter to gdb::optional.
6225 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6226 (dw2_lookup_symbol): Don't pass argument for
6227 WANT_SPECIFIC_BLOCK.
6228 (dw2_expand_symtabs_for_function): Don't pass argument for
6229 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6230 (class dw2_debug_names_iterator)
6231 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6232 parameter, change BLOCK_INDEX type to gdb::optional.
6233 <m_want_specific_block>: Remove.
6234 <m_block_index>: Change type to gdb::optional.
6235 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6236 gdb::optional. Re-write in function of gdb::optional.
6237 (dw2_debug_names_lookup_symbol): Don't pass argument for
6238 WANT_SPECIFIC_BLOCK.
6239 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6240 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6243 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6245 * NEWS: Mention changes to "info sources" command.
6247 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6249 * symtab.c (filename_partial_match_opts): New struct type.
6250 (struct output_source_filename_data): New members
6251 regexp, c_regexp, partial_match.
6252 (output_source_filename): Use new members to decide to print file.
6253 (info_sources_option_defs): New variable.
6254 (make_info_sources_options_def_group, print_info_sources_header,
6255 info_sources_command_completer):
6257 (info_sources_command): Read new optional arguments.
6258 (_initialize_symtab): Update info sources help.
6260 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6262 * ada-lang.c (exception_support_info_v0): Renamed from...
6263 (default_exception_support_info): ... this. Create new
6265 (ada_has_this_exception_support): Look up catch_handlers_sym.
6266 (ada_exception_support_info_sniffer): Try v0 after default.
6268 2019-08-01 Tom Tromey <tromey@adacore.com>
6270 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6273 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6275 * s12z-tdep.c: Fix include path for s12z-opc.h.
6277 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6279 * NEWS: Require GNU make 3.82.
6281 2019-07-16 Tom Tromey <tom@tromey.com>
6283 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6286 2019-07-30 Tom Tromey <tromey@adacore.com>
6288 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6290 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6292 * printcmd.c (print_address_symbolic): Print negative offsets.
6293 (build_address_symbolic): Force signed arithmetic when computing
6296 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6298 PR/24474: Add a function to lookup static variables.
6299 * NEWS: Mention this new function.
6300 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6301 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6302 * python/python.c (python_GdbMethods): Add new function.
6304 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6306 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6307 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6308 (objfpy_lookup_static_symbol): New function.
6309 (objfile_object_methods): Add new functions.
6311 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6313 * NEWS: Mention 'set|show print frame-info'. Mention new
6314 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6315 backtrace argument. Mention that python frame filtering code
6316 is now consistent with what 'backtrace' command prints.
6318 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6320 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6322 (print_frame_info_auto, print_frame_info_source_line,
6323 print_frame_info_location, print_frame_info_source_and_location,
6324 print_frame_info_location_and_address, print_frame_info_short_location):
6326 (struct frame_print_options): New member print_frame_info.
6327 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6328 * stack.h (get_user_print_what_frame_info): New declaration.
6329 (frame_show_address): New declaration.
6330 * stack.c (print_frame_arguments_choices): New value 'presence'.
6331 (print_frame_info_auto, print_frame_info_source_line,
6332 print_frame_info_location, print_frame_info_source_and_location,
6333 print_frame_info_location_and_address, print_frame_info_short_location,
6334 print_frame_info_choices, print_frame_info_print_what): New definitions.
6335 (print_frame_args): Only print dots for args if print frame-arguments
6337 (frame_print_option_defs): New element for "frame-info".
6338 (get_user_print_what_frame_info): New function.
6339 (frame_show_address): Make non static. Move comment to stack.h.
6340 (print_frame_info_to_print_what): New function.
6341 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6342 to decide what to print.
6343 (backtrace_command_1): Handle the new print_frame_arguments_presence
6345 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6346 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6347 (py_print_frame): In non-mi mode, use LOCATION as default for
6348 print_what, similarly to frame information printed directly by
6349 backtrace command. Handle frame-info user option in non MI mode.
6351 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6353 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6354 Add case for debugging 32-bit target on 64-bit host. Revise
6357 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6359 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6360 instead of find_function_entry_range_from_pc.
6362 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6364 * stack.c (find_frame_funname): Remove code which preferred
6365 minsym over symtab sym in "certain pathological cases".
6367 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6368 parameter. Change type of "do_demangle" to bool.
6369 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6370 Pass suitable "prefer_sym_over_minsym" flag to
6371 build_address_symbolic(). Don't output "+" for negative offsets.
6372 * printcmd.c (print_address_symbolic): Update invocation of
6373 build_address_symbolic to include a "prefer_sym_over_minsym"
6375 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6376 Restrict cases in which use of minimal symbol is preferred to that
6377 of a found symbol. Update comments.
6379 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6380 for entry pc when entry pc is out of range for that FDE.
6382 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6385 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6388 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6390 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6391 this function's Python signature.
6394 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6396 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6397 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6398 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6399 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6400 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6403 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6405 * h8300-tdep.c (h8300_register_name_common): New.
6406 h8300_register_name): Use h8300_register_name_common.
6407 (h8300s_register_name): Likewise.
6408 (h8300sx_register_name): Likewise.
6409 (h8300h_register_nam): New.
6410 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6413 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6415 * arm-tdep.c (arm_skip_cmse_entry): New function.
6416 (arm_is_sgstubs_section): New function.
6417 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6419 2019-07-22 Tom Tromey <tom@tromey.com>
6421 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6424 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6426 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6429 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6431 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6432 so that GDB doesn't match any msymbols when searching in the
6434 (print_symbol_info): Print using typedef_print or type_print based
6435 on the type of the symbol. Add updated FIXME comment moved from...
6436 (_initialize_symtab): ... move and update FIXME comment to above.
6438 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6440 * NEWS: Mention adding -q option to "info types".
6441 * symtab.c (struct info_types_options): New struct.
6442 (info_types_options_defs): New variable.
6443 (make_info_types_options_def_group): New function.
6444 (info_types_command): Use gdb::option framework to parse options.
6445 (info_types_command_completer): New function.
6446 (_initialize_symtab): Extend the help text on "info types" and
6447 register command completer.
6449 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6451 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6452 (lookup_symbol_in_objfile): Change int to block_enum and add a
6453 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6455 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6457 * MAINTAINERS (Write After Approval): Add self.
6459 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6461 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6462 instruction to the dummy code region.
6464 2019-07-19 Tom Tromey <tromey@adacore.com>
6466 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6467 (ARGSUSED, PARAMS, __func__): Remove rules.
6469 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6471 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6472 * features/arm/arm-with-iwmmxt.c: Remove.
6473 * features/arm/arm-with-iwmmxt.xml: Remove.
6474 * features/arm/arm-with-m-fpa-layout.c: Remove.
6475 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6476 * features/arm/arm-with-m-vfp-d16.c: Remove.
6477 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6478 * features/arm/arm-with-m.c: Remove.
6479 * features/arm/arm-with-m.xml: Remove.
6480 * features/arm/arm-with-neon.c: Remove.
6481 * features/arm/arm-with-neon.xml: Remove.
6482 * features/arm/arm-with-vfpv2.c: Remove.
6483 * features/arm/arm-with-vfpv2.xml: Remove.
6484 * features/arm/arm-with-vfpv3.c: Remove.
6485 * features/arm/arm-with-vfpv3.xml: Remove.
6487 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6489 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6491 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6493 * arch/aarch32.c (aarch32_create_target_description): Create
6494 target descriptions using features.
6495 * arch/arm.c (arm_create_target_description)
6496 (arm_create_mprofile_target_description): Likewise.
6497 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6499 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6501 * Makefile.in: Add new files.
6502 * aarch32-tdep.c: New file.
6503 * aarch32-tdep.h: New file.
6504 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6505 Call aarch32_read_description.
6506 * arch/aarch32.c: New file.
6507 * arch/aarch32.h: New file.
6508 * arch/arm.c (arm_create_target_description)
6509 (arm_create_mprofile_target_description): New function.
6510 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6511 (arm_create_target_description)
6512 (arm_create_mprofile_target_description): New declaration.
6513 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6514 read_description functions.
6515 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6517 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6518 * arm-tdep.c (tdesc_arm_list): New variable.
6519 (arm_register_g_packet_guesses): Call create description functions.
6520 (arm_read_description) (arm_read_mprofile_description): New
6522 * arm-tdep.h (arm_read_description)
6523 (arm_read_mprofile_description): Add declaration.
6524 * configure.tgt: Add new files.
6526 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6528 * top.c (new_ui_command): Open specified terminal just once.
6530 2019-07-18 Tom Tromey <tromey@adacore.com>
6532 * symtab.c (main_name): Constify return type.
6533 * symfile.c (set_initial_language): Update.
6534 * symtab.h (main_name): Constify return type.
6536 2019-07-17 Tom Tromey <tom@tromey.com>
6538 * tui/tui-winsource.c (tui_update_source_window)
6539 (tui_update_source_window_as_is)
6540 (tui_update_source_windows_with_line): Remove return.
6541 * tui/tui-disasm.c (tui_show_disassem)
6542 (tui_show_disassem_and_update_source): Remove return.
6543 * tui/tui.c (tui_reset): Remove return.
6544 * tui/tui-wingeneral.c
6545 (tui_check_and_display_highlight_if_needed): Remove return.
6547 2019-07-17 Tom Tromey <tom@tromey.com>
6549 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6551 2019-07-17 Tom Tromey <tom@tromey.com>
6553 * tui/tui-winsource.h (struct tui_exec_info_window)
6554 (struct tui_source_window_base): Move from tui-data.h.
6555 * tui/tui-winsource.c: Move many method definitions from
6556 elsewhere. Remove "structuring" comments.
6557 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6558 (tui_source_window_base::refresh_window): Move to
6560 * tui/tui-win.c (tui_source_window_base::refresh_all)
6561 (tui_source_window_base::update_tab_width)
6562 (tui_source_window_base::set_new_height)
6563 (tui_source_window_base::do_make_visible_with_new_height): Move to
6565 * tui/tui-source.h: Update.
6566 * tui/tui-source.c (tui_source_window_base::reset): Move to
6568 * tui/tui-disasm.h: Update.
6569 * tui/tui-data.h (struct tui_exec_info_window): Move to
6571 (struct tui_source_window_base): Likewise.
6572 * tui/tui-data.c (tui_source_window_base::clear_detail)
6573 (tui_source_window_base, ~tui_source_window_base): Move to
6576 2019-07-17 Tom Tromey <tom@tromey.com>
6578 * tui/tui-win.c (tui_resize_all)
6579 (tui_source_window_base::update_tab_width)
6580 (tui_adjust_win_heights): Update.
6581 (tui_win_info::make_invisible_and_set_new_height): Rename from
6582 make_invisible_and_set_new_height.
6583 * tui/tui-data.h (struct tui_win_info)
6584 <make_invisible_and_set_new_height>: New method.
6586 2019-07-17 Tom Tromey <tom@tromey.com>
6588 * tui/tui.c: Update.
6589 * tui/tui-source.h (struct tui_source_window): Move from
6591 * tui/tui-layout.c: Update.
6592 * tui/tui-disasm.c: Update.
6593 * tui/tui-data.h (struct tui_source_window): Move to
6596 2019-07-17 Tom Tromey <tom@tromey.com>
6598 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6600 * tui/tui-data.h (struct tui_disasm_window): Move to
6603 2019-07-17 Tom Tromey <tom@tromey.com>
6605 * tui/tui-regs.h (struct tui_data_item_window): Move from
6607 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6608 * tui/tui-data.h (struct tui_data_item_window): Move to
6610 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6612 2019-07-17 Tom Tromey <tom@tromey.com>
6614 * tui/tui.c: Update.
6615 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6616 (tui_cmd_window::max_height): Move to tui-command.c.
6617 * tui/tui-layout.c: Update.
6618 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6619 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6621 * tui/tui-command.h (struct tui_cmd_window): Move from
6623 * tui/tui-command.c: Remove "structuring" comments.
6624 (tui_cmd_window::clear_detail)
6625 (tui_cmd_window::do_make_visible_with_new_height)
6626 (tui_cmd_window::max_height): Move from elsewhere.
6628 2019-07-17 Tom Tromey <tom@tromey.com>
6630 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6632 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6633 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6635 2019-07-17 Tom Tromey <tom@tromey.com>
6637 * tui/tui.c: Update.
6638 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6640 * tui/tui-windata.h: Remove file.
6641 * tui/tui-windata.c: Remove file.
6642 * tui/tui-win.c (tui_data_window::set_new_height)
6643 (tui_data_window::do_make_visible_with_new_height): Move to
6645 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6646 * tui/tui-regs.c: Remove "structuring" comments.
6647 (tui_data_window::first_data_item_displayed)
6648 (tui_data_window::delete_data_content_windows)
6649 (tui_data_window::erase_data_content)
6650 (tui_data_window::display_all_data)
6651 (tui_data_window::refresh_all)
6652 (tui_data_window::do_scroll_vertical)
6653 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6654 (tui_data_window::do_make_visible_with_new_height)
6655 (tui_data_window::refresh_window): Move from elsewhere.
6656 (_initialize_tui_regs): Move to end of file.
6657 * tui/tui-layout.c: Update.
6658 * tui/tui-hooks.c: Update.
6659 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6660 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6662 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6664 2019-07-17 Tom Tromey <tom@tromey.com>
6666 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6669 2019-07-17 Tom Tromey <tom@tromey.com>
6671 * tui/tui-win.c (tui_source_window_base::set_new_height)
6672 (tui_source_window_base::do_make_visible_with_new_height): Use
6673 m_has_locator field directly.
6674 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6676 (struct tui_source_window_base) <has_locator>: Likewise.
6678 2019-07-17 Tom Tromey <tom@tromey.com>
6680 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6682 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6684 * tui/tui-win.c (tui_source_window_base::set_new_height)
6685 (tui_source_window_base::set_new_height)
6686 (make_invisible_and_set_new_height)
6687 (tui_source_window_base::do_make_visible_with_new_height)
6688 (tui_source_window_base::do_make_visible_with_new_height):
6690 * tui/tui-layout.c (show_source_disasm_command, show_data)
6691 (show_source_or_disasm_and_command): Update.
6692 * tui/tui-layout.c (show_layout): Update.
6694 2019-07-17 Tom Tromey <tom@tromey.com>
6696 * tui/tui-layout.c (make_data_window): Remove.
6697 (show_data): Unify creation and re-initialization cases.
6699 2019-07-17 Tom Tromey <tom@tromey.com>
6701 * tui/tui-layout.c (make_source_window, make_disasm_window):
6703 (show_data): Unify creation and re-initialization cases.
6705 2019-07-17 Tom Tromey <tom@tromey.com>
6707 * tui/tui-layout.c (make_command_window): Remove.
6708 (show_source_disasm_command, show_source_or_disasm_and_command):
6709 Unify creation and re-initialization cases.
6711 2019-07-17 Tom Tromey <tom@tromey.com>
6713 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6714 creation and re-initialization cases.
6716 2019-07-17 Tom Tromey <tom@tromey.com>
6718 * tui/tui-regs.c (tui_get_register): Return void.
6720 2019-07-17 Tom Tromey <tom@tromey.com>
6722 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6725 2019-07-17 Tom Tromey <tom@tromey.com>
6727 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6730 2019-07-17 Tom Tromey <tom@tromey.com>
6732 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6733 * tui/tui-regs.c (tui_reg_layout): New function.
6734 (tui_show_registers, tui_reg_command): Use it.
6735 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6736 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6738 (tui_layout_command): Remove.
6740 2019-07-17 Tom Tromey <tom@tromey.com>
6742 * tui/tui-layout.h (tui/tui-layout): Return void.
6743 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6745 2019-07-17 Tom Tromey <tom@tromey.com>
6747 * tui/tui-layout.c (show_source_disasm_command, show_data):
6749 (reset_locator): Remove.
6750 (show_source_or_disasm_and_command): Update.
6752 2019-07-17 Tom Tromey <tom@tromey.com>
6754 * tui/tui-source.c (tui_source_window_base::reset): Remove
6756 * tui/tui-layout.c (make_command_window, make_source_window)
6757 (make_disasm_window, make_data_window)
6758 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6759 (reset_locator, show_source_or_disasm_and_command): Update.
6760 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6762 (struct tui_source_window_base) <reset>: Likewise.
6764 2019-07-17 Tom Tromey <tom@tromey.com>
6766 * tui/tui-layout.c (show_source_disasm_command): Use
6768 (reset_locator): New function.
6769 (init_and_make_win): Remove.
6770 (show_source_or_disasm_and_command): Use reset_locator.
6772 2019-07-17 Tom Tromey <tom@tromey.com>
6774 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6776 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6778 * tui/tui-source.c (tui_source_window_base::reset): New method.
6779 * tui/tui-layout.c (make_command_window): Don't call
6781 (make_source_window, make_disasm_window): Don't call
6782 make_source_or_disasm_window.
6783 (make_data_window): Don't call init_and_make_win. Change calling
6785 (show_source_disasm_command, show_data): Simplify.
6786 (make_source_or_disasm_window): Remove.
6787 (show_source_or_disasm_and_command): Simplify.
6788 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6789 (struct tui_source_window_base) <reset>: Likewise.
6790 <execution_info>: Remove initializer.
6791 * tui/tui-data.c (tui_source_window_base): Initialize
6794 2019-07-17 Tom Tromey <tom@tromey.com>
6796 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6799 2019-07-17 Tom Tromey <tom@tromey.com>
6801 * tui/tui.c (tui_rl_other_window): Update.
6802 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6803 superclass method first. Always iterate over regs_content.
6804 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6806 * tui/tui-win.c (tui_set_focus_command): Update.
6808 2019-07-17 Tom Tromey <tom@tromey.com>
6810 * tui/tui-win.c (tui_set_focus_command): Rename from
6811 tui_set_focus. Call tui_enable.
6812 (tui_set_focus_command): Remove.
6814 2019-07-17 Tom Tromey <tom@tromey.com>
6816 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6818 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6820 (tui_data_window::refresh_window): Call refresh_window on data
6821 items. Always call superclass refresh_window.
6822 (tui_win_info::refresh): Remove.
6823 (tui_source_window_base::refresh_window): Update.
6824 (tui_refresh_all): Update.
6825 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6827 (show_source_or_disasm_and_command): Likewise.
6828 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6829 (struct tui_source_window_base) <refresh>: Likewise.
6831 2019-07-17 Tom Tromey <tom@tromey.com>
6833 * tui/tui-winsource.c (tui_clear_source_content)
6834 (tui_show_source_content): Update.
6835 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6836 whether content is empty.
6837 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6840 2019-07-17 Tom Tromey <tom@tromey.com>
6842 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6844 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6845 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6847 2019-07-17 Tom Tromey <tom@tromey.com>
6849 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6850 (struct tui_data_item_window): Update.
6852 2019-07-17 Tom Tromey <tom@tromey.com>
6854 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6855 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6858 2019-07-17 Tom Tromey <tom@tromey.com>
6860 * tui/tui-winsource.h (tui_erase_source_content)
6861 (tui_clear_source_content): Remove "display_prompt" parameter.
6862 * tui/tui-winsource.c (tui_update_source_window_as_is)
6863 (tui_update_source_windows_with_addr): Update.
6864 (tui_clear_source_content): Remove "display_prompt" parameter.
6865 (tui_erase_source_content): Likewise. Simplify.
6866 (tui_show_source_content): Update.
6867 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6868 * tui/tui-stack.c (tui_show_frame_info): Update.
6869 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6872 2019-07-17 Tom Tromey <tom@tromey.com>
6874 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6875 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6877 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6880 2019-07-17 Tom Tromey <tom@tromey.com>
6882 * tui/tui-winsource.c (tui_clear_source_content)
6883 (tui_show_source_content, tui_show_exec_info_content)
6884 (tui_clear_exec_info_content): Update.
6885 * tui/tui-stack.c (tui_show_locator_content): Update.
6886 (tui_show_frame_info): Update.
6887 * tui/tui-source.h (tui_source_window): Don't declare.
6888 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6889 from tui_source_is_displayed.
6890 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6892 (struct tui_source_window_base) <content_in_use>: New field. Now
6894 (struct tui_source_window) <showing_source_p>: New method.
6895 (TUI_SRC_WIN): Change cast.
6896 * tui/tui-data.c (tui_initialize_static_data): Update.
6898 2019-07-17 Tom Tromey <tom@tromey.com>
6900 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6902 * tui/tui-source.c (tui_source_window::location_matches_p): New
6904 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6906 * tui/tui-data.h (struct tui_source_window_base)
6907 <location_matches_p>: New method.
6908 (struct tui_source_window, struct tui_disasm_window)
6909 <location_matches_p>: Likewise.
6911 2019-07-17 Tom Tromey <tom@tromey.com>
6913 * tui/tui-win.c (tui_set_win_height_command): Rename from
6915 (tui_set_win_height_command): Remove.
6917 2019-07-17 Tom Tromey <tom@tromey.com>
6919 * tui/tui-source.c (tui_source_window): New constructor. Add
6921 (~tui_source_window): New destructor.
6922 (tui_source_window::style_changed): New method.
6923 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6924 (tui_attach_detach_observers): Update.
6925 * tui/tui-data.h (struct tui_source_window): Make constructor not
6926 inline. Add destructor.
6927 (struct tui_source_window) <style_changed>: New method.
6928 <m_observable>: New member.
6930 2019-07-17 Tom Tromey <tom@tromey.com>
6932 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6933 * tui/tui-win.c (tui_resize_all): Fix typo.
6935 2019-07-17 Tom Tromey <tom@tromey.com>
6937 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6938 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6939 (tui_refresh_all): Remove "list" parameter. Use foreach.
6940 * tui/tui-win.c (window_name_completer): Use foreach.
6941 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6942 (update_tab_width): Likewise.
6943 * tui/tui-layout.c (show_layout): Update.
6944 * tui/tui-data.h (class tui_window_iterator): New.
6945 (struct all_tui_windows): New.
6946 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6948 2019-07-17 Tom Tromey <tom@tromey.com>
6950 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6951 parameter. Don't reference globals.
6952 (tui_reg_command): Update.
6954 2019-07-17 Tom Tromey <tom@tromey.com>
6956 * tui/tui-regs.c (tui_show_registers): Simplify.
6958 2019-07-17 Tom Tromey <tom@tromey.com>
6960 * tui/tui-regs.c (tui_show_registers): Update.
6961 (tui_show_register_group): Add win_info parameter.
6963 2019-07-17 Tom Tromey <tom@tromey.com>
6965 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6966 Rename from tui_display_reg_element_at_line.
6967 (tui_data_window::display_registers_from_line): Update.
6968 * tui/tui-data.h (struct tui_data_window)
6969 <display_reg_element_at_line>: New method.
6971 2019-07-17 Tom Tromey <tom@tromey.com>
6973 * tui/tui-regs.h (tui_display_registers_from)
6974 (tui_display_registers_from_line): Don't declare.
6975 * tui/tui-windata.c (tui_data_window::display_all_data)
6976 (tui_data_window::refresh_all)
6977 (tui_data_window::do_scroll_vertical): Update.
6978 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6979 from tui_display_registers_from.
6980 (tui_display_reg_element_at_line): Update.
6981 (tui_data_window::display_registers_from_line): Rename from
6982 tui_display_registers_from_line.
6983 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6984 display_registers_from_line>: New methods.
6986 2019-07-17 Tom Tromey <tom@tromey.com>
6988 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6989 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6990 from tui_erase_data_content.
6991 (tui_data_window::display_all_data)
6992 (tui_data_window::refresh_all)
6993 (tui_data_window::do_scroll_vertical): Update.
6994 * tui/tui-regs.c (tui_show_registers): Update.
6995 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6998 2019-07-17 Tom Tromey <tom@tromey.com>
7000 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7003 (tui_data_window::delete_data_content_windows): Rename from
7004 tui_delete_data_content_windows.
7005 (tui_data_window::display_all_data)
7006 (tui_data_window::do_scroll_vertical): Update.
7007 * tui/tui-data.h (struct tui_data_window)
7008 <delete_data_content_windows>: New method.
7010 2019-07-17 Tom Tromey <tom@tromey.com>
7012 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7013 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7015 2019-07-17 Tom Tromey <tom@tromey.com>
7017 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7018 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7019 from tui_display_all_data.
7021 (tui_data_window::do_make_visible_with_new_height): Update.
7022 * tui/tui-regs.c (tui_show_registers): Update.
7023 * tui/tui-layout.c (tui_set_layout): Update.
7024 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7027 2019-07-17 Tom Tromey <tom@tromey.com>
7029 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7030 * tui/tui-windata.c (tui_display_data_from): Remove.
7031 (tui_data_window::refresh_all): Update.
7033 2019-07-17 Tom Tromey <tom@tromey.com>
7035 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7036 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7037 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7038 tui_display_registers_from_line.
7039 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7040 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7041 "force_display" parameter.
7043 2019-07-17 Tom Tromey <tom@tromey.com>
7045 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7047 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7048 Rename from tui_first_reg_element_no_inline.
7049 (tui_display_reg_element_at_line)
7050 (tui_display_registers_from_line): Update.
7051 * tui/tui-data.h (struct tui_data_window)
7052 <first_reg_element_no_inline>: New method.
7054 2019-07-17 Tom Tromey <tom@tromey.com>
7056 * tui/tui-windata.c (tui_display_data_from)
7057 (tui_data_window::do_scroll_vertical): Update.
7058 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7059 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7060 Rename from tui_line_from_reg_element_no.
7061 (tui_display_registers_from_line): Update.
7062 * tui/tui-data.h (struct tui_data_window)
7063 <line_from_reg_element_no>: New method.
7065 2019-07-17 Tom Tromey <tom@tromey.com>
7067 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7068 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7069 tui_last_regs_line_no.
7070 (tui_display_reg_element_at_line)
7071 (tui_display_registers_from_line): Update.
7072 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7075 2019-07-17 Tom Tromey <tom@tromey.com>
7078 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7079 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7080 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7081 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7082 (tui_update_breakpoint_info): Likewise.
7083 * tui/tui-hooks.c (tui_event_create_breakpoint)
7084 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7087 2019-07-17 Tom Tromey <tom@tromey.com>
7089 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7091 2019-07-17 Tom Tromey <tom@tromey.com>
7093 * tui/tui-winsource.c (tui_update_source_window_as_is)
7094 (tui_update_source_windows_with_addr): Update.
7095 * tui/tui-source.h (tui_set_source_content)
7096 (tui_show_symtab_source): Add "win_info" parameter.
7097 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7099 (tui_show_symtab_source): Likewise.
7101 2019-07-17 Tom Tromey <tom@tromey.com>
7103 * tui/tui-wingeneral.c
7104 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7106 2019-07-17 Tom Tromey <tom@tromey.com>
7108 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7109 (struct tui_cmd_window) <can_scroll>: New method.
7110 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7113 2019-07-17 Tom Tromey <tromey@adacore.com>
7115 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7116 do_field_signed>: Rename. Change type of "value".
7117 * ui-out.c (ui_out::field_signed): Rename from field_int.
7118 Change type of "value".
7119 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7121 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7122 do_field_int. Change type of "value".
7123 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7124 do_field_int. Change type of "value".
7125 * tracepoint.c (trace_status_mi, tfind_1)
7126 (print_one_static_tracepoint_marker): Update.
7127 * thread.c (print_thread_info_1, print_selected_thread_frame):
7129 * stack.c (print_frame, print_frame_info): Update.
7130 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7132 * source.c (print_source_lines_base): Update.
7133 * skip.c (info_skip_command): Update.
7134 * record-btrace.c (btrace_ui_out_decode_error)
7135 (btrace_call_history_src_line): Update.
7136 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7138 * progspace.c (print_program_space): Update.
7139 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7140 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7141 do_field_int. Change type of "value".
7142 * mi/mi-out.c (mi_ui_out::do_table_begin)
7143 (mi_ui_out::do_table_header): Update.
7144 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7146 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7147 (mi_cmd_data_list_changed_registers, output_register)
7148 (mi_cmd_data_read_memory, mi_load_progress)
7149 (mi_cmd_trace_frame_collected): Update.
7150 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7152 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7153 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7154 (mi_cmd_var_list_children, varobj_update_one): Update.
7155 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7156 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7157 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7158 * inferior.c (print_inferior): Update.
7159 * gdb_bfd.c (print_one_bfd): Update.
7160 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7162 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7163 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7164 do_field_int. Change type of "value".
7165 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7166 do_field_int. Change type of "value".
7167 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7168 (print_one_breakpoint_location, print_it_catch_fork)
7169 (print_one_catch_fork, print_it_catch_vfork)
7170 (print_one_catch_vfork, print_it_catch_solib)
7171 (print_it_catch_exec, print_it_ranged_breakpoint)
7172 (print_mention_watchpoint, print_mention_masked_watchpoint)
7173 (bkpt_print_it, update_static_tracepoint): Update.
7174 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7175 * break-catch-syscall.c (print_it_catch_syscall): Update.
7176 * ada-tasks.c (print_ada_task_info): Update.
7177 * ada-lang.c (print_it_exception, print_mention_exception):
7180 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7182 PR breakpoints/24541
7183 * gdbarch.c: Regenerate.
7184 * gdbarch.h: Regenerate.
7185 * gdbarch.sh: Adjust return type and parameter types for
7186 'stap_adjust_register'.
7187 (i386_stap_adjust_register): Adjust signature and return new
7189 * stap-probe.c (stap_parse_register_operand): Adjust use of
7190 'gdbarch_stap_adjust_register'.
7192 2019-07-17 Tom Tromey <tromey@adacore.com>
7194 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7196 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7198 (struct s390_process_info): Add initializers.
7199 (s390_add_process): Use new.
7200 (s390_linux_nat_target::low_forget_process): Use delete.
7201 (s390_linux_nat_target::low_new_fork)
7202 (s390_linux_nat_target::stopped_by_watchpoint)
7203 (s390_linux_nat_target::low_prepare_to_resume)
7204 (s390_linux_nat_target::insert_watchpoint)
7205 (s390_linux_nat_target::insert_hw_breakpoint)
7206 (s390_linux_nat_target::remove_watchpoint)
7207 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7209 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7211 * aarch64-fbsd-nat.c: Include regcache.h.
7212 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7214 (aarch64_fbsd_nat_target::fetch_registers)
7215 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7217 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7219 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7221 * fbsd-nat.c: Include gdbarch.h.
7223 2019-07-15 Tom Tromey <tromey@adacore.com>
7225 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7227 2019-07-15 Tom Tromey <tromey@adacore.com>
7229 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7230 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7231 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7232 * cli-out.c (cli_ui_out::do_field_int): New method.
7233 * ui-out.c (ui_out::field_unsigned): New method.
7234 * symfile.c (generic_load): Use field_unsigned.
7235 (print_transfer_performance): Likewise.
7236 * record-btrace.c (ui_out_field_uint): Remove.
7237 (btrace_call_history_insn_range, btrace_call_history): Use
7239 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7241 * ui-out.h (class ui_out) <field_unsigned>: New method.
7242 <do_field_unsigned>: Likewise.
7244 2019-07-15 Tom Tromey <tromey@adacore.com>
7246 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7247 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7248 * target.c (flash_erase_command): Use field_string.
7249 * infrun.c (print_signal_received_reason): Use field_string.
7250 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7251 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7253 * ada-tasks.c (print_ada_task_info): Use field_string.
7255 2019-07-15 Tom Tromey <tromey@adacore.com>
7257 * target.c (flash_erase_command): Use field_core_addr.
7258 * symfile.c (generic_load): Use field_core_addr.
7259 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7260 Use field_core_addr.
7261 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7264 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7266 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7267 value if its desired type is smaller than a CORE_ADDR and signed.
7269 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7271 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7272 of changes to field names, and use new is_reference field to
7273 decide if a property is a reference or not.
7274 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7276 (struct dwarf2_property_baton): Update header comment, rename
7277 'referenced_type' to 'property_type' and update comments.
7278 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7279 default property type, store in property baton, update to take
7280 accound of renamed field.
7281 (read_func_scope): Update call to attr_to_dynamic_prop.
7282 (read_array_type): Likewise.
7283 (dwarf2_per_cu_addr_sized_int_type): New function.
7284 (read_subrange_index_type): Move type finding code to
7285 dwarf2_per_cu_addr_sized_int_type.
7286 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7287 (dwarf2_per_cu_addr_type): New function.
7288 (set_die_type): Update calls to attr_to_dynamic_prop.
7290 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7292 * dwarf2read.c (read_subrange_index_type): New function.
7293 (read_subrange_type): Move code into new function and call it.
7294 * gdbtypes.c (create_range_type): Add some asserts.
7296 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7298 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7299 update return statements.
7300 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7301 declaration, and update comment to match.
7302 * gdbtypes.c (resolve_dynamic_array): Update call to
7303 dwarf2_evaluate_property to match new return type.
7305 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7307 * valarith.c (value_subscripted_rvalue): Change lowerbound
7308 parameter type from int to LONGEST.
7309 * value.h (value_subscripted_rvalue): Likewise in declaration.
7311 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7313 * cli/cli-utils.c (info_print_command_completer): New function.
7314 * cli/cli-utils.h: Add 'completer.h' include, and forward
7315 declaration for 'struct cmd_list_element'.
7316 (info_print_command_completer): Declare.
7317 * stack.c (_initialize_stack): Add completer for 'info locals' and
7319 * symtab.c (_initialize_symtab): Add completer for 'info
7320 variables' and 'info functions'.
7321 * NEWS: Mention completion for additional info commands.
7323 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7325 * cli/cli-utils.c (extract_info_print_args): Delete.
7326 (extract_arg_maybe_quoted): Delete.
7327 (info_print_options_defs): New variable.
7328 (make_info_print_options_def_group): New function.
7329 (extract_info_print_options): Define new function.
7330 * cli/cli-utils.h (extract_info_print_args): Delete.
7331 (struct info_print_options): New structure.
7332 (extract_info_print_options): Declare new function.
7333 * stack.c (info_locals_command): Update to use new
7334 extract_info_print_options, also add a header comment.
7335 (info_args_command): Likewise.
7336 * symtab.c (info_variables_command): Likewise.
7337 (info_functions_command): Likewise.
7339 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7341 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7342 to extract string arguments.
7343 * common/common-utils.c (extract_string_maybe_quoted): New function.
7344 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7346 2019-07-11 Tom Tromey <tromey@adacore.com>
7348 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7349 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7350 * top.h (gdbinit): Don't declare.
7351 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7353 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7354 * top.c (gdb_init): Don't call init_cli_cmds.
7356 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7358 2019-07-11 Tom Tromey <tromey@adacore.com>
7360 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7361 after it has been moved.
7363 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7365 * valops.c (value_must_coerce_to_target): Change return type to
7367 * value.h (value_must_coerce_to_target): Likewise.
7369 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7371 * breakpoint.c (is_hardware_watchpoint): Remove
7372 forward-declaration.
7373 (is_masked_watchpoint): Change return type to bool.
7374 (is_tracepoint): Likewise.
7375 (is_breakpoint): Likewise.
7376 (is_hardware_watchpoint): Likewise.
7377 (is_watchpoint): Likewise.
7378 (is_no_memory_software_watchpoint): Likewise.
7379 (is_catchpoint): Likewise.
7380 (breakpoint_1): Make FILTER parameter's return type bool.
7381 is_masked_watchpoint): Change return type to bool.
7382 (save_breakpoints): Make FILTER parameter's return type bool.
7383 * breakpoint.h (is_breakpoint): Change return type to bool.
7384 (is_watchpoint): Likewise.
7385 (is_catchpoint): Likewise.
7386 (is_tracepoint): Likewise.
7388 2019-07-10 Tom Tromey <tom@tromey.com>
7390 * defs.h: Don't include gdbarch.h.
7391 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7392 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7393 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7394 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7395 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7396 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7397 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7398 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7399 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7400 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7401 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7402 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7403 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7404 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7405 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7406 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7407 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7408 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7409 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7410 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7411 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7412 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7413 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7414 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7415 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7416 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7417 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7419 2019-07-10 Tom Tromey <tromey@adacore.com>
7421 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7422 * breakpoint.c (init_ada_exception_breakpoint): Register as
7424 (print_one_breakpoint_location, print_one_breakpoint): Use
7425 is_ada_exception_catchpoint.
7426 * ada-lang.c (class ada_catchpoint_location): Pass
7427 bp_loc_software_breakpoint to bp_location constructor.
7428 (is_ada_exception_catchpoint): New function.
7430 2019-07-10 Tom Tromey <tromey@adacore.com>
7432 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7434 (struct arm_exidx_entry): New method operator<.
7435 (struct arm_exidx_data) <section_maps>: Change type.
7436 (arm_exidx_data_free): Remove.
7437 (arm_exidx_data_key): Change type. Move lower.
7438 (arm_exidx_new_objfile): Update.
7439 (arm_compare_exidx_entries): Remove.
7440 (arm_find_exidx_entry, _initialize_arm_tdep)
7442 2019-07-10 Tom Tromey <tromey@adacore.com>
7444 * solib-spu.c (ocl_program_data_key): Change type.
7445 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7448 2019-07-10 Tom Tromey <tromey@adacore.com>
7450 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7451 (struct solib_aix_inferior_data) <library_list>: Change type.
7452 (solib_aix_inferior_data_handle): Change type.
7453 (get_solib_aix_inferior_data): Update.
7454 (solib_aix_free_library_list): Remove.
7455 (library_list_start_library): Update.
7456 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7458 (solib_aix_get_library_list)
7459 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7460 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7462 2019-07-10 Tom Tromey <tromey@adacore.com>
7464 * solib-dsbt.c (struct dsbt_info): Add initializers.
7465 (solib_dsbt_pspace_data): Change type.
7466 (dsbt_pspace_data_cleanup): Remove.
7467 (get_dsbt_info, _initialize_dsbt_solib): Update.
7469 2019-07-10 Tom Tromey <tromey@adacore.com>
7471 * spu-tdep.c (spu_overlay_data): Change type.
7472 (spu_get_overlay_table, spu_overlay_new_objfile)
7473 (_initialize_spu_tdep): Update.
7475 2019-07-10 Tom Tromey <tromey@adacore.com>
7477 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7479 (dbx_objfile_data_key): Change type and declare later.
7480 (DBX_SYMFILE_INFO): Rewrite.
7481 * dbxread.c (dbx_objfile_data_key): Change type.
7482 (dbx_symfile_init): Update.
7483 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7484 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7485 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7487 2019-07-10 Tom Tromey <tromey@adacore.com>
7489 * jit.c (jit_program_space_key): Change type. Move lower.
7490 (get_jit_program_space_data): Update.
7491 (jit_program_space_data_cleanup): Remove.
7492 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7494 (struct jit_program_space_data): Add initializers.
7496 2019-07-10 Tom Tromey <tromey@adacore.com>
7498 * solib-darwin.c (struct darwin_info): Add initializers.
7499 (solib_darwin_pspace_data): Change type.
7500 (darwin_pspace_data_cleanup): Remove.
7501 (get_darwin_info, _initialize_darwin_solib): Update.
7503 2019-07-10 Tom Tromey <tromey@adacore.com>
7505 * remote-sim.c (struct sim_inferior_data): Add initializers,
7506 constructor, and destructor.
7507 (sim_inferior_data_key): Change type. Move lower.
7508 (check_for_duplicate_sim_descriptor): Update.
7509 (get_sim_inferior_data): Use new. Update.
7510 (~sim_inferior_data_cleanup): Rename from
7511 sim_inferior_data_cleanup. Simplify.
7512 (gdbsim_close_inferior, simulator_command)
7513 (sim_command_completer, _initialize_remote_sim): Update.
7514 (next_pid, INITIAL_PID): Move earlier.
7516 2019-07-10 Tom Tromey <tromey@adacore.com>
7518 * python/python-internal.h (create_thread_object): Return
7520 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7521 * python/py-inferior.c (struct threadlist_entry): Add
7523 <thread_obj>: Now a gdbpy_ref.
7524 (thread_to_thread_object): Update.
7525 (add_thread_object): Use new.
7526 (delete_thread_object): Use delete.
7527 (infpy_threads): Update.
7528 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7531 2019-07-10 Tom Tromey <tromey@adacore.com>
7533 * valops.c (value_cast): Specialize error message for Ada.
7535 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7537 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7539 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7541 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7542 bpstat_should_step): Return bool, adjust comments.
7543 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7544 bpstat_should_step): Likewise.
7546 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7548 * features/Makefile: Use feature target descriptions for Arm.
7549 * features/arm/arm-core.c: Generate new file.
7550 * features/arm/arm-fpa.c: Likewise.
7551 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7552 * features/arm/arm-m-profile.c: Likewise.
7553 * features/arm/arm-vfpv2.c: Likewise.
7554 * features/arm/arm-vfpv3.c: Likewise.
7555 * features/arm/xscale-iwmmxt.c: Likewise.
7556 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7558 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7560 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7563 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7565 * features/aarch64-pauth.c: Regenerate.
7567 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7569 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7571 (bpstat_what): Use false instead of 0.
7573 2019-07-09 Pedro Alves <palves@redhat.com>
7575 * break-catch-throw.c (is_exception_catchpoint): New.
7576 * breakpoint.c (print_one_breakpoint_location): New parameter
7577 'raw_loc'. Handle it. Use
7578 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7579 looking at the breakpoint's type.
7580 (print_one_breakpoint): If handling "maint info breakpoints", also
7581 print locations of exception catchpoints.
7582 * breakpoint.h (is_exception_catchpoint): Declare.
7584 2019-07-09 Pedro Alves <palves@redhat.com>
7586 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7588 (allocate_location_exception_catchpoint): New.
7589 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7590 (initialize_throw_catchpoint_ops): Install
7591 allocate_location_exception_catchpoint as allocate_location
7593 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7594 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7596 (breakpoint_address_is_meaningful): Delete.
7597 (bl_address_is_meaningful): New.
7598 (breakpoint_locations_match): Adjust comment.
7599 (bp_location_from_bp_type): New, factored out of...
7600 (bp_location::bp_location(breakpoint *)): ... this.
7601 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7603 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7604 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7605 breakpoint_address_is_meaningful.
7606 (bp_locations_compare): Adjust comment.
7607 (update_global_location_list): Use bl_address_is_meaningful
7608 instead of breakpoint_address_is_meaningful.
7609 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7611 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7612 * python/py-breakpoint.c (bppy_get_location): No longer check
7613 whether location is null.
7615 2019-07-09 Pedro Alves <palves@redhat.com>
7618 * breakpoint.c (print_one_breakpoint_location): Remove
7619 single-location assert.
7621 2019-07-09 Tom Tromey <tom@tromey.com>
7623 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7624 * configure: Rebuild.
7625 * configure.ac: Change common to gdbsupport.
7626 * gdbsupport: Rename from common.
7627 * acinclude.m4: Change common to gdbsupport.
7628 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7629 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7631 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7632 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7633 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7634 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7635 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7636 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7637 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7638 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7639 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7640 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7641 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7642 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7643 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7644 coff-pe-read.c, command.h, compile/compile-c-support.c,
7645 compile/compile-c.h, compile/compile-cplus-symbols.c,
7646 compile/compile-cplus-types.c, compile/compile-cplus.h,
7647 compile/compile-loc2c.c, compile/compile.c, completer.c,
7648 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7649 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7650 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7651 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7652 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7653 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7654 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7655 features/aarch64-core.c, features/aarch64-fpu.c,
7656 features/aarch64-pauth.c, features/aarch64-sve.c,
7657 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7658 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7659 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7660 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7661 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7662 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7663 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7664 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7665 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7666 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7667 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7668 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7669 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7670 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7671 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7672 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7673 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7674 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7675 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7676 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7677 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7678 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7679 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7680 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7681 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7682 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7683 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7684 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7685 minsyms.c, mips-linux-tdep.c, namespace.h,
7686 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7687 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7688 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7689 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7690 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7691 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7692 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7693 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7694 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7695 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7696 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7697 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7698 procfs.c, producer.c, progspace.h, psymtab.h,
7699 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7700 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7701 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7702 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7703 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7704 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7705 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7706 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7707 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7708 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7709 target-memory.c, target.c, target.h, target/waitstatus.c,
7710 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7711 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7712 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7713 unittests/array-view-selftests.c,
7714 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7715 unittests/common-utils-selftests.c,
7716 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7717 unittests/format_pieces-selftests.c,
7718 unittests/function-view-selftests.c,
7719 unittests/lookup_name_info-selftests.c,
7720 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7721 unittests/mkdir-recursive-selftests.c,
7722 unittests/observable-selftests.c,
7723 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7724 unittests/parse-connection-spec-selftests.c,
7725 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7726 unittests/scoped_fd-selftests.c,
7727 unittests/scoped_mmap-selftests.c,
7728 unittests/scoped_restore-selftests.c,
7729 unittests/string_view-selftests.c, unittests/style-selftests.c,
7730 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7731 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7732 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7733 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7734 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7735 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7737 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7739 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7741 (decode_digits_ordinary): Set explicit_line field in sal.
7742 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7743 symtab_and_line that was set on an explicit line number in
7744 assembler code. Do always update the recorded symtab and line if
7745 we do skip the prologue.
7747 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7749 * breakpoint.c (set_breakpoint_location_function): Remove
7750 explicit_loc parameter.
7751 (momentary_breakpoint_from_master): Update call to
7752 set_breakpoint_location_function.
7753 (add_location_to_breakpoint): Likewise.
7755 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7757 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7758 required features based on default bfd type when no specific bfd
7761 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7763 * NEWS: Mention that GDB printf and eval commands can now print
7764 C-style and Ada-style convenience var strings without
7765 calling the inferior.
7766 * printcmd.c (printf_c_string): Locally print GDB internal var
7767 instead of transiting via the inferior.
7768 (printf_wide_c_string): Likewise.
7770 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7772 PR breakpoints/25011
7773 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7775 2019-07-04 Tom Tromey <tom@tromey.com>
7778 * tui/tui-winsource.c (tui_clear_source_content): Update.
7779 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7780 (tui_update_breakpoint_info): Update.
7781 (tui_set_exec_info_content): Update.
7782 * tui/tui-source.c (tui_set_source_content_nil): Update.
7783 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7785 * tui/tui-data.h (enum tui_bp_flag): New.
7786 (tui_bp_flags): New enum flags type.
7787 (struct tui_source_element) <break_mode>: Change type. Rename
7789 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7790 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7792 * tui/tui-winsource.h: Fix comment.
7794 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7796 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7797 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7798 (store_fpregs_to_thread)
7799 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7800 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7801 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7802 (IWMMXT_REGS_SIZE): Add define.
7803 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7804 (fetch_vfp_regs, store_vfp_regs)
7805 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7806 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7808 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7810 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7812 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7813 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7814 (ARM_INT_REGISTER_SIZE): ...to this.
7815 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7816 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7817 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7818 (arm_linux_collect_gregset, supply_nwfpe_register)
7819 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7821 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7822 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7823 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7824 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7825 (arm_return_in_memory, arm_store_return_value)
7826 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7827 (arm_record_ld_st_multiple): Likewise.
7828 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7829 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7831 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7833 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7834 AARCH64_DISPLACED_MODIFIED_INSNS.
7835 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7836 (aarch64_displaced_step_copy_insn): Likewise.
7837 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7838 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7839 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7840 ARM_DISPLACED_MODIFIED_INSNS.
7841 * arm-tdep.c (arm_gdbarch_init): Likewise.
7842 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7843 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7844 (struct arm_displaced_step_closure): Use
7845 ARM_DISPLACED_MODIFIED_INSNS.
7847 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7849 * features/Makefile: Remove unused xml files.
7850 * features/aarch64.xml: Remove.
7851 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7852 * features/i386/amd64-avx-avx512.xml: Remove.
7853 * features/i386/amd64-avx-linux.xml: Remove.
7854 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7855 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7856 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7857 * features/i386/amd64-avx-mpx.xml: Remove.
7858 * features/i386/amd64-avx.xml: Remove.
7859 * features/i386/amd64-linux.xml: Remove.
7860 * features/i386/amd64-mpx-linux.xml: Remove.
7861 * features/i386/amd64-mpx.xml: Remove.
7862 * features/i386/amd64.xml: Remove.
7863 * features/i386/i386-avx-avx512-linux.xml: Remove.
7864 * features/i386/i386-avx-avx512.xml: Remove.
7865 * features/i386/i386-avx-linux.xml: Remove.
7866 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7867 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7868 * features/i386/i386-avx-mpx-linux.xml: Remove.
7869 * features/i386/i386-avx-mpx.xml: Remove.
7870 * features/i386/i386-avx.xml: Remove.
7871 * features/i386/i386-linux.xml: Remove.
7872 * features/i386/i386-mmx-linux.xml: Remove.
7873 * features/i386/i386-mmx.xml: Remove.
7874 * features/i386/i386-mpx-linux.xml: Remove.
7875 * features/i386/i386-mpx.xml: Remove.
7876 * features/i386/i386.xml: Remove.
7877 * features/i386/x32-avx-avx512-linux.xml: Remove.
7878 * features/i386/x32-avx-linux.xml: Remove.
7879 * features/i386/x32-linux.xml: Remove.
7881 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7883 * regformats/aarch64.dat: Remove.
7884 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7885 * regformats/i386/amd64-avx-linux.dat: Remove.
7886 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7887 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7888 * regformats/i386/amd64-linux.dat: Remove.
7889 * regformats/i386/amd64-mpx-linux.dat: Remove.
7890 * regformats/i386/amd64.dat: Remove.
7891 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7892 * regformats/i386/i386-avx-linux.dat: Remove.
7893 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7894 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7895 * regformats/i386/i386-linux.dat: Remove.
7896 * regformats/i386/i386-mmx-linux.dat: Remove.
7897 * regformats/i386/i386-mpx-linux.dat: Remove.
7898 * regformats/i386/i386.dat: Remove.
7899 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7900 * regformats/i386/x32-avx-linux.dat: Remove.
7901 * regformats/i386/x32-linux.dat: Remove.
7903 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7905 * aarch64-tdep.c: Remove xml self tests.
7906 * amd64-linux-tdep.c: Likewise.
7907 * amd64-tdep.c: Likewise.
7908 * i386-linux-tdep.c: Likewise.
7909 * i386-tdep.c: Likewise.
7911 2019-07-03 Pedro Alves <palves@redhat.com>
7914 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7915 (pipe_cmd_option_defs): New.
7916 (make_pipe_cmd_options_def_group): New.
7917 (pipe_command): Use gdb::option::process_options.
7918 (pipe_command_completer): New function.
7919 (_initialize_cli_cmds): Install completer for "pipe" command.
7921 2019-07-03 Pedro Alves <palves@redhat.com>
7923 * cli/cli-option.c (union option_value) <string>: New field.
7924 (struct option_def_and_value): Add ctor, move ctor, dtor and
7925 use DISABLE_COPY_AND_ASSIGN.
7926 (option_def_and_value::clear_value): New.
7927 (parse_option, save_option_value_in_ctx, get_val_type_str)
7928 (add_setshow_cmds_for_options): Handle var_string.
7929 * cli-option.h (union option_def::var_address) <string>: New
7931 (struct string_option_def): New.
7932 * maint-test-options.c (struct test_options_opts): Add default
7933 ctor and use DISABLE_COPY_AND_ASSIGN.
7934 <string_opt>: New field.
7935 (test_options_opts::~test_options_opts): New.
7936 (test_options_opts::dump): Also dump "-string".
7937 (test_options_option_defs): Install "string.
7939 2019-07-03 Pedro Alves <palves@redhat.com>
7941 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7942 option_value with a null enumeration.
7943 (complete_options): Save the option values in the context.
7944 (save_option_value_in_ctx): New, factored out from ...
7945 (process_options): ... here.
7946 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7948 * maint-test-options.c (test_options_opts::dump): New, factored
7950 (maintenance_test_options_command_mode): ... here.
7951 (maintenance_test_options_command_completion_result): Delete.
7952 (maintenance_test_options_command_completion_text): Update
7954 (maintenance_show_test_options_completion_result): Change
7955 prototype. Just print
7956 maintenance_test_options_command_completion_text.
7957 (save_completion_result): New.
7958 (maintenance_test_options_completer_mode): Pass options context to
7959 complete_options, and then save a dump.
7960 (_initialize_maint_test_options): Use add_cmd to install "maint
7961 show test-options-completion-result".
7963 2019-07-03 Pedro Alves <palves@redhat.com>
7965 * NEWS (New commands): Mention "with" and "maint with".
7966 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7967 (with_command, with_command_completer): New.
7968 (pipe_command): Adjust to new repeat_previous
7970 (_initialize_cli_cmds): Install the "with" command and its "w"
7972 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7974 * cli/cli-setshow.c (parse_cli_var_uinteger)
7975 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7976 argument strings for all var_types.
7977 (get_setshow_command_value_string): New, factored out from ...
7978 (do_show_command): ... this.
7979 * cli/cli-setshow.h: Include <string>.
7980 (get_setshow_command_value_string): Declare.
7981 * command.h (repeat_previous): Now returns const char *. Adjust
7983 * maint.c: Include "cli/cli-cmds.h".
7984 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7985 (_initialize_maint_cmds): Register the "maintenance with" command.
7986 * top.c (repeat_previous): Move bits from pipe_command here:
7987 Return the saved command line, if any; error out if there's no
7988 command to relaunch.
7990 2019-07-03 Pedro Alves <palves@redhat.com>
7992 * NEWS (New commands): Mention "maint set/show test-settings"
7993 instead of "maint test-settings".
7994 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7995 (maintenance_test_settings_set_list): Rename to ...
7996 (maintenance_set_test_settings_list): ... this.
7997 (maintenance_test_settings_show_list): Rename to ...
7998 (maintenance_show_test_settings_list): ... this.
7999 (maintenance_test_settings_cmd): Delete.
8000 (maintenance_test_settings_set_cmd): ...
8001 (maintenance_set_test_settings_cmd): ... this.
8002 (maintenance_test_settings_show_cmd): ...
8003 (maintenance_show_test_settings_cmd): ... this.
8004 (maintenance_test_settings_show_value_cmd):
8005 (maintenance_show_test_settings_value_cmd): ... this.
8006 (_initialize_maint_test_settings): No longer install the "maint
8007 test-settings" prefix command. Rename "maint test-settings set"
8008 to "maint set test-settings", and "maint test-settings show" to
8009 "maint show test-settings". Adjust all subcommands.
8011 2019-07-03 Pedro Alves <palves@redhat.com>
8013 * maint-test-settings.c: Fix file's intro comment. Replace all
8014 references to "test-options" with references to "test-settings",
8017 2019-07-03 Pedro Alves <palves@redhat.com>
8019 * maint-test-settings.c (maintenance_test_settings_xxx)
8020 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8022 (maintenance_test_settings_enums): Use them.
8023 (maintenance_test_settings_enum): Default to
8024 maintenance_test_settings_xxx.
8025 (_initialize_maint_test_settings): Initialize
8026 MAINTENANCE_TEST_SETTINGS_FILENAME.
8028 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8030 * breakpoint.h (remove_breakpoints_inf): Change return type to
8031 void, move function documentation here.
8032 * breakpoint.c (remove_breakpoints_inf): Change return type to
8033 void, move function documentation to header.
8035 2019-07-02 Pedro Alves <palves@redhat.com>
8037 * NEWS (Completion improvements): Mention "info threads".
8038 * thread.c (struct info_threads_opts, info_threads_option_defs)
8039 (make_info_threads_options_def_group): New.
8040 (info_threads_command): Use gdb::option::process_options.
8041 (info_threads_command_completer): New.
8042 (_initialize_thread): Use gdb::option::build_help to build the
8043 help text for "info threads".
8045 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8047 * defs.h (generic_load): Move from here...
8048 * symfile.h (generic_load): ... to here. Rename name parameter
8050 * symfile.c (generic_load): Add comment.
8052 2019-07-01 Tom Tromey <tromey@adacore.com>
8055 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8056 declaration of without_params. Fix formatting.
8058 2019-07-01 Tom Tromey <tromey@adacore.com>
8060 * ada-exp.y (find_primitive_type): Update.
8061 * ada-lang.h (ada_lookup_symbol): Update.
8062 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8064 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8066 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8068 PR breakpoints/24541
8069 * gdbarch.c: Regenerate.
8070 * gdbarch.h: Regenerate.
8071 * gdbarch.sh: Add 'stap_adjust_register'.
8072 * i386-tdep.c: Include '<unordered_set>'.
8073 (i386_stap_adjust_register): New function.
8074 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8075 * stap-probe.c (stap_parse_register_operand): Call
8076 'gdbarch_stap_adjust_register'.
8078 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8081 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8082 * python/python.c (do_start_initialization): Use 'xmalloc'
8083 instead of 'PyMem_Malloc'.
8085 2019-06-28 Tom Tromey <tromey@adacore.com>
8087 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8090 2019-06-27 Tom Tromey <tromey@adacore.com>
8092 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8094 (arm_find_mapping_symbol, arm_record_special_symbol)
8095 (_initialize_arm_tdep): Update.
8096 (arm_objfile_data_free): Remove.
8098 2019-06-27 Tom Tromey <tromey@adacore.com>
8100 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8101 to cp_print_static_field.
8103 2019-06-26 Tom Tromey <tromey@adacore.com>
8105 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8106 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8109 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8111 * features/aarch64-core.c (create_feature_aarch64_core):
8113 * features/aarch64-core.xml: Add cpsr flags.
8115 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8117 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8118 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8120 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8122 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8124 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8126 (arm_record_special_symbol): Don't insert new symbol in sorted
8127 position, push it at the end.
8129 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8131 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8132 (arm_mapping_symbol_s): Remove.
8133 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8134 (arm_mapping_symbol_vec): New typedef.
8135 (struct arm_per_objfile): Add constructor.
8136 <section_maps>: Change type to
8137 std::unique_ptr<arm_mapping_symbol_vec[]>.
8138 (arm_compare_mapping_symbols): Remove.
8139 (arm_find_mapping_symbol): Adjust to section_maps type change.
8140 (arm_objfile_data_free): Call delete on arm_per_objfile.
8141 (arm_record_special_symbol): Adjust to section_maps type change.
8142 Allocate arm_per_objfile with new.
8144 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8146 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8147 with the command prefix.
8149 2019-06-25 Tom Tromey <tom@tromey.com>
8151 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8152 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8154 2019-06-25 Tom Tromey <tom@tromey.com>
8156 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8158 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8161 2019-06-25 Tom Tromey <tom@tromey.com>
8163 * tui/tui-winsource.c
8164 (tui_source_window_base::set_is_exec_point_at): Add check against
8167 2019-06-25 Tom Tromey <tom@tromey.com>
8169 * tui/tui-source.c (tui_set_source_content): Don't check before
8171 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8173 2019-06-25 Tom Tromey <tom@tromey.com>
8175 * tui/tui-winsource.h (tui_update_source_window_as_is)
8176 (tui_alloc_source_buffer, tui_line_is_displayed)
8177 (tui_addr_is_displayed): Change type of win_info.
8178 * tui/tui-winsource.c (tui_update_source_window_as_is)
8179 (tui_clear_source_content, tui_show_source_line)
8180 (tui_show_source_content, tui_source_window_base::refill)
8181 (tui_source_window_base::set_is_exec_point_at)
8182 (tui_source_window_base::set_is_exec_point_at)
8183 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8184 (tui_alloc_source_buffer, tui_line_is_displayed)
8185 (tui_addr_is_displayed): Change type of win_info. Update.
8186 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8187 (tui_source_window_base::do_make_visible_with_new_height):
8189 * tui/tui-source.c (tui_set_source_content)
8190 (tui_set_source_content_nil)
8191 (tui_source_window::do_scroll_vertical): Update.
8192 * tui/tui-layout.c (show_layout): Update.
8193 * tui/tui-disasm.c (tui_set_disassem_content)
8194 (tui_disasm_window::do_scroll_vertical): Update.
8195 * tui/tui-data.h (tui_win_content): Remove.
8196 (struct tui_gen_win_info) <content, content_size>: Remove.
8197 (struct tui_source_element): Add initializers and destructor.
8198 (union tui_which_element, struct tui_win_element): Remove.
8199 (struct tui_source_window_base) <content>: New field.
8200 (struct tui_data_window): Remove destructor.
8201 (tui_alloc_content, tui_free_win_content)
8202 (tui_free_all_source_wins_content): Don't declare.
8203 * tui/tui-data.c (tui_initialize_static_data): Update.
8204 (init_content_element, tui_alloc_content): Remove.
8205 (~tui_gen_win_info): Update.
8206 (~tui_data_window, tui_free_all_source_wins_content)
8207 (tui_free_win_content, free_content, free_content_elements):
8210 2019-06-25 Tom Tromey <tom@tromey.com>
8212 * tui/tui-winsource.h (tui_clear_source_content)
8213 (tui_erase_source_content, tui_show_source_content): Change type
8215 * tui/tui-winsource.c (tui_clear_source_content)
8216 (tui_erase_source_content, tui_show_source_content): Change type
8218 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8219 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8221 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8223 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8225 2019-06-25 Tom Tromey <tom@tromey.com>
8227 * tui/tui-winsource.c (tui_clear_source_content)
8228 (tui_source_window_base::set_is_exec_point_at): Update.
8229 * tui/tui-source.c (tui_set_source_content_nil): Update.
8230 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8232 * tui/tui-data.c (init_content_element): Update.
8234 2019-06-25 Tom Tromey <tom@tromey.com>
8236 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8237 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8238 * tui/tui-layout.c (init_and_make_win): Update.
8239 * tui/tui.h (enum tui_win_type): Update.
8240 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8241 tui_win_is_auxillary.
8242 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8243 tui_win_is_auxillary.
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8247 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8248 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8249 (tui_delete_data_content_windows, tui_display_all_data)
8250 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8252 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8253 * tui/tui-regs.c (tui_last_regs_line_no)
8254 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8255 (tui_show_registers): Update.
8256 (tui_show_register_group): Return void. Update.
8257 (tui_display_registers_from, tui_display_reg_element_at_line)
8258 (tui_display_registers_from_line, tui_check_register_values):
8260 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8262 (struct tui_data_window) <regs_content>: Now a std::vector.
8263 <regs_content_count>: Remove.
8264 (tui_add_content_elements, tui_free_data_content): Don't declare.
8265 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8266 (init_content_element): Remove DATA_WIN case. Add assert.
8267 (tui_add_content_elements): Remove.
8268 (tui_data_window): Update.
8269 (tui_free_data_content): Remove.
8270 (free_content_elements): Remove DATA_WIN case.
8272 2019-06-25 Tom Tromey <tom@tromey.com>
8274 * tui/tui-data.c (tui_data_item_window): Update.
8275 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8276 * tui/tui-windata.c (tui_display_all_data)
8277 (tui_display_data_from_line): Update.
8278 (tui_check_data_values): Remove.
8279 * tui/tui-regs.c (tui_show_register_group)
8280 (tui_display_reg_element_at_line): Update.
8281 * tui/tui-hooks.c (tui_register_changed)
8282 (tui_refresh_frame_and_register_information): Call
8283 tui_check_register_values.
8284 * tui/tui-data.h (struct tui_data_window) <data_content,
8285 data_content_count, data_type>: Remove.
8286 (enum tui_data_type): Remove.
8288 * tui/tui-data.c (tui_data_window::clear_detail)
8289 (~tui_data_window): Update.
8291 2019-06-25 Tom Tromey <tom@tromey.com>
8293 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8295 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8296 Rename from tui_first_data_item_displayed. Update.
8297 (tui_data_window::refresh_all)
8298 (tui_data_window::do_scroll_vertical): Update.
8299 * tui/tui-data.h (struct tui_data_window)
8300 <first_data_item_displayed>: Declare new method.
8302 2019-06-25 Tom Tromey <tom@tromey.com>
8304 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8305 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8307 (tui_initialize_static_data): ...here.
8309 2019-06-25 Tom Tromey <tom@tromey.com>
8311 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8312 (tui_display_registers_from, tui_check_register_values): Update.
8313 (tui_display_register): Remove win_info parameter; update.
8314 (tui_get_register): Change type of parameters.
8315 * tui/tui-data.h (struct tui_data_element): Remove.
8316 (union tui_which_element) <data>: Remove.
8317 <data_window>: Change type.
8318 (struct tui_data_item_window): New.
8319 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8321 (~tui_data_item_window): New destructor.
8322 (free_content_elements): Remove DATA_ITEM_WIN case.
8324 2019-06-25 Tom Tromey <tom@tromey.com>
8326 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8329 2019-06-25 Tom Tromey <tom@tromey.com>
8331 * tui/tui-data.h (struct tui_command_element): Remove.
8332 (union tui_which_element) <command>: Remove.
8333 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8335 (free_content_elements): Remove CMD_WIN case.
8337 2019-06-25 Tom Tromey <tom@tromey.com>
8339 * tui/tui-layout.c (tui_set_layout): Update.
8340 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8341 * tui/tui-data.c (layout_def): Update.
8343 2019-06-25 Tom Tromey <tom@tromey.com>
8345 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8346 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8347 (tui_source_window_base::set_new_height): Update.
8348 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8350 (tui_set_locator_fullname, tui_set_locator_info)
8351 (tui_show_frame_info): Update.
8352 * tui/tui-source.c (tui_set_source_content)
8353 (tui_source_is_displayed): Update.
8354 * tui/tui-layout.c (show_source_disasm_command, show_data)
8355 (show_source_or_disasm_and_command): Update.
8356 * tui/tui-disasm.c (tui_set_disassem_content)
8357 (tui_get_begin_asm_address): Update.
8358 * tui/tui-data.h (struct tui_locator_element): Remove.
8359 (union tui_which_element) <locator>: Remove.
8360 (struct tui_locator_window): New.
8361 (tui_locator_win_info_ptr): Change return type.
8362 * tui/tui-data.c (_locator): Change type.
8363 (tui_locator_win_info_ptr): Change return type.
8364 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8365 (tui_alloc_content): Add assert.
8367 2019-06-25 Tom Tromey <tom@tromey.com>
8369 * tui/tui-winsource.c
8370 (tui_exec_info_window::maybe_allocate_content): New method.
8371 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8372 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8373 (make_source_or_disasm_window): Add cast.
8374 * tui/tui-data.h (union tui_which_element) <simple_string>:
8376 (struct tui_source_info): New.
8377 (struct tui_source_window_base) <execution_info>: Change type.
8378 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8379 case, and add assert.
8380 (tui_alloc_content): Add assert.
8382 2019-06-25 Tom Tromey <tom@tromey.com>
8384 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8385 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8386 * tui/tui-data.c (tui_alloc_win_info): Remove.
8388 2019-06-25 Tom Tromey <tom@tromey.com>
8390 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8391 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8394 2019-06-25 Tom Tromey <tom@tromey.com>
8396 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8397 make_visible_with_new_height method.
8398 (tui_win_info::make_visible_with_new_height): New method.
8399 (tui_source_window_base::do_make_visible_with_new_height)
8400 (tui_data_window::do_make_visible_with_new_height)
8401 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8402 (make_visible_with_new_height): Remove.
8403 (tui_resize_all, tui_adjust_win_heights): Use
8404 make_visible_with_new_height method.
8405 * tui/tui-data.h (struct tui_win_info)
8406 <do_make_visible_with_new_height, make_visible_with_new_height>:
8408 (struct tui_source_window_base, struct tui_data_window)
8409 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8412 2019-06-25 Tom Tromey <tom@tromey.com>
8414 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8416 (update_tab_width): Call update_tab_width method.
8417 * tui/tui-data.h (struct tui_win_info)
8418 (struct tui_source_window_base) <update_tab_width>: New methods.
8420 2019-06-25 Tom Tromey <tom@tromey.com>
8422 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8424 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8426 (tui_gen_win_info::make_visible): Update.
8427 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8429 * tui/tui-data.h (enum tui_box): New enum.
8430 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8432 2019-06-25 Tom Tromey <tom@tromey.com>
8434 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8435 init_and_make_win for EXEC_INFO_WIN.
8436 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8438 (struct tui_win_info) <~tui_win_info>: Inline.
8439 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8441 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8442 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8444 (tui_initialize_static_data): Update.
8445 (~tui_gen_win_info): Handle more cleanup here.
8446 (~tui_source_window_base): Delete "execution_info".
8447 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8449 2019-06-25 Tom Tromey <tom@tromey.com>
8451 * tui/tui-layout.c (make_command_window): Don't set
8453 (show_source_disasm_command): Call the reset method.
8454 (show_data): Don't set can_highlight. Call the reset method.
8455 (tui_gen_win_info::reset): Rename from init_gen_win_info
8456 (init_and_make_win): Simplify. Return tui_gen_win_info.
8457 (show_source_or_disasm_and_command): Call the reset method.
8458 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8459 (struct tui_cmd_window): Set can_highlight.
8461 2019-06-25 Tom Tromey <tom@tromey.com>
8463 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8465 (tui_make_visible, tui_make_invisible): Rewrite.
8466 (tui_win_info::make_visible): Remove.
8467 (tui_source_window_base::make_visible): Update.
8468 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8469 method. Moved from...
8470 (struct tui_win_info) <make_visible>: ...here.
8472 2019-06-25 Tom Tromey <tom@tromey.com>
8474 * tui/tui-winsource.c
8475 (tui_source_window_base::do_scroll_horizontal): Remove direction
8477 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8478 direction parameter.
8479 * tui/tui-win.c (tui_win_info::forward_scroll)
8480 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8481 (tui_win_info::right_scroll): Update.
8482 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8483 direction parameter.
8484 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8485 direction parameter.
8486 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8487 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8488 Remove direction parameter.
8489 (struct tui_source_window_base, struct tui_source_window)
8490 (struct tui_disasm_window, struct tui_data_window)
8491 (struct tui_cmd_window): Update.
8493 2019-06-25 Tom Tromey <tom@tromey.com>
8495 * tui/tui-winsource.h (tui_set_exec_info_content)
8496 (tui_show_exec_info_content, tui_erase_exec_info_content)
8497 (tui_clear_exec_info_content, tui_update_exec_info): Change
8498 argument to tui_source_window_base.
8499 * tui/tui-winsource.c (tui_set_exec_info_content)
8500 (tui_show_exec_info_content, tui_erase_exec_info_content)
8501 (tui_clear_exec_info_content, tui_update_exec_info): Change
8502 argument to tui_source_window_base.
8504 2019-06-25 Tom Tromey <tom@tromey.com>
8506 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8507 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8509 2019-06-25 Tom Tromey <tom@tromey.com>
8511 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8514 2019-06-25 Tom Tromey <tom@tromey.com>
8516 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8518 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8520 * tui/tui-source.c (tui_set_source_content): Update.
8521 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8523 2019-06-25 Tom Tromey <tom@tromey.com>
8525 * tui/tui-win.c (window_name_completer, tui_set_focus)
8526 (tui_all_windows_info): Use name method.
8527 * tui/tui-data.h (struct tui_gen_win_info)
8528 (struct tui_source_window, struct tui_disasm_window)
8529 (struct tui_data_window, struct tui_cmd_window) <name>: New
8531 (tui_win_name): Don't declare.
8532 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8533 (tui_win_name): Remove.
8535 2019-06-25 Tom Tromey <tom@tromey.com>
8537 * tui/tui-winsource.h (tui_update_source_window)
8538 (tui_update_source_window_as_is): Change parameter type.
8539 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8540 to be a tui_source_window_base.
8541 (tui_update_source_window_as_is): Likewise.
8542 * tui/tui-win.c (make_visible_with_new_height): Update.
8544 2019-06-25 Tom Tromey <tom@tromey.com>
8546 * tui/tui-winsource.c (tui_erase_source_content)
8547 (tui_show_source_content, tui_show_exec_info_content)
8548 (tui_erase_exec_info_content): Use refresh_window method.
8549 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8550 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8551 from tui_refresh_win.
8552 (tui_data_window::refresh_window): New method.
8553 (tui_win_info::refresh, tui_source_window_base::refresh)
8554 (tui_refresh_all): Use refresh_window method.
8555 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8557 * tui/tui-regs.c (tui_display_register): Call refresh_window
8559 * tui/tui-layout.c (show_source_disasm_command)
8560 (show_source_or_disasm_and_command): Call refresh_window method.
8561 * tui/tui-data.h (struct tui_gen_win_info)
8562 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8565 2019-06-25 Tom Tromey <tom@tromey.com>
8567 * tui/tui.c (tui_rl_other_window, tui_enable)
8568 (tui_is_window_visible, tui_get_command_dimension): Update.
8569 * tui/tui-winsource.c (tui_update_source_window_as_is)
8570 (tui_clear_source_content, tui_erase_source_content)
8571 (tui_show_source_line, tui_source_window_base::refill)
8572 (tui_source_window_base::do_scroll_horizontal)
8573 (tui_source_window_base::set_is_exec_point_at)
8574 (tui_update_breakpoint_info, tui_set_exec_info_content)
8575 (tui_alloc_source_buffer, tui_line_is_displayed)
8576 (tui_addr_is_displayed): Update.
8577 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8578 (tui_check_and_display_highlight_if_needed)
8579 (tui_win_info::make_visible, tui_win_info::refresh)
8580 (tui_refresh_all): Update.
8581 * tui/tui-windata.c (tui_first_data_item_displayed)
8582 (tui_delete_data_content_windows, tui_erase_data_content)
8583 (tui_display_all_data, tui_data_window::refresh_all)
8584 (tui_check_data_values): Update.
8585 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8586 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8587 (tui_win_info::backward_scroll, tui_refresh_all_win)
8588 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8589 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8590 (tui_source_window_base::set_new_height)
8591 (tui_data_window::set_new_height)
8592 (make_invisible_and_set_new_height)
8593 (make_visible_with_new_height, new_height_ok)
8594 (parse_scrolling_args): Update.
8595 * tui/tui-stack.c (tui_show_frame_info): Update.
8596 * tui/tui-source.c (tui_set_source_content)
8597 (tui_set_source_content_nil, tui_source_is_displayed)
8598 (tui_source_window::do_scroll_vertical): Update.
8599 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8600 (tui_display_registers_from, tui_display_reg_element_at_line)
8601 (tui_check_register_values, tui_reg_command): Update.
8602 * tui/tui-layout.c (tui_default_win_height)
8603 (show_source_disasm_command, show_data, init_and_make_win)
8604 (show_source_or_disasm_and_command): Update.
8605 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8606 (tui_redisplay_readline, tui_mld_flush)
8607 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8609 * tui/tui-disasm.c (tui_set_disassem_content)
8610 (tui_disasm_window::do_scroll_vertical): Update.
8611 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8613 (struct tui_win_info): Derive from tui_gen_win_info.
8614 <~tui_win_info>: Mark as override.
8615 <generic>: Remove member.
8616 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8617 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8618 (~tui_data_window, ~tui_win_info)
8619 (tui_free_all_source_wins_content): Update.
8620 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8622 2019-06-25 Tom Tromey <tom@tromey.com>
8624 * tui/tui-layout.c (init_and_make_win): Use new.
8625 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8626 destructor, initializers.
8627 (tui_alloc_generic_win_info): Don't declare.
8628 * tui/tui-data.c (_locator): Add argument to constructor.
8629 (source_win, disasm_win): New globals.
8630 (exec_info): Remove.
8631 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8633 (tui_alloc_generic_win_info): Remove.
8634 (init_content_element): Use new.
8635 (tui_win_info::tui_win_info): Update.
8636 (free_content_elements) <case DATA_WIN>: Use delete.
8638 2019-06-25 Tom Tromey <tom@tromey.com>
8640 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8641 * tui/tui-windata.c (tui_first_data_item_displayed)
8642 (tui_delete_data_content_windows): Update.
8643 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8644 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8645 (tui_display_registers_from, tui_check_register_values): Update.
8646 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8648 * tui/tui-data.c (init_content_element): Update. Allocate the new
8650 (tui_free_data_content): Update.
8651 (free_content_elements) <case DATA_WIN>: Free the window.
8653 2019-06-25 Tom Tromey <tom@tromey.com>
8655 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8657 * tui/tui-layout.c (make_command_window)
8658 (show_source_disasm_command, show_data, init_and_make_win)
8659 (show_source_or_disasm_and_command): Update.
8660 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8662 <can_highight, is_highlighted>: Now bool.
8663 (tui_set_win_highlight): Don't declare.
8664 * tui/tui-data.c (tui_set_win_highlight): Remove.
8666 2019-06-25 Tom Tromey <tom@tromey.com>
8668 * tui/tui-wingeneral.c (make_visible): Remove check of window
8671 2019-06-25 Tom Tromey <tom@tromey.com>
8673 * tui/tui-win.c (tui_win_info::max_height)
8674 (tui_cmd_window::max_height): New methods.
8675 (new_height_ok): Call max_height.
8676 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8677 <max_height>: New method.
8679 2019-06-25 Tom Tromey <tom@tromey.com>
8681 * tui/tui-win.c (tui_source_window_base::set_new_height)
8682 (tui_data_window::set_new_height): New methods.
8683 (make_invisible_and_set_new_height): Call set_new_height method.
8684 * tui/tui-data.h (struct tui_win_info)
8685 (struct tui_source_window_base, struct tui_data_window)
8686 <set_new_height>: New method.
8688 2019-06-25 Tom Tromey <tom@tromey.com>
8690 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8691 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8692 tui_refresh_data_win.
8693 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8695 (tui_refresh_all_win): Call the refresh_all method.
8696 (tui_set_focus): Likewise.
8697 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8698 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8701 2019-06-25 Tom Tromey <tom@tromey.com>
8703 * tui/tui-winsource.h (tui_refill_source_window)
8704 (tui_set_is_exec_point_at): Don't declare.
8705 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8706 (tui_source_window_base::refill): Rename from
8707 tui_refill_source_window.
8708 (tui_source_window_base::do_scroll_horizontal): Update.
8709 (tui_source_window_base::set_is_exec_point_at): Rename from
8710 tui_set_is_exec_point_at.
8711 (tui_update_all_breakpoint_info): Update.
8712 * tui/tui-stack.c (tui_show_frame_info): Update.
8713 * tui/tui-layout.c (show_data): Add cast.
8714 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8715 * tui/tui-data.h (struct tui_source_window_base) <refill,
8716 set_is_exec_point_at>: New methods.
8717 (tui_source_windows, tui_add_to_source_windows): Update types.
8718 (tui_add_to_source_windows): Remove redundant declaration.
8719 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8720 (tui_source_windows): Change return type.
8721 (tui_clear_source_windows_detail): Update.
8722 (tui_add_to_source_windows): Change type of parameter.
8723 (tui_free_all_source_wins_content): Update.
8725 2019-06-25 Tom Tromey <tom@tromey.com>
8727 * tui/tui-wingeneral.c (tui_win_info::refresh)
8728 (tui_source_window_base::refresh): New methods.
8729 (tui_refresh_all): Call the refresh method.
8730 * tui/tui-data.h (struct tui_win_info)
8731 (struct tui_source_window_base) <refresh>: New method.
8733 2019-06-25 Tom Tromey <tom@tromey.com>
8735 * tui/tui.h (tui_is_window_visible): Return bool.
8736 * tui/tui.c (tui_is_window_visible): Return bool.
8737 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8738 (tui_make_visible, tui_make_invisible)
8739 (tui_win_info::make_visible)
8740 (tui_source_window_base::make_visible, make_all_visible)
8741 (tui_make_all_visible, tui_make_all_invisible): Update.
8742 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8743 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8745 (struct tui_win_info, struct tui_source_window_base)
8746 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8747 * tui/tui-data.c (tui_init_generic_part): Update.
8749 2019-06-25 Tom Tromey <tom@tromey.com>
8751 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8752 (tui_source_window_base::make_visible): New methods.
8753 (make_all_visible): Make method call.
8754 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8755 (struct tui_source_window_base, struct tui_cmd_window): Override
8757 (tui_win_is_source_type): Don't declare.
8758 * tui/tui-data.c (tui_win_is_source_type): Remove.
8760 2019-06-25 Tom Tromey <tom@tromey.com>
8762 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8765 2019-06-25 Tom Tromey <tom@tromey.com>
8767 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8768 Inline constructor. Add initializers for members.
8769 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8770 constructors; now inline in class.
8772 2019-06-25 Tom Tromey <tom@tromey.com>
8774 * tui/tui-regs.c (tui_show_registers): Update.
8775 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8777 * tui/tui-data.c (tui_data_window::clear_detail)
8778 (tui_data_window): Update.
8780 2019-06-25 Tom Tromey <tom@tromey.com>
8782 * tui/tui-windata.c (tui_display_all_data)
8783 (tui_display_data_from_line, tui_display_data_from)
8784 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8786 * tui/tui-regs.c (tui_last_regs_line_no)
8787 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8788 (tui_show_registers, tui_show_register_group)
8789 (tui_display_registers_from, tui_display_reg_element_at_line)
8790 (tui_display_registers_from_line, tui_check_register_values)
8791 (tui_reg_next, tui_reg_prev): Update.
8792 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8793 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8795 (struct tui_win_info) <detail>: Remove. Add new fields from
8797 (TUI_DATA_WIN): Add cast.
8798 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8799 (~tui_data_window): Simplify.
8801 2019-06-25 Tom Tromey <tom@tromey.com>
8803 * tui/tui-layout.c (show_source_disasm_command)
8804 (show_source_or_disasm_and_command): Update.
8805 * tui/tui-io.c (update_cmdwin_start_line)
8806 (tui_redisplay_readline): Update.
8807 * tui/tui-data.h (struct tui_command_info): Remove.
8808 (struct tui_win_info) <detail>: Remove command_info member.
8809 (struct tui_data_window) <start_line>: New member, from
8811 (TUI_CMD_WIN): Add casts.
8813 2019-06-25 Tom Tromey <tom@tromey.com>
8815 * tui/tui-winsource.c (tui_update_source_window)
8816 (tui_refill_source_window)
8817 (tui_source_window_base::do_scroll_horizontal)
8818 (tui_update_breakpoint_info, tui_set_exec_info_content)
8819 (tui_show_exec_info_content, tui_erase_exec_info_content)
8820 (tui_clear_exec_info_content): Update.
8821 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8823 * tui/tui-win.c (make_invisible_and_set_new_height)
8824 (make_visible_with_new_height): Update.
8825 * tui/tui-source.c (tui_set_source_content)
8826 (tui_show_symtab_source): Update.
8827 * tui/tui-layout.c (extract_display_start_addr)
8828 (show_source_disasm_command, show_data)
8829 (make_source_or_disasm_window)
8830 (show_source_or_disasm_and_command): Update.
8831 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8832 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8834 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8835 to tui_source_window_base.
8836 (struct tui_win_info) <detail>: Remove source_info member.
8837 (struct tui_source_window_base) <has_locator>: Inline.
8838 Move contents from tui_source_info; rename has_locator member to
8840 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8841 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8843 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8845 (tui_free_all_source_wins_content): Cast to
8846 tui_source_window_base.
8848 2019-06-25 Tom Tromey <tom@tromey.com>
8850 * tui/tui-win.c (make_invisible_and_set_new_height)
8851 (make_visible_with_new_height): Call has_locator method.
8852 * tui/tui-layout.c (show_source_disasm_command, show_data)
8853 (show_source_or_disasm_and_command): Update for bool change.
8854 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8855 (tui_win_info) <has_locator>: New method.
8856 (struct tui_source_window_base) <has_locator>: New method.
8857 (tui_win_has_locator): Don't declare.
8858 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8859 from tui_win_has_locator.
8860 (tui_source_window_base): Use false, not FALSE.
8862 2019-06-25 Tom Tromey <tom@tromey.com>
8864 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8865 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8866 clear_detail method directly.
8867 (tui_clear_win_detail): Remove.
8869 2019-06-25 Tom Tromey <tom@tromey.com>
8871 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8872 "this", not TUI_DISASM_WIN.
8874 2019-06-25 Tom Tromey <tom@tromey.com>
8876 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8878 * tui/tui-winsource.c
8879 (tui_source_window_base::do_scroll_horizontal): Rename from
8880 tui_horizontal_source_scroll.
8881 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8882 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8883 from tui_vertical_data_scroll.
8884 * tui/tui-win.h (tui_scroll): Don't declare.
8885 * tui/tui-win.c (tui_win_info::forward_scroll)
8886 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8887 (tui_win_info::right_scroll): Rename and update.
8888 (tui_scroll_forward_command, tui_scroll_backward_command)
8889 (tui_scroll_left_command, tui_scroll_right_command): Update.
8890 (tui_scroll): Remove.
8891 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8892 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8893 from tui_vertical_source_scroll.
8894 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8895 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8896 from tui_vertical_disassem_scroll.
8897 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8898 do_scroll_horizontal>: New methods.
8899 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8901 (struct tui_source_window_base): Add do_scroll_horizontal.
8902 (struct tui_source_window, struct tui_disasm_window): Add
8904 (struct tui_data_window, struct tui_cmd_window): Add
8905 do_scroll_horizontal and do_scroll_vertical.
8906 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8908 2019-06-25 Tom Tromey <tom@tromey.com>
8910 * tui/tui-data.h (struct tui_source_window_base): New struct.
8911 (struct tui_source_window): Derive from tui_source_window_base.
8912 (struct tui_disasm_window): New struct.
8913 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8914 from tui_source_window::clear_detail.
8915 (tui_source_window_base): Rename from tui_source_window.
8916 (~tui_source_window_base): Rename from ~tui_source_window.
8917 (tui_alloc_win_info): Create a tui_disasm_window.
8919 2019-06-25 Tom Tromey <tom@tromey.com>
8921 * tui/tui-data.h (struct tui_source_window)
8922 (struct tui_data_window): Declare destructors.
8923 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8925 (tui_win_info): Simplify.
8927 2019-06-25 Tom Tromey <tom@tromey.com>
8929 * tui/tui-winsource.c (tui_display_main)
8930 (tui_update_source_windows_with_addr)
8931 (tui_update_all_breakpoint_info): Update.
8932 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8933 (new_height_ok, parse_scrolling_args): Update.
8934 * tui/tui-stack.c (tui_show_frame_info): Update.
8935 * tui/tui-data.h (struct tui_list): Remove.
8936 (tui_source_windows): Return a reference to a std::vector.
8937 * tui/tui-data.c (source_windows): Now a std::vector.
8938 (tui_source_windows): Change return type.
8939 (tui_clear_source_windows): Rewrite.
8940 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8941 (tui_free_all_source_wins_content): Rewrite.
8943 2019-06-25 Tom Tromey <tom@tromey.com>
8945 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8946 (struct tui_data_window, struct tui_cmd_window): Declare
8947 clear_detail method.
8948 * tui/tui-data.c (tui_source_window::clear_detail)
8949 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8951 (tui_clear_win_detail): Simplify.
8953 2019-06-25 Tom Tromey <tom@tromey.com>
8955 * tui/tui-layout.c (make_source_window, make_disasm_window)
8956 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8957 Return the new window.
8958 (show_source_disasm_command, show_data)
8959 (show_source_or_disasm_and_command): Update.
8961 2019-06-25 Tom Tromey <tom@tromey.com>
8963 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8964 parameter. Return the new window.
8965 (show_source_disasm_command): Update and remove NULL check.
8966 (show_source_or_disasm_and_command): Update.
8968 2019-06-25 Tom Tromey <tom@tromey.com>
8970 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8972 2019-06-25 Tom Tromey <tom@tromey.com>
8974 * tui/tui-data.h (struct tui_win_info): Make constructor
8975 protected. Make destructor virtual. Add initializers.
8976 (tui_source_window, tui_data_window, tui_cmd_window): New
8978 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8979 constructor. Add "type" parameter.
8980 (tui_source_window, tui_data_window, tui_cmd_window): New
8982 (tui_alloc_win_info): Instantiate the appropriate subclass.
8984 2019-06-25 Tom Tromey <tom@tromey.com>
8986 * tui/tui-win.c (tui_resize_all): Use delete.
8987 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8989 (tui_free_window): Don't declare.
8990 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8993 2019-06-25 Tom Tromey <tom@tromey.com>
8995 * tui/tui-data.h (struct tui_win_info): Add constructor.
8996 * tui/tui-data.c (tui_alloc_win_info): Use new.
8997 (tui_free_window): Use delete.
8999 2019-06-22 Tom Tromey <tom@tromey.com>
9001 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9003 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9005 2019-06-22 Tom Tromey <tom@tromey.com>
9007 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9009 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9011 2019-06-22 Tom de Vries <tdevries@suse.de>
9013 * dwarf2read.c (create_addrmap_from_aranges)
9014 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9017 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9019 * dwarf2read.h (dwarf2_section_info_def): Remove.
9020 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9021 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9022 std::vector<dwarf2_section_info>.
9023 (struct dwo_file) <~dwo_file>: Remove.
9024 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9026 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9027 (dwarf2_read_debug_names): Likewise.
9028 (create_debug_types_hash_table): Change parameter type to
9029 array_view, adjust code accordingly.
9030 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9031 (partial_die_info::fixup): Likewise.
9032 (determine_prefix): Likewise.
9033 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9035 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9037 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9039 <~dwo_file>: Remove call to gdb_bfd_unref.
9040 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9041 gdb_bfd_ref_ptr::get.
9043 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9045 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9047 * dwarf2read.c (struct dwo_file): Initialize fields.
9049 (free_dwo_file): Remove, move content to ~dwo_file.
9050 (struct dwo_file_deleter): Remove.
9051 (dwo_file_up>: Remove custom deleter.
9052 (free_dwo_files): Remove.
9053 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9055 (process_skeletonless_type_units): Call unique_ptr::get.
9056 (allocate_dwo_file_hash_table): Add deleter to created hash
9057 table. Change return type to htab_up.
9058 (lookup_dwo_file_slot): Don't memset dwo_file, call
9060 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9061 (create_dwo_unit_in_dwp_v2): Likewise.
9062 (open_and_init_dwo_file): Likewise.
9063 (free_dwo_file_from_slot): Remove.
9065 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9067 * dwarf2read.h (struct dwarf2_section_info) <readin,
9068 is_virtual>: Change type to bool.
9069 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9072 2019-06-19 Tom Tromey <tom@tromey.com>
9074 * tui/tui-data.h (tui_init_content_element): Don't declare.
9076 2019-06-19 Tom Tromey <tom@tromey.com>
9078 * tui/tui-data.h (tui_init_win_info): Don't declare.
9080 2019-06-19 Tom de Vries <tdevries@suse.de>
9082 * dwarf2read.h (abstract_to_concrete): Change type to
9083 std::unordered_map<sect_offset, std::vector<sect_offset>,
9084 gdb::hash_enum<sect_offset>>.
9086 2019-06-19 Tom Tromey <tromey@adacore.com>
9088 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9089 EVAL_AVOID_SIDE_EFFECTS specially.
9091 2019-06-19 Tom Tromey <tromey@adacore.com>
9093 * source-cache.c (highlighter): New global.
9094 (source_cache::get_source_lines): Create a highlighter on demand.
9096 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9098 * defs.h (deprecated_interactive_hook): Delete declaration.
9099 * interps.c (clear_interpreter_hooks): Remove use of
9100 deprecated_interactive_hook.
9101 * top.c (deprecated_interactive_hook): Delete definition.
9102 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9104 2019-06-18 Tom de Vries <tdevries@suse.de>
9107 * dwarf2read.h (abstract_to_concrete): Change type from
9108 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9109 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9110 * dwarf2read.c (read_variable): Update.
9111 (dwarf2_fetch_die_loc_sect_off): Update.
9113 2019-06-17 Tom de Vries <tdevries@suse.de>
9116 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9117 accessing parent[parent_len - 1].
9119 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9122 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9123 call dtrace_process_dof with NULL dof.
9125 2019-06-16 Tom de Vries <tdevries@suse.de>
9128 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9130 2019-06-16 Tom Tromey <tom@tromey.com>
9132 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9133 (make_all_visible): Use address of member.
9135 2019-06-16 Tom Tromey <tom@tromey.com>
9137 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9138 (tui_free_window, free_content, free_content_elements): Remove
9140 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9142 * tui/tui-regs.c (tui_show_register_group)
9143 (tui_display_registers_from, tui_display_reg_element_at_line):
9144 Remove unnecessary cast.
9146 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9148 * linux-nat.c (normal_mask): Delete.
9149 (_initialize_linux_nat): Don't initialise normal_mask.
9151 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9154 * dwarf-index-write.h (write_psymtabs_to_index): Add
9155 dwz_basename parameter.
9156 * dwarf-index-write.c (write_gdbindex): Move file writing to
9157 write_gdbindex_1. Change return type void.
9158 (assert_file_size): Move up, remove filename parameter.
9159 (write_gdbindex_1): New function.
9160 (write_debug_names): Change return type to void, call
9162 (struct index_wip_file): New struct.
9163 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9164 file logic to index_wip_file. Write index for dwz file if
9166 (save_gdb_index_command): Pass basename of dwz file, if present.
9167 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9168 build-id of dwz file, if present.
9169 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9170 (dwarf2_get_dwz_file): Likewise.
9171 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9172 (dwarf2_get_dwz_file): Likewise.
9174 2019-06-16 Tom Tromey <tom@tromey.com>
9176 * coffread.c (process_coff_symbol): Use xstrdup.
9177 * value.c (create_internalvar): Use xstrdup.
9179 2019-06-16 Tom Tromey <tom@tromey.com>
9181 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9182 * breakpoint.c (stopin_command, stopat_command)
9183 (until_break_command, decode_location_default): Remove unnecessary
9185 * utils.c (subset_compare): Remove unnecessary cast.
9186 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9188 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9190 * infcmd.c (path_command): Remove unnecessary cast.
9191 * coffread.c (decode_type): Remove unnecessary cast.
9192 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9193 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9194 * tui/tui-stack.c (tui_show_locator_content)
9195 (tui_show_frame_info): Remove unnecessary cast.
9196 * tui/tui-win.c (tui_scroll_forward_command)
9197 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9198 (parse_scrolling_args): Remove unnecessary cast.
9199 * tui/tui-data.c (init_win_info, tui_del_window)
9200 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9201 (free_content_elements): Remove unnecessary cast.
9202 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9204 * tui/tui-source.c (tui_set_source_content)
9205 (tui_vertical_source_scroll): Remove unnecessary cast.
9206 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9208 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9209 * tui/tui-regs.c (tui_display_registers_from)
9210 (tui_display_register): Remove unnecessary cast.
9211 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9212 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9213 (make_visible): Remove unnecessary cast.
9214 * tui/tui-winsource.c (tui_erase_source_content)
9215 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9217 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9218 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9219 * stabsread.c (read_type, read_array_type, read_range_type):
9220 Remove unnecessary cast.
9221 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9222 (parse_symbol, parse_type, upgrade_type, parse_external)
9223 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9225 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9227 2019-06-16 Tom Tromey <tom@tromey.com>
9229 * tui/tui-data.c (tui_alloc_generic_win_info)
9230 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9233 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9234 Andrew Burgess <andrew.burgess@embecosm.com>
9236 * f-typeprint.c (f_print_type): Don't return early for not
9237 associated or not allocated types.
9238 (f_type_print_varspec_suffix): Add print_rank parameter and print
9239 ranks of array types in case they dangling.
9240 (f_type_print_base): Add print_rank parameter.
9242 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9244 * NEWS: Mention new MI commands.
9245 * break-catch-throw.c (enum exception_event_kind): Move to
9247 (print_mention_exception_catchpoint): Output text as a single
9249 (catch_exception_command_1): Rename to...
9250 (catch_exception_event): ...this, make non-static, update header
9251 command, and change some parameter types.
9252 (catch_catch_command): Update for changes to
9253 catch_exception_command_1.
9254 (catch_throw_command): Likewise.
9255 (catch_rethrow_command): Likewise.
9256 * breakpoint.c (enum exception_event_kind): Delete.
9257 * breakpoint.h (enum exception_event_kind): Moved here from
9258 break-catch-throw.c.
9259 (catch_exception_event): Declare.
9260 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9261 (mi_cmd_catch_throw): New function.
9262 (mi_cmd_catch_rethrow): New function.
9263 (mi_cmd_catch_catch): New function.
9264 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9265 'catch-catch' entries.
9266 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9267 (mi_cmd_catch_rethrow): Declare.
9268 (mi_cmd_catch_catch): Declare.
9270 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9272 * annotate.c (annotate_source_line): Change return type to void,
9273 update implementation to match.
9274 * annotate.h (annotate_source_line): Change return type to void,
9275 update header comment.
9276 * stack.c (print_frame_info): Don't change what frame information
9277 is printed based on whether annotations are on or not.
9279 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9281 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9282 (annotate_source): Make static.
9283 (annotate_source_line): Moved from source.c and renamed from
9284 identify_source_line. Update the return type.
9285 * annotate.h (annotate_source): Delete declaration.
9286 (annotate_source_line): Declaration moved from source.h, and
9287 renamed from identify_source_line. Return type updated.
9288 * source.c (identify_source_line): Moved to annotate.c and renamed
9289 to annotate_source_line.
9290 (info_line_command): Remove check of annotation_level.
9291 * source.h (identify_source_line): Move declaration to annotate.h
9292 and rename to annotate_source_line.
9293 * stack.c: Add 'annotate.h' include.
9294 (print_frame_info): Remove check of annotation_level before
9295 calling annotate_source_line.
9297 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9299 * source-cache.c (source_cache::get_plain_source_lines): Use
9300 open_source_file_with_line_charpos instead of just
9301 open_source_file, remove call to find_source_lines.
9302 (source_cache::get_source_lines): Likewise.
9303 * source.c (find_source_lines): Make static.
9304 (get_filename_and_charpos): Renamed into...
9305 (open_source_file_with_line_charpos): ..this along with changes to
9306 return a scoped_fd, and some other minor clean ups.
9307 (identify_source_line): Use open_source_file_with_line_charpos.
9308 (search_command_helper): Use open_source_file_with_line_charpos
9309 instead of just open_source_file, remove call to
9311 * source.h (open_source_file_with_line_charpos): Declare new
9313 (find_source_lines): Delete declaration.
9315 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9317 * source.c (get_filename_and_charpos): Remove fullname
9319 (identify_source_line): Update call to get_filename_and_charpos.
9321 2019-06-14 Tom Tromey <tromey@adacore.com>
9324 * ui-style.h (skip_ansi_escape): Update comment.
9325 * ui-file.h (class no_terminal_escape_file): New class.
9326 * ui-file.c (no_terminal_escape_file::write)
9327 (no_terminal_escape_file::puts): New methods.
9328 * cli/cli-logging.c (handle_redirections): Use
9329 no_terminal_escape_file.
9331 2019-06-14 Tom Tromey <tromey@adacore.com>
9333 * NEWS: Move convenience variable news above Python news.
9335 2019-06-14 Tom Tromey <tom@tromey.com>
9337 * gnulib: Move directory to top-level.
9338 * configure.ac: Don't configure gnulib.
9339 * configure: Rebuild.
9340 * common/common-defs.h: Use new path to gnulib.
9341 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9343 (INCGNU): Look in new gnulib location.
9344 (HFILES_NO_SRCDIR): Remove gnulib files.
9345 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9346 (generated_files): Remove GNULIB_H.
9347 ($(LIBGNU), all-lib): Remove targets.
9348 (distclean): Don't mention GNULIB_BUILDDIR.
9349 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9351 2019-06-14 Tom Tromey <tromey@adacore.com>
9353 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9354 Warn if symbol file does not provide any symbols.
9356 2019-06-14 Tom Tromey <tromey@adacore.com>
9358 * source.c (find_and_open_source): Respect basenames_may_differ.
9360 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9362 * annotate.c (annotate_breakpoints_invalid): Make use of
9363 scoped_restore_terminal_state.
9364 (annotate_frames_invalid): Likewise.
9366 2019-06-14 Tom Tromey <tromey@adacore.com>
9368 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9369 allow assignment to an internalvar.
9371 2019-06-14 Tom Tromey <tromey@adacore.com>
9373 * ada-lex.l: Allow "_" in attribute names.
9375 2019-06-14 Tom Tromey <tromey@adacore.com>
9378 * regcache.c (registers_changed): Don't call alloca.
9379 * top.c (execute_command): Don't call alloca.
9381 2019-06-13 Pedro Alves <palves@redhat.com>
9383 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9384 'expression'. When parsing an expression, error out if there's
9385 junk after "unlimited".
9386 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9387 (do_set_command): Adjust calls to is_unlimited_literal.
9389 2019-06-13 Pedro Alves <palves@redhat.com>
9391 * compile/compile.c (make_compile_options_def_group): Add braces
9392 around array_view initializer.
9393 * thread.c (make_thread_apply_all_options_def_group)
9394 (make_thread_apply_all_options_def_group): Likewise.
9396 2019-06-13 Pedro Alves <palves@redhat.com>
9398 * NEWS (New commands): Mention "maint test-options
9399 require-delimiter", "maint test-options unknown-is-error", "maint
9400 test-options unknown-is-operand" and "maint show
9401 test-options-completion-result".
9402 (New command options, command completion): New section.
9403 (Completion improvements): New section.
9404 Mention that you can abbreviate "unlimited".
9406 2019-06-13 Pedro Alves <palves@redhat.com>
9408 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9409 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9410 * unittests/cli-utils-selftests.c (test_parse_flags)
9411 (test_parse_flags_qcs): Delete.
9412 (test_cli_utils): Don't call deleted functions.
9414 2019-06-13 Pedro Alves <palves@redhat.com>
9416 * thread.c: Include "cli/cli-option.h".
9417 (tp_array_compar_ascending): Global.
9418 (tp_array_compar): Delete function.
9419 (tp_array_compar_ascending, tp_array_compar_descending): New
9421 (ascending_option_def, qcs_flag_option_def)
9422 (thr_qcs_flags_option_defs)
9423 (make_thread_apply_all_options_def_group)
9424 (make_thread_apply_options_def_group): New.
9425 (thread_apply_all_command): Use gdb::option::process_options.
9426 (thread_apply_command_completer)
9427 (thread_apply_all_command_completer): New.
9428 (thread_apply_command): Use gdb::option::process_options.
9429 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9430 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9431 to generate help text of "thread apply". Adjust "taas"'s help.
9432 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9433 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9435 2019-06-13 Pedro Alves <palves@redhat.com>
9437 * thread.c (thread_apply_command): Check for invalid TID with
9438 isdigit instead of !isalpha.
9440 2019-06-13 Pedro Alves <palves@redhat.com>
9442 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9443 (validate_flags_qcs): New.
9444 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9445 (validate_flags_qcs): Declare.
9446 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9447 (make_frame_apply_options_def_group): New.
9448 (frame_apply_command_count): Process options with
9449 gdb::option::process_options.
9450 (frame_apply_completer): New.
9451 (frame_apply_level_completer, frame_apply_all_completer)
9452 (frame_apply_completer): New.
9453 (_initialize_stack): Update help of "frame apply", "frame apply
9454 level", "frame apply all" and "faas" to mention supported options
9455 and install command completers.
9456 * stack.h (frame_apply_all_completer): Declare.
9457 * thread.c: Include "stack.h".
9458 (tfaas_command): Add "--".
9459 (_initialize_thread): Update help "tfaas" to mention supported
9460 options and install command completer.
9462 2019-06-13 Pedro Alves <palves@redhat.com>
9464 * completer.c (complete_nested_command_line): New.
9465 (gdb_completion_word_break_characters_throw): Add assertion.
9466 * completer.h (complete_nested_command_line): Declare.
9468 2019-06-13 Pedro Alves <palves@redhat.com>
9470 * stack.c (parse_backtrace_qualifiers): New.
9471 (backtrace_command): Use it.
9472 (backtrace_command_completer): Complete on qualifiers.
9474 2019-06-13 Pedro Alves <palves@redhat.com>
9476 * frame.c: Include "cli/cli-option.h.
9477 (user_set_backtrace_options): New.
9478 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9480 (get_prev_frame): Adjust.
9481 (boolean_option_def, uinteger_option_def)
9482 (set_backtrace_option_defs): New.
9483 (_initialize_frame): Adjust and use
9484 gdb::option::add_setshow_cmds_for_options to install "set
9485 backtrace past-main" and "set backtrace past-entry".
9486 * frame.h: Include "cli/cli-option.h".
9487 (struct frame_print_options): Forward declare.
9488 (print_frame_arguments_all, print_frame_arguments_scalars)
9489 (print_frame_arguments_none): Declare.
9490 (print_entry_values): Delete declaration.
9491 (struct frame_print_options, user_frame_print_options): New.
9492 (struct set_backtrace_options): New.
9493 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9494 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9495 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9496 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9497 (list_args_or_locals): Add frame_print_options parameter.
9498 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9499 * python/py-framefilter.c (enumerate_args): Pass down
9500 USER_FRAME_PRINT_OPTIONS.
9501 * stack.c: Include "cli/cli-option.h".
9502 (print_frame_arguments_all, print_frame_arguments_scalars)
9503 (print_frame_arguments_none): Declare.
9504 (print_raw_frame_arguments, print_entry_values): Delete.
9505 (user_frame_print_options): New.
9506 (boolean_option_def, enum_option_def, frame_print_option_defs):
9508 (struct backtrace_cmd_options): New.
9509 (bt_flag_option_def): New.
9510 (backtrace_command_option_defs): New.
9511 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9512 (print_frame_arg, read_frame_arg, print_frame_args)
9513 (print_frame_info, print_frame): Add frame_print_options parameter
9515 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9516 (backtrace_command_1): Add frame_print_options and
9517 backtrace_cmd_options parameters and use them.
9518 (make_backtrace_options_def_group): New.
9519 (backtrace_command): Process command options with
9520 gdb::option::process_options.
9521 (backtrace_command_completer): New.
9522 (_initialize_stack): Extend "backtrace"'s help to mention
9523 supported options. Install completer for "backtrace".
9524 Install some settings commands with add_setshow_cmds_for_options.
9526 2019-06-13 Pedro Alves <palves@redhat.com>
9528 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9529 and that "set/show print raw frame-arguments" are now deprecated.
9531 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9533 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9534 * stack.c (_initialize_stack): Install "set/show print
9535 raw-frame-arguments", and deprecate "set/show print raw
9537 * valprint.c (_initialize_valprint): Deprecate "set/show print
9540 2019-06-13 Pedro Alves <palves@redhat.com>
9542 * compile/compile.c (struct compile_options): New.
9543 (compile_flag_option_def, compile_command_option_defs)
9544 (make_compile_options_def_group): New.
9545 (compile_file_command): Handle options with
9546 gdb::option::process_options.
9547 (compile_file_command_completer): New function.
9548 (compile_code_command): Handle options with
9549 gdb::option::process_options.
9550 (compile_code_command_completer): New function.
9551 (_initialize_compiler): Install completers for "compile code" and
9552 "compile file". Mention available options in "compile code" and
9553 "compile code"'s help.
9554 * completer.c (advance_to_completion_word): New, factored out from
9556 (advance_to_expression_complete_word_point): ... this.
9557 (advance_to_filename_complete_word_point): New.
9558 * completer.h (advance_to_filename_complete_word_point): New
9561 2019-06-13 Pedro Alves <palves@redhat.com>
9563 * compile/compile.c: Include "cli/cli-option.h".
9564 (compile_print_value): Scope data pointer is now a
9565 value_print_options pointer; adjust.
9566 (compile_print_command): Process options. Scope data pointer is
9567 now a value_print_options pointer; adjust.
9568 (_initialize_compile): Update "compile print"'s help to include
9569 supported options. Install a completer for "compile print".
9570 * cp-valprint.c (show_vtblprint, show_objectprint)
9571 (show_static_field_print): Delete.
9572 (_initialize_cp_valprint): Don't install "set print
9573 static-members", "set print vtbl", "set print object" here.
9574 * printcmd.c: Include "cli/cli-option.h" and
9575 "common/gdb_optional.h".
9576 (print_command_parse_format): Rework to fill in a
9577 value_print_options instead of a format_data.
9578 (print_value): Change parameter type from format_data pointer to
9579 value_print_options reference. Adjust.
9580 (print_command_1): Process options. Adjust to pass down a
9581 value_print_options.
9582 (print_command_completer): New.
9583 (_initialize_printcmd): Install print_command_completer as
9584 handle_brkchars completer for the "print" command. Update
9585 "print"'s help to include supported options.
9586 * valprint.c: Include "cli/cli-option.h".
9587 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9588 here from cp-valprint.c.
9589 (boolean_option_def, uinteger_option_def)
9590 (value_print_option_defs, make_value_print_options_def_group):
9591 New. Use gdb::option::add_setshow_cmds_for_options to install
9592 "set print elements", "set print null-stop", "set print repeats",
9593 "set print pretty", "set print union", "set print array", "set
9594 print address", "set print symbol", "set print array-indexes".
9595 * valprint.h: Include <string> and "cli/cli-option.h".
9596 (make_value_print_options_def_group): Declare.
9597 (print_value): Change parameter type from format_data pointer to
9598 value_print_options reference.
9599 (print_command_completer): Declare.
9601 2019-06-13 Pedro Alves <palves@redhat.com>
9603 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9604 (COMMON_SFILES): Add maint-test-settings.c.
9605 * cli/cli-decode.c (boolean_enums): New global, factored out from
9607 (add_setshow_boolean_cmd): ... here.
9608 * cli/cli-decode.h (boolean_enums): Declare.
9609 * cli/cli-option.c: New file.
9610 * cli/cli-option.h: New file.
9611 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9612 factored out from ...
9613 (parse_cli_boolean_value(const char *)): ... this.
9614 (is_unlimited_literal): Change parameter type to pointer to
9615 pointer. Adjust and advance ARG pointer.
9616 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9617 (parse_cli_var_enum): New, factored out from ...
9618 (do_set_command): ... this. Adjust.
9619 * cli/cli-setshow.h (parse_cli_boolean_value)
9620 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9621 (parse_cli_var_enum): Declare.
9622 * cli/cli-utils.c: Include "cli/cli-option.h".
9623 (get_ulongest): New.
9624 * cli/cli-utils.h (get_ulongest): Declare.
9625 (check_for_argument): New overloads.
9626 * maint-test-options.c: New file.
9628 2019-06-13 Pedro Alves <palves@redhat.com>
9630 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9631 parse a range if "-" is at the end of the string.
9633 2019-06-13 Pedro Alves <palves@redhat.com>
9635 * cli/cli-setshow.c (parse_auto_binary_operation)
9636 (parse_cli_boolean_value): Don't allow "o".
9638 2019-06-13 Pedro Alves <palves@redhat.com>
9640 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9641 * NEWS: Mention maint test-settings KIND.
9642 * maint-test-settings.c: New file.
9644 2019-06-13 Pedro Alves <palves@redhat.com>
9646 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9648 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9651 2019-06-13 Pedro Alves <palves@redhat.com>
9653 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9656 2019-06-13 Pedro Alves <palves@redhat.com>
9658 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9660 2019-06-13 Pedro Alves <palves@redhat.com>
9662 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9663 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9665 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9666 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9668 (check_for_argument): Skip spaces after argument.
9670 2019-06-13 Pedro Alves <palves@redhat.com>
9672 * thread.c (thread_apply_command): Adjust TID parsing.
9673 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9674 detected before end of string.
9675 (tid_is_in_list): Error out if LIST is invalid.
9677 2019-06-13 Pedro Alves <palves@redhat.com>
9679 * completer.c (complete_line_internal_1): Rewind completion word
9681 (completion_tracker::advance_custom_word_point_by): Change
9682 parameter type to int.
9683 * completer.h (completion_tracker::advance_custom_word_point_by):
9686 2019-06-13 Pedro Alves <palves@redhat.com>
9688 * completer.c (advance_to_completion_word): Handle delimiters.
9690 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9692 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9694 2019-06-11 Tom Tromey <tom@tromey.com>
9696 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9697 (xmalloc_failed): Move to alloc.c.
9698 * alloc.c: New file.
9699 * Makefile.in (COMMON_SFILES): Add alloc.c.
9701 2019-06-11 Tom Tromey <tom@tromey.com>
9703 * nat/linux-waitpid.c: Don't include server.h.
9704 (linux_debug): Remove.
9705 (my_waitpid): Update.
9707 2019-06-11 Tom Tromey <tromey@adacore.com>
9709 * infcall.c (_initialize_infcall): Remove trailing newline from
9711 * user-regs.c (_initialize_user_regs): Remove trailing newline
9713 * typeprint.c (_initialize_typeprint): Remove trailing newline
9715 * reverse.c (_initialize_reverse): Remove trailing newlines from
9717 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9719 * language.c (add_set_language_command): Remove trailing newline
9721 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9723 * disasm.c (_initialize_disasm): Remove trailing newline from
9725 * top.c (init_main): Remove trailing newline from help.
9726 * interps.c (_initialize_interpreter): Remove trailing newline
9728 * btrace.c (_initialize_btrace): Remove trailing newlines from
9730 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9732 * python/python.c (_initialize_python): Remove trailing newline
9734 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9736 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9737 from help. Reformat some text.
9738 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9740 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9743 2019-06-11 Tom Tromey <tromey@adacore.com>
9745 * darwin-nat.c (darwin_decode_exception_message)
9746 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9748 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9750 * valops.c (value_slice): Check for not allocated or not
9753 2019-06-10 Tom de Vries <tdevries@suse.de>
9756 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9757 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9760 2019-06-10 Tom de Vries <tdevries@suse.de>
9763 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9764 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9766 2019-06-10 Tom de Vries <tdevries@suse.de>
9769 * symtab.c (struct demangled_name_entry): Add language field.
9770 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9771 static minimal symbol". Set and use language field.
9773 2019-06-10 Tom Tromey <tromey@adacore.com>
9775 * ada-lang.c (_initialize_ada_language): Update help text.
9777 2019-06-10 Tom Tromey <tromey@adacore.com>
9779 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9781 * guile/guile.c (handle_boot_error): Don't end warning with a
9783 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9784 warning with a newline.
9785 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9787 (s12z_frame_cache): Likewise.
9788 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9790 * solib-svr4.c (disable_probes_interface): Don't end warning with
9792 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9794 * python/python.c (do_finish_initialization): Don't end warning
9797 2019-06-10 Tom Tromey <tom@tromey.com>
9799 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9800 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9803 2019-06-10 Tom Tromey <tromey@adacore.com>
9805 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9807 (elf_new_init): Don't call stabsread_new_init.
9808 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9809 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9810 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9812 2019-06-10 Tom de Vries <tdevries@suse.de>
9816 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9818 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9820 * source.c (find_and_open_source): Also rewrite relative file
9823 2019-04-26 Amos Bird <amosbird@gmail.com>
9825 * annotate.c (annotate_thread_exited): Add "thread-exited"
9828 2019-06-06 Tom Tromey <tromey@adacore.com>
9830 * maint.h (class scoped_command_stats): Use
9831 DISABLE_COPY_AND_ASSIGN.
9832 <print_time>: New method.
9833 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9835 (scoped_command_stats::print_time): New method.
9837 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9839 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9840 instructions of lengths 6 or 8 bytes.
9842 2019-06-04 Pedro Alves <palves@redhat.com>
9844 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9846 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9847 * breakpoint.c (condition_completer): Likewise.
9848 * cli/cli-dump.c (scan_expression): Likewise.
9849 * common/filestuff.c (mkdir_recursive): Likewise.
9850 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9851 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9852 (gdb_abspath): Likewise.
9853 * compile/compile-cplus-types.c
9854 (compile_cplus_instance::decl_name): Likewise.
9855 * completer.c (complete_explicit_location):
9856 (signal_completer, reg_or_group_completer_1): Likewise.
9857 * cp-support.c (cp_remove_params_if_any): Likewise.
9858 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9859 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9860 * infcmd.c (strip_bg_char): Likewise.
9861 * linespec.c (copy_token_string): Likewise.
9862 * mi/mi-main.c (output_cores): Likewise.
9863 * psymtab.c (psymtab_search_name):
9864 * symfile.c (test_set_ext_lang_command): Likewise.
9865 * target.c (target_fileio_read_stralloc): Likewise.
9866 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9867 * value.c (complete_internalvar): Likewise.
9869 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9871 Add objfile property to gdb.Type.
9872 * NEWS: Mention Python API addition.
9873 * python/py-type.c (typy_get_objfile): New method.
9875 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9877 * NEWS: Mention the new set|show style [title|highlight].
9878 Mention changes to "show style", "help" and "apropos".
9880 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9882 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9883 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9884 instead of print_help_for_command.
9885 (print_doc_of_command): New function.
9886 (help_list): Add 'apropos -v word' suggestion.
9887 (print_help_for_command): Style the command name using title style.
9888 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9889 (_initialize_cli_cmds): Describe -v in apropos_command help.
9891 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9893 * cli/cli-style.h (cli_style_option): Add name in constructor,
9894 add m_name class member, add constructor with intensity,
9895 add name class function.
9896 (cli_style_option::add_setshow_commands): Remove name argument.
9897 (highlight_style, title_style): New styles.
9898 * cli/cli-style.c (do_show): New function that shows a style
9899 characteristic styling the style name with itself.
9900 (set_style_name): New function.
9901 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9902 Update all callers according to the changes in cli/cli-style.h.
9903 * utils.h (fputs_highlighted): New function.
9904 * utils.c (fputs_highlighted): Likewise.
9906 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9908 * NEWS: Mention new pipe command and new convenience variables.
9910 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9912 * cli/cli-cmds.c (pipe_command): New function.
9913 (_initialize_cli_cmds): Call add_com for pipe_command.
9914 Define | as an alias for pipe.
9915 (exit_status_set_internal_vars): New function.
9916 (shell_escape): Call exit_status_set_internal_vars.
9917 cli/cli-decode.c (find_command_name_length): Recognize | as
9918 a single character command.
9920 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9922 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9923 top.c (execute_command_to_ui_file): New function, mostly a copy
9924 of execute_command_to_string.
9925 (execute_command_to_string): Implement by calling
9926 execute_command_to_ui_file.
9928 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9930 * top.h (saved_command_line): Remove declaration.
9931 * top.c (previous_saved_command_line, previous_repeat_arguments):
9933 (saved_command_line): Make static, define together with other
9935 (dont_repeat): Clear repeat_arguments.
9936 (repeat_previous, get_saved_command_line, save_command_line):
9938 (gdb_init): Initialize saved_command_line
9939 and previous_saved_command_line.
9940 * main.c (captured_main_1): Remove saved_command_line initialization.
9941 * event-top.c (handle_line_of_input): Update to use
9942 the new 'repeat' related functions instead of direct access to
9944 * command.h (repeat_previous, get_saved_command_line,
9945 save_command_line): New declarations.
9946 (dont_repeat): Add comment.
9948 2019-05-30 Tom Tromey <tromey@adacore.com>
9950 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9952 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9954 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9957 * completer.c (complete): Initialize variable word.
9959 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9961 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9962 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9963 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9964 'body' is NULL to the outter 'if', protecting the '!is_define'
9967 2019-05-29 Tom Tromey <tromey@adacore.com>
9969 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9970 (dwarf_unknown): New function.
9971 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9972 (dwarf_type_encoding_name): Use dwarf_unknown.
9974 2019-05-29 Tom Tromey <tromey@adacore.com>
9977 * cp-valprint.c (cp_print_value_fields): Call
9978 cp_print_static_field inside "try".
9980 2019-05-29 Tom Tromey <tromey@adacore.com>
9982 * inflow.c (struct terminal_info): Add default operator=.
9983 * configure: Rebuild.
9984 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9985 -Wdeprecated-copy-dtor, -Wredundant-move.
9987 2019-05-29 Tom Tromey <tromey@adacore.com>
9990 * infcmd.c (print_return_value_1): Handle finish_print
9992 (show_print_finish): New function.
9993 (_initialize_infcmd): Add "set/show print finish" commands.
9994 * valprint.c (user_print_options): Initialize new member.
9995 * valprint.h (struct value_print_options) <finish_print>: New
9998 2019-05-28 Tom Tromey <tromey@adacore.com>
10000 * ada-lang.c (ada_remove_Xbn_suffix)
10001 (find_old_style_renaming_symbol)
10002 (parse_old_style_renaming): Remove.
10003 (ada_find_renaming_symbol): Don't call
10004 find_old_style_renaming_symbol.
10005 (ada_is_renaming_symbol): Rename from
10006 ada_find_renaming_symbol. Remove "block" parameter. Return
10008 (ada_read_var_value): Update and simplify.
10009 * ada-exp.y (write_var_or_type): Remove old code.
10011 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10014 * event-top.c: Remove include comment.
10015 * inflow.c (class scoped_ignore_sigttou): Move from here...
10016 * inflow.h (class scoped_ignore_sigttou): ...to here.
10017 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10018 * top.c: Remove include comment.
10020 2019-05-27 Tom Tromey <tom@tromey.com>
10024 2019-05-22 Tom Tromey <tromey@adacore.com>
10026 * target.c (target_follow_exec): Constify parameter.
10027 * target-delegates.c: Rebuild.
10028 * remote.c (remote_target::follow_exec): Constify parameter.
10029 * infrun.c (follow_exec): Constify parameter.
10030 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10031 (target_follow_exec): Likewise.
10033 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10035 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10036 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10038 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10040 * NEWS: Add debugredirect and testsuite sections.
10042 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10044 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10045 target descriptions using exclusively floating point register name
10048 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10051 * f-lang.c (build_fortran_types): Handle the case where
10052 gdbarch_floatformat_for_type returns a nullptr.
10054 2019-05-21 Tom de Vries <tdevries@suse.de>
10057 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10059 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10062 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10064 * i386-tdep.c (i386_floatformat_for_type): Use
10065 floatformats_ia64_quad for the 16-byte floating point component
10066 within a fortran 32-byte complex number.
10068 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10070 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10071 delete default constructor.
10072 (find_partial_die): Update to return const struct.
10073 (partial_die_parent_scope): Move variable declaration into scope
10074 of its use and change its type to auto.
10075 (guess_partial_die_structure_name): Likewise.
10076 (partial_die_info::fixup): Likewise.
10078 2019-05-17 Tom Tromey <tromey@adacore.com>
10080 * source.c (find_and_open_source): Remove cast.
10082 2019-05-17 Tom Tromey <tromey@adacore.com>
10084 * annotate.c (annotate_source): Make "filename" const.
10085 * annotate.h (annotate_source): Use const.
10087 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10089 * disasm.c (set_disassembler_options): Send errors to stderr.
10091 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10093 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10094 (cli_interp_base::set_logging): Check debug_redirect.
10095 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10096 * cli/cli-logging.c (debug_redirect): Add static variable.
10097 (pop_output_files): Add default param.
10098 (handle_redirections): Print debug setting.
10099 (show_logging_command): Likewise.
10100 (_initialize_cli_logging): Add debugredirect command.
10101 * interps.c (current_interp_set_logging): Add debug_redirect
10103 * interps.h (set_logging): Add debug_redirect parameter.
10104 (current_interp_set_logging): Likewise.
10105 * mi/mi-common.h: Likewise.
10106 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10108 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10109 Tom Tromey <tromey@adacore.com>
10111 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10113 * cli/cli-interp.h (make_logging_output): Remove declaration.
10114 * cli/cli-logging.c (make_logging_output): Remove function.
10115 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10117 * ui-file.c (tee_file::tee_file): Remove bools.
10118 (tee_file::~tee_file): Remove deletes.
10119 * ui-file.h (tee_file): Remove bools.
10121 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10123 * mi/mi-cmds.h (mi_cmd_complete): New function.
10124 * mi/mi-main.c (mi_cmd_complete): Likewise.
10125 * mi/mi-cmds.c: Define new MI command -complete.
10126 * NEWS: Mention new -complete command.
10128 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10130 * completer.h (complete): New function.
10131 * completer.c (complete): Likewise.
10132 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10133 function defined in completer.h.
10135 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10137 * MAINTAINERS (Write After Approval): Add myself.
10139 2019-05-17 Tom de Vries <tdevries@suse.de>
10142 * dwarf2read.c (struct cu_partial_die_info): New struct.
10143 (find_partial_die): Return cu_partial_die_info.
10144 (partial_die_parent_scope, guess_partial_die_structure_name)
10145 (partial_die_info::fixup): Handle new return type of find_partial_die.
10147 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10149 PR breakpoints/24541
10150 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10151 "std::string", simplifying the algorithm.
10153 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10155 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10156 (stap_static_probe_ops::get_probes): Likewise.
10158 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10160 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10161 '-')" and "else if".
10162 (stap_parse_single_operand): Join checks for
10163 "gdbarch_stap_parse_special_token_p" and
10164 "gdbarch_stap_parse_special_token" in the same "if" statement.
10165 Invert check when verifying for operation on register
10168 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10170 * stap-probe.c (stap_get_opcode): Update comment.
10171 (stap_get_expected_argument_type): Likewise.
10172 (handle_stap_probe): Likewise.
10174 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10176 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10177 return type to 'bool'. Adjust comment. Use 'bool' when
10179 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10180 * stap-probe.c (stap_parse_argument_1): Likewise.
10181 (stap_is_operator): Likewise.
10182 (stap_is_generic_prefix): Likewise.
10183 (stap_is_register_prefix): Likewise.
10184 (stap_is_register_indirection_prefix): Likewise.
10185 (stap_is_integer_prefix): Likewise.
10186 (stap_generic_check_suffix): Likewise.
10187 (stap_check_integer_suffix): Likewise.
10188 (stap_check_register_suffix): Likewise.
10189 (stap_check_register_indirection_suffix): Likewise.
10190 (stap_parse_register_operand): Likewise.
10191 (stap_parse_single_operand): Likewise.
10192 (stap_parse_argument_1): Likewise.
10193 (stap_probe::get_argument_count): Likewise.
10194 (stap_is_operator): Likewise.
10196 2019-05-16 Tom Tromey <tromey@adacore.com>
10198 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10199 keyword to foreach.
10201 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10203 * linux-thread-db.c (try_thread_db_load_1): Change return type
10205 (try_thread_db_load): Likewise.
10206 (try_thread_db_load_from_pdir_1): Likewise.
10207 (try_thread_db_load_from_pdir): Likewise.
10208 (try_thread_db_load_from_sdir): Likewise.
10209 (try_thread_db_load_from_dir): Likewise.
10210 (thread_db_load_search): Likewise.
10211 (has_libpthread): Likewise.
10212 (thread_db_load): Likewise.
10214 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10216 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10217 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10218 NULL, and complain/return if that's the case.
10220 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10222 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10223 (advance, posn, abstract_read_memory): New functions.
10224 [struct mem_read_abstraction]: New struct.
10225 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10227 2019-05-14 Tom Tromey <tromey@adacore.com>
10229 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10230 value is not lval_memory.
10232 2019-05-14 Tom Tromey <tromey@adacore.com>
10234 * solib.c (info_sharedlibrary_command): Style the file name.
10236 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10238 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10239 (aarch64_vnv_type): Likewise.
10240 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10241 * common/tdesc.c: Likewise.
10242 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10243 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10244 * features/aarch64-fpu.xml: Add ieee half view.
10245 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10246 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10247 * gdbtypes.h (struct builtin_type): Likewise.
10248 (struct objfile_type): Likewise.
10250 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10252 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10254 * location.h (string_to_event_location): Likewise.
10256 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10260 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10262 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10263 New variable declaration.
10264 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10266 (print_one_breakpoint): Use ui_out::test_flags and new global
10267 variable to compute use_fixed_output.
10268 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10270 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10271 (mi_multi_location_breakpoint_output_fixed): Remove.
10272 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10274 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10275 fix_multi_location_breakpoint_output flag if version >= 3.
10276 * ui-out.h (enum ui_out_flag)
10277 <fix_multi_location_breakpoint_output>: New enumerator.
10279 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10281 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10283 2019-05-10 Tom Tromey <tromey@adacore.com>
10285 * ada-lang.c (catch_ada_completer): New function.
10286 (_initialize_ada_language): Use it.
10288 2019-05-10 Tom Tromey <tromey@adacore.com>
10290 * thread.c (print_thread_info): Make "requested_threads" const.
10291 * gdbthread.h (print_thread_info): Make "requested_threads"
10293 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10294 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10296 2019-05-08 Tom Tromey <tom@tromey.com>
10298 * gdbtypes.c (objfile_type_data): Change type.
10299 (objfile_type, _initialize_gdbtypes): Update.
10301 2019-05-08 Tom Tromey <tom@tromey.com>
10303 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10304 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10305 (_initialize_dwarf2_frame): Update.
10307 2019-05-08 Tom Tromey <tom@tromey.com>
10309 * objc-lang.c (objc_objfile_data): Change type.
10310 (find_methods): Update.
10311 (_initialize_objc_lang): Remove.
10313 2019-05-08 Tom Tromey <tom@tromey.com>
10315 * stabsread.c (rs6000_builtin_type_data): Change type.
10316 (rs6000_builtin_type, _initialize_stabsread): Update.
10318 2019-05-08 Tom Tromey <tom@tromey.com>
10320 * mips-tdep.c (mips_pdr_data): Remove.
10321 (_initialize_mips_tdep): Update.
10323 2019-05-08 Tom Tromey <tom@tromey.com>
10325 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10326 (hppa_init_objfile_priv_data, read_unwind_info)
10327 (find_unwind_entry, _initialize_hppa_tdep): Update.
10329 2019-05-08 Tom Tromey <tom@tromey.com>
10331 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10332 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10334 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10336 2019-05-08 Tom Tromey <tom@tromey.com>
10338 * mdebugread.c (basic_type_data): Change type.
10339 (basic_type, _initialize_mdebugread): Update.
10341 2019-05-08 Tom Tromey <tom@tromey.com>
10343 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10345 2019-05-08 Tom Tromey <tom@tromey.com>
10347 * nto-tdep.c (nto_inferior_data_reg): Change type.
10348 (nto_inferior_data): Update.
10349 (nto_inferior_data_cleanup, nto_new_inferior_data)
10350 (_initialize_nto_tdep): Remove.
10351 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10353 2019-05-08 Tom Tromey <tom@tromey.com>
10355 * ada-lang.c (struct ada_inferior_data): Add initializers.
10356 (ada_inferior_data): Change type.
10357 (ada_inferior_data_cleanup): Remove.
10358 (get_ada_inferior_data, ada_inferior_exit)
10359 (struct ada_pspace_data): Add initializers, destructor.
10360 (ada_pspace_data_handle): Change type.
10361 (get_ada_pspace_data): Update.
10362 (ada_pspace_data_cleanup): Remove.
10364 2019-05-08 Tom Tromey <tom@tromey.com>
10366 * coffread.c (struct coff_symfile_info): Add initializers.
10367 (coff_objfile_data_key): Move lower. Change type.
10368 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10370 (coff_free_info): Remove.
10372 2019-05-08 Tom Tromey <tom@tromey.com>
10374 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10375 (fbsd_pspace_data_handle): Move lower. Change type.
10376 (get_fbsd_pspace_data): Update.
10377 (fbsd_pspace_data_cleanup): Remove.
10378 (_initialize_fbsd_tdep): Update.
10380 2019-05-08 Tom Tromey <tom@tromey.com>
10382 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10383 (get_ada_tasks_pspace_data): Update.
10384 (ada_tasks_pspace_data_cleanup): Remove.
10385 (_initialize_tasks): Update.
10386 (ada_tasks_inferior_data_handle): Change type.
10387 (get_ada_tasks_inferior_data): Update.
10388 (ada_tasks_inferior_data_cleanup): Remove.
10389 (struct ada_tasks_pspace_data): Add initializers.
10391 2019-05-08 Tom Tromey <tom@tromey.com>
10393 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10394 * symfile-debug.c (debug_sym_get_probes): Change type.
10395 * stap-probe.c (handle_stap_probe):
10396 (stap_static_probe_ops::get_probes): Change type.
10397 * probe.h (class static_probe_ops) <get_probes>: Change type.
10398 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10399 (parse_probes_in_pspace): Update.
10400 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10402 (any_static_probe_ops::get_probes): Change type.
10403 * elfread.c (elfread_data): New typedef.
10404 (probe_key): Change type.
10405 (elf_get_probes): Likewise. Update.
10406 (probe_key_free): Remove.
10407 (_initialize_elfread): Update.
10408 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10410 (dtrace_process_dof_probe, dtrace_process_dof)
10411 (dtrace_static_probe_ops::get_probe): Change type.
10413 2019-05-08 Tom Tromey <tom@tromey.com>
10415 * xcoffread.c (struct xcoff_symfile_info): Rename from
10416 coff_symfile_info. Add initializers.
10417 (xcoff_objfile_data_key): Move lower. Change type.
10418 (XCOFF_DATA): Rewrite.
10419 (xcoff_free_info): Remove.
10420 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10421 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10422 (xcoff_initial_scan): Update.
10424 2019-05-08 Tom Tromey <tom@tromey.com>
10426 * solib-svr4.c (struct svr4_info): Add initializers and
10428 <probes_table>: Now an htab_up.
10429 (solib_svr4_pspace_data): Change type.
10430 (free_probes_table): Simplify.
10431 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10432 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10433 (probes_table_remove_objfile_probes, register_solib_event_probe)
10434 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10435 (_initialize_svr4_solib): Update.
10437 2019-05-08 Tom Tromey <tom@tromey.com>
10439 * remote.c (remote_pspace_data): Change type.
10440 (remote_pspace_data_cleanup): Remove.
10441 (get_remote_exec_file, set_pspace_remote_exec_file)
10442 (_initialize_remote): Update.
10444 2019-05-08 Tom Tromey <tom@tromey.com>
10446 * breakpoint.c (breakpoint_objfile_key): Change type.
10447 (get_breakpoint_objfile_data): Update.
10448 (free_breakpoint_objfile_data): Remove.
10449 (_initialize_breakpoint): Update.
10451 2019-05-08 Tom Tromey <tom@tromey.com>
10453 * linux-tdep.c (struct linux_info): Add initializers.
10454 (linux_inferior_data): Move. Change type.
10455 (invalidate_linux_cache_inf): Update.
10456 (linux_inferior_data_cleanup): Remove.
10457 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10459 2019-05-08 Tom Tromey <tom@tromey.com>
10461 * auxv.c (auxv_inferior_data): Move. Change type.
10462 (auxv_inferior_data_cleanup): Remove.
10463 (invalidate_auxv_cache_inf): Rewrite.
10464 (get_auxv_inferior_data, _initialize_auxv): Update.
10466 2019-05-08 Tom Tromey <tom@tromey.com>
10468 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10469 (symfile_debug_objfile_data_key): Change type.
10470 (symfile_debug_installed, debug_qf_has_symbols)
10471 (debug_qf_find_last_source_symtab)
10472 (debug_qf_forget_cached_source_info)
10473 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10474 (debug_qf_print_stats, debug_qf_dump)
10475 (debug_qf_expand_symtabs_for_function)
10476 (debug_qf_expand_all_symtabs)
10477 (debug_qf_expand_symtabs_with_fullname)
10478 (debug_qf_map_matching_symbols)
10479 (debug_qf_expand_symtabs_matching)
10480 (debug_qf_find_pc_sect_compunit_symtab)
10481 (debug_qf_map_symbol_filenames)
10482 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10483 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10484 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10485 (debug_sym_read_linetable, debug_sym_relocate): Update.
10486 (symfile_debug_free_objfile): Remove.
10487 (install_symfile_debug_logging, _initialize_symfile_debug):
10490 2019-05-08 Tom Tromey <tom@tromey.com>
10492 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10493 allocate_on_obstack.
10494 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10495 (get_dwarf2_per_objfile): Update.
10496 (set_dwarf2_per_objfile): Remove.
10497 (dwarf2_has_info, dwarf2_get_section_info): Update.
10498 (dwarf2_free_objfile): Remove.
10499 (_initialize_dwarf2_read): Update.
10501 2019-05-08 Tom Tromey <tom@tromey.com>
10503 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10505 <unsupported_script_warning_printed,
10506 script_not_found_warning_printed>: Now bool.
10507 (auto_load_pspace_data): Change type.
10508 (~auto_load_pspace_info): Rename from
10509 auto_load_pspace_data_cleanup.
10510 (get_auto_load_pspace_data, init_loaded_scripts_info)
10511 (clear_section_scripts, maybe_print_unsupported_script_warning)
10512 (maybe_print_script_not_found_warning, _initialize_auto_load):
10515 2019-05-08 Tom Tromey <tom@tromey.com>
10517 * objfiles.c (objfile_pspace_info): Add destructor and
10519 (objfiles_pspace_data): Change type.
10520 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10521 (get_objfile_pspace_data): Update.
10522 (objfiles_bfd_data): Change type.
10523 (get_objfile_bfd_data): Update.
10524 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10526 2019-05-08 Tom Tromey <tom@tromey.com>
10528 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10530 (get_catch_syscall_inferior_data): Update.
10531 (catch_syscall_inferior_data_cleanup): Remove.
10532 (_initialize_break_catch_syscall): Update.
10534 2019-05-08 Tom Tromey <tom@tromey.com>
10536 * inflow.c (struct terminal_info): Add destructor and
10538 (inflow_inferior_data): Change type.
10539 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10540 (get_inflow_inferior_data, inflow_inferior_exit)
10541 (swap_terminal_info, _initialize_inflow): Update.
10543 2019-05-08 Tom Tromey <tom@tromey.com>
10545 * target-dcache.c (target_dcache_cleanup): Remove.
10546 (target_dcache_aspace_key): Change type.
10547 (target_dcache_init_p, target_dcache_invalidate)
10548 (target_dcache_get, target_dcache_get_or_init)
10549 (_initialize_target_dcache): Update.
10550 * dcache.h (struct dcache_deleter): New.
10552 2019-05-08 Tom Tromey <tom@tromey.com>
10554 * symtab.c (struct symbol_cache): Add destructor and
10556 (symbol_cache_key): Move. Change type.
10557 (make_symbol_cache, free_symbol_cache): Remove.
10558 (get_symbol_cache): Update.
10559 (symbol_cache_cleanup): Remove.
10560 (ALL_PSPACES, symbol_cache_flush)
10561 (maintenance_print_symbol_cache)
10562 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10565 2019-05-08 Tom Tromey <tom@tromey.com>
10567 * symtab.c (struct main_info): Add destructor and initializers.
10568 (main_progspace_key): Move. Change type.
10569 (get_main_info): Update.
10570 (main_info_cleanup): Remove.
10571 (_initialize_symtab): Update.
10573 2019-05-08 Tom Tromey <tom@tromey.com>
10575 * registry.h (DECLARE_REGISTRY): Define the _key class.
10577 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10579 * NEWS: Merge two 'New commands' sections.
10581 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10583 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10584 parameter and use Ada language definition instead.
10585 (ada_val_print_ptr): Remove unused language parameter.
10586 (ada_val_print_num): Remove language parameter and use Ada language
10587 definition instead.
10588 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10590 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10591 parameter and use Ada language definition instead.
10592 (ada_val_print_1): Update all ada_val_print_xxx calls.
10593 Remove language parameter.
10594 (ada_val_print): Update ada_val_print_1 call.
10596 2019-05-08 Tom Tromey <tromey@adacore.com>
10598 * remote.c (remote_hw_watchpoint_limit)
10599 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10602 2019-05-08 Tom Tromey <tromey@adacore.com>
10604 * maint.c (_initialize_maint_cmds): Move initialization code to
10606 (watchdog, show_watchdog): Move to remote.c.
10607 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10609 (_initialize_remote): Move initialization code from maint.c.
10610 * defs.h (watchdog): Don't declare.
10612 2019-05-08 Tom Tromey <tromey@adacore.com>
10614 * tui/tui-interp.c: Include main.h.
10615 * interps.c: Include main.h.
10616 * main.h (interpreter_p): Declare.
10617 * defs.h (interpreter_p): Don't declare.
10619 2019-05-08 Tom Tromey <tromey@adacore.com>
10621 * dwarf2loc.c: Include dwarf2read.h.
10622 * defs.h (read_unsigned_leb128): Don't declare.
10623 * dwarf2read.h (read_unsigned_leb128): Declare.
10625 2019-05-08 Tom Tromey <tromey@adacore.com>
10627 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10630 2019-05-08 Tom Tromey <tromey@adacore.com>
10632 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10633 when no wrap column is set.
10635 2019-05-08 Tom Tromey <tromey@adacore.com>
10637 * c-lang.c (c_get_string): Handle non-C-style arrays.
10639 2019-05-08 Tom Tromey <tromey@adacore.com>
10641 * typeprint.c (print_offset_data::update): Print the bit offset,
10642 not the number of bits remaining.
10644 2019-05-08 Tom Tromey <tromey@adacore.com>
10646 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10647 padding at end of comment.
10649 2019-05-08 Tom Tromey <tromey@adacore.com>
10651 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10652 Compare main types.
10654 2019-05-06 Tom Tromey <tom@tromey.com>
10656 * common/scoped_mmap.c: Include common-defs.h.
10657 * common/scoped_mmap.h: Don't include config.h.
10659 2019-05-04 Tom Tromey <tom@tromey.com>
10661 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10662 (struct aarch64_call_info): Add initializers.
10663 <si>: Now a std::vector.
10664 (pass_on_stack, aarch64_push_dummy_call): Update.
10666 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10667 Tom Tromey <tom@tromey.com>
10669 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10670 (ppc_threads): Now a std::vector. Now static.
10671 (hwdebug_find_thread_points_by_tid)
10672 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10675 2019-05-04 Tom Tromey <tom@tromey.com>
10677 * arc-tdep.c (arc_tdesc_init): Return bool.
10679 2019-05-04 Tom Tromey <tom@tromey.com>
10681 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10682 Use gdb_assert_not_reached.
10684 2019-05-04 Tom Tromey <tom@tromey.com>
10686 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10689 2019-05-04 Tom Tromey <tom@tromey.com>
10691 * arc-tdep.c (arc_tdesc_init): Use bool.
10693 2019-05-04 Tom Tromey <tom@tromey.com>
10695 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10697 2019-05-04 Tom Tromey <tom@tromey.com>
10699 * cli/cli-cmds.c (valid_command_p): Return bool.
10701 2019-05-04 Tom Tromey <tom@tromey.com>
10703 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10704 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10706 2019-05-04 Raul Tambre <raul@tambre.ee>
10708 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10709 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10710 operator for comparison.
10712 2019-05-04 Tom Tromey <tom@tromey.com>
10714 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10715 (lookup_partial_symbol, print_partial_symbols)
10716 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10717 (psymbol_compare): Update.
10718 (add_psymbol_to_bcache): Clear the entire psymbol.
10719 (maintenance_check_psymtabs): Update.
10720 * psympriv.h (struct partial_symbol): Don't derive from
10721 general_symbol_info.
10722 <obj_section, unrelocated_address, address,
10723 set_unrelocated_address>: Update.
10724 <ginfo>: New member.
10725 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10726 (debug_names::write_psymbols): Update.
10728 2019-05-04 Tom de Vries <tdevries@suse.de>
10730 * contrib/cc-with-tweaks.sh: Support -n arg.
10732 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10734 * corelow.c (core_target::detach): Ensure frame cache and
10735 register caches are cleared.
10736 inferior.c (exit_inferior_1): Likewise.
10738 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10739 Tom Tromey <tom@tromey.com>
10741 * dictionary.c (collate_pending_symbols_by_language): Remove
10742 "struct" from foreach.
10743 * symtab.c (lookup_global_symbol_from_objfile)
10744 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10746 * ser-tcp.c (net_open): Remove "struct" from foreach.
10747 * objfiles.c (objfile_relocate, objfile_rebase)
10748 (objfile_has_symbols): Remove "struct" from foreach.
10749 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10751 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10753 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10754 "struct" from foreach.
10755 * ada-lang.c (create_excep_cond_exprs)
10756 (ada_exception_catchpoint_cond_string): Remove "struct" from
10759 2019-05-03 Tom Tromey <tromey@adacore.com>
10761 * ada-exp.y (convert_char_literal): Check suffix of each
10764 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10767 * ada-exp.y (yywrap): Don't define.
10768 * ada-lex.l (%option): Add noyywrap
10771 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10773 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10774 _WIN32_WINNT to the XP level, unless already defined to a higher
10777 * unittests/parse-connection-spec-selftests.c:
10779 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10782 * symfile.c (find_separate_debug_file): Remove colon from the
10783 drive spec of DOS/Windows file names of the target, so that the
10784 file name produced from DEBUGDIR and the target's directory will
10785 be valid on DOS/Windows systems.
10787 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10789 * rust-lang.c (val_print_struct): Handle printing structures
10790 containing strings.
10792 2019-05-02 Tom Tromey <tromey@adacore.com>
10794 * valarith.c (_initialize_valarith): Remove.
10796 2019-05-01 Tom Tromey <tromey@adacore.com>
10798 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10801 2019-05-01 Tom Tromey <tromey@adacore.com>
10803 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10804 for big-endian copies.
10806 2019-04-30 Ali Tamur <tamur@google.com>
10807 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10808 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10809 (read_3_bytes): New function.
10811 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10813 * windows-nat.c (main_thread_id): Delete.
10814 (handle_output_debug_string): Replace main_thread_id by
10815 current_event.dwThreadId.
10816 (fake_create_process): Likewise.
10817 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10818 Do not set main_thread_id.
10819 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10820 current_event.dwThreadId.
10821 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10823 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10825 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10826 Use current_event.dwThreadId instead of main_thread_id.
10828 2019-04-30 Tom Tromey <tromey@adacore.com>
10830 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10831 (create_excep_cond_exprs): Iterate over program spaces.
10832 (ada_exception_catchpoint_cond_string): Examine all minimal
10833 symbols for exception types.
10835 2019-04-30 Tom Tromey <tromey@adacore.com>
10838 * dwarf2read.c (process_structure_scope): Handle case where type
10839 has template parameters but no symbol was created.
10841 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10842 Chris January <chris.january@arm.com>
10844 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10846 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10848 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10850 * f-typeprint.c (f_print_type): Update rules for printing
10852 (f_type_print_varspec_suffix): Likewise.
10854 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10855 Chris January <chris.january@arm.com>
10857 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10858 function arguments.
10860 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10862 * f-lang.c (build_fortran_types): Change name of void type to
10864 * f-typeprint.c (f_type_print_base): Print the name of the void
10865 type, rather than a fixed string.
10866 * f-valprint.c (f_decorations): Use lower case void string.
10868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10869 Chris January <chris.january@arm.com>
10871 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10874 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10875 Chris January <chris.january@arm.com>
10876 David Lecomber <david.lecomber@arm.com>
10878 * f-exp.y (BINOP_INTRINSIC): New token.
10879 (exp): New parser rule handling BINOP_INTRINSIC.
10880 (f77_keywords): Add new builtin procedures.
10881 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10882 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10883 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10884 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10885 (print_unop_subexp_f): New function.
10886 (print_binop_subexp_f): New function.
10887 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10888 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10889 (dump_subexp_body_f): Likewise.
10890 (operator_check_f): Likewise.
10891 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10892 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10894 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10896 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10898 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10899 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10900 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10901 (operator_length_f): New fuction.
10902 (print_subexp_f): New function.
10903 (op_name_f): New function.
10904 (dump_subexp_body_f): New function.
10905 (operator_check_f): New function.
10906 (exp_descriptor_f): Replace standard expression handling functions
10907 with new functions.
10908 * gdb/fortran-operator.def: New file.
10909 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10910 * gdb/std-operator.def: Remove UNOP_KIND.
10912 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10914 * std-operator.def: Remove unbalanced, stray double quote
10917 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10918 Chris January <chris.january@arm.com>
10919 Daniel Everett <daniel.everett@arm.com>
10920 Nick Forrington <nick.forrington@arm.com>
10921 Richard Bunt <richard.bunt@arm.com>
10923 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10924 of depth when printing anonymous structs or unions.
10925 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10926 Don't print either the top-level value, or the children if the
10927 max-depth is exceeded.
10928 (ppscm_print_children): When printing the key of a map, allow one
10929 extra level of depth.
10930 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10931 print either the top-level value, or the children if the max-depth
10933 (print_children): When printing the key of a map, allow one extra
10935 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10936 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10937 (user_print_options): Initialise max_depth field.
10938 (val_print_scalar_or_string_type_p): New function.
10939 (val_print): Check to see if the max depth has been reached.
10940 (val_print_check_max_depth): Define new function.
10941 (show_print_max_depth): New function.
10942 (_initialize_valprint): Add 'print max-depth' option.
10943 * valprint.h (struct value_print_options) <max_depth>: New field.
10944 (val_print_check_max_depth): Declare new function.
10945 * NEWS: Document new feature.
10947 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10949 * ada-lang.c (ada_language_defn): Initialise new field.
10950 * c-lang.c (c_is_string_type_p): New function.
10951 (c_language_defn): Initialise new field.
10952 (cplus_language_defn): Initialise new field.
10953 (asm_language_defn): Initialise new field.
10954 (minimal_language_defn): Initialise new field.
10955 * c-lang.h (c_is_string_type_p): Declare new function.
10956 * d-lang.c (d_language_defn): Initialise new field.
10957 * f-lang.c (f_is_string_type_p): New function.
10958 (f_language_defn): Initialise new field.
10959 * go-lang.c (go_is_string_type_p): New function.
10960 (go_language_defn): Initialise new field.
10961 * language.c (default_is_string_type_p): New function.
10962 (unknown_language_defn): Initialise new field.
10963 (auto_language_defn): Initialise new field.
10964 * language.h (struct language_defn) <la_is_string_type_p>: New
10966 (default_is_string_type_p): Declare new function.
10967 * m2-lang.c (m2_language_defn): Initialise new field.
10968 * objc-lang.c (objc_language_defn): Initialise new field.
10969 * opencl-lang.c (opencl_language_defn): Initialise new field.
10970 * p-lang.c (pascal_is_string_type_p): New function.
10971 (pascal_language_defn): Initialise new field.
10972 * rust-lang.c (rust_is_string_type_p): New function.
10973 (rust_language_defn): Initialise new field.
10975 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10977 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10979 * ada-lang.c (ada_language_defn): Initialise new field.
10980 * c-lang.c (c_language_defn): Likewise.
10981 (cplus_language_defn): Likewise.
10982 (asm_language_defn): Likewise.
10983 (minimal_language_defn): Likewise.
10984 * d-lang.c (d_language_defn): Likewise.
10985 * f-lang.c (f_language_defn): Likewise.
10986 * go-lang.c (go_language_defn): Likewise.
10987 * language.c (unknown_language_defn): Likewise.
10988 (auto_language_defn): Likewise.
10989 * m2-lang.c (m2_language_defn): Likewise.
10990 * objc-lang.c (objc_language_defn): Likewise.
10991 * opencl-lang.c (opencl_language_defn): Likewise.
10992 * p-lang.c (pascal_language_defn): Likewise.
10993 * rust-lang.c (rust_language_defn): Likewise.
10995 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10997 * ada-lang.c (ada_is_character_type): Change return type to bool.
10998 (ada_is_string_type): Likewise.
10999 * ada-lang.h (ada_is_character_type): Update declaration
11000 (ada_is_string_type): Likewise.
11002 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004 Support style in 'frame|thread apply'
11006 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11007 * record.c (record_start, record_stop): Update callers of
11008 execute_command_to_string with false.
11009 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11010 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11012 (class string_file): New constructor with term_out parameter.
11013 Override methods term_out and can_emit_style_escape. New member
11015 (class stdio_file): Override can_emit_style_escape.
11016 (class tee_file): Override term_out and can_emit_style_escape.
11017 * utils.h (can_emit_style_escape): Remove.
11018 * utils.c (can_emit_style_escape): Likewise.
11019 Update all callers of can_emit_style_escape (SOMESTREAM) to
11020 SOMESTREAM->can_emit_style_escape.
11021 * source-cache.c (source_cache::get_source_lines): Likewise.
11022 * stack.c (frame_apply_command_count): Call execute_command_to_string
11023 passing the term_out characteristic of the current gdb_stdout.
11024 * thread.c (thr_try_catch_cmd): Likewise.
11025 * top.c (execute_command_to_string): pass term_out parameter
11026 to construct the string_file for the command output.
11027 * ui-file.c (term_cli_styling): New function (most code moved
11028 from utils.c can_emit_style_escape).
11029 (string_file::string_file, string_file::can_emit_style_escape,
11030 stdio_file::can_emit_style_escape, tee_file::term_out,
11031 tee_file::can_emit_style_escape): New functions.
11033 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11035 * NEWS: Mention the new set|show may-call-functions.
11036 * infcall.c (may_call_functions_p): New variable.
11037 (show_may_call_functions_p): New function.
11038 (call_function_by_hand_dummy): Throws an error if not
11039 may-call-functions.
11040 (_initialize_infcall): Call add_setshow_boolean_cmd for
11041 may-call-functions.
11043 2019-04-25 Keith Seitz <keiths@redhat.com>
11046 * cp-support.c (inspect_type): Don't attempt substitutions
11047 of symbol with the same name.
11049 2019-04-25 Tom Tromey <tromey@adacore.com>
11052 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11055 2019-04-25 Tom Tromey <tromey@adacore.com>
11057 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11059 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11060 (gdb_xml_parser::parse): Use std::move.
11061 * python/python-internal.h (gdbpy_convert_exception): Take a const
11063 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11065 * python/py-utils.c (gdbpy_convert_exception): Take a const
11067 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11069 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11071 * mi/mi-main.c (mi_print_exception): Take a const reference.
11072 * main.c (handle_command_errors): Take a const reference.
11073 * linespec.c (parse_linespec): Use std::move.
11074 * infcall.c (run_inferior_call): Use std::move.
11075 (call_function_by_hand_dummy): Use std::move.
11076 * exec.c (try_open_exec_file): Use std::move.
11077 * exceptions.h (exception_print, exception_fprintf)
11078 (exception_print_same): Update.
11079 * exceptions.c (print_exception, exception_print)
11080 (exception_fprintf, exception_print_same): Change parameters to
11082 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11083 * common/new-op.c: Use std::move.
11084 * common/common-exceptions.h (struct gdb_exception): Add move
11086 (struct gdb_exception_error, struct gdb_exception_quit, struct
11087 gdb_quit_bad_alloc): Change constructor to move constructor.
11088 (throw_exception): Change parameter to rvalue reference.
11089 * common/common-exceptions.c (throw_exception): Take rvalue
11091 * cli/cli-interp.c (safe_execute_command): Use std::move.
11092 * breakpoint.c (insert_bp_location, location_to_sals): Use
11095 2019-04-25 Tom Tromey <tromey@adacore.com>
11097 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11098 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11099 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11100 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11101 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11102 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11103 guile/scm-value.c: Use unpack.
11104 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11105 gdbscm_gdb_exception.
11106 (gdbscm_throw_gdb_exception): Likewise.
11107 (struct gdbscm_gdb_exception): New.
11108 (unpack): New function.
11109 (gdbscm_wrap): Use unpack.
11111 2019-04-25 Tom Tromey <tromey@adacore.com>
11113 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11114 (gdb_rl_callback_handler): Use std::move.
11115 * common/common-exceptions.h (struct gdb_exception): Add move
11116 assignment operator.
11117 (throw_exception_sjlj): Change "exception" to const reference.
11118 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11119 (throw_exception_sjlj): Change "exception" to const reference.
11121 2019-04-25 Tom Tromey <tromey@adacore.com>
11123 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11124 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11125 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11127 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11129 * mi/mi-interp.c (mi_interp::exec): Update.
11130 * linespec.c (parse_linespec): Update.
11131 * infcall.c (run_inferior_call): Update.
11132 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11133 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11134 (gdbscm_lookup_global_symbol): Update.
11135 * guile/scm-param.c (gdbscm_parameter_value): Update.
11136 * guile/scm-frame.c (gdbscm_frame_read_register)
11137 (gdbscm_frame_read_var): Update.
11138 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11139 * exec.c (try_open_exec_file): Update.
11140 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11141 (gdb_rl_callback_handler): Update.
11142 * common/common-exceptions.h (exception_none): Don't declare.
11143 * common/common-exceptions.c (exception_none): Don't define.
11144 (struct catcher) <exception>: Update.
11145 * cli/cli-interp.c (safe_execute_command): Update.
11146 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11148 2019-04-25 Ali Tamur <tamur@google.com>
11150 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11151 (read_attribute_value): Likewise.
11152 (dwarf2_read_addr_index): Update comment.
11153 (read_str_index): Add DW_FORM_strx.
11154 (dwarf2_string_attr): Likewise.
11155 (dwarf2_const_value_attr): Likewise.
11156 (dump_die_shallow): Likewise.
11157 (dwarf2_fetch_constant_bytes): Likewise.
11158 (skip_form_bytes): Likewise.
11159 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11161 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11165 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11166 OFFSET. Verify if current mapping contains an ELF header.
11167 (linux_find_memory_regions_full): Adjust call to
11170 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11171 Kang Li <kanglictf@gmail.com>
11175 * dwarf2-frame.c (read_initial_length): Be consistent about using
11176 unsigned representation of length.
11177 (decode_frame_entry_1): Likewise. Check for wraparound of
11178 end pointer as well as buffer overflow.
11180 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11182 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11185 2019-04-24 Tom Tromey <tromey@adacore.com>
11187 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11189 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11191 * s12z-tdep.c (s12z_unwind_pc): Delete.
11192 (s12z_unwind_sp): Delete.
11193 (s12z_gdbarch_init): Don't register deleted functions with
11196 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11198 * rl78-tdep.c (rl78_unwind_sp): Delete.
11199 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11201 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11203 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11204 (xstormy16_unwind_pc): Delete.
11205 (xstormy16_dummy_id): Delete.
11206 (xstormy16_gdbarch_init): Don't register deleted functions with
11209 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11211 * vax-tdep.c (vax_unwind_pc): Delete.
11212 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11216 * v850-tdep.c (v850_unwind_sp): Delete.
11217 (v850_unwind_pc): Delete.
11218 (v850_dummy_id): Delete.
11219 (v850_gdbarch_init): Don't register deleted functions with
11222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11224 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11225 (tilegx_unwind_pc): Delete.
11226 (tilegx_unwind_dummy_id): Delete.
11227 (tilegx_gdbarch_init): Don't register deleted functions with
11230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11232 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11233 (tic6x_dummy_id): Delete.
11234 (tic6x_gdbarch_init): Don't register deleted functions with
11237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11239 * sparc-tdep.c (sparc_unwind_pc): Delete.
11240 (sparc32_gdbarch_init): Don't register deleted function with
11243 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11245 * sh-tdep.c (sh_unwind_sp): Delete.
11246 (sh_unwind_pc): Delete.
11247 (sh_dummy_id): Delete.
11248 (sh_gdbarch_init): Don't register deleted functions with
11251 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11253 * score-tdep.c (score_unwind_sp): Delete.
11254 (score_unwind_pc): Delete.
11255 (score_dummy_id): Delete.
11256 (score_gdbarch_init): Don't register deleted functions with
11259 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11261 * rx-tdep.c (rx_unwind_pc): Delete.
11262 (rx_unwind_sp): Delete.
11263 (rx_dummy_id): Delete.
11264 (rx_gdbarch_init): Don't register deleted functions with
11265 gdbarch. Update comment.
11267 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11269 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11270 (rs6000_dummy_id): Delete.
11271 (rs6000_gdbarch_init): Don't register deleted functions with
11274 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11276 * or1k-tdep.c (or1k_dummy_id): Delete.
11277 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11281 * nios2-tdep.c (nios2_dummy_id): Delete.
11282 (nios2_unwind_sp): Delete.
11283 (nios2_gdbarch_init): Don't register deleted functions with
11286 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11288 * nds32-tdep.c (nds32_dummy_id): Delete.
11289 (nds32_unwind_pc): Delete.
11290 (nds32_unwind_sp): Delete.
11291 (nds32_gdbarch_init): Don't register deleted functions with
11294 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11296 * msp430-tdep.c (msp430_unwind_pc): Delete.
11297 (msp430_unwind_sp): Delete.
11298 (msp430_dummy_id): Delete.
11299 (msp430_gdbarch_init): Don't register deleted functions with
11302 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11304 * moxie-tdep.c (moxie_unwind_sp): Delete.
11305 (moxie_unwind_pc): Delete.
11306 (moxie_dummy_id): Delete.
11307 (moxie_gdbarch_init): Don't register deleted functions with
11310 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11312 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11313 (mn10300_unwind_pc): Delete.
11314 (mn10300_unwind_sp): Delete.
11315 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11317 (mn10300_frame_unwind_init): Don't register deleted functions with
11320 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11322 * mep-tdep.c (mep_unwind_pc): Delete.
11323 (mep_unwind_sp): Delete.
11324 (mep_dummy_id): Delete.
11325 (mep_gdbarch_init): Don't register deleted functions with
11328 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11330 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11331 (m68hc11_unwind_sp): Delete.
11332 (m68hc11_gdbarch_init): Don't register deleted functions with
11335 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11337 * m32r-tdep.c (m32r_unwind_sp): Delete.
11338 (m32r_unwind_pc): Delete.
11339 (m32r_dummy_id): Delete.
11340 (m32r_gdbarch_init): Don't register deleted functions with
11343 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11345 * m32c-tdep.c (m32c_unwind_pc): Delete.
11346 (m32c_unwind_sp): Delete.
11347 (m32c_dummy_id): Delete.
11348 (m32c_gdbarch_init): Don't register deleted functions with
11351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11353 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11354 (lm32_unwind_pc): Delete.
11355 (lm32_dummy_id): Delete.
11356 (lm32_gdbarch_init): Don't register deleted functions with
11359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11361 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11362 (iq2000_unwind_pc): Delete.
11363 (iq2000_dummy_id): Delete.
11364 (iq2000_gdbarch_init): Don't register deleted functions with
11367 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11369 * nds32-tdep.c (nds32_type_align): Delete.
11370 (nds32_push_dummy_call): Use type_align instead.
11372 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11374 * arm-tdep.c (arm_type_align): Only handle vector override case.
11375 (arm_push_dummy_call): Use type_align.
11376 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11378 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11380 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11382 (pass_on_stack): Use type_align.
11383 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11386 2019-04-23 Tom Tromey <tromey@adacore.com>
11388 * dwarf2read.c (line_header::file_name_at): Remove unused
11391 2019-04-23 Tom de Vries <tdevries@suse.de>
11394 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11398 2019-03-27 Ali Tamur <tamur@google.com>
11400 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11401 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11402 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11403 (dwarf_expr_context::get_addr_index): Likewise
11404 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11405 (symbol_needs_eval_context::get_addr_index): Likewise
11406 (disassemble_dwarf_expression): Add DW_OP_addrx
11407 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11408 (read_cutu_die_from_dwo): Update comment
11409 (skip_one_die): Add DW_FORM_addrx
11410 (read_attribute_value): Likewise
11411 (var_decode_location): Add DW_OP_addrx
11412 (dwarf2_const_value_attr): Add DW_FORM_addrx
11413 (dump_die_shallow): Likewise
11414 (dwarf2_fetch_constant_bytes): Likewise
11415 (decode_locdesc): Add DW_OP_addrx
11416 (skip_form_bytes): Add DW_FORM_addrx
11418 2019-04-22 Ali Tamur <tamur@google.com>
11420 * MAINTAINERS (Write After Approval): Add self.
11422 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11424 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11425 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11426 (open_symbol_file_object): Likewise.
11427 (svr4_default_sos): Add info parameter.
11428 (svr4_read_so_list): Likewise.
11429 (svr4_current_sos_direct): Adjust functions calls to pass down
11431 (svr4_current_sos_1): Add info parameter.
11432 (svr4_current_sos): Call get_svr4_info, pass info down to
11433 svr4_current_sos_1.
11434 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11436 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11438 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11440 (probes_table_remove_objfile_probes): Likewise.
11441 (register_solib_event_probe): Add info parameter.
11442 (solist_update_incremental): Pass info parameter down to
11444 (disable_probes_interface): Add info parameter.
11445 (svr4_handle_solib_event): Pass current_program_space to
11446 get_svr4_info. Adjust disable_probes_interface cleanup.
11447 (svr4_create_probe_breakpoints): Add info parameter, pass it
11448 down to register_solib_event_probe.
11449 (svr4_create_solib_event_breakpoints): Add info parameter,
11450 pass it down to svr4_create_probe_breakpoints.
11451 (enable_break): Pass info down to
11452 svr4_create_solib_event_breakpoints.
11453 (svr4_solib_create_inferior_hook): Pass current_program_space to
11455 (svr4_clear_solib): Likewise.
11457 2019-04-22 Pedro Alves <palves@redhat.com>
11459 * solib-svr4.c (svr4_free_objfile_observer): New.
11460 (probe_and_action::objfile): New field.
11461 (probes_table_htab_remove_objfile_probes)
11462 (probes_table_remove_objfile_probes): New functions.
11463 (register_solib_event_probe): Add 'objfile' parameter. Store it
11464 in the new probe_and_action. Don't store the probe in 'lookup'.
11465 (svr4_create_probe_breakpoints): Pass objfile to
11466 register_solib_event_probe.
11467 (_initialize_svr4_solib): Register a free_objfile observer.
11469 2019-04-19 Tom Tromey <tom@tromey.com>
11471 * common/queue.h: Remove.
11473 2019-04-19 Tom Tromey <tom@tromey.com>
11475 * event-loop.c: Don't include "common/queue.h".
11477 2019-04-19 Tom Tromey <tom@tromey.com>
11479 * remote.c (remote_target): Use delete.
11480 * remote-notif.h: Include <list>, not "common/queue.h".
11481 (notif_client_p): Remove typedef.
11482 (remote_notif_state): Add constructor, destructor, initializer.
11483 <notif_queue>: Now a std::list.
11484 (remote_notif_state_xfree): Don't declare.
11485 * remote-notif.c (remote_notif_process, handle_notification)
11486 (remote_notif_state_allocate): Update.
11487 (~remote_notif_state): Rename from remote_notif_state_xfree.
11489 2019-04-19 Tom Tromey <tom@tromey.com>
11491 * symfile.c (reread_symbols): Update.
11492 * objfiles.c (objfile_register_static_link)
11493 (objfile_lookup_static_link): Update
11494 (~objfile) Don't delete static_links.
11495 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11497 2019-04-19 Tom Tromey <tom@tromey.com>
11499 * type-stack.h (struct type_stack) <insert>: Constify string.
11500 * type-stack.c (type_stack::insert): Constify string.
11501 * gdbtypes.h (lookup_template_type): Update.
11502 (address_space_name_to_int): Update.
11503 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11505 (lookup_template_type): Make name const.
11506 * c-exp.y: Update rules.
11507 (lex_one_token, classify_name, classify_inner_name)
11508 (c_print_token): Update.
11509 * p-exp.y: Update rules.
11511 * f-exp.y: Update rules.
11513 * d-exp.y: Update rules.
11514 (lex_one_token, classify_name, classify_inner_name): Update.
11515 * parse.c (write_dollar_variable, copy_name): Return std::string.
11516 * parser-defs.h (copy_name): Change return type.
11517 * m2-exp.y: Update rules.
11519 * go-exp.y (lex_one_token): Update.
11521 (classify_unsafe_function, classify_packaged_name)
11522 (classify_name, yylex): Update.
11524 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11526 * configure.ac: add --enable-source-highlight switch.
11527 * configure: Regenerate.
11528 * top.c (print_gdb_version): plumb --enable-source-highlight
11529 status to "show configuration".
11531 2019-04-19 Tom Tromey <tromey@adacore.com>
11533 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11535 (empty_record, ada_template_to_fixed_record_type_1)
11536 (template_to_static_fixed_type)
11537 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11538 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11539 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11542 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11545 * source.c (print_source_lines_base): Advance "iter" when a
11546 control character is seen.
11548 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11550 * inferior.h (struct infcall_suspend_state_deleter):
11551 Catch exception in destructor to avoid crash.
11553 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11555 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11556 close to the add_com "shell".
11558 2019-04-18 Tom Tromey <tromey@adacore.com>
11560 * process-stratum-target.h (class process_stratum_target)
11561 <stratum>: Add "final".
11563 2019-04-17 Tom Tromey <tromey@adacore.com>
11565 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11566 against nullptr before use.
11568 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11570 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11572 2019-04-17 Jim Wilson <jimw@sifive.com>
11573 Andrew Burgess <andrew.burgess@embecosm.com>
11575 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11576 code read might fail, assume 4-byte breakpoint in that case.
11578 2019-04-15 Leszek Swirski <leszeks@google.com>
11580 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11581 rather than a hand-rolled POD check when checking for forced MEMORY
11584 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11586 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11587 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11589 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11590 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11591 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11594 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11596 * aarch64-linux-nat.c
11597 (aarch64_linux_nat_target::thread_architecture): Add override.
11598 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11601 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11603 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11605 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11607 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11608 target types of size 96-bits, add some additional comments, and
11609 check that the builtin type we found was the correct size.
11611 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11613 * utils.c (prompt_for_continue): Don't restore the styling at the
11614 end, as applied_style has the wrong value. This fixes styling in
11615 long lists of file names that are interrupted by the "Continue?"
11618 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11620 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11621 * c-lang.c (c_language_defn): Likewise.
11622 (cplus_language_defn): Likewise.
11623 (asm_language_defn): Likewise.
11624 (minimal_language_defn): Likewise.
11625 * d-lang.c (d_language_defn): Likewise.
11626 * f-lang.c (f_language_defn): Likewise.
11627 * go-lang.c (go_language_defn): Likewise.
11628 * language.c (unknown_language_defn): Likewise.
11629 (auto_language_defn): Likewise.
11630 * language.h (struct language_defn): Remove la_magic field.
11631 (LANG_MAGIC): Delete.
11632 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11633 * objc-lang.c (objc_language_defn): Likewise.
11634 * opencl-lang.c (opencl_language_defn): Likewise.
11635 * p-lang.c (pascal_language_defn): Likewise.
11636 * rust-lang.c (rust_language_defn): Likewise.
11638 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11640 * riscv-tdep.c (riscv_type_align): New function.
11641 (riscv_type_alignment): Delete.
11642 (riscv_arg_location): Use 'type_align'.
11643 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11645 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11647 * gdbtypes.c (type_align): A struct with no non-static fields also
11648 has alignment of 1.
11650 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11652 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11654 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11656 (riscv_struct_info::analyse): New implementation using new
11657 analyse_inner member function.
11658 (riscv_struct_info::field_offset): New member function.
11659 (riscv_struct_info::m_offsets): New member variable.
11660 (riscv_struct_info::analyse_inner): New private member function,
11661 takes the old implementation of riscv_struct_info::analyse but
11662 extended to track field offsets.
11663 (riscv_call_arg_struct): Update the struct folding special cases
11664 to handle cases where empty C++ structs, which are non-zero
11666 (riscv_arg_location): Initialise the length of each location, a
11667 non-zero length now indicates the location is in use.
11668 (riscv_push_dummy_call): Allow for the first location having a
11669 non-zero offset when setting up arguments.
11670 (riscv_return_value): Likewise, but for return values.
11672 2019-04-11 Tom Tromey <tromey@adacore.com>
11674 * utils.c (internal_vproblem): Make "msg" const.
11676 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11678 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11679 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11680 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11681 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11683 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11685 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11687 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11688 of amd64_collect_native_gregset.
11689 (amd64_linux_nat_target::store_registers): Likewise.
11691 2019-04-10 Tom Tromey <tom@tromey.com>
11693 * symtab.c (lookup_global_symbol_from_objfile)
11694 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11695 * objfiles.h (class separate_debug_iterator): New.
11696 (class separate_debug_range): New.
11697 (struct objfile) <separate_debug_objfiles>: New method.
11698 (objfile_separate_debug_iterate): Don't declare.
11699 * objfiles.c (separate_debug_iterator::operator++): Rename from
11700 objfile_separate_debug_iterate.
11701 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11703 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11706 2019-04-10 Tom Tromey <tom@tromey.com>
11708 * symfile.c (reread_symbols): Remove old comment.
11709 * objfiles.c (free_all_objfiles): Fix a typo.
11711 2019-04-10 Tom Tromey <tom@tromey.com>
11713 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11714 * minsyms.c (lookup_minimal_symbol): Use foreach.
11715 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11716 (lookup_minimal_symbol_solib_trampoline): Likewise.
11717 * symfile.c (reread_symbols): Use foreach.
11719 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11720 Tom Tromey <tromey@adacore.com>
11723 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11724 (rust_lex_int_test): Change "value" to be LONGEST.
11725 (rust_lex_tests): Add test for long integer literal.
11727 2019-04-09 Tom Tromey <tromey@adacore.com>
11729 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11731 (extended_remote_target::attach): Update.
11732 (remote_target::remote_notice_new_inferior): Update.
11733 (remote_target::add_current_inferior_and_thread): Update.
11734 * inferior.c (exit_inferior_1): Use "false".
11735 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11737 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11739 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11740 the "start" command.
11742 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11744 * python/py-inferior.c (infpy_thread_from_thread_handle):
11745 Adjust comments to reflect renaming of thread_from_thread_handle
11746 to thread_from_handle. Adjust keywords. Fix type error message.
11747 (inferior_object_methods): Add thread_from_handle. Retain
11748 thread_from_thread_handle, but mark it as deprecated.
11750 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11752 * gdbthread.h (find_thread_by_handle): Revise declaration.
11753 * thread.c (find_thread_by_handle): Likewise. Adjust
11754 implementation too.
11755 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11756 support for buffer objects as handles.
11758 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11760 * python/py-infthread.c (thpy_thread_handle): New function.
11761 (thread_object_methods): Register thpy_thread_handle.
11763 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11765 * gdbthread.h (thread_to_thread_handle): Declare.
11766 * thread.c (gdbtypes.h): Include.
11767 (thread_to_thread_handle): New function.
11769 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11770 (target_thread_info_to_thread_handle): Declare.
11771 * target.c (target_thread_info_to_thread_handle): New function.
11772 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11773 * target-delegates.c: Regenerate.
11775 * linux-thread-db.c (class thread_db_target): Add method
11776 thread_info_to_thread_handle.
11777 (thread_db_target::thread_info_to_thread_handle): Define.
11778 * remote.c (class remote_target): Add new method
11779 thread_info_to_thread_handle.
11780 (remote_target::thread_info_to_thread_handle): Define.
11782 2019-04-08 Pedro Alves <palves@redhat.com>
11784 * common/common-exceptions.c (throw_exception): Don't create
11785 named object to throw; throw directly.
11786 (throw_it): Likewise. Don't initialize gdb_exception::message
11787 here, with new; pass FMT and AP to the ctor instead.
11788 * common/common-exceptions.h: Include <string>.
11789 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11790 const char *, va_list)): New ctor. Use std::make_shared.
11791 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11793 (gdb_exception_error::gdb_exception_error(enum errors, const char
11795 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11797 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11799 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11800 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11803 2019-04-08 Tom Tromey <tom@tromey.com>
11805 * valops.c (value_rtti_indirect_type): Replace throw_exception
11807 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11809 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11811 * target.c (target_translate_tls_address): Replace throw_exception
11813 * stack.c (frame_apply_command_count): Replace throw_exception
11815 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11817 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11819 * rs6000-tdep.c (rs6000_frame_cache)
11820 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11821 * remote.c: Replace throw_exception with throw.
11822 * record-full.c (record_full_message, record_full_wait_1)
11823 (record_full_restore): Replace throw_exception with throw.
11825 (get_thread_current_frame_id, record_btrace_start_replaying)
11826 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11827 (cmd_record_btrace_start): Replace throw_exception with throw.
11828 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11830 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11831 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11833 (find_linespec_symbols): Replace throw_exception with throw.
11834 * infrun.c (displaced_step_prepare, resume): Replace
11835 throw_exception with throw.
11836 * infcmd.c (post_create_inferior): Replace throw_exception with
11838 * inf-loop.c (inferior_event_handler): Replace throw_exception
11840 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11841 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11842 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11843 (get_prev_frame_always, get_frame_pc_if_available)
11844 (get_frame_address_in_block_if_available, get_frame_language):
11845 Replace throw_exception with throw.
11846 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11847 throw_exception with throw.
11848 * eval.c (fetch_subexp_value, evaluate_var_value)
11849 (evaluate_funcall, evaluate_subexp_standard): Replace
11850 throw_exception with throw.
11851 * dwarf2loc.c (call_site_find_chain)
11852 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11853 Replace throw_exception with throw.
11854 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11856 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11858 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11859 * completer.c (complete_line_internal): Replace throw_exception
11861 * compile/compile-object-run.c (compile_object_run): Replace
11862 throw_exception with throw.
11863 * cli/cli-script.c (process_next_line): Replace throw_exception
11865 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11866 (btrace_enable, btrace_maint_update_pt_packets): Replace
11867 throw_exception with throw.
11868 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11869 throw_exception with throw.
11870 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11871 throw_exception with throw.
11872 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11873 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11874 * aarch64-tdep.c (aarch64_make_prologue_cache)
11875 (aarch64_make_stub_cache): Replace throw_exception with throw.
11877 2019-04-08 Tom Tromey <tom@tromey.com>
11879 * common/common-exceptions.c (throw_exception): Rename from
11880 throw_exception_cxx. Remove old copy. Make argument const.
11881 (throw_it): Create and throw exception objects directly.
11882 * common/common-exceptions.h (throw_exception): Make argument
11884 (struct gdb_exception_error): Add constructor.
11885 (struct gdb_exception_quit): Add constructor.
11887 2019-04-08 Tom Tromey <tom@tromey.com>
11889 * common/common-exceptions.h (exception_rethrow): Don't declare.
11890 (TRY_SJLJ): Update comment.
11891 (TRY, CATCH, END_CATCH): Remove.
11892 * common/common-exceptions.c (exception_rethrow): Remove.
11894 2019-04-08 Tom Tromey <tom@tromey.com>
11896 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11898 (gdb_exception_error): Rename from
11899 gdb_exception_RETURN_MASK_ERROR.
11900 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11901 (gdb_quit_bad_alloc): Update.
11902 * aarch64-tdep.c: Update.
11903 * ada-lang.c: Update.
11904 * ada-typeprint.c: Update.
11905 * ada-valprint.c: Update.
11906 * amd64-tdep.c: Update.
11907 * arch-utils.c: Update.
11908 * break-catch-throw.c: Update.
11909 * breakpoint.c: Update.
11910 * btrace.c: Update.
11911 * c-varobj.c: Update.
11912 * cli/cli-cmds.c: Update.
11913 * cli/cli-interp.c: Update.
11914 * cli/cli-script.c: Update.
11915 * common/common-exceptions.c: Update.
11916 * common/new-op.c: Update.
11917 * common/selftest.c: Update.
11918 * compile/compile-c-symbols.c: Update.
11919 * compile/compile-cplus-symbols.c: Update.
11920 * compile/compile-object-load.c: Update.
11921 * compile/compile-object-run.c: Update.
11922 * completer.c: Update.
11923 * corelow.c: Update.
11924 * cp-abi.c: Update.
11925 * cp-support.c: Update.
11926 * cp-valprint.c: Update.
11927 * darwin-nat.c: Update.
11928 * disasm-selftests.c: Update.
11929 * dtrace-probe.c: Update.
11930 * dwarf-index-cache.c: Update.
11931 * dwarf-index-write.c: Update.
11932 * dwarf2-frame-tailcall.c: Update.
11933 * dwarf2-frame.c: Update.
11934 * dwarf2loc.c: Update.
11935 * dwarf2read.c: Update.
11937 * event-loop.c: Update.
11938 * event-top.c: Update.
11940 * f-valprint.c: Update.
11941 * fbsd-tdep.c: Update.
11942 * frame-unwind.c: Update.
11944 * gdbtypes.c: Update.
11945 * gnu-v3-abi.c: Update.
11946 * guile/guile-internal.h: Update.
11947 * guile/scm-block.c: Update.
11948 * guile/scm-breakpoint.c: Update.
11949 * guile/scm-cmd.c: Update.
11950 * guile/scm-disasm.c: Update.
11951 * guile/scm-frame.c: Update.
11952 * guile/scm-lazy-string.c: Update.
11953 * guile/scm-math.c: Update.
11954 * guile/scm-param.c: Update.
11955 * guile/scm-ports.c: Update.
11956 * guile/scm-pretty-print.c: Update.
11957 * guile/scm-symbol.c: Update.
11958 * guile/scm-symtab.c: Update.
11959 * guile/scm-type.c: Update.
11960 * guile/scm-value.c: Update.
11961 * i386-linux-tdep.c: Update.
11962 * i386-tdep.c: Update.
11963 * inf-loop.c: Update.
11964 * infcall.c: Update.
11965 * infcmd.c: Update.
11966 * infrun.c: Update.
11968 * language.c: Update.
11969 * linespec.c: Update.
11970 * linux-fork.c: Update.
11971 * linux-nat.c: Update.
11972 * linux-tdep.c: Update.
11973 * linux-thread-db.c: Update.
11975 * mi/mi-cmd-break.c: Update.
11976 * mi/mi-cmd-stack.c: Update.
11977 * mi/mi-interp.c: Update.
11978 * mi/mi-main.c: Update.
11979 * objc-lang.c: Update.
11980 * p-valprint.c: Update.
11982 * ppc-linux-tdep.c: Update.
11983 * printcmd.c: Update.
11984 * python/py-arch.c: Update.
11985 * python/py-breakpoint.c: Update.
11986 * python/py-cmd.c: Update.
11987 * python/py-finishbreakpoint.c: Update.
11988 * python/py-frame.c: Update.
11989 * python/py-framefilter.c: Update.
11990 * python/py-gdb-readline.c: Update.
11991 * python/py-inferior.c: Update.
11992 * python/py-infthread.c: Update.
11993 * python/py-lazy-string.c: Update.
11994 * python/py-linetable.c: Update.
11995 * python/py-objfile.c: Update.
11996 * python/py-param.c: Update.
11997 * python/py-prettyprint.c: Update.
11998 * python/py-progspace.c: Update.
11999 * python/py-record-btrace.c: Update.
12000 * python/py-record.c: Update.
12001 * python/py-symbol.c: Update.
12002 * python/py-type.c: Update.
12003 * python/py-unwind.c: Update.
12004 * python/py-utils.c: Update.
12005 * python/py-value.c: Update.
12006 * python/python.c: Update.
12007 * record-btrace.c: Update.
12008 * record-full.c: Update.
12009 * remote-fileio.c: Update.
12010 * remote.c: Update.
12011 * riscv-tdep.c: Update.
12012 * rs6000-aix-tdep.c: Update.
12013 * rs6000-tdep.c: Update.
12014 * rust-exp.y: Update.
12015 * rust-lang.c: Update.
12016 * s390-tdep.c: Update.
12017 * selftest-arch.c: Update.
12018 * solib-dsbt.c: Update.
12019 * solib-frv.c: Update.
12020 * solib-spu.c: Update.
12021 * solib-svr4.c: Update.
12023 * sparc64-linux-tdep.c: Update.
12025 * symfile-mem.c: Update.
12026 * symmisc.c: Update.
12027 * target.c: Update.
12028 * thread.c: Update.
12030 * tracefile-tfile.c: Update.
12031 * tui/tui.c: Update.
12032 * typeprint.c: Update.
12033 * unittests/cli-utils-selftests.c: Update.
12034 * unittests/parse-connection-spec-selftests.c: Update.
12035 * valops.c: Update.
12036 * valprint.c: Update.
12038 * varobj.c: Update.
12039 * windows-nat.c: Update.
12040 * x86-linux-nat.c: Update.
12041 * xml-support.c: Update.
12043 2019-04-08 Tom Tromey <tom@tromey.com>
12045 * xml-support.c: Use C++ exception handling.
12046 * x86-linux-nat.c: Use C++ exception handling.
12047 * windows-nat.c: Use C++ exception handling.
12048 * varobj.c: Use C++ exception handling.
12049 * value.c: Use C++ exception handling.
12050 * valprint.c: Use C++ exception handling.
12051 * valops.c: Use C++ exception handling.
12052 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12054 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12055 * typeprint.c: Use C++ exception handling.
12056 * tui/tui.c: Use C++ exception handling.
12057 * tracefile-tfile.c: Use C++ exception handling.
12058 * top.c: Use C++ exception handling.
12059 * thread.c: Use C++ exception handling.
12060 * target.c: Use C++ exception handling.
12061 * symmisc.c: Use C++ exception handling.
12062 * symfile-mem.c: Use C++ exception handling.
12063 * stack.c: Use C++ exception handling.
12064 * sparc64-linux-tdep.c: Use C++ exception handling.
12065 * solib.c: Use C++ exception handling.
12066 * solib-svr4.c: Use C++ exception handling.
12067 * solib-spu.c: Use C++ exception handling.
12068 * solib-frv.c: Use C++ exception handling.
12069 * solib-dsbt.c: Use C++ exception handling.
12070 * selftest-arch.c: Use C++ exception handling.
12071 * s390-tdep.c: Use C++ exception handling.
12072 * rust-lang.c: Use C++ exception handling.
12073 * rust-exp.y: Use C++ exception handling.
12074 * rs6000-tdep.c: Use C++ exception handling.
12075 * rs6000-aix-tdep.c: Use C++ exception handling.
12076 * riscv-tdep.c: Use C++ exception handling.
12077 * remote.c: Use C++ exception handling.
12078 * remote-fileio.c: Use C++ exception handling.
12079 * record-full.c: Use C++ exception handling.
12080 * record-btrace.c: Use C++ exception handling.
12081 * python/python.c: Use C++ exception handling.
12082 * python/py-value.c: Use C++ exception handling.
12083 * python/py-utils.c: Use C++ exception handling.
12084 * python/py-unwind.c: Use C++ exception handling.
12085 * python/py-type.c: Use C++ exception handling.
12086 * python/py-symbol.c: Use C++ exception handling.
12087 * python/py-record.c: Use C++ exception handling.
12088 * python/py-record-btrace.c: Use C++ exception handling.
12089 * python/py-progspace.c: Use C++ exception handling.
12090 * python/py-prettyprint.c: Use C++ exception handling.
12091 * python/py-param.c: Use C++ exception handling.
12092 * python/py-objfile.c: Use C++ exception handling.
12093 * python/py-linetable.c: Use C++ exception handling.
12094 * python/py-lazy-string.c: Use C++ exception handling.
12095 * python/py-infthread.c: Use C++ exception handling.
12096 * python/py-inferior.c: Use C++ exception handling.
12097 * python/py-gdb-readline.c: Use C++ exception handling.
12098 * python/py-framefilter.c: Use C++ exception handling.
12099 * python/py-frame.c: Use C++ exception handling.
12100 * python/py-finishbreakpoint.c: Use C++ exception handling.
12101 * python/py-cmd.c: Use C++ exception handling.
12102 * python/py-breakpoint.c: Use C++ exception handling.
12103 * python/py-arch.c: Use C++ exception handling.
12104 * printcmd.c: Use C++ exception handling.
12105 * ppc-linux-tdep.c: Use C++ exception handling.
12106 * parse.c: Use C++ exception handling.
12107 * p-valprint.c: Use C++ exception handling.
12108 * objc-lang.c: Use C++ exception handling.
12109 * mi/mi-main.c: Use C++ exception handling.
12110 * mi/mi-interp.c: Use C++ exception handling.
12111 * mi/mi-cmd-stack.c: Use C++ exception handling.
12112 * mi/mi-cmd-break.c: Use C++ exception handling.
12113 * main.c: Use C++ exception handling.
12114 * linux-thread-db.c: Use C++ exception handling.
12115 * linux-tdep.c: Use C++ exception handling.
12116 * linux-nat.c: Use C++ exception handling.
12117 * linux-fork.c: Use C++ exception handling.
12118 * linespec.c: Use C++ exception handling.
12119 * language.c: Use C++ exception handling.
12120 * jit.c: Use C++ exception handling.
12121 * infrun.c: Use C++ exception handling.
12122 * infcmd.c: Use C++ exception handling.
12123 * infcall.c: Use C++ exception handling.
12124 * inf-loop.c: Use C++ exception handling.
12125 * i386-tdep.c: Use C++ exception handling.
12126 * i386-linux-tdep.c: Use C++ exception handling.
12127 * guile/scm-value.c: Use C++ exception handling.
12128 * guile/scm-type.c: Use C++ exception handling.
12129 * guile/scm-symtab.c: Use C++ exception handling.
12130 * guile/scm-symbol.c: Use C++ exception handling.
12131 * guile/scm-pretty-print.c: Use C++ exception handling.
12132 * guile/scm-ports.c: Use C++ exception handling.
12133 * guile/scm-param.c: Use C++ exception handling.
12134 * guile/scm-math.c: Use C++ exception handling.
12135 * guile/scm-lazy-string.c: Use C++ exception handling.
12136 * guile/scm-frame.c: Use C++ exception handling.
12137 * guile/scm-disasm.c: Use C++ exception handling.
12138 * guile/scm-cmd.c: Use C++ exception handling.
12139 * guile/scm-breakpoint.c: Use C++ exception handling.
12140 * guile/scm-block.c: Use C++ exception handling.
12141 * guile/guile-internal.h: Use C++ exception handling.
12142 * gnu-v3-abi.c: Use C++ exception handling.
12143 * gdbtypes.c: Use C++ exception handling.
12144 * frame.c: Use C++ exception handling.
12145 * frame-unwind.c: Use C++ exception handling.
12146 * fbsd-tdep.c: Use C++ exception handling.
12147 * f-valprint.c: Use C++ exception handling.
12148 * exec.c: Use C++ exception handling.
12149 * event-top.c: Use C++ exception handling.
12150 * event-loop.c: Use C++ exception handling.
12151 * eval.c: Use C++ exception handling.
12152 * dwarf2read.c: Use C++ exception handling.
12153 * dwarf2loc.c: Use C++ exception handling.
12154 * dwarf2-frame.c: Use C++ exception handling.
12155 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12156 * dwarf-index-write.c: Use C++ exception handling.
12157 * dwarf-index-cache.c: Use C++ exception handling.
12158 * dtrace-probe.c: Use C++ exception handling.
12159 * disasm-selftests.c: Use C++ exception handling.
12160 * darwin-nat.c: Use C++ exception handling.
12161 * cp-valprint.c: Use C++ exception handling.
12162 * cp-support.c: Use C++ exception handling.
12163 * cp-abi.c: Use C++ exception handling.
12164 * corelow.c: Use C++ exception handling.
12165 * completer.c: Use C++ exception handling.
12166 * compile/compile-object-run.c: Use C++ exception handling.
12167 * compile/compile-object-load.c: Use C++ exception handling.
12168 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12169 * compile/compile-c-symbols.c: Use C++ exception handling.
12170 * common/selftest.c: Use C++ exception handling.
12171 * common/new-op.c: Use C++ exception handling.
12172 * cli/cli-script.c: Use C++ exception handling.
12173 * cli/cli-interp.c: Use C++ exception handling.
12174 * cli/cli-cmds.c: Use C++ exception handling.
12175 * c-varobj.c: Use C++ exception handling.
12176 * btrace.c: Use C++ exception handling.
12177 * breakpoint.c: Use C++ exception handling.
12178 * break-catch-throw.c: Use C++ exception handling.
12179 * arch-utils.c: Use C++ exception handling.
12180 * amd64-tdep.c: Use C++ exception handling.
12181 * ada-valprint.c: Use C++ exception handling.
12182 * ada-typeprint.c: Use C++ exception handling.
12183 * ada-lang.c: Use C++ exception handling.
12184 * aarch64-tdep.c: Use C++ exception handling.
12186 2019-04-08 Tom Tromey <tom@tromey.com>
12188 * xml-support.c (gdb_xml_parser::parse): Update.
12189 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12190 * value.c (show_convenience): Update.
12191 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12192 (test_parse_flags_qcs): Update.
12193 * thread.c (thr_try_catch_cmd): Update.
12194 * target.c (target_translate_tls_address): Update.
12195 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12196 (info_frame_command_core, frame_apply_command_count): Update.
12197 * rust-exp.y (rust_lex_exception_test): Update.
12198 * riscv-tdep.c (riscv_print_one_register_info): Update.
12199 * remote.c (remote_target::enable_btrace): Update.
12200 * record-btrace.c (record_btrace_enable_warn): Update.
12201 * python/py-utils.c (gdbpy_convert_exception): Update.
12202 * printcmd.c (do_one_display, print_variable_and_value): Update.
12203 * mi/mi-main.c (mi_print_exception): Update.
12204 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12205 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12206 * linux-nat.c (linux_nat_target::attach): Update.
12207 * linux-fork.c (class scoped_switch_fork_info): Update.
12208 * infrun.c (displaced_step_prepare): Update.
12209 * infcall.c (call_function_by_hand_dummy): Update.
12210 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12211 * gnu-v3-abi.c (print_one_vtable): Update.
12212 * frame.c (get_prev_frame_always): Update.
12213 * f-valprint.c (info_common_command_for_block): Update.
12214 * exec.c (try_open_exec_file): Update.
12215 * exceptions.c (print_exception, exception_print)
12216 (exception_fprintf, exception_print_same): Update.
12217 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12218 * dwarf-index-cache.c (index_cache::store)
12219 (index_cache::lookup_gdb_index): Update.
12220 * darwin-nat.c (maybe_cache_shell): Update.
12221 * cp-valprint.c (cp_print_value_fields): Update.
12222 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12223 (gcc_cplus_symbol_address): Update.
12224 * compile/compile-c-symbols.c (gcc_convert_symbol)
12225 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12226 * common/selftest.c: Update.
12227 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12229 (exception_try_scope_entry, exception_try_scope_exit): Don't
12231 (struct exception_try_scope): Remove.
12232 (TRY): Don't use exception_try_scope.
12233 (struct gdb_exception): Add constructor, operator=.
12234 <what>: New method.
12235 (struct gdb_exception_RETURN_MASK_ALL)
12236 (struct gdb_exception_RETURN_MASK_ERROR)
12237 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12238 (struct gdb_quit_bad_alloc): Update.
12239 * common/common-exceptions.c (exception_none): Change
12241 (struct catcher) <state, exception>: Initialize inline.
12242 <prev>: Remove member.
12243 (current_catcher): Remove.
12244 (catchers): New global.
12245 (exceptions_state_mc_init): Simplify.
12246 (catcher_pop): Remove.
12247 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12248 (try_scope_depth, exception_try_scope_entry)
12249 (exception_try_scope_exit): Remove.
12250 (throw_exception_sjlj): Update.
12251 (exception_messages, exception_messages_size): Remove.
12252 (throw_it): Simplify.
12253 (gdb_exception_sliced_copy): Remove.
12254 (throw_exception_cxx): Update.
12255 * cli/cli-script.c (script_from_file): Update.
12256 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12258 * ada-valprint.c (ada_val_print): Update.
12259 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12260 (create_excep_cond_exprs): Update.
12262 2019-04-08 Tom Tromey <tom@tromey.com>
12264 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12265 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12266 (TRY, CATCH, END_CATCH): Remove some definitions.
12267 * common/common-exceptions.c: Don't use GDB_XCPT.
12268 (catcher_list_size): Remove.
12269 (throw_exception, throw_it): Simplify.
12271 2019-04-05 Tom Tromey <tom@tromey.com>
12273 Revert the header-sorting patch.
12274 * ft32-tdep.c: Revert.
12275 * frv-tdep.c: Revert.
12276 * frv-linux-tdep.c: Revert.
12278 * frame-unwind.c: Revert.
12279 * frame-base.c: Revert.
12280 * fork-child.c: Revert.
12281 * findvar.c: Revert.
12282 * findcmd.c: Revert.
12283 * filesystem.c: Revert.
12284 * filename-seen-cache.h: Revert.
12285 * filename-seen-cache.c: Revert.
12286 * fbsd-tdep.c: Revert.
12287 * fbsd-nat.h: Revert.
12288 * fbsd-nat.c: Revert.
12289 * f-valprint.c: Revert.
12290 * f-typeprint.c: Revert.
12291 * f-lang.c: Revert.
12292 * extension.h: Revert.
12293 * extension.c: Revert.
12294 * extension-priv.h: Revert.
12295 * expprint.c: Revert.
12298 * exceptions.c: Revert.
12299 * event-top.c: Revert.
12300 * event-loop.c: Revert.
12302 * elfread.c: Revert.
12303 * dwarf2read.h: Revert.
12304 * dwarf2read.c: Revert.
12305 * dwarf2loc.c: Revert.
12306 * dwarf2expr.h: Revert.
12307 * dwarf2expr.c: Revert.
12308 * dwarf2-frame.c: Revert.
12309 * dwarf2-frame-tailcall.c: Revert.
12310 * dwarf-index-write.h: Revert.
12311 * dwarf-index-write.c: Revert.
12312 * dwarf-index-common.c: Revert.
12313 * dwarf-index-cache.h: Revert.
12314 * dwarf-index-cache.c: Revert.
12315 * dummy-frame.c: Revert.
12316 * dtrace-probe.c: Revert.
12317 * disasm.h: Revert.
12318 * disasm.c: Revert.
12319 * disasm-selftests.c: Revert.
12320 * dictionary.c: Revert.
12321 * dicos-tdep.c: Revert.
12322 * demangle.c: Revert.
12323 * dcache.h: Revert.
12324 * dcache.c: Revert.
12325 * darwin-nat.h: Revert.
12326 * darwin-nat.c: Revert.
12327 * darwin-nat-info.c: Revert.
12328 * d-valprint.c: Revert.
12329 * d-namespace.c: Revert.
12330 * d-lang.c: Revert.
12332 * csky-tdep.c: Revert.
12333 * csky-linux-tdep.c: Revert.
12334 * cris-tdep.c: Revert.
12335 * cris-linux-tdep.c: Revert.
12336 * cp-valprint.c: Revert.
12337 * cp-support.c: Revert.
12338 * cp-namespace.c: Revert.
12339 * cp-abi.c: Revert.
12340 * corelow.c: Revert.
12341 * corefile.c: Revert.
12342 * continuations.c: Revert.
12343 * completer.h: Revert.
12344 * completer.c: Revert.
12345 * complaints.c: Revert.
12346 * coffread.c: Revert.
12347 * coff-pe-read.c: Revert.
12348 * cli-out.h: Revert.
12349 * cli-out.c: Revert.
12350 * charset.c: Revert.
12351 * c-varobj.c: Revert.
12352 * c-valprint.c: Revert.
12353 * c-typeprint.c: Revert.
12354 * c-lang.c: Revert.
12355 * buildsym.c: Revert.
12356 * buildsym-legacy.c: Revert.
12357 * build-id.h: Revert.
12358 * build-id.c: Revert.
12359 * btrace.c: Revert.
12360 * bsd-uthread.c: Revert.
12361 * breakpoint.h: Revert.
12362 * breakpoint.c: Revert.
12363 * break-catch-throw.c: Revert.
12364 * break-catch-syscall.c: Revert.
12365 * break-catch-sig.c: Revert.
12366 * blockframe.c: Revert.
12368 * bfin-tdep.c: Revert.
12369 * bfin-linux-tdep.c: Revert.
12370 * bfd-target.c: Revert.
12371 * bcache.c: Revert.
12372 * ax-general.c: Revert.
12373 * ax-gdb.h: Revert.
12374 * ax-gdb.c: Revert.
12375 * avr-tdep.c: Revert.
12377 * auto-load.c: Revert.
12378 * arm-wince-tdep.c: Revert.
12379 * arm-tdep.c: Revert.
12380 * arm-symbian-tdep.c: Revert.
12381 * arm-pikeos-tdep.c: Revert.
12382 * arm-obsd-tdep.c: Revert.
12383 * arm-nbsd-tdep.c: Revert.
12384 * arm-nbsd-nat.c: Revert.
12385 * arm-linux-tdep.c: Revert.
12386 * arm-linux-nat.c: Revert.
12387 * arm-fbsd-tdep.c: Revert.
12388 * arm-fbsd-nat.c: Revert.
12389 * arm-bsd-tdep.c: Revert.
12390 * arch-utils.c: Revert.
12391 * arc-tdep.c: Revert.
12392 * arc-newlib-tdep.c: Revert.
12393 * annotate.h: Revert.
12394 * annotate.c: Revert.
12395 * amd64-windows-tdep.c: Revert.
12396 * amd64-windows-nat.c: Revert.
12397 * amd64-tdep.c: Revert.
12398 * amd64-sol2-tdep.c: Revert.
12399 * amd64-obsd-tdep.c: Revert.
12400 * amd64-obsd-nat.c: Revert.
12401 * amd64-nbsd-tdep.c: Revert.
12402 * amd64-nbsd-nat.c: Revert.
12403 * amd64-nat.c: Revert.
12404 * amd64-linux-tdep.c: Revert.
12405 * amd64-linux-nat.c: Revert.
12406 * amd64-fbsd-tdep.c: Revert.
12407 * amd64-fbsd-nat.c: Revert.
12408 * amd64-dicos-tdep.c: Revert.
12409 * amd64-darwin-tdep.c: Revert.
12410 * amd64-bsd-nat.c: Revert.
12411 * alpha-tdep.c: Revert.
12412 * alpha-obsd-tdep.c: Revert.
12413 * alpha-nbsd-tdep.c: Revert.
12414 * alpha-mdebug-tdep.c: Revert.
12415 * alpha-linux-tdep.c: Revert.
12416 * alpha-linux-nat.c: Revert.
12417 * alpha-bsd-tdep.c: Revert.
12418 * alpha-bsd-nat.c: Revert.
12419 * aix-thread.c: Revert.
12421 * addrmap.c: Revert.
12422 * ada-varobj.c: Revert.
12423 * ada-valprint.c: Revert.
12424 * ada-typeprint.c: Revert.
12425 * ada-tasks.c: Revert.
12426 * ada-lang.c: Revert.
12427 * aarch64-tdep.c: Revert.
12428 * aarch64-ravenscar-thread.c: Revert.
12429 * aarch64-newlib-tdep.c: Revert.
12430 * aarch64-linux-tdep.c: Revert.
12431 * aarch64-linux-nat.c: Revert.
12432 * aarch64-fbsd-tdep.c: Revert.
12433 * aarch64-fbsd-nat.c: Revert.
12434 * aarch32-linux-nat.c: Revert.
12436 2019-04-05 Tom Tromey <tom@tromey.com>
12438 * ft32-tdep.c: Sort headers.
12439 * frv-tdep.c: Sort headers.
12440 * frv-linux-tdep.c: Sort headers.
12441 * frame.c: Sort headers.
12442 * frame-unwind.c: Sort headers.
12443 * frame-base.c: Sort headers.
12444 * fork-child.c: Sort headers.
12445 * findvar.c: Sort headers.
12446 * findcmd.c: Sort headers.
12447 * filesystem.c: Sort headers.
12448 * filename-seen-cache.h: Sort headers.
12449 * filename-seen-cache.c: Sort headers.
12450 * fbsd-tdep.c: Sort headers.
12451 * fbsd-nat.h: Sort headers.
12452 * fbsd-nat.c: Sort headers.
12453 * f-valprint.c: Sort headers.
12454 * f-typeprint.c: Sort headers.
12455 * f-lang.c: Sort headers.
12456 * extension.h: Sort headers.
12457 * extension.c: Sort headers.
12458 * extension-priv.h: Sort headers.
12459 * expprint.c: Sort headers.
12460 * exec.h: Sort headers.
12461 * exec.c: Sort headers.
12462 * exceptions.c: Sort headers.
12463 * event-top.c: Sort headers.
12464 * event-loop.c: Sort headers.
12465 * eval.c: Sort headers.
12466 * elfread.c: Sort headers.
12467 * dwarf2read.h: Sort headers.
12468 * dwarf2read.c: Sort headers.
12469 * dwarf2loc.c: Sort headers.
12470 * dwarf2expr.h: Sort headers.
12471 * dwarf2expr.c: Sort headers.
12472 * dwarf2-frame.c: Sort headers.
12473 * dwarf2-frame-tailcall.c: Sort headers.
12474 * dwarf-index-write.h: Sort headers.
12475 * dwarf-index-write.c: Sort headers.
12476 * dwarf-index-common.c: Sort headers.
12477 * dwarf-index-cache.h: Sort headers.
12478 * dwarf-index-cache.c: Sort headers.
12479 * dummy-frame.c: Sort headers.
12480 * dtrace-probe.c: Sort headers.
12481 * disasm.h: Sort headers.
12482 * disasm.c: Sort headers.
12483 * disasm-selftests.c: Sort headers.
12484 * dictionary.c: Sort headers.
12485 * dicos-tdep.c: Sort headers.
12486 * demangle.c: Sort headers.
12487 * dcache.h: Sort headers.
12488 * dcache.c: Sort headers.
12489 * darwin-nat.h: Sort headers.
12490 * darwin-nat.c: Sort headers.
12491 * darwin-nat-info.c: Sort headers.
12492 * d-valprint.c: Sort headers.
12493 * d-namespace.c: Sort headers.
12494 * d-lang.c: Sort headers.
12495 * ctf.c: Sort headers.
12496 * csky-tdep.c: Sort headers.
12497 * csky-linux-tdep.c: Sort headers.
12498 * cris-tdep.c: Sort headers.
12499 * cris-linux-tdep.c: Sort headers.
12500 * cp-valprint.c: Sort headers.
12501 * cp-support.c: Sort headers.
12502 * cp-namespace.c: Sort headers.
12503 * cp-abi.c: Sort headers.
12504 * corelow.c: Sort headers.
12505 * corefile.c: Sort headers.
12506 * continuations.c: Sort headers.
12507 * completer.h: Sort headers.
12508 * completer.c: Sort headers.
12509 * complaints.c: Sort headers.
12510 * coffread.c: Sort headers.
12511 * coff-pe-read.c: Sort headers.
12512 * cli-out.h: Sort headers.
12513 * cli-out.c: Sort headers.
12514 * charset.c: Sort headers.
12515 * c-varobj.c: Sort headers.
12516 * c-valprint.c: Sort headers.
12517 * c-typeprint.c: Sort headers.
12518 * c-lang.c: Sort headers.
12519 * buildsym.c: Sort headers.
12520 * buildsym-legacy.c: Sort headers.
12521 * build-id.h: Sort headers.
12522 * build-id.c: Sort headers.
12523 * btrace.c: Sort headers.
12524 * bsd-uthread.c: Sort headers.
12525 * breakpoint.h: Sort headers.
12526 * breakpoint.c: Sort headers.
12527 * break-catch-throw.c: Sort headers.
12528 * break-catch-syscall.c: Sort headers.
12529 * break-catch-sig.c: Sort headers.
12530 * blockframe.c: Sort headers.
12531 * block.c: Sort headers.
12532 * bfin-tdep.c: Sort headers.
12533 * bfin-linux-tdep.c: Sort headers.
12534 * bfd-target.c: Sort headers.
12535 * bcache.c: Sort headers.
12536 * ax-general.c: Sort headers.
12537 * ax-gdb.h: Sort headers.
12538 * ax-gdb.c: Sort headers.
12539 * avr-tdep.c: Sort headers.
12540 * auxv.c: Sort headers.
12541 * auto-load.c: Sort headers.
12542 * arm-wince-tdep.c: Sort headers.
12543 * arm-tdep.c: Sort headers.
12544 * arm-symbian-tdep.c: Sort headers.
12545 * arm-pikeos-tdep.c: Sort headers.
12546 * arm-obsd-tdep.c: Sort headers.
12547 * arm-nbsd-tdep.c: Sort headers.
12548 * arm-nbsd-nat.c: Sort headers.
12549 * arm-linux-tdep.c: Sort headers.
12550 * arm-linux-nat.c: Sort headers.
12551 * arm-fbsd-tdep.c: Sort headers.
12552 * arm-fbsd-nat.c: Sort headers.
12553 * arm-bsd-tdep.c: Sort headers.
12554 * arch-utils.c: Sort headers.
12555 * arc-tdep.c: Sort headers.
12556 * arc-newlib-tdep.c: Sort headers.
12557 * annotate.h: Sort headers.
12558 * annotate.c: Sort headers.
12559 * amd64-windows-tdep.c: Sort headers.
12560 * amd64-windows-nat.c: Sort headers.
12561 * amd64-tdep.c: Sort headers.
12562 * amd64-sol2-tdep.c: Sort headers.
12563 * amd64-obsd-tdep.c: Sort headers.
12564 * amd64-obsd-nat.c: Sort headers.
12565 * amd64-nbsd-tdep.c: Sort headers.
12566 * amd64-nbsd-nat.c: Sort headers.
12567 * amd64-nat.c: Sort headers.
12568 * amd64-linux-tdep.c: Sort headers.
12569 * amd64-linux-nat.c: Sort headers.
12570 * amd64-fbsd-tdep.c: Sort headers.
12571 * amd64-fbsd-nat.c: Sort headers.
12572 * amd64-dicos-tdep.c: Sort headers.
12573 * amd64-darwin-tdep.c: Sort headers.
12574 * amd64-bsd-nat.c: Sort headers.
12575 * alpha-tdep.c: Sort headers.
12576 * alpha-obsd-tdep.c: Sort headers.
12577 * alpha-nbsd-tdep.c: Sort headers.
12578 * alpha-mdebug-tdep.c: Sort headers.
12579 * alpha-linux-tdep.c: Sort headers.
12580 * alpha-linux-nat.c: Sort headers.
12581 * alpha-bsd-tdep.c: Sort headers.
12582 * alpha-bsd-nat.c: Sort headers.
12583 * aix-thread.c: Sort headers.
12584 * agent.c: Sort headers.
12585 * addrmap.c: Sort headers.
12586 * ada-varobj.c: Sort headers.
12587 * ada-valprint.c: Sort headers.
12588 * ada-typeprint.c: Sort headers.
12589 * ada-tasks.c: Sort headers.
12590 * ada-lang.c: Sort headers.
12591 * aarch64-tdep.c: Sort headers.
12592 * aarch64-ravenscar-thread.c: Sort headers.
12593 * aarch64-newlib-tdep.c: Sort headers.
12594 * aarch64-linux-tdep.c: Sort headers.
12595 * aarch64-linux-nat.c: Sort headers.
12596 * aarch64-fbsd-tdep.c: Sort headers.
12597 * aarch64-fbsd-nat.c: Sort headers.
12598 * aarch32-linux-nat.c: Sort headers.
12600 2019-04-04 Tom Tromey <tom@tromey.com>
12602 * varobj.c (varobj_create): Update.
12603 * rust-exp.y (struct rust_parser) <update_innermost_block,
12604 lookup_symbol>: New methods.
12605 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12607 (rust_parser::rust_lookup_type)
12608 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12609 * printcmd.c (display_command, do_one_display): Update.
12610 * parser-defs.h (struct parser_state) <parser_state>: Add
12611 "tracker" parameter.
12612 (block_tracker): New member.
12613 (class innermost_block_tracker) <innermost_block_tracker>: Add
12615 <reset>: Remove method.
12616 (innermost_block): Don't declare.
12617 (null_post_parser): Update.
12618 * parse.c (innermost_block): Remove global.
12619 (write_dollar_variable): Update.
12620 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12621 Remove "tracker_types" parameter.
12622 (parse_expression): Add "tracker" parameter.
12623 (parse_expression_for_completion): Update.
12624 (null_post_parser): Add "tracker" parameter.
12625 * p-exp.y: Update rules.
12626 * m2-exp.y: Update rules.
12627 * language.h (struct language_defn) <la_post_parser>: Add
12628 "tracker" parameter.
12629 * go-exp.y: Update rules.
12630 * f-exp.y: Update rules.
12631 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12633 * d-exp.y: Update rules.
12634 * c-exp.y: Update rules.
12635 * breakpoint.c (set_breakpoint_condition): Create an
12636 innermost_block_tracker.
12637 (watch_command_1): Likewise.
12638 * ada-lang.c (resolve): Add "tracker" parameter.
12639 (resolve_subexp): Likewise.
12640 * ada-exp.y (write_var_from_sym): Update.
12642 2019-04-04 Tom Tromey <tom@tromey.com>
12644 * type-stack.h: New file.
12645 * type-stack.c: New file.
12646 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12648 (insert_into_type_stack, insert_type, push_type, push_type_int)
12649 (insert_type_address_space, pop_type, pop_type_int)
12650 (pop_typelist, pop_type_stack, append_type_stack)
12651 (push_type_stack, get_type_stack, push_typelist)
12652 (follow_type_instance_flags, follow_types): Don't declare.
12653 * parse.c (type_stack): Remove global.
12654 (parse_exp_in_context): Update.
12655 (insert_into_type_stack, insert_type, push_type, push_type_int)
12656 (insert_type_address_space, pop_type, pop_type_int)
12657 (pop_typelist, pop_type_stack, append_type_stack)
12658 (push_type_stack, get_type_stack, push_typelist)
12659 (follow_type_instance_flags, follow_types): Remove (moved to
12661 * f-exp.y (type_stack): New global.
12663 (push_kind_type, f_parse): Update.
12664 * d-exp.y (type_stack): New global.
12667 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12669 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12670 (HFILES_NO_SRCDIR): Add type-stack.h.
12672 2019-04-04 Tom Tromey <tom@tromey.com>
12674 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12675 (rust_parser::convert_ast_to_expression, rust_parse)
12676 (rust_lex_test_completion, rust_lex_tests): Update.
12677 * parser-defs.h (struct expr_completion_state): New.
12678 (struct parser_state) <parser_state>: Add completion parameter.
12679 <mark_struct_expression, mark_completion_tag>: New methods.
12680 <parse_completion, m_completion_state>: New members.
12681 (prefixify_expression, null_post_parser): Update.
12682 (mark_struct_expression, mark_completion_tag): Don't declare.
12683 * parse.c (parse_completion, expout_last_struct)
12684 (expout_tag_completion_type, expout_completion_name): Remove
12686 (parser_state::mark_struct_expression)
12687 (parser_state::mark_completion_tag): Now methods.
12688 (prefixify_expression): Add last_struct parameter.
12689 (prefixify_subexp): Likewise.
12690 (parse_exp_1): Update.
12691 (parse_exp_in_context): Add cstate parameter. Update.
12692 (parse_expression_for_completion): Create an
12693 expr_completion_state.
12694 (null_post_parser): Add "completion" parameter.
12695 * p-exp.y: Update rules.
12697 * language.h (struct language_defn) <la_post_parser>: Add
12698 "completing" parameter.
12699 * go-exp.y: Update rules.
12700 (lex_one_token): Update.
12701 * expression.h (parse_completion): Don't declare.
12702 * d-exp.y: Update rules.
12703 (lex_one_token): Update rules.
12704 * c-exp.y: Update rules.
12705 (lex_one_token): Update.
12706 * ada-lang.c (resolve): Add "parse_completion" parameter.
12707 (resolve_subexp): Likewise.
12708 (ada_resolve_function): Likewise.
12710 2019-04-04 Tom Tromey <tom@tromey.com>
12712 * parser-defs.h (struct parser_state) <start_arglist,
12713 end_arglist>: New methods.
12714 <arglist_len, m_funcall_chain>: New members.
12715 (arglist_len, start_arglist, end_arglist): Don't declare.
12716 * parse.c (arglist_len, funcall_chain): Remove global.
12717 (start_arglist, end_arglist): Remove functions.
12718 (parse_exp_in_context): Update.
12719 * p-exp.y: Update rules.
12720 * m2-exp.y: Update rules.
12721 * go-exp.y: Update rules.
12722 * f-exp.y: Update rules.
12723 * d-exp.y: Update rules.
12724 * c-exp.y: Update rules.
12726 2019-04-04 Tom Tromey <tom@tromey.com>
12728 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12729 lex_operator, push_back>: New methods.
12731 (rust_parser::lex_hex, lex_escape): Rename and update.
12732 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12733 (rust_parser::lex_operator): Rename and update.
12734 (rust_parser::lex_number, rustyylex, rustyyerror)
12735 (rust_lex_test_init, rust_lex_test_sequence)
12736 (rust_lex_test_push_back, rust_lex_tests): Update.
12737 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12739 <lexptr, prev_lexptr>: New members.
12740 (lexptr, prev_lexptr): Don't declare.
12741 * parse.c (lexptr, prev_lexptr): Remove globals.
12742 (parse_exp_in_context): Update.
12743 * p-exp.y (yylex, yyerror): Update.
12744 * m2-exp.y (parse_number, yylex, yyerror): Update.
12745 * go-exp.y (lex_one_token, yyerror): Update.
12746 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12747 * d-exp.y (lex_one_token, yyerror): Update.
12748 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12749 (lex_one_token, yyerror): Update.
12750 * ada-lex.l (YY_INPUT): Update.
12751 (rewind_to_char): Update.
12752 * ada-exp.y (yyerror): Update.
12754 2019-04-04 Tom Tromey <tom@tromey.com>
12756 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12757 * parser-defs.h (struct parser_state) <parser_state>: Add new
12759 <comma_terminates>: New member.
12760 (comma_terminates): Don't declare global.
12761 * parse.c (comma_terminates): Remove global.
12762 (parse_exp_in_context): Update.
12763 * p-exp.y (yylex): Update.
12764 * m2-exp.y (yylex): Update.
12765 * go-exp.y (lex_one_token): Update.
12766 * f-exp.y (yylex): Update.
12767 * d-exp.y (lex_one_token): Update.
12768 * c-exp.y (lex_one_token): Update.
12769 * ada-lex.l: Update.
12771 2019-04-04 Tom Tromey <tom@tromey.com>
12773 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12774 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12775 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12776 * parser-defs.h (paren_depth): Don't declare.
12777 * parse.c (paren_depth): Remove global.
12778 (parse_exp_in_context): Update.
12779 * p-exp.y (paren_depth): New global.
12780 (pascal_parse): Initialize it.
12781 * m2-exp.y (paren_depth): New global.
12782 (m2_parse): Initialize it.
12783 * go-exp.y (paren_depth): New global.
12784 (go_parse): Initialize it.
12785 * f-exp.y (paren_depth): New global.
12786 (f_parse): Initialize it.
12787 * d-exp.y (paren_depth): New global.
12788 (d_parse): Initialize it.
12789 * c-exp.y (paren_depth): New global.
12790 (c_parse): Initialize it.
12791 * ada-lex.l (paren_depth): New global.
12792 (lexer_init): Initialize it.
12794 2019-04-04 Tom Tromey <tom@tromey.com>
12796 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12797 (rust_parser::convert_ast_to_type)
12798 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12799 * parser-defs.h (struct parser_state) <parser_state>: Add
12800 parameters. Initialize new members.
12801 <expression_context_block, expression_context_pc>: New members.
12802 * parse.c (expression_context_block, expression_context_pc):
12804 (parse_exp_in_context): Update.
12805 * p-exp.y: Update all rules.
12807 * m2-exp.y: Update all rules.
12809 * go-exp.y (yylex): Update.
12810 * f-exp.y (yylex): Update.
12811 * d-exp.y: Update all rules.
12813 * c-exp.y: Update all rules.
12814 (lex_one_token, classify_name, yylex, c_parse): Update.
12815 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12817 2019-04-04 Tom Tromey <tom@tromey.com>
12819 * gdbarch.h, gdbarch.c: Rebuild.
12820 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12822 (struct stap_parse_info): Replace "parser_state" with
12824 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12825 (parser_state): New class.
12826 * parse.c (expr_builder): Rename.
12827 (expr_builder::release): Rename.
12828 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12829 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12830 (write_exp_elt_longcst, write_exp_elt_floatcst)
12831 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12832 (write_exp_string_vector, write_exp_bitstring)
12833 (write_exp_msymbol, mark_struct_expression)
12834 (write_dollar_variable)
12835 (insert_type_address_space, increase_expout_size): Replace
12836 "parser_state" with "expr_builder".
12837 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12838 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12839 "parser_state" with "expr_builder".
12841 2019-04-04 Tom Tromey <tom@tromey.com>
12843 * rust-exp.y: Replace "parse_language" with method call.
12845 (yylex): Replace "parse_language" with method call.
12847 (yylex): Replace "parse_language" with method call.
12848 * go-exp.y (classify_name): Replace "parse_language" with method
12850 * f-exp.y (yylex): Replace "parse_language" with method call.
12851 * d-exp.y (lex_one_token): Replace "parse_language" with method
12854 (lex_one_token, classify_name, yylex): Replace "parse_language"
12856 * ada-exp.y (find_primitive_type, type_char)
12857 (type_system_address): Replace "parse_language" with method call.
12859 2019-04-04 Tom Tromey <tom@tromey.com>
12861 * rust-exp.y: Replace "parse_gdbarch" with method call.
12862 * parse.c (write_dollar_variable, insert_type_address_space):
12863 Replace "parse_gdbarch" with method call.
12864 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12866 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12868 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12869 "parse_gdbarch" with method call.
12870 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12872 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12873 "parse_gdbarch" with method call.
12874 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12875 "parse_gdbarch" with method call.
12876 * c-exp.y (parse_type, parse_number, classify_name): Replace
12877 "parse_gdbarch" with method call.
12878 * ada-lex.l: Replace "parse_gdbarch" with method call.
12879 * ada-exp.y (parse_type, find_primitive_type, type_char)
12880 (type_system_address): Replace "parse_gdbarch" with method call.
12882 2019-04-04 Tom Tromey <tom@tromey.com>
12884 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12885 * stap-probe.c (stap_parse_argument): Update.
12886 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12887 initial_size parameter.
12888 * rust-exp.y (rust_lex_tests): Update.
12889 * parse.c (parser_state): Update.
12890 (parse_exp_in_context): Update.
12891 * parser-defs.h (struct parser_state) <parser_state>: Remove
12892 "initial_size" parameter.
12894 2019-04-04 Tom Tromey <tom@tromey.com>
12896 * parser-defs.h (increase_expout_size): Don't declare.
12897 * parse.c (increase_expout_size): Now static.
12899 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12901 * gnu-nat.c (gnu_nat_target::wait): Fix
12902 target_waitstatus_to_string call.
12904 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12906 * eval.c (evaluate_subexp_standard): Handle internal functions
12907 during Fortran function call handling.
12909 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12911 * NEWS: Mention new internal functions.
12912 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12913 (read_base_type): Use dwarf2_init_complex_target_type.
12914 * value.c (creal_internal_fn): New function.
12915 (cimag_internal_fn): New function.
12916 (_initialize_values): Register new internal functions.
12918 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12920 * infrun.c (stop_all_threads): If debug_infrun, always
12921 trace the wait status after wait_one, using
12922 target_waitstatus_to_string and target_pid_to_str.
12923 (handle_inferior_event): Replace various trace of
12924 wait status kind by a single trace.
12925 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12926 wait status kind image by target_waitstatus_to_string.
12927 * target/waitstatus.c (target_waitstatus_to_string): Fix
12930 2019-04-01 Tom Tromey <tromey@adacore.com>
12933 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12935 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12936 Pedro Alves <palves@redhat.com>
12938 * top.c (quit_force): Call 'finalize_values'.
12939 * value.c (finalize_values): New function.
12940 * value.h (finalize_values): Declare.
12942 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12944 * NEWS: Announce $_gdb_major and $_gdb_minor.
12946 * top.c (init_gdb_version_vars): New function.
12947 (gdb_init): Call init_gdb_version_vars.
12949 2019-03-29 Tom Tromey <tromey@adacore.com>
12951 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12952 help text. Remove dead code.
12954 2019-03-29 Keith Seitz <keiths@redhat.com>
12956 From Siddhesh Poyarekar:
12957 * f-lang.h (f77_get_upperbound): Return LONGEST.
12958 (f77_get_lowerbound): Likewise.
12959 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12960 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12962 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12963 plongest to format print it.
12964 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12965 (f77_get_upperbound): Likewise.
12966 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12967 LOWER_BOUND to LONGEST.
12968 (f77_create_arrayprint_offset_tbl): Likewise.
12970 2019-03-29 Keith Seitz <keiths@redhat.com>
12972 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12973 %s/pulongest for TYPE_LENGTH instead of %d in format
12975 * ada-typerint.c (ada_print_type): Likewise.
12976 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12977 * compile/compile-c-support.c (generate_register_struct): Likewise.
12978 * gdbtypes.c (recursive_dump_type): Likewise.
12979 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12980 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12981 instead of %d in format strings.
12982 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12983 to std::min to ULONGEST.
12984 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12985 instead of %d in format strings.
12986 * tracepoint.c (info_scope_command): Likewise.
12987 * typeprint.c (print_offset_data::update)
12988 (print_offset_data::finish): Likewise.
12989 * xtensa-tdep.c (xtensa_store_return_value)
12990 (xtensa_push_dummy_call): Likewise.
12992 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12994 * windows-nat.c (display_selector): Fixed format specifications
12997 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12999 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13001 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13003 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13004 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13005 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13006 (nios2_linux_init_abi): Install it.
13008 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13010 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13012 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13014 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13016 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13017 Tom Tromey <tromey@adacore.com>
13019 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13021 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13023 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13024 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13025 method to compute the bounds of range types. Also print "[evaluated]"
13026 if the bounds' values come from a dynamic evaluation.
13028 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13030 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13031 whitespace when pretty printing is on.
13033 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13035 * ppc-linux-nat.c: Add include.
13037 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13039 * NEWS: Mention AArch64 Pointer Authentication.
13041 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13043 * arm-linux-nat.c: Add include.
13045 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13047 * source-cache.c (source_cache::get_source_lines): Re-read
13048 fullname after calling open_source_file.
13050 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13052 * NEWS: Mention TLS support for FreeBSD.
13054 2019-03-25 Tom Tromey <tromey@adacore.com>
13056 * minsyms.c (BUNCH_SIZE): Update comment.
13057 (~minimal_symbol_reader): Remove old comment.
13058 (compact_minimal_symbols): Update comment.
13059 (minimal_symbol_reader::install): Remove old comment. Update
13062 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13064 * s390-linux-nat.c: Add include.
13066 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13068 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13069 Call linux_get_hwcap.
13070 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13072 (aarch64_linux_get_hwcap): Remove function.
13073 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13075 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13077 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13078 * linux-tdep.c (linux_get_hwcap): Add function.
13079 (linux_get_hwcap2): Likewise.
13080 * linux-tdep.h (linux_get_hwcap): Add declaration.
13081 (linux_get_hwcap2): Likewise.
13082 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13083 (ppc_linux_get_hwcap2): Likewise.
13084 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13086 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13087 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13088 (ppc_linux_nat_target::read_description): Likewise.
13089 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13090 * s390-linux-nat.c: Likewise.
13091 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13093 2019-03-24 Tom Tromey <tom@tromey.com>
13095 * ada-lang.c (standard_lookup): Simplify initialization.
13096 (ada_lookup_symbol_nonlocal): Simplify return.
13097 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13098 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13099 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13100 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13102 * solib.c (solib_global_lookup): Simplify.
13103 * symtab.c (null_block_symbol): Remove.
13104 (symbol_cache_lookup): Simplify returns.
13105 (lookup_language_this): Simplify returns.
13106 (lookup_symbol_aux): Simplify return.
13107 (lookup_local_symbol): Simplify returns.
13108 (lookup_global_symbol_from_objfile): Simplify return.
13109 (lookup_symbol_in_objfile_symtabs)
13110 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13111 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13112 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13113 * cp-namespace.c (cp_lookup_bare_symbol)
13114 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13115 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13116 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13117 (cp_lookup_symbol_via_imports): Simplify initialization.
13118 (find_symbol_in_baseclass): Likewise.
13119 * symtab.h (null_block_symbol): Remove.
13120 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13121 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13122 (d_lookup_symbol_module): Likewise.
13123 (find_symbol_in_baseclass): Simplify initialization.
13125 2019-03-24 Tom Tromey <tom@tromey.com>
13127 * expression.h: Don't include symtab.h.
13128 (struct block): Forward declare.
13130 2019-03-24 Tom Tromey <tom@tromey.com>
13132 * c-exp.y (typebase): Remove casts.
13133 * gdbtypes.c (lookup_unsigned_typename, )
13134 (lookup_signed_typename): Remove cast.
13135 * eval.c (parse_to_comma_and_eval): Remove cast.
13136 * parse.c (write_dollar_variable): Remove cast.
13137 * block.h (struct block) <superblock>: Now const.
13138 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13139 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13140 (map_block): Make "block" const.
13141 * symfile.h (struct quick_symbol_functions)
13142 <map_matching_symbols>: Constify block argument to "callback".
13143 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13145 (find_pc_sect_compunit_symtab): Make "b" const.
13146 (find_symbol_at_address): Likewise.
13147 (search_symbols): Likewise.
13148 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13149 (dw2_debug_names_lookup_symbol): Likewise.
13150 (dw2_map_matching_symbols): Update.
13151 * p-valprint.c (pascal_val_print): Remove "block".
13152 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13153 (aux_add_nonlocal_symbols): Make "block" const.
13154 (resolve_subexp): Remove cast.
13155 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13157 (iterate_over_file_blocks): Likewise.
13158 * f-exp.y (%union) <bval>: Remove.
13159 * coffread.c (patch_opaque_types): Make "b" const.
13160 * spu-tdep.c (spu_catch_start): Make "block" const.
13161 * c-valprint.c (print_unpacked_pointer): Remove "block".
13162 * symmisc.c (dump_symtab_1): Make "b" const.
13163 (block_depth): Make "block" const.
13164 * d-exp.y (%union) <bval>: Remove.
13165 * cp-support.h (cp_lookup_rtti_type): Update.
13166 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13167 * psymtab.c (psym_lookup_symbol): Make "block" const.
13168 (maintenance_check_psymtabs): Make "b" const.
13169 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13170 (enumerate_locals, enumerate_args): Update.
13171 * python/py-symtab.c (stpy_global_block): Make "block" const.
13172 (stpy_static_block): Likewise.
13173 * inline-frame.c (block_starting_point_at): Make "new_block"
13175 * block.c (find_block_in_blockvector): Make return type const.
13176 (blockvector_for_pc_sect): Make "b" const.
13177 (find_block_in_blockvector): Make "b" const.
13179 2019-03-23 Tom Tromey <tom@tromey.com>
13181 * varobj.c (varobj_create): Update.
13182 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13183 * printcmd.c (display_command, do_one_display): Don't reset
13185 * parser-defs.h (enum innermost_block_tracker_type): Move to
13187 (innermost_block): Update comment.
13188 * parse.c (parse_exp_1): Add tracker_types parameter.
13189 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13190 tracker_types parameter. Reset innermost_block.
13191 (parse_exp_in_context): Remove.
13192 (parse_expression_for_completion): Update.
13193 * objfiles.c (~objfile): Don't reset expression_context_block or
13195 * expression.h (enum innermost_block_tracker_type): Move from
13197 (parse_exp_1): Add tracker_types parameter.
13198 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13199 reset innermost_block.
13201 2019-03-23 Tom Tromey <tom@tromey.com>
13203 * objfiles.h: Include bcache.h.
13205 2019-03-23 Tom Tromey <tom@tromey.com>
13207 * linespec.c (get_current_search_block): Use
13208 scoped_restore_current_language.
13209 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13211 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13212 Jiong Wang <jiong.wang@arm.com>
13214 * aarch64-linux-tdep.c
13215 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13217 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13219 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13220 Jiong Wang <jiong.wang@arm.com>
13222 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13224 (aarch64_analyze_prologue_test): Add PACIASP test.
13225 (aarch64_prologue_prev_register): Unmask PC value.
13227 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13228 Jiong Wang <jiong.wang@arm.com>
13230 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13231 (aarch64_dwarf2_prev_register): Unmask PC value.
13232 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13233 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13234 DW_CFA_AARCH64_negate_ra_state.
13235 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13237 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13238 Jiong Wang <jiong.wang@arm.com>
13240 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13242 (aarch64_pseudo_register_name): Likewise.
13243 (aarch64_pseudo_register_type): Likewise.
13244 (aarch64_pseudo_register_reggroup_p): Likewise.
13245 (aarch64_gdbarch_init): Add pauth registers.
13246 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13247 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13248 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13249 (struct gdbarch_tdep): Add regnum for ra_state.
13251 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13252 Jiong Wang <jiong.wang@arm.com>
13254 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13256 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13257 Jiong Wang <jiong.wang@arm.com>
13259 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13261 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13262 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13263 (aarch64_gdbarch_init): Add puth registers.
13264 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13265 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13266 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13268 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13269 Jiong Wang <jiong.wang@arm.com>
13271 * aarch64-linux-nat.c
13272 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13273 * aarch64-linux-tdep.c
13274 (aarch64_linux_core_read_description): Likewise.
13275 (aarch64_linux_get_hwcap): New function.
13276 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13277 (aarch64_linux_get_hwcap): New declaration.
13279 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13280 Jiong Wang <jiong.wang@arm.com>
13282 * aarch64-linux-nat.c
13283 (aarch64_linux_nat_target::read_description): Add pauth param.
13284 * aarch64-linux-tdep.c
13285 (aarch64_linux_core_read_description): Likewise.
13286 * aarch64-tdep.c (struct target_desc): Add in pauth.
13287 (aarch64_read_description): Add pauth param.
13288 (aarch64_gdbarch_init): Likewise.
13289 * aarch64-tdep.h (aarch64_read_description): Likewise.
13290 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13291 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13292 * features/Makefile: Add new files.
13293 * features/aarch64-pauth.c: New file.
13294 * features/aarch64-pauth.xml: New file.
13296 2019-03-20 Tom Tromey <tromey@adacore.com>
13298 * infrun.c (handle_inferior_event): Rename from
13299 handle_inferior_event_1. Create a scoped_value_mark.
13300 (handle_inferior_event): Remove.
13302 2019-03-19 Tom Tromey <tromey@adacore.com>
13304 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13305 * infrun.h (print_stop_event): Add "displays" parameter.
13306 * infrun.c (print_stop_event): Add "displays" parameter.
13308 2019-03-19 Pedro Alves <palves@redhat.com>
13310 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13311 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13312 to -1. Fix TABs vs spaces.
13313 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13314 * tui/tui-out.h (tui_ui_out) Add intro comments.
13315 <m_line, m_start_of_line>: In-class initialize, and add describing
13318 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13320 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13322 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13324 2019-03-18 Pedro Alves <palves@redhat.com>
13325 Eli Zaretskii <eliz@gnu.org>
13327 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13328 m_line and m_start_of_line.
13330 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13332 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13333 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13334 it returns a newline. This fixes a regression in TU mode, whereby
13335 the next line is output on the same screen line as the user input.
13337 2019-03-18 Tom Tromey <tromey@adacore.com>
13339 * minsyms.c (minimal_symbol_reader::install): Remove call to
13342 2019-03-18 Pedro Alves <palves@redhat.com>
13344 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13346 (apply_style): New, factored out from ...
13347 (apply_ansi_escape): ... this. Handle reverse video mode.
13348 (tui_set_reverse_mode): New function.
13349 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13350 * tui/tui-winsource.c (tui_show_source_line): Use
13351 tui_set_reverse_mode instead of setting A_STANDOUT.
13352 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13353 New setter methods.
13355 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13357 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13360 2019-03-18 Tom Tromey <tromey@adacore.com>
13362 * ada-lang.c (empty_array): Add "high" parameter.
13363 (ada_evaluate_subexp): Update.
13365 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13367 * unittests/string_view-selftests.c: Define
13368 _initialize_string_view_selftests unconditionally.
13370 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13373 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13375 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13378 * windows-nat.c (display_selector): Fix format specifiers.
13380 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13382 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13383 tui_refill_source_window instead of tui_refresh_win, to update the
13384 current execution line. This fixes redisplay of the current line
13385 when stepping through the code with "next" or "step".
13387 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13389 * source-cache.c (source_cache::get_source_lines): Call
13390 find_source_lines to initialize s->nlines. This fixes vertical
13391 scrolling of TUI source window when the DOWN arrow is pressed.
13393 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13395 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13396 linux-thread-db.c (_initialize_thread_db): Likewise.
13398 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13400 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13401 wclrtoeol in tui_show_source_line". This reverts changes made in
13402 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13404 2019-03-15 Tom Tromey <tom@tromey.com>
13406 * symtab.h (struct minimal_symbol): Derive from
13407 general_symbol_info.
13408 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13409 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13410 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13411 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13412 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13413 (MSYMBOL_SEARCH_NAME): Update.
13414 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13415 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13416 * minsyms.c (minimal_symbol_reader::record_full): Update.
13418 2019-03-15 Tom Tromey <tom@tromey.com>
13420 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13422 2019-03-15 Tom Tromey <tom@tromey.com>
13424 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13425 unique_xmalloc_ptr.
13426 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13428 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13429 (build_minimal_symbol_hash_tables)
13430 (minimal_symbol_reader::install): Update.
13432 2019-03-15 Tom Tromey <tom@tromey.com>
13434 * symtab.c (create_demangled_names_hash): Update.
13435 (symbol_set_names): Update.
13436 * objfiles.h (struct objfile_per_bfd_storage)
13437 <demangled_names_hash>: Now an htab_up.
13438 * objfiles.c (objfile_per_bfd_storage): Simplify.
13440 2019-03-15 Tom Tromey <tom@tromey.com>
13442 * objfiles.h (struct objfile_per_bfd_storage): Declare
13444 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13446 (get_objfile_bfd_data): Use new. Don't initialize
13448 (free_objfile_per_bfd_storage): Remove.
13449 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13451 2019-03-15 Tom Tromey <tom@tromey.com>
13453 * symfile.c (reread_symbols): Update.
13454 * objfiles.c (objfile::objfile): Update.
13455 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13456 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13458 (minimal_symbol_reader::install): Update.
13459 (terminate_minimal_symbol_table): Remove.
13460 * jit.c (jit_object_close_impl): Update.
13462 2019-03-15 Tom Tromey <tom@tromey.com>
13464 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13467 2019-03-15 Tom Tromey <tom@tromey.com>
13469 * objfiles.h (struct objfile_per_bfd_storage)
13470 <demangled_hash_languages>: Now a bitset.
13471 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13472 (lookup_minimal_symbol): Update.
13474 2019-03-15 Tom Tromey <tom@tromey.com>
13476 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13477 Don't return the symbol.
13478 * coffread.c (record_minimal_symbol): Use record_full.
13480 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13482 The MS-Windows port of ncurses fails to switch to a color pair if
13483 one or both of the colors are the implicit default colors. This
13484 change records the default colors when TUI is initialized, and
13485 then specifies them explicitly when a color pair uses the default
13486 colors. This allows color styling in TUI mode on MS-Windows.
13488 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13490 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13491 colors in ncurses_norm_attr.
13492 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13493 "none", replace it with the default color recorded in
13496 2019-03-14 Tom Tromey <tromey@adacore.com>
13498 * source-cache.h (class source_cache) <get_source_lines>: Return
13500 * source-cache.c (source_cache::extract_lines): Handle case where
13501 first_pos==npos. Return std::string.
13502 (source_cache::get_source_lines): Update.
13504 2019-03-14 Tom Tromey <tromey@adacore.com>
13506 * NEWS: Add item for "style sources" commands.
13507 * source-cache.c (source_cache::get_source_lines): Check
13509 * cli/cli-style.c (source_styling): New global.
13510 (_initialize_cli_style): Add "style sources" commands.
13511 (show_style_sources): New function.
13512 * cli/cli-style.h (source_styling): Declare.
13514 2019-03-14 Pedro Alves <palves@redhat.com>
13515 Tom Tromey <tromey@adacore.com>
13517 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13518 * tui/tui-winsource.c (tui_refill_source_window): New function,
13520 (tui_horizontal_source_scroll): ... here. Move some logic.
13521 * cli/cli-style.c (set_style_enabled): Notify new observable.
13522 * tui/tui-hooks.c (tui_redisplay_source): New function.
13523 (tui_attach_detach_observers): Attach or detach
13524 tui_redisplay_source.
13525 * observable.h (source_styling_changed): New observable.
13526 * observable.c: Define source_styling_changed observable.
13528 2019-03-13 Tom Tromey <tromey@adacore.com>
13530 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13531 (i386_gnu_nat_target::store_registers): Update.
13532 * target-debug.h (target_debug_print_std_string): New macro.
13533 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13534 * windows-tdep.c (display_one_tib): Update.
13535 * tui/tui-stack.c (tui_make_status_line): Update.
13536 * top.c (print_inferior_quit_action): Update.
13537 * thread.c (thr_try_catch_cmd): Update.
13538 (add_thread_with_info): Update.
13539 (thread_target_id_str): Update.
13540 (thr_try_catch_cmd): Update.
13541 (thread_command): Update.
13542 (thread_find_command): Update.
13543 * record-btrace.c (record_btrace_target::info_record)
13544 (record_btrace_resume_thread, record_btrace_target::resume)
13545 (record_btrace_cancel_resume, record_btrace_step_thread)
13546 (record_btrace_target::wait, record_btrace_target::wait)
13547 (record_btrace_target::wait, record_btrace_target::stop): Update.
13548 * progspace.c (print_program_space): Update.
13549 * process-stratum-target.c
13550 (process_stratum_target::thread_address_space): Update.
13551 * linux-fork.c (linux_fork_mourn_inferior)
13552 (detach_checkpoint_command, info_checkpoints_command)
13553 (linux_fork_context): Update.
13554 (linux_fork_detach): Update.
13555 (class scoped_switch_fork_info): Update.
13556 (delete_checkpoint_command): Update.
13557 * infrun.c (follow_fork_inferior): Update.
13558 (follow_fork_inferior): Update.
13559 (proceed_after_vfork_done): Update.
13560 (handle_vfork_child_exec_or_exit): Update.
13561 (follow_exec): Update.
13562 (displaced_step_prepare_throw): Update.
13563 (displaced_step_restore): Update.
13564 (start_step_over): Update.
13565 (resume_1): Update.
13566 (clear_proceed_status_thread): Update.
13568 (print_target_wait_results): Update.
13569 (do_target_wait): Update.
13570 (context_switch): Update.
13571 (stop_all_threads): Update.
13572 (restart_threads): Update.
13573 (finish_step_over): Update.
13574 (handle_signal_stop): Update.
13575 (switch_back_to_stepped_thread): Update.
13576 (keep_going_pass_signal): Update.
13577 (print_exited_reason): Update.
13578 (normal_stop): Update.
13579 * inferior.c (inferior_pid_to_str): Change return type.
13580 (print_selected_inferior): Update.
13581 (add_inferior): Update.
13582 (detach_inferior): Update.
13583 * dummy-frame.c (fprint_dummy_frames): Update.
13584 * dcache.c (dcache_info_1): Update.
13585 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13586 (btrace_fetch, btrace_clear): Update.
13587 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13588 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13590 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13591 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13592 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13593 * gdbarch.c, gdbarch.h: Rebuild.
13594 * gdbarch.sh (core_pid_to_str): Change return type.
13595 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13597 (windows_nat_target::pid_to_str): Change return type.
13598 (windows_delete_thread): Update.
13599 (windows_nat_target::attach): Update.
13600 (windows_nat_target::files_info): Update.
13601 * target-delegates.c: Rebuild.
13602 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13604 (sol_thread_target::pid_to_str): Change return type.
13605 * remote.c (class remote_target) <pid_to_str>: Change return
13607 (remote_target::pid_to_str): Change return type.
13608 (extended_remote_target::attach, remote_target::remote_stop_ns)
13609 (remote_target::remote_notif_remove_queued_reply)
13610 (remote_target::push_stop_reply, remote_target::disable_btrace):
13612 (extended_remote_target::attach): Update.
13613 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13615 (gdbsim_target::pid_to_str): Change return type.
13616 * ravenscar-thread.c (struct ravenscar_thread_target)
13617 <pid_to_str>: Change return type.
13618 (ravenscar_thread_target::pid_to_str): Change return type.
13619 * procfs.c (class procfs_target) <pid_to_str>: Change return
13621 (procfs_target::pid_to_str): Change return type.
13622 (procfs_target::attach): Update.
13623 (procfs_target::detach): Update.
13624 (procfs_target::fetch_registers): Update.
13625 (procfs_target::store_registers): Update.
13626 (procfs_target::wait): Update.
13627 (procfs_target::files_info): Update.
13628 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13629 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13631 (nto_procfs_target::pid_to_str): Change return type.
13632 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13633 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13635 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13636 (exit_lwp): Update.
13637 (attach_proc_task_lwp_callback, get_detach_signal)
13638 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13639 (linux_nat_target::resume, wait_lwp, stop_callback)
13640 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13641 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13642 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13643 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13644 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13646 (inf_ptrace_target::attach): Update.
13647 (inf_ptrace_target::files_info): Update.
13648 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13650 (go32_nat_target::pid_to_str): Change return type.
13651 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13652 (gnu_nat_target::wait): Update.
13653 (gnu_nat_target::wait): Update.
13654 (gnu_nat_target::resume): Update.
13655 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13656 (fbsd_nat_target::wait): Update.
13657 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13659 (darwin_nat_target::attach): Update.
13660 * corelow.c (class core_target) <pid_to_str>: Change return type.
13661 (core_target::pid_to_str): Change return type.
13662 * target.c (normal_pid_to_str): Change return type.
13663 (default_pid_to_str): Likewise.
13664 (target_pid_to_str): Change return type.
13665 (target_translate_tls_address): Update.
13666 (target_announce_detach): Update.
13667 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13669 (bsd_uthread_target::pid_to_str): Change return type.
13670 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13672 (bsd_kvm_target::pid_to_str): Change return type.
13673 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13675 (aix_thread_target::pid_to_str): Change return type.
13676 * target.h (struct target_ops) <pid_to_str>: Change return type.
13677 (target_pid_to_str, normal_pid_to_str): Likewise.
13678 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13680 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13682 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13684 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13686 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13688 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13691 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13693 * NEWS: Mention that the new default MI version is 3. Mention
13694 changes to the output of commands and events that deal with
13695 multi-location breakpoints.
13696 * breakpoint.c: Include "mi/mi-out.h".
13697 (print_one_breakpoint): Change output syntax if using MI version
13699 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13701 (mi_multi_location_breakpoint_output_fixed): New.
13702 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13703 (mi_cmd_fix_multi_location_breakpoint_output): New.
13704 (mi_multi_location_breakpoint_output_fixed): New.
13705 * mi/mi-cmds.c (mi_cmds): Register command
13706 -fix-multi-location-breakpoint-output.
13707 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13710 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13712 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13713 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13714 instantiate mi_ui_out based on interpreter name.
13715 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13716 * mi/mi-main.c (mi_load_progress): Likewise.
13718 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13720 * NEWS: Combine separate "New targets" sections for 8.3.
13722 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13724 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13725 (ppcfbsd_init_abi): Install gdbarch
13726 "fetch_tls_load_module_address" and "get_thread_local_address"
13729 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13731 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13732 (riscv_fbsd_init_abi): Install gdbarch
13733 "fetch_tls_load_module_address" and "get_thread_local_address"
13736 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13738 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13739 (i386fbsd_init_abi): Install gdbarch
13740 "fetch_tls_load_module_address" and "get_thread_local_address"
13743 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13745 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13746 (amd64fbsd_init_abi): Install gdbarch
13747 "fetch_tls_load_module_address" and "get_thread_local_address"
13750 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13752 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13753 (struct fbsd_pspace_data): New type.
13754 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13755 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13756 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13757 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13758 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13760 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13762 * gdbtypes.c (lookup_struct_elt): New function.
13763 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13764 * gdbtypes.h (struct struct_elt): New type.
13765 (lookup_struct_elt): New prototype.
13767 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13769 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13770 remove disabled code block.
13772 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13774 * gdbarch.sh (get_thread_local_address): New method.
13775 * gdbarch.h, gdbarch.c: Regenerate.
13776 * target.c (target_translate_tls_address): Use
13777 gdbarch_get_thread_local_address if present instead of
13778 target::get_thread_local_address.
13780 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13782 * target.h (target::get_thread_local_address): Update comment.
13784 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13786 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13787 objfile->separate_debug_objfile_backlink if not NULL.
13789 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13791 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13792 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13793 (amd64bsd_store_inferior_registers): Likewise.
13794 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13795 Enable segment base registers.
13796 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13797 PT_GETFSBASE and PT_GETGSBASE.
13798 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13800 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13801 segment base registers.
13802 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13804 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13806 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13807 Update calls to i386_target_description to add 'segments'
13809 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13810 add segment base registers.
13811 * arch/i386.c (i386_create_target_description): Add 'segments'
13812 parameter to enable segment base registers.
13813 * arch/i386.h (i386_create_target_description): Likewise.
13814 * features/i386/32bit-segments.xml: New file.
13815 * features/i386/32bit-segments.c: Generate.
13816 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13817 call to i386_target_description to add 'segments' parameter.
13818 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13819 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13820 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13821 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13822 if feature is present.
13823 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13824 Add 'segments' parameter to call to i386_target_description.
13825 (i386_target_description): Add 'segments' parameter to enable
13826 segment base registers.
13827 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13828 to call to i386_target_description.
13829 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13830 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13831 Define I386_NUM_REGS.
13832 (i386_target_description): Add 'segments' parameter to enable
13833 segment base registers.
13835 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13838 * source-cache.c: #undef open and close, to avoid unresolved
13839 externals during linking.
13841 2019-03-12 Tom Tromey <tromey@adacore.com>
13843 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13844 const. Add initializers.
13845 (_initialize_remote): Don't initialize ptid globals.
13847 2019-03-12 Pedro Alves <palves@redhat.com>
13849 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13851 2019-03-12 Pedro Alves <palves@redhat.com>
13853 * cp-name-parser.y (main): Remove unused 'len' variable.
13855 2019-03-12 Tom Tromey <tromey@adacore.com>
13857 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13858 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13860 2019-03-12 Tom Tromey <tromey@adacore.com>
13862 * linux-nat.c (iterate_over_lwps): Update.
13863 (stop_callback): Remove parameter.
13864 (stop_wait_callback, detach_callback, resume_set_callback)
13865 (select_singlestep_lwp_callback, set_ignore_sigint)
13866 (status_callback, resumed_callback, resume_clear_callback)
13867 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13869 (linux_nat_target::detach, linux_nat_target::resume)
13870 (linux_stop_and_wait_all_lwps, select_event_lwp)
13871 (linux_nat_filter_event, linux_nat_wait_1)
13872 (linux_nat_target::kill, linux_nat_target::stop)
13873 (linux_nat_target::stop): Update.
13874 (linux_nat_resume_callback): Change type.
13875 (resume_stopped_resumed_lwps, count_events_callback)
13876 (select_event_lwp_callback): Likewise.
13877 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13878 * arm-linux-nat.c (struct update_registers_data): Remove.
13879 (update_registers_callback): Change type.
13880 (arm_linux_insert_hw_breakpoint1): Update.
13881 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13883 (x86_linux_dr_set_addr): Update.
13884 (x86_linux_dr_set_control): Update.
13885 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13886 (iterate_over_lwps): Use gdb::function_view.
13887 * nat/aarch64-linux-hw-point.c (struct
13888 aarch64_dr_update_callback_param): Remove.
13889 (debug_reg_change_callback): Change type.
13890 (aarch64_notify_debug_reg_change): Update.
13891 * s390-linux-nat.c (s390_refresh_per_info): Update.
13893 2019-03-11 Tom Tromey <tromey@adacore.com>
13895 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13896 redundant assignment to "this_cu".
13898 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13900 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13902 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13904 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13906 (rank_one_type): ... this.
13908 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13910 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13912 (rank_one_type): ... this.
13914 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13916 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13918 (rank_one_type): ... this.
13920 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13922 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13924 (rank_one_type): ... this.
13926 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13928 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13930 (rank_one_type): ... this.
13932 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13934 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13936 (rank_one_type): ... this.
13938 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13940 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13942 (rank_one_type): ... this.
13944 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13946 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13948 (rank_one_type): ... this.
13950 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13952 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13954 (rank_one_type): ... this.
13956 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13958 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13960 (rank_one_type): ... this.
13962 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13964 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13966 (rank_one_type): ... this.
13968 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13970 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13972 (rank_one_type): ... this.
13974 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13976 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13977 inferior-events' shows the example events.
13979 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13981 Support styling on native MS-Windows console
13984 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13985 on MS-Windows if $TERM is not defined.
13987 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13989 * posix-hdep.c (gdb_console_fputs):
13990 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13992 * ui-file.h (gdb_console_fputs): Add prototype.
13994 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13995 back to fputs only if the former returns zero.
13997 2019-03-07 Tom Tromey <tom@tromey.com>
13999 * symmisc.c (print_symbol_bcache_statistics): Update.
14000 (print_objfile_statistics): Update.
14001 * symfile.c (allocate_symtab): Update.
14002 * stabsread.c: Don't include bcache.h.
14003 * psymtab.h (struct psymbol_bcache): Don't declare.
14004 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14005 (psymbol_bcache_init, psymbol_bcache_free)
14006 (psymbol_bcache_get_bcache): Don't declare.
14007 * psymtab.c (struct psymbol_bcache): Remove.
14008 (psymtab_storage::psymtab_storage): Update.
14009 (psymtab_storage::~psymtab_storage): Update.
14010 (psymbol_bcache_init, psymbol_bcache_free)
14011 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14012 (add_psymbol_to_bcache): Update.
14013 (allocate_psymtab): Update.
14014 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14015 macro_cache>: No longer pointers.
14016 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14017 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14018 * macrotab.c (macro_bcache): Update.
14019 * macroexp.c: Don't include bcache.h.
14020 * gdbtypes.c (check_types_worklist): Update.
14021 (types_deeply_equal): Remove TRY/CATCH. Update.
14022 * elfread.c (elf_symtab_read): Update.
14023 * dwarf2read.c: Don't include bcache.h.
14024 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14025 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14026 (print_bcache_statistics, bcache_memory_used): Don't declare.
14027 (struct bcache): Move from bcache.c. Add constructor, destructor,
14028 methods. Rename all data members.
14029 * bcache.c (struct bcache): Move to bcache.h.
14030 (bcache::expand_hash_table): Rename from expand_hash_table.
14032 (bcache::insert): Rename from bcache_full.
14033 (bcache::compare): Rename from bcache_compare.
14034 (bcache_xmalloc): Remove.
14035 (bcache::~bcache): Rename from bcache_xfree.
14036 (bcache::print_statistics): Rename from print_bcache_statistics.
14037 (bcache::memory_used): Rename from bcache_memory_used.
14039 2019-03-07 Pedro Alves <palves@redhat.com>
14041 * infrun.c (normal_stop): Also check for
14042 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14044 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14046 * f-lang.c (value_from_host_double): Moved to...
14047 * value.c (value_from_host_double): ...here.
14048 * value.h (value_from_host_double): Declare.
14049 * guile/scm-math.c (vlscm_convert_typed_number): Use
14050 value_from_host_double.
14051 (vlscm_convert_number): Likewise.
14052 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14053 * python/py-value.c (convert_value_from_python): Likewise.
14055 2019-03-06 Tom Tromey <tom@tromey.com>
14057 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14059 2019-03-06 Tom Tromey <tom@tromey.com>
14061 * utils.h (free_current_contents): Don't declare.
14062 * utils.c (free_current_contents): Remove.
14064 2019-03-06 Tom Tromey <tom@tromey.com>
14066 * top.c (quit_force): Update.
14067 * main.c (captured_command_loop): Update.
14068 * common/new-op.c (operator new): Update.
14069 * common/common-exceptions.c (struct catcher)
14070 <save_cleanup_chain>: Remove member.
14071 (exceptions_state_mc_init): Update.
14072 (exception_try_scope_entry): Return nullptr.
14073 (exception_try_scope_exit, exception_rethrow)
14074 (throw_exception_sjlj, throw_exception_cxx): Update.
14075 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14076 (all_cleanups, do_cleanups, discard_cleanups)
14077 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14078 (restore_cleanups, restore_final_cleanups): Don't declare.
14079 (do_final_cleanups): Remove parameter.
14080 * common/cleanups.c (cleanup_chain, make_cleanup)
14081 (make_cleanup_dtor, all_cleanups, do_cleanups)
14082 (discard_my_cleanups, discard_cleanups)
14083 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14084 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14085 (null_cleanup): Remove.
14086 (do_final_cleanups): Remove parameter.
14088 2019-03-06 Tom Tromey <tom@tromey.com>
14090 * remote.c (remote_target::remote_parse_stop_reply): Use
14091 unique_xmalloc_ptr.
14093 2019-03-06 Tom Tromey <tom@tromey.com>
14095 * stabsread.c (struct stabs_field_info): Rename from field_info.
14096 <list, fnlist>: Add initializers.
14097 <obstack>: New member.
14098 (read_member_functions, read_struct_fields, read_baseclasses):
14099 Allocate on obstack. Don't use cleanups.
14100 (read_one_struct_field, read_member_functions, read_struct_fields)
14101 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14102 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14103 (read_struct_type): Update.
14105 2019-03-06 Tom Tromey <tom@tromey.com>
14107 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14108 * common/filestuff.h (make_cleanup_close): Don't declare.
14109 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14112 2019-03-06 Tom Tromey <tom@tromey.com>
14114 * solib-aix.c: Use make_scope_exit.
14116 2019-03-06 Tom Tromey <tom@tromey.com>
14118 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14119 Use make_scope_exit.
14121 2019-03-06 Tom Tromey <tom@tromey.com>
14123 * solib-svr4.c (disable_probes_interface): Remove parameter.
14124 (svr4_handle_solib_event): Use make_scope_exit.
14126 2019-03-06 Tom Tromey <tom@tromey.com>
14128 * remote.c (struct stop_reply_deleter): Remove.
14129 (stop_reply_up): Update.
14130 (struct stop_reply): Derive from notif_event. Don't typedef.
14131 <regcache>: Now a std::vector.
14132 (stop_reply_xfree): Remove.
14133 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14134 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14135 (remote_target::discard_pending_stop_replies): Use delete.
14136 (remote_target::remote_parse_stop_reply): Update.
14137 (remote_target::process_stop_reply): Update.
14138 * remote-notif.h (struct notif_event): Add virtual destructor.
14139 Remove "dtr" member.
14140 (struct notif_client) <alloc_event>: Return a unique_ptr.
14141 (notif_event_xfree): Don't declare.
14142 (notif_event_up): New typedef.
14143 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14144 (notif_event_xfree, do_notif_event_xfree): Remove.
14145 (remote_notif_state_xfree): Update.
14147 2019-03-06 Tom Tromey <tom@tromey.com>
14149 * infrun.c (displaced_step_clear_cleanup): Now a
14150 forward_scope_exit type.
14151 (displaced_step_prepare_throw): Update.
14152 (displaced_step_fixup): Update.
14154 2019-03-06 Tom Tromey <tom@tromey.com>
14156 * inferior.h (class inferior): Update comment.
14157 * gdbthread.h (class thread_info): Update comment.
14159 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14160 Tom Tromey <tom@tromey.com>
14162 * stabsread.h (struct stab_section_list): Remove.
14163 (coffstab_build_psymtabs): Update.
14164 * dbxread.c (symbuf_sections): Now a std::vector.
14165 (sect_idx): New global.
14166 (fill_symbuf): Update.
14167 (coffstab_build_psymtabs): Change type of stabsects parameter.
14169 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14171 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14172 (coff_locate_sections): Update.
14173 (coff_symfile_read): Remove cleanups. Update.
14174 (init_stringtab): Add storage parameter.
14175 (free_stringtab, free_stringtab_cleanup): Remove.
14176 (init_lineno): Add storage parameter.
14177 (free_linetab, free_linetab_cleanup): Remove.
14179 2019-03-06 Pedro Alves <palves@redhat.com>
14181 * linux-fork.c (fork_info::clobber_regs): Delete.
14182 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14183 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14185 (scoped_switch_fork_info::scoped_switch_fork_info)
14186 (checkpoint_command, linux_fork_context): Adjust
14187 fork_save_infrun_state calls.
14189 2019-03-06 Pedro Alves <palves@redhat.com>
14191 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14192 (inf_has_multiple_threads): Return 'bool' and rewrite using
14193 inferior_info::threads().
14195 2019-03-06 Pedro Alves <palves@redhat.com>
14197 * linux-fork.c: Include <list>.
14198 (fork_list): Now a std::list instance.
14199 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14200 (forks_exist_p, find_last_fork): Adjust.
14201 (new_fork): Delete.
14203 (add_fork): Adjust.
14204 (free_fork): Delete, folded into fork_info::~fork_info().
14205 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14207 (init_fork_list): Delete.
14208 (linux_fork_killall, linux_fork_mourn_inferior)
14209 (linux_fork_detach, info_checkpoints_command): Adjust.
14210 (_initialize_linux_fork): No longer call init_fork_list.
14212 2019-03-06 Pedro Alves <palves@redhat.com>
14214 * linux-fork.c (new_fork): New, split out of ...
14215 (add_fork): ... this. Return void. Move "first fork" special
14216 case from here, to ...
14217 (checkpoint_command): ... here.
14218 * linux-linux.h (add_fork): Return void.
14220 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14222 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14224 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14225 Chris January <chris.january@arm.com>
14226 David Lecomber <david.lecomber@arm.com>
14228 * f-exp.y: New token, UNOP_INTRINSIC.
14229 (exp): New pattern using UNOP_INTRINSIC token.
14230 (f77_keywords): Add 'abs' keyword.
14231 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14232 (value_from_host_double): New function.
14233 (evaluate_subexp_f): Support UNOP_ABS.
14235 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14237 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14240 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14242 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14243 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14244 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14246 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14248 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14250 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14251 Chris January <chris.january@arm.com>
14253 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14254 * f-exp.y: Define 'KIND' token.
14255 (exp): New pattern for KIND expressions.
14256 (ptype): Handle types with a kind extension.
14257 (direct_abs_decl): Extend to spot kind extensions.
14258 (f77_keywords): Add 'kind' to the list.
14259 (push_kind_type): New function.
14260 (convert_to_kind_type): New function.
14261 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14262 * parse.c (operator_length_standard): Likewise.
14263 * parser-defs.h (enum type_pieces): Add tp_kind.
14264 * std-operator.def: Add UNOP_KIND.
14266 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14268 * f-exp.y (f_parse): Set yydebug.
14270 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14272 * f-lang.c (evaluate_subexp_f): New function.
14273 (exp_descriptor_f): New global.
14274 (f_language_defn): Use exp_descriptor_f instead of
14275 exp_descriptor_standard.
14277 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14279 * f-exp.y (struct token): Add comments.
14280 (dot_ops): Remove uppercase versions and the end marker.
14281 (f77_keywords): Likewise.
14282 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14283 entries in the dot_ops array are case insensitive, and use
14284 strncasecmp to compare strings. Also some whitespace cleanup in
14285 this area. Similar for the f77_keywords array, except entries in
14286 this list might be case sensitive.
14288 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14290 * f-exp.y (struct f77_boolean_val): Add comments.
14291 (boolean_values): Remove uppercase versions, and end marker.
14292 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14293 and use strncasecmp to achieve case insensitivity. Additionally,
14294 perform whitespace cleanup around this code.
14296 2019-03-06 Tom Tromey <tromey@adacore.com>
14298 * remote-sim.c (gdbsim_target_open): Use result of
14301 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14302 Dirk Schubert <dirk.schubert@arm.com>
14303 Chris January <chris.january@arm.com>
14305 * eval.c (evaluate_subexp_standard): Call Fortran argument
14307 * f-lang.c (struct value): A value which can be passed into a
14308 Fortran function call.
14309 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14311 (struct type): Value ready for a Fortran function call.
14312 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14314 * f-lang.h (fortran_argument_convert): Declaration.
14315 (fortran_preserve_arg_pointer): Declaration.
14316 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14318 2019-03-05 Tom Tromey <tromey@adacore.com>
14320 * python/py-prettyprint.c (print_string_repr): Remove #if.
14321 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14323 2019-03-05 Tom Tromey <tromey@adacore.com>
14325 * target.c (the_dummy_target): Move later. Change type to
14327 (initialize_targets): Don't initialize the_dummy_target.
14329 2019-03-05 Tom Tromey <tromey@adacore.com>
14331 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14332 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14334 2019-03-05 Tom Tromey <tromey@adacore.com>
14336 * windows-nat.c (windows_nat_target::attach)
14337 (windows_nat_target::detach): Don't call gdb_flush.
14338 * valprint.c (generic_val_print, val_print, val_print_string):
14339 Don't call gdb_flush.
14340 * utils.c (defaulted_query): Don't call gdb_flush.
14341 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14342 * target.c (target_announce_detach): Don't call gdb_flush.
14343 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14344 * remote.c (extended_remote_target::attach): Don't call
14346 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14347 * printcmd.c (do_examine): Don't call gdb_flush.
14348 (info_display_command): Don't call gdb_flush.
14349 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14350 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14351 * memattr.c (info_mem_command): Don't call gdb_flush.
14352 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14353 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14354 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14355 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14356 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14357 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14358 (gnu_nat_target::detach): Don't call gdb_flush.
14359 * f-valprint.c (f_val_print): Don't call gdb_flush.
14360 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14361 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14362 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14364 * c-valprint.c (c_val_print): Don't call gdb_flush.
14365 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14367 2019-03-05 Tom Tromey <tromey@adacore.com>
14369 * varobj.c (update_dynamic_varobj_children): Update.
14370 (install_default_visualizer): Use reset, not release.
14371 * value.c (set_internalvar): Update.
14372 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14373 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14374 ATTRIBUTE_UNUSED_RESULT.
14376 2019-03-05 Tom Tromey <tromey@adacore.com>
14378 * remote.c (class scoped_remote_fd) <release>: Add
14379 ATTRIBUTE_UNUSED_RESULT.
14381 2019-03-05 Tom Tromey <tromey@adacore.com>
14383 * macroexp.c (struct macro_buffer) <release>: Add
14384 ATTRIBUTE_UNUSED_RESULT.
14386 2019-03-05 Tom Tromey <tromey@adacore.com>
14388 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14389 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14390 ATTRIBUTE_UNUSED_RESULT.
14392 2019-03-05 Tom Tromey <tromey@adacore.com>
14394 * common/scoped_fd.h (class scoped_fd) <release>: Add
14395 ATTRIBUTE_UNUSED_RESULT.
14397 2019-03-05 Tom Tromey <tromey@adacore.com>
14399 * parser-defs.h (struct parser_state) <release>: Add
14400 ATTRIBUTE_UNUSED_RESULT.
14402 2019-03-05 Tom Tromey <tromey@adacore.com>
14404 * utils.h (class gdb_argv) <release>: Add
14405 ATTRIBUTE_UNUSED_RESULT.
14406 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14408 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14410 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14411 for-loop range, to avoid compiler warnings.
14413 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14414 avoid compiler warnings about unused variables.
14416 * NEWS: Mention end of support for native debugging on MS-Windows
14420 * common/netstuff.c:
14421 * gdbserver/gdbreplay.c
14422 * gdbserver/remote-utils.c:
14424 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14425 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14426 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14427 'getaddrinfo' and 'freeaddrinfo' were not available before
14428 Windows XP, and mingw.org's MinGW headers by default define
14429 _WIN32_WINNT to 0x500.
14431 2019-03-01 Gary Benson <gbenson@redhat.com>
14433 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14435 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14436 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14439 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14440 set_sigint_trap, clear_sigint_trap.
14442 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14444 * target.c (target_detach): Clear the regcache and the
14447 2019-02-27 Pedro Alves <palves@redhat.com>
14449 * utils.c (set_screen_size): When we cap the height/width sizes,
14450 tweak the corresponding command variable to show "unlimited":
14452 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14453 Pedro Alves <palves@redhat.com>
14455 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14456 before calling rl_set_screen_size.
14458 2019-02-27 Tom Tromey <tromey@adacore.com>
14460 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14462 * python/py-value.c: Remove Python 2.4 workaround.
14463 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14465 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14466 Python 2.4 workaround.
14467 * python/python-internal.h: Remove Python 2.4 comment.
14468 (Py_ssize_t): Don't define.
14469 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14470 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14471 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14472 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14473 * python/python.c (do_start_initialization): Remove Python 2.4
14475 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14476 (print_children): Remove Python 2.4 workaround.
14477 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14479 (CHARBUFFERPROC_NAME): Remove.
14480 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14481 Python 2.4 workaround.
14483 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14485 * NEWS: Note minimum Python version.
14487 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14489 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14490 code from these functions. Remove corresponding ifdefs. Use
14491 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14492 Remove gotos and target of gotos.
14493 (infpy_search_memory): Likewise.
14495 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14497 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14498 (hppa_gdbarch_init): Don't register deleted functions with
14501 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14503 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14504 (h8300_unwind_sp): Delete.
14505 (h8300_dummy_id): Delete.
14506 (h8300_gdbarch_init): Don't register deleted functions with
14509 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14511 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14512 (ft32_unwind_pc): Delete.
14513 (ft32_unwind_sp): Delete.
14514 (ft32_gdbarch_init): Don't register deleted functions with
14517 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14519 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14520 (frv_unwind_pc): Delete.
14521 (frv_unwind_sp): Delete.
14522 (frv_gdbarch_init): Don't register deleted functions with
14525 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14527 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14528 (riscv_unwind_pc): Delete.
14529 (riscv_unwind_sp): Delete.
14530 (riscv_gdbarch_init): Don't register deleted functions with
14533 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14535 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14536 (csky_unwind_pc): Delete.
14537 (csky_unwind_sp): Delete.
14538 (csky_gdbarch_init): Don't register deleted functions with
14541 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14543 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14544 (cris_unwind_pc): Delete.
14545 (cris_unwind_sp): Delete.
14546 (cris_gdbarch_init): Don't register deleted functions with
14549 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14551 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14552 (bfin_unwind_pc): Delete.
14553 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14555 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14557 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14558 (arm_unwind_pc): Delete.
14559 (arm_unwind_sp): Delete.
14560 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14562 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14564 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14565 (arc_unwind_pc): Delete.
14566 (arc_unwind_sp): Delete.
14567 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14569 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14571 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14572 (alpha_unwind_pc): Delete.
14573 (alpha_gdbarch_init): Don't register deleted functions with
14576 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14578 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14579 (aarch64_unwind_pc): Delete.
14580 (aarch64_unwind_sp): Delete.
14581 (aarch64_gdbarch_init): Don't register deleted functions with
14584 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14586 * gdbtypes.c (type_align): Don't consider static members when
14587 computing structure alignment.
14589 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14591 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14592 return 0 for other types.
14593 * arch-utils.c (default_type_align): Always return 0.
14594 * gdbarch.h: Regenerate.
14595 * gdbarch.sh (type_align): Extend comment.
14596 * gdbtypes.c (type_align): Add additional comments, always call
14597 gdbarch_type_align before applying the default rules.
14598 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14599 generic code will then apply a suitable default.
14600 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14601 types, return 0 for other types.
14603 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14605 * NEWS: Create a new section for the next release branch.
14606 Rename the section of the current branch, now that it has
14609 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14611 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14612 * version.in: Bump version to 8.3.50.DATE-git.
14614 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14616 * aix-thread.c (ptid_cmp): Remove unused variable.
14617 (get_signaled_thread): Likewise.
14618 (store_regs_user_thread): Likewise.
14619 (store_regs_kernel_thread): Likewise.
14620 (fetch_regs_kernel_thread): Remove shadowed variable.
14622 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14624 * features/riscv/32bit-cpu.xml: Add register numbers.
14625 * features/riscv/32bit-fpu.c: Regenerate.
14626 * features/riscv/32bit-fpu.xml: Add register numbers.
14627 * features/riscv/64bit-cpu.xml: Add register numbers.
14628 * features/riscv/64bit-fpu.c: Regenerate.
14629 * features/riscv/64bit-fpu.xml: Add register numbers.
14631 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14633 * NEWS: Mention two argument form of gdb.Value constructor.
14634 * python/py-value.c (convert_buffer_and_type_to_value): New
14636 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14637 Add support for handling an optional second argument. Call
14638 convert_buffer_and_type_to_value as appropriate.
14639 * python/python-internal.h (Py_buffer_deleter): New struct.
14640 (Py_buffer_up): New typedef.
14642 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14644 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14645 instead of releasing ownership.
14647 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14649 * dwarf2read.c (open_and_init_dwp_file): Call
14650 elf_numsections instead of bfd_count_sections to initialize
14651 dwp_file->num_sections.
14653 2019-02-25 Tom Tromey <tromey@adacore.com>
14655 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14657 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14659 * gcore.in: Add '--readnever' option when invoking GDB.
14661 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14663 * MAINTAINERS: Update my email address.
14665 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14667 * build-id.c (build_id_to_debug_bfd_1): New function.
14668 (build_id_to_debug_bfd): Look for separate debug file in
14671 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14673 * gdbarch.sh: Update the copyright year range that is placed into
14676 2019-02-22 Keith Seitz <keiths@redhat.com>
14679 * linespec.c (create_sals_line_offset): Search for the default
14680 symtab's filename instead of its fullname.
14682 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14684 * NEWS: Update style defaults.
14686 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14688 * main.c (captured_main_1): Disable styling in batch mode.
14690 2019-02-20 Tom Tromey <tom@tromey.com>
14692 * symtab.c (symtab_symbol_info): Fix typos.
14694 2019-02-20 Tom Tromey <tromey@adacore.com>
14696 * findcmd.c (_initialize_mem_search): Use upper case for
14697 metasyntactic variables.
14699 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14701 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14702 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14704 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14706 * top.h (source_file_name): Change to std::string.
14707 * top.c (source_file_name): Likewise.
14708 (command_line_input): Adjust.
14709 * cli/cli-script.c (script_from_file): Adjust.
14711 2019-02-19 Tom Tromey <tromey@adacore.com>
14713 * ravenscar-thread.c
14714 (ravenscar_thread_target::update_thread_list): Don't call
14715 ada_build_task_list.
14716 * ada-lang.h (ada_build_task_list): Don't declare.
14717 * ada-tasks.c (struct ada_tasks_inferior_data)
14718 <task_list_valid_p>: Now bool.
14719 (read_known_tasks, ada_task_list_changed)
14720 (ada_tasks_invalidate_inferior_data): Update.
14721 (read_known_tasks_array): Return bool.
14722 (read_known_tasks_list): Likewise.
14723 (read_known_tasks): Return void.
14724 (ada_build_task_list): Now static.
14726 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14728 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14729 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14731 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14733 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14734 variant for ada_tasks_pspace_data_handle and
14735 ada_tasks_inferior_data_handle.
14736 (ada_tasks_pspace_data_cleanup): New function.
14737 (ada_tasks_inferior_data_cleanup): New function.
14739 2019-02-17 Tom Tromey <tom@tromey.com>
14741 * macrotab.h (macro_source_fullname): Return a std::string.
14742 * macrotab.c (macro_include, check_for_redefinition)
14743 (macro_undef, macro_lookup_definition, foreach_macro)
14744 (foreach_macro_in_scope): Update.
14745 (macro_source_fullname): Return a std::string.
14746 * macrocmd.c (show_pp_source_pos): Update.
14748 2019-02-17 Tom Tromey <tom@tromey.com>
14750 * macrocmd.c (show_pp_source_pos): Style the file names.
14752 2019-02-17 Tom Tromey <tom@tromey.com>
14755 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14757 2019-02-17 Tom Tromey <tom@tromey.com>
14759 * ada-lang.c (user_select_syms): Use filtered printing.
14760 * utils.c (wrap_style): New global.
14761 (desired_style): Remove.
14762 (emit_style_escape): Add stream parameter.
14763 (set_output_style, reset_terminal_style, prompt_for_continue):
14765 (flush_wrap_buffer): Only flush gdb_stdout.
14766 (wrap_here): Set wrap_style.
14767 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14768 treat escape sequences as a character. Change when wrap buffer is
14770 (fputs_styled): Do not set the output style when the default is
14772 * ui-style.h (struct ui_file_style) <is_default>: New method.
14773 * source.c (print_source_lines_base): Emit escape sequences in one
14776 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14778 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14779 integers and enumeration types.
14781 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14783 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14784 instead of lookup_symbol_in_language
14785 (do_exact_match): New function.
14786 (ada_get_symbol_name_matcher): Return do_exact_match when
14787 doing a verbatim match.
14789 2019-02-15 Tom Tromey <tromey@adacore.com>
14791 * ravenscar-thread.c (ravenscar_thread_target::resume)
14792 (ravenscar_thread_target::wait): Special case wildcard requests.
14794 2019-02-15 Tom Tromey <tromey@adacore.com>
14796 * ravenscar-thread.c (base_ptid): Remove.
14797 (struct ravenscar_thread_target) <close>: New method.
14798 <m_base_ptid>: New member.
14799 <update_inferior_ptid, active_task, task_is_currently_active,
14800 runtime_initialized>: Declare methods.
14801 <ravenscar_thread_target>: Add constructor.
14802 (ravenscar_thread_target::task_is_currently_active)
14803 (ravenscar_thread_target::update_inferior_ptid)
14804 (ravenscar_runtime_initialized): Rename. Now methods.
14805 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14806 (ravenscar_thread_target::update_thread_list): Update.
14807 (ravenscar_thread_target::active_task): Now method.
14808 (ravenscar_thread_target::store_registers)
14809 (ravenscar_thread_target::prepare_to_store)
14810 (ravenscar_thread_target::prepare_to_store)
14811 (ravenscar_thread_target::mourn_inferior): Update.
14812 (ravenscar_inferior_created): Use "new" to create target.
14813 (ravenscar_thread_target::get_ada_task_ptid): Update.
14814 (_initialize_ravenscar): Don't initialize base_ptid.
14815 (ravenscar_ops): Remove global.
14817 2019-02-15 Tom Tromey <tromey@adacore.com>
14819 * target.h (push_target): Declare new overload.
14820 * target.c (push_target): New overload, taking an rvalue reference.
14821 * remote.c (remote_target::open_1): Use push_target overload.
14822 * corelow.c (core_target_open): Use push_target overload.
14824 2019-02-15 Tom Tromey <tromey@adacore.com>
14826 * ravenscar-thread.c (is_ravenscar_task)
14827 (ravenscar_task_is_currently_active): Return bool.
14828 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14829 (_initialize_ravenscar): Remove "(void)".
14830 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14833 2019-02-15 Tom Tromey <tromey@adacore.com>
14835 * ravenscar-thread.c (ravenscar_runtime_initializer)
14836 (has_ravenscar_runtime, get_running_thread_id)
14837 (ravenscar_thread_target::resume): Fix indentation.
14839 2019-02-15 Tom Tromey <tromey@adacore.com>
14841 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14842 from ravenscar_arch_ops.
14843 (sparc_ravenscar_ops::fetch_registers)
14844 (sparc_ravenscar_ops::store_registers): Now methods.
14845 (sparc_ravenscar_prepare_to_store): Remove.
14846 (sparc_ravenscar_ops): Redefine.
14847 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14848 methods and destructor. Remove members.
14849 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14850 (ravenscar_thread_target::store_registers)
14851 (ravenscar_thread_target::prepare_to_store): Update.
14852 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14854 (struct ppc_ravenscar_powerpc_ops): Derive from
14855 ravenscar_arch_ops.
14856 (ppc_ravenscar_powerpc_ops::fetch_registers)
14857 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14858 (ppc_ravenscar_powerpc_ops): Redefine.
14859 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14860 (ppc_ravenscar_e500_ops::fetch_registers)
14861 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14862 (ppc_ravenscar_e500_ops): Redefine.
14863 * aarch64-ravenscar-thread.c
14864 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14865 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14866 (aarch64_ravenscar_fetch_registers)
14867 (aarch64_ravenscar_store_registers): Now methods.
14868 (aarch64_ravenscar_ops): Redefine.
14870 2019-02-15 Tom Tromey <tromey@adacore.com>
14872 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14873 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14874 (ravenscar_thread_target::stopped_by_watchpoint)
14875 (ravenscar_thread_target::stopped_data_address)
14876 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14878 2019-02-15 Tom Tromey <tromey@adacore.com>
14880 * ravenscar-thread.c: Fix some typos.
14882 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14883 Tom Tromey <tromey@adacore.com>
14885 * ada-lang.c (ada_exception_sal): Change addr_string to a
14887 (create_ada_exception_catchpoint): Update.
14889 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14890 Tom Tromey <tromey@adacore.com>
14892 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14893 (bp_location_ops): Remove.
14894 (base_breakpoint_allocate_location): Update.
14895 (free_bp_location): Update.
14896 * ada-lang.c (class ada_catchpoint_location)
14897 <ada_catchpoint_location>: Remove ops parameter.
14898 (ada_catchpoint_location_dtor): Remove.
14899 (ada_catchpoint_location_ops): Remove.
14900 (allocate_location_exception): Update.
14901 * breakpoint.h (struct bp_location_ops): Remove.
14902 (class bp_location) <bp_location>: Remove bp_location_ops
14904 <~bp_location>: Add destructor.
14907 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14908 Pedro Alves <palves@redhat.com>
14910 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14913 2019-02-14 David Michael <fedora.dm0@gmail.com>
14914 Samuel Thibault <samuel.thibault@gnu.org>
14915 Thomas Schwinge <thomas@codesourcery.com>
14917 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14918 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14920 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14922 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14923 (check_empty): Use "const char *".
14925 * gnu-nat.c (gnu_nat_target::detach): Instead of
14926 'detach_inferior (pid)' call
14927 'detach_inferior (find_inferior_pid (pid))'.
14929 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14930 'nat/fork-inferior.o'.
14931 * gnu-nat.c: #include "nat/fork-inferior.h".
14933 * gnu-nat.c (gnu_nat_target::detach): Instead of
14934 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14935 * gnu-nat.h: #include "inf-child.h".
14936 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14937 'i386_gnu_nat_target::fetch_registers'.
14938 (gnu_store_registers): Rename/move to
14939 'i386_gnu_nat_target::store_registers'.
14941 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14942 * gnu-nat.h (mach_thread_info): New function.
14943 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14945 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14947 2019-02-14 Frederic Konrad <konrad@adacore.com>
14949 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14951 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14953 * windows-nat.c (windows_add_thread): Add new parameter
14954 "main_thread_p" with default value set to false. Update
14955 function documentation as well as all callers.
14956 (windows_delete_thread): Likewise.
14957 (fake_create_process): Update call to windows_add_thread.
14958 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14959 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14960 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14961 call to windows_delete_thread.
14963 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14965 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14967 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14969 * symfile.c (find_separate_debug_file): Use canonical path of
14970 sysroot with child_path instead of gdb_sysroot if it is valid.
14972 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14974 * symfile.c (find_separate_debug_file): Use child_path to
14975 determine if an object file is under a sysroot.
14977 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14979 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14980 unittests/child-path-selftests.c.
14981 * common/pathstuff.c (child_path): New function.
14982 * common/pathstuff.h (child_path): New prototype.
14983 * unittests/child-path-selftests.c: New file.
14985 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14987 * symfile.c (find_separate_debug_file): Look for separate debug
14988 files in debug directories under the sysroot.
14990 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14992 * symtab.h (struct minimal_symbol data_p): New const method.
14993 (struct minimal_symbol text_p): Likewise.
14994 * symtab.c (output_source_filename): Use file name style
14995 to print file name.
14996 (print_symbol_info): Likewise.
14997 (print_msymbol_info): Use address style to print addresses.
14998 Use function name style to print executable text symbols.
14999 (expand_symtab_containing_pc): Use data_p.
15000 (find_pc_sect_compunit_symtab): Likewise.
15002 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15004 * breakpoint.c (describe_other_breakpoints): Use address style
15005 to print addresses.
15006 (say_where): Likewise.
15008 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15010 * ada-typeprint.c (print_func_type): Print function name
15011 style to print function name.
15012 * c-typeprint.c (c_print_type_1): Likewise.
15014 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15016 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15019 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15021 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15024 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15026 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15027 TYPE_CODE_REF types.
15029 2019-02-08 Jim Wilson <jimw@sifive.com>
15031 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15032 (riscv_linux_fregset): New.
15033 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15035 2019-02-07 Tom Tromey <tom@tromey.com>
15037 * thread.c (thread_cancel_execution_command): Update.
15038 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15040 (struct thread_fsm_ops): Remove.
15041 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15042 (thread_fsm_should_stop, thread_fsm_return_value)
15043 (thread_fsm_set_finished, thread_fsm_finished_p)
15044 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15046 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15047 * infrun.c (clear_proceed_status_thread)
15048 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15049 (print_stop_event): Update.
15050 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15052 (step_command_fsm_ops): Remove.
15053 (new_step_command_fsm): Remove.
15055 (step_command_fsm::should_stop): Rename from
15056 step_command_fsm_should_stop.
15057 (step_command_fsm::clean_up): Rename from
15058 step_command_fsm_clean_up.
15059 (step_command_fsm::do_async_reply_reason): Rename from
15060 step_command_fsm_async_reply_reason.
15061 (struct until_next_fsm): Inherit from thread_fsm. Add
15063 (until_next_fsm_ops): Remove.
15064 (new_until_next_fsm): Remove.
15065 (until_next_fsm::should_stop): Rename from
15066 until_next_fsm_should_stop.
15067 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15068 (until_next_fsm::do_async_reply_reason): Rename from
15069 until_next_fsm_async_reply_reason.
15070 (struct finish_command_fsm): Inherit from thread_fsm. Add
15071 constructor. Change type of breakpoint.
15072 (finish_command_fsm_ops): Remove.
15073 (new_finish_command_fsm): Remove.
15074 (finish_command_fsm::should_stop): Rename from
15075 finish_command_fsm_should_stop.
15076 (finish_command_fsm::clean_up): Rename from
15077 finish_command_fsm_clean_up.
15078 (finish_command_fsm::return_value): Rename from
15079 finish_command_fsm_return_value.
15080 (finish_command_fsm::do_async_reply_reason): Rename from
15081 finish_command_fsm_async_reply_reason.
15082 (finish_command): Update.
15083 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15085 (call_thread_fsm_ops): Remove.
15086 (call_thread_fsm::call_thread_fsm): Rename from
15087 new_call_thread_fsm.
15088 (call_thread_fsm::should_stop): Rename from
15089 call_thread_fsm_should_stop.
15090 (call_thread_fsm::should_notify_stop): Rename from
15091 call_thread_fsm_should_notify_stop.
15092 (run_inferior_call, call_function_by_hand_dummy): Update.
15093 * cli/cli-interp.c (should_print_stop_to_console): Update.
15094 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15095 Add constructor. Change type of location_breakpoint,
15097 (until_break_fsm_ops): Remove.
15098 (new_until_break_fsm): Remove.
15099 (until_break_fsm::should_stop): Rename from
15100 until_break_fsm_should_stop.
15101 (until_break_fsm::clean_up): Rename from
15102 until_break_fsm_clean_up.
15103 (until_break_fsm::do_async_reply_reason): Rename from
15104 until_break_fsm_async_reply_reason.
15105 (until_break_command): Update.
15106 * thread-fsm.c: Remove.
15107 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15109 2019-02-07 Tom Tromey <tom@tromey.com>
15111 * yy-remap.h: Add include guard.
15112 * xtensa-tdep.h: Add include guard.
15113 * xcoffread.h: Rename include guard.
15114 * varobj-iter.h: Add include guard.
15115 * tui/tui.h: Rename include guard.
15116 * tui/tui-winsource.h: Rename include guard.
15117 * tui/tui-wingeneral.h: Rename include guard.
15118 * tui/tui-windata.h: Rename include guard.
15119 * tui/tui-win.h: Rename include guard.
15120 * tui/tui-stack.h: Rename include guard.
15121 * tui/tui-source.h: Rename include guard.
15122 * tui/tui-regs.h: Rename include guard.
15123 * tui/tui-out.h: Rename include guard.
15124 * tui/tui-layout.h: Rename include guard.
15125 * tui/tui-io.h: Rename include guard.
15126 * tui/tui-hooks.h: Rename include guard.
15127 * tui/tui-file.h: Rename include guard.
15128 * tui/tui-disasm.h: Rename include guard.
15129 * tui/tui-data.h: Rename include guard.
15130 * tui/tui-command.h: Rename include guard.
15131 * tic6x-tdep.h: Add include guard.
15132 * target/waitstatus.h: Rename include guard.
15133 * target/wait.h: Rename include guard.
15134 * target/target.h: Rename include guard.
15135 * target/resume.h: Rename include guard.
15136 * target-float.h: Rename include guard.
15137 * stabsread.h: Add include guard.
15138 * rs6000-tdep.h: Add include guard.
15139 * riscv-fbsd-tdep.h: Add include guard.
15140 * regformats/regdef.h: Rename include guard.
15141 * record.h: Rename include guard.
15142 * python/python.h: Rename include guard.
15143 * python/python-internal.h: Rename include guard.
15144 * python/py-stopevent.h: Rename include guard.
15145 * python/py-ref.h: Rename include guard.
15146 * python/py-record.h: Rename include guard.
15147 * python/py-record-full.h: Rename include guard.
15148 * python/py-record-btrace.h: Rename include guard.
15149 * python/py-instruction.h: Rename include guard.
15150 * python/py-events.h: Rename include guard.
15151 * python/py-event.h: Rename include guard.
15152 * procfs.h: Add include guard.
15153 * proc-utils.h: Add include guard.
15154 * p-lang.h: Add include guard.
15155 * or1k-tdep.h: Rename include guard.
15156 * observable.h: Rename include guard.
15157 * nto-tdep.h: Rename include guard.
15158 * nat/x86-linux.h: Rename include guard.
15159 * nat/x86-linux-dregs.h: Rename include guard.
15160 * nat/x86-gcc-cpuid.h: Add include guard.
15161 * nat/x86-dregs.h: Rename include guard.
15162 * nat/x86-cpuid.h: Rename include guard.
15163 * nat/ppc-linux.h: Rename include guard.
15164 * nat/mips-linux-watch.h: Rename include guard.
15165 * nat/linux-waitpid.h: Rename include guard.
15166 * nat/linux-ptrace.h: Rename include guard.
15167 * nat/linux-procfs.h: Rename include guard.
15168 * nat/linux-osdata.h: Rename include guard.
15169 * nat/linux-nat.h: Rename include guard.
15170 * nat/linux-namespaces.h: Rename include guard.
15171 * nat/linux-btrace.h: Rename include guard.
15172 * nat/glibc_thread_db.h: Rename include guard.
15173 * nat/gdb_thread_db.h: Rename include guard.
15174 * nat/gdb_ptrace.h: Rename include guard.
15175 * nat/fork-inferior.h: Rename include guard.
15176 * nat/amd64-linux-siginfo.h: Rename include guard.
15177 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15178 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15179 * nat/aarch64-linux.h: Rename include guard.
15180 * nat/aarch64-linux-hw-point.h: Rename include guard.
15181 * mn10300-tdep.h: Add include guard.
15182 * mips-linux-tdep.h: Add include guard.
15183 * mi/mi-parse.h: Rename include guard.
15184 * mi/mi-out.h: Rename include guard.
15185 * mi/mi-main.h: Rename include guard.
15186 * mi/mi-interp.h: Rename include guard.
15187 * mi/mi-getopt.h: Rename include guard.
15188 * mi/mi-console.h: Rename include guard.
15189 * mi/mi-common.h: Rename include guard.
15190 * mi/mi-cmds.h: Rename include guard.
15191 * mi/mi-cmd-break.h: Rename include guard.
15192 * m2-lang.h: Add include guard.
15193 * location.h: Rename include guard.
15194 * linux-record.h: Rename include guard.
15195 * linux-nat.h: Add include guard.
15196 * linux-fork.h: Add include guard.
15197 * i386-darwin-tdep.h: Rename include guard.
15198 * hppa-linux-offsets.h: Add include guard.
15199 * guile/guile.h: Rename include guard.
15200 * guile/guile-internal.h: Rename include guard.
15201 * gnu-nat.h: Rename include guard.
15202 * gdb-stabs.h: Rename include guard.
15203 * frv-tdep.h: Add include guard.
15204 * f-lang.h: Add include guard.
15205 * event-loop.h: Add include guard.
15206 * darwin-nat.h: Rename include guard.
15207 * cp-abi.h: Rename include guard.
15208 * config/sparc/nm-sol2.h: Rename include guard.
15209 * config/nm-nto.h: Rename include guard.
15210 * config/nm-linux.h: Add include guard.
15211 * config/i386/nm-i386gnu.h: Rename include guard.
15212 * config/djgpp/nl_types.h: Rename include guard.
15213 * config/djgpp/langinfo.h: Rename include guard.
15214 * compile/gcc-cp-plugin.h: Add include guard.
15215 * compile/gcc-c-plugin.h: Add include guard.
15216 * compile/compile.h: Rename include guard.
15217 * compile/compile-object-run.h: Rename include guard.
15218 * compile/compile-object-load.h: Rename include guard.
15219 * compile/compile-internal.h: Rename include guard.
15220 * compile/compile-cplus.h: Rename include guard.
15221 * compile/compile-c.h: Rename include guard.
15222 * common/xml-utils.h: Rename include guard.
15223 * common/x86-xstate.h: Rename include guard.
15224 * common/version.h: Rename include guard.
15225 * common/vec.h: Rename include guard.
15226 * common/tdesc.h: Rename include guard.
15227 * common/selftest.h: Rename include guard.
15228 * common/scoped_restore.h: Rename include guard.
15229 * common/scoped_mmap.h: Rename include guard.
15230 * common/scoped_fd.h: Rename include guard.
15231 * common/safe-iterator.h: Rename include guard.
15232 * common/run-time-clock.h: Rename include guard.
15233 * common/refcounted-object.h: Rename include guard.
15234 * common/queue.h: Rename include guard.
15235 * common/ptid.h: Rename include guard.
15236 * common/print-utils.h: Rename include guard.
15237 * common/preprocessor.h: Rename include guard.
15238 * common/pathstuff.h: Rename include guard.
15239 * common/observable.h: Rename include guard.
15240 * common/netstuff.h: Rename include guard.
15241 * common/job-control.h: Rename include guard.
15242 * common/host-defs.h: Rename include guard.
15243 * common/gdb_wait.h: Rename include guard.
15244 * common/gdb_vecs.h: Rename include guard.
15245 * common/gdb_unlinker.h: Rename include guard.
15246 * common/gdb_unique_ptr.h: Rename include guard.
15247 * common/gdb_tilde_expand.h: Rename include guard.
15248 * common/gdb_sys_time.h: Rename include guard.
15249 * common/gdb_string_view.h: Rename include guard.
15250 * common/gdb_splay_tree.h: Rename include guard.
15251 * common/gdb_setjmp.h: Rename include guard.
15252 * common/gdb_ref_ptr.h: Rename include guard.
15253 * common/gdb_optional.h: Rename include guard.
15254 * common/gdb_locale.h: Rename include guard.
15255 * common/gdb_assert.h: Rename include guard.
15256 * common/filtered-iterator.h: Rename include guard.
15257 * common/filestuff.h: Rename include guard.
15258 * common/fileio.h: Rename include guard.
15259 * common/environ.h: Rename include guard.
15260 * common/common-utils.h: Rename include guard.
15261 * common/common-types.h: Rename include guard.
15262 * common/common-regcache.h: Rename include guard.
15263 * common/common-inferior.h: Rename include guard.
15264 * common/common-gdbthread.h: Rename include guard.
15265 * common/common-exceptions.h: Rename include guard.
15266 * common/common-defs.h: Rename include guard.
15267 * common/common-debug.h: Rename include guard.
15268 * common/cleanups.h: Rename include guard.
15269 * common/buffer.h: Rename include guard.
15270 * common/btrace-common.h: Rename include guard.
15271 * common/break-common.h: Rename include guard.
15272 * cli/cli-utils.h: Rename include guard.
15273 * cli/cli-style.h: Rename include guard.
15274 * cli/cli-setshow.h: Rename include guard.
15275 * cli/cli-script.h: Rename include guard.
15276 * cli/cli-interp.h: Rename include guard.
15277 * cli/cli-decode.h: Rename include guard.
15278 * cli/cli-cmds.h: Rename include guard.
15279 * charset-list.h: Add include guard.
15280 * buildsym-legacy.h: Rename include guard.
15281 * bfin-tdep.h: Add include guard.
15282 * ax.h: Rename include guard.
15283 * arm-linux-tdep.h: Add include guard.
15284 * arm-fbsd-tdep.h: Add include guard.
15285 * arch/xtensa.h: Rename include guard.
15286 * arch/tic6x.h: Add include guard.
15287 * arch/i386.h: Add include guard.
15288 * arch/arm.h: Rename include guard.
15289 * arch/arm-linux.h: Rename include guard.
15290 * arch/arm-get-next-pcs.h: Rename include guard.
15291 * arch/amd64.h: Add include guard.
15292 * arch/aarch64-insn.h: Rename include guard.
15293 * arch-utils.h: Rename include guard.
15294 * annotate.h: Add include guard.
15295 * amd64-darwin-tdep.h: Rename include guard.
15296 * aarch64-linux-tdep.h: Add include guard.
15297 * aarch64-fbsd-tdep.h: Add include guard.
15298 * aarch32-linux-nat.h: Add include guard.
15300 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15302 * macrotab.c (macro_define_internal): New function that
15303 factorizes macro_define_object_internal and macro_define_function
15305 (macro_define_object_internal): Use macro_define_internal.
15306 (macro_define_function): Likewise.
15308 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15310 * macrocmd.c (extract_identifier): Return
15311 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15314 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15316 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15318 2019-02-05 Tom Tromey <tom@tromey.com>
15320 * target.c (target_stack::unpush): Move assertion earlier.
15322 2019-01-30 Tom Tromey <tom@tromey.com>
15325 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15326 (gdbpy_parse_and_eval): Likewise.
15327 * python/python-internal.h (gdbpy_allow_threads): New class.
15329 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15331 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15332 (aarch64_fbsd_fpregmap): Move earlier.
15333 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15334 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15335 instead of individual calls to trad_frame_set_reg_addr.
15336 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15338 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15339 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15340 instead of individual calls to trad_frame_set_reg_addr.
15342 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15344 * CONTRIBUTE: Replace contribution list with wiki link.
15346 2019-01-25 Tom Tromey <tom@tromey.com>
15348 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15350 2019-01-25 Tom Tromey <tom@tromey.com>
15352 * xtensa-linux-nat.c: Fix common/ includes.
15353 * xml-support.h: Fix common/ includes.
15354 * xml-support.c: Fix common/ includes.
15355 * x86-linux-nat.c: Fix common/ includes.
15356 * windows-nat.c: Fix common/ includes.
15357 * varobj.h: Fix common/ includes.
15358 * varobj.c: Fix common/ includes.
15359 * value.c: Fix common/ includes.
15360 * valops.c: Fix common/ includes.
15361 * utils.c: Fix common/ includes.
15362 * unittests/xml-utils-selftests.c: Fix common/ includes.
15363 * unittests/utils-selftests.c: Fix common/ includes.
15364 * unittests/unpack-selftests.c: Fix common/ includes.
15365 * unittests/tracepoint-selftests.c: Fix common/ includes.
15366 * unittests/style-selftests.c: Fix common/ includes.
15367 * unittests/string_view-selftests.c: Fix common/ includes.
15368 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15369 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15370 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15371 * unittests/rsp-low-selftests.c: Fix common/ includes.
15372 * unittests/parse-connection-spec-selftests.c: Fix common/
15374 * unittests/optional-selftests.c: Fix common/ includes.
15375 * unittests/offset-type-selftests.c: Fix common/ includes.
15376 * unittests/observable-selftests.c: Fix common/ includes.
15377 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15378 * unittests/memrange-selftests.c: Fix common/ includes.
15379 * unittests/memory-map-selftests.c: Fix common/ includes.
15380 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15381 * unittests/function-view-selftests.c: Fix common/ includes.
15382 * unittests/environ-selftests.c: Fix common/ includes.
15383 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15384 * unittests/common-utils-selftests.c: Fix common/ includes.
15385 * unittests/cli-utils-selftests.c: Fix common/ includes.
15386 * unittests/array-view-selftests.c: Fix common/ includes.
15387 * ui-file.c: Fix common/ includes.
15388 * tui/tui-io.c: Fix common/ includes.
15389 * tracepoint.h: Fix common/ includes.
15390 * tracepoint.c: Fix common/ includes.
15391 * tracefile-tfile.c: Fix common/ includes.
15392 * top.h: Fix common/ includes.
15393 * top.c: Fix common/ includes.
15394 * thread.c: Fix common/ includes.
15395 * target/waitstatus.h: Fix common/ includes.
15396 * target/waitstatus.c: Fix common/ includes.
15397 * target.h: Fix common/ includes.
15398 * target.c: Fix common/ includes.
15399 * target-memory.c: Fix common/ includes.
15400 * target-descriptions.c: Fix common/ includes.
15401 * symtab.h: Fix common/ includes.
15402 * symfile.c: Fix common/ includes.
15403 * stap-probe.c: Fix common/ includes.
15404 * spu-linux-nat.c: Fix common/ includes.
15405 * sparc-nat.c: Fix common/ includes.
15406 * source.c: Fix common/ includes.
15407 * solib.c: Fix common/ includes.
15408 * solib-target.c: Fix common/ includes.
15409 * ser-unix.c: Fix common/ includes.
15410 * ser-tcp.c: Fix common/ includes.
15411 * ser-pipe.c: Fix common/ includes.
15412 * ser-base.c: Fix common/ includes.
15413 * selftest-arch.c: Fix common/ includes.
15414 * s12z-tdep.c: Fix common/ includes.
15415 * rust-exp.y: Fix common/ includes.
15416 * rs6000-aix-tdep.c: Fix common/ includes.
15417 * riscv-tdep.c: Fix common/ includes.
15418 * remote.c: Fix common/ includes.
15419 * remote-notif.h: Fix common/ includes.
15420 * remote-fileio.h: Fix common/ includes.
15421 * remote-fileio.c: Fix common/ includes.
15422 * regcache.h: Fix common/ includes.
15423 * regcache.c: Fix common/ includes.
15424 * record-btrace.c: Fix common/ includes.
15425 * python/python.c: Fix common/ includes.
15426 * python/py-type.c: Fix common/ includes.
15427 * python/py-inferior.c: Fix common/ includes.
15428 * progspace.h: Fix common/ includes.
15429 * producer.c: Fix common/ includes.
15430 * procfs.c: Fix common/ includes.
15431 * proc-api.c: Fix common/ includes.
15432 * printcmd.c: Fix common/ includes.
15433 * ppc-linux-nat.c: Fix common/ includes.
15434 * parser-defs.h: Fix common/ includes.
15435 * osdata.c: Fix common/ includes.
15436 * obsd-nat.c: Fix common/ includes.
15437 * nat/x86-linux.c: Fix common/ includes.
15438 * nat/x86-linux-dregs.c: Fix common/ includes.
15439 * nat/x86-dregs.h: Fix common/ includes.
15440 * nat/x86-dregs.c: Fix common/ includes.
15441 * nat/ppc-linux.c: Fix common/ includes.
15442 * nat/mips-linux-watch.h: Fix common/ includes.
15443 * nat/mips-linux-watch.c: Fix common/ includes.
15444 * nat/linux-waitpid.c: Fix common/ includes.
15445 * nat/linux-ptrace.h: Fix common/ includes.
15446 * nat/linux-ptrace.c: Fix common/ includes.
15447 * nat/linux-procfs.c: Fix common/ includes.
15448 * nat/linux-personality.c: Fix common/ includes.
15449 * nat/linux-osdata.c: Fix common/ includes.
15450 * nat/linux-namespaces.c: Fix common/ includes.
15451 * nat/linux-btrace.h: Fix common/ includes.
15452 * nat/linux-btrace.c: Fix common/ includes.
15453 * nat/fork-inferior.c: Fix common/ includes.
15454 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15455 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15456 * nat/aarch64-linux.c: Fix common/ includes.
15457 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15458 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15459 * namespace.h: Fix common/ includes.
15460 * mips-linux-tdep.c: Fix common/ includes.
15461 * minsyms.c: Fix common/ includes.
15462 * mi/mi-parse.h: Fix common/ includes.
15463 * mi/mi-main.c: Fix common/ includes.
15464 * mi/mi-cmd-env.c: Fix common/ includes.
15465 * memrange.h: Fix common/ includes.
15466 * memattr.c: Fix common/ includes.
15467 * maint.h: Fix common/ includes.
15468 * maint.c: Fix common/ includes.
15469 * main.c: Fix common/ includes.
15470 * machoread.c: Fix common/ includes.
15471 * location.c: Fix common/ includes.
15472 * linux-thread-db.c: Fix common/ includes.
15473 * linux-nat.c: Fix common/ includes.
15474 * linux-fork.c: Fix common/ includes.
15475 * inline-frame.c: Fix common/ includes.
15476 * infrun.c: Fix common/ includes.
15477 * inflow.c: Fix common/ includes.
15478 * inferior.h: Fix common/ includes.
15479 * inferior.c: Fix common/ includes.
15480 * infcmd.c: Fix common/ includes.
15481 * inf-ptrace.c: Fix common/ includes.
15482 * inf-child.c: Fix common/ includes.
15483 * ia64-linux-nat.c: Fix common/ includes.
15484 * i387-tdep.c: Fix common/ includes.
15485 * i386-tdep.c: Fix common/ includes.
15486 * i386-linux-tdep.c: Fix common/ includes.
15487 * i386-linux-nat.c: Fix common/ includes.
15488 * i386-go32-tdep.c: Fix common/ includes.
15489 * i386-fbsd-tdep.c: Fix common/ includes.
15490 * i386-fbsd-nat.c: Fix common/ includes.
15491 * guile/scm-type.c: Fix common/ includes.
15492 * guile/guile.c: Fix common/ includes.
15493 * go32-nat.c: Fix common/ includes.
15494 * gnu-nat.c: Fix common/ includes.
15495 * gdbthread.h: Fix common/ includes.
15496 * gdbarch-selftests.c: Fix common/ includes.
15497 * gdb_usleep.c: Fix common/ includes.
15498 * gdb_select.h: Fix common/ includes.
15499 * gdb_bfd.c: Fix common/ includes.
15500 * gcore.c: Fix common/ includes.
15501 * fork-child.c: Fix common/ includes.
15502 * findvar.c: Fix common/ includes.
15503 * fbsd-nat.c: Fix common/ includes.
15504 * event-top.c: Fix common/ includes.
15505 * event-loop.c: Fix common/ includes.
15506 * dwarf2read.c: Fix common/ includes.
15507 * dwarf2loc.c: Fix common/ includes.
15508 * dwarf2-frame.c: Fix common/ includes.
15509 * dwarf-index-cache.c: Fix common/ includes.
15510 * dtrace-probe.c: Fix common/ includes.
15511 * disasm-selftests.c: Fix common/ includes.
15512 * defs.h: Fix common/ includes.
15513 * csky-tdep.c: Fix common/ includes.
15514 * cp-valprint.c: Fix common/ includes.
15515 * cp-support.h: Fix common/ includes.
15516 * cp-support.c: Fix common/ includes.
15517 * corelow.c: Fix common/ includes.
15518 * completer.h: Fix common/ includes.
15519 * completer.c: Fix common/ includes.
15520 * compile/compile.c: Fix common/ includes.
15521 * compile/compile-loc2c.c: Fix common/ includes.
15522 * compile/compile-cplus-types.c: Fix common/ includes.
15523 * compile/compile-cplus-symbols.c: Fix common/ includes.
15524 * command.h: Fix common/ includes.
15525 * cli/cli-dump.c: Fix common/ includes.
15526 * cli/cli-cmds.c: Fix common/ includes.
15527 * charset.c: Fix common/ includes.
15528 * build-id.c: Fix common/ includes.
15529 * btrace.h: Fix common/ includes.
15530 * btrace.c: Fix common/ includes.
15531 * breakpoint.h: Fix common/ includes.
15532 * breakpoint.c: Fix common/ includes.
15534 (enum agent_op): Fix common/ includes.
15535 * ax-general.c (struct aop_map): Fix common/ includes.
15536 * ax-gdb.c: Fix common/ includes.
15537 * auxv.c: Fix common/ includes.
15538 * auto-load.c: Fix common/ includes.
15539 * arm-tdep.c: Fix common/ includes.
15540 * arch/riscv.c: Fix common/ includes.
15541 * arch/ppc-linux-common.c: Fix common/ includes.
15542 * arch/i386.c: Fix common/ includes.
15543 * arch/arm.c: Fix common/ includes.
15544 * arch/arm-linux.c: Fix common/ includes.
15545 * arch/arm-get-next-pcs.c: Fix common/ includes.
15546 * arch/amd64.c: Fix common/ includes.
15547 * arch/aarch64.c: Fix common/ includes.
15548 * arch/aarch64-insn.c: Fix common/ includes.
15549 * arch-utils.c: Fix common/ includes.
15550 * amd64-windows-tdep.c: Fix common/ includes.
15551 * amd64-tdep.c: Fix common/ includes.
15552 * amd64-sol2-tdep.c: Fix common/ includes.
15553 * amd64-obsd-tdep.c: Fix common/ includes.
15554 * amd64-nbsd-tdep.c: Fix common/ includes.
15555 * amd64-linux-tdep.c: Fix common/ includes.
15556 * amd64-linux-nat.c: Fix common/ includes.
15557 * amd64-fbsd-tdep.c: Fix common/ includes.
15558 * amd64-fbsd-nat.c: Fix common/ includes.
15559 * amd64-dicos-tdep.c: Fix common/ includes.
15560 * amd64-darwin-tdep.c: Fix common/ includes.
15561 * agent.c: Fix common/ includes.
15562 * ada-lang.h: Fix common/ includes.
15563 * ada-lang.c: Fix common/ includes.
15564 * aarch64-tdep.c: Fix common/ includes.
15566 2019-01-25 Tom Tromey <tom@tromey.com>
15568 * common/create-version.sh: Use common/version.h.
15570 2019-01-24 Pedro Alves <palves@redhat.com>
15572 * infrun.c (signal_stop, signal_print, signal_program)
15573 (signal_catch, signal_pass): Now arrays instead of pointers.
15574 (update_signals_program_target, do_target_resume)
15575 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15576 * linux-nat.c (linux_nat_target::pass_signals)
15577 (linux_nat_target::create_inferior, linux_nat_target::attach):
15579 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15580 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15581 * procfs.c (procfs_target::pass_signals): Adjust.
15582 * record-full.c (record_full_target::resume): Adjust.
15583 * remote.c (remote_target::pass_signals)
15584 (remote_target::program_signals): Adjust.
15585 * target-debug.h (target_debug_print_signals): Now takes a
15586 gdb::array_view as parameter. Adjust.
15587 * target.h (target_ops) <pass_signals, program_signals>: Replace
15588 pointer and length parameters with gdb::array_view.
15589 (target_pass_signals, target_program_signals): Likewise.
15590 * target-delegates.c: Regenerate.
15592 2019-01-24 Pedro Alves <palves@redhat.com>
15594 * common/forward-scope-exit.h
15595 (forward_scope_exit::forward_scope_exit): Pass arguments to
15596 m_bind_function directly, instead of creating a std::bind and
15599 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15601 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15602 for static members.
15603 (pass_in_v_vfp_candidate): Likewise.
15605 2019-01-23 Tom Tromey <tom@tromey.com>
15606 Pedro Alves <palves@redhat.com>
15608 * regcache.c (class regcache_invalidator): Remove.
15609 (regcache::raw_write): Use make_scope_exit.
15611 2019-01-23 Tom Tromey <tom@tromey.com>
15613 * ui-out.h (class ui_out_emit_type): Update comment.
15615 2019-01-23 Tom Tromey <tom@tromey.com>
15617 * infrun.c (fetch_inferior_event): Update comment.
15619 2019-01-23 Tom Tromey <tom@tromey.com>
15620 Pedro Alves <palves@redhat.com>
15622 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15624 (fetch_inferior_event): Use SCOPE_EXIT.
15627 2019-01-23 Tom Tromey <tom@tromey.com>
15628 Pedro Alves <palves@redhat.com>
15630 * infrun.c (disable_thread_events): Delete.
15631 (stop_all_threads): Use SCOPE_EXIT.
15633 2019-01-23 Tom Tromey <tom@tromey.com>
15634 Pedro Alves <palves@redhat.com>
15636 * symfile.c: Include forward-scope-exit.h.
15637 (clear_symtab_users_cleanup): Replace forward declaration with
15638 a FORWARD_SCOPE_EXIT.
15639 (syms_from_objfile_1): Use the forward_scope_exit and
15640 gdb::optional instead of cleanup_function.
15641 (reread_symbols): Use the forward_scope_exit instead of
15643 (clear_symtab_users_cleanup): Remove function.
15645 2019-01-23 Tom Tromey <tom@tromey.com>
15646 Pedro Alves <palves@redhat.com>
15648 * linux-nat.c: Include scope-exit.h.
15649 (cleanup_target_stop): Remove.
15650 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15653 2019-01-23 Tom Tromey <tom@tromey.com>
15654 Pedro Alves <palves@redhat.com>
15656 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15657 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15659 2019-01-23 Tom Tromey <tom@tromey.com>
15660 Andrew Burgess <andrew.burgess@embecosm.com>
15661 Pedro Alves <palves@redhat.com>
15663 * infrun.c (fetch_inferior_event): Use scope_exit.
15664 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15665 * top.c (execute_command): Use scope_exit.
15666 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15667 * utils.c (do_bpstat_clear_actions_cleanup)
15668 (make_bpstat_clear_actions_cleanup): Remove.
15670 2019-01-23 Tom Tromey <tom@tromey.com>
15671 Pedro Alves <palves@redhat.com>
15673 * infrun.c: Include "common/scope-exit.h"
15674 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15675 (wait_for_inferior): Use SCOPE_EXIT.
15676 (fetch_inferior_event): Use scope_exit.
15678 2019-01-23 Tom Tromey <tom@tromey.com>
15679 Pedro Alves <palves@redhat.com>
15681 * breakpoint.c (create_breakpoint): Remove cleanup.
15683 2019-01-23 Tom Tromey <tom@tromey.com>
15684 Andrew Burgess <andrew.burgess@embecosm.com>
15685 Pedro Alves <palves@redhat.com>
15687 2019-01-23 Pedro Alves <palves@redhat.com>
15689 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15691 2019-01-23 Pedro Alves <palves@redhat.com>
15692 Andrew Burgess <andrew.burgess@embecosm.com>
15694 * gdbthread.h: Include "common/forward-scope-exit.h".
15695 (scoped_finish_thread_state): Redefine custom class in terms of
15696 forward_scope_exit.
15698 2019-01-23 Pedro Alves <palves@redhat.com>
15699 Andrew Burgess <andrew.burgess@embecosm.com>
15701 * common/forward-scope-exit.h: New file.
15703 2019-01-23 Pedro Alves <palves@redhat.com>
15704 Andrew Burgess <andrew.burgess@embecosm.com>
15705 Tom Tromey <tom@tromey.com>
15707 * common/scope-exit.h: New file.
15709 2019-01-23 Pedro Alves <palves@redhat.com>
15711 * common/preprocessor.h (ESC): Rename to ...
15712 (ESC_PARENS): ... this.
15713 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15714 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15716 2019-01-23 Tom Tromey <tom@tromey.com>
15718 * language.h (class scoped_switch_to_sym_language_if_auto):
15719 Initialize m_lang in both cases.
15721 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15723 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15726 2019-01-22 Tom Tromey <tom@tromey.com>
15728 * corelow.c: Do not include sys/file.h.
15730 2019-01-22 Tom Tromey <tom@tromey.com>
15732 * tui/tui-wingeneral.h: Include gdb_curses.h.
15734 2019-01-22 Tom Tromey <tom@tromey.com>
15736 * source-cache.h (class source_cache) <get_source_lines,
15737 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15739 2019-01-22 Tom Tromey <tom@tromey.com>
15741 * remote-fileio.h (struct remote_target): Declare.
15743 2019-01-22 Tom Tromey <tom@tromey.com>
15745 * python/py-arch.c: Do not include py-ref.h.
15746 * python/py-bpevent.c: Do not include py-ref.h.
15747 * python/py-cmd.c: Do not include py-ref.h.
15748 * python/py-continueevent.c: Do not include py-ref.h.
15749 * python/py-event.h: Do not include py-ref.h.
15750 * python/py-evtregistry.c: Do not include py-ref.h.
15751 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15752 * python/py-frame.c: Do not include py-ref.h.
15753 * python/py-framefilter.c: Do not include py-ref.h.
15754 * python/py-function.c: Do not include py-ref.h.
15755 * python/py-infevents.c: Do not include py-ref.h.
15756 * python/py-linetable.c: Do not include py-ref.h.
15757 * python/py-objfile.c: Do not include py-ref.h.
15758 * python/py-param.c: Do not include py-ref.h.
15759 * python/py-prettyprint.c: Do not include py-ref.h.
15760 * python/py-progspace.c: Do not include py-ref.h.
15761 * python/py-symbol.c: Do not include py-ref.h.
15762 * python/py-symtab.c: Do not include py-ref.h.
15763 * python/py-type.c: Do not include py-ref.h.
15764 * python/py-unwind.c: Do not include py-ref.h.
15765 * python/py-utils.c: Do not include py-ref.h.
15766 * python/py-value.c: Do not include py-ref.h.
15767 * python/py-varobj.c: Do not include py-ref.h.
15768 * python/py-xmethods.c: Do not include py-ref.h.
15769 * python/python.c: Do not include py-ref.h.
15770 * varobj.c: Do not include py-ref.h.
15772 2019-01-22 Tom Tromey <tom@tromey.com>
15774 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15775 keyword for bcache.
15777 2019-01-22 Tom Tromey <tom@tromey.com>
15779 * compile/compile-cplus-types.c: Remove a comment by #include.
15781 2019-01-22 Tom Tromey <tom@tromey.com>
15783 * compile/gcc-c-plugin.h: Include compile-internal.h.
15785 2019-01-22 Tom Tromey <tom@tromey.com>
15787 * stabsread.c (EXTERN): Do not define.
15788 (symnum, next_symbol_text_func, processing_gcc_compilation)
15789 (within_function, global_sym_chain, global_stabs)
15790 (previous_stab_code, this_object_header_files)
15791 (n_this_object_header_files)
15792 (n_allocated_this_object_header_files): Define.
15793 * stabsread.h (EXTERN): Never define. Use "extern".
15795 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15797 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15800 2019-01-21 Tom Tromey <tom@tromey.com>
15802 * ui-out.c: Fix includes.
15803 * tui/tui-source.c: Fix includes.
15804 * target.c: Fix includes.
15805 * remote.c: Fix includes.
15806 * regcache.c: Fix includes.
15807 * python/py-block.c: Fix includes.
15808 * printcmd.c: Fix includes.
15809 * or1k-tdep.c: Fix includes.
15810 * mi/mi-main.c: Fix includes.
15811 * m32r-tdep.c: Fix includes.
15812 * csky-tdep.c: Fix includes.
15813 * compile/compile-cplus-types.c: Fix includes.
15814 * cli/cli-interp.c: Fix includes.
15816 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15818 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15821 2019-01-16 Tom Tromey <tom@tromey.com>
15823 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15825 (struct objfile) <msymbols_range>: Move from top level.
15826 <msymbols>: New method.
15827 (class objfile_msymbols): Remove.
15828 * symtab.c (default_collect_symbol_completion_matches_break_on):
15830 * symmisc.c (dump_msymbols): Update.
15831 * stabsread.c (scan_file_globals): Update.
15832 * objc-lang.c (info_selectors_command, info_classes_command)
15833 (find_methods): Update.
15834 * minsyms.c (find_solib_trampoline_target): Update.
15835 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15836 * coffread.c (coff_symfile_read): Update.
15837 * ada-lang.c (ada_lookup_simple_minsym)
15838 (ada_collect_symbol_completion_matches): Update.
15840 2019-01-16 Tom Tromey <tom@tromey.com>
15842 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15843 type. Remove no-argument constructor.
15844 <iterator::operator++>: Simplify.
15846 <end>: Use minimal_symbol_count.
15848 2019-01-16 Tom Tromey <tom@tromey.com>
15850 * objfiles.h (struct objfile) <psymtabs>: New method.
15851 (class objfile_psymtabs): Remove.
15852 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15854 <range>: New method.
15855 (require_partial_symbols): Change return type.
15856 * psymtab.c (require_partial_symbols)
15857 (psym_expand_symtabs_matching): Update.
15858 * mdebugread.c (parse_partial_symbols): Update.
15859 * dbxread.c (dbx_end_psymtab): Update.
15861 2019-01-15 Tom Tromey <tom@tromey.com>
15863 * symtab.c (lookup_objfile_from_block)
15864 (lookup_symbol_in_objfile_symtabs)
15865 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15866 (find_line_symtab, info_sources_command)
15867 (default_collect_symbol_completion_matches_break_on)
15868 (make_source_files_completion_list): Update.
15869 * symmisc.c (print_objfile_statistics, dump_objfile)
15870 (maintenance_print_symbols, maintenance_info_symtabs)
15871 (maintenance_check_symtabs, maintenance_info_line_tables):
15873 * source.c (select_source_symtab)
15874 (forget_cached_source_info_for_objfile): Update.
15875 * objfiles.h (class objfile_compunits): Remove.
15876 (struct objfile) <compunits_range>: New typedef.
15877 (compunits): New method.
15878 * objfiles.c (objfile_relocate1): Update.
15879 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15880 * maint.c (count_symtabs_and_blocks): Update.
15881 * linespec.c (iterate_over_all_matching_symtabs): Update.
15882 * cp-support.c (add_symbol_overload_list_qualified): Update.
15883 * coffread.c (coff_symtab_read): Update.
15884 * ada-lang.c (add_nonlocal_symbols)
15885 (ada_collect_symbol_completion_matches)
15886 (ada_add_global_exceptions): Update.
15888 2019-01-15 Tom Tromey <tom@tromey.com>
15890 * progspace.h (program_space) <objfiles_safe_range>: New
15892 <objfiles_safe>: New method.
15893 * objfiles.h (class all_objfiles_safe): Remove.
15894 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15895 * jit.c (jit_inferior_exit_hook): Update.
15897 2019-01-17 Tom Tromey <tom@tromey.com>
15899 * progspace.h (program_space) <objfiles_range>: New typedef.
15900 <objfiles>: New method.
15901 <objfiles_head>: Rename from objfiles.
15902 (object_files): Update.
15903 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15904 * guile/scm-pretty-print.c
15905 (ppscm_find_pretty_printer_from_objfiles): Update.
15906 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15907 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15909 * python/py-progspace.c (pspy_get_objfiles): Update.
15910 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15912 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15913 (objfpy_lookup_objfile_by_build_id): Update.
15914 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15915 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15917 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15918 (expand_symtab_containing_pc, lookup_objfile_from_block)
15919 (lookup_static_symbol, basic_lookup_transparent_type)
15920 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15921 (find_line_symtab, info_sources_command)
15922 (default_collect_symbol_completion_matches_break_on)
15923 (make_source_files_completion_list, find_main_name): Update.
15924 * symmisc.c (print_symbol_bcache_statistics)
15925 (print_objfile_statistics, maintenance_print_symbols)
15926 (maintenance_print_msymbols, maintenance_print_objfiles)
15927 (maintenance_info_symtabs, maintenance_check_symtabs)
15928 (maintenance_expand_symtabs, maintenance_info_line_tables):
15930 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15931 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15932 (map_overlay_command, unmap_overlay_command)
15933 (simple_overlay_update, expand_symtabs_matching)
15934 (map_symbol_filenames): Update.
15935 * symfile-debug.c (set_debug_symfile): Update.
15936 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15938 * source.c (select_source_symtab, forget_cached_source_info):
15940 * solib.c (solib_read_symbols): Update.
15941 * solib-spu.c (append_ocl_sos): Update.
15942 * psymtab.c (maintenance_print_psymbols)
15943 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15944 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15945 * printcmd.c (info_symbol_command): Update.
15946 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15948 * objfiles.h (class all_objfiles): Remove.
15949 * objfiles.c (have_partial_symbols, have_full_symbols)
15950 (have_minimal_symbols, qsort_cmp, update_section_map)
15951 (shared_objfile_contains_address_p)
15952 (default_iterate_over_objfiles_in_search_order): Update.
15953 * objc-lang.c (info_selectors_command, info_classes_command)
15954 (find_methods): Update.
15955 * minsyms.c (find_solib_trampoline_target): Update.
15956 * maint.c (maintenance_info_sections)
15957 (maintenance_translate_address, count_symtabs_and_blocks):
15959 * main.c (captured_main_1): Update.
15960 * linux-thread-db.c (try_thread_db_load_from_pdir)
15961 (has_libpthread): Update.
15962 * linespec.c (iterate_over_all_matching_symtabs)
15963 (search_minsyms_for_name): Update.
15964 * jit.c (jit_find_objf_with_entry_addr): Update.
15965 * hppa-tdep.c (find_unwind_entry)
15966 (hppa_lookup_stub_minimal_symbol): Update.
15967 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15969 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15970 (elf_gnu_ifunc_resolve_by_got): Update.
15971 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15972 * dwarf-index-write.c (save_gdb_index_command): Update.
15973 * cp-support.c (add_symbol_overload_list_qualified): Update.
15974 * breakpoint.c (create_overlay_event_breakpoint)
15975 (create_longjmp_master_breakpoint)
15976 (create_std_terminate_master_breakpoint)
15977 (create_exception_master_breakpoint): Update.
15978 * blockframe.c (find_pc_partial_function): Update.
15979 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15980 (ada_collect_symbol_completion_matches)
15981 (ada_add_global_exceptions): Update.
15983 2019-01-17 Tom Tromey <tom@tromey.com>
15985 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15987 (solib_target_parse_libraries): Change return type.
15988 (library_list_start_segment, library_list_start_section)
15989 (library_list_end_library, library_list_start_library); Update.
15990 (solib_target_free_library_list): Remove.
15991 (solib_target_parse_libraries): Remove cleanup. Change return
15993 (solib_target_current_sos): Update.
15995 2019-01-17 Tom Tromey <tromey@bapiya>
15997 * valprint.c: Replace "the the" with "the".
15998 * symtab.c: Replace "the the" with "the".
15999 * solib.c: Replace "the the" with "the".
16000 * solib-dsbt.c: Replace "the the" with "the".
16001 * linespec.c: Replace "the the" with "the".
16002 * dwarf2loc.h: Replace "the the" with "the".
16003 * amd64-windows-tdep.c: Replace "the the" with "the".
16004 * aarch64-tdep.c: Replace "the the" with "the".
16006 2019-01-16 Keith Seitz <keiths@redhat.com>
16009 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16010 <builder>: Rename to ..
16011 <m_builder>: ... this and make private.
16012 (dwarf2_cu::get_builder): New method. Change all users of
16013 `builder' to use this method.
16014 (dwarf2_start_symtab): Move to ...
16015 (dwarf2_cu::start_symtab): ... here. Update all callers
16016 (setup_type_unit_groups): Move to ...
16017 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16019 (dwarf2_cu::reset_builder): New method.
16020 (process_full_compunit, process_full_type_unit): Use
16021 dwarf2_cu::reset_builder.
16022 (follow_die_offset): Record the ancestor CU if it is different
16023 from the followed DIE's CU.
16024 (follow_die_sig_1): Likewise.
16026 2019-01-15 Tom Tromey <tom@tromey.com>
16028 * remote.c (class remote_state) <buf>: Now a char_vector.
16029 <buf_size>: Remove.
16030 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16032 (remote_target::getpkt_or_notif_sane_1)
16033 (remote_target::getpkt_sane)
16034 (remote_target::getpkt_or_notif_sane): Likewise.
16035 (class remote_target) <putpkt>: New overload.
16036 (remote_target::read_frame): Change type of "buf_p". Remove
16037 sizeof_p parameter.
16038 (packet_ok): New overload.
16039 (packet_check_result): New overload.
16042 2019-01-14 Tom Tromey <tom@tromey.com>
16044 * remote-notif.c (handle_notification, remote_notif_ack)
16045 (remote_notif_parse): Make "buf" const.
16046 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16048 (remote_notif_parse, remote_notif_ack, handle_notification):
16050 * remote.c (remote_notif_stop_parse): Make "buf" const.
16051 (remote_target::remote_parse_stop_reply): Make "buf" const.
16052 (remote_notif_stop_ack): Make "buf" const.
16054 2019-01-14 Tom Tromey <tom@tromey.com>
16056 * remote.c (remote_console_output): Make parameter const.
16058 2019-01-14 Tom Tromey <tom@tromey.com>
16060 * target-debug.h (target_debug_print_signals): Constify.
16061 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16062 * procfs.c (procfs_target::pass_signals): Update.
16063 * linux-nat.c (linux_nat_target::pass_signals): Update.
16064 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16065 * target-delegates.c: Rebuild.
16066 * remote.c (remote_target::program_signals): Update.
16067 (remote_target::pass_signals): Update.
16068 * target.c (target_pass_signals): Constify argument.
16069 (target_program_signals): Likewise.
16070 * target.h (struct target_ops) <pass_signals, program_signals>:
16072 (target_pass_signals, target_program_signals): Constify argument.
16074 2019-01-14 Tom Tromey <tom@tromey.com>
16077 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16079 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16081 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16083 * rs6000-tdep.c: Include reggroups.h.
16084 (IS_V_ALIAS_PSEUDOREG): Define.
16085 (rs6000_register_name): Return names for the "vX" aliases.
16086 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16087 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16088 aliases. Call default_register_reggroup_p for all other
16090 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16092 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16093 Handle "vX" aliases.
16094 (v_alias_pseudo_register_collect): New function.
16095 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16096 (rs6000_gdbarch_init): Initialize "vX" aliases as
16097 pseudo-registers. Restore registration of
16098 rs6000_pseudo_register_reggroup_p with
16099 set_tdesc_pseudo_register_reggroup_p.
16101 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16103 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16104 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16105 set_gdbarch_num_pseudo_regs.
16107 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16109 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16110 Remove arg prefixname, add do_set and do_show.
16111 Add member functions set_list and show_list.
16112 * cli/cli-style.c (class cli_style_option): Update accordingly.
16113 (style_set_list): Move to file scope.
16114 (style_show_list): Likewise.
16115 (set_style): Call help_list.
16116 (show_style): Call cmd_show_list.
16117 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16118 Update to use the new macro.
16120 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16122 * ada-lang.c (_initialize_ada_language): Expand the help text
16123 for the "catch exception" command.
16125 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16127 * symtab.c (matching_obj_sections): Initialize obj,
16128 declare it closer to its usage.
16130 2019-01-10 Tom Tromey <tom@tromey.com>
16132 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16133 (basic_inf_threads_range): Remove.
16134 (inf_threads_range, inf_non_exited_threads_range)
16135 (safe_inf_threads_range): Use next_adapter.
16137 2019-01-10 Keith Seitz <keiths@redhat.com>
16141 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16142 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16144 2019-01-10 Keith Seitz <keiths@redhat.com>
16148 * dictionary.c (pending_to_vector): Remove.
16149 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16150 Remove _1 suffix, replacing functions of the same name. Update
16152 (dict_create_hashed, dict_create_hashed_expandable)
16153 (dict_create_linear, dict_create_linear_expandable, dict_free)
16154 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16155 Make functions static.
16157 2019-01-10 Keith Seitz <keiths@redhat.com>
16161 * dictionary.h (struct dictionary): Replace declaration with
16163 (dict_create_hashed, dict_create_hashed_expandable)
16164 (dict_create_linear, dict_create_linear_expandable)
16165 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16166 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16167 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16168 taking multidictionary argument.
16169 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16170 * block.h (struct block) <dict>: Change to multidictionary
16171 and rename `multidict'.
16172 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16173 symmisc.c: Update all dictionary references to multidictionary.
16175 2019-01-10 Keith Seitz <keiths@redhat.com>
16179 * dictionary.c: Include unordered_map.
16180 (pending_to_vector): New function.
16181 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16182 Rewrite the non-"_1" functions to take vector instead
16184 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16185 "new" _1 versions of the same name.
16186 (multidictionary): Define.
16187 (std::hash<enum language): New definition.
16188 (collate_pending_symbols_by_language, mdict_create_hashed)
16189 (mdict_create_hashed_expandable, mdict_create_linear)
16190 (mdict_create_linear_expandable, mdict_free)
16191 (find_language_dictionary, create_new_language_dictionary)
16192 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16193 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16194 (mdict_size, mdict_empty): New functions.
16195 * dictionary.h (mdict_iterator): Define.
16197 2019-01-10 Pedro Alves <palves@redhat.com>
16199 * breakpoint.c (read_uploaded_action)
16200 (create_tracepoint_from_upload): Adjust to use
16201 gdb::unique_xmalloc_ptr.
16202 * ctf.c (ctf_write_uploaded_tp):
16203 (SET_ARRAY_FIELD): Use emplace_back.
16204 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16205 * tracefile-tfile.c (tfile_write_uploaded_tp):
16206 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16207 gdb::unique_xmalloc_ptr.
16208 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16209 at_string, cond_string, cmd_strings>: Replace char pointers
16210 with gdb::unique_xmalloc_ptr.
16212 2019-01-10 Pedro Alves <palves@redhat.com>
16214 * solib-target.c (library_list_start_library): Don't xstrdup name.
16216 2019-01-10 Pedro Alves <palves@redhat.com>
16218 * mdebugread.c (parse_partial_symbols): Use
16219 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16221 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16223 * linux-fork.c (scoped_switch_fork_info)
16224 <~scoped_switch_fork_info>: Fix incorrect variable name.
16226 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16228 * linux-fork.c (scoped_switch_fork_info)
16229 <scoped_switch_fork_info>: Make explicit.
16230 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16232 2019-01-10 Tom Tromey <tom@tromey.com>
16234 * objfiles.h (objfile::reset_psymtabs): Update.
16235 * objfiles.c (objfile::objfile): Update.
16236 * psymtab.h (psymtab_storage::obstack): Update.
16237 (psymtab_storage::m_obstack): Use gdb::optional.
16238 (class psymtab_storage): Update comment. Remove objfile
16240 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16242 2019-01-10 Tom Tromey <tom@tromey.com>
16244 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16245 <free_psymtabs>: Now private.
16246 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16247 (allocate_psymtab): Use new method.
16249 2019-01-10 Tom Tromey <tom@tromey.com>
16251 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16252 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16253 * mdebugread.c (parse_partial_symbols): Use
16254 allocate_dependencies.
16255 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16256 allocate_dependencies.
16257 (process_psymtab_comp_unit_reader)
16258 (build_type_psymtab_dependencies): Likewise.
16259 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16261 2019-01-10 Tom Tromey <tom@tromey.com>
16263 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16264 PSYMBOL_SET_LANGUAGE.
16265 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16267 2019-01-10 Tom Tromey <tom@tromey.com>
16269 * psymtab.h (psymtab_storage::obstack): New method.
16270 <m_obstack>: Rename from obstack; now private.
16271 * psymtab.c (psymtab_storage): Update.
16272 * dwarf2read.c (create_addrmap_from_index)
16273 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16276 2019-01-10 Tom Tromey <tom@tromey.com>
16278 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16279 * objfiles.h (objfile::reset_psymtabs): New method.
16281 2019-01-10 Tom Tromey <tom@tromey.com>
16283 * symmisc.c (print_symbol_bcache_statistics): Update.
16284 (print_objfile_statistics): Update.
16285 * symfile.c (reread_symbols): Update.
16286 * psymtab.h (class psymtab_storage): New.
16287 * psymtab.c (psymtab_storage): New constructor.
16288 (~psymtab_storage): New destructor.
16289 (require_partial_symbols): Update.
16290 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16291 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16292 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16293 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16294 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16295 (start_psymtab_common, end_psymtab_common)
16296 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16297 (allocate_psymtab): Update.
16298 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16300 (dump_psymtab_addrmap, maintenance_print_psymbols)
16301 (maintenance_check_psymtabs): Update.
16302 (class objfile_psymtabs): Move to objfiles.h.
16303 * psympriv.h (discard_psymtab): Now inline.
16304 (psymtab_discarder::psymtab_discarder): Update.
16305 (psymtab_discarder::~psymtab_discarder): Update.
16306 (ALL_OBJFILE_PSYMTABS): Rewrite.
16307 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16308 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16310 <partial_symtabs>: New field.
16311 (class objfile_psymtabs): Move from psymtab.h. Update.
16312 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16314 (objfile::~objfile): Don't destroy psymbol_cache.
16315 * mdebugread.c (parse_partial_symbols): Update.
16316 * dwarf2read.c (create_addrmap_from_index)
16317 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16318 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16319 (add_partial_subprogram, dwarf2_ranges_read): Update.
16320 * dwarf-index-write.c (write_address_map)
16321 (write_one_signatured_type, recursively_write_psymbols)
16322 (class debug_names, class debug_names, write_psymtabs_to_index):
16325 2019-01-10 Tom Tromey <tom@tromey.com>
16327 * symtab.h (SYMBOL_SET_NAMES): Update.
16328 (symbol_set_names): Update.
16329 (MSYMBOL_SET_NAMES): Update.
16330 * symtab.c (symbol_set_names): Change argument to be an
16331 objfile_per_bfd_storage.
16332 * psymtab.c (add_psymbol_to_bcache): Update.
16333 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16335 2019-01-10 Tom Tromey <tom@tromey.com>
16337 * symtab.c (create_demangled_names_hash): Change argument to be an
16338 objfile_per_bfd_storage.
16339 (symbol_set_names): Update.
16341 2019-01-10 Tom Tromey <tom@tromey.com>
16343 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16345 * psymtab.c (init_psymbol_list): Do nothing if already called.
16346 * psympriv.h (init_psymbol_list): Add comment.
16347 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16349 * dbxread.c (dbx_symfile_read): Unconditionally call
16352 2019-01-10 Tom Tromey <tom@tromey.com>
16354 * xcoffread.c (scan_xcoff_symtab): Update.
16355 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16357 * mdebugread.c (parse_partial_symbols)
16358 (handle_psymbol_enumerators): Update.
16359 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16360 * dbxread.c (read_dbx_symtab): Update.
16361 * psympriv.h (psymbol_placement): New enum.
16362 (add_psymbol_to_list): Update.
16364 2019-01-10 Tom Tromey <tom@tromey.com>
16366 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16367 static_psymbols parameters.
16368 (scan_xcoff_symtab): Update.
16369 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16370 static_psymbols parameters.
16371 * psympriv.h (start_psymtab_common): Update.
16372 * mdebugread.c (parse_partial_symbols): Update.
16373 * dwarf2read.c (create_partial_symtab): Update.
16374 * dbxread.c (read_dbx_symtab): Update.
16375 (start_psymtab): Remove global_psymbols and static_psymbols
16378 2019-01-10 Tom Tromey <tom@tromey.com>
16380 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16381 * psymtab.c (allocate_psymtab): Add comment.
16382 * psympriv.h (allocate_psymtab): Add comment.
16383 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16385 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16387 2019-01-10 Tom Tromey <tom@tromey.com>
16389 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16391 * mipsread.c: Include mdebugread.h.
16392 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16394 * elfread.c: Include mdebugread.h.
16396 2019-01-09 Tom Tromey <tom@tromey.com>
16398 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16399 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16400 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16401 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16402 (psym_lookup_symbol, psym_find_last_source_symtab)
16403 (psym_forget_cached_source_info, psym_print_stats)
16404 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16405 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16406 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16407 (psym_find_compunit_symtab_by_address)
16408 (maintenance_print_psymbols, maintenance_info_psymtabs)
16409 (maintenance_check_psymtabs): Use ranged for.
16410 * psymtab.h (class objfile_psymtabs): New.
16411 (require_partial_symbols): Return objfile_psymtabs.
16412 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16414 2019-01-09 Tom Tromey <tom@tromey.com>
16416 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16417 (find_pc_mapped_section, list_overlays_command)
16418 (map_overlay_command, unmap_overlay_command)
16419 (simple_overlay_update): Use all_objfiles.
16420 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16421 * printcmd.c (info_symbol_command): Use all_objfiles.
16422 * objfiles.h (ALL_OBJSECTIONS): Remove.
16423 * maint.c (maintenance_translate_address): Use all_objfiles.
16424 * gcore.c (gcore_create_callback): Use all_objfiles.
16425 (objfile_find_memory_regions): Likewise.
16427 2019-01-09 Tom Tromey <tom@tromey.com>
16429 * symtab.c (find_line_symtab, info_sources_command)
16430 (make_source_files_completion_list): Use objfile_compunits.
16431 * source.c (select_source_symtab): Use objfile_compunits.
16432 * objfiles.h (struct objfile): Update comment.
16433 (ALL_OBJFILES): Remove.
16434 (ALL_FILETABS): Remove.
16435 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16438 2019-01-09 Tom Tromey <tom@tromey.com>
16440 * symmisc.c (print_objfile_statistics, dump_objfile)
16441 (maintenance_print_symbols): Use compunit_filetabs.
16442 * source.c (forget_cached_source_info_for_objfile): Use
16444 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16445 (ALL_FILETABS): Use compunit_filetabs.
16446 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16447 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16449 2019-01-09 Tom Tromey <tom@tromey.com>
16451 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16452 (compunit_filetabs): New.
16453 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16455 (info_sources_command, make_source_files_completion_list): Remove
16457 * symmisc.c (print_objfile_statistics, dump_objfile)
16458 (maintenance_print_symbols): Remove declaration.
16459 (maintenance_info_symtabs): Use compunit_filetabs.
16460 (maintenance_info_line_tables): Likewise.
16461 * source.c (select_source_symtab): Change local variable name.
16462 (forget_cached_source_info_for_objfile): Remove declaration.
16463 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16464 * objfiles.c (objfile_relocate1): Remove declaration.
16465 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16467 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16468 * coffread.c (coff_symtab_read): Remove declaration.
16469 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16472 2019-01-09 Tom Tromey <tom@tromey.com>
16474 * symtab.c (lookup_objfile_from_block)
16475 (find_pc_sect_compunit_symtab, search_symbols)
16476 (default_collect_symbol_completion_matches_break_on): Use
16478 * objfiles.h (ALL_COMPUNITS): Remove.
16479 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16480 * cp-support.c (add_symbol_overload_list_qualified): Use
16482 * ada-lang.c (ada_collect_symbol_completion_matches)
16483 (ada_add_global_exceptions): Use objfile_compunits.
16485 2019-01-09 Tom Tromey <tom@tromey.com>
16487 * source.c (select_source_symtab)
16488 (forget_cached_source_info_for_objfile): Remove declaration.
16489 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16491 * maint.c (count_symtabs_and_blocks): Remove declaration.
16492 * cp-support.c (add_symbol_overload_list_qualified): Remove
16494 * coffread.c (coff_symtab_read): Remove declaration.
16495 * symtab.c (lookup_symbol_in_objfile_symtabs)
16496 (basic_lookup_transparent_type_1): Use objfile_compunits.
16497 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16498 (info_sources_command, search_symbols)
16499 (default_collect_symbol_completion_matches_break_on)
16500 (make_source_files_completion_list): Remove declaration.
16501 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16502 (ada_collect_symbol_completion_matches)
16503 (ada_add_global_exceptions): Remove declaration.
16504 * linespec.c (iterate_over_all_matching_symtabs): Use
16506 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16507 (class objfile_compunits): New.
16508 (ALL_COMPUNITS): Use objfile_compunits.
16509 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16510 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16512 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16514 2019-01-09 Tom Tromey <tom@tromey.com>
16516 * symtab.c (search_symbols)
16517 (default_collect_symbol_completion_matches_break_on): Use
16519 * ada-lang.c (ada_lookup_simple_minsym)
16520 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16521 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16522 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16524 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16525 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16526 * objc-lang.c (find_methods): Use objfile_msymbols.
16527 (info_selectors_command, info_classes_command): Likewise.
16528 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16529 * objfiles.h (class objfile_msymbols): New.
16530 (ALL_OBJFILE_MSYMBOLS): Remove.
16531 (ALL_MSYMBOLS): Remove.
16533 2019-01-09 Tom Tromey <tom@tromey.com>
16535 * common/next-iterator.h (next_adapter): Add Iterator template
16537 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16538 (class all_objfiles_safe): New.
16539 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16540 * objfiles.c (put_objfile_before): Update comment.
16541 (add_separate_debug_objfile): Likewise.
16542 (free_all_objfiles): Use all_objfiles_safe.
16543 (objfile_purge_solibs): Likewise.
16545 2019-01-09 Tom Tromey <tom@tromey.com>
16547 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16548 (expand_symtab_containing_pc, lookup_static_symbol)
16549 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16550 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16552 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16553 * breakpoint.c (create_overlay_event_breakpoint)
16554 (create_longjmp_master_breakpoint)
16555 (create_std_terminate_master_breakpoint)
16556 (create_exception_master_breakpoint): Use all_objfiles.
16557 * linux-thread-db.c (try_thread_db_load_from_pdir)
16558 (has_libpthread): Use all_objfiles.
16559 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16560 * linespec.c (iterate_over_all_matching_symtabs)
16561 (search_minsyms_for_name): Use all_objfiles.
16562 * maint.c (maintenance_info_sections): Use all_objfiles.
16563 * main.c (captured_main_1): Use all_objfiles.
16564 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16565 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16566 * guile/scm-pretty-print.c
16567 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16568 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16569 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16570 (maintenance_print_msymbols): Use all_objfiles.
16571 * source.c (select_source_symtab): Use all_objfiles.
16572 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16573 * symfile.c (remove_symbol_file_command)
16574 (expand_symtabs_matching, map_symbol_filenames): Use
16576 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16578 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16579 * objc-lang.c (find_methods): Use all_objfiles.
16580 * objfiles.c (have_partial_symbols, have_full_symbols)
16581 (have_minimal_symbols, qsort_cmp)
16582 (default_iterate_over_objfiles_in_search_order): Use
16584 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16585 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16586 (maintenance_check_psymtabs): Use all_objfiles.
16587 (ALL_PSYMTABS): Remove.
16588 * compile/compile-object-run.c (do_module_cleanup): Use
16590 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16591 * cp-support.c (add_symbol_overload_list_qualified): Use
16593 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16595 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16596 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16598 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16599 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16600 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16602 * solib.c (solib_read_symbols): Use all_objfiles
16604 2019-01-09 Tom Tromey <tom@tromey.com>
16606 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16607 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16609 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16610 * symmisc.c (print_symbol_bcache_statistics)
16611 (print_objfile_statistics, maintenance_print_objfiles)
16612 (maintenance_info_symtabs, maintenance_check_symtabs)
16613 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16615 * source.c (forget_cached_source_info): Use all_objfiles.
16616 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16617 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16618 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16619 * objfiles.c (update_section_map): Use all_objfiles.
16620 (shared_objfile_contains_address_p): Likewise.
16621 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16622 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16624 2019-01-09 Tom Tromey <tom@tromey.com>
16626 * common/next-iterator.h: New file.
16627 * objfiles.h (class all_objfiles): New.
16628 (struct objfile_iterator): New.
16630 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16632 * NEWS: Move the description of the changed "frame", "select-frame",
16633 and "info frame" commands to the Changed commands section.
16635 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16637 * gdbtypes.c (check_stub_method_group): Remove handling of old
16639 * linespec.c (find_methods): Likewise.
16640 * stabsread.c (read_member_functions): Likewise.
16641 * valops.c (search_struct_method): Likewise.
16642 (value_struct_elt_for_reference): Likewise.
16643 * NEWS: Mention this change.
16645 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16647 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16648 print_source_lines.
16649 * source.c (print_source_lines_base): Update line number check.
16650 (print_source_lines): New function.
16651 (source_lines_range::source_lines_range): New function.
16652 * source.h (class source_lines_range): New class.
16653 (print_source_lines): New declaration.
16655 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16657 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16659 2019-01-08 Tom Tromey <tom@tromey.com>
16660 Simon Marchi <simon.marchi@ericsson.com>
16663 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16664 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16665 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16666 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16667 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16668 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16670 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16672 * source.c (select_source_symtab): Move header comment to
16673 declaration in source.h.
16674 (forget_cached_source_info_for_objfile): Likewise.
16675 (forget_cached_source_info): Likewise.
16676 (identify_source_line): Likewise.
16677 * source.h (identify_source_line): Move declaration from symtab.h
16678 and add comment from source.c
16679 (print_source_lines): Likewise.
16680 (forget_cached_source_info_for_objfile): Likewise.
16681 (forget_cached_source_info): Likewise.
16682 (select_source_symtab): Likewise.
16683 (enum print_source_lines_flag): Move definition from symtab.h.
16684 * symtab.h (identify_source_line): Move declaration to source.h.
16685 (print_source_lines): Likewise.
16686 (forget_cached_source_info_for_objfile): Likewise.
16687 (forget_cached_source_info): Likewise.
16688 (select_source_symtab): Likewise.
16689 (enum print_source_lines_flag): Move definition to source.h.
16690 * tui/tui-hooks.c: Add 'source.h' include.
16692 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16694 * source.c (print_source_lines_base): Handle requests to print
16695 reverse line number sequences, and guard against empty lines
16698 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16700 * source.c (print_source_lines_base): Fix skip of '\r' if next
16703 2019-01-06 Tom Tromey <tom@tromey.com>
16705 * c-exp.y (struct c_parse_state) <macro_original_text,
16706 expansion_obstack>: New member.
16707 (macro_original_text, expansion_obstack): Remove globals.
16708 (scan_macro_expansion, scanning_macro_expansion)
16709 (finished_macro_expansion): Update.
16710 (scan_macro_cleanup): Remove.
16711 (yylex, c_parse): Update.
16713 2019-01-06 Tom Tromey <tom@tromey.com>
16715 * c-exp.y (struct c_parse_state) <strings>: New member.
16716 (operator_stoken): Update.
16718 2019-01-06 Tom Tromey <tom@tromey.com>
16720 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16721 (union type_stack_elt) <typelist_val>: Now a pointer to
16723 (type_stack_cleanup): Don't declare.
16724 (push_typelist): Update.
16725 * parse.c (pop_typelist): Return a std::vector.
16726 (push_typelist): Take a std::vector.
16727 (follow_types): Update. Do not free args.
16728 (type_stack_cleanup): Remove.
16729 * c-exp.y (struct c_parse_state): New.
16730 (cpstate): New global.
16731 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16732 (nonempty_typelist): Update.
16733 (func_mod): Create a new vector.
16734 (c_parse): Create a c_parse_state.
16735 (check_parameter_typelist): Do not delete params.
16736 (function_method): Update. Do not delete type_list.
16738 2019-01-06 Tom Tromey <tom@tromey.com>
16741 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16743 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16744 (print_return_value): Likewise.
16746 2019-01-05 Tom Tromey <tom@tromey.com>
16748 * contrib/cleanup_check.py: Remove.
16749 * contrib/gcc-with-excheck: Remove.
16750 * contrib/exsummary.py: Remove.
16751 * contrib/excheck.py: Remove.
16753 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16755 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16756 NULL. Initialize tpprev to NULL instead of assigning it
16757 to NULL on the next statement.
16758 * windows-nat.c (windows_delete_thread): Remove check for
16759 main_thread_id before printing thread exit notifications.
16760 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16761 Remove thread ID check against main_thread_id.
16762 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16763 windows_delete_thread.
16764 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16766 2019-01-04 Tom Tromey <tom@tromey.com>
16768 * compile/compile.c (_initialize_compile): Use upper case for
16769 metasyntactic variables.
16770 * symmisc.c (_initialize_symmisc): Use upper case for
16771 metasyntactic variables.
16772 * psymtab.c (_initialize_psymtab): Use upper case for
16773 metasyntactic variables.
16774 * demangle.c (demangle_command): Use upper case for metasyntactic
16776 (_initialize_demangler): Likewise.
16777 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16780 2019-01-03 Tom Tromey <tom@tromey.com>
16782 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16784 2019-01-03 Tom Tromey <tom@tromey.com>
16786 * python/py-symtab.c (salpy_str): Update.
16787 (struct salpy_sal_object) <symtab>: Now a PyObject.
16788 (salpy_dealloc): Update.
16789 (del_objfile_sal): Use gdbpy_ref.
16791 2019-01-03 Tom Tromey <tom@tromey.com>
16793 * python/py-type.c (convert_field): Use new_reference. Return
16795 (make_fielditem): Return gdbpy_ref.
16796 (typy_fields): Update.
16797 (typy_getitem): Update.
16798 (field_name): Return gdbpy_ref. Use new_reference.
16799 (typy_iterator_iternext): Update.
16801 2019-01-03 Tom Tromey <tom@tromey.com>
16803 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16805 2019-01-03 Tom Tromey <tom@tromey.com>
16807 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16808 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16809 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16810 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16811 (pspy_set_type_printers): Likewise.
16812 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16813 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16814 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16815 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16816 (objfpy_set_type_printers): Likewise.
16818 2019-01-03 Tom Tromey <tom@tromey.com>
16820 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16821 (gdbpy_print_stack): Use gdbpy_err_fetch.
16822 * python/python-internal.h (class gdbpy_err_fetch): New class.
16823 (class gdbpy_enter) <m_error_type, m_error_value,
16824 m_error_traceback>: Remove.
16825 <m_error>: New member.
16826 (gdbpy_exception_to_string): Don't declare.
16827 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16828 * python/py-value.c (convert_value_from_python): Use
16830 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16831 gdbpy_exception_to_string.
16832 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16833 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16836 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16838 * linux-nat.c (delete_lwp_cleanup): Delete.
16839 (struct lwp_deleter): New struct.
16840 (lwp_info_up): New typedef.
16841 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16844 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16846 * linux-fork.c (class scoped_switch_fork_info): New class.
16847 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16849 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16851 * valops.c (find_overload_match): Remove use of null_cleanup, and
16852 calls to do_cleanups.
16854 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16856 * compile/compile-cplus-types.c
16857 (compile_cplus_instance::decl_name): Handle changes to
16859 * cp-support.c (cp_func_name): Update header comment, update
16861 * cp-support.h (cp_func_name): Update return type in declaration.
16862 * valops.c (find_overload_match): Move temp_func local to top
16863 level of function and change its type. Use temp_func to hold and
16864 delete temporary string obtained from cp_func_name.
16866 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16868 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16869 gdb::char_vector, remove cleanup, and update uses of `msg`.
16871 2019-01-03 Jim Wilson <jimw@sifive.com>
16873 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16875 2019-01-02 Tom Tromey <tom@tromey.com>
16877 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16878 (tdesc_parse_xml): Remove cleanups.
16879 * target-descriptions.h (make_cleanup_free_target_description):
16881 (target_desc_deleter): New struct.
16882 (target_desc_up): New typedef.
16883 * target-descriptions.c (target_desc_deleter::operator()): Rename
16884 from free_target_description.
16885 (make_cleanup_free_target_description): Remove.
16887 2019-01-02 Tom Tromey <tom@tromey.com>
16889 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16890 constructor, destructor.
16891 (linespec_parser): Remove typedef.
16892 (~linespec_parser): Rename from linespec_parser_delete.
16893 (linespec_lex_to_end, linespec_complete_label)
16894 (linespec_complete): Update.
16895 (decode_line_full): Remove cleanups.
16896 (decode_line_1): Update.
16898 2019-01-02 Tom Tromey <tom@tromey.com>
16900 * python/python-internal.h (inferior_to_inferior_object): Change
16902 * python/py-exitedevent.c (create_exited_event_object): Update.
16903 * python/py-inferior.c (inferior_to_inferior_object): Return
16905 (python_new_inferior, python_inferior_deleted)
16906 (thread_to_thread_object, delete_thread_object)
16907 (build_inferior_list, gdbpy_selected_inferior): Update.
16908 * python/py-infthread.c (create_thread_object): Update. Also fail
16909 if inferior_to_inferior_object fails.
16911 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16913 * inferior.h (class inferior) <displaced_step_state>: New field.
16914 * infrun.h (struct displaced_step_state): Move here from
16915 infrun.c. Initialize fields, add constructor.
16916 <inf>: Remove field.
16917 <reset>: New method.
16918 * infrun.c (struct displaced_step_inferior_state): Move to
16920 (displaced_step_inferior_states): Remove.
16921 (get_displaced_stepping_state): Adust.
16922 (displaced_step_in_progress_any_inferior): Adjust.
16923 (displaced_step_in_progress_thread): Adjust.
16924 (displaced_step_in_progress): Adjust.
16925 (add_displaced_stepping_state): Remove.
16926 (get_displaced_step_closure_by_addr): Adjust.
16927 (remove_displaced_stepping_state): Remove.
16928 (infrun_inferior_exit): Call displaced_step_state.reset.
16929 (use_displaced_stepping): Don't check for NULL.
16930 (displaced_step_prepare_throw): Call
16931 get_displaced_stepping_state.
16932 (displaced_step_fixup): Don't check for NULL.
16933 (prepare_for_detach): Don't check for NULL.
16935 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16937 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16938 in case of call that did not complete.
16940 2019-01-02 Andrey Utkin <autkin@undo.io>
16942 * symfile.c (find_separate_debug_file): Fix search of debug files for
16945 2019-01-02 Tom Tromey <tom@tromey.com>
16947 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16949 * python/py-frame.c (frapy_older): Remove cast.
16950 (frapy_newer): Likewise.
16951 * python/py-breakpoint.c (local_setattro): Remove cast.
16952 * python/py-arch.c (archpy_name): Remove local variable.
16953 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16955 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16957 * unittests/basic_string_view/element_access/char/empty.cc:
16958 Fix year range in copyright header.
16960 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16962 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16964 <operator==>: Update with for removed field.
16966 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16967 <isa_features>: ...this.
16968 <abi_features>: New field.
16969 (riscv_isa_flen): Update comment.
16970 (riscv_abi_xlen): New declaration.
16971 (riscv_abi_flen): New declaration.
16972 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16974 (riscv_abi_xlen): New function.
16975 (riscv_isa_flen): Update to get answer from isa_features.
16976 (riscv_abi_flen): New function.
16977 (riscv_has_fp_abi): Update to get answer from abi_features.
16978 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16980 (riscv_call_info) <xlen, flen>: Update comment.
16981 (riscv_call_arg_struct): Remove invalid assertions
16982 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16984 (riscv_gdbarch_init): Gather isa features and abi features
16985 separately, ensure both match on the gdbarch when reusing an old
16986 gdbarch. Relax an error check to allow 32-bit abi float to run on
16987 a target with 64-bit float hardware.
16989 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16991 * source.c (search_command_helper): Stop reverse search
16992 when line 1 has been searched.
16994 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16996 * record-full.c (record_full_base_target::close): Rewrite
16997 record_full_core_buf_list free logic.
16999 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17001 * break-catch-syscall.c (print_one_catch_syscall): xfree
17004 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17006 * top.c (print_gdb_version): Update Copyright year in version
17009 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17011 Update copyright year range in all GDB files.
17013 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17015 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17017 For older changes see ChangeLog-2018.
17023 version-control: never